joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a3c6
Capabilities:
Query environment variable
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x1010
call fcn.0040bac0
mov eax, dword [0x41a174]
xor eax, esp
mov dword [esp + 0x100c], eax
push ebx
mov ebx, dword [esp + 0x1018]
lea eax, [esp + 0x10]
push ebp
push esi
push edi
mov edi, dword [esp + 0x1028]
mov ebp, 0x800
xor esi, esi
mov dword [esp + 0x18], 1
push ebp
push esi
push eax
mov dword [esp + 0x1c], esi
call sub.VCRUNTIME140.dll_memset
push ebp
lea eax, [esp + 0x82c]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
push ebx
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 0x1c
test eax, eax
je 0x40a461
push eax
push dword [esp + 0x1030]
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
test eax, eax
je 0x40a5d9
xor eax, eax
mov ecx, dword [esp + 0x101c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040baa8
add esp, 0x1010
ret
lea eax, [esp + 0x10]
push eax
push 0x20019
push esi
push dword [0x41a160]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a446
lea eax, [esp + 0x102c]
push eax
push edi
lea eax, [esp + 0x20]
push eax
push esi
push ebx
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40a5bd
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x800
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
push esi
push 0x4133d0
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40a4dc
xor esi, esi
inc esi
jmp 0x40a5bd
push dword [esp + 0x10]
call ebp
lea eax, [esp + 0x10]
push eax
push 0x20019
push esi
push str.SOFTWAREOracleJavaDeploy
push reloc.oleaut32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a4d4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x800
push eax
lea eax, [esp + 0x820]
push eax
lea eax, [esp + 0x20]
push eax
push esi
push str.deployment.modified.timestamp
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40a4d4
lea eax, [esp + 0x1c]
mov dword [esp + 0x14], 0x800
push eax
lea eax, [esp + 0x820]
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbscmp]
pop ecx
pop ecx
test eax, eax
js 0x40a5d9
lea eax, [esp + 0x14]
push eax
push edi
lea eax, [esp + 0x20]
push eax
push esi
push ebx
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40a4d4
push dword [esp + 0x10]
call ebp
call fcn.00406802
test eax, eax
jne 0x40a5d9
lea eax, [esp + 0x10]
push eax
push 0x20006
push esi
push dword [0x41a160]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a446
push dword [esp + 0x14]
push edi
push 1
push esi
push ebx
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40a5ca
push dword [esp + 0x10]
call ebp
mov eax, esi
jmp 0x40a448
push dword [esp + 0x10]
call ebp
push edi
push ebx
call fcn.00406802
pop ecx
pop ecx
xor eax, eax
inc eax
jmp 0x40a448
Function at 0x404956
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
and dword [ebp - 8], 0
call dword [0x418e2c]
mov dword [ebp - 8], eax
and dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
inc eax
push eax
push 8
push dword [ebp - 8]
call dword [0x418e44]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40499c
push 0
push 0x41b3ac
push 0x41b3ac
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp + 0x10]
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.0040ca80
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x4049c5
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp - 4]
mov edi, esi
lodsb al, byte [esi]
xor al, byte [ebp + 0xc]
stosb byte es:[edi], al
sub ecx, 1
jne 0x4049bb
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404ca0
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
push ebx
push esi
sub eax, dword [0x4160e4]
add ecx, dword [0x4160ec]
mov ebx, ebx
sub edx, dword [0x4160e8]
sub ecx, dword [0x4160ec]
add edx, dword [0x4160e8]
inc ecx
mov edx, edx
add ebx, dword [0x4160e0]
add eax, dword [0x4160e4]
lea ebx, [ebx]
sub ebx, dword [0x4160e0]
lea ecx, [ecx]
dec ecx
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x404d3a
sub eax, dword [0x4160e4]
add ecx, dword [0x4160ec]
mov ebx, ebx
sub edx, dword [0x4160e8]
sub ecx, dword [0x4160ec]
add edx, dword [0x4160e8]
inc ecx
mov edx, edx
add ebx, dword [0x4160e0]
add eax, dword [0x4160e4]
lea ebx, [ebx]
sub ebx, dword [0x4160e0]
lea ecx, [ecx]
dec ecx
jmp 0x404dbd
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
sub eax, dword [0x4160e4]
add ecx, dword [0x4160ec]
mov ebx, ebx
sub edx, dword [0x4160e8]
sub ecx, dword [0x4160ec]
add edx, dword [0x4160e8]
inc ecx
mov edx, edx
add ebx, dword [0x4160e0]
add eax, dword [0x4160e4]
lea ebx, [ebx]
sub ebx, dword [0x4160e0]
lea ecx, [ecx]
dec ecx
test esi, esi
jne 0x404dc1
sub eax, dword [0x4160e4]
add ecx, dword [0x4160ec]
mov ebx, ebx
sub edx, dword [0x4160e8]
sub ecx, dword [0x4160ec]
add edx, dword [0x4160e8]
inc ecx
mov edx, edx
add ebx, dword [0x4160e0]
add eax, dword [0x4160e4]
lea ebx, [ebx]
sub ebx, dword [0x4160e0]
lea ecx, [ecx]
dec ecx
xor eax, eax
jmp 0x404e08
sub eax, dword [0x4160e4]
add ecx, dword [0x4160ec]
mov ebx, ebx
sub edx, dword [0x4160e8]
sub ecx, dword [0x4160ec]
add edx, dword [0x4160e8]
inc ecx
mov edx, edx
add ebx, dword [0x4160e0]
add eax, dword [0x4160e4]
lea ebx, [ebx]
sub ebx, dword [0x4160e0]
lea ecx, [ecx]
dec ecx
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
pop esi
pop ebx
leave
ret
Function at 0x407f1f
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
push ebx
push esi
push edi
push 0xa
xor esi, esi
pop ecx
xor eax, eax
lea edi, [ebp - 0x7c]
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa0], esi
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0x98], esi
mov dword [ebp - 0x94], esi
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x80], esi
rep stosd dword es:[edi], eax
push 0xa
lea edi, [ebp - 0x2c]
pop ecx
mov dword [ebp - 0x54], esi
push esi
push 0x80
push 3
push esi
push 1
push closesocket
push dword [ebp + 8]
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
rep stosd dword es:[edi], eax
call dword [0x418e80]
push esi
push eax
mov dword [ebp + 8], eax
call dword [0x418e50]
push esi
push esi
push esi
push 2
push esi
push dword [ebp + 8]
call dword [0x418e64]
cmp eax, esi
mov dword [ebp - 4], eax
je 0x408061
push esi
push esi
push esi
push 4
push eax
call dword [0x418e74]
mov ebx, eax
cmp ebx, esi
je 0x408058
cmp word [ebx], 0x5a4d
jne 0x408004
mov eax, dword [ebx + 0x3c]
add eax, ebx
cmp dword [eax], 0x4550
jne 0x408004
mov cx, word [eax + 6]
cmp cx, 1
jne 0x408008
xor eax, eax
jmp 0x40806c
movzx edi, cx
movzx ecx, word [eax + 0x14]
xor edx, edx
cmp edi, esi
lea ecx, [ecx + eax + 0x18]
jle 0x408038
add ecx, 0x14
mov esi, dword [ecx - 8]
mov dword [ebp + edx*4 - 0xa4], esi
mov esi, dword [ecx]
mov dword [ebp + edx*4 - 0x54], esi
add ecx, 0x28
movzx esi, word [eax + 6]
inc edx
cmp edx, esi
jl 0x40801c
lea eax, [ebp - 0x54]
push edi
push eax
lea eax, [ebp - 0xa4]
push eax
push dword [ebp + 0xc]
call fcn.00407ec5
add esp, 0x10
mov esi, eax
push ebx
call dword [0x418ef0]
push dword [ebp - 4]
call dword [0x418e58]
push dword [ebp + 8]
call dword [0x418e58]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b4bb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
sub eax, dword [0x4160e4]
add ecx, dword [0x4160ec]
mov ebx, ebx
sub edx, dword [0x4160e8]
sub ecx, dword [0x4160ec]
add edx, dword [0x4160e8]
inc ecx
mov edx, edx
add ebx, dword [0x4160e0]
add eax, dword [0x4160e4]
lea ebx, [ebx]
sub ebx, dword [0x4160e0]
lea ecx, [ecx]
dec ecx
mov edi, esi
sub eax, dword [0x4160e4]
add ecx, dword [0x4160ec]
mov ebx, ebx
sub edx, dword [0x4160e8]
sub ecx, dword [0x4160ec]
add edx, dword [0x4160e8]
inc ecx
mov edx, edx
add ebx, dword [0x4160e0]
add eax, dword [0x4160e4]
lea ebx, [ebx]
sub ebx, dword [0x4160e0]
lea ecx, [ecx]
dec ecx
mov ecx, dword [ebp + 0xc]
lodsb al, byte [esi]
sub eax, dword [0x4160e4]
add ecx, dword [0x4160ec]
mov ebx, ebx
sub edx, dword [0x4160e8]
sub ecx, dword [0x4160ec]
add edx, dword [0x4160e8]
inc ecx
mov edx, edx
add ebx, dword [0x4160e0]
add eax, dword [0x4160e4]
lea ebx, [ebx]
sub ebx, dword [0x4160e0]
lea ecx, [ecx]
dec ecx
xor al, 3
sub eax, dword [0x4160e4]
add ecx, dword [0x4160ec]
mov ebx, ebx
sub edx, dword [0x4160e8]
sub ecx, dword [0x4160ec]
add edx, dword [0x4160e8]
inc ecx
mov edx, edx
add ebx, dword [0x4160e0]
add eax, dword [0x4160e4]
lea ebx, [ebx]
sub ebx, dword [0x4160e0]
lea ecx, [ecx]
dec ecx
stosb byte es:[edi], al
sub eax, dword [0x4160e4]
add ecx, dword [0x4160ec]
mov ebx, ebx
sub edx, dword [0x4160e8]
sub ecx, dword [0x4160ec]
add edx, dword [0x4160e8]
inc ecx
mov edx, edx
add ebx, dword [0x4160e0]
add eax, dword [0x4160e4]
lea ebx, [ebx]
sub ebx, dword [0x4160e0]
lea ecx, [ecx]
dec ecx
sub ecx, 1
jne 0x40b53d
push 1
pop eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x403361
Capabilities:
Delete directory
Get common file path
Get file attributes
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi]
mov eax, dword [edi + 4]
xor ebx, ebx
cmp dword [0x2420900], 0x594
mov dword [ebp - 0x18], esi
mov dword [ebp - 8], eax
jne 0x4033ae
push 0x402e08
push 0x402e14
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
push 0x402e28
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
mov eax, dword [0x4284a8]
mov dword [ebp - 0x28], eax
mov eax, dword [0x4284ac]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
call fcn.00403357
mov eax, dword [0x4284b0]
add dword [ebp - 0x10], 0x23f
mov dword [ebp - 0x2c], eax
mov eax, dword [0x4284b4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0x20
jmp 0x4033ec
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, esi
shl eax, 4
cmp dword [0x2420900], 0xc
mov dword [ebp - 4], eax
jne 0x403451
push ebx
lea eax, [ebp - 0x44c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0xc4c]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
lea eax, [ebp - 0x38]
push eax
push ebx
lea eax, [ebp - 0x4c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov eax, dword [0x2420900]
cmp eax, 0xfa9
jne 0x40346d
mov dword [0x241fe9c], 0xedeb2e40
cmp eax, 0x3eb
jne 0x40347a
mov dword [0x241f84c], ebx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
add eax, esi
shr esi, cl
mov dword [ebp - 0x14], eax
mov dword [0x241fe98], 0xf4ea3dee
add esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor esi, dword [ebp - 4]
cmp dword [0x2420900], 0x213
mov dword [ebp - 0x14], esi
jne 0x4034b7
push 0x402e40
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov eax, dword [ebp - 0x14]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
mov eax, dword [ebp - 8]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
lea esi, [eax + edx]
mov eax, edx
shr eax, cl
add eax, dword [ebp - 0x30]
xor eax, esi
xor dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x18]
call fcn.0040335e
add dword [ebp - 0x10], 0x61c88647
dec dword [ebp - 0x20]
jne 0x4033e9
cmp dword [0x2420900], 0xa6d
mov eax, dword [ebp - 0x18]
mov dword [edi], eax
jne 0x403523
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov edx, dword [ebp - 8]
mov dword [edi + 4], edx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40352d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x2420900]
mov ecx, dword [0x241f850]
sub esp, 0x58c
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x4035ef
mov ebx, ecx
mov dword [ebp - 8], eax
cmp dword [0x2420900], 0x959
jne 0x4035dd
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
xor eax, eax
mov word [ebp - 4], ax
lea edi, [ebp - 2]
stosw word es:[edi], ax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_CreateActCtxW]
push esi
call dword [sym.imp.KERNEL32.dll_SetComputerNameW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessPriorityBoost]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea eax, [ebp - 0x188]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
push 0x402e54
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
push esi
lea eax, [ebp - 0x588]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push ebx
call fcn.00403361
add ebx, 8
dec dword [ebp - 8]
jne 0x403556
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4039be
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
push ebx
push esi
xor esi, esi
cmp dword [0x2420900], 0x400
push edi
jne 0x403a10
push esi
push esi
call fcn.00403ca6
push esi
push esi
call fcn.00403ca6
push esi
push esi
push esi
call fcn.0040466d
add esp, 0x14
mov dword [esp + 4], esi
mov dword [esp], esi
call fcn.00403332
fstp st(0)
push esi
call fcn.004046f2
pop ecx
push esi
call fcn.00404484
pop ecx
mov eax, dword [0x428b34]
mov dword [0x2420900], eax
mov eax, dword [0x428b0c]
mov dword [0x2420904], eax
call fcn.004036c3
mov dword [esp + 0x10], esi
mov ebx, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, eax
mov dword [esp + 0x1c], esi
lea edi, [esp + 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push esi
lea eax, [esp + 0x3c]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [esp + 0x10], ebx
jle 0x403a77
cmp dword [esp + 0x18], 0x785074d5
jne 0x403a85
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x1c1b
jl 0x403a32
xor edi, edi
push esi
lea eax, [esp + 0x34]
push eax
push esi
push 0x4031ac
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push 0x4031e8
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
cmp edi, ebx
jle 0x403ab4
cmp dword [esp + 0x18], 0x785074d5
jne 0x403abd
inc edi
cmp edi, 0x11915
jl 0x403a87
mov eax, dword [0x241f850]
mov dword [0x241fe94], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40a124
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x427e24]
jne 0x40a12e
repz ret
jmp fcn.0040d8e4
Function at 0x40d491
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405fe3
and dword [ebp - 4], 0
cmp dword [0x429458], 0
mov ebx, eax
jne 0x40d542
push 0x402cb4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40d5f3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402ca8
push edi
call esi
test eax, eax
je 0x40d5f3
push eax
call fcn.00405f71
mov dword [esp], 0x402c98
push edi
mov dword [0x429458], eax
call esi
push eax
call fcn.00405f71
mov dword [esp], 0x402c84
push edi
mov dword [0x42945c], eax
call esi
push eax
call fcn.00405f71
mov dword [esp], 0x402c68
push edi
mov dword [0x429460], eax
call esi
push eax
call fcn.00405f71
pop ecx
mov dword [0x429468], eax
test eax, eax
je 0x40d542
push 0x402c50
push edi
call esi
push eax
call fcn.00405f71
pop ecx
mov dword [0x429464], eax
mov eax, dword [0x429464]
cmp eax, ebx
je 0x40d59a
cmp dword [0x429468], ebx
je 0x40d59a
push eax
call fcn.00405fec
push dword [0x429468]
mov esi, eax
call fcn.00405fec
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40d59a
test edi, edi
je 0x40d59a
call esi
test eax, eax
je 0x40d591
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40d591
test byte [ebp - 0xc], 1
jne 0x40d59a
or dword [ebp + 0x10], 0x200000
jmp 0x40d5d3
mov eax, dword [0x42945c]
cmp eax, ebx
je 0x40d5d3
push eax
call fcn.00405fec
pop ecx
test eax, eax
je 0x40d5d3
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40d5d3
mov eax, dword [0x429460]
cmp eax, ebx
je 0x40d5d3
push eax
call fcn.00405fec
pop ecx
test eax, eax
je 0x40d5d3
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x429458]
call fcn.00405fec
pop ecx
test eax, eax
je 0x40d5f3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40d5f5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x401b70
repz ret
jmp fcn.0040324d
Function at 0x402461
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
enter 4, 0
mov esi, eax
lea edx, [eax - 1]
mov ebx, eax
and edx, dword [0x404050]
mov eax, 0x404054
jmp loc.00462a00
Function at 0x402077
Capabilities:
Delete file
Get file size
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x98
mov eax, dword [0x42f180]
xor eax, ebp
mov dword [ebp + 0x70], eax
mov eax, dword [ebp + 0x7c]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
mov dword [ebp - 0x20], eax
call fcn.004240fc
pop ecx
pop ecx
push ebx
push 0x80000080
push 2
push ebx
push 1
push 0xc0000000
push eax
mov dword [ebp - 0x24], eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov esi, dword [sym.imp.kernel32.dll_GetStdHandle]
push 0xfffffffffffffff5
mov dword [ebp - 0x14], eax
call esi
push 0xfffffffffffffff4
mov dword [ebp - 0x1c], eax
call esi
push dword [ebp - 0x14]
mov esi, dword [sym.imp.kernel32.dll_SetStdHandle]
push 0xfffffffffffffff5
mov dword [ebp - 0x18], eax
call esi
push dword [ebp - 0x14]
push 0xfffffffffffffff4
call esi
mov ecx, 0x431440
call fcn.00401a9d
mov edi, eax
cmp edi, ebx
jne 0x40211f
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
lea eax, [ebp - 0x10]
push str.Cant_load_Python_for_pre_install_script___d_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x10]
push eax
call fcn.00401654
add esp, 0x10
or eax, 0xffffffff
jmp 0x4021f7
push dword [ebp - 0x20]
call fcn.004078a8
pop ecx
push edi
mov dword [ebp - 0x20], eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
push dword [ebp - 0x1c]
push 0xfffffffffffffff5
call esi
push dword [ebp - 0x18]
push 0xfffffffffffffff4
call esi
cmp dword [ebp - 0x20], ebx
je 0x4021e2
mov eax, str.Running_the_pre_installation_script_failed_r_n
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402151
push ebx
push dword [ebp - 0x14]
sub eax, edx
mov edi, eax
call dword [sym.imp.kernel32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
jne 0x402175
mov dword [ebp - 0x18], 0x1000
mov eax, dword [ebp - 0x18]
lea eax, [eax + edi + 1]
push eax
call fcn.004078a8
mov esi, eax
pop ecx
cmp esi, ebx
je 0x4021d7
mov eax, str.Running_the_pre_installation_script_failed_r_n
mov edx, esi
mov dword [ebp - 0x1c], ebx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x402195
push ebx
push ebx
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
lea eax, [esi + edi]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_ReadFile]
mov eax, dword [ebp - 0x1c]
add eax, esi
push esi
mov byte [eax + edi], bl
call fcn.00401654
push esi
call fcn.00407f30
pop ecx
jmp 0x4021e1
push str.Out_of_memory_
call fcn.00401654
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_CloseHandle]
push dword [ebp - 0x24]
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x70]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407875
add ebp, 0x74
leave
ret
Function at 0x4024ca
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x42f180]
xor eax, ebp
mov dword [ebp + 0x90], eax
mov eax, dword [ebp + 0x9c]
mov dword [ebp - 0x78], ecx
lea ecx, [edx + eax - 0x16]
sub eax, dword [ecx + 0x10]
push esi
sub eax, dword [ecx + 0xc]
push edi
mov edi, dword [ebp + 0xa0]
sub eax, 0x22
lea esi, [edx + eax]
xor edx, edx
mov dword [edi], edx
mov dword [ebx], edx
cmp dword [ecx], 0x6054b50
mov dword [ebp - 0x80], edi
jne 0x40260f
cmp dword [esi], 0x1234567b
je 0x402534
push edx
mov edi, str.Invalid_cfgdata_magic_number__see_bdist_wininst.py_
call fcn.004078a8
pop ecx
jmp 0x402611
cmp eax, edx
jl 0x40260f
mov ecx, dword [esi + 8]
cmp ecx, edx
je 0x402550
mov edx, esi
sub edx, dword [esi + 4]
sub edx, ecx
mov dword [0x431560], edx
sub eax, dword [esi + 4]
mov ecx, dword [ebp - 0x78]
sub eax, dword [esi + 8]
mov edi, esi
mov dword [ecx], eax
sub edi, dword [esi + 4]
push 0x104
call fcn.004078a8
pop ecx
mov dword [ebp - 0x7c], eax
test eax, eax
je 0x40260f
lea eax, [ebp - 0x74]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x4025fd
push dword [ebp - 0x7c]
lea eax, [ebp - 0x74]
push 0
push 0x4259a8
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
test eax, eax
je 0x4025fd
xor eax, eax
push eax
push eax
push eax
push dword [esi + 4]
push eax
push dword [ebp - 0x7c]
push 2
call fcn.004078a8
add esp, 0x1c
mov dword [ebp - 0x78], eax
test eax, eax
je 0x40260f
push dword [esi + 4]
push edi
push eax
call fcn.00408be0
mov eax, dword [ebp - 0x78]
add esp, 0xc
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4025d1
sub eax, esi
lea eax, [eax + edi + 1]
push eax
call fcn.004078a8
pop ecx
mov ecx, dword [ebp - 0x80]
push dword [ebp - 0x78]
mov dword [ecx], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebx], eax
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
xor eax, eax
inc eax
jmp 0x402611
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
mov edi, str.Could_not_create_temporary_file
call fcn.004078a8
pop ecx
xor eax, eax
mov ecx, dword [ebp + 0x90]
pop edi
xor ecx, ebp
pop esi
call fcn.00407875
add ebp, 0x94
leave
ret