joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e421
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.0049da40
push dword [edi + 0x28]
mov ebp, eax
mov dword [esp + 0x14], ebp
call fcn.0049da40
mov dword [esp + 0x14], eax
call fcn.00478be0
mov esi, eax
test esi, esi
je 0x41e552
push ebx
push pe_nt_image_headers32
push 2
push ebx
push 1
push 0xc0000000
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x41e547
test byte [edi + 0x1c], 2
mov dword [edi + 0x10], ebp
jne 0x41e498
push 1
push 0x34
push esi
call fcn.00478c70
add esp, 0xc
mov eax, dword [0x4ffb9c]
test eax, eax
je 0x41e4b0
push eax
push 0x2714
push esi
call fcn.00478c70
add esp, 0xc
mov eax, dword [0x4ffba0]
test eax, eax
je 0x41e4e1
cmp dword [0x4ffba4], ebx
je 0x41e4e1
push eax
push 0x27bf
push esi
call fcn.00478c70
push dword [0x4ffba4]
push 0x27c0
push esi
call fcn.00478c70
add esp, 0x18
push dword [esp + 0x10]
push 0x2712
push esi
call fcn.00478c70
push dword [esp + 0x20]
push 0x2722
push esi
call fcn.00478c70
push 0x41e58c
push 0x4e2b
push esi
call fcn.00478c70
push edi
push 0x2711
push esi
call fcn.00478c70
push esi
call fcn.00478c60
add esp, 0x34
test eax, eax
jne 0x41e532
xor ebx, ebx
mov dword [edi + 4], 0xfffffffe
inc ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x41e547
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call fcn.00478bc0
mov ebp, dword [esp + 0x14]
pop ecx
cmp dword [edi + 4], 0xfffffffe
je 0x41e565
cmp dword [edi + 4], 0xfffffffc
je 0x41e565
mov dword [edi + 4], 0xfffffffd
push ebp
call fcn.0049da30
push dword [esp + 0x14]
call fcn.0049da30
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
pop ecx
ret

Function at 0x41e6b3
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push edi
xor edi, edi
inc edi
cmp dword [0x4ffbb4], 0
jne 0x41e6df
push 0x41e602
push 0x10
push 0x2c
mov dword [0x4ffbb4], edi
call fcn.0042f515
mov dword [0x4ffbb0], eax
cmp word [0x4ffba8], 0
jne 0x41e77b
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WSOCK32.DLL_WSAStartup]
test eax, eax
jne 0x41e70a
mov word [0x4ffba8], di
jmp 0x41e712
xor eax, eax
mov word [0x4ffba8], ax
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x4ffbc4], eax
test eax, eax
je 0x41e77b
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4a5768
push eax
call esi
push 0x4a5774
push dword [0x4ffbc4]
mov dword [0x4ffbb8], eax
call esi
push str.getnameinfo
push dword [0x4ffbc4]
mov dword [0x4ffbbc], eax
call esi
cmp dword [0x4ffbb8], 0
mov dword [0x4ffbc0], eax
pop esi
je 0x41e77b
cmp dword [0x4ffbbc], 0
je 0x41e77b
test eax, eax
je 0x41e77b
mov dword [0x4ffbac], edi
movsx eax, word [0x4ffba8]
pop edi
add esp, 0x190
ret
Function at 0x422d26
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x500bbc]
call fcn.0042f442
mov ebx, eax
test ebx, ebx
je 0x422d8a
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x422d4f
push dword [esp + 0xc]
push ebx
call eax
jmp 0x422d8a
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.004300d0
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 sub.MSVCRT.dll_wcslen
pop ecx
sub edi, eax
push edi
call fcn.004301a0
pop edi
pop esi
pop ebx
ret 8

Function at 0x423c77
Capabilities:
Check os version

Disassembly:
sub esp, 0x34c
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x114
push eax
mov esi, 0xc8
xor ebx, ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x423dcf
mov eax, dword [esp + 0x20]
dec eax
je 0x423db2
dec eax
jne 0x423dcf
lea eax, [esp + 0x124]
xor ebp, ebp
push eax
call fcn.00423c30
pop ecx
test eax, eax
je 0x423ce3
mov ebx, dword [esp + 0x128]
mov edi, dword [esp + 0x12c]
cmp byte [esp + 0x23e], 1
jmp 0x423d10
lea eax, [esp + 0x240]
mov dword [esp + 0x240], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x423d15
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
cmp byte [esp + 0x35a], 1
jne 0x423d15
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x423dae
dec ebx
je 0x423daa
dec ebx
je 0x423d89
dec ebx
je 0x423d43
sub ebx, 4
jne 0x423dcf
test edi, edi
jne 0x423dcf
push 0x6e
jmp 0x423dce
sub edi, 0
je 0x423d7b
dec edi
je 0x423d6d
dec edi
je 0x423d5f
dec edi
jne 0x423dcf
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x423dcf
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x423dcf
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x423dcf
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x423dcf
sub edi, 0
je 0x423da6
dec edi
je 0x423da2
dec edi
jne 0x423dcf
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x423dcf
push 0x3c
jmp 0x423dce
push 0x32
jmp 0x423dce
push 0x14
jmp 0x423dce
push 5
jmp 0x423dce
mov eax, dword [esp + 0x18]
test eax, eax
je 0x423dcc
cmp eax, 0xa
je 0x423dc8
cmp eax, 0x5a
jne 0x423dcf
push 0x28
jmp 0x423dce
push 0x1e
jmp 0x423dce
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x34c
ret
Function at 0x4250a7
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
call dword [sym.imp.USER32.DLL_GetFocus]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
mov ebx, eax
test ebx, ebx
je 0x425121
push 9
call esi
test al, al
jns 0x425121
push 0x11
call esi
test al, al
js 0x425121
push 0x10
call esi
test al, al
js 0x425121
push 0x12
call esi
test al, al
js 0x425121
push 5
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.USER32.DLL_GetClassNameW]
push 4
lea eax, [ebp - 0x10]
push str.Rich
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x425121
push eax
push eax
push 0x44e
push ebx
call dword [sym.imp.USER32.DLL_SendMessageW]
test eax, 0x800
jne 0x425121
xor eax, eax
jmp 0x4251a2
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x425149
push 0x11
call esi
test al, al
js 0x425141
push 0x10
call esi
test al, al
js 0x425141
push 0x12
call esi
test al, al
jns 0x425149
push 1
push edi
call fcn.004251aa
mov esi, dword [sym.imp.USER32.DLL_GetPropW]
test ebx, ebx
je 0x42515f
push str.PB_Hotkey
push ebx
call esi
test eax, eax
jne 0x42519f
push str.PB_WindowID
push edi
call esi
mov esi, eax
test esi, esi
je 0x42519f
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x42519f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 4], eax
jne 0x42519f
lea eax, [esi - 1]
push eax
push dword [0x500bcc]
call fcn.0042f442
test eax, eax
je 0x42519f
mov eax, dword [eax + 8]
jmp 0x4251a1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42533b
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x4253b3
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcslen
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x425394
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x425391
cmp ecx, 0x5c
je 0x425391
cmp ecx, 0x2f
jne 0x42539e
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x42537e
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x4253b5
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x4253bb
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x4253e4
test byte [esp + 8], 2
je 0x4253d8
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 0x4253e6
xor eax, eax
ret 8
Function at 0x4257f2
Capabilities:
Copy file

Disassembly:
cmp dword [esp + 4], 0
je 0x425812
cmp dword [esp + 8], 0
je 0x425812
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x425814
xor eax, eax
ret 8

Function at 0x425827
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 0x425962
push ebp
xor ebp, ebp
cmp word [eax], bp
je 0x425961
push 0x104
push eax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [esp + 0x220], ax
lea eax, [esp + 0x18]
push eax
call sub.MSVCRT.dll_wcslen
mov ecx, eax
add esp, 0x10
lea eax, [esp + ecx*2 + 0xa]
cmp ecx, 2
je 0x425883
cmp ecx, 3
jne 0x4258bd
cmp word [esp + 0xe], 0x3a
jne 0x4258bd
cmp ecx, 2
jne 0x4258a1
lea eax, [esp + 0xc]
push 0x4a5cc8
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x425961
push 0xfffffffffffffffe
pop edi
jmp 0x425961
push ebx
push 0x5c
pop ebx
movzx ecx, word [eax]
cmp cx, bx
je 0x4258ce
cmp ecx, 0x2f
jne 0x4258d8
xor ecx, ecx
mov word [eax], cx
sub eax, 2
jmp 0x4258c1
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x425919
test byte [esp + 0x21c], 0x10
je 0x4258fe
push 0xfffffffffffffffe
pop edi
jmp 0x425910
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
or esi, ebp
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x425960
cmp word [esp + 0x10], bx
jne 0x425927
cmp word [esp + 0x12], bx
je 0x425938
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x425960
cmp word [esp + 0x12], ax
jne 0x425960
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x42594d
test al, 0x10
je 0x425960
jmp 0x42595d
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x425960
push 0xfffffffffffffffe
pop edi
pop ebx
pop ebp
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4

Function at 0x425a50
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 0x425a8c
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 0x425eb0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x425f15
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x425f0d
push dword [esp + 0x10]
push dword [0x500be0]
call fcn.0042f442
test eax, eax
je 0x425f03
cmp dword [eax + 4], 0
je 0x425ef2
push edi
push esi
push eax
call fcn.004261c0
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea ecx, [esp + 0xc]
push ecx
push edi
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
pop edi
xor eax, eax
pop esi
pop ecx
ret 0xc
xor eax, eax
pop esi
pop ecx
ret 0xc

Function at 0x426070
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0x500be0]
call fcn.0042f442
mov esi, eax
test esi, esi
je 0x4260ef
cmp dword [esi + 4], 0
je 0x4260c0
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.00426880
test eax, eax
je 0x4260b4
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 0x4260fa
cmp dword [esp + 8], 0
je 0x4260fa
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 0x426160
Capabilities:
Read file on windows

Disassembly:
push ecx
push dword [esp + 8]
mov dword [esp + 4], 0
push dword [0x500be0]
call fcn.0042f442
test eax, eax
je 0x4261ac
cmp dword [eax + 4], 0
je 0x426196
push 4
lea ecx, [esp + 4]
push ecx
push eax
call fcn.00426880
mov eax, dword [esp]
pop ecx
ret 4
push 0
lea ecx, [esp + 0xc]
push ecx
push 4
lea ecx, [esp + 0xc]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp]
pop ecx
ret 4
Function at 0x4261c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
mov dword [esp + 4], 0
cmp dword [esi + 0x1c], 0
jne 0x4262c7
cmp dword [esi + 0x14], 1
jne 0x42620b
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0xc]
push 1
neg eax
cdq
push ecx
push eax
push dword [esi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
push edi
mov edi, dword [esp + 0x20]
cmp eax, edi
jle 0x426288
mov ecx, dword [esi + 8]
add ecx, dword [esi + 4]
sub ecx, eax
mov eax, edi
dec eax
je 0x426273
dec eax
je 0x42625c
sub eax, 2
je 0x426247
push edi
push dword [esp + 0x20]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov ax, word [eax]
mov word [ecx], ax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov al, byte [eax]
mov byte [ecx], al
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
push esi
call fcn.00425a50
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x4262b5
push 0
lea eax, [esp + 0xc]
push eax
push edi
push dword [esp + 0x28]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0xc
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
push edi
push dword [esp + 0x20]
add ecx, eax
jmp 0x426231
xor eax, eax
pop esi
add esp, 0xc
ret 0xc
Function at 0x4262d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x4fedf4]
mov dword [esp + 0x14], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x426454
mov cl, byte [esp + 3]
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x28]
push esi
push edi
mov esi, edx
mov edi, edi
cmp ebp, 0xffffffff
je 0x42631e
test ebp, ebp
je 0x4263c0
dec ebp
cmp dword [ebx + 4], 0
je 0x426337
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.00426880
mov dword [esp + 0x14], eax
jmp 0x426351
push 0
lea eax, [esp + 0x18]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov cl, byte [esp + 0x13]
cmp eax, 1
jne 0x4263c0
test cl, cl
je 0x426365
mov byte [esi], cl
inc esi
mov cl, byte [esp + 0x13]
mov eax, dword [esp + 0x18]
mov edi, esi
mov edx, dword [esp + 0x20]
dec eax
sub edi, edx
cmp edi, eax
jle 0x4263a0
mov eax, dword [esp + 0x18]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x4fedf4]
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x13]
mov edx, eax
mov dword [esp + 0x20], edx
lea esi, [edi + edx]
test cl, cl
je 0x4263c0
cmp dword [esp + 0x2c], 0
jne 0x426310
cmp cl, 0xd
je 0x4263c7
cmp cl, 0xa
jne 0x426310
dec esi
jmp 0x426437
cmp dword [esp + 0x2c], 0
jne 0x426437
cmp cl, 0xa
jne 0x4263cf
dec esi
jmp 0x426437
cmp cl, 0xd
jne 0x426437
dec esi
cmp dword [ebx + 4], 0
je 0x4263ee
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.00426880
mov dword [esp + 0x14], eax
jmp 0x426404
push 0
lea eax, [esp + 0x18]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x426437
cmp dword [ebx + 4], 0
je 0x426416
inc dword [ebx + 0xc]
jmp 0x426437
push 1
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebx]
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, esi
sub ecx, dword [esp + 0x20]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x1c]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor eax, eax
add esp, 0x14
ret 0x10
Function at 0x426460
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push 0x1000
push 0
push dword [0x4fedf4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov dword [esp + 8], ecx
test ecx, ecx
je 0x42660d
mov ax, word [esp]
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], 0x1000
mov dword [esp + 0x1c], 0x7ff
cmp ebp, 0xffffffff
je 0x4264b4
test ebp, ebp
je 0x42656d
dec ebp
cmp dword [ebx + 4], 0
je 0x4264cd
push 2
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.00426880
mov dword [esp + 0x14], eax
jmp 0x4264e7
push 0
lea eax, [esp + 0x18]
push eax
push 2
lea eax, [esp + 0x1c]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
cmp eax, 2
mov ax, word [esp + 0x10]
jne 0x42656d
test ax, ax
je 0x426501
mov word [edi], ax
add edi, 2
mov ax, word [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov esi, edi
mov edx, dword [esp + 0x1c]
sub esi, ecx
sar esi, 1
cmp esi, edx
jle 0x426548
mov eax, dword [esp + 0x20]
add edx, 0x800
add eax, 0x1000
mov dword [esp + 0x1c], edx
push eax
push ecx
push 8
push dword [0x4fedf4]
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, eax
mov ax, word [esp + 0x10]
mov dword [esp + 0x18], ecx
lea edi, [ecx + esi*2]
test ax, ax
je 0x42656d
cmp dword [esp + 0x30], 0
jne 0x4264a6
cmp ax, 0xd
je 0x426574
cmp ax, 0xa
jne 0x4264a6
sub edi, 2
jmp 0x4265ec
cmp dword [esp + 0x30], 0
jne 0x4265ec
cmp ax, 0xa
jne 0x42657f
sub edi, 2
jmp 0x4265ec
cmp ax, 0xd
jne 0x4265ec
sub edi, 2
cmp dword [ebx + 4], 0
je 0x4265a1
push 2
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.00426880
mov dword [esp + 0x14], eax
jmp 0x4265b7
push 0
lea eax, [esp + 0x18]
push eax
push 2
lea eax, [esp + 0x1c]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp word [esp + 0x10], 0xa
je 0x4265ec
cmp dword [ebx + 4], 0
je 0x4265cb
add dword [ebx + 0xc], 2
jmp 0x4265ec
push 1
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 0xfffffffe
push eax
push 0xfffffffffffffffe
push dword [ebx]
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x38]
mov ecx, edi
sub ecx, dword [esp + 0x18]
sar ecx, 1
mov dword [eax], ecx
xor eax, eax
mov word [edi], ax
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10
xor eax, eax
add esp, 0x18
ret 0x10
Function at 0x426620
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x4fedf4]
mov dword [esp + 0x10], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0xc], edx
test edx, edx
je 0x426770
mov eax, dword [esp + 0x1c]
mov cl, byte [esp + 3]
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, edx
cmp edi, 0xffffffff
je 0x42666c
test edi, edi
je 0x4266dd
dec edi
push esi
push ebp
call fcn.004269a0
mov dword [esp + 0x20], eax
test eax, eax
jne 0x42667f
xor cl, cl
jmp 0x426681
mov cl, byte [esi]
mov edx, dword [esp + 0x1c]
add esi, eax
mov eax, dword [esp + 0x14]
mov ebx, esi
sub ebx, edx
mov byte [esp + 0x13], cl
add eax, 0xfffffffb
cmp ebx, eax
jle 0x4266c4
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x4fedf4]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x13]
mov edx, eax
mov dword [esp + 0x1c], edx
lea esi, [ebx + edx]
mov eax, dword [esp + 0x2c]
test cl, cl
je 0x4266dd
test eax, eax
jne 0x426662
cmp cl, 0xd
je 0x4266e1
cmp cl, 0xa
jne 0x426662
dec esi
jmp 0x426753
test eax, eax
jne 0x426753
cmp cl, 0xa
jne 0x4266e9
dec esi
jmp 0x426753
cmp cl, 0xd
jne 0x426753
dec esi
cmp dword [ebp + 4], 0
je 0x426708
push 1
lea eax, [esp + 0x17]
push eax
push ebp
call fcn.00426880
mov dword [esp + 0x20], eax
jmp 0x42671f
push 0
lea eax, [esp + 0x24]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x426753
cmp dword [ebp + 4], 0
je 0x426731
inc dword [ebp + 0xc]
jmp 0x426753
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebp]
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, esi
sub ecx, dword [esp + 0x1c]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor eax, eax
add esp, 0x14
ret 0x10
Function at 0x426780
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x426874
cmp word [edx], 0
je 0x426874
mov ecx, dword [esp + 0x10]
push esi
cmp ecx, 0x19
jne 0x42680d
mov esi, dword [esp + 0xc]
mov ecx, edx
push edi
cmp dword [esi + 4], 0
lea edi, [ecx + 2]
je 0x4267e0
jmp 0x4267c0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4267c0
sub ecx, edi
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.004261c0
pop edi
pop esi
pop ecx
ret 0xc
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4267e0
sub ecx, edi
lea eax, [esp + 8]
push 0
sar ecx, 1
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
xor eax, eax
cmp ecx, 2
lea ecx, [esp + 0x10]
setne al
push ecx
dec eax
and eax, 0xfde9
push edx
push eax
call fcn.00426ab0
mov esi, eax
test esi, esi
je 0x42686b
mov eax, dword [esp + 0xc]
cmp dword [eax + 4], 0
je 0x426848
push dword [esp + 0x10]
push esi
push eax
call fcn.004261c0
mov dword [esp + 4], eax
jmp 0x42685c
push 0
lea ecx, [esp + 8]
push ecx
push dword [esp + 0x18]
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
push 0
push dword [0x4fedf4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 0xc
xor eax, eax
pop ecx
ret 0xc