joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b6d7
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, 0x1000
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebx, eax
cmp dword [esp + 0x24], 0x18
je 0x41b786
cmp dword [esp + 0x24], 2
je 0x41b786
push 0x2000
push edi
push dword [0x4fca5c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
jmp 0x41b759
cmp dword [esp + 0x18], 2
jne 0x41b771
test ebx, ebx
jne 0x41b742
lea eax, [edi*2 + 0x2000]
push eax
push esi
push 8
push dword [0x4fca5c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov ax, word [esp + 0x14]
cmp ax, 0xa
je 0x41b771
cmp ax, 0xd
je 0x41b759
mov word [esi + edi*2], ax
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 2
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x30]
call ebp
test eax, eax
jne 0x41b719
push dword [esp + 0x28]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.0049c0b0
jmp 0x41b80c
push eax
push 0
push dword [0x4fca5c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
jmp 0x41b7d8
cmp dword [esp + 0x18], 1
jne 0x41b7f0
test ebx, ebx
jne 0x41b7c7
lea eax, [edi + 0x1000]
push eax
push esi
push 8
push dword [0x4fca5c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x41b7f0
cmp al, 0xd
je 0x41b7d8
mov byte [esi + edi], al
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [esp + 0x30]
call ebp
test eax, eax
jne 0x41b79f
cmp dword [esp + 0x24], 0x18
push dword [esp + 0x28]
mov byte [esi + edi], 0
push esi
jne 0x41b807
call fcn.0049c100
jmp 0x41b80c
call fcn.0049c2b0
push esi
push 0
push dword [0x4fca5c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc

Function at 0x41bae0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x4fd718], 0
jne 0x41baee
call fcn.0041ba80
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x4fd71c]
call esi
test eax, eax
jne 0x41bb11
call fcn.0041ba80
push dword [0x4fd71c]
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 0x41bb20
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 0x41bb80
mov ebx, 0x10
test edi, edi
jns 0x41bb89
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x41bb52
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x41bba0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x4fd718], 0
jne 0x41bbae
call fcn.0041ba80
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x4fd71c]
call esi
mov edx, eax
test edx, edx
jne 0x41bbd5
call fcn.0041ba80
push dword [0x4fd71c]
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 0x41bc08
mov ebx, 0x10
test esi, esi
jns 0x41bc11
mov esi, 0x10
mov dword [edx], ebx
mov eax, edi
mov dword [edx + 4], esi
test ebp, ebp
je 0x41bc20
mul ebp
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x41d3e1
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x41d46b
cmp dword [ebp + 0xc], edi
je 0x41d46b
push esi
push 0x28
push 8
push dword [0x4fca5c]
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 0x41d45a
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x41d56f
push 0x2000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x41d452
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, esi
jmp 0x41d46a
push esi
call fcn.0041d5c0
jmp 0x41d469
push esi
call fcn.0041d484
push esi
mov edi, eax
call fcn.0041d5c0
pop ecx
pop ecx
pop esi
mov eax, edi
pop edi
pop ebp
ret 0xc
Function at 0x41d484
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.00477320
mov edi, eax
test edi, edi
je 0x41d554
push dword [esp + 0x18]
call fcn.0049c180
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 0x41d544
test byte [esi + 0x1c], 2
mov dword [esi + 0x10], ebp
jne 0x41d4ed
push 1
push 0x34
push edi
call fcn.004773b0
add esp, 0xc
push dword [esp + 0x18]
push 0x2712
push edi
call fcn.004773b0
push 0x41d57e
push 0x4e2b
push edi
call fcn.004773b0
push esi
push 0x2711
push edi
call fcn.004773b0
push edi
call fcn.004773a0
add esp, 0x28
test eax, eax
jne 0x41d52f
xor ebx, ebx
mov dword [esi + 4], 0xfffffffe
inc ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x41d544
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [esp + 0x18]
call fcn.0049c170
push edi
call fcn.00477300
pop ecx
cmp dword [esi + 4], 0xfffffffe
je 0x41d567
cmp dword [esi + 4], 0xfffffffc
je 0x41d567
mov dword [esi + 4], 0xfffffffd
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret

Function at 0x41d6a5
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push edi
xor edi, edi
inc edi
cmp dword [0x4fd7ac], 0
jne 0x41d6d1
push 0x41d5f4
push 0x10
push 0x2c
mov dword [0x4fd7ac], edi
call fcn.0042dc55
mov dword [0x4fd7a8], eax
cmp word [0x4fd7a0], 0
jne 0x41d76d
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WSOCK32.DLL_WSAStartup]
test eax, eax
jne 0x41d6fc
mov word [0x4fd7a0], di
jmp 0x41d704
xor eax, eax
mov word [0x4fd7a0], ax
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x4fd7bc], eax
test eax, eax
je 0x41d76d
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4a36c8
push eax
call esi
push 0x4a36d4
push dword [0x4fd7bc]
mov dword [0x4fd7b0], eax
call esi
push str.getnameinfo
push dword [0x4fd7bc]
mov dword [0x4fd7b4], eax
call esi
cmp dword [0x4fd7b0], 0
mov dword [0x4fd7b8], eax
pop esi
je 0x41d76d
cmp dword [0x4fd7b4], 0
je 0x41d76d
test eax, eax
je 0x41d76d
mov dword [0x4fd7a4], edi
movsx eax, word [0x4fd7a0]
pop edi
add esp, 0x190
ret
Function at 0x421cde
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x4fe7b0]
call fcn.0042db82
mov ebx, eax
test ebx, ebx
je 0x421d42
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x421d07
push dword [esp + 0xc]
push ebx
call eax
jmp 0x421d42
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.0042e810
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.0042e8b0
pop edi
pop esi
pop ebx
ret 8

Function at 0x422c2f
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 0x422d87
mov eax, dword [esp + 0x20]
dec eax
je 0x422d6a
dec eax
jne 0x422d87
lea eax, [esp + 0x124]
xor ebp, ebp
push eax
call fcn.00422be8
pop ecx
test eax, eax
je 0x422c9b
mov ebx, dword [esp + 0x128]
mov edi, dword [esp + 0x12c]
cmp byte [esp + 0x23e], 1
jmp 0x422cc8
lea eax, [esp + 0x240]
mov dword [esp + 0x240], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x422ccd
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
cmp byte [esp + 0x35a], 1
jne 0x422ccd
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x422d66
dec ebx
je 0x422d62
dec ebx
je 0x422d41
dec ebx
je 0x422cfb
sub ebx, 4
jne 0x422d87
test edi, edi
jne 0x422d87
push 0x6e
jmp 0x422d86
sub edi, 0
je 0x422d33
dec edi
je 0x422d25
dec edi
je 0x422d17
dec edi
jne 0x422d87
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x422d87
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x422d87
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x422d87
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x422d87
sub edi, 0
je 0x422d5e
dec edi
je 0x422d5a
dec edi
jne 0x422d87
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x422d87
push 0x3c
jmp 0x422d86
push 0x32
jmp 0x422d86
push 0x14
jmp 0x422d86
push 5
jmp 0x422d86
mov eax, dword [esp + 0x18]
test eax, eax
je 0x422d84
cmp eax, 0xa
je 0x422d80
cmp eax, 0x5a
jne 0x422d87
push 0x28
jmp 0x422d86
push 0x1e
jmp 0x422d86
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x34c
ret
Function at 0x423f5a
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 0x423fd4
push 9
call esi
test al, al
jns 0x423fd4
push 0x11
call esi
test al, al
js 0x423fd4
push 0x10
call esi
test al, al
js 0x423fd4
push 0x12
call esi
test al, al
js 0x423fd4
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 0x423fd4
push eax
push eax
push 0x44e
push ebx
call dword [sym.imp.USER32.DLL_SendMessageW]
test eax, 0x800
jne 0x423fd4
xor eax, eax
jmp 0x424055
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x423ffc
push 0x11
call esi
test al, al
js 0x423ff4
push 0x10
call esi
test al, al
js 0x423ff4
push 0x12
call esi
test al, al
jns 0x423ffc
push 1
push edi
call fcn.0042405d
mov esi, dword [sym.imp.USER32.DLL_GetPropW]
test ebx, ebx
je 0x424012
push str.PB_Hotkey
push ebx
call esi
test eax, eax
jne 0x424052
push str.PB_WindowID
push edi
call esi
mov esi, eax
test esi, esi
je 0x424052
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x424052
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 4], eax
jne 0x424052
lea eax, [esi - 1]
push eax
push dword [0x4fe7c0]
call fcn.0042db82
test eax, eax
je 0x424052
mov eax, dword [eax + 8]
jmp 0x424054
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4243e7
Capabilities:
Create directory

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

Function at 0x424467
Capabilities:
Delete file
Set file attributes

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

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

Function at 0x4248d3
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 0x424a0e
push ebp
xor ebp, ebp
cmp word [eax], bp
je 0x424a0d
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 0x42492f
cmp ecx, 3
jne 0x424969
cmp word [esp + 0xe], 0x3a
jne 0x424969
cmp ecx, 2
jne 0x42494d
lea eax, [esp + 0xc]
push 0x4a3ca0
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 0x424a0d
push 0xfffffffffffffffe
pop edi
jmp 0x424a0d
push ebx
push 0x5c
pop ebx
movzx ecx, word [eax]
cmp cx, bx
je 0x42497a
cmp ecx, 0x2f
jne 0x424984
xor ecx, ecx
mov word [eax], cx
sub eax, 2
jmp 0x42496d
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x4249c5
test byte [esp + 0x21c], 0x10
je 0x4249aa
push 0xfffffffffffffffe
pop edi
jmp 0x4249bc
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 0x424a0c
cmp word [esp + 0x10], bx
jne 0x4249d3
cmp word [esp + 0x12], bx
je 0x4249e4
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x424a0c
cmp word [esp + 0x12], ax
jne 0x424a0c
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x4249f9
test al, 0x10
je 0x424a0c
jmp 0x424a09
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x424a0c
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 0x424a90
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 0x424acc
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 0x424ef0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x424f55
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x424f4d
push dword [esp + 0x10]
push dword [0x4fe7d4]
call fcn.0042db82
test eax, eax
je 0x424f43
cmp dword [eax + 4], 0
je 0x424f32
push edi
push esi
push eax
call fcn.00425200
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 0x4250b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0x4fe7d4]
call fcn.0042db82
mov esi, eax
test esi, esi
je 0x42512f
cmp dword [esi + 4], 0
je 0x425100
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.004258c0
test eax, eax
je 0x4250f4
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 0x42513a
cmp dword [esp + 8], 0
je 0x42513a
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 0x4251a0
Capabilities:
Read file on windows

Disassembly:
push ecx
push dword [esp + 8]
mov dword [esp + 4], 0
push dword [0x4fe7d4]
call fcn.0042db82
test eax, eax
je 0x4251ec
cmp dword [eax + 4], 0
je 0x4251d6
push 4
lea ecx, [esp + 4]
push ecx
push eax
call fcn.004258c0
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 0x425200
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 0x425307
cmp dword [esi + 0x14], 1
jne 0x42524b
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 0x4252c8
mov ecx, dword [esi + 8]
add ecx, dword [esi + 4]
sub ecx, eax
mov eax, edi
dec eax
je 0x4252b3
dec eax
je 0x42529c
sub eax, 2
je 0x425287
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.00424a90
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x4252f5
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 0x425271
xor eax, eax
pop esi
add esp, 0xc
ret 0xc
Function at 0x425310
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x4fca5c]
mov dword [esp + 0x14], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x425494
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 0x42535e
test ebp, ebp
je 0x425400
dec ebp
cmp dword [ebx + 4], 0
je 0x425377
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.004258c0
mov dword [esp + 0x14], eax
jmp 0x425391
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 0x425400
test cl, cl
je 0x4253a5
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 0x4253e0
mov eax, dword [esp + 0x18]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x4fca5c]
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 0x425400
cmp dword [esp + 0x2c], 0
jne 0x425350
cmp cl, 0xd
je 0x425407
cmp cl, 0xa
jne 0x425350
dec esi
jmp 0x425477
cmp dword [esp + 0x2c], 0
jne 0x425477
cmp cl, 0xa
jne 0x42540f
dec esi
jmp 0x425477
cmp cl, 0xd
jne 0x425477
dec esi
cmp dword [ebx + 4], 0
je 0x42542e
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.004258c0
mov dword [esp + 0x14], eax
jmp 0x425444
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 0x425477
cmp dword [ebx + 4], 0
je 0x425456
inc dword [ebx + 0xc]
jmp 0x425477
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 0x4254a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push 0x1000
push 0
push dword [0x4fca5c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov dword [esp + 8], ecx
test ecx, ecx
je 0x42564d
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 0x4254f4
test ebp, ebp
je 0x4255ad
dec ebp
cmp dword [ebx + 4], 0
je 0x42550d
push 2
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.004258c0
mov dword [esp + 0x14], eax
jmp 0x425527
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 0x4255ad
test ax, ax
je 0x425541
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 0x425588
mov eax, dword [esp + 0x20]
add edx, 0x800
add eax, 0x1000
mov dword [esp + 0x1c], edx
push eax
push ecx
push 8
push dword [0x4fca5c]
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 0x4255ad
cmp dword [esp + 0x30], 0
jne 0x4254e6
cmp ax, 0xd
je 0x4255b4
cmp ax, 0xa
jne 0x4254e6
sub edi, 2
jmp 0x42562c
cmp dword [esp + 0x30], 0
jne 0x42562c
cmp ax, 0xa
jne 0x4255bf
sub edi, 2
jmp 0x42562c
cmp ax, 0xd
jne 0x42562c
sub edi, 2
cmp dword [ebx + 4], 0
je 0x4255e1
push 2
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.004258c0
mov dword [esp + 0x14], eax
jmp 0x4255f7
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 0x42562c
cmp dword [ebx + 4], 0
je 0x42560b
add dword [ebx + 0xc], 2
jmp 0x42562c
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