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.0043d230
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.0043d097
mov edx, dword [edi]
push edx
mov ebx, eax
call fcn.0043d230
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.0043d230
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 0x421dc0
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 0x421e02
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
push edi
push ebx
push edx
push eax
mov eax, ecx
jmp 0x421ed0
lea ecx, [ebx + 0x22]
test cl, 1
je 0x421e0d
add ecx, 1
add ecx, edx
cmp eax, 1
mov dword [ebp - 8], ecx
jge 0x421e1e
mov eax, 1
jmp 0x421e28
cmp eax, 0x64
jle 0x421e28
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.004215f0
mov edi, dword [ebp - 0x14]
add esp, 0x10
cmp edi, 3
jl 0x421ea2
test ebx, ebx
mov dword [ebp - 8], 1
je 0x421e75
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.0043cb96
add eax, 0x40
push eax
call fcn.0043d0b2
add esp, 0x18
cmp dword [ebp - 4], 0
jge 0x421ed8
cmp edi, 2
jl 0x421ec3
push str.____too_repetitive__using_fallback_sorting_algorithm_n
call fcn.0043cb96
add eax, 0x40
push eax
call fcn.0043d0b2
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.00420880
add esp, 0x10
or ecx, 0xffffffff
xor eax, eax
cmp dword [esi + 0x44], eax
mov dword [esi + 0x1c], ecx
jle 0x421efb
mov edx, dword [ebp - 0x10]
cmp dword [edx + eax*4], 0
je 0x421ef8
add eax, 1
cmp eax, dword [esi + 0x44]
jl 0x421ee5
jmp 0x421efb
mov dword [esi + 0x1c], eax
cmp dword [esi + 0x1c], ecx
jne 0x421f0a
mov esi, 0x3eb
jmp 0x41a290
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x422d00
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 0x422d1a
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 0x422d52
mov ecx, dword [ebp - 8]
xor eax, eax
mov dword [ebp - 4], ecx
cmp eax, edi
push esi
mov esi, eax
jne 0x422e72
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 0x422d87
mov edi, dword [ebp - 0xc]
test eax, eax
mov esi, eax
jne 0x422e67
lea edx, [ebp + 0xc]
push edx
call fcn.00408c48
push 0x7fff
lea eax, [ebp + 0xc]
push eax
call fcn.0040d8cc
test al, al
jne 0x422dda
lea ecx, [ebp + 0xc]
push ecx
call fcn.0040281a
test edi, edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x422dc2
push edi
call esi
mov eax, dword [ebp - 4]
test eax, eax
je 0x422dcc
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 0x422e4c
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 0x422e4c
mov edx, dword [ebp + 0xc]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x422df0
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 0x422e37
push edi
call ebx
mov eax, dword [ebp - 4]
test eax, eax
je 0x422e89
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.004237f0
test eax, eax
jne 0x422e97
lea ecx, [ebp + 0xc]
push ecx
call fcn.0040281a
test edi, edi
je 0x422e72
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 0x422e89
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.00423970
cmp dword [ebx + 0xc], 0
mov dword [ebp + 8], eax
je 0x422ed3
mov esi, dword [ebx + 4]
test esi, esi
mov ebx, dword [ebx]
je 0x422edb
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 0x422ee5
cmp dword [ebp + 8], 0
jne 0x422e94
jmp 0x422e5e
push 0x80004005
call fcn.004017fb
mov eax, esi
jmp 0x422e1a
Function at 0x424200
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 0x42423a
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 0x42428e
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 0x4248e0
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x458b88
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 0x4249a7
mov esi, 1
mov dword [ebp - 0x14], esi
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
call fcn.004246a0
cmp dword [eax + 0x10], ebx
je 0x42495c
cmp dword [eax + 4], ebx
je 0x424943
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x28], ebx
jmp 0x42495c
cmp dword [eax + 8], ebx
je 0x42495c
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 0x424996
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 0x4291ca
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x4573a3
call fcn.0043d961
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.00433968
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x429215
call fcn.00433968
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 0x429226
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x429233
or eax, 0xffffffff
jmp 0x42938f
mov ecx, esi
call fcn.00428d11
mov dword [ebp - 0x14], eax
call fcn.0042be56
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x4292b1
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x4292b1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4292b1
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00428bc2
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x4292b1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x4292b1
mov ecx, ebx
call fcn.0042969d
test eax, eax
je 0x4292b1
push 0
mov ecx, ebx
call fcn.004296b8
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0042d6de
push dword [ebp - 0x14]
call fcn.0042bdae
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.00428fd2
xor edi, edi
cmp eax, edi
je 0x42930e
test byte [esi + 0x3c], 0x10
je 0x4292f8
push 4
pop edi
mov ecx, esi
call fcn.00429584
test ax, 0x100
je 0x4292ee
push 5
pop edi
push edi
mov ecx, esi
call fcn.0042b976
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x42930e
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0042971f
or dword [ebp - 4], 0xffffffff
jmp 0x429339
cmp dword [ebp - 0x28], edi
je 0x429347
push 1
mov ecx, ebx
call fcn.004296b8
cmp dword [ebp - 0x2c], edi
je 0x429357
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x429370
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x429370
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.00428d4b
cmp dword [esi + 0x58], edi
je 0x42938c
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.0043da06
ret
Function at 0x4293f9
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 0x429419
cmp dword [edi + 0x54], 0
jne 0x429419
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00433968
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.004293c0
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 0x42cdcd
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x42ce06
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 0x42e31e
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 0x42e371
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x42e384
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 0x42e384
mov ecx, esi
call fcn.004294c4
test eax, eax
je 0x42e384
push edi
mov ecx, eax
call fcn.0042cdcd
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
pop edi
pop esi
ret 8

Function at 0x42e868
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 0x42e8ab
call fcn.00433968
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 0x42e8ab
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42e8c6
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0042e422
test ebx, ebx
mov esi, eax
je 0x42e8c4
test edi, edi
je 0x42e8c4
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x435800
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 0x43589e
push 0x45f7e4
push 4
push eax
call fcn.0043b9fb
push eax
call fcn.004015e5
add esp, 0x10
push ebx
push edi
call fcn.0043ddb6
mov edi, dword [eax]
call fcn.0043ddb6
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.0043dd5c
add esp, 0x18
mov dword [ebp - 0x40], eax
call fcn.0043ddb6
cmp dword [eax], ebx
je 0x4358b5
call fcn.0043ddb6
push dword [eax]
call fcn.004240e0
pop ecx
jmp 0x4358bc
push 4
push eax
push 3
push dword [ebp + 0x200]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x43584f
jmp 0x43592e
call fcn.0043ddb6
mov dword [eax], edi
cmp dword [ebp - 0x40], 0xffffffff
je 0x43592a
cmp dword [ebp - 0x40], esi
jae 0x43592a
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.0043da40
add esp, 0xc
push 0x45ede8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x43591c
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x43591c
lea ecx, [ebp - 0x80]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x43591c
push ebx
push ebx
push esi
jmp 0x435922
push ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x43592c
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x1f0]
xor ecx, ebp
pop esi
call fcn.00439777
add ebp, 0x1f4
leave
ret
Function at 0x439777
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x478030]
jne 0x439781
repz ret
jmp fcn.00441993
Function at 0x43cdfb
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 0x43ce38
cmp dword [ebp + 0x14], edi
je 0x43ce38
cmp ecx, edi
jne 0x43ce3f
call fcn.0043ddb6
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0043c025
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x43ce53
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x43ce74
cmp ebx, 0xffffffff
je 0x43ce63
push ebx
push edi
push ecx
call fcn.0043da40
add esp, 0xc
cmp esi, edi
je 0x43ce20
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x43ce20
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x43ce90
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x43ce97
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x43cf88
test word [esi + 0xc], 0x10c
je 0x43ceeb
mov eax, dword [esi + 4]
test eax, eax
je 0x43ceeb
jl 0x43cfe9
cmp ebx, eax
mov edi, ebx
jb 0x43cebc
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x43cf90
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00439dab
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 0x43cf80
cmp ebx, dword [ebp - 0xc]
jb 0x43cf58
cmp dword [ebp - 0xc], 0
je 0x43cf15
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x43cf0a
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x43cf11
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x43cf20
mov eax, SysReAllocString
cmp ebx, eax
ja 0x43cf20
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x43cfbc
push eax
push dword [ebp - 8]
push esi
call fcn.0043f965
pop ecx
push eax
call fcn.0044a0a0
add esp, 0xc
test eax, eax
je 0x43cffb
cmp eax, 0xffffffff
je 0x43cfe9
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x43cf80
push esi
call fcn.0044866f
cmp eax, 0xffffffff
pop ecx
je 0x43cfed
cmp dword [ebp - 4], 0
je 0x43cfbc
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 0x43ce9f
mov eax, dword [ebp + 0x14]
jmp 0x43ce3a
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x43cfa7
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0043da40
add esp, 0xc
call fcn.0043ddb6
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x43ce30
cmp dword [ebp + 0xc], 0xffffffff
je 0x43cfd2
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0043da40
add esp, 0xc
call fcn.0043ddb6
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x43ce30
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x43ce3a
or dword [esi + 0xc], 0x10
jmp 0x43cfed
Function at 0x440707
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 0x440722
inc edi
cmp edi, 0x17
jb 0x440713
cmp edi, 0x17
jae 0x4408a2
push ebp
push 3
call fcn.0044da62
cmp eax, 1
pop ecx
je 0x44086e
push 3
call fcn.0044da62
test eax, eax
pop ecx
jne 0x440756
cmp dword [0x477d80], 1
je 0x44086e
cmp ebx, 0xfc
je 0x4408a1
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x47d1a8
push ebp
call fcn.0044860a
add esp, 0xc
test eax, eax
je 0x44078c
push esi
push esi
push esi
push esi
push esi
call fcn.0043bf29
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 0x4407d0
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0044860a
add esp, 0xc
test eax, eax
je 0x4407d0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0043bf29
add esp, 0x14
push esi
call fcn.004401a0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x440815
push esi
call fcn.004401a0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x47d4bc
push 0x460c14
sub ecx, eax
push ecx
push eax
call fcn.0044d9af
add esp, 0x14
test eax, eax
je 0x440815
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0043bf29
add esp, 0x14
jmp 0x440817
xor esi, esi
push 0x460c10
push ebx
push ebp
call fcn.0044d93e
add esp, 0xc
test eax, eax
je 0x440837
push esi
push esi
push esi
push esi
push esi
call fcn.0043bf29
add esp, 0x14
push dword [edi*8 + 0x4781c4]
push ebx
push ebp
call fcn.0044d93e
add esp, 0xc
test eax, eax
je 0x440859
push esi
push esi
push esi
push esi
push esi
call fcn.0043bf29
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0044d781
add esp, 0xc
jmp 0x4408a1
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4408a1
cmp ebp, 0xffffffff
je 0x4408a1
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4781c4]
push dword [esi]
call fcn.004401a0
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