joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42d046
Capabilities:
Delete file

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
xor ebx, ebx
mov eax, dword [edi + 0xc]
push dword [edi + 8]
mov dword [esp + 0x20], eax
call fcn.004d84b0
push dword [edi + 0x40]
mov ebp, eax
mov dword [esp + 0x14], ebp
call fcn.004d84b0
mov dword [esp + 0x14], eax
call fcn.004933b0
mov esi, eax
xor eax, eax
inc eax
test esi, esi
je 0x42d1a5
push ebx
push pe_nt_image_headers32
push 2
push ebx
push eax
push 0xc0000000
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x42d197
test byte [edi + 0x24], 2
mov dword [edi + 0x10], ebp
jne 0x42d0bf
push 1
push 0x34
push esi
call fcn.00496590
add esp, 0xc
mov eax, dword [0x53ff00]
test eax, eax
je 0x42d0d7
push eax
push 0x2714
push esi
call fcn.00496590
add esp, 0xc
mov eax, dword [0x53ff04]
test eax, eax
je 0x42d108
cmp dword [0x53ff08], ebx
je 0x42d108
push eax
push 0x27bf
push esi
call fcn.00496590
push dword [0x53ff08]
push 0x27c0
push esi
call fcn.00496590
add esp, 0x18
push dword [esp + 0x10]
push 0x2712
push esi
call fcn.00496590
push dword [esp + 0x20]
push 0x2722
push esi
call fcn.00496590
push 0x42d1e8
push 0x4e2b
push esi
call fcn.00496590
push edi
push 0x2711
push esi
call fcn.00496590
push dword [edi + 0x28]
push 0x9c
push esi
call fcn.00496590
push dword [edi + 0x2c]
push 0x9b
push esi
call fcn.00496590
add esp, 0x48
push 1
push 0x63
push esi
call fcn.00496590
push esi
call fcn.00493450
add esp, 0x10
test eax, eax
jne 0x42d182
cmp dword [edi + 4], 0xfffffffb
push 1
pop eax
cmovne ebx, eax
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x42d197
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call fcn.00493390
mov ebp, dword [esp + 0x14]
xor eax, eax
pop ecx
inc eax
cmp ebx, eax
jne 0x42d1b2
mov dword [edi + 4], 0xfffffffe
jmp 0x42d1c1
xor ecx, ecx
cmp dword [edi + 4], 0xfffffffb
setne cl
add ecx, 0xfffffffc
mov dword [edi + 4], ecx
push ebp
call fcn.004d84a0
push dword [esp + 0x14]
call fcn.004d84a0
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
pop ecx
ret
Function at 0x42d3d9
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push 0x42d32c
push 0x10
push 0x2c
call fcn.0043a2b8
push 0
push 0
push 8
mov dword [0x53ff24], eax
call fcn.0043a1b2
cmp word [0x53ff1c], 0
mov dword [0x541894], eax
jne 0x42d4b9
lea eax, [esp]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
push str.ws2_32.dll
sbb eax, eax
inc eax
mov word [0x53ff1c], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x53ff28], eax
test eax, eax
je 0x42d4b9
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x514bb0
push eax
call esi
push 0x514bbc
push dword [0x53ff28]
mov dword [0x53ff0c], eax
call esi
push str.getnameinfo
push dword [0x53ff28]
mov dword [0x53ff10], eax
call esi
push str.WSAStringToAddressA
push dword [0x53ff28]
mov dword [0x53ff14], eax
call esi
cmp dword [0x53ff0c], 0
mov ecx, eax
mov dword [0x53ff18], ecx
pop esi
je 0x42d4b9
cmp dword [0x53ff10], 0
je 0x42d4b9
cmp dword [0x53ff14], 0
je 0x42d4b9
mov eax, dword [0x53ff20]
xor edx, edx
inc edx
test ecx, ecx
cmovne eax, edx
mov dword [0x53ff20], eax
add esp, 0x190
ret

Function at 0x42dde6
Capabilities:
Get graphical window text

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push edi
xor edi, edi
push edi
push edi
push 0x147
push dword [ebp]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
or eax, 0xffffffff
cmp ebx, eax
je 0x42de75
push 0xfffffffffffffff0
push dword [ebp]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test al, 1
jne 0x42de75
push esi
push dword [ebp]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
lea ecx, [esi*2 + 2]
push ecx
push edi
push dword [0x53e874]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
lea ecx, [esi + 1]
push ecx
xor eax, eax
push edi
mov word [edi], ax
push dword [ebp]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push edi
or esi, 0xffffffff
push esi
push 0x158
push dword [ebp]
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 0
push dword [0x53e874]
cmp eax, esi
cmove ebx, esi
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop edi
mov eax, ebx
pop ebp
cdq
pop ebx
ret 4

Function at 0x42eb03
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x5418bc]
call fcn.0043a214
mov ebx, eax
test ebx, ebx
je 0x42eb67
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x42eb2c
push dword [esp + 0xc]
push ebx
call eax
jmp 0x42eb67
push esi
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push dword [esp + 0x14]
mov edi, eax
push edi
call fcn.0043b110
mov esi, eax
lea ecx, [edi + 1]
push ecx
xor eax, eax
push esi
mov word [esi], ax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
call fcn.00412673
pop ecx
sub edi, eax
push edi
call fcn.0043b1b0
pop edi
pop esi
pop ebx
ret 8
Function at 0x42fdc6
Capabilities:
Check os version

Disassembly:
sub esp, 0x34c
push ebp
push esi
push edi
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x114
push eax
mov esi, 0xc8
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x42ff2f
mov eax, dword [esp + 0x1c]
sub eax, 1
je 0x42ff12
sub eax, 1
jne 0x42ff2f
lea eax, [esp + 0x120]
xor edi, edi
push eax
call fcn.0042fd7f
pop ecx
test eax, eax
je 0x42fe3d
cmp byte [esp + 0x23a], 1
mov ecx, dword [esp + 0x124]
mov eax, dword [esp + 0x128]
mov ebp, dword [esp + 0x12c]
jne 0x42fe73
inc edi
jmp 0x42fe73
lea eax, [esp + 0x23c]
mov dword [esp + 0x23c], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x42ff2f
mov ecx, dword [esp + 0x10]
xor edx, edx
mov eax, dword [esp + 0x14]
inc edx
cmp byte [esp + 0x356], dl
cmove edi, edx
sub ecx, 3
je 0x42ff0e
sub ecx, 1
je 0x42ff0a
sub ecx, 1
je 0x42feec
sub ecx, 1
je 0x42feb0
sub ecx, 4
jne 0x42ff2f
test eax, eax
jne 0x42ff2f
cmp ebp, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x42ff2f
sub eax, 0
je 0x42fedf
sub eax, 1
je 0x42fed2
sub eax, 1
je 0x42fecb
sub eax, 1
jne 0x42ff2f
push 0x69
pop esi
push 0x64
jmp 0x42fee4
push 0x5a
pop esi
push 0x5f
jmp 0x42fed7
push 0x50
pop esi
push 0x55
test edi, edi
pop eax
cmove esi, eax
jmp 0x42ff2f
push 0x4b
pop esi
push 0x46
test edi, edi
pop eax
cmovne esi, eax
jmp 0x42ff2f
sub eax, 0
je 0x42ff06
sub eax, 1
je 0x42ff02
sub eax, 1
jne 0x42ff2f
push 0x41
pop esi
push 0x3c
jmp 0x42fee4
push 0x3c
jmp 0x42ff2e
push 0x32
jmp 0x42ff2e
push 0x14
jmp 0x42ff2e
push 5
jmp 0x42ff2e
mov eax, dword [esp + 0x14]
test eax, eax
je 0x42ff2c
cmp eax, 0xa
je 0x42ff28
cmp eax, 0x5a
jne 0x42ff2f
push 0x28
jmp 0x42ff2e
push 0x1e
jmp 0x42ff2e
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x34c
ret
Function at 0x430fd1
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
xor edi, edi
call dword [sym.imp.USER32.dll_GetFocus]
mov ebp, dword [esp + 0x3c]
mov ebx, eax
and dword [esp + 0x10], edi
push str.PB_WindowID
push ebp
call dword [sym.imp.USER32.dll_GetPropW]
mov esi, eax
push 9
pop eax
test esi, esi
je 0x431067
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x431064
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x431064
lea eax, [esi - 1]
push eax
push dword [0x5418cc]
call fcn.0043a214
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x431066
mov ecx, dword [edi + 4]
add ecx, 4
pop esi
cmp word [ecx - 2], si
jne 0x431054
mov edx, 0xfa01
cmp word [ecx], dx
je 0x43105f
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x431044
jmp 0x431064
and dword [esp + 0x10], 0
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x43110d
push eax
call esi
test al, al
jns 0x43110d
push 0x11
call esi
test al, al
js 0x43110d
push 0x10
call esi
test al, al
js 0x43110d
push 0x12
call esi
test al, al
js 0x43110d
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x43110d
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call fcn.00413d77
add esp, 0xc
test eax, eax
je 0x4310e1
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call fcn.00413d77
add esp, 0xc
test eax, eax
jne 0x4310f8
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x43114e
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call fcn.004eea72
pop ecx
pop ecx
test eax, eax
je 0x43114e
test ebp, ebp
je 0x431131
push 0x11
call esi
test al, al
js 0x431129
push 0x10
call esi
test al, al
js 0x431129
push 0x12
call esi
test al, al
jns 0x431131
push 1
push ebp
call fcn.0043115a
test ebx, ebx
je 0x431145
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x43114e
test edi, edi
je 0x43114e
mov eax, dword [edi + 8]
jmp 0x431150
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4

Function at 0x433bc0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x433bf8
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x433bf3
xor eax, eax
cmp dword [esp + 0xc], esi
pop edi
sete al
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call fcn.00420bb0
add dword [edi + 8], esi
add esp, 0xc
mov eax, 1
pop edi
pop esi
ret
Function at 0x43721e
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x437247
test byte [esp + 8], 2
je 0x43723b
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x437249
xor eax, eax
ret 8

Function at 0x43725a
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x4373a2
xor ecx, ecx
cmp word [eax], cx
je 0x4373a2
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call fcn.004fcbf3
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call fcn.00412673
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x4372b3
cmp eax, 3
jne 0x4372ed
cmp word [esp + 0xa], 0x3a
jne 0x4372ed
cmp eax, 2
jne 0x4372d1
lea eax, [esp + 8]
push 0x50f398
push eax
call fcn.004eead4
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4373a2
push 0xfffffffffffffffe
pop edi
jmp 0x4373a2
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x437302
cmp ax, bx
jne 0x43730c
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x4372f5
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x43734b
test byte [esp + 0x21c], 0x10
je 0x437332
push 0xfffffffffffffffe
pop edi
jmp 0x437342
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4373a0
cmp word [esp + 0x10], bp
jne 0x437359
cmp word [esp + 0x12], bp
je 0x437378
cmp word [esp + 0x10], bx
jne 0x437367
cmp word [esp + 0x12], bx
je 0x437378
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x4373a0
cmp word [esp + 0x12], ax
jne 0x4373a0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x43738d
test al, 0x10
je 0x4373a0
jmp 0x43739d
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4373a0
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4

Function at 0x4373b1
Capabilities:
Copy file

Disassembly:
cmp dword [esp + 4], 0
je 0x4373d1
cmp dword [esp + 8], 0
je 0x4373d1
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x4373d3
xor eax, eax
ret 8
Function at 0x4373e6
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x43745e
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call fcn.004fcbf3
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.00412673
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x43743f
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x43743c
cmp ecx, 0x5c
je 0x43743c
cmp ecx, 0x2f
jne 0x437449
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x437429
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x437460
xor eax, eax
leave
ret 4

Function at 0x4374d6
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebx
mov ebx, eax
mov eax, dword [0x5404ec]
push esi
push edi
test eax, eax
jne 0x4374fc
push fcn.00437605
push 0x10
push 0x258
call fcn.0043a2b8
mov dword [0x5404ec], eax
mov edi, dword [esp + 0x10]
push edi
push eax
call fcn.0043a23b
mov esi, eax
test esi, esi
je 0x4375fd
cmp dword [esp + 0x14], ebx
mov eax, 0x512268
push ebp
cmovne eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
test ebp, ebp
je 0x437534
xor ecx, ecx
cmp word [ebp], cx
jne 0x43753d
mov ebp, 0x5150c0
mov dword [esp + 0x1c], ebp
push eax
call fcn.00412673
push ebp
mov dword [esp + 0x20], eax
call fcn.00412673
add eax, dword [esp + 0x20]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x53e874]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x4375ea
push dword [esp + 0x14]
push ebp
call fcn.004eeab2
pop ecx
pop ecx
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x43759d
mov eax, dword [esp + 0x14]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x43759d
push 0x50f398
push ebp
call fcn.004eead4
pop ecx
pop ecx
push dword [esp + 0x1c]
push ebp
call fcn.004eead4
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x4375c2
xor ecx, ecx
mov dword [esi + 4], ecx
jmp 0x4375d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 2
jne 0x4375d8
mov dword [esi + 4], 1
mov ebx, esi
push ebp
push ecx
push dword [0x53e874]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
jne 0x4375fc
cmp edi, 0xffffffff
cmove edi, esi
push edi
push dword [0x5404ec]
call fcn.0043a1da
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
ret 0xc
Function at 0x4376a0
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp edi, 0xffffffff
jne 0x4376b9
push dword [0x541a1c]
call fcn.0043a33f
pop edi
ret 4
push esi
push edi
push dword [0x541a1c]
call fcn.0043a214
mov esi, eax
test esi, esi
je 0x437723
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x43770f
cmp dword [esi + 0x14], 0
mov dword [esp + 0xc], 0
jne 0x4376fe
push 0
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push ecx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
push dword [esi + 4]
push 0
push dword [0x53e874]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push dword [0x541a1c]
call fcn.0043a1da
pop esi
pop edi
ret 4

Function at 0x437730
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x43776c
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4

Function at 0x437af0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x437bee
cmp word [edx], 0
je 0x437bee
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x437b1e
mov ecx, dword [esi + 0x18]
push edi
cmp ecx, 0x19
jne 0x437b74
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x437b30
sub ecx, edi
sar ecx, 1
cmp dword [esi + 4], 0
je 0x437b56
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.00437f20
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea eax, [esp + 0xc]
push eax
lea eax, [ecx + ecx]
push eax
push edx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
lea eax, [esp + 0x14]
push eax
push edx
xor edx, edx
mov eax, 0xfde9
cmp ecx, 2
cmovne eax, edx
push eax
call fcn.00438040
mov edi, eax
test edi, edi
je 0x437b6a
cmp dword [esi + 4], 0
je 0x437bc1
push dword [esp + 0x14]
push edi
push esi
call fcn.00437f20
push edi
push 0
push dword [0x53e874]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x1c]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push 0
push dword [0x53e874]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
pop ecx
ret 0xc
Function at 0x437c70
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0x541a1c]
call fcn.0043a214
mov esi, eax
test esi, esi
je 0x437cef
cmp dword [esi + 4], 0
je 0x437cc0
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.004380b0
test eax, eax
je 0x437cb4
inc dword [esi + 0xc]
xor eax, eax
pop esi
add esp, 8
ret 4
mov eax, 1
pop esi
add esp, 8
ret 4
push 0
lea eax, [esp + 0xc]
push eax
push 1
lea eax, [esp + 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x437cfa
cmp dword [esp + 8], 0
je 0x437cfa
push 1
push 0
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 4
or eax, 0xffffffff
pop esi
add esp, 8
ret 4

Function at 0x437f20
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push edi
mov edi, dword [esp + 0x10]
mov dword [esp + 0x10], 0
cmp dword [edi + 0x1c], 0
jne 0x438037
cmp dword [edi + 0x14], 1
push ebx
push ebp
jne 0x437f6d
mov eax, dword [edi + 0xc]
lea ecx, [esp + 0x10]
push 1
neg eax
cdq
push ecx
push eax
push dword [edi]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [edi + 8]
mov dword [edi + 0x14], 0
mov dword [edi + 0xc], eax
mov eax, dword [edi + 0xc]
push esi
mov esi, dword [esp + 0x24]
cmp eax, esi
jle 0x437ff6
mov ecx, dword [edi + 4]
sub ecx, eax
mov eax, esi
add ecx, dword [edi + 8]
sub eax, 1
je 0x437fdf
sub eax, 1
je 0x437fc6
sub eax, 2
je 0x437faf
push esi
push dword [esp + 0x24]
push ecx
call fcn.00420bb0
add esp, 0xc
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov eax, dword [esp + 0x20]
mov ax, word [eax]
mov word [ecx], ax
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov eax, dword [esp + 0x20]
mov al, byte [eax]
mov byte [ecx], al
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
push edi
call fcn.00437730
mov eax, dword [edi + 8]
cmp esi, eax
jl 0x438025
push 0
lea eax, [esp + 0x20]
push eax
push esi
push dword [esp + 0x2c]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x1c]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov ecx, dword [edi + 4]
sub ecx, dword [edi + 0xc]
push esi
push dword [esp + 0x24]
add ecx, eax
jmp 0x437f97
xor eax, eax
pop edi
add esp, 8
ret 0xc
Function at 0x4380b0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
cmp dword [ebx + 0x14], 0
jne 0x4380d3
push ebx
call fcn.00437730
mov dword [ebx + 0x14], 1
mov dword [ebx + 0xc], 0
mov esi, dword [ebx + 0xc]
mov eax, dword [ebx + 0x10]
mov ebp, dword [esp + 0x20]
sub eax, esi
add eax, dword [ebx + 4]
mov dword [esp + 0x10], esi
cmp esi, ebp
jl 0x438157
mov ecx, ebp
sub ecx, 1
je 0x438142
sub ecx, 1
je 0x43812b
sub ecx, 2
je 0x438116
push ebp
push eax
push dword [esp + 0x24]
call fcn.00420bb0
add esp, 0xc
mov eax, ebp
sub dword [ebx + 0xc], ebp
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
mov ecx, dword [eax]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov dword [eax], ecx
mov eax, ebp
sub dword [ebx + 0xc], ebp
pop ebp
pop ebx
pop ecx
ret 0xc
mov cx, word [eax]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov word [eax], cx
mov eax, ebp
sub dword [ebx + 0xc], ebp
pop ebp
pop ebx
pop ecx
ret 0xc
mov ecx, dword [esp + 0x1c]
mov dl, byte [eax]
mov eax, ebp
pop edi
pop esi
mov byte [ecx], dl
sub dword [ebx + 0xc], ebp
pop ebp
pop ebx
pop ecx
ret 0xc
push esi
push eax
mov eax, dword [esp + 0x24]
push eax
call fcn.00420bb0
mov eax, dword [esp + 0x28]
add esp, 0xc
mov edx, dword [ebx + 8]
add eax, esi
mov ecx, dword [ebx]
sub ebp, esi
mov dword [esp + 0x1c], eax
push 0
cmp ebp, edx
jl 0x4381a0
lea edx, [esp + 0x1c]
push edx
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x18]
pop edi
add eax, esi
mov dword [ebx + 0xc], 0
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
lea eax, [esp + 0x1c]
push eax
push edx
push dword [ebx + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [esp + 0x18]
cmp ebp, esi
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0xc], esi
mov dword [ebx + 0x10], esi
cmovle esi, ebp
push esi
push dword [ebx + 4]
push eax
call fcn.00420bb0
sub dword [ebx + 0xc], esi
add esp, 0xc
mov eax, dword [esp + 0x10]
add eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc