joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d080
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 0x41d08f
mov dword [ebx], edx
cmp edi, edx
je 0x41d25d
cmp eax, edx
mov dword [edi + 0x13c4], edx
je 0x41d25d
mov ecx, dword [ebp + 0xc]
cmp ecx, edx
jl 0x41d25d
cmp byte [edi + 0x1390], dl
je 0x41d0d3
cmp ebx, edx
je 0x41d0c2
mov dword [ebx], 0xffffffff
mov dword [edi + 0x13c4], 0xffffffff
xor eax, eax
pop ebx
pop ebp
ret 8
cmp ecx, edx
jne 0x41d0ea
cmp ebx, edx
je 0x41d0dd
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.0043e6a4
add esp, 4
test eax, eax
jne 0x41d1b1
lea ebx, [ebx]
cmp dword [edi + 0x1398], 0
jne 0x41d161
mov esi, dword [edi]
call fcn.0041cb20
test al, al
jne 0x41d161
mov ecx, dword [edi]
push ecx
push 0x1388
lea esi, [edi + 4]
push 1
push esi
call fcn.0043e50b
mov edx, dword [edi]
push edx
mov ebx, eax
call fcn.0043e6a4
add esp, 0x14
test eax, eax
jne 0x41d1f1
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.0041c940
test eax, eax
jne 0x41d1cd
mov esi, dword [edi]
call fcn.0041cb20
test al, al
je 0x41d191
cmp dword [edi + 0x1398], 0
jne 0x41d191
cmp dword [edi + 0x13a8], 0
ja 0x41d224
cmp dword [edi + 0x13a8], 0
je 0x41d240
mov eax, dword [edi]
push eax
call fcn.0043e6a4
add esp, 4
test eax, eax
je 0x41d110
test ebx, ebx
je 0x41d1bb
mov dword [ebx], 0xfffffffa
pop esi
mov dword [edi + 0x13c4], 0xfffffffa
xor eax, eax
pop ebx
pop ebp
ret 8
cmp eax, 4
jne 0x41d210
test ebx, ebx
je 0x41d1d8
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 0x41d1bb
mov dword [eax], 0xfffffffa
pop esi
mov dword [edi + 0x13c4], 0xfffffffa
xor eax, eax
pop ebx
pop ebp
ret 8
test ebx, ebx
je 0x41d216
mov dword [ebx], eax
pop esi
mov dword [edi + 0x13c4], eax
xor eax, eax
pop ebx
pop ebp
ret 8
test ebx, ebx
je 0x41d22e
mov dword [ebx], 0xfffffff9
pop esi
mov dword [edi + 0x13c4], 0xfffffff9
xor eax, eax
pop ebx
pop ebp
ret 8
test ebx, ebx
je 0x41d24a
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 0x41d267
mov dword [ebx], 0xfffffffe
cmp edi, edx
je 0x41d275
mov dword [edi + 0x13c4], 0xfffffffe
xor eax, eax
pop ebx
pop ebp
ret 8
Function at 0x422fd0
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 0x423012
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
push edi
push ebx
push edx
push eax
mov eax, ecx
jmp 0x4230e0
lea ecx, [ebx + 0x22]
test cl, 1
je 0x42301d
add ecx, 1
add ecx, edx
cmp eax, 1
mov dword [ebp - 8], ecx
jge 0x42302e
mov eax, 1
jmp 0x423038
cmp eax, 0x64
jle 0x423038
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.00422800
mov edi, dword [ebp - 0x14]
add esp, 0x10
cmp edi, 3
jl 0x4230b2
test ebx, ebx
mov dword [ebp - 8], 1
je 0x423085
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.0043e00a
add eax, 0x40
push eax
call fcn.0043e526
add esp, 0x18
cmp dword [ebp - 4], 0
jge 0x4230e8
cmp edi, 2
jl 0x4230d3
push str.____too_repetitive__using_fallback_sorting_algorithm_n
call fcn.0043e00a
add eax, 0x40
push eax
call fcn.0043e526
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.00421a90
add esp, 0x10
or ecx, 0xffffffff
xor eax, eax
cmp dword [esi + 0x44], eax
mov dword [esi + 0x1c], ecx
jle 0x42310b
mov edx, dword [ebp - 0x10]
cmp dword [edx + eax*4], 0
je 0x423108
add eax, 1
cmp eax, dword [esi + 0x44]
jl 0x4230f5
jmp 0x42310b
mov dword [esi + 0x1c], eax
cmp dword [esi + 0x1c], ecx
jne 0x42311a
mov esi, 0x3eb
jmp 0x41b4b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x423f10
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 0x423f2a
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 0x423f62
mov ecx, dword [ebp - 8]
xor eax, eax
mov dword [ebp - 4], ecx
cmp eax, edi
push esi
mov esi, eax
jne 0x424082
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 0x423f97
mov edi, dword [ebp - 0xc]
test eax, eax
mov esi, eax
jne 0x424077
lea edx, [ebp + 0xc]
push edx
call fcn.004098d0
push 0x7fff
lea eax, [ebp + 0xc]
push eax
call fcn.0040930c
test al, al
jne 0x423fea
lea ecx, [ebp + 0xc]
push ecx
call fcn.004137ab
test edi, edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x423fd2
push edi
call esi
mov eax, dword [ebp - 4]
test eax, eax
je 0x423fdc
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 0x42405c
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 0x42405c
mov edx, dword [ebp + 0xc]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x424000
call fcn.004091b7
mov esi, eax
lea eax, [ebp + 0xc]
push eax
call fcn.004137ab
test edi, edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x424047
push edi
call ebx
mov eax, dword [ebp - 4]
test eax, eax
je 0x424099
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.00424a00
test eax, eax
jne 0x4240a7
lea ecx, [ebp + 0xc]
push ecx
call fcn.004137ab
test edi, edi
je 0x424082
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
call fcn.004091b7
mov esi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x424099
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.00424b80
cmp dword [ebx + 0xc], 0
mov dword [ebp + 8], eax
je 0x4240e3
mov esi, dword [ebx + 4]
test esi, esi
mov ebx, dword [ebx]
je 0x4240eb
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 0x4240f5
cmp dword [ebp + 8], 0
jne 0x4240a4
jmp 0x42406e
push 0x80004005
call fcn.004017b5
mov eax, esi
jmp 0x42402a
Function at 0x425410
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 0x42544a
call fcn.0040310b
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 0x42549e
call fcn.0040310b
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 0x425af0
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45a958
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x47a030]
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 0x425bb7
mov esi, 1
mov dword [ebp - 0x14], esi
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
call fcn.004258b0
cmp dword [eax + 0x10], ebx
je 0x425b6c
cmp dword [eax + 4], ebx
je 0x425b53
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x28], ebx
jmp 0x425b6c
cmp dword [eax + 8], ebx
je 0x425b6c
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 0x425ba6
call fcn.0040310b
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 0x42a4c7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x4591c6
call fcn.0043edd5
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.00434c59
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x42a512
call fcn.00434c59
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 0x42a523
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x42a530
or eax, 0xffffffff
jmp 0x42a68c
mov ecx, esi
call fcn.0042a00e
mov dword [ebp - 0x14], eax
call fcn.0042d155
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x42a5ae
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x42a5ae
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x42a5ae
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00429ebf
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x42a5ae
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x42a5ae
mov ecx, ebx
call fcn.0042a99a
test eax, eax
je 0x42a5ae
push 0
mov ecx, ebx
call fcn.0042a9b5
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0042e9dd
push dword [ebp - 0x14]
call fcn.0042d0ad
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0042a2cf
xor edi, edi
cmp eax, edi
je 0x42a60b
test byte [esi + 0x3c], 0x10
je 0x42a5f5
push 4
pop edi
mov ecx, esi
call fcn.0042a881
test ax, 0x100
je 0x42a5eb
push 5
pop edi
push edi
mov ecx, esi
call fcn.0042cc75
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x42a60b
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0042aa1c
or dword [ebp - 4], 0xffffffff
jmp 0x42a636
cmp dword [ebp - 0x28], edi
je 0x42a644
push 1
mov ecx, ebx
call fcn.0042a9b5
cmp dword [ebp - 0x2c], edi
je 0x42a654
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x42a66d
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x42a66d
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.0042a048
cmp dword [esi + 0x58], edi
je 0x42a689
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.0043ee7a
ret
Function at 0x42a6f6
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 0x42a716
cmp dword [edi + 0x54], 0
jne 0x42a716
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00434c59
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.0042a6bd
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 0x42e0cc
Capabilities:
Get graphical window text

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

Function at 0x42f623
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x464e5c
mov ecx, edi
call fcn.0040164f
cmp dword [esi + 0x4c], 0
push dword [esp + 0xc]
jne 0x42f676
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x42f689
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.0040d403
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, edi
call fcn.004053de
jmp 0x42f689
mov ecx, esi
call fcn.0042a7c1
test eax, eax
je 0x42f689
push edi
mov ecx, eax
call fcn.0042e0cc
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
pop edi
pop esi
ret 8

Function at 0x42fb67
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 0x42fbaa
call fcn.00434c59
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42fbaa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42fbc5
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0042f721
test ebx, ebx
mov esi, eax
je 0x42fbc3
test edi, edi
je 0x42fbc3
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x436695
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x1f4]
sub esp, 0x274
mov eax, dword [0x47a030]
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 0x436733
push 0x4617bc
push 4
push eax
call fcn.0043db9a
push eax
call fcn.004015fb
add esp, 0x10
push ebx
push edi
call fcn.0043f226
mov edi, dword [eax]
call fcn.0043f226
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.0043f1cc
add esp, 0x18
mov dword [ebp - 0x40], eax
call fcn.0043f226
cmp dword [eax], ebx
je 0x43674a
call fcn.0043f226
push dword [eax]
call fcn.004252f0
pop ecx
jmp 0x436751
push 4
push eax
push 3
push dword [ebp + 0x200]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x4366e4
jmp 0x4367c3
call fcn.0043f226
mov dword [eax], edi
cmp dword [ebp - 0x40], 0xffffffff
je 0x4367bf
cmp dword [ebp - 0x40], esi
jae 0x4367bf
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.0043eeb0
add esp, 0xc
push 0x460df8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x4367b1
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4367b1
lea ecx, [ebp - 0x80]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x4367b1
push ebx
push ebx
push esi
jmp 0x4367b7
push ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x4367c1
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x1f0]
xor ecx, ebp
pop esi
call fcn.0043aa68
add ebp, 0x1f4
leave
ret
Function at 0x43aa68
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47a030]
jne 0x43aa72
repz ret
jmp fcn.00442e04
Function at 0x43e26f
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 0x43e2ac
cmp dword [ebp + 0x14], edi
je 0x43e2ac
cmp ecx, edi
jne 0x43e2b3
call fcn.0043f226
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0043d6d5
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x43e2c7
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x43e2e8
cmp ebx, 0xffffffff
je 0x43e2d7
push ebx
push edi
push ecx
call fcn.0043eeb0
add esp, 0xc
cmp esi, edi
je 0x43e294
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x43e294
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x43e304
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x43e30b
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x43e3fc
test word [esi + 0xc], 0x10c
je 0x43e35f
mov eax, dword [esi + 4]
test eax, eax
je 0x43e35f
jl 0x43e45d
cmp ebx, eax
mov edi, ebx
jb 0x43e330
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x43e404
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0043b09c
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 0x43e3f4
cmp ebx, dword [ebp - 0xc]
jb 0x43e3cc
cmp dword [ebp - 0xc], 0
je 0x43e389
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x43e37e
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x43e385
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x43e394
mov eax, SysReAllocString
cmp ebx, eax
ja 0x43e394
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x43e430
push eax
push dword [ebp - 8]
push esi
call fcn.00440dd5
pop ecx
push eax
call fcn.0044c8f4
add esp, 0xc
test eax, eax
je 0x43e46f
cmp eax, 0xffffffff
je 0x43e45d
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x43e3f4
push esi
call fcn.0044af5a
cmp eax, 0xffffffff
pop ecx
je 0x43e461
cmp dword [ebp - 4], 0
je 0x43e430
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 0x43e313
mov eax, dword [ebp + 0x14]
jmp 0x43e2ae
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x43e41b
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0043eeb0
add esp, 0xc
call fcn.0043f226
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x43e2a4
cmp dword [ebp + 0xc], 0xffffffff
je 0x43e446
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0043eeb0
add esp, 0xc
call fcn.0043f226
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x43e2a4
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x43e2ae
or dword [esi + 0xc], 0x10
jmp 0x43e461
Function at 0x441b77
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 + 0x47a1c0]
je 0x441b92
inc edi
cmp edi, 0x17
jb 0x441b83
cmp edi, 0x17
jae 0x441d12
push ebp
push 3
call fcn.0044f872
cmp eax, 1
pop ecx
je 0x441cde
push 3
call fcn.0044f872
test eax, eax
pop ecx
jne 0x441bc6
cmp dword [0x479d80], 1
je 0x441cde
cmp ebx, 0xfc
je 0x441d11
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x47f208
push ebp
call fcn.0044aef5
add esp, 0xc
test eax, eax
je 0x441bfc
push esi
push esi
push esi
push esi
push esi
call fcn.0043d5d9
add esp, 0x14
push 0x104
mov esi, 0x47f221
push esi
push 0
mov byte [0x47f325], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x441c40
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0044aef5
add esp, 0xc
test eax, eax
je 0x441c40
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0043d5d9
add esp, 0x14
push esi
call fcn.004415e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x441c85
push esi
call fcn.004415e0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x47f51c
push 0x462c24
sub ecx, eax
push ecx
push eax
call fcn.0044f7bf
add esp, 0x14
test eax, eax
je 0x441c85
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0043d5d9
add esp, 0x14
jmp 0x441c87
xor esi, esi
push 0x462c20
push ebx
push ebp
call fcn.0044f74e
add esp, 0xc
test eax, eax
je 0x441ca7
push esi
push esi
push esi
push esi
push esi
call fcn.0043d5d9
add esp, 0x14
push dword [edi*8 + 0x47a1c4]
push ebx
push ebp
call fcn.0044f74e
add esp, 0xc
test eax, eax
je 0x441cc9
push esi
push esi
push esi
push esi
push esi
call fcn.0043d5d9
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0044f591
add esp, 0xc
jmp 0x441d11
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x441d11
cmp ebp, 0xffffffff
je 0x441d11
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x47a1c4]
push dword [esi]
call fcn.004415e0
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