joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b14a
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
push ebx
xor eax, eax
push eax
push eax
call fcn.0045e790
push dword [esp + 0x14]
pop eax
mov dword [esp + 4], eax
mov ebx, dword [esp + 0x14]
and ebx, ebx
jne 0x44b16d
xor eax, eax
jmp 0x44b1fa
mov ebp, dword [esp + 4]
cmp word [ebp], 0
je 0x44b1b8
mov ebp, dword [esp + 4]
movzx ebx, word [ebp]
mov eax, 0x5c
cmp ebx, eax
jne 0x44b1ab
mov ebp, dword [esp + 4]
mov word [ebp], 0
push 0
push dword [esp + 0x18]
call sub.kernel32.dll_CreateDirectoryW
mov ebp, dword [esp + 4]
mov word [ebp], 0x5c
mov ebx, dword [esp + 4]
add ebx, 2
mov dword [esp + 4], ebx
jmp 0x44b16d
push 0
push dword [esp + 0x18]
call sub.kernel32.dll_CreateDirectoryW
push dword [esp + 0x14]
call sub.kernel32.dll_GetFileAttributesW
mov dword [esp], eax
mov ebx, dword [esp]
cmp ebx, 0xffffffff
je 0x44b1eb
mov ebx, dword [esp]
and ebx, 0x10
and ebx, ebx
je 0x44b1eb
mov eax, 1
jmp 0x44b1ed
xor eax, eax
and eax, eax
je 0x44b1f8
mov eax, 1
jmp 0x44b1fa
xor eax, eax
add esp, 8
pop ebx
pop ebp
ret 4

Function at 0x44f1d0
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 0x44f268
push edi
push 0x8943e8
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov edi, dword [0x8938f0]
test edi, edi
je 0x44f23c
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
test eax, eax
jne 0x44f235
push dword [ebx]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x8938f0
call fcn.0045e199
pop ecx
pop ecx
jmp 0x44f237
mov edi, dword [edi]
test edi, edi
jne 0x44f20c
pop ebx
mov eax, dword [0x470574]
mov esi, eax
inc eax
push 0x10
push 0x8938f0
mov dword [0x470574], eax
call fcn.0045e1d9
pop ecx
pop ecx
push 0x8943e8
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 0x450df0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x8938fc], 0
jne 0x450dfe
call fcn.00450c90
push ebx
push ebp
push esi
mov esi, dword [sym.imp.kernel32.dll_TlsGetValue]
push edi
push dword [0x893900]
call esi
test eax, eax
jne 0x450e21
call fcn.00450c90
push dword [0x893900]
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 0x450e30
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 0x450e90
mov ebx, 0x10
test edi, edi
jns 0x450e99
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x450e62
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4514fc
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x894450]
call fcn.0045da6a
mov ebx, eax
test ebx, ebx
je 0x451560
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x451525
push dword [esp + 0xc]
push ebx
call eax
jmp 0x451560
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.0045ea70
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.0045eb10
pop edi
pop esi
pop ebx
ret 8

Function at 0x45227b
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push 0
push 0
push 0x1304
push dword [ebp]
call dword [sym.imp.user32.dll_SendMessageW]
test eax, eax
jle 0x4522ed
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
cmp ebx, 0xffffffff
jne 0x4522a4
mov ebx, eax
push dword [ebp]
call fcn.00451a6d
push ebx
push dword [ebp]
mov edi, eax
call fcn.00451a44
add esp, 0xc
mov esi, eax
push 0
push ebx
push 0x130c
push dword [ebp]
call dword [sym.imp.user32.dll_SendMessageW]
push 0
push edi
call dword [sym.imp.user32.dll_ShowWindow]
push 0
push edi
call dword [sym.imp.user32.dll_EnableWindow]
push esi
push dword [ebp]
call fcn.0045230d
pop ecx
pop ecx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x452eb3
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push dword [0x8943e0]
call fcn.0045d8f9
xor ebp, ebp
mov esi, eax
cmp dword [0x893a78], ebp
jne 0x452f8f
xor ebx, ebx
inc ebx
mov dword [0x893a78], ebx
call fcn.0045796b
mov edi, 0xa4
push edi
push ebp
push 0x893a80
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x893a80], 0x13
lea eax, [esp + 0x10]
mov dword [0x893a84], edi
mov dword [0x893a90], 0x452dfe
mov dword [0x893a94], 0x453104
push eax
mov dword [0x893ae8], 0x452dd9
mov dword [0x893aec], 0x45304f
mov dword [0x893a8c], 0x452db4
mov dword [0x893b10], 0x452e19
mov dword [0x893b24], ebx
mov dword [esp + 0x14], 0x114
call dword [sym.imp.kernel32.dll_GetVersionExW]
test eax, eax
je 0x452f8f
cmp dword [esp + 0x20], ebx
je 0x452f77
cmp dword [esp + 0x20], 2
jne 0x452f8f
cmp dword [esp + 0x14], 5
jae 0x452f7f
mov dword [0x893b24], ebp
jmp 0x452f8f
jne 0x452f8f
mov eax, dword [esp + 0x18]
neg eax
sbb eax, eax
and dword [0x893b24], eax
mov eax, dword [esp + 0x140]
push ebp
push dword [0x473498]
or eax, 0x50010000
push 0xffffffffffffffff
push dword [esi]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push eax
push ebp
push str.BUTTON
push ebp
call dword [sym.imp.user32.dll_CreateWindowExW]
mov edi, eax
test edi, edi
je 0x453040
push dword [esp + 0x128]
push dword [0x894450]
call fcn.0045daa9
mov ebx, dword [esp + 0x13c]
mov esi, eax
mov dword [esi + 0x10], ebx
test ebx, ebx
je 0x45300f
push ebx
call fcn.0045a80a
test eax, eax
je 0x45300f
push ebp
push ebp
push ebx
call fcn.0045a454
mov dword [esi + 0x18], eax
jmp 0x453012
mov dword [esi + 0x18], ebp
push 0x452af4
push 0xfffffffffffffffc
push edi
mov dword [esi + 0x14], ebp
mov dword [esi + 0x1c], ebp
call dword [sym.imp.user32.dll_SetWindowLongW]
push 0x893a80
push edi
push esi
push dword [esp + 0x134]
mov dword [0x893a7c], eax
call fcn.00457b32
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret 0x1c
Function at 0x4595d0
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 0x45964a
push 9
call esi
test al, al
jns 0x45964a
push 0x11
call esi
test al, al
js 0x45964a
push 0x10
call esi
test al, al
js 0x45964a
push 0x12
call esi
test al, al
js 0x45964a
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 0x45964a
push eax
push eax
push 0x44e
push ebx
call dword [sym.imp.user32.dll_SendMessageW]
test eax, 0x800
jne 0x45964a
xor eax, eax
jmp 0x4596cb
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x459672
push 0x11
call esi
test al, al
js 0x45966a
push 0x10
call esi
test al, al
js 0x45966a
push 0x12
call esi
test al, al
jns 0x459672
push 1
push edi
call fcn.004596d3
mov esi, dword [sym.imp.user32.dll_GetPropW]
test ebx, ebx
je 0x459688
push str.PB_Hotkey
push ebx
call esi
test eax, eax
jne 0x4596c8
push str.PB_WindowID
push edi
call esi
mov esi, eax
test esi, esi
je 0x4596c8
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.user32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x4596c8
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
cmp dword [ebp - 4], eax
jne 0x4596c8
lea eax, [esi - 1]
push eax
push dword [0x894464]
call fcn.0045da6a
test eax, eax
je 0x4596c8
mov eax, dword [eax + 8]
jmp 0x4596ca
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x45b1e5
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 0x45b320
push ebp
xor ebp, ebp
cmp word [eax], bp
je 0x45b31f
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 0x45b241
cmp ecx, 3
jne 0x45b27b
cmp word [esp + 0xe], 0x3a
jne 0x45b27b
cmp ecx, 2
jne 0x45b25f
lea eax, [esp + 0xc]
push 0x460638
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 0x45b31f
push 0xfffffffffffffffe
pop edi
jmp 0x45b31f
push ebx
push 0x5c
pop ebx
movzx ecx, word [eax]
cmp cx, bx
je 0x45b28c
cmp ecx, 0x2f
jne 0x45b296
xor ecx, ecx
mov word [eax], cx
sub eax, 2
jmp 0x45b27f
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
cmp eax, esi
je 0x45b2d7
test byte [esp + 0x21c], 0x10
je 0x45b2bc
push 0xfffffffffffffffe
pop edi
jmp 0x45b2ce
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 0x45b31e
cmp word [esp + 0x10], bx
jne 0x45b2e5
cmp word [esp + 0x12], bx
je 0x45b2f6
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x45b31e
cmp word [esp + 0x12], ax
jne 0x45b31e
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, esi
je 0x45b30b
test al, 0x10
je 0x45b31e
jmp 0x45b31b
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.kernel32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x45b31e
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 0x45b4a9
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x45b4d2
test byte [esp + 8], 2
je 0x45b4c6
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 0x45b4d4
xor eax, eax
ret 8

Function at 0x45b570
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 0x45b5ac
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 0x45bc30
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x45bc95
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x45bc8d
push dword [esp + 0x10]
push dword [0x894490]
call fcn.0045da6a
test eax, eax
je 0x45bc83
cmp dword [eax + 4], 0
je 0x45bc72
push edi
push esi
push eax
call fcn.0045c3e0
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 0x45bdb0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0x894490]
call fcn.0045da6a
mov esi, eax
test esi, esi
je 0x45be2f
cmp dword [esi + 4], 0
je 0x45be00
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.0045c2c0
test eax, eax
je 0x45bdf4
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 0x45be3a
cmp dword [esp + 8], 0
je 0x45be3a
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 0x45c010
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x45c104
cmp word [edx], 0
je 0x45c104
mov ecx, dword [esp + 0x10]
push esi
cmp ecx, 0x19
jne 0x45c09d
mov esi, dword [esp + 0xc]
mov ecx, edx
push edi
cmp dword [esi + 4], 0
lea edi, [ecx + 2]
je 0x45c070
jmp 0x45c050
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45c050
sub ecx, edi
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.0045c3e0
pop edi
pop esi
pop ecx
ret 0xc
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45c070
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.0045ca10
mov esi, eax
test esi, esi
je 0x45c0fb
mov eax, dword [esp + 0xc]
cmp dword [eax + 4], 0
je 0x45c0d8
push dword [esp + 0x10]
push esi
push eax
call fcn.0045c3e0
mov dword [esp + 4], eax
jmp 0x45c0ec
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 [0x473494]
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
Function at 0x45c2c0
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp dword [esi + 0x14], 0
jne 0x45c2e1
push esi
call fcn.0045b570
mov dword [esi + 0x14], 1
mov dword [esi + 0xc], 0
mov ebx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0x10]
cmp ebx, edi
jl 0x45c355
add eax, dword [esi + 4]
mov ecx, edi
sub eax, ebx
dec ecx
je 0x45c342
dec ecx
je 0x45c32d
sub ecx, 2
je 0x45c31a
push edi
push eax
push dword [esp + 0x1c]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [eax]
mov eax, dword [esp + 0x14]
mov dword [eax], ecx
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov cx, word [eax]
mov eax, dword [esp + 0x14]
mov word [eax], cx
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [esp + 0x14]
mov dl, byte [eax]
mov eax, edi
mov byte [ecx], dl
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
push ebp
mov ebp, dword [esp + 0x18]
sub eax, ebx
add eax, dword [esi + 4]
push ebx
push eax
push ebp
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 8]
add esp, 0xc
sub edi, ebx
add ebp, ebx
push 0
cmp edi, eax
jl 0x45c39a
lea eax, [esp + 0x18]
push eax
push edi
push ebp
push dword [esi]
call dword [sym.imp.kernel32.dll_ReadFile]
mov eax, dword [esp + 0x14]
pop ebp
pop edi
mov dword [esi + 0xc], 0
add eax, ebx
pop esi
pop ebx
ret 0xc
lea ecx, [esp + 0x18]
push ecx
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.kernel32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
cmp edi, eax
jle 0x45c3bb
mov edi, eax
push edi
push dword [esi + 4]
push ebp
call sub.MSVCRT.dll_memcpy
sub dword [esi + 0xc], edi
lea eax, [ebx + edi]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x45c3e0
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 0x45c4e7
cmp dword [esi + 0x14], 1
jne 0x45c42b
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 0x45c4a8
mov ecx, dword [esi + 8]
add ecx, dword [esi + 4]
sub ecx, eax
mov eax, edi
dec eax
je 0x45c493
dec eax
je 0x45c47c
sub eax, 2
je 0x45c467
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.0045b570
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x45c4d5
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 0x45c451
xor eax, eax
pop esi
add esp, 0xc
ret 0xc
Function at 0x45c4f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push 0x1000
push 0
push dword [0x473494]
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, eax
mov dword [esp + 8], ecx
test ecx, ecx
je 0x45c69d
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 0x45c544
test ebp, ebp
je 0x45c5fd
dec ebp
cmp dword [ebx + 4], 0
je 0x45c55d
push 2
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.0045c2c0
mov dword [esp + 0x14], eax
jmp 0x45c577
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 0x45c5fd
test ax, ax
je 0x45c591
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 0x45c5d8
mov eax, dword [esp + 0x20]
add edx, 0x800
add eax, 0x1000
mov dword [esp + 0x1c], edx
push eax
push ecx
push 8
push dword [0x473494]
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 0x45c5fd
cmp dword [esp + 0x30], 0
jne 0x45c536
cmp ax, 0xd
je 0x45c604
cmp ax, 0xa
jne 0x45c536
sub edi, 2
jmp 0x45c67c
cmp dword [esp + 0x30], 0
jne 0x45c67c
cmp ax, 0xa
jne 0x45c60f
sub edi, 2
jmp 0x45c67c
cmp ax, 0xd
jne 0x45c67c
sub edi, 2
cmp dword [ebx + 4], 0
je 0x45c631
push 2
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.0045c2c0
mov dword [esp + 0x14], eax
jmp 0x45c647
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 0x45c67c
cmp dword [ebx + 4], 0
je 0x45c65b
add dword [ebx + 0xc], 2
jmp 0x45c67c
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 0x45c6b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x473494]
mov dword [esp + 0x10], 0x1000
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0xc], edx
test edx, edx
je 0x45c800
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 0x45c6fc
test edi, edi
je 0x45c76d
dec edi
push esi
push ebp
call fcn.0045ca80
mov dword [esp + 0x20], eax
test eax, eax
jne 0x45c70f
xor cl, cl
jmp 0x45c711
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 0x45c754
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x473494]
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 0x45c76d
test eax, eax
jne 0x45c6f2
cmp cl, 0xd
je 0x45c771
cmp cl, 0xa
jne 0x45c6f2
dec esi
jmp 0x45c7e3
test eax, eax
jne 0x45c7e3
cmp cl, 0xa
jne 0x45c779
dec esi
jmp 0x45c7e3
cmp cl, 0xd
jne 0x45c7e3
dec esi
cmp dword [ebp + 4], 0
je 0x45c798
push 1
lea eax, [esp + 0x17]
push eax
push ebp
call fcn.0045c2c0
mov dword [esp + 0x20], eax
jmp 0x45c7af
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 0x45c7e3
cmp dword [ebp + 4], 0
je 0x45c7c1
inc dword [ebp + 0xc]
jmp 0x45c7e3
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