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

Disassembly:
cmp byte [0x52fa28], 0
je 0x4b4090
ret
sub esp, 0x7c
mov dword [esp], str.GLUT_DIALS_SERIAL
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], ebp
call sub.msvcrt.dll_getenv
test eax, eax
je 0x4b4220
lea ebp, [esp + 0x44]
xor edx, edx
mov dword [ebp + edx], 0
add edx, 4
cmp edx, 0x1c
jb 0x4b40bd
mov dword [esp + 0x44], 0x1c
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc0000000
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
sub esp, 0x1c
test eax, eax
mov esi, eax
je 0x4b42aa
mov dword [esp], 0x34
call sub.msvcrt.dll_malloc
mov ecx, 0xd
mov ebx, eax
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
lea eax, [ebx + 0x18]
mov dword [ebx], esi
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GetCommState]
lea eax, [ebx + 4]
sub esp, 8
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GetCommTimeouts]
sub esp, 8
mov dword [esp + 0x44], 0x1c
mov dword [esp + 4], ebp
mov dword [esp], str.96_n_8_1
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
sub esp, 8
mov dword [esp + 4], ebp
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetCommState]
sub esp, 8
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 1
mov dword [esp + 0x40], 1
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetCommTimeouts]
mov eax, dword [ebx]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov edx, 0x20
mov eax, ebx
mov dword [0xa4ca60], ebx
sub esp, 4
call fcn.004b3e20
mov dword [esp + 8], 0
mov dword [esp + 4], 0x4b3ed0
mov dword [esp], 0xa
call fcn.004af5f0
mov byte [0x52fa28], 1
mov ebx, dword [esp + 0x6c]
mov esi, dword [esp + 0x70]
mov edi, dword [esp + 0x74]
mov ebp, dword [esp + 0x78]
add esp, 0x7c
ret
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], 0x100
mov dword [esp + 0x28], 1
mov dword [esp + 8], eax
mov dword [esp + 4], str.SOFTWAREFreeGLUT
mov dword [esp], 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
sub esp, 0xc
test eax, eax
jne 0x4b4207
lea eax, [esp + 0x24]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x28]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], 0xa4ca80
mov dword [esp + 8], 0
mov dword [esp + 4], str.DialboxSerialPort
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
sub esp, 0x18
test eax, eax
jne 0x4b42b9
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0xa4ca80
sub esp, 4
jmp 0x4b40b7
mov dword [0xa4ca60], 0
jmp 0x4b4207
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub esp, 4
jmp 0x4b4207
Function at 0x4b4380
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x26c
mov dword [esp + 0x264], edi
mov edi, eax
mov dword [esp + 0x25c], ebx
mov dword [esp + 0x260], esi
mov dword [esp + 0x268], ebp
cmp byte [eax + 0x1d0], 0
je 0x4b43d2
xor eax, eax
mov ebx, dword [esp + 0x25c]
mov esi, dword [esp + 0x260]
mov edi, dword [esp + 0x264]
mov ebp, dword [esp + 0x268]
add esp, 0x26c
ret
lea ebx, [esp + 0x50]
mov esi, dword [sym.imp.msvcrt.dll__snprintf]
lea eax, [eax + 0x70]
mov dword [esp + 0x14], str.CurrentJoystickSettings
lea ebp, [esp + 0x48]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.SystemCurrentControlSetControlMediaResourcesJoystick
mov dword [esp + 8], str._s_s_s
mov dword [esp + 4], 0x100
mov dword [esp], ebx
mov dword [esp + 0x2c], edx
call esi
mov eax, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 0x80000002
mov dword [esp + 0x3c], eax
call eax
sub esp, 0x14
test eax, eax
jne 0x4b43ad
mov dword [esp + 0x10], str.OEMName
mov eax, dword [edi + 0x1c8]
mov dword [esp + 0x4c], 0x100
mov dword [esp + 8], str.Joystick_d_s
mov dword [esp + 4], 0x100
add eax, 1
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call esi
lea eax, [esp + 0x4c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x150]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0xc], 0
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp + 0x38], eax
call eax
sub esp, 0x18
mov edi, eax
mov eax, dword [esp + 0x48]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x34], eax
call eax
sub esp, 4
test edi, edi
mov ecx, dword [esp + 0x30]
jne 0x4b43ad
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], str.SystemCurrentControlSetControlMediaPropertiesPrivatePropertiesJoystickOEM
mov dword [esp + 8], str._s_s
mov dword [esp + 4], 0x100
mov dword [esp], ebx
call esi
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 0x80000002
call dword [esp + 0x3c]
sub esp, 0x14
test eax, eax
mov edx, dword [esp + 0x2c]
jne 0x4b43ad
lea eax, [esp + 0x4c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x10], edx
mov dword [esp + 0x4c], pe_nt_image_headers32
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.OEMName
mov dword [esp], eax
call dword [esp + 0x38]
sub esp, 0x18
mov ebx, eax
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call dword [esp + 0x34]
xor eax, eax
sub esp, 4
test ebx, ebx
sete al
jmp 0x4b43af
Function at 0x4bdad0
Capabilities:
Parse pe header

Disassembly:
mov edx, dword [esp + 4]
xor eax, eax
cmp word [edx], 0x5a4d
je 0x4bdae0
repz ret
add edx, dword [edx + 0x3c]
cmp dword [edx], 0x4550
jne 0x4bdadd
xor eax, eax
cmp word [edx + 0x18], 0x10b
sete al
ret

Function at 0x4bdb00
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x4bdb38
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x4bdb2e
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x4bdb3a
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x4bdb20
xor eax, eax
pop ebx
pop esi
ret

Function at 0x4be080
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0xa4cf64
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0xa4cf7c]
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 4
test ebx, ebx
je 0x4be0d5
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4be0ce
test esi, esi
je 0x4be0ce
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4be0b0
mov dword [esp], 0xa4cf64
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4be360
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x4be394
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [0xa4cf84], eax
call fcn.004ce5a0
test eax, eax
sete al
movzx eax, al
mov dword [0x531bb4], eax
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4be383

Function at 0x4be430
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov dword [esp + 4], eax
mov eax, dword [0xa4cf84]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x4be450
add esp, 0x1c
ret
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x1c
jmp eax
Function at 0x4be4b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub esp, 0x2c
mov eax, dword [0x531bb4]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edi
test eax, eax
mov dword [esp + 0x28], ebp
js 0x4be560
test eax, eax
jne 0x4be500
mov eax, dword [0xa4cf88]
mov dword [0xa4cf88], ebx
mov dword [ebx], eax
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
add esp, 0x2c
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, dword [0xa4cf84]
call esi
mov dword [esp], ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebp, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [0xa4cf84]
mov dword [ebx], ebp
sub esp, 4
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x4be4e5
mov edx, esi
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
add esp, 0x2c
jmp edx
call fcn.004be3a0
mov eax, dword [0x531bb4]
jmp 0x4be4d4

Function at 0x4be570
Capabilities:
Set thread local storage value

Disassembly:
push ebx
sub esp, 8
mov edx, dword [0x531bb4]
mov eax, dword [esp + 0x10]
test edx, edx
mov ebx, dword [eax]
js 0x4be5a0
test edx, edx
jne 0x4be593
mov dword [0xa4cf88], ebx
add esp, 8
pop ebx
ret
add esp, 8
mov eax, ebx
pop ebx
jmp fcn.004be430
call fcn.004be3a0
mov edx, dword [0x531bb4]
jmp 0x4be584

Function at 0x4be7a0
Capabilities:
Get thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov eax, dword [0x531bb4]
mov edi, dword [esp + 0x40]
test eax, eax
js 0x4be883
test eax, eax
mov esi, dword [0xa4cf88]
jne 0x4be821
test esi, esi
mov dword [esp + 0x2c], esi
je 0x4be815
mov ecx, esi
lea ebx, [esp + 0x2c]
nop
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x4be807
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov edx, dword [edi]
mov ecx, dword [edi + 4]
mov dword [esp + 4], 1
mov dword [esp], 1
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
call eax
cmp eax, 6
je 0x4be850
cmp eax, 8
jne 0x4be877
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
test ecx, ecx
mov dword [esp + 0x2c], ecx
jne 0x4be7d0
mov eax, 5
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov esi, dword [0xa4cf84]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
jmp 0x4be7c1
mov eax, dword [esp + 0x2c]
mov edx, ebx
mov dword [edi + 0xc], 0
mov dword [esp + 0x2c], esi
mov dword [edi + 0x10], eax
mov eax, edi
call fcn.004be2c0
cmp eax, 7
jne 0x4be81a
mov eax, ebx
call fcn.004be460
add esp, 0x30
mov eax, 3
pop ebx
pop esi
pop edi
ret
call fcn.004be3a0
mov eax, dword [0x531bb4]
jmp 0x4be7b7
Function at 0x4be950
Capabilities:
Get thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov edx, dword [0x531bb4]
mov ebx, dword [esp + 0x30]
test edx, edx
js 0x4be9cb
test edx, edx
mov esi, dword [0xa4cf88]
jne 0x4be9a5
mov ecx, dword [ebx + 0xc]
mov eax, ebx
mov dword [esp + 0x1c], esi
lea esi, [esp + 0x1c]
mov edx, esi
test ecx, ecx
jne 0x4be995
call fcn.004be2c0
cmp eax, 7
je 0x4be99c
nop
lea esi, [esi]
call sub.msvcrt.dll_abort
call fcn.004be5b0
jmp 0x4be986
mov eax, esi
nop
call fcn.004be460
mov esi, dword [0xa4cf84]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov esi, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
jmp 0x4be96e
call fcn.004be3a0
mov edx, dword [0x531bb4]
jmp 0x4be964

Function at 0x4be9e0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x2c
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], edi
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x4bea12
mov dword [esp], ebx
call fcn.004be7a0
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
add esp, 0x2c
ret
mov edx, dword [0x531bb4]
test edx, edx
js 0x4bea80
test edx, edx
mov esi, dword [0xa4cf88]
jne 0x4bea50
lea edx, [esp + 0x1c]
mov eax, ebx
mov dword [esp + 0x1c], esi
call fcn.004be5b0
cmp eax, 7
je 0x4bea40
call sub.msvcrt.dll_abort
nop
lea eax, [esp + 0x1c]
call fcn.004be460
lea esi, [esi]
mov esi, dword [0xa4cf84]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
jmp 0x4bea26
call fcn.004be3a0
mov edx, dword [0x531bb4]
jmp 0x4bea1c

Function at 0x4befd0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
add esp, 0x1c
ret

Function at 0x4bf010
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x4bf035
xor eax, eax
add esp, 0x1c
ret
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x1c
jmp eax
Function at 0x40217c
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp - 0xc]
push ebx
xor ebx, ebx
push eax
push 0x20019
push ebx
push str.SoftwarePythonPythonCore
mov dword [ebp - 4], ebx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4021ae
xor eax, eax
jmp 0x4022db
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x64]
mov dword [ebp - 8], 0x50
push eax
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4022cf
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp + 0x10]
inc dword [ebp - 4]
cmp eax, ebx
mov dword [ebp - 8], 0x50
je 0x402204
cmp byte [eax], bl
je 0x402204
lea ecx, [ebp - 0x64]
push ecx
push eax
call sub.MSVCR71.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x4022ad
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x104]
push str.Python_Version__s__found_in_registry_
push eax
call esi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0xb4]
push str.SoftwarePythonPythonCore_sInstallPath
push eax
call esi
add esp, 0x18
lea eax, [ebp - 0x10]
push eax
push 0x20019
lea eax, [ebp - 0xb4]
push ebx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4022ad
push 0x10c
call dword [sym.imp.MSVCR71.dll_malloc]
mov esi, eax
pop ecx
cmp esi, ebx
mov dword [ebp - 0x14], 0x105
je 0x4022a4
lea eax, [ebp - 0x14]
push eax
push esi
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4022a4
lea eax, [ebp - 0x104]
push eax
push ebx
push 0x180
push dword [ebp + 8]
call edi
mov ecx, dword [ebp + 0xc]
push esi
push eax
push 0x19a
push dword [ebp + 8]
mov dword [esi + 0x108], ecx
call edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 4]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x4021db
pop edi
pop esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
pop ebx
leave
ret
Function at 0x402603
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov edi, dword [ebp + 8]
push str.Py_Initialize
push edi
call esi
push str.Py_SetProgramName
push edi
mov ebx, eax
call esi
push str.Py_Finalize
push edi
mov dword [ebp + 8], eax
call esi
push str.PyRun_SimpleString
push edi
mov dword [ebp - 8], eax
call esi
push str.PySys_GetObject
push edi
mov dword [ebp - 4], eax
call esi
push str.Py_OptimizeFlag
push edi
mov dword [ebp - 0xc], eax
call esi
xor esi, esi
cmp dword [0x40c38c], esi
jne 0x402661
xor eax, eax
jmp 0x4026ab
cmp ebx, esi
je 0x4026a8
cmp dword [ebp + 8], esi
je 0x4026a8
cmp dword [ebp - 8], esi
je 0x4026a8
cmp dword [ebp - 4], esi
je 0x4026a8
cmp dword [ebp - 0xc], esi
je 0x4026a8
cmp eax, esi
je 0x4026a8
xor ecx, ecx
cmp dword [ebp + 0xc], esi
push 0x40c3c0
setne cl
mov dword [eax], ecx
call dword [ebp + 8]
call ebx
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.004026b0
add esp, 0xc
mov esi, eax
call dword [ebp - 8]
mov eax, esi
jmp 0x4026ab
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4027b5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push 0x40d880
lea eax, [ebp - 0x268]
push str.PYTHONHOME_s
push eax
mov dword [ebp - 4], 0x104
call edi
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.MSVCR71.dll__putenv]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x10
push dword [ebp + 8]
call esi
test eax, eax
jne 0x402867
push dword [0x40d7f0]
lea eax, [ebp - 0x54]
push dword [0x40d984]
push str.SOFTWAREPythonPythonCore_d._dInstallPath
push eax
call edi
add esp, 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x54]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x40283b
xor eax, eax
jmp 0x402867
lea eax, [ebp - 0x158]
push 0x40b5cc
push eax
call sub.MSVCR71.dll_strcat
push dword [ebp + 8]
lea eax, [ebp - 0x158]
push eax
call sub.MSVCR71.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x158]
push eax
call esi
pop edi
pop esi
leave
ret
Function at 0x40286b
Capabilities:
Delete file
Read file on windows

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
xor esi, esi
push edi
push esi
push esi
call dword [sym.imp.MSVCR71.dll__tempnam]
mov edi, dword [sym.imp.MSVCR71.dll_freopen]
mov ebp, eax
mov eax, dword [sym.imp.MSVCR71.dll__iob]
mov ebx, 0x40b9d4
add eax, 0x40
mov dword [esp + 0x1c], ebp
push eax
push ebx
push ebp
call edi
mov eax, dword [sym.imp.MSVCR71.dll__iob]
add eax, 0x20
push eax
push ebx
push ebp
call edi
push 0x40d680
call fcn.004027b5
mov edi, eax
add esp, 0x24
cmp edi, esi
jne 0x4028cc
push str.Cant_load_Python_for_pre_install_script
call fcn.004025da
pop ecx
or eax, 0xffffffff
jmp 0x4029cb
push dword [esp + 0x1c]
push edi
call fcn.004029d2
pop ecx
mov dword [esp + 0x14], eax
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [sym.imp.MSVCR71.dll__iob]
mov edi, dword [sym.imp.MSVCR71.dll_fflush]
add eax, 0x40
push eax
call edi
mov eax, dword [sym.imp.MSVCR71.dll__iob]
mov ebx, dword [sym.imp.MSVCR71.dll_fclose]
add eax, 0x40
push eax
call ebx
mov eax, dword [sym.imp.MSVCR71.dll__iob]
add eax, 0x20
push eax
call edi
mov eax, dword [sym.imp.MSVCR71.dll__iob]
add eax, 0x20
push eax
call ebx
add esp, 0x10
cmp dword [esp + 0x10], esi
je 0x4029bc
push str.Running_the_pre_installation_script_failed_r_n
call sub.MSVCR71.dll_strlen
mov dword [esp], 0x40b974
push ebp
mov edi, eax
call dword [sym.imp.MSVCR71.dll_fopen]
mov ebp, eax
push 2
push esi
mov esi, dword [sym.imp.MSVCR71.dll_fseek]
push ebp
call esi
push ebp
call dword [sym.imp.MSVCR71.dll_ftell]
push 0
push 0
push ebp
mov dword [esp + 0x40], eax
call esi
mov eax, dword [esp + 0x40]
lea eax, [eax + edi + 1]
push eax
call dword [sym.imp.MSVCR71.dll_malloc]
mov esi, eax
add esp, 0x28
test esi, esi
je 0x4029b1
push str.Running_the_pre_installation_script_failed_r_n
push esi
call sub.MSVCR71.dll_strcpy
push ebp
lea eax, [esi + edi]
push dword [esp + 0x28]
push 1
push eax
call dword [sym.imp.MSVCR71.dll_fread]
add eax, esi
push ebp
and byte [eax + edi], 0
call ebx
push esi
call fcn.004025da
push esi
call dword [sym.imp.MSVCR71.dll_free]
add esp, 0x24
jmp 0x4029bc
push str.Out_of_memory_
call fcn.004025da
pop ecx
push dword [esp + 0x14]
call dword [sym.imp.MSVCR71.dll_remove]
mov eax, dword [esp + 0x14]
pop ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x4029d2
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov edi, dword [ebp + 8]
push str.Py_Initialize
push edi
call esi
push str.Py_SetProgramName
push edi
mov ebx, eax
call esi
push str.Py_Finalize
push edi
mov dword [ebp + 8], eax
call esi
push str.PyRun_SimpleString
push edi
mov dword [ebp - 8], eax
call esi
push str.PyErr_Print
push edi
mov dword [ebp - 4], eax
call esi
mov esi, eax
xor eax, eax
cmp ebx, eax
je 0x402a59
cmp dword [ebp + 8], eax
je 0x402a59
cmp dword [ebp - 8], eax
je 0x402a59
cmp dword [ebp - 4], eax
je 0x402a59
cmp esi, eax
je 0x402a59
push 0x40c3c0
call dword [ebp + 8]
call ebx
push edi
call fcn.00402a61
push dword [ebp + 0xc]
call dword [ebp - 4]
mov edi, eax
add esp, 0xc
test edi, edi
je 0x402a52
call esi
call dword [ebp - 8]
mov eax, edi
jmp 0x402a5c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402a61
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov edi, dword [ebp + 8]
push str.PyImport_ImportModule
push edi
call esi
push str.PyObject_SetAttrString
push edi
mov ebx, eax
call esi
push str.PyObject_GetAttrString
push edi
mov dword [ebp - 8], eax
call esi
push str.PyCFunction_New
push edi
mov dword [ebp + 8], eax
call esi
push str.Py_BuildValue
push edi
mov dword [ebp - 4], eax
call esi
push str.PyArg_ParseTuple
push edi
mov dword [ebp - 0xc], eax
call esi
push str.PyErr_Format
push edi
mov dword [ebp - 0x10], eax
call esi
xor esi, esi
mov dword [ebp - 0x14], eax
cmp ebx, esi
je 0x402b53
cmp dword [ebp + 8], esi
je 0x402b53
cmp dword [ebp - 8], esi
je 0x402b53
cmp dword [ebp - 4], esi
je 0x402b53
cmp dword [ebp - 0xc], esi
je 0x402b53
cmp dword [ebp - 0x10], esi
je 0x402b53
cmp eax, esi
je 0x402b53
push str.__builtin__
call ebx
mov edi, eax
pop ecx
cmp edi, esi
je 0x402b37
push str.ValueError
push edi
call dword [ebp + 8]
push str.OSError
push edi
mov dword [0x40d7f4], eax
call dword [ebp + 8]
add esp, 0x10
mov dword [0x40d98c], eax
mov esi, 0x40b0c8
push 0
push esi
call dword [ebp - 4]
push eax
push dword [esi]
push edi
call dword [ebp - 8]
add esi, 0x10
add esp, 0x14
cmp esi, 0x40b128
jl 0x402b1c
mov eax, dword [ebp - 0xc]
mov dword [0x40d868], eax
mov eax, dword [ebp - 0x10]
mov dword [0x40d86c], eax
mov eax, dword [ebp - 0x14]
mov dword [0x40d664], eax
xor eax, eax
jmp 0x402b56
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret