joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403c62
Capabilities:
Get common file path

Disassembly:
push 0x14
mov eax, 0x42c333
call fcn.0041678c
mov esi, ecx
call fcn.004062c1
push eax
lea ecx, [ebp - 0x10]
call fcn.004011df
xor ebx, ebx
push ebx
push 0x25
mov edi, 0x104
push edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.00401315
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.004011ba
push str.Msi.dll
lea ecx, [ebp - 0x10]
call fcn.00402bc8
lea ecx, [esi + 4]
push edi
call fcn.00401315
push ebx
push ebx
lea ecx, [ebp - 0x20]
push ecx
push eax
push dword [ebp - 0x10]
call sub.msi.dll_MsiMessageBoxW
push 0xffffffffffffffff
lea ecx, [esi + 4]
call fcn.004011ba
push str.Path
lea ecx, [ebp - 0x18]
call fcn.00401a26
push str.MSI_Updater
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00401a26
push 0x43c360
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, 0x43c2b8
mov byte [ebp - 4], 2
call fcn.004040ad
lea edi, [esi + 8]
push eax
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.004013fb
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0040103d
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040103d
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.0040103d
mov ecx, esi
call fcn.00403ba8
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
je 0x403da8
cmp dword [esi + 0xc], ebx
jne 0x403d70
push edi
mov ecx, 0x43c2b8
call fcn.004042f2
test eax, eax
jne 0x403d70
mov ecx, edi
call fcn.0040120e
jmp 0x403da8
call fcn.004062c1
push eax
lea ecx, [ebp - 0x14]
call fcn.004011df
lea eax, [ebp - 0x14]
push str.__quiet__norestart__overwriteoem
push eax
mov byte [ebp - 4], 4
call fcn.00401448
pop ecx
pop ecx
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
call fcn.00402c68
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040103d
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040103d
call fcn.0041682b
ret

Function at 0x4040ad
Capabilities:
Read .ini file

Disassembly:
push 4
mov eax, 0x42c3fa
call fcn.0041678c
and dword [ebp - 0x10], 0
mov ebx, dword [ebp + 8]
mov ecx, ebx
call fcn.00401301
and dword [ebp - 4], 0
push 0x7d
mov dword [ebp - 0x10], 1
pop esi
mov eax, dword [ebp + 0x14]
mov edi, dword [eax]
add esi, esi
push esi
mov ecx, ebx
call fcn.00401315
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
push edi
push esi
push eax
push 0x42e7c0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
mov ecx, ebx
mov edi, eax
call fcn.004011ba
inc edi
cmp esi, edi
jbe 0x4040d5
mov eax, ebx
call fcn.0041682b
ret 0x10
Function at 0x4042f2
Capabilities:
Query environment variable

Disassembly:
push 0x1c
mov eax, 0x42c450
call fcn.0041678c
mov edi, dword [ebp + 8]
push edi
lea ecx, [ebp + 8]
call fcn.00401780
and dword [ebp - 4], 0
mov esi, 0x104
push esi
mov ecx, edi
call fcn.00401315
push esi
mov esi, dword [ebp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.0040103d
push 0xffffffffffffffff
mov ecx, edi
call fcn.004011ba
lea ecx, [ebp - 0x28]
call fcn.0040fe54
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
mov dword [ebp - 4], 1
je 0x4043aa
push 0
push eax
lea ecx, [ebp - 0x28]
call fcn.0040fee2
test eax, eax
je 0x4043aa
lea ecx, [ebp - 0x28]
call fcn.0040fb69
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x28]
call fcn.00410125
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.004013fb
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.0040103d
lea ecx, [ebp - 0x28]
call fcn.0040fa99
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040fe7a
xor eax, eax
inc eax
jmp 0x4043b8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040fe7a
xor eax, eax
call fcn.0041682b
ret 4
Function at 0x404a50
Capabilities:
Get common file path

Disassembly:
push 0x18
mov eax, 0x42c526
call fcn.0041678c
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0xb0], ebx
je 0x404b4d
mov eax, dword [esi + 0xd0]
cmp eax, dword [0x431f60]
jne 0x404b24
call fcn.004062c1
push eax
lea ecx, [ebp - 0x10]
call fcn.004011df
mov edi, 0x104
push edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.00401315
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x404ab9
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040103d
jmp 0x404b4d
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.004011ba
push str.BootStrap.log
lea ecx, [ebp - 0x10]
call fcn.00402bc8
push ebx
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x24]
call fcn.004048b0
mov edi, dword [ebp - 0x10]
lea edx, [ebp - 0x24]
push edx
lea ecx, [esi + 0xcc]
mov eax, dword [ecx]
push 0x1021
push edi
mov byte [ebp - 4], 1
call dword [eax + 0x20]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
test eax, eax
mov dword [ebp - 0x24], vtable.CFileException.0
jne 0x404b13
call fcn.0040103d
lea ecx, [edi - 0x10]
jmp 0x404aaf
call fcn.0040103d
or dword [ebp - 4], 0xffffffff
lea ecx, [edi - 0x10]
call fcn.0040103d
lea edi, [esi + 0xa4]
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
je 0x404b4d
add esi, 0xcc
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x54]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x48]
mov ecx, edi
call fcn.0040120e
call fcn.0041682b
ret
Function at 0x404b53
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push 0x28
mov eax, 0x42c559
call fcn.0041678c
lea esi, [ecx + 0xc8]
mov edi, 0x104
push edi
mov ecx, esi
call fcn.00401315
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x404c6e
push 0xffffffffffffffff
mov ecx, esi
call fcn.004011ba
push esi
lea ecx, [ebp - 0x10]
call fcn.00401780
xor ebx, ebx
push edi
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00401315
push eax
push ebx
push 0x42fdc0
lea ecx, [ebp - 0x10]
call fcn.00403fa8
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ecx, dword [ebp - 0x10]
or edi, 0xffffffff
add ecx, 0xfffffff0
mov dword [ebp - 4], edi
call fcn.0040103d
push edi
mov ecx, esi
call fcn.004011ba
lea ecx, [ebp - 0x20]
call fcn.0041056c
push ebx
push edi
push ebx
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 1
call fcn.004048b0
mov eax, dword [esi]
lea ecx, [ebp - 0x34]
push ecx
push 0x1001
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00410953
test eax, eax
jne 0x404c0f
mov ecx, esi
call fcn.0040120e
jmp 0x404c51
push 0x42fd9c
push 0x87
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push ebx
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea ecx, [ebp - 0x20]
call fcn.004102ba
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov dword [ebp - 0x34], vtable.CFileException.0
call fcn.0040103d
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], edi
call fcn.00410640
call fcn.0041682b
ret
Function at 0x404e69
Capabilities:
Delete file
Shutdown system

Disassembly:
push 0x20
mov eax, 0x42c5d1
call fcn.0041678c
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
cmp dword [esi + 0xf8], ebx
jne 0x404ebf
cmp dword [esi + 0xf4], ebx
je 0x404eba
push 0x90
lea eax, [ebp - 0x1c]
push eax
call fcn.00404d09
mov eax, dword [eax]
push ebx
push 0x10024
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], 1
call fcn.004049c6
add esp, 0xc
cmp eax, 6
jne 0x404ebf
mov byte [ebp - 0xd], bl
jmp 0x404ec3
mov byte [ebp - 0xd], 1
test byte [ebp - 0x14], 1
je 0x404ed4
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0040103d
cmp byte [ebp - 0xd], bl
jne 0x404f70
lea edi, [esi + 0xc8]
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
je 0x404ef8
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, edi
call fcn.0040120e
lea eax, [ebp - 0x18]
push eax
mov dword [esi + 0xb4], ebx
push 0x28
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
je 0x404f50
lea eax, [ebp - 0x28]
push eax
push str.SeShutdownPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x20], 2
je 0x404f50
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push dword [ebp - 0x18]
call edi
mov esi, eax
push 1
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownW]
cmp esi, ebx
je 0x404f70
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push dword [ebp - 0x18]
mov dword [ebp - 0x20], ebx
call edi
call fcn.0041682b
ret
Function at 0x405853
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x38
mov eax, 0x42c76a
call fcn.0041678c
mov esi, ecx
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x44], ebx
lea edi, [ebp - 0x40]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x34], ebx
xor eax, eax
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push str.RequireIE
lea ecx, [ebp - 0x24]
stosd dword es:[edi], eax
mov dword [ebp - 0x18], 0x104
call fcn.00401a26
push str.Startup
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], ebx
call fcn.00401a26
lea eax, [esi + 0xa8]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004040ad
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.0040103d
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov byte [ebp - 4], 4
call fcn.0040103d
mov eax, dword [ebp - 0x1c]
cmp dword [eax - 0xc], ebx
jne 0x4058f3
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0040103d
mov eax, ebx
call fcn.0041682b
ret
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x34]
push ecx
mov edi, str._d._d._d._d
push edi
push eax
call fcn.00416da4
add esp, 0x18
call fcn.004062c1
push eax
lea ecx, [ebp - 0x10]
call fcn.004011df
lea eax, [ebp - 0x14]
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftInternet_Explorer
push 0x80000002
mov byte [ebp - 4], 5
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40594f
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040103d
jmp 0x4058e0
push dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
call fcn.00401315
lea ecx, [ebp - 0x18]
push ecx
push eax
push ebx
push ebx
push str.Version
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push dword [ebp - 0x14]
je 0x40597e
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x405942
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.004011ba
cmp dword [ebp - 0x18], ebx
jbe 0x405942
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x44]
push eax
push edi
mov edi, dword [ebp - 0x10]
push edi
call fcn.00416da4
add esp, 0x18
xor eax, eax
mov ecx, dword [ebp + eax - 0x34]
mov edx, dword [ebp + eax - 0x44]
cmp ecx, edx
jb 0x4059c8
ja 0x4059d5
add eax, 4
cmp eax, 0x10
jl 0x4059b2
lea ecx, [edi - 0x10]
call fcn.0040103d
jmp 0x4058dd
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.0040523c
lea ecx, [edi - 0x10]
jmp 0x405948
Function at 0x407006
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x42c8fd
call fcn.004167bf
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.00411769
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x407051
call fcn.00411769
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 0x407062
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x40706f
or eax, 0xffffffff
jmp 0x4071cb
mov ecx, esi
call fcn.00406b58
mov dword [ebp - 0x14], eax
call fcn.004098f2
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x4070ed
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x4070ed
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4070ed
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00406a09
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x4070ed
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x4070ed
mov ecx, ebx
call fcn.0040679c
test eax, eax
je 0x4070ed
push 0
mov ecx, ebx
call fcn.004067b7
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0040b25a
push dword [ebp - 0x14]
call fcn.0040984a
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.00406e0e
xor edi, edi
cmp eax, edi
je 0x40714a
test byte [esi + 0x3c], 0x10
je 0x407134
push 4
pop edi
mov ecx, esi
call fcn.00406706
test ax, 0x100
je 0x40712a
push 5
pop edi
push edi
mov ecx, esi
call fcn.004093e0
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x40714a
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0040681e
or dword [ebp - 4], 0xffffffff
jmp 0x407175
cmp dword [ebp - 0x28], edi
je 0x407183
push 1
mov ecx, ebx
call fcn.004067b7
cmp dword [ebp - 0x2c], edi
je 0x407193
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x4071ac
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x4071ac
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.00406b92
cmp dword [esi + 0x58], edi
je 0x4071c8
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.0041682b
ret
Function at 0x40c374
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 0x40c3b7
call fcn.00411769
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40c3b7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40c3d2
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040bf2e
test ebx, ebx
mov esi, eax
je 0x40c3d0
test edi, edi
je 0x40c3d0
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x40e0db
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x43aee0]
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 - 0xc]
jne 0x40e118
push 0x431bf0
push 4
push eax
call fcn.00416f63
push eax
call fcn.00401660
add esp, 0x10
jmp 0x40e12a
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40e195
push edi
call fcn.00417158
mov edi, dword [eax]
call fcn.00417158
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.004170fe
add esp, 0x18
mov ebx, eax
call fcn.00417158
cmp dword [eax], 0
je 0x40e175
call fcn.00417158
push dword [eax]
call fcn.00406048
pop ecx
jmp 0x40e17c
call fcn.00417158
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x40e195
cmp ebx, esi
jae 0x40e195
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x40e197
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004166ff
leave
ret
Function at 0x40eaf5
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x40eafe
xor eax, eax
jmp 0x40eb67
cmp dword [esp + 8], 0
jne 0x40eb0a
call fcn.004061b8
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.00419d63
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x40eb45
push dword [esi + 0x10]
call fcn.00419a69
test eax, eax
pop ecx
jne 0x40eb45
mov esi, dword [esi + 0xc]
call fcn.0041716b
push esi
push dword [eax]
push 1
call fcn.0040fa32
push dword [esi + 0x10]
call fcn.00419a98
test eax, eax
pop ecx
je 0x40eb64
push dword [esi + 0x10]
call fcn.004199bd
push eax
call fcn.00401660
pop ecx
pop ecx
jmp 0x40eb33
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x40eb70
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x40eb7a
call fcn.004061b8
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.00419edd
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x40eba7
mov esi, dword [esi + 0xc]
call fcn.0041716b
push esi
push dword [eax]
push 1
call fcn.0040fa32
pop esi
ret 8

Function at 0x4166ff
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43aee0]
jne 0x416709
repz ret
jmp fcn.0041f25c
Function at 0x419ac7
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 0x419b04
cmp dword [ebp + 0x14], edi
je 0x419b04
cmp ecx, edi
jne 0x419b0b
call fcn.00417158
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0041d2ed
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x419b1f
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x419b40
cmp ebx, 0xffffffff
je 0x419b2f
push ebx
push edi
push ecx
call fcn.00416950
add esp, 0xc
cmp esi, edi
je 0x419aec
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x419aec
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x419b5c
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x419b63
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x419c54
test word [esi + 0xc], 0x10c
je 0x419bb7
mov eax, dword [esi + 4]
test eax, eax
je 0x419bb7
jl 0x419cb5
cmp ebx, eax
mov edi, ebx
jb 0x419b88
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x419c5c
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004160f0
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 0x419c4c
cmp ebx, dword [ebp - 0xc]
jb 0x419c24
cmp dword [ebp - 0xc], 0
je 0x419be1
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x419bd6
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x419bdd
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x419bec
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x419bec
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x419c88
push eax
push dword [ebp - 8]
push esi
call fcn.0041971c
pop ecx
push eax
call fcn.00423c5a
add esp, 0xc
test eax, eax
je 0x419cc7
cmp eax, 0xffffffff
je 0x419cb5
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x419c4c
push esi
call fcn.00423579
cmp eax, 0xffffffff
pop ecx
je 0x419cb9
cmp dword [ebp - 4], 0
je 0x419c88
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 0x419b6b
mov eax, dword [ebp + 0x14]
jmp 0x419b06
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x419c73
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00416950
add esp, 0xc
call fcn.00417158
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x419afc
cmp dword [ebp + 0xc], 0xffffffff
je 0x419c9e
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00416950
add esp, 0xc
call fcn.00417158
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x419afc
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x419b06
or dword [esi + 0xc], 0x10
jmp 0x419cb9
Function at 0x41b3b0
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 + 0x43b060]
je 0x41b3cb
inc edi
cmp edi, 0x17
jb 0x41b3bc
cmp edi, 0x17
jae 0x41b54b
push ebp
push 3
call fcn.00425a30
cmp eax, 1
pop ecx
je 0x41b517
push 3
call fcn.00425a30
test eax, eax
pop ecx
jne 0x41b3ff
cmp dword [0x43aeb0], 1
je 0x41b517
cmp ebx, 0xfc
je 0x41b54a
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x43e2f8
push ebp
call fcn.004259cb
add esp, 0xc
test eax, eax
je 0x41b435
push esi
push esi
push esi
push esi
push esi
call fcn.0041d1f1
add esp, 0x14
push 0x104
mov esi, 0x43e311
push esi
push 0
mov byte [0x43e415], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41b479
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004259cb
add esp, 0xc
test eax, eax
je 0x41b479
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0041d1f1
add esp, 0x14
push esi
call fcn.00425940
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41b4be
push esi
call fcn.00425940
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x43e60c
push 0x432afc
sub ecx, eax
push ecx
push eax
call fcn.00425888
add esp, 0x14
test eax, eax
je 0x41b4be
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0041d1f1
add esp, 0x14
jmp 0x41b4c0
xor esi, esi
push 0x432af8
push ebx
push ebp
call fcn.00425817
add esp, 0xc
test eax, eax
je 0x41b4e0
push esi
push esi
push esi
push esi
push esi
call fcn.0041d1f1
add esp, 0x14
push dword [edi*8 + 0x43b064]
push ebx
push ebp
call fcn.00425817
add esp, 0xc
test eax, eax
je 0x41b502
push esi
push esi
push esi
push esi
push esi
call fcn.0041d1f1
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0042565a
add esp, 0xc
jmp 0x41b54a
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x41b54a
cmp ebp, 0xffffffff
je 0x41b54a
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x43b064]
push dword [esi]
call fcn.00425940
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