joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411620
Capabilities:
Delete registry key
Set registry value

Disassembly:
sub esp, 0x208
mov ax, word [0x4f04e0]
push edi
mov word [esp + 4], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 6]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x210]
test eax, eax
je 0x411712
push ebx
push esi
mov esi, dword [sym.imp.MSVCRT.dll_wcslen]
push 0x4f0940
call esi
add esp, 4
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
shl eax, 1
push eax
push 0x4f0940
push 1
push 0x4f04e0
push str.SOFTWAREClientsStartMenuInternet
push reloc.OLEAUT32.dll_SysReAllocString
call edi
mov ebx, dword [sym.imp.MSVCRT.dll__snwprintf]
push 0x4f0940
push str.SOFTWAREClientsStartMenuInternet
push 0x4df54c
lea ecx, [esp + 0x18]
push 0x103
push ecx
call ebx
push str.TheWorld_Browser
call esi
add esp, 0x18
lea edx, [esp + 0xc]
shl eax, 1
push eax
push str.TheWorld_Browser
push 1
push 0x4f04e0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call edi
push str.shellopencommand
push 0x4f0940
push str.SOFTWAREClientsStartMenuInternet
push str._s_s_s
lea eax, [esp + 0x1c]
push 0x103
push eax
call ebx
push 0x4f0530
call esi
add esp, 0x1c
lea ecx, [esp + 0xc]
shl eax, 1
push eax
push 0x4f0530
push 1
push 0x4f04e0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call edi
pop esi
pop ebx
jmp 0x41173f
push str.IEXPLORE.EXE
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
shl eax, 1
push eax
push str.IEXPLORE.EXE
push 1
push 0x4f04e0
push str.SOFTWAREClientsStartMenuInternet
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push str.SOFTWAREClientsStartMenuInternet
push reloc.DSOUND.dll_DirectSoundCreate
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
pop edi
add esp, 0x208
ret
Function at 0x411760
Capabilities:
Delete registry key
Set registry value

Disassembly:
mov eax, dword [0x5c79bc]
sub esp, 0x22c
test eax, eax
je 0x411940
mov eax, dword [esp + 0x230]
push ebx
push ebp
push esi
test eax, eax
push edi
je 0x41178f
mov ebp, str.TheWorldURL
mov dword [esp + 0x10], ebp
mov edi, ebp
jmp 0x4117a1
mov ebp, str.htmlfile
mov dword [esp + 0x10], str.mhtmlfile
mov edi, str.IE.HTTP
mov esi, dword [sym.imp.MSVCRT.dll_wcslen]
push edi
call esi
add esp, 4
mov ebx, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
shl eax, 1
push eax
push edi
push 1
push str.Progid
push str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociations_ftpUserChoice
push reloc.DSOUND.dll_DirectSoundCreate
call ebx
push edi
call esi
add esp, 4
shl eax, 1
push eax
push edi
push 1
push str.Progid
push str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
push reloc.DSOUND.dll_DirectSoundCreate
call ebx
push edi
call esi
add esp, 4
shl eax, 1
push eax
push edi
push 1
push str.Progid
push str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpsUserChoice
push reloc.DSOUND.dll_DirectSoundCreate
call ebx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x36]
mov word [esp + 0x34], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], str..htm
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts
push reloc.DSOUND.dll_DirectSoundCreate
mov dword [esp + 0x3c], 0x4de9a0
mov dword [esp + 0x40], str..shtm
mov dword [esp + 0x44], str..shtml
mov dword [esp + 0x30], str..mht
mov dword [esp + 0x34], str..mhtml
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea edi, [esp + 0x24]
mov dword [esp + 0x14], 4
mov ecx, dword [edi]
lea edx, [esp + 0x34]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts
push str._s_sUserChoice
push 0x103
push edx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
lea eax, [esp + 0x34]
push eax
push reloc.DSOUND.dll_DirectSoundCreate
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push ebp
call esi
add esp, 4
lea ecx, [esp + 0x34]
shl eax, 1
push eax
push ebp
push 1
push str.Progid
push ecx
push reloc.DSOUND.dll_DirectSoundCreate
call ebx
mov eax, dword [esp + 0x14]
add edi, 4
dec eax
mov dword [esp + 0x14], eax
jne 0x411872
lea edi, [esp + 0x1c]
mov ebp, 2
mov edx, dword [edi]
lea eax, [esp + 0x34]
push edx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts
push str._s_sUserChoice
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
lea ecx, [esp + 0x34]
push ecx
push reloc.DSOUND.dll_DirectSoundCreate
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edx, dword [esp + 0x10]
push edx
call esi
add esp, 4
lea ecx, [esp + 0x34]
shl eax, 1
push eax
mov eax, dword [esp + 0x14]
push eax
push 1
push str.Progid
push ecx
push reloc.DSOUND.dll_DirectSoundCreate
call ebx
add edi, 4
dec ebp
jne 0x4118d6
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x22c
ret
Function at 0x411970
Capabilities:
Set registry value

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_wcslen]
push ebp
push esi
push edi
mov edi, dword [esp + 0x220]
push edi
call ebx
mov ebp, dword [esp + 0x220]
add esp, 4
shl eax, 1
push eax
push edi
push 1
push 0x4f04e0
push ebp
push DirectSoundCreate
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
lea ecx, [esp + 0x18]
push str.opencommand
push ecx
call dword [sym.imp.MSVCRT.dll_wcscat]
mov esi, dword [esp + 0x234]
push esi
call ebx
add esp, 0x14
lea edx, [esp + 0x10]
shl eax, 1
push eax
push esi
push 1
push 0x4f04e0
push edx
push DirectSoundCreate
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push edi
push ebp
push str._s_scommand
lea eax, [esp + 0x1c]
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
push esi
call ebx
add esp, 0x18
lea ecx, [esp + 0x10]
shl eax, 1
push eax
push esi
push 1
push 0x4f04e0
push ecx
push DirectSoundCreate
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x412150
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x418
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
lea edx, [esp + 4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x424]
push ecx
push edx
push 0x4df97c
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x412202
mov cx, word [0x4f04e0]
lea edi, [esp + 0x216]
mov word [esp + 0x214], cx
mov ecx, 0x81
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x214]
push 0x104
lea eax, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea ecx, [esp + 0x214]
push 0x4f0530
push ecx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
neg eax
sbb eax, eax
pop edi
inc eax
add esp, 0x418
ret
call fcn.00412090
neg eax
sbb eax, eax
pop edi
inc eax
add esp, 0x418
ret

Function at 0x412620
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
sub esp, 0x410
push esi
push edi
call fcn.00462470
mov edx, eax
xor esi, esi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x212]
mov word [esp + 0x210], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
push 0x104
push eax
push edx
call fcn.00411950
add esp, 0xc
lea ecx, [esp + 0x210]
push str.IEXPLORE.EXE
push str.SOFTWAREClientsStartMenuInternet
push 0x4df54c
push 0x103
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
lea edx, [esp + 0x210]
push str.LocalizedString
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
push str.IEXPLORE.EXE
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
shl eax, 1
push eax
push str.IEXPLORE.EXE
push 1
push 0x4f04e0
push str.SOFTWAREClientsStartMenuInternet
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
lea eax, [esp + 8]
push eax
push str.open
push str.htmlfile_shell
call fcn.00411970
lea ecx, [esp + 0x14]
push ecx
push str.open
push str.InternetShortcut_shell
call fcn.00411970
lea edx, [esp + 0x20]
push edx
push str.open
push str.mhtmlfile_shell
call fcn.00411970
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
add esp, 0x24
push str.TheWorld.HTTP
push DirectSoundCreate
call esi
push str.TheWorld.AssocFile.HTM
push DirectSoundCreate
call esi
push str.TheWorld.AssocFile.MHT
push DirectSoundCreate
call esi
pop edi
pop esi
add esp, 0x410
ret
Function at 0x412750
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
lea edx, [esp + 4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x224]
push ecx
mov ecx, dword [esp + 0x224]
push edx
mov edx, dword [esp + 0x224]
push eax
push ecx
push edx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], 0x103
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
pop edi
jne 0x4127dc
cmp word [esp + 8], ax
je 0x4127dc
mov eax, dword [esp + 0x220]
lea ecx, [esp + 8]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x4127dc
mov eax, 1
add esp, 0x210
ret
xor eax, eax
add esp, 0x210
ret

Function at 0x412ad0
Capabilities:
Parse url

Disassembly:
sub esp, 0x3c
push esi
mov esi, dword [esp + 0x48]
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov ecx, 0x912
mov edi, esi
rep stosd dword es:[edi], eax
lea eax, [esi + 8]
lea edx, [esi + 0x48]
mov dword [esp + 0xc], eax
mov edi, dword [esp + 0x48]
mov eax, 0x800
mov dword [esp + 0x34], edx
lea ecx, [esi + 0x2148]
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], eax
lea edx, [esi + 0x2348]
mov eax, 0x80
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], edx
lea ecx, [esi + 0x1048]
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x50]
lea edx, [esp + 8]
mov dword [esp + 0x3c], ecx
push edx
lea ecx, [esi + 0x2048]
push eax
push edi
mov dword [esp + 0x14], 0x3c
mov dword [esp + 0x1c], 0x20
mov dword [esp + 0x28], 0x100
mov dword [esp + 0x38], ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
push eax
push edi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x412ba4
mov eax, dword [esp + 0x14]
cmp eax, 3
je 0x412b8e
cmp eax, 4
je 0x412b8e
cmp eax, 1
jne 0x412ba4
mov cx, word [esp + 0x20]
mov dword [esi + 4], eax
mov word [esi], cx
pop edi
mov eax, 1
pop esi
add esp, 0x3c
ret
pop edi
xor eax, eax
pop esi
add esp, 0x3c
ret

Function at 0x412bb0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x412bc0
xor eax, eax
pop esi
pop ecx
ret
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
mov dword [esi + 0x2454], eax
je 0x412c07
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0
push esi
push 0x412f00
push 0
push 0
mov dword [esi + 0x5ceb4], 8
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 8], eax
mov eax, 1
pop esi
pop ecx
ret
Function at 0x413b50
Capabilities:
Send data

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0xc]
mov eax, dword [edi + 0x26c4]
mov esi, dword [eax + ecx*4]
mov edx, dword [esi + 0x1c]
mov dword [esi + 0x20], 2
cmp dword [edx + 4], 1
je 0x413bdd
mov eax, dword [edi + 0x246c]
test eax, eax
je 0x413c0b
mov eax, dword [esi + 8]
mov dword [esp + 0xc], 0
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edx, dword [edi + 0x2470]
mov eax, dword [edi + 0x246c]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esi + 0x18]
push edx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x413bc6
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
mov eax, 1
pop esi
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x413c15
pop edi
mov eax, 1
pop esi
ret 4
cmp dword [esi], 0
jne 0x413bf6
mov eax, dword [esi + 4]
test eax, eax
je 0x413bf6
mov dword [esi + 0x14], eax
pop edi
mov eax, 1
pop esi
ret 4
push 1
push ecx
mov ecx, edi
mov dword [esi + 0x20], 0
call fcn.00415000
test eax, eax
je 0x413c15
pop edi
mov eax, 1
pop esi
ret 4
pop edi
xor eax, eax
pop esi
ret 4
Function at 0x414590
Capabilities:
Read data from internet
Receive data

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
mov ecx, dword [esp + 0x10]
push ebp
mov eax, dword [ebx + 0x26c4]
push esi
push edi
mov esi, dword [eax + ecx*4]
mov ecx, 0xa
xor eax, eax
lea ebp, [esi + 0x8038]
lea edx, [esi + 0x34]
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, 0x2000
mov edi, edx
mov dword [ebp], 0x28
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x8034]
lea edi, [esi + 0x8050]
test eax, eax
mov dword [esi + 0x804c], edx
mov dword [edi], 0x8000
je 0x414620
mov edx, dword [eax + 0x10]
mov ecx, dword [eax + 0x18]
sub edx, ecx
mov ecx, dword [eax + 0x14]
sbb ecx, dword [eax + 0x1c]
sub edx, dword [eax + 8]
sbb ecx, dword [eax + 0xc]
mov eax, edx
add eax, 1
adc ecx, 0
ja 0x41460b
cmp eax, 0x8000
jbe 0x41461a
mov eax, 0x8000
mov dword [esp + 0x14], 0
jmp 0x414661
mov dword [esp + 0x14], ecx
jmp 0x414661
mov eax, dword [ebx + 0x5ceb8]
mov ecx, dword [ebx + 0x5cebc]
cmp eax, 0xffffffff
jne 0x414635
cmp ecx, eax
je 0x414663
mov edx, dword [ebx + 0x5cec0]
sub eax, edx
mov edx, dword [ebx + 0x5cec4]
sbb ecx, edx
ja 0x41464e
cmp eax, 0x8000
jbe 0x41465d
mov eax, 0x8000
mov dword [esp + 0x14], 0
jmp 0x414661
mov dword [esp + 0x14], ecx
mov dword [edi], eax
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esi + 0x1c]
mov dword [esi + 0x20], 9
cmp dword [ecx + 4], 1
je 0x4146a8
mov edx, dword [esi + 0x18]
push esi
push 1
push ebp
push edx
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
je 0x4146da
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 4
mov ecx, dword [edi]
mov edx, dword [esi + 0x804c]
mov eax, dword [esi + 0x18]
push edi
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4146da
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4146f6
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 4
mov edx, dword [esp + 0x1c]
mov ecx, ebx
push edx
call fcn.00414ac0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4
Function at 0x414e80
Capabilities:
Send data
Send http request

Disassembly:
mov eax, 0x5154
call fcn.00495c50
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x246c]
push edi
test eax, eax
mov ebp, 0x4dfb40
je 0x414ea4
mov ebp, str.POST
mov ax, word [0x4f04e0]
mov esi, dword [esp + 0x5168]
mov word [esp + 0x44], ax
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x46]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0x44]
mov dword [esp + 0x14], 0x4dfb2c
mov dword [esp + 0x18], 0
lea ecx, [eax + 0x1048]
add eax, 0x48
push ecx
push eax
push 0x4de7b4
push 0x7ff
push edx
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov ecx, dword [ebx + 0x62854]
add esp, 0x14
test ecx, ecx
mov eax, 0x8400c300
je 0x414f0f
mov eax, 0x8408c300
mov ecx, dword [esi + 0x1c]
cmp dword [ecx + 4], 4
jne 0x414f1d
or eax, 0x803000
mov ecx, dword [esi + 0x14]
push esi
lea edx, [esp + 0x18]
push eax
push edx
push 0
lea eax, [esp + 0x54]
push str.HTTP_1.1
push eax
push ebp
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
test eax, eax
mov dword [esi + 0x18], eax
je 0x414feb
mov dx, word [0x4f04e0]
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov ecx, 0x1047
lea edi, [esp + 0x1046]
mov word [esp + 0x1044], dx
push 0x208f
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x1048]
mov ecx, ebx
push eax
push esi
mov dword [esp + 0x28], 0x28
call fcn.00415100
lea edx, [esp + 0x1044]
lea ecx, [esp + 0x1044]
push edx
mov dword [esp + 0x28], ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ecx, dword [esi + 0x18]
add esp, 4
mov dword [esp + 0x28], eax
lea eax, [esp + 0x10]
push 4
push eax
push 2
push ecx
mov dword [esp + 0x20], 0x3a98
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov eax, dword [esi + 0x18]
push esi
push 1
lea edx, [esp + 0x24]
push 0
push edx
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5154
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x5154
ret 4
Function at 0x415ac0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x210
mov ax, word [0x4f04e0]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov word [esp + 0x18], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1a]
rep stosd dword es:[edi], eax
xor ebp, ebp
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
stosw word es:[edi], ax
call dword [sym.imp.MSVCRT.dll_wcslen]
mov edx, dword [esi + 4]
mov edi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 4
shl edi, 1
mov ecx, edi
push 2
neg ecx
push ebp
push ecx
push edx
call ebx
mov edx, dword [esi + 4]
lea eax, [esp + 0x10]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push eax
lea ecx, [esp + 0x20]
push edi
push ecx
push edx
call ebp
cmp edi, dword [esp + 0x10]
jne 0x415b95
lea eax, [esp + 0x18]
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
jne 0x415b95
mov edx, dword [esp + 0x10]
mov ecx, 0xfffffffc
push 1
sub ecx, edx
mov edx, dword [esi + 4]
push eax
push ecx
push edx
call ebx
mov edx, dword [esi + 4]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x1c]
push 4
push ecx
push edx
call ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 4]
add eax, ecx
push 1
push 0
neg eax
push eax
push edx
call ebx
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret

Function at 0x415ba0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0x26d4]
mov dword [esp + 0xc], edi
cmp eax, edi
jne 0x415bbd
mov dword [esp + 8], edi
jmp 0x415bcc
mov ecx, dword [esi + 0x26d8]
sub ecx, eax
sar ecx, 2
mov dword [esp + 8], ecx
mov edx, dword [esi + 4]
push 2
push edi
push edi
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 8], edi
je 0x415c73
mov edx, dword [esi + 4]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
lea eax, [esp + 0x14]
push edi
push eax
lea ecx, [esp + 0x18]
push 4
push ecx
push edx
call ebx
mov ebp, 4
mov eax, dword [esi + 0x26d4]
test eax, eax
je 0x415c36
mov ecx, dword [esi + 0x26d8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jae 0x415c36
mov ecx, dword [eax + edi*4]
lea edx, [esp + 0x14]
push 0
push edx
mov edx, dword [esi + 4]
push 0x20
push ecx
push edx
call ebx
add ebp, 0x20
inc edi
jmp 0x415c04
mov edx, dword [esi + 4]
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x18]
push 4
push ecx
push edx
mov dword [esp + 0x24], ebp
call ebx
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
call dword [sym.imp.MSVCRT.dll_wcslen]
mov edx, dword [esi + 4]
add esp, 4
lea ecx, [esp + 0x14]
shl eax, 1
push 0
push ecx
push eax
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
push edx
call ebx
pop ebp
pop ebx
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
pop esi
add esp, 8
ret
Function at 0x416000
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov eax, dword [ebx + 0x1c]
mov ebp, dword [ebx + 0x8050]
mov esi, ecx
push edi
cmp dword [eax + 4], 1
jne 0x41601c
mov ebp, dword [ebx]
mov eax, dword [esi + 0x26e0]
xor edi, edi
cmp eax, edi
je 0x4160f2
mov ecx, esi
call fcn.00415ac0
mov edi, dword [ebx + 0x8034]
push 0
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0x18]
mov edx, dword [edi + 0x1c]
add ecx, eax
mov eax, dword [edi + 0xc]
adc eax, edx
mov edx, eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push ecx
mov ecx, dword [esi + 4]
sar edx, 0x1f
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x416077
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x416140
mov eax, dword [esi + 4]
lea edx, [esp + 0x18]
push 0
push edx
add ebx, 0x34
push ebp
push ebx
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x416140
mov eax, dword [esp + 0x18]
cmp eax, ebp
jne 0x416140
mov ebp, dword [edi + 0x18]
add ebp, eax
mov eax, 0
mov dword [edi + 0x18], ebp
mov ebx, dword [edi + 0x1c]
adc ebx, eax
mov dword [edi + 0x1c], ebx
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x5cec0]
add edx, ecx
mov dword [esi + 0x5cec0], edx
mov ecx, dword [esi + 0x5cec4]
adc ecx, eax
mov dword [esi + 0x5cec4], ecx
mov ecx, esi
call fcn.00415ba0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 4
mov eax, dword [esi + 4]
lea edx, [esp + 0x18]
push edi
push edx
add ebx, 0x34
push ebp
push ebx
push eax
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x416140
mov eax, dword [esp + 0x18]
cmp eax, ebp
jne 0x416140
mov ecx, dword [esi + 0x5cec0]
add ecx, eax
mov dword [esi + 0x5cec0], ecx
mov eax, dword [esi + 0x5cec4]
adc eax, edi
pop edi
mov dword [esi + 0x5cec4], eax
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4