joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c400
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4862d0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4b445c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
or edi, 0xffffffff
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x43c46b
or eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x1f4
call fcn.00449db2
add esp, 4
mov esi, eax
mov dword [ebp - 0x1c], 0x1f4
mov dword [ebp - 0x20], 4
lea ecx, [ebp - 0x1c]
push ecx
push esi
lea edx, [ebp - 0x20]
push edx
push 0
push str.ConsentPromptBehaviorAdmin
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x43c4cb
movzx eax, byte [esi]
cmp eax, 2
je 0x43c4bc
cmp eax, 1
je 0x43c4bc
cmp eax, 5
je 0x43c4bc
xor edi, edi
jmp 0x43c4be
mov edi, eax
mov dword [ebp - 0x14], edi
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.00449db7
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43c510
Capabilities:
Get session user name

Disassembly:
push ebp
lea ebp, [esp - 0x204]
sub esp, 0x204
push 0xffffffffffffffff
push 0x4862f0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4b445c]
xor eax, ebp
mov dword [ebp + 0x200], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0x200
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea edx, [ebp - 0x14]
push edx
push 1
lea eax, [ebp]
push eax
push 0
call sub.NETAPI32.dll_NetUserGetInfo
test eax, eax
jne 0x43c59e
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0xc], 2
sete bl
push eax
call sub.NETAPI32.dll_NetApiBufferFree
mov al, bl
jmp 0x43c5a0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x200]
xor ecx, ebp
call fcn.0045e17e
add ebp, 0x204
mov esp, ebp
pop ebp
ret

Function at 0x43c5d0
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x4b445c]
xor eax, esp
mov dword [esp + 0x94], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x43c622
cmp dword [esp + 0x10], 2
jne 0x43c622
cmp dword [esp + 4], 6
jb 0x43c622
mov eax, 1
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0045e17e
add esp, 0x98
ret
mov ecx, dword [esp + 0x94]
xor ecx, esp
xor eax, eax
call fcn.0045e17e
add esp, 0x98
ret
Function at 0x43ca30
Capabilities:
Print debug messages

Disassembly:
push esi
push str.CThreadBase::MarkTheadToStop__
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [esi + 0xc], 0
pop esi
ret

Function at 0x43ca50
Capabilities:
Create thread
Resume thread

Disassembly:
push ecx
push esi
push edi
lea eax, [esp + 8]
push eax
push 4
mov esi, ecx
push esi
push 0x43ca20
push 0
push 0
mov dword [esp + 0x20], 0
mov byte [esi + 0xc], 1
call fcn.00464bbe
mov edi, eax
add esp, 0x18
test edi, edi
je 0x43ca92
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x43ca9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
pop edi
mov byte [esi + 0xc], al
pop esi
pop ecx
ret
mov dword [esi + 8], edi
pop edi
mov al, 1
pop esi
pop ecx
ret

Function at 0x43cab0
Capabilities:
Terminate thread

Disassembly:
push ecx
push edi
mov edi, ecx
call fcn.0043ca30
cmp dword [edi + 8], 0
je 0x43cb18
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
xor esi, esi
mov ecx, dword [edi + 8]
lea eax, [esp + 0x10]
push eax
push ecx
call ebx
test eax, eax
je 0x43caed
cmp dword [esp + 0x10], 0x103
jne 0x43cb04
push 0x1e
call ebp
add esi, 1
cmp esi, 0x64
jl 0x43cad0
mov edx, dword [edi + 8]
push 0x102
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
mov dword [edi + 8], 0
pop ebx
pop edi
pop ecx
ret
Function at 0x43e050
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0x58
mov eax, dword [0x4b445c]
xor eax, esp
mov dword [esp + 0x54], eax
push ebx
push esi
push edi
mov ecx, 0x10
mov esi, 0x491c80
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
mov ebx, dword [esp + 0x6c]
movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x70]
mov eax, 0x55555556
imul esi
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*2]
sub esi, edx
xor edi, edi
xor ecx, ecx
test eax, eax
mov dword [esp + 0x14], esi
jle 0x43e15b
mov edx, dword [esp + 0x74]
add edx, 0xfffffffc
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x18], edx
push ebp
movzx edx, byte [eax]
mov byte [esp + 0x12], dl
movzx edx, byte [eax + 1]
movzx esi, byte [esp + 0x12]
mov byte [esp + 0x11], dl
movzx ebp, byte [esp + 0x11]
add eax, 1
movzx edx, byte [eax + 1]
mov byte [esp + 0x13], dl
add eax, 1
mov edx, esi
shr edx, 2
movzx edx, byte [esp + edx + 0x20]
mov byte [ebx], dl
mov edx, ebp
shr edx, 4
shl esi, 4
or edx, esi
movzx esi, byte [esp + 0x13]
and edx, 0x3f
movzx edx, byte [esp + edx + 0x20]
mov byte [ebx + 1], dl
add ebx, 1
mov edx, esi
shr edx, 6
add ebp, ebp
add ebp, ebp
or edx, ebp
and edx, 0x3f
movzx edx, byte [esp + edx + 0x20]
add ebx, 1
mov byte [ebx], dl
and esi, 0x3f
movzx edx, byte [esp + esi + 0x20]
add ebx, 1
mov byte [ebx], dl
add ecx, 4
add eax, 1
add ebx, 1
add edi, 4
cmp ecx, dword [esp + 0x1c]
jl 0x43e149
mov byte [ebx], 0xd
add ebx, 1
mov byte [ebx], 0xa
add ebx, 1
xor ecx, ecx
add edi, 2
sub dword [esp + 0x14], 1
jne 0x43e0b1
mov esi, dword [esp + 0x18]
pop ebp
jmp 0x43e15f
mov eax, dword [esp + 0x68]
cmp esi, 1
jne 0x43e187
movzx eax, byte [eax]
mov ecx, eax
shr ecx, 2
mov dl, byte [esp + ecx + 0x1c]
and eax, 3
mov byte [ebx], dl
shl eax, 4
mov al, byte [esp + eax + 0x1c]
add ebx, esi
mov byte [ebx], al
add ebx, esi
mov byte [ebx], 0x3d
jmp 0x43e1c7
cmp esi, 2
jne 0x43e1d3
mov cl, byte [eax]
mov al, byte [eax + 1]
movzx ecx, cl
mov edx, ecx
shr edx, 2
movzx edx, byte [esp + edx + 0x1c]
mov byte [ebx], dl
movzx eax, al
and ecx, 3
mov edx, eax
shr edx, 4
shl ecx, 4
or edx, ecx
movzx ecx, byte [esp + edx + 0x1c]
add ebx, 1
mov byte [ebx], cl
add ebx, 1
and eax, 0xf
movzx edx, byte [esp + eax*4 + 0x1c]
mov byte [ebx], dl
add ebx, 1
mov byte [ebx], 0x3d
add ebx, 1
add edi, 4
mov ecx, dword [esp + 0x60]
mov eax, edi
pop edi
pop esi
mov byte [ebx], 0
pop ebx
xor ecx, esp
call fcn.0045e17e
add esp, 0x58
ret
Function at 0x44a515
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x486776
call fcn.0046521a
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.0044b354
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x44a560
call fcn.0044b354
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 0x44a571
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x44a57e
or eax, 0xffffffff
jmp 0x44a6da
mov ecx, esi
call fcn.0044a067
mov dword [ebp - 0x14], eax
call fcn.0044dac5
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x44a5fc
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x44a5fc
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x44a5fc
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.004359b0
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x44a5fc
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x44a5fc
mov ecx, ebx
call fcn.00451286
test eax, eax
je 0x44a5fc
push 0
mov ecx, ebx
call fcn.004512a1
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0044f4f9
push dword [ebp - 0x14]
call fcn.0044da1d
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0044a31d
xor edi, edi
cmp eax, edi
je 0x44a659
test byte [esi + 0x3c], 0x10
je 0x44a643
push 4
pop edi
mov ecx, esi
call fcn.00451143
test ax, 0x100
je 0x44a639
push 5
pop edi
push edi
mov ecx, esi
call fcn.0044d5b3
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x44a659
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00451308
or dword [ebp - 4], 0xffffffff
jmp 0x44a684
cmp dword [ebp - 0x28], edi
je 0x44a692
push 1
mov ecx, ebx
call fcn.004512a1
cmp dword [ebp - 0x2c], edi
je 0x44a6a2
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x44a6bb
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x44a6bb
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.0044a0a1
cmp dword [esi + 0x58], edi
je 0x44a6d7
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.00465286
ret
Function at 0x44eac4
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x44eafd
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.0044ea87
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0041ea70
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x45013f
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x48a0f8
mov ecx, edi
call fcn.004023b0
cmp dword [esi + 0x4c], 0
push dword [esp + 0xc]
jne 0x450192
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x4501a5
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.0044ea87
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.0041ea70
jmp 0x4501a5
mov ecx, esi
call fcn.00451076
test eax, eax
je 0x4501a5
push edi
mov ecx, eax
call fcn.0044eac4
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
pop edi
pop esi
ret 8

Function at 0x450789
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 0x4507cc
call fcn.0044b354
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4507cc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4507e7
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00450340
test ebx, ebx
mov esi, eax
je 0x4507e5
test edi, edi
je 0x4507e5
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x451385
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x486fb0
call fcn.004651e7
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4513aa
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4513f6
call fcn.0045182e
push eax
lea ecx, [ebp - 0x10]
call fcn.004019a0
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.0044a8ed
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401130
mov eax, esi
call fcn.00465286
ret 8
Function at 0x455d82
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4b445c]
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 0x455dc2
push 0x498578
push 4
push eax
call fcn.0046182e
push eax
call fcn.00401000
add esp, 0x10
jmp 0x455dd4
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x455e42
push edi
call fcn.0046487a
mov edi, dword [eax]
call fcn.0046487a
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.0045f238
add esp, 0x18
mov ebx, eax
call fcn.0046487a
cmp dword [eax], 0
je 0x455e22
call fcn.0046487a
push dword [eax]
call fcn.004182d0
pop ecx
jmp 0x455e29
call fcn.0046487a
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x455e42
cmp ebx, esi
jae 0x455e42
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x455e44
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0045e17e
leave
ret
Function at 0x458203
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x45820c
xor eax, eax
jmp 0x458275
cmp dword [esp + 8], 0
jne 0x458218
call fcn.0044a8a4
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.00460e10
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x458253
push dword [esi + 0x10]
call fcn.00467ae8
test eax, eax
pop ecx
jne 0x458253
mov esi, dword [esi + 0xc]
call fcn.0046488d
push esi
push dword [eax]
push 1
call fcn.0045c4b6
push dword [esi + 0x10]
call fcn.00467b17
test eax, eax
pop ecx
je 0x458272
push dword [esi + 0x10]
call fcn.00467a3c
push eax
call fcn.00401000
pop ecx
pop ecx
jmp 0x458241
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x45827e
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x458288
call fcn.0044a8a4
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.004627e0
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x4582b5
mov esi, dword [esi + 0xc]
call fcn.0046488d
push esi
push dword [eax]
push 1
call fcn.0045c4b6
pop esi
ret 8

Function at 0x458f72
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x458f9b
call fcn.0044b354
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x458fbe
push eax
push dword [esi + 4]
call fcn.00458efd
push esi
push eax
mov ecx, 0x4bcdf0
call fcn.00458bb9
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x459952
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x487968
call fcn.004651e7
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x20]
mov edi, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call fcn.00459914
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.00401a40
push dword [esi + 8]
mov edi, dword [edi + 8]
push dword [ebp + 0x10]
mov byte [ebp - 4], 1
push 3
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [esi + 4], eax
jne 0x4599b9
push eax
push dword [esi + 8]
call fcn.00458efd
push dword [esi + 0xc]
mov ecx, 0x4bcdf0
push eax
call fcn.00458bb9
mov eax, esi
call fcn.00465286
ret 0x1c

Function at 0x45e17e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4b445c]
jne 0x45e188
repz ret
jmp fcn.0046a6fc
Function at 0x460b74
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 0x460bb1
cmp dword [ebp + 0x14], edi
je 0x460bb1
cmp ecx, edi
jne 0x460bb8
call fcn.0046487a
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004616cb
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x460bcc
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x460bed
cmp ebx, 0xffffffff
je 0x460bdc
push ebx
push edi
push ecx
call fcn.0045eb50
add esp, 0xc
cmp esi, edi
je 0x460b99
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x460b99
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x460c09
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x460c10
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x460d01
test word [esi + 0xc], 0x10c
je 0x460c64
mov eax, dword [esi + 4]
test eax, eax
je 0x460c64
jl 0x460d62
cmp ebx, eax
mov edi, ebx
jb 0x460c35
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x460d09
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0045e94a
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 0x460cf9
cmp ebx, dword [ebp - 0xc]
jb 0x460cd1
cmp dword [ebp - 0xc], 0
je 0x460c8e
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x460c83
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x460c8a
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x460c99
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x460c99
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x460d35
push eax
push dword [ebp - 8]
push esi
call fcn.00467889
pop ecx
push eax
call fcn.0046f84e
add esp, 0xc
test eax, eax
je 0x460d74
cmp eax, 0xffffffff
je 0x460d62
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x460cf9
push esi
call fcn.0046f16d
cmp eax, 0xffffffff
pop ecx
je 0x460d66
cmp dword [ebp - 4], 0
je 0x460d35
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 0x460c18
mov eax, dword [ebp + 0x14]
jmp 0x460bb3
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x460d20
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0045eb50
add esp, 0xc
call fcn.0046487a
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x460ba9
cmp dword [ebp + 0xc], 0xffffffff
je 0x460d4b
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0045eb50
add esp, 0xc
call fcn.0046487a
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x460ba9
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x460bb3
or dword [esi + 0xc], 0x10
jmp 0x460d66
Function at 0x469113
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 + 0x4b4a98]
je 0x46912e
inc edi
cmp edi, 0x17
jb 0x46911f
cmp edi, 0x17
jae 0x4692ae
push ebp
push 3
call fcn.00475843
cmp eax, 1
pop ecx
je 0x46927a
push 3
call fcn.00475843
test eax, eax
pop ecx
jne 0x469162
cmp dword [0x4b4550], 1
je 0x46927a
cmp ebx, 0xfc
je 0x4692ad
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4bd2b0
push ebp
call fcn.0046182e
add esp, 0xc
test eax, eax
je 0x469198
push esi
push esi
push esi
push esi
push esi
call fcn.004615cf
add esp, 0x14
push 0x104
mov esi, 0x4bd2c9
push esi
push 0
mov byte [0x4bd3cd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4691dc
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0046182e
add esp, 0xc
test eax, eax
je 0x4691dc
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004615cf
add esp, 0x14
push esi
call fcn.004652e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x469221
push esi
call fcn.004652e0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4bd5c4
push 0x491efc
sub ecx, eax
push ecx
push eax
call fcn.004653c3
add esp, 0x14
test eax, eax
je 0x469221
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004615cf
add esp, 0x14
jmp 0x469223
xor esi, esi
push 0x499918
push ebx
push ebp
call fcn.004617bd
add esp, 0xc
test eax, eax
je 0x469243
push esi
push esi
push esi
push esi
push esi
call fcn.004615cf
add esp, 0x14
push dword [edi*8 + 0x4b4a9c]
push ebx
push ebp
call fcn.004617bd
add esp, 0xc
test eax, eax
je 0x469265
push esi
push esi
push esi
push esi
push esi
call fcn.004615cf
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00475686
add esp, 0xc
jmp 0x4692ad
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4692ad
cmp ebp, 0xffffffff
je 0x4692ad
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4b4a9c]
push dword [esi]
call fcn.004652e0
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