joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413e30
Capabilities:
Get file size

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x804]
test eax, eax
mov dword [esi + 0x818], 0
mov dword [esi + 0x81c], 0
jne 0x413e57
xor edx, edx
pop esi
pop ecx
ret
push edi
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x413e7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x413e7d
pop edi
xor eax, eax
xor edx, edx
pop esi
pop ecx
ret
mov edx, dword [esp + 8]
push 1
push 0
push 0
push edx
call fcn.004454d0
xor ecx, ecx
add eax, edi
adc edx, ecx
pop edi
mov dword [esi + 0x818], eax
mov dword [esi + 0x81c], edx
pop esi
pop ecx
ret

Function at 0x413f50
Capabilities:
Read file on windows

Disassembly:
mov edx, dword [esp + 0xc]
mov dword [edx], 0
mov eax, dword [ecx + 0x804]
test eax, eax
jne 0x413f69
xor al, al
ret 0xc
mov ecx, dword [esp + 8]
push 0
push edx
mov edx, dword [esp + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne al
ret 0xc

Function at 0x413f90
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx + 0x804]
test eax, eax
jne 0x413f9f
xor al, al
ret 0xc
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0
push ecx
mov ecx, dword [esp + 0xc]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne al
ret 0xc
Function at 0x414cd0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x28]
push esi
mov esi, ecx
mov eax, dword [esi + 0xb388]
mov dword [ebp], eax
mov ecx, dword [esi + 0xb38c]
mov dword [ebp + 4], ecx
mov eax, dword [esi + 0xb388]
mov ecx, dword [esi + 0xb184]
mov edx, dword [esi + 0xb180]
push edi
mov edi, dword [esp + 0x28]
add eax, edi
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0xb38c]
adc eax, ebx
cmp eax, ecx
mov dword [esp + 0x10], edx
jl 0x414d4f
mov eax, edx
jg 0x414d29
cmp dword [esp + 0x18], eax
jbe 0x414d4f
sub eax, dword [esi + 0xb388]
sbb ecx, dword [esi + 0xb38c]
mov edi, eax
mov ebx, ecx
or eax, ebx
jne 0x414d4f
pop edi
pop esi
mov dword [ebp], eax
mov dword [ebp + 4], eax
pop ebp
mov al, 1
pop ebx
add esp, 0x10
ret 0x10
mov edx, dword [esi + 0xb390]
mov eax, dword [esi + 0xb394]
mov ecx, dword [0x48609c]
mov dword [esp + 0x28], edx
add edx, edi
mov dword [esp + 0x2c], eax
adc eax, ebx
cmp eax, ecx
jl 0x414e84
mov eax, dword [0x486098]
jg 0x414d84
cmp edx, eax
jbe 0x414e84
sub eax, dword [esp + 0x28]
sbb ecx, dword [esp + 0x2c]
mov dword [esi + 0xb178], eax
test ecx, ecx
mov dword [esi + 0xb17c], ecx
jl 0x414de8
jg 0x414da2
test eax, eax
jbe 0x414de8
mov edx, dword [esp + 0x24]
push 0
lea ebp, [esi + 0xb170]
push ebp
mov ecx, eax
mov eax, dword [esi + 0x1160]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp]
add dword [esi + 0xb388], ecx
mov edx, dword [esi + 0xb178]
mov eax, dword [esi + 0xb17c]
adc dword [esi + 0xb38c], 0
add dword [esi + 0xb390], edx
adc dword [esi + 0xb394], eax
mov ecx, esi
call fcn.004149e0
test al, al
jne 0x414e04
pop edi
pop esi
pop ebp
mov byte [0x486047], 1
pop ebx
add esp, 0x10
ret 0x10
mov eax, edi
sub eax, dword [esi + 0xb178]
mov ecx, ebx
sbb ecx, dword [esi + 0xb17c]
mov dword [esp + 0x2c], ecx
js 0x414ed7
jg 0x414e28
test eax, eax
jbe 0x414ed7
mov eax, dword [esi + 0xb178]
mov ecx, dword [esp + 0x24]
push 0
lea ebp, [esi + 0xb170]
push ebp
mov edx, edi
sub edx, eax
push edx
mov edx, dword [esi + 0x1160]
add eax, ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp]
add dword [esi + 0xb388], eax
mov al, 1
adc dword [esi + 0xb38c], 0
sub edi, dword [esi + 0xb178]
sbb ebx, dword [esi + 0xb17c]
add dword [esi + 0xb390], edi
pop edi
adc dword [esi + 0xb394], ebx
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + 0x1160]
push 0
lea eax, [esi + 0xb170]
push eax
push edi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esi + 0xb170]
add dword [esi + 0xb388], eax
mov ecx, dword [esi + 0xb388]
adc dword [esi + 0xb38c], 0
add dword [esi + 0xb390], edi
mov edx, dword [esi + 0xb38c]
adc dword [esi + 0xb394], ebx
sub ecx, dword [ebp]
sbb edx, dword [ebp + 4]
mov dword [ebp], ecx
mov dword [ebp + 4], edx
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x10
ret 0x10
Function at 0x418320
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
xor eax, eax
cmp byte [esi + 0xdd], al
je 0x41837a
push 0x486024
push eax
push esi
push 0x4049f0
mov byte [esi + 0xdd], al
push eax
push 0x486028
mov byte [0x486046], al
mov dword [0x486028], 0xc
mov dword [0x48602c], eax
mov dword [0x486030], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x100
push eax
mov dword [0x486020], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 5
mov ecx, esi
call fcn.00427738
pop esi
ret

Function at 0x418d80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x461208
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x484904]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0x34]
push eax
lea ecx, [esi + 0x1c]
mov dword [esp + 0x30], 0
call fcn.0041f3c0
push str..TempFile
lea ecx, [esp + 0x10]
call fcn.0041f3f0
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x38], 1
call fcn.004187d0
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 3
call fcn.0041f1d0
sub esp, 0xc
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.0041f330
mov ecx, esi
call fcn.00418870
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 0
call fcn.0041f1d0
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0041f1d0
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x28
ret 0xc
Function at 0x4205c0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4627c9
mov eax, dword fs:[0]
push eax
mov eax, 0xa030
call fcn.00444dc0
mov eax, dword [0x484904]
xor eax, esp
mov dword [esp + 0xa02c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x484904]
xor eax, esp
push eax
lea eax, [esp + 0xa044]
mov dword fs:[0], eax
mov ebp, ecx
xor ebx, ebx
push 0x467770
lea ecx, [esp + 0x1c]
mov dword [esp + 0xa050], ebx
call fcn.0041f3f0
mov eax, dword [esp + 0xa058]
push 0x467e10
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0xa058], 1
call fcn.00444d67
add esp, 0xc
test eax, eax
jne 0x420764
mov edx, dword [esp + 0x14]
push 2
push ebx
push edx
call fcn.00446f70
mov eax, dword [esp + 0x20]
push eax
call fcn.00446e7b
add esp, 0x10
cmp eax, ebx
jne 0x420672
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00444c27
add esp, 4
jmp 0x420764
cdq
mov ecx, 0xa000
idiv ecx
mov edi, edx
mov edx, dword [esp + 0x14]
push edx
mov esi, eax
call fcn.00446c1e
add esp, 4
cmp esi, ebx
jle 0x4206ea
nop
mov eax, dword [esp + 0x14]
push eax
push 1
lea ecx, [esp + 0x3c]
push 0xa000
push ecx
call fcn.00446c03
add esp, 0x10
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x28]
mov byte [esp + 0xa038], bl
call fcn.0041f4a0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa050], 2
call fcn.0041f760
lea ecx, [esp + 0x24]
mov byte [esp + 0xa04c], 1
call fcn.0041f1d0
sub esi, 1
jne 0x420690
mov ecx, dword [esp + 0x14]
push ecx
push 1
lea edx, [esp + 0x3c]
push edi
push edx
call fcn.00446c03
add esp, 0x10
cmp edi, ebx
mov byte [esp + edi + 0x34], bl
je 0x42073c
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x28]
call fcn.0041f4a0
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa050], 3
call fcn.0041f760
lea ecx, [esp + 0x24]
mov byte [esp + 0xa04c], 1
call fcn.0041f1d0
mov edx, dword [esp + 0x14]
push edx
call fcn.00444c27
add esp, 4
push ebx
sub esp, 0xc
lea eax, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
call fcn.0041f330
mov ecx, ebp
call fcn.00420410
lea ecx, [esp + 0x18]
mov byte [esp + 0xa04c], bl
call fcn.0041f1d0
lea ecx, [esp + 0xa054]
mov dword [esp + 0xa04c], 0xffffffff
call fcn.0041f1d0
mov ecx, dword [esp + 0xa044]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa02c]
xor ecx, esp
call fcn.00443aa9
add esp, 0xa03c
ret 0xc
Function at 0x427258
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x463842
call fcn.004473dd
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.00432d0e
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x4272a3
call fcn.00432d0e
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x4272b4
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x4272c1
or eax, 0xffffffff
jmp 0x42741d
mov ecx, esi
call fcn.00426daa
mov dword [ebp - 0x14], eax
call fcn.0042baa2
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x42733f
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x42733f
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x42733f
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00426c39
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x42733f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x42733f
mov ecx, ebx
call fcn.00427759
test eax, eax
je 0x42733f
push 0
mov ecx, ebx
call fcn.00427774
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0042d55b
push dword [ebp - 0x14]
call fcn.0042b9fa
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.00427060
xor edi, edi
cmp eax, edi
je 0x42739c
test byte [esi + 0x3c], 0x10
je 0x427386
push 4
pop edi
mov ecx, esi
call fcn.00427616
test ax, 0x100
je 0x42737c
push 5
pop edi
push edi
mov ecx, esi
call fcn.0042b56b
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x42739c
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00427964
or dword [ebp - 4], 0xffffffff
jmp 0x4273c7
cmp dword [ebp - 0x28], edi
je 0x4273d5
push 1
mov ecx, ebx
call fcn.00427774
cmp dword [ebp - 0x2c], edi
je 0x4273e5
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x4273fe
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x4273fe
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.00426de4
cmp dword [esi + 0x58], edi
je 0x42741a
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.00447482
ret
Function at 0x42cb23
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x42cb5c
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0042cae6
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0042b8f3
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x42e588
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 0x42e5cb
call fcn.00432d0e
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x42e5cb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42e5e6
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0042e13f
test ebx, ebx
mov esi, eax
je 0x42e5e4
test edi, edi
je 0x42e5e4
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x42fb1e
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x484904]
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 - 0x11c]
jne 0x42fb5e
push 0x46c550
push 4
push eax
call fcn.00444415
push eax
call fcn.00411f50
add esp, 0x10
jmp 0x42fb70
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x42fbde
push edi
call fcn.0044764e
mov edi, dword [eax]
call fcn.0044764e
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.004477ef
add esp, 0x18
mov ebx, eax
call fcn.0044764e
cmp dword [eax], 0
je 0x42fbbe
call fcn.0044764e
push dword [eax]
call fcn.004283df
pop ecx
jmp 0x42fbc5
call fcn.0044764e
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x42fbde
cmp ebx, esi
jae 0x42fbde
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x42fbe0
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00443aa9
leave
ret
Function at 0x431a73
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 0x431ab9
call fcn.00432d0e
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x431ab9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x431afc
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 0x431ae5
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 0x431ae5
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x431af9
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 0x436d22
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 0x436d50
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x436d6e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00436c8c
jmp 0x436d6e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x436d6e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00436c8c
test edi, edi
mov eax, edi
jne 0x436d58
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4933a0]
test ecx, ecx
je 0x436e31
jmp 0x436d21
ret 8

Function at 0x443aa9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x484904]
jne 0x443ab3
repz ret
jmp fcn.0044baec
Function at 0x446967
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 0x4469a4
cmp dword [ebp + 0x14], edi
je 0x4469a4
cmp ecx, edi
jne 0x4469ab
call fcn.0044764e
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0044bcf6
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4469bf
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4469e0
cmp ebx, 0xffffffff
je 0x4469cf
push ebx
push edi
push ecx
call fcn.004447d0
add esp, 0xc
cmp esi, edi
je 0x44698c
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x44698c
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4469fc
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x446a03
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x446af4
test word [esi + 0xc], 0x10c
je 0x446a57
mov eax, dword [esi + 4]
test eax, eax
je 0x446a57
jl 0x446b55
cmp ebx, eax
mov edi, ebx
jb 0x446a28
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x446afc
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00444261
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 0x446aec
cmp ebx, dword [ebp - 0xc]
jb 0x446ac4
cmp dword [ebp - 0xc], 0
je 0x446a81
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x446a76
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x446a7d
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x446a8c
mov eax, SysReAllocString
cmp ebx, eax
ja 0x446a8c
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x446b28
push eax
push dword [ebp - 8]
push esi
call fcn.00450c9e
pop ecx
push eax
call fcn.004537ab
add esp, 0xc
test eax, eax
je 0x446b67
cmp eax, 0xffffffff
je 0x446b55
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x446aec
push esi
call fcn.004530ca
cmp eax, 0xffffffff
pop ecx
je 0x446b59
cmp dword [ebp - 4], 0
je 0x446b28
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 0x446a0b
mov eax, dword [ebp + 0x14]
jmp 0x4469a6
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x446b13
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004447d0
add esp, 0xc
call fcn.0044764e
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x44699c
cmp dword [ebp + 0xc], 0xffffffff
je 0x446b3e
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004447d0
add esp, 0xc
call fcn.0044764e
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x44699c
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4469a6
or dword [esi + 0xc], 0x10
jmp 0x446b59
Function at 0x4506d4
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 + 0x485288]
je 0x4506ef
inc edi
cmp edi, 0x17
jb 0x4506e0
cmp edi, 0x17
jae 0x45086f
push ebp
push 3
call fcn.004592ee
cmp eax, 1
pop ecx
je 0x45083b
push 3
call fcn.004592ee
test eax, eax
pop ecx
jne 0x450723
cmp dword [0x484940], 1
je 0x45083b
cmp ebx, 0xfc
je 0x45086e
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x493b90
push ebp
call fcn.00444415
add esp, 0xc
test eax, eax
je 0x450759
push esi
push esi
push esi
push esi
push esi
call fcn.0044bbfa
add esp, 0x14
push 0x104
mov esi, 0x493ba9
push esi
push 0
mov byte [0x493cad], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x45079d
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00444415
add esp, 0xc
test eax, eax
je 0x45079d
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0044bbfa
add esp, 0x14
push esi
call fcn.00447530
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4507e2
push esi
call fcn.00447530
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x493ea4
push 0x46e664
sub ecx, eax
push ecx
push eax
call fcn.0044769d
add esp, 0x14
test eax, eax
je 0x4507e2
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0044bbfa
add esp, 0x14
jmp 0x4507e4
xor esi, esi
push 0x46e660
push ebx
push ebp
call fcn.0044447a
add esp, 0xc
test eax, eax
je 0x450804
push esi
push esi
push esi
push esi
push esi
call fcn.0044bbfa
add esp, 0x14
push dword [edi*8 + 0x48528c]
push ebx
push ebp
call fcn.0044447a
add esp, 0xc
test eax, eax
je 0x450826
push esi
push esi
push esi
push esi
push esi
call fcn.0044bbfa
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00459131
add esp, 0xc
jmp 0x45086e
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x45086e
cmp ebp, 0xffffffff
je 0x45086e
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x48528c]
push dword [esi]
call fcn.00447530
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
Function at 0x459131
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0044b521
xor ebx, ebx
cmp dword [0x4940fc], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x459207
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4592e7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x473190
push edi
call esi
cmp eax, ebx
je 0x4592e7
push eax
call fcn.0044b4b3
mov dword [esp], 0x473180
push edi
mov dword [0x4940fc], eax
call esi
push eax
call fcn.0044b4b3
mov dword [esp], 0x47316c
push edi
mov dword [0x494100], eax
call esi
push eax
call fcn.0044b4b3
mov dword [0x494104], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00449004
test eax, eax
pop ecx
pop ecx
je 0x4591d5
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0044bbfa
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x459207
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0044b4b3
cmp eax, ebx
pop ecx
mov dword [0x49410c], eax
je 0x459207
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0044b4b3
pop ecx
mov dword [0x494108], eax
mov eax, dword [0x494108]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x45928c
cmp dword [0x49410c], ecx
je 0x45928c
push eax
call fcn.0044b52a
push dword [0x49410c]
mov esi, eax
call fcn.0044b52a
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x45928c
cmp edi, ebx
je 0x45928c
call esi
cmp eax, ebx
je 0x459259
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x459259
test byte [ebp - 0x18], 1
jne 0x45928c
lea eax, [ebp - 0x10]
push eax
call fcn.0044903b
test eax, eax
pop ecx
je 0x459274
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0044bbfa
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x459283
or dword [ebp + 0x10], 0x200000
jmp 0x4592c7
or dword [ebp + 0x10], 0x40000
jmp 0x4592c7
mov eax, dword [0x494100]
cmp eax, dword [ebp - 8]
je 0x4592c7
push eax
call fcn.0044b52a
cmp eax, ebx
pop ecx
je 0x4592c7
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4592c7
mov eax, dword [0x494104]
cmp eax, dword [ebp - 8]
je 0x4592c7
push eax
call fcn.0044b52a
cmp eax, ebx
pop ecx
je 0x4592c7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4940fc]
call fcn.0044b52a
cmp eax, ebx
pop ecx
je 0x4592e7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4592e9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret