joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c070
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x4fe958], 0
jne 0x41c07e
call fcn.0041bf50
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x4fe95c]
call esi
mov edx, eax
test edx, edx
jne 0x41c0a5
call fcn.0041bf50
push dword [0x4fe95c]
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 0x41c0d8
mov ebx, 0x10
test esi, esi
jns 0x41c0e1
mov esi, 0x10
mov dword [edx], ebx
mov eax, edi
mov dword [edx + 4], esi
test ebp, ebp
je 0x41c0f0
mul ebp
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x41d8b1
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x41d93b
cmp dword [ebp + 0xc], edi
je 0x41d93b
push esi
push 0x28
push 8
push dword [0x4fdca4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp + 8]
mov esi, eax
or dword [esi + 4], 0xffffffff
mov dword [esi], edi
call sub.MSVCRT.dll__wcsdup
push dword [ebp + 0xc]
mov dword [esi + 8], eax
call sub.MSVCRT.dll__wcsdup
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x1c], eax
pop ecx
pop ecx
test al, 1
je 0x41d92a
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x41da3f
push 0x2000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x41d922
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, esi
jmp 0x41d93a
push esi
call fcn.0041da90
jmp 0x41d939
push esi
call fcn.0041d954
push esi
mov edi, eax
call fcn.0041da90
pop ecx
pop ecx
pop esi
mov eax, edi
pop edi
pop ebp
ret 0xc
Function at 0x41d954
Capabilities:
Delete file

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
xor ebx, ebx
push edi
mov eax, dword [esi + 8]
mov ebp, dword [esi + 0xc]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ebp
call fcn.004777f0
mov edi, eax
test edi, edi
je 0x41da24
push dword [esp + 0x18]
call fcn.0049c650
push ebx
push pe_nt_image_headers32
push 2
push ebx
push 1
push 0xc0000000
push ebp
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x41da14
test byte [esi + 0x1c], 2
mov dword [esi + 0x10], ebp
jne 0x41d9bd
push 1
push 0x34
push edi
call fcn.00477880
add esp, 0xc
push dword [esp + 0x18]
push 0x2712
push edi
call fcn.00477880
push 0x41da4e
push 0x4e2b
push edi
call fcn.00477880
push esi
push 0x2711
push edi
call fcn.00477880
push edi
call fcn.00477870
add esp, 0x28
test eax, eax
jne 0x41d9ff
xor ebx, ebx
mov dword [esi + 4], 0xfffffffe
inc ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x41da14
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [esp + 0x18]
call fcn.0049c640
push edi
call fcn.004777d0
pop ecx
cmp dword [esi + 4], 0xfffffffe
je 0x41da37
cmp dword [esi + 4], 0xfffffffc
je 0x41da37
mov dword [esi + 4], 0xfffffffd
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret

Function at 0x41db75
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push edi
xor edi, edi
inc edi
cmp dword [0x4fe9ec], 0
jne 0x41dba1
push 0x41dac4
push 0x10
push 0x2c
mov dword [0x4fe9ec], edi
call fcn.0042e125
mov dword [0x4fe9e8], eax
cmp word [0x4fe9e0], 0
jne 0x41dc3d
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WSOCK32.DLL_WSAStartup]
test eax, eax
jne 0x41dbcc
mov word [0x4fe9e0], di
jmp 0x41dbd4
xor eax, eax
mov word [0x4fe9e0], ax
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x4fe9fc], eax
test eax, eax
je 0x41dc3d
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4a4720
push eax
call esi
push 0x4a472c
push dword [0x4fe9fc]
mov dword [0x4fe9f0], eax
call esi
push str.getnameinfo
push dword [0x4fe9fc]
mov dword [0x4fe9f4], eax
call esi
cmp dword [0x4fe9f0], 0
mov dword [0x4fe9f8], eax
pop esi
je 0x41dc3d
cmp dword [0x4fe9f4], 0
je 0x41dc3d
test eax, eax
je 0x41dc3d
mov dword [0x4fe9e4], edi
movsx eax, word [0x4fe9e0]
pop edi
add esp, 0x190
ret
Function at 0x4221ae
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x4ff9f0]
call fcn.0042e052
mov ebx, eax
test ebx, ebx
je 0x422212
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x4221d7
push dword [esp + 0xc]
push ebx
call eax
jmp 0x422212
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.0042ece0
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.0042edb0
pop edi
pop esi
pop ebx
ret 8

Function at 0x4230ff
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 0x423257
mov eax, dword [esp + 0x20]
dec eax
je 0x42323a
dec eax
jne 0x423257
lea eax, [esp + 0x124]
xor ebp, ebp
push eax
call fcn.004230b8
pop ecx
test eax, eax
je 0x42316b
mov ebx, dword [esp + 0x128]
mov edi, dword [esp + 0x12c]
cmp byte [esp + 0x23e], 1
jmp 0x423198
lea eax, [esp + 0x240]
mov dword [esp + 0x240], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x42319d
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
cmp byte [esp + 0x35a], 1
jne 0x42319d
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x423236
dec ebx
je 0x423232
dec ebx
je 0x423211
dec ebx
je 0x4231cb
sub ebx, 4
jne 0x423257
test edi, edi
jne 0x423257
push 0x6e
jmp 0x423256
sub edi, 0
je 0x423203
dec edi
je 0x4231f5
dec edi
je 0x4231e7
dec edi
jne 0x423257
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x423257
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x423257
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x423257
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x423257
sub edi, 0
je 0x42322e
dec edi
je 0x42322a
dec edi
jne 0x423257
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x423257
push 0x3c
jmp 0x423256
push 0x32
jmp 0x423256
push 0x14
jmp 0x423256
push 5
jmp 0x423256
mov eax, dword [esp + 0x18]
test eax, eax
je 0x423254
cmp eax, 0xa
je 0x423250
cmp eax, 0x5a
jne 0x423257
push 0x28
jmp 0x423256
push 0x1e
jmp 0x423256
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x34c
ret
Function at 0x42442a
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 0x4244a4
push 9
call esi
test al, al
jns 0x4244a4
push 0x11
call esi
test al, al
js 0x4244a4
push 0x10
call esi
test al, al
js 0x4244a4
push 0x12
call esi
test al, al
js 0x4244a4
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 0x4244a4
push eax
push eax
push 0x44e
push ebx
call dword [sym.imp.USER32.DLL_SendMessageW]
test eax, 0x800
jne 0x4244a4
xor eax, eax
jmp 0x424525
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4244cc
push 0x11
call esi
test al, al
js 0x4244c4
push 0x10
call esi
test al, al
js 0x4244c4
push 0x12
call esi
test al, al
jns 0x4244cc
push 1
push edi
call fcn.0042452d
mov esi, dword [sym.imp.USER32.DLL_GetPropW]
test ebx, ebx
je 0x4244e2
push str.PB_Hotkey
push ebx
call esi
test eax, eax
jne 0x424522
push str.PB_WindowID
push edi
call esi
mov esi, eax
test esi, esi
je 0x424522
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x424522
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 4], eax
jne 0x424522
lea eax, [esi - 1]
push eax
push dword [0x4ffa00]
call fcn.0042e052
test eax, eax
je 0x424522
mov eax, dword [eax + 8]
jmp 0x424524
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4248b7
Capabilities:
Create directory

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

Function at 0x424937
Capabilities:
Delete file
Set file attributes

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

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

Function at 0x424da3
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 0x424ede
push ebp
xor ebp, ebp
cmp word [eax], bp
je 0x424edd
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 0x424dff
cmp ecx, 3
jne 0x424e39
cmp word [esp + 0xe], 0x3a
jne 0x424e39
cmp ecx, 2
jne 0x424e1d
lea eax, [esp + 0xc]
push 0x4a4cd8
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 0x424edd
push 0xfffffffffffffffe
pop edi
jmp 0x424edd
push ebx
push 0x5c
pop ebx
movzx ecx, word [eax]
cmp cx, bx
je 0x424e4a
cmp ecx, 0x2f
jne 0x424e54
xor ecx, ecx
mov word [eax], cx
sub eax, 2
jmp 0x424e3d
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x424e95
test byte [esp + 0x21c], 0x10
je 0x424e7a
push 0xfffffffffffffffe
pop edi
jmp 0x424e8c
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 0x424edc
cmp word [esp + 0x10], bx
jne 0x424ea3
cmp word [esp + 0x12], bx
je 0x424eb4
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x424edc
cmp word [esp + 0x12], ax
jne 0x424edc
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x424ec9
test al, 0x10
je 0x424edc
jmp 0x424ed9
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x424edc
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 0x424f60
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 0x424f9c
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 0x4253c0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x425425
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x42541d
push dword [esp + 0x10]
push dword [0x4ffa14]
call fcn.0042e052
test eax, eax
je 0x425413
cmp dword [eax + 4], 0
je 0x425402
push edi
push esi
push eax
call fcn.004256d0
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 0x425580
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0x4ffa14]
call fcn.0042e052
mov esi, eax
test esi, esi
je 0x4255ff
cmp dword [esi + 4], 0
je 0x4255d0
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.00425d90
test eax, eax
je 0x4255c4
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 0x42560a
cmp dword [esp + 8], 0
je 0x42560a
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 0x425670
Capabilities:
Read file on windows

Disassembly:
push ecx
push dword [esp + 8]
mov dword [esp + 4], 0
push dword [0x4ffa14]
call fcn.0042e052
test eax, eax
je 0x4256bc
cmp dword [eax + 4], 0
je 0x4256a6
push 4
lea ecx, [esp + 4]
push ecx
push eax
call fcn.00425d90
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 0x4256d0
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 0x4257d7
cmp dword [esi + 0x14], 1
jne 0x42571b
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 0x425798
mov ecx, dword [esi + 8]
add ecx, dword [esi + 4]
sub ecx, eax
mov eax, edi
dec eax
je 0x425783
dec eax
je 0x42576c
sub eax, 2
je 0x425757
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.00424f60
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x4257c5
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 0x425741
xor eax, eax
pop esi
add esp, 0xc
ret 0xc
Function at 0x4257e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x4fdca4]
mov dword [esp + 0x14], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x425964
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 0x42582e
test ebp, ebp
je 0x4258d0
dec ebp
cmp dword [ebx + 4], 0
je 0x425847
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.00425d90
mov dword [esp + 0x14], eax
jmp 0x425861
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 0x4258d0
test cl, cl
je 0x425875
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 0x4258b0
mov eax, dword [esp + 0x18]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x4fdca4]
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 0x4258d0
cmp dword [esp + 0x2c], 0
jne 0x425820
cmp cl, 0xd
je 0x4258d7
cmp cl, 0xa
jne 0x425820
dec esi
jmp 0x425947
cmp dword [esp + 0x2c], 0
jne 0x425947
cmp cl, 0xa
jne 0x4258df
dec esi
jmp 0x425947
cmp cl, 0xd
jne 0x425947
dec esi
cmp dword [ebx + 4], 0
je 0x4258fe
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.00425d90
mov dword [esp + 0x14], eax
jmp 0x425914
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 0x425947
cmp dword [ebx + 4], 0
je 0x425926
inc dword [ebx + 0xc]
jmp 0x425947
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 0x425970
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push 0x1000
push 0
push dword [0x4fdca4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov dword [esp + 8], ecx
test ecx, ecx
je 0x425b1d
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 0x4259c4
test ebp, ebp
je 0x425a7d
dec ebp
cmp dword [ebx + 4], 0
je 0x4259dd
push 2
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.00425d90
mov dword [esp + 0x14], eax
jmp 0x4259f7
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 0x425a7d
test ax, ax
je 0x425a11
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 0x425a58
mov eax, dword [esp + 0x20]
add edx, 0x800
add eax, 0x1000
mov dword [esp + 0x1c], edx
push eax
push ecx
push 8
push dword [0x4fdca4]
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 0x425a7d
cmp dword [esp + 0x30], 0
jne 0x4259b6
cmp ax, 0xd
je 0x425a84
cmp ax, 0xa
jne 0x4259b6
sub edi, 2
jmp 0x425afc
cmp dword [esp + 0x30], 0
jne 0x425afc
cmp ax, 0xa
jne 0x425a8f
sub edi, 2
jmp 0x425afc
cmp ax, 0xd
jne 0x425afc
sub edi, 2
cmp dword [ebx + 4], 0
je 0x425ab1
push 2
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.00425d90
mov dword [esp + 0x14], eax
jmp 0x425ac7
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 0x425afc
cmp dword [ebx + 4], 0
je 0x425adb
add dword [ebx + 0xc], 2
jmp 0x425afc
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 0x425b30
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x4fdca4]
mov dword [esp + 0x10], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0xc], edx
test edx, edx
je 0x425c80
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 0x425b7c
test edi, edi
je 0x425bed
dec edi
push esi
push ebp
call fcn.00425eb0
mov dword [esp + 0x20], eax
test eax, eax
jne 0x425b8f
xor cl, cl
jmp 0x425b91
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 0x425bd4
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x4fdca4]
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 0x425bed
test eax, eax
jne 0x425b72
cmp cl, 0xd
je 0x425bf1
cmp cl, 0xa
jne 0x425b72
dec esi
jmp 0x425c63
test eax, eax
jne 0x425c63
cmp cl, 0xa
jne 0x425bf9
dec esi
jmp 0x425c63
cmp cl, 0xd
jne 0x425c63
dec esi
cmp dword [ebp + 4], 0
je 0x425c18
push 1
lea eax, [esp + 0x17]
push eax
push ebp
call fcn.00425d90
mov dword [esp + 0x20], eax
jmp 0x425c2f
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 0x425c63
cmp dword [ebp + 4], 0
je 0x425c41
inc dword [ebp + 0xc]
jmp 0x425c63
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 0x425c90
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x425d84
cmp word [edx], 0
je 0x425d84
mov ecx, dword [esp + 0x10]
push esi
cmp ecx, 0x19
jne 0x425d1d
mov esi, dword [esp + 0xc]
mov ecx, edx
push edi
cmp dword [esi + 4], 0
lea edi, [ecx + 2]
je 0x425cf0
jmp 0x425cd0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x425cd0
sub ecx, edi
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.004256d0
pop edi
pop esi
pop ecx
ret 0xc
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x425cf0
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.00425fc0
mov esi, eax
test esi, esi
je 0x425d7b
mov eax, dword [esp + 0xc]
cmp dword [eax + 4], 0
je 0x425d58
push dword [esp + 0x10]
push esi
push eax
call fcn.004256d0
mov dword [esp + 4], eax
jmp 0x425d6c
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 [0x4fdca4]
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