joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421f20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x462dc8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x480aa4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], vtable.CRgn.0
mov esi, dword [esp + 0x38]
lea eax, [esp + 0x18]
push eax
push esi
mov dword [esp + 0x38], 0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x1c]
mov dword [esp + 0xc], ecx
fild dword [esp + 0xc]
fld qword [0x46b818]
fsub st(1), st(0)
fxch st(1)
call fcn.004480d0
mov edx, dword [esp + 0x20]
sub edx, dword [esp + 0x18]
mov edi, eax
mov dword [esp + 0xc], edx
fild dword [esp + 0xc]
fsubrp st(1)
call fcn.004480d0
push 0x14
push 0x14
push edi
push eax
push 2
push 2
call dword [sym.imp.GDI32.dll_CreateRoundRectRgn]
push eax
lea ecx, [esp + 0x14]
call fcn.004317cb
mov eax, dword [esp + 0x14]
push 1
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowRgn]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push 0x50
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x20]
sub edx, ecx
push edx
push eax
push ecx
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
push 0
push esi
call dword [sym.imp.USER32.dll_InvalidateRect]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
lea ecx, [esp + 0x10]
call fcn.004317f4
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x10], vtable.CRgn.0
call fcn.00402150
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret

Function at 0x422330
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x462e98
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x480aa4]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, ecx
mov edi, dword [esp + 0x30]
push ecx
add edi, 0xfffffff0
mov dword [esp + 0x18], esp
mov esi, esp
push edi
mov dword [esp + 0x2c], 1
call fcn.004015f0
add eax, 0x10
mov dword [esi], eax
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
mov dword [esp + 0x20], esp
mov ebx, esp
push esi
mov byte [esp + 0x30], 2
call fcn.004015f0
add eax, 0x10
mov dword [ebx], eax
add esp, 4
mov ecx, ebp
mov byte [esp + 0x2c], 1
call fcn.00426700
movzx ebx, al
mov byte [esp + 0x24], 0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4223c7
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov dword [esp + 0x24], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4223e8
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
Function at 0x425100
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x14
mov eax, dword [0x480aa4]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
push 0
mov esi, ecx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 4]
push eax
push str.AscTaskScheduler.clsTaskScheduler
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
push esi
push 0x46bca4
push 1
push 0
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
pop esi
jge 0x42515f
push str.Scheduled_Task:_CoCreateInstance_failed
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor al, al
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0044746c
add esp, 0x14
ret
mov ecx, dword [esp + 0x10]
xor ecx, esp
mov al, 1
call fcn.0044746c
add esp, 0x14
ret

Function at 0x425ec0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x463410
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
mov eax, dword [0x480aa4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea ecx, [esp + 0xc]
call fcn.004374f1
push 0
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x28]
mov dword [esp + 0x44], 0
xor bl, bl
call fcn.00407d60
mov eax, dword [esp + 0x40]
mov eax, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
push 0x8000
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 1
call fcn.004378d8
test eax, eax
je 0x425f51
push 2
lea edx, [esp + 0xc]
push edx
lea ecx, [esp + 0x14]
call fcn.004371ff
test eax, eax
jbe 0x425f48
cmp word [esp + 8], 0xfeff
jne 0x425f48
mov bl, 1
lea ecx, [esp + 0xc]
call fcn.0043748f
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x38], 0
mov dword [esp + 0x1c], vtable.CFileException.0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x425f7e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0xffffffff
call fcn.004375c5
mov al, bl
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x34
ret
Function at 0x426b50
Capabilities:
Create thread

Disassembly:
sub esp, 0x24
mov eax, dword [esp + 0x28]
push esi
push 0
push 0
push 1
push 0
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
lea ecx, [esp + 0x2c]
push ecx
push 0
lea edx, [esp + 0xc]
push edx
push 0x426b30
push 0
push 0
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push eax
call esi
cmp eax, 0x102
jne 0x426be8
push ebx
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
push ebp
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageW]
push edi
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
push 1
push 0
push 0
push 0
lea ecx, [esp + 0x28]
push ecx
call edi
test eax, eax
je 0x426bd5
lea edx, [esp + 0x18]
push edx
call ebx
lea eax, [esp + 0x18]
push eax
call ebp
mov ecx, dword [esp + 0x14]
push 0
push ecx
call esi
cmp eax, 0x102
je 0x426bb4
pop edi
pop ebp
pop ebx
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
add esp, 0x24
ret

Function at 0x427930
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x10
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.CreateAndShow_called
mov esi, ecx
call edi
push 0
push 0
push 0
push 3
call fcn.0042f59e
push str.After_AfxRegisterWndClass_called
call edi
mov edi, dword [esp + 0x20]
push 0
lea eax, [esp + 0xc]
push eax
push 0
push 0x30
mov dword [esi + 0x8c], edi
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [0x4823cc]
mov ecx, dword [esp + 0x14]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x10]
sub ecx, edi
sub ecx, 4
add edx, edx
mov dword [esp + 0xc], ecx
sub eax, edx
mov ecx, eax
sub ecx, dword [esp + 0x1c]
add eax, 0xfffffff6
sub ecx, 0xa
mov dword [esp + 8], ecx
mov dword [esp + 0x10], eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.0042ce8e
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x134]
push 0xea
mov ecx, esi
call eax
mov edi, eax
test edi, edi
jne 0x4279d0
pop edi
pop esi
add esp, 0x10
ret 8
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push 0
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x10]
sub edx, ecx
push edx
push eax
push ecx
push 0x483cc0
mov ecx, esi
call fcn.0042ff34
add dword [0x4823cc], 1
mov eax, dword [esp + 0x14]
mov edx, dword [esi + 0x20]
mov ecx, dword [esp + 0x10]
push 0
push 0xa
mov dword [esi + 0x80], eax
mov dword [esi + 0x78], eax
mov eax, dword [esp + 0x10]
push 0x10
push edx
mov dword [esi + 0x74], eax
mov dword [esi + 0x7c], ecx
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, edi
pop edi
pop esi
add esp, 0x10
ret 8
Function at 0x42decd
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x42df06
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0041d870
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00407020
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x42fae7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x42fb2a
call fcn.00433bca
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42fb2a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42fb45
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0042f6a1
test ebx, ebx
mov esi, eax
je 0x42fb43
test edi, edi
je 0x42fb43
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x430243
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x4640f2
call fcn.00448c10
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x430268
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x4302b4
call fcn.004321fd
push eax
lea ecx, [ebp - 0x10]
call fcn.00401500
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042a587
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401160
mov eax, esi
call fcn.00448ce8
ret 8
Function at 0x4330a5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x46409e
call fcn.00448c43
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.00433bca
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x4330f0
call fcn.00433bca
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x433101
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x43310e
or eax, 0xffffffff
jmp 0x43326a
mov ecx, esi
call fcn.00432bec
mov dword [ebp - 0x14], eax
call fcn.0042cf36
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x43318c
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x43318c
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x43318c
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.004011f0
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x43318c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x43318c
mov ecx, ebx
call fcn.0042fd46
test eax, eax
je 0x43318c
push 0
mov ecx, ebx
call fcn.0042fd61
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0042e8ca
push dword [ebp - 0x14]
call fcn.0042ce8e
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.00432ead
xor edi, edi
cmp eax, edi
je 0x4331e9
test byte [esi + 0x3c], 0x10
je 0x4331d3
push 4
pop edi
mov ecx, esi
call fcn.0042fc03
test ax, 0x100
je 0x4331c9
push 5
pop edi
push edi
mov ecx, esi
call fcn.0042ca24
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x4331e9
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0042ff34
or dword [ebp - 4], 0xffffffff
jmp 0x433214
cmp dword [ebp - 0x28], edi
je 0x433222
push 1
mov ecx, ebx
call fcn.0042fd61
cmp dword [ebp - 0x2c], edi
je 0x433232
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x43324b
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x43324b
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.00432c26
cmp dword [esi + 0x58], edi
je 0x433267
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.00448ce8
ret
Function at 0x434561
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x480aa4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0xc]
jne 0x43459e
push 0x46e078
push 4
push eax
call fcn.00448df9
push eax
call fcn.00401000
add esp, 0x10
jmp 0x4345b0
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x43461b
push edi
call fcn.00448edb
mov edi, dword [eax]
call fcn.00448edb
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.00448e81
add esp, 0x18
mov ebx, eax
call fcn.00448edb
cmp dword [eax], 0
je 0x4345fb
call fcn.00448edb
push dword [eax]
call fcn.0042a76d
pop ecx
jmp 0x434602
call fcn.00448edb
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x43461b
cmp ebx, esi
jae 0x43461b
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x43461d
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0044746c
leave
ret
Function at 0x434f26
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x434f2f
xor eax, eax
jmp 0x434f98
cmp dword [esp + 8], 0
jne 0x434f3b
call fcn.0042a53e
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.0044b9a1
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x434f76
push dword [esi + 0x10]
call fcn.0044b6a7
test eax, eax
pop ecx
jne 0x434f76
mov esi, dword [esi + 0xc]
call fcn.00448eee
push esi
push dword [eax]
push 1
call fcn.00435745
push dword [esi + 0x10]
call fcn.0044b6d6
test eax, eax
pop ecx
je 0x434f95
push dword [esi + 0x10]
call fcn.0044b5fb
push eax
call fcn.00401000
pop ecx
pop ecx
jmp 0x434f64
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x434fa1
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x434fab
call fcn.0042a53e
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.0044bb1b
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x434fd8
mov esi, dword [esi + 0xc]
call fcn.00448eee
push esi
push dword [eax]
push 1
call fcn.00435745
pop esi
ret 8

Function at 0x4361e5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x43622b
call fcn.00433bca
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x43622b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x43626e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x436257
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x436257
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x43626b
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x438306
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x438334
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x438352
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00438270
jmp 0x438352
mov eax, dword [esi + 0x14]
test eax, eax
je 0x438352
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00438270
test edi, edi
mov eax, edi
jne 0x43833c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x48403c]
test ecx, ecx
je 0x438415
jmp 0x438305
ret 8

Function at 0x44746c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x480aa4]
jne 0x447476
repz ret
jmp fcn.0045102c
Function at 0x447dcb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x447df8
call fcn.00448eee
mov dword [eax], esi
call fcn.00448edb
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0044de3c
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x447dd4
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x447e27
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00448f01
pop ecx
call fcn.00448edb
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x447e4e
test al, 1
je 0x447e4e
test byte [esp + 0xc], 2
je 0x447e4e
call fcn.00448eee
mov dword [eax], 5
call fcn.00448edb
mov dword [eax], 0xd
jmp 0x447e1e
xor eax, eax
pop esi
ret
Function at 0x44b705
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x44b742
cmp dword [ebp + 0x14], edi
je 0x44b742
cmp ecx, edi
jne 0x44b749
call fcn.00448edb
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0044de3c
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x44b75d
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x44b77e
cmp ebx, 0xffffffff
je 0x44b76d
push ebx
push edi
push ecx
call fcn.00447500
add esp, 0xc
cmp esi, edi
je 0x44b72a
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x44b72a
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x44b79a
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x44b7a1
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x44b892
test word [esi + 0xc], 0x10c
je 0x44b7f5
mov eax, dword [esi + 4]
test eax, eax
je 0x44b7f5
jl 0x44b8f3
cmp ebx, eax
mov edi, ebx
jb 0x44b7c6
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x44b89a
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0044697d
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x44b88a
cmp ebx, dword [ebp - 0xc]
jb 0x44b862
cmp dword [ebp - 0xc], 0
je 0x44b81f
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x44b814
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x44b81b
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x44b82a
mov eax, SysReAllocString
cmp ebx, eax
ja 0x44b82a
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x44b8c6
push eax
push dword [ebp - 8]
push esi
call fcn.0044b35a
pop ecx
push eax
call fcn.00457a10
add esp, 0xc
test eax, eax
je 0x44b905
cmp eax, 0xffffffff
je 0x44b8f3
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x44b88a
push esi
call fcn.00456996
cmp eax, 0xffffffff
pop ecx
je 0x44b8f7
cmp dword [ebp - 4], 0
je 0x44b8c6
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x44b7a9
mov eax, dword [ebp + 0x14]
jmp 0x44b744
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x44b8b1
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00447500
add esp, 0xc
call fcn.00448edb
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x44b73a
cmp dword [ebp + 0xc], 0xffffffff
je 0x44b8dc
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00447500
add esp, 0xc
call fcn.00448edb
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x44b73a
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x44b744
or dword [esi + 0xc], 0x10
jmp 0x44b8f7
Function at 0x44cb47
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x480c40]
je 0x44cb62
inc edi
cmp edi, 0x17
jb 0x44cb53
cmp edi, 0x17
jae 0x44cce2
push ebp
push 3
call fcn.00458e10
cmp eax, 1
pop ecx
je 0x44ccae
push 3
call fcn.00458e10
test eax, eax
pop ecx
jne 0x44cb96
cmp dword [0x480a84], 1
je 0x44ccae
cmp ebx, 0xfc
je 0x44cce1
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x484368
push ebp
call fcn.00458dab
add esp, 0xc
test eax, eax
je 0x44cbcc
push esi
push esi
push esi
push esi
push esi
call fcn.0044dd40
add esp, 0x14
push 0x104
mov esi, 0x484381
push esi
push 0
mov byte [0x484485], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x44cc10
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00458dab
add esp, 0xc
test eax, eax
je 0x44cc10
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0044dd40
add esp, 0x14
push esi
call fcn.00458d20
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x44cc55
push esi
call fcn.00458d20
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x48467c
push 0x470024
sub ecx, eax
push ecx
push eax
call fcn.00458c5f
add esp, 0x14
test eax, eax
je 0x44cc55
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0044dd40
add esp, 0x14
jmp 0x44cc57
xor esi, esi
push 0x470020
push ebx
push ebp
call fcn.00458bee
add esp, 0xc
test eax, eax
je 0x44cc77
push esi
push esi
push esi
push esi
push esi
call fcn.0044dd40
add esp, 0x14
push dword [edi*8 + 0x480c44]
push ebx
push ebp
call fcn.00458bee
add esp, 0xc
test eax, eax
je 0x44cc99
push esi
push esi
push esi
push esi
push esi
call fcn.0044dd40
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00458a31
add esp, 0xc
jmp 0x44cce1
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x44cce1
cmp ebp, 0xffffffff
je 0x44cce1
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x480c44]
push dword [esi]
call fcn.00458d20
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret