joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412a96
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004376a0
push 0xa0
call sub.USER32.dll_GetAsyncKeyState
mov dword [esp], eax
push 0x24
call sub.USER32.dll_GetAsyncKeyState
mov dword [esp + 4], eax
push 0x23
call sub.USER32.dll_GetAsyncKeyState
mov dword [esp + 8], eax
push 0x21
call sub.USER32.dll_GetAsyncKeyState
mov dword [esp + 0xc], eax
push 0x22
call sub.USER32.dll_GetAsyncKeyState
mov dword [esp + 0x10], eax
mov ebx, dword [esp]
and ebx, ebx
je 0x412afe
mov ebx, dword [esp + 4]
and ebx, ebx
je 0x412afe
mov eax, 1
jmp 0x412b00
xor eax, eax
and eax, eax
je 0x412b13
call fcn.0040c150
mov dword [0x77c744], 0
mov ebx, dword [esp]
and ebx, ebx
je 0x412b29
mov ebx, dword [esp + 8]
and ebx, ebx
je 0x412b29
mov eax, 1
jmp 0x412b2b
xor eax, eax
and eax, eax
je 0x412b3e
call fcn.0040b785
mov dword [0x77c744], 0
mov ebx, dword [esp]
and ebx, ebx
je 0x412b54
mov ebx, dword [esp + 0xc]
and ebx, ebx
je 0x412b54
mov eax, 1
jmp 0x412b56
xor eax, eax
and eax, eax
je 0x412b5f
call fcn.0040e1f3
mov ebx, dword [esp]
and ebx, ebx
je 0x412b75
mov ebx, dword [esp + 0x10]
and ebx, ebx
je 0x412b75
mov eax, 1
jmp 0x412b77
xor eax, eax
and eax, eax
je 0x412b80
call fcn.004111b1
xor eax, eax
add esp, 0x14
pop ebx
ret

Function at 0x416831
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
je 0x4168c9
push edi
push 0x77f320
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x77c918]
test edi, edi
je 0x41689d
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x416896
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x77c918
call fcn.004373ec
pop ecx
pop ecx
jmp 0x416898
mov edi, dword [edi]
test edi, edi
jne 0x41686d
pop ebx
mov eax, dword [0x7799b4]
mov esi, eax
inc eax
push 0x10
push 0x77c918
mov dword [0x7799b4], eax
call fcn.0043742c
pop ecx
pop ecx
push 0x77f320
mov dword [eax], ebp
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8
Function at 0x41b593
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x41b5e8
push dword [esp + 0x10]
push 0x41b512
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x77cbf0]
test esi, esi
je 0x41b641
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x41b5e0
cmp byte [esi + 0x10], 0
je 0x41b5e0
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x41b5bc
jmp 0x41b641
mov esi, dword [0x77cbf0]
test esi, esi
je 0x41b641
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x41b63a
cmp byte [esi + 0x11], 0
je 0x41b616
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x41b62d
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebp
push 0x77cbf0
call fcn.004373ec
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x41b5f5
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x41c949
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x77f694]
call fcn.00436aae
mov edi, dword [eax + 0x24]
test edi, edi
je 0x41ca07
cmp dword [edi + 8], 1
je 0x41ca07
mov edi, dword [edi + 0xc]
test edi, edi
je 0x41ca07
mov al, byte [edi]
cmp al, 0x20
je 0x41c982
cmp al, 9
jne 0x41c985
inc edi
jmp 0x41c978
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor eax, eax
push eax
push eax
push 0xffffffffffffffff
push edi
push eax
push 0xfde9
call esi
push dword [esp + 0x14]
mov ebx, eax
lea ecx, [ebx - 1]
push ecx
call fcn.00437860
push ebx
mov ebp, eax
push ebp
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call esi
test ebx, ebx
jle 0x41c9d6
push 9
pop edx
lea eax, [ebp - 2]
lea eax, [eax + ebx*2]
movzx ecx, word [eax]
push 0x20
pop esi
cmp cx, si
je 0x41c9f2
cmp cx, dx
je 0x41c9f2
pop edi
pop esi
pop ebp
pop ebx
ret 4
movzx ecx, word [eax]
cmp cx, si
je 0x41c9ea
cmp cx, dx
jne 0x41c9f6
xor ecx, ecx
mov word [eax], cx
sub eax, 2
cmp eax, ebp
jae 0x41c9dd
push ebp
call sub.MSVCRT.dll_wcslen
pop ecx
sub ebx, eax
push ebx
call fcn.00437940
jmp 0x41c9d6
pop edi
pop esi
pop ebp
pop ebx
jmp fcn.00437970
Function at 0x41e630
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x77cc04], 0
jne 0x41e63e
call fcn.0041e5b0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x77cc08]
call esi
test eax, eax
jne 0x41e661
call fcn.0041e5b0
push dword [0x77cc08]
call esi
mov edx, dword [esp + 0x14]
lea esi, [eax + 8]
mov edi, 0x11
lea ecx, [ecx]
imul ecx, edx, 0x53a9b4fb
lea esi, [esi + 4]
mov edx, 1
sub edx, ecx
imul ecx, edx, 0x53a9b4fb
mov dword [esi + 0x40], edx
mov edx, 1
sub edx, ecx
mov dword [esi - 4], edx
dec edi
jne 0x41e670
mov dword [eax], edi
lea ebp, [edi + 0x1f]
mov dword [eax + 4], 0xa
mov ebx, dword [eax]
mov edi, dword [eax + 4]
mov edx, dword [eax + ebx*4 + 8]
mov ecx, dword [eax + ebx*4 + 0x4c]
mov esi, dword [eax + edi*4 + 8]
ror ecx, 0xd
add ecx, dword [eax + edi*4 + 0x4c]
dec edi
ror edx, 5
add edx, esi
mov dword [eax + ebx*4 + 8], ecx
mov dword [eax + ebx*4 + 0x4c], edx
dec ebx
jns 0x41e6d0
mov ebx, 0x10
test edi, edi
jns 0x41e6d9
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x41e6a2
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x41e6f0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x77cc04], 0
jne 0x41e6fe
call fcn.0041e5b0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x77cc08]
call esi
mov edx, eax
test edx, edx
jne 0x41e725
call fcn.0041e5b0
push dword [0x77cc08]
call esi
mov edx, eax
mov ebx, dword [edx]
mov esi, dword [edx + 4]
mov ebp, dword [esp + 0x14]
inc ebp
mov edi, dword [edx + ebx*4 + 0x4c]
mov eax, dword [edx + ebx*4 + 8]
mov ecx, dword [edx + esi*4 + 8]
ror edi, 0xd
add edi, dword [edx + esi*4 + 0x4c]
dec esi
ror eax, 5
add eax, ecx
mov dword [edx + ebx*4 + 8], edi
mov dword [edx + ebx*4 + 0x4c], eax
dec ebx
jns 0x41e758
mov ebx, 0x10
test esi, esi
jns 0x41e761
mov esi, 0x10
mov dword [edx], ebx
mov eax, edi
mov dword [edx + 4], esi
test ebp, ebp
je 0x41e770
mul ebp
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x420e72
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push 0x420dc1
push 0x10
push 0x2c
call fcn.00436cf2
push 0
push 0
push 8
mov dword [0x77cda8], eax
call fcn.00436b19
cmp word [0x77cda0], 0
mov dword [0x77f6ac], eax
jne 0x420f57
push edi
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
inc edi
test eax, eax
jne 0x420eca
mov word [0x77cda0], di
jmp 0x420ed2
xor eax, eax
mov word [0x77cda0], ax
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x77cdbc], eax
test eax, eax
je 0x420f56
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getaddrinfo
push eax
call esi
push str.freeaddrinfo
push dword [0x77cdbc]
mov dword [0x77cdac], eax
call esi
push str.getnameinfo
push dword [0x77cdbc]
mov dword [0x77cdb0], eax
call esi
push str.WSAStringToAddressA
push dword [0x77cdbc]
mov dword [0x77cdb4], eax
call esi
cmp dword [0x77cdac], 0
mov dword [0x77cdb8], eax
pop esi
je 0x420f56
cmp dword [0x77cdb0], 0
je 0x420f56
cmp dword [0x77cdb4], 0
je 0x420f56
test eax, eax
je 0x420f56
mov dword [0x77cda4], edi
pop edi
add esp, 0x190
ret

Function at 0x421126
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 0x42126e
xor ecx, ecx
cmp word [eax], cx
je 0x42126e
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x42117f
cmp eax, 3
jne 0x4211b9
cmp word [esp + 0xa], 0x3a
jne 0x4211b9
cmp eax, 2
jne 0x42119d
lea eax, [esp + 8]
push 0x50a288
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x42126e
push 0xfffffffffffffffe
pop edi
jmp 0x42126e
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x4211ce
cmp ax, bx
jne 0x4211d8
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x4211c1
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x421217
test byte [esp + 0x21c], 0x10
je 0x4211fe
push 0xfffffffffffffffe
pop edi
jmp 0x42120e
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x42126c
cmp word [esp + 0x10], bp
jne 0x421225
cmp word [esp + 0x12], bp
je 0x421244
cmp word [esp + 0x10], bx
jne 0x421233
cmp word [esp + 0x12], bx
je 0x421244
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x42126c
cmp word [esp + 0x12], ax
jne 0x42126c
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x421259
test al, 0x10
je 0x42126c
jmp 0x421269
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x42126c
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 0x42127d
Capabilities:
Set file attributes

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
je 0x42128b
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 8

Function at 0x421300
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x77cdc4]
push esi
test eax, eax
jne 0x421325
push 0x42142d
push 0x10
push 0x258
call fcn.00436cf2
mov dword [0x77cdc4], eax
push dword [esp + 0xc]
push eax
call fcn.00436c5e
mov esi, eax
test esi, esi
je 0x421426
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x421347
mov edi, 0x50a06c
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x421357
xor eax, eax
cmp word [ebx], ax
jne 0x42135c
mov ebx, 0x50a2a4
push edi
call sub.MSVCRT.dll_wcslen
push ebx
mov dword [esp + 0x24], eax
call sub.MSVCRT.dll_wcslen
add eax, dword [esp + 0x24]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x77c498]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x42140d
push edi
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x4213bd
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x4213c1
push 0x50a288
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
jmp 0x4213c1
mov edi, dword [esp + 0x18]
push ebx
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x4213e5
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x4213fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4213f9
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x77c498]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x421424
cmp dword [esp + 0x14], 0xffffffff
je 0x421418
mov esi, dword [esp + 0x14]
push esi
push dword [0x77cdc4]
call fcn.00436bd0
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc

Function at 0x42162f
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x421658
test byte [esp + 8], 2
je 0x42164c
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 0x42165a
xor eax, eax
ret 8
Function at 0x421ca8
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x421d20
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 0x421d01
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x421cfe
cmp ecx, 0x5c
je 0x421cfe
cmp ecx, 0x2f
jne 0x421d0b
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x421ceb
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x421d22
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x421d41
Capabilities:
Copy file

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

Function at 0x421eb0
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 0x421eec
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 0x422370
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x422478
cmp word [edx], 0
je 0x422478
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x42239e
mov ecx, dword [esi + 0x18]
push edi
cmp ecx, 0x19
jne 0x4223fd
cmp dword [esi + 4], 0
mov ecx, edx
lea edi, [ecx + 2]
je 0x4223d0
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4223b0
sub ecx, edi
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.004227a0
pop edi
pop esi
pop ecx
ret 0xc
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4223d0
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 + 0x14]
setne al
push ecx
dec eax
and eax, 0xfde9
push edx
push eax
call fcn.004228b0
mov edi, eax
test edi, edi
je 0x4223f3
cmp dword [esi + 4], 0
je 0x42244b
push dword [esp + 0x14]
push edi
push esi
call fcn.004227a0
push edi
push 0
push dword [0x77c498]
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 [0x77c498]
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 0x4224b0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x422515
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x42250d
push dword [esp + 0x10]
push dword [0x77f6b0]
call fcn.00436c1f
test eax, eax
je 0x422503
cmp dword [eax + 4], 0
je 0x4224f2
push edi
push esi
push eax
call fcn.004227a0
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 0x422630
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0x77f6b0]
call fcn.00436c1f
mov esi, eax
test esi, esi
je 0x4226af
cmp dword [esi + 4], 0
je 0x422680
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.00422dd0
test eax, eax
je 0x422674
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 0x4226ba
cmp dword [esp + 8], 0
je 0x4226ba
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 0x4226d0
Capabilities:
Read file on windows

Disassembly:
push ecx
push dword [esp + 8]
mov dword [esp + 4], 0
push dword [0x77f6b0]
call fcn.00436c1f
test eax, eax
je 0x42271c
cmp dword [eax + 4], 0
je 0x422706
push 4
lea ecx, [esp + 4]
push ecx
push eax
call fcn.00422dd0
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 0x4227a0
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 0x4228a7
cmp dword [esi + 0x14], 1
jne 0x4227eb
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 0x422868
mov ecx, dword [esi + 8]
add ecx, dword [esi + 4]
sub ecx, eax
mov eax, edi
dec eax
je 0x422853
dec eax
je 0x42283c
sub eax, 2
je 0x422827
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.00421eb0
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x422895
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 0x422811
xor eax, eax
pop esi
add esp, 0xc
ret 0xc
Function at 0x422920
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x77c498]
mov dword [esp + 0x14], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x422aa4
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 0x42296e
test ebp, ebp
je 0x422a10
dec ebp
cmp dword [ebx + 4], 0
je 0x422987
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.00422dd0
mov dword [esp + 0x14], eax
jmp 0x4229a1
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 0x422a10
test cl, cl
je 0x4229b5
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 0x4229f0
mov eax, dword [esp + 0x18]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x77c498]
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 0x422a10
cmp dword [esp + 0x2c], 0
jne 0x422960
cmp cl, 0xd
je 0x422a17
cmp cl, 0xa
jne 0x422960
dec esi
jmp 0x422a87
cmp dword [esp + 0x2c], 0
jne 0x422a87
cmp cl, 0xa
jne 0x422a1f
dec esi
jmp 0x422a87
cmp cl, 0xd
jne 0x422a87
dec esi
cmp dword [ebx + 4], 0
je 0x422a3e
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.00422dd0
mov dword [esp + 0x14], eax
jmp 0x422a54
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 0x422a87
cmp dword [ebx + 4], 0
je 0x422a66
inc dword [ebx + 0xc]
jmp 0x422a87
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 0x422ab0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push 0x1000
push 0
push dword [0x77c498]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov dword [esp + 8], ecx
test ecx, ecx
je 0x422c5d
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 0x422b04
test ebp, ebp
je 0x422bbd
dec ebp
cmp dword [ebx + 4], 0
je 0x422b1d
push 2
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.00422dd0
mov dword [esp + 0x14], eax
jmp 0x422b37
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 0x422bbd
test ax, ax
je 0x422b51
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 0x422b98
mov eax, dword [esp + 0x20]
add edx, 0x800
add eax, 0x1000
mov dword [esp + 0x1c], edx
push eax
push ecx
push 8
push dword [0x77c498]
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 0x422bbd
cmp dword [esp + 0x30], 0
jne 0x422af6
cmp ax, 0xd
je 0x422bc4
cmp ax, 0xa
jne 0x422af6
sub edi, 2
jmp 0x422c3c
cmp dword [esp + 0x30], 0
jne 0x422c3c
cmp ax, 0xa
jne 0x422bcf
sub edi, 2
jmp 0x422c3c
cmp ax, 0xd
jne 0x422c3c
sub edi, 2
cmp dword [ebx + 4], 0
je 0x422bf1
push 2
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.00422dd0
mov dword [esp + 0x14], eax
jmp 0x422c07
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 0x422c3c
cmp dword [ebx + 4], 0
je 0x422c1b
add dword [ebx + 0xc], 2
jmp 0x422c3c
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