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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
xor edx, edx
cmp ebx, edx
je 0x41be6f
mov dword [ebx], edx
cmp edi, edx
je 0x41c03d
cmp eax, edx
mov dword [edi + 0x13c4], edx
je 0x41c03d
mov ecx, dword [ebp + 0xc]
cmp ecx, edx
jl 0x41c03d
cmp byte [edi + 0x1390], dl
je 0x41beb3
cmp ebx, edx
je 0x41bea2
mov dword [ebx], 0xffffffff
mov dword [edi + 0x13c4], 0xffffffff
xor eax, eax
pop ebx
pop ebp
ret 8
cmp ecx, edx
jne 0x41beca
cmp ebx, edx
je 0x41bebd
mov dword [ebx], edx
mov dword [edi + 0x13c4], edx
xor eax, eax
pop ebx
pop ebp
ret 8
mov dword [edi + 0x13a4], eax
mov eax, dword [edi]
push esi
push eax
mov dword [edi + 0x13a8], ecx
call fcn.0043d220
add esp, 4
test eax, eax
jne 0x41bf91
lea ebx, [ebx]
cmp dword [edi + 0x1398], 0
jne 0x41bf41
mov esi, dword [edi]
call fcn.0041b900
test al, al
jne 0x41bf41
mov ecx, dword [edi]
push ecx
push 0x1388
lea esi, [edi + 4]
push 1
push esi
call fcn.0043d087
mov edx, dword [edi]
push edx
mov ebx, eax
call fcn.0043d220
add esp, 0x14
test eax, eax
jne 0x41bfd1
mov dword [edi + 0x138c], ebx
mov dword [edi + 0x1398], ebx
mov ebx, dword [ebp + 8]
mov dword [edi + 0x1394], esi
lea eax, [edi + 0x1394]
call fcn.0041b720
test eax, eax
jne 0x41bfad
mov esi, dword [edi]
call fcn.0041b900
test al, al
je 0x41bf71
cmp dword [edi + 0x1398], 0
jne 0x41bf71
cmp dword [edi + 0x13a8], 0
ja 0x41c004
cmp dword [edi + 0x13a8], 0
je 0x41c020
mov eax, dword [edi]
push eax
call fcn.0043d220
add esp, 4
test eax, eax
je 0x41bef0
test ebx, ebx
je 0x41bf9b
mov dword [ebx], 0xfffffffa
pop esi
mov dword [edi + 0x13c4], 0xfffffffa
xor eax, eax
pop ebx
pop ebp
ret 8
cmp eax, 4
jne 0x41bff0
test ebx, ebx
je 0x41bfb8
mov dword [ebx], eax
mov eax, dword [ebp + 0xc]
sub eax, dword [edi + 0x13a8]
pop esi
mov dword [edi + 0x13c4], 4
pop ebx
pop ebp
ret 8
mov eax, dword [ebp + 8]
test eax, eax
je 0x41bf9b
mov dword [eax], 0xfffffffa
pop esi
mov dword [edi + 0x13c4], 0xfffffffa
xor eax, eax
pop ebx
pop ebp
ret 8
test ebx, ebx
je 0x41bff6
mov dword [ebx], eax
pop esi
mov dword [edi + 0x13c4], eax
xor eax, eax
pop ebx
pop ebp
ret 8
test ebx, ebx
je 0x41c00e
mov dword [ebx], 0xfffffff9
pop esi
mov dword [edi + 0x13c4], 0xfffffff9
xor eax, eax
pop ebx
pop ebp
ret 8
test ebx, ebx
je 0x41c02a
mov dword [ebx], 0
mov eax, dword [ebp + 0xc]
pop esi
mov dword [edi + 0x13c4], 0
pop ebx
pop ebp
ret 8
cmp ebx, edx
je 0x41c047
mov dword [ebx], 0xfffffffe
cmp edi, edx
je 0x41c055
mov dword [edi + 0x13c4], 0xfffffffe
xor eax, eax
pop ebx
pop ebp
ret 8
Function at 0x421db0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, eax
mov eax, dword [esi + 0x20]
mov ebx, dword [esi + 0x44]
cmp ebx, 0x2710
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x24]
push edi
mov edi, dword [esi + 0x268]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x30]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], edi
jge 0x421df2
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
push edi
push ebx
push edx
push eax
mov eax, ecx
jmp 0x421ec0
lea ecx, [ebx + 0x22]
test cl, 1
je 0x421dfd
add ecx, 1
add ecx, edx
cmp eax, 1
mov dword [ebp - 8], ecx
jge 0x421e0e
mov eax, 1
jmp 0x421e18
cmp eax, 0x64
jle 0x421e18
mov eax, 0x64
lea ecx, [eax - 1]
mov eax, 0x55555556
imul ecx
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [ebp - 8]
mov eax, ecx
imul eax, ebx
push edi
mov edi, dword [ebp - 0xc]
push ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
push edx
mov edx, dword [esi + 0x24]
push eax
lea ecx, [ebp - 4]
call fcn.004215e0
mov edi, dword [ebp - 0x14]
add esp, 0x10
cmp edi, 3
jl 0x421e92
test ebx, ebx
mov dword [ebp - 8], 1
je 0x421e65
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 4]
sub esp, 8
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fidiv dword [ebp - 8]
fstp qword [esp]
push ebx
push eax
push str._______d_work___d_block__ratio__5.2f_n
call fcn.0043cb86
add eax, 0x40
push eax
call fcn.0043d0a2
add esp, 0x18
cmp dword [ebp - 4], 0
jge 0x421ec8
cmp edi, 2
jl 0x421eb3
push str.____too_repetitive__using_fallback_sorting_algorithm_n
call fcn.0043cb86
add eax, 0x40
push eax
call fcn.0043d0a2
add esp, 8
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
mov eax, dword [ebp - 0xc]
push edi
push ebx
push ecx
push edx
call fcn.00420870
add esp, 0x10
or ecx, 0xffffffff
xor eax, eax
cmp dword [esi + 0x44], eax
mov dword [esi + 0x1c], ecx
jle 0x421eeb
mov edx, dword [ebp - 0x10]
cmp dword [edx + eax*4], 0
je 0x421ee8
add eax, 1
cmp eax, dword [esi + 0x44]
jl 0x421ed5
jmp 0x421eeb
mov dword [esi + 0x1c], eax
cmp dword [esi + 0x1c], ecx
jne 0x421efa
mov esi, 0x3eb
jmp 0x41a290
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x422cf0
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
cmp byte [eax + 0x29], 0
je 0x422d0a
mov eax, 1
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push edi
xor edi, edi
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 8]
push edx
push edi
push 0x2001f
push edi
push edi
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call ebx
cmp eax, edi
jne 0x422d42
mov ecx, dword [ebp - 8]
xor eax, eax
mov dword [ebp - 4], ecx
cmp eax, edi
push esi
mov esi, eax
jne 0x422e62
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push str.InstallerData
push ecx
mov dword [ebp - 0xc], edi
call ebx
test eax, eax
jne 0x422d77
mov edi, dword [ebp - 0xc]
test eax, eax
mov esi, eax
jne 0x422e57
lea edx, [ebp + 0xc]
push edx
call fcn.00408c48
push 0x7fff
lea eax, [ebp + 0xc]
push eax
call fcn.0040d8cc
test al, al
jne 0x422dca
lea ecx, [ebp + 0xc]
push ecx
call fcn.0040281a
test edi, edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x422db2
push edi
call esi
mov eax, dword [ebp - 4]
test eax, eax
je 0x422dbc
push eax
call esi
pop esi
pop edi
mov eax, 0x8007000e
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp + 8]
cmp byte [edx + 0x28], 0
jne 0x422e3c
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0x10], 0x7fff
mov ecx, dword [ebp + 0xc]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
push ecx
push 0
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x422e3c
mov edx, dword [ebp + 0xc]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x422de0
call fcn.0040861d
mov esi, eax
lea eax, [ebp + 0xc]
push eax
call fcn.0040281a
test edi, edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x422e27
push edi
call ebx
mov eax, dword [ebp - 4]
test eax, eax
je 0x422e79
push eax
call ebx
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
add ecx, 0x10
mov dword [ebp - 0x10], ecx
call fcn.004237e0
test eax, eax
jne 0x422e87
lea ecx, [ebp + 0xc]
push ecx
call fcn.0040281a
test edi, edi
je 0x422e62
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
call fcn.0040861d
mov esi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x422e79
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
push ecx
mov ebx, eax
call fcn.00423960
cmp dword [ebx + 0xc], 0
mov dword [ebp + 8], eax
je 0x422ec3
mov esi, dword [ebx + 4]
test esi, esi
mov ebx, dword [ebx]
je 0x422ecb
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
push esi
push 1
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
jne 0x422ed5
cmp dword [ebp + 8], 0
jne 0x422e84
jmp 0x422e4e
push 0x80004005
call fcn.004017fb
mov eax, esi
jmp 0x422e0a
Function at 0x4241f0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, eax
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 4]
push 0
push eax
push ecx
push 2
push 0
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
mov dword [esi + 8], eax
jne 0x42422a
call fcn.00403116
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
push 0
push ecx
mov dword [esi + 0x10], 0
mov edx, dword [esi + 0x10]
push edx
mov dword [esi + 4], ecx
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x14]
push ecx
push 4
push eax
mov dword [esi + 0x18], 4
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
test eax, eax
mov dword [esi], eax
jne 0x42427e
call fcn.00403116
mov edx, dword [esi + 8]
push edx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x4248d0
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x458b78
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x478030]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x64], ebx
jne 0x424997
mov esi, 1
mov dword [ebp - 0x14], esi
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
call fcn.00424690
cmp dword [eax + 0x10], ebx
je 0x42494c
cmp dword [eax + 4], ebx
je 0x424933
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x28], ebx
jmp 0x42494c
cmp dword [eax + 8], ebx
je 0x42494c
mov esi, 3
mov dword [ebp - 0x14], esi
mov edi, dword [eax + 8]
mov dword [ebp - 0x18], edi
mov ebx, dword [eax + 0xc]
mov dword [ebp - 0x1c], ebx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x74]
push 0
push ebx
push edi
push esi
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 1
test eax, eax
jne 0x424986
call fcn.00403116
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x64], eax
mov byte [ebp - 4], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4291ba
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x457393
call fcn.0043d951
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.00433958
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x429205
call fcn.00433958
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 0x429216
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x429223
or eax, 0xffffffff
jmp 0x42937f
mov ecx, esi
call fcn.00428d01
mov dword [ebp - 0x14], eax
call fcn.0042be46
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x4292a1
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x4292a1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4292a1
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00428bb2
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x4292a1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x4292a1
mov ecx, ebx
call fcn.0042968d
test eax, eax
je 0x4292a1
push 0
mov ecx, ebx
call fcn.004296a8
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0042d6ce
push dword [ebp - 0x14]
call fcn.0042bd9e
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.00428fc2
xor edi, edi
cmp eax, edi
je 0x4292fe
test byte [esi + 0x3c], 0x10
je 0x4292e8
push 4
pop edi
mov ecx, esi
call fcn.00429574
test ax, 0x100
je 0x4292de
push 5
pop edi
push edi
mov ecx, esi
call fcn.0042b966
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x4292fe
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0042970f
or dword [ebp - 4], 0xffffffff
jmp 0x429329
cmp dword [ebp - 0x28], edi
je 0x429337
push 1
mov ecx, ebx
call fcn.004296a8
cmp dword [ebp - 0x2c], edi
je 0x429347
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x429360
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x429360
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.00428d3b
cmp dword [esi + 0x58], edi
je 0x42937c
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.0043d9f6
ret
Function at 0x4293e9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x429409
cmp dword [edi + 0x54], 0
jne 0x429409
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00433958
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004293b0
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x42cdbd
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x42cdf6
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.0040c7a2
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00405440
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x42e30e
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x462e4c
mov ecx, edi
call fcn.00401639
cmp dword [esi + 0x4c], 0
push dword [esp + 0xc]
jne 0x42e361
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x42e374
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.0040c7a2
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, edi
call fcn.00405440
jmp 0x42e374
mov ecx, esi
call fcn.004294b4
test eax, eax
je 0x42e374
push edi
mov ecx, eax
call fcn.0042cdbd
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
pop edi
pop esi
ret 8

Function at 0x42e858
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 0x42e89b
call fcn.00433958
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42e89b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42e8b6
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0042e412
test ebx, ebx
mov esi, eax
je 0x42e8b4
test edi, edi
je 0x42e8b4
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x4357f0
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x1f4]
sub esp, 0x274
mov eax, dword [0x478030]
xor eax, ebp
mov dword [ebp + 0x1f0], eax
cmp dword [ebp + 0x200], 0x800
mov eax, dword [ebp + 0x1fc]
push esi
mov dword [ebp - 0x40], eax
mov esi, ecx
lea eax, [ebp + 0x1e8]
jne 0x43588e
push 0x45f7e4
push 4
push eax
call fcn.0043b9eb
push eax
call fcn.004015e5
add esp, 0x10
push ebx
push edi
call fcn.0043dda6
mov edi, dword [eax]
call fcn.0043dda6
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp + 0x1e8]
push eax
push dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.0043dd4c
add esp, 0x18
mov dword [ebp - 0x40], eax
call fcn.0043dda6
cmp dword [eax], ebx
je 0x4358a5
call fcn.0043dda6
push dword [eax]
call fcn.004240d0
pop ecx
jmp 0x4358ac
push 4
push eax
push 3
push dword [ebp + 0x200]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x43583f
jmp 0x43591e
call fcn.0043dda6
mov dword [eax], edi
cmp dword [ebp - 0x40], 0xffffffff
je 0x43591a
cmp dword [ebp - 0x40], esi
jae 0x43591a
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], 0x40
call fcn.0043da30
add esp, 0xc
push 0x45ede8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x43590c
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x43590c
lea ecx, [ebp - 0x80]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x43590c
push ebx
push ebx
push esi
jmp 0x435912
push ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x43591c
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x1f0]
xor ecx, ebp
pop esi
call fcn.00439767
add ebp, 0x1f4
leave
ret
Function at 0x439767
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x478030]
jne 0x439771
repz ret
jmp fcn.00441983
Function at 0x43cdeb
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 0x43ce28
cmp dword [ebp + 0x14], edi
je 0x43ce28
cmp ecx, edi
jne 0x43ce2f
call fcn.0043dda6
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0043c015
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x43ce43
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x43ce64
cmp ebx, 0xffffffff
je 0x43ce53
push ebx
push edi
push ecx
call fcn.0043da30
add esp, 0xc
cmp esi, edi
je 0x43ce10
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x43ce10
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x43ce80
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x43ce87
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x43cf78
test word [esi + 0xc], 0x10c
je 0x43cedb
mov eax, dword [esi + 4]
test eax, eax
je 0x43cedb
jl 0x43cfd9
cmp ebx, eax
mov edi, ebx
jb 0x43ceac
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x43cf80
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00439d9b
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 0x43cf70
cmp ebx, dword [ebp - 0xc]
jb 0x43cf48
cmp dword [ebp - 0xc], 0
je 0x43cf05
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x43cefa
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x43cf01
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x43cf10
mov eax, SysReAllocString
cmp ebx, eax
ja 0x43cf10
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x43cfac
push eax
push dword [ebp - 8]
push esi
call fcn.0043f955
pop ecx
push eax
call fcn.0044a090
add esp, 0xc
test eax, eax
je 0x43cfeb
cmp eax, 0xffffffff
je 0x43cfd9
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x43cf70
push esi
call fcn.0044865f
cmp eax, 0xffffffff
pop ecx
je 0x43cfdd
cmp dword [ebp - 4], 0
je 0x43cfac
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 0x43ce8f
mov eax, dword [ebp + 0x14]
jmp 0x43ce2a
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x43cf97
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0043da30
add esp, 0xc
call fcn.0043dda6
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x43ce20
cmp dword [ebp + 0xc], 0xffffffff
je 0x43cfc2
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0043da30
add esp, 0xc
call fcn.0043dda6
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x43ce20
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x43ce2a
or dword [esi + 0xc], 0x10
jmp 0x43cfdd
Function at 0x4406f7
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 + 0x4781c0]
je 0x440712
inc edi
cmp edi, 0x17
jb 0x440703
cmp edi, 0x17
jae 0x440892
push ebp
push 3
call fcn.0044da52
cmp eax, 1
pop ecx
je 0x44085e
push 3
call fcn.0044da52
test eax, eax
pop ecx
jne 0x440746
cmp dword [0x477d80], 1
je 0x44085e
cmp ebx, 0xfc
je 0x440891
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x47d1a8
push ebp
call fcn.004485fa
add esp, 0xc
test eax, eax
je 0x44077c
push esi
push esi
push esi
push esi
push esi
call fcn.0043bf19
add esp, 0x14
push 0x104
mov esi, 0x47d1c1
push esi
push 0
mov byte [0x47d2c5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4407c0
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004485fa
add esp, 0xc
test eax, eax
je 0x4407c0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0043bf19
add esp, 0x14
push esi
call fcn.00440190
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x440805
push esi
call fcn.00440190
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x47d4bc
push 0x460c14
sub ecx, eax
push ecx
push eax
call fcn.0044d99f
add esp, 0x14
test eax, eax
je 0x440805
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0043bf19
add esp, 0x14
jmp 0x440807
xor esi, esi
push 0x460c10
push ebx
push ebp
call fcn.0044d92e
add esp, 0xc
test eax, eax
je 0x440827
push esi
push esi
push esi
push esi
push esi
call fcn.0043bf19
add esp, 0x14
push dword [edi*8 + 0x4781c4]
push ebx
push ebp
call fcn.0044d92e
add esp, 0xc
test eax, eax
je 0x440849
push esi
push esi
push esi
push esi
push esi
call fcn.0043bf19
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0044d771
add esp, 0xc
jmp 0x440891
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x440891
cmp ebp, 0xffffffff
je 0x440891
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4781c4]
push dword [esi]
call fcn.00440190
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