joyce8/EMBER2024-capa huggingface dataset:
Function at 0x71b4d0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x7058a0
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
push str.api_ms_win_core_synch_l1_2_0.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
test eax, eax
je 0x71b54d
mov edi, eax
push str.WaitOnAddress
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x71b54d
mov esi, eax
push str.WakeByAddressSingle
push edi
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x71b54d
mov edi, eax
xor ebx, ebx
movzx eax, byte [0x919aa5]
mov eax, dword [0x919820]
test eax, eax
jne 0x71b5dd
jmp 0x71b5ce
push 0x8f8370
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
test eax, eax
je 0x71b64c
mov esi, eax
push str.NtCreateKeyedEvent
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x71b64c
mov edi, eax
push str.NtReleaseKeyedEvent
push esi
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x71b64c
mov ebx, eax
push str.NtWaitForKeyedEvent
push esi
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x71b64c
mov esi, eax
lea eax, [ebp - 0x28]
push 0
push 0
push 0xc0000000
push eax
call edi
test eax, eax
jne 0x71b64c
mov edi, dword [ebp - 0x28]
movzx eax, byte [0x919aa5]
mov eax, dword [0x919820]
test eax, eax
jne 0x71b5dd
call dword [sym.imp.kernel32.dll_GetProcessHeap]
test eax, eax
je 0x71b653
mov dword [0x919820], eax
push 0xc
push 0
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x71b653
mov dword [eax], ebx
mov dword [eax + 4], esi
mov ecx, eax
mov dword [eax + 8], edi
xor eax, eax
lock cmpxchg dword [0x919780], ecx
je 0x71b639
cmp dword [ecx], 0
mov esi, eax
mov dword [ebp - 0x20], ecx
je 0x71b626
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 8]
mov dword [ebp - 0x10], 1
push eax
mov dword [ebp - 0x24], esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov esi, dword [ebp - 0x24]
push dword [ebp - 0x20]
push 0
push dword [0x919820]
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, esi
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, ecx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.0071b4a0
ud2
mov ecx, 4
mov edx, 0xc
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], 0
call fcn.00709d20
ud2
Function at 0x720170
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x64
mov ebp, dword [edx]
mov edi, dword [esp + 0x78]
mov eax, dword [esp + 0x80]
mov esi, dword [esp + 0x7c]
lea ebx, [ebp - 1]
mov dword [esp + 8], edi
cmp ebx, 2
jae 0x7201ac
cmp dword [edx + 0xc], eax
jbe 0x720291
mov edx, dword [edx + 8]
cmp byte [edx + eax], 0xc0
setge al
jmp 0x720294
mov dword [esp + 4], ecx
mov ecx, dword [edx + 4]
mov edi, dword [edx + 8]
mov ebx, dword [edx + 0x14]
mov dword [esp], ecx
mov ecx, dword [edx + 0xc]
mov dword [esp + 0x50], edi
mov dword [esp + 0xc], edi
mov edi, dword [edx + 0x10]
movzx edx, byte [edx + 0x18]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x48], ebp
mov ebp, dword [esp]
mov dword [esp], ebx
inc ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x4c], ebp
mov byte [esp + 0x60], dl
nop dword [eax]
cmp eax, ecx
jae 0x720200
mov edx, dword [esp + 0xc]
cmp byte [edx + eax], 0xc0
jl 0x720202
jmp 0x72027b
je 0x72027b
mov esi, edi
inc esi
cmovne ebp, esi
je 0x7202ab
mov eax, dword [esp]
mov ebx, ecx
mov dword [esp + 0x30], ebp
cmp ecx, eax
mov dword [esp + 0x34], eax
jb 0x7202c4
cmp dword [esp + 0x10], ebp
jb 0x7202c4
mov eax, dword [esp + 0x84]
lea ecx, [esp + 0x18]
mov dword [esp + 0x58], ebp
mov edx, dword [eax]
push dword [eax + 0xc]
push dword [eax + 8]
lea edi, [esp + 0x50]
push edi
push dword [eax + 4]
call fcn.00641540
add esp, 0x10
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x18], 0
mov edi, ebp
mov ebp, esi
mov ecx, ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov esi, eax
jne 0x7201f0
mov eax, dword [esp + 4]
mov dword [eax], 0
jmp 0x7202a3
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [eax], 1
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
jmp 0x7202a3
sete al
mov edx, dword [esp + 0x78]
movzx eax, al
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov dword [ecx + 8], esi
add esp, 0x64
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, str.called__Option::unwrap____on_a__None__value_rustc_d5c2e9c342b358556da91d61ed4133f6f50fc0c3library_std_src_synconce.rs
mov edx, 0x2b
push 0x8c2790
call fcn.0070a0f0
add esp, 4
ud2
lea eax, [esp + 0x30]
lea edx, [esp + 0x14]
lea ecx, [esp + 0x38]
mov dword [esp + 0x18], 0x8c27c8
mov dword [esp + 0x1c], 2
mov dword [esp + 0x28], 0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], 0x4218c0
mov dword [esp + 0x40], edx
lea ecx, [esp + 0x18]
mov edx, 0x8c284c
mov dword [esp + 0x44], 0x4262e0
mov dword [esp + 0x24], 2
call fcn.00709f70
ud2
Function at 0x720320
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x60
mov ebx, dword [edx]
mov dword [esp], ecx
mov ecx, dword [esp + 0x7c]
mov ebp, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
mov esi, edx
lea edi, [ebx - 1]
cmp edi, 2
jae 0x72035a
cmp dword [esi + 0xc], ecx
jbe 0x720432
mov edx, dword [esi + 8]
cmp byte [edx + ecx], 0xc0
setge cl
jmp 0x720435
mov ebp, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov edi, dword [esi + 0x14]
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], edx
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], ebx
mov ebx, dword [esi + 4]
mov dword [esp + 4], edx
movzx edx, byte [esi + 0x18]
mov dword [esp + 8], ebp
mov ebp, dword [esp + 0x78]
mov dword [esp + 0x48], ebx
mov ebx, dword [esi + 0x10]
mov byte [esp + 0x5c], dl
lea edx, [edi + 1]
mov dword [esp + 0xc], edx
cmp ecx, dword [esp + 4]
jae 0x7203b0
nop
mov edx, dword [esp + 8]
cmp byte [edx + ecx], 0xc0
jl 0x7203b6
jmp 0x720445
je 0x720445
mov ebp, ebx
inc ebp
cmovne esi, ebp
je 0x720465
cmp dword [esp + 4], edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], edi
jb 0x72047e
cmp dword [esp + 0xc], esi
jb 0x72047e
mov edx, dword [esp + 0x80]
lea ecx, [esp + 0x14]
lea eax, [esp + 0x44]
mov dword [esp + 0x54], esi
push eax
push dword [esp + 0x88]
call fcn.0060e650
add esp, 8
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
cmp ecx, 1
jne 0x720420
mov ecx, dword [esp + 0x1c]
mov ebx, esi
mov esi, ebp
mov ebp, ecx
cmp ecx, dword [esp + 4]
jae 0x7203b0
jmp 0x7203a0
cmp ecx, 2
jne 0x720456
mov ecx, dword [esp]
mov dword [ecx + 4], eax
mov eax, 2
jmp 0x72045b
sete cl
mov edx, dword [esp]
movzx ecx, cl
mov dword [edx], ecx
mov dword [edx + 4], eax
mov dword [edx + 8], ebp
jmp 0x72045d
mov ecx, dword [esp]
mov dword [ecx], 1
mov dword [ecx + 4], eax
mov dword [ecx + 8], ebp
jmp 0x72045d
mov ecx, dword [esp]
xor eax, eax
mov dword [ecx], eax
add esp, 0x60
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, str.called__Option::unwrap____on_a__None__value_rustc_d5c2e9c342b358556da91d61ed4133f6f50fc0c3library_std_src_synconce.rs
mov edx, 0x2b
push 0x8c2790
call fcn.0070a0f0
add esp, 4
ud2
mov eax, dword [esp + 4]
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x10]
mov dword [esp + 0x14], 0x8c27c8
mov dword [esp + 0x18], 2
mov dword [esp + 0x24], 0
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x38], 0x4218c0
mov dword [esp + 0x3c], edx
mov edx, 0x8c284c
mov dword [esp + 0x40], 0x4262e0
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 2
mov dword [esp + 0x10], eax
call fcn.00709f70
ud2
Function at 0x7204e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x64
mov ebp, dword [edx]
mov ebx, dword [esp + 0x80]
mov esi, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
lea edi, [ebp - 1]
cmp edi, 2
jae 0x720518
cmp dword [edx + 0xc], ebx
jbe 0x720611
mov edx, dword [edx + 8]
cmp byte [edx + ebx], 0xc0
setge dl
jmp 0x720614
mov dword [esp + 8], eax
mov eax, dword [edx + 4]
mov dword [esp], ecx
mov ecx, dword [edx + 0xc]
mov edi, dword [edx + 0x14]
mov dword [esp + 4], eax
mov eax, dword [edx + 8]
mov dword [esp + 0x50], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x5c], edi
mov dword [esp + 0x48], ebp
mov ebp, dword [esp + 4]
mov eax, dword [edx + 0x10]
movzx edx, byte [edx + 0x18]
mov dword [esp + 4], edi
inc edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x4c], ebp
mov byte [esp + 0x60], dl
cmp ebx, ecx
jae 0x720580
nop word cs:[eax + eax]
nop dword [eax]
mov edx, dword [esp + 0xc]
cmp byte [edx + ebx], 0xc0
jl 0x720586
jmp 0x72061b
je 0x72061b
mov esi, eax
inc esi
cmovne ebp, esi
je 0x72063f
mov eax, dword [esp + 4]
mov edi, ecx
mov dword [esp + 0x30], ebp
cmp ecx, eax
mov dword [esp + 0x34], eax
jb 0x720658
cmp dword [esp + 0x10], ebp
jb 0x720658
mov eax, dword [esp + 0x84]
lea ecx, [esp + 0x18]
mov dword [esp + 0x58], ebp
mov edx, dword [eax]
push dword [eax + 0xc]
push dword [eax + 8]
lea ebx, [esp + 0x50]
push ebx
push dword [eax + 4]
call fcn.0061add0
add esp, 0x10
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
cmp ecx, 1
jne 0x7205ff
mov ebx, dword [esp + 0x20]
mov dword [esp + 8], eax
mov eax, ebp
mov ebp, esi
mov ecx, edi
mov esi, ebx
cmp ebx, ecx
jae 0x720580
jmp 0x720570
cmp ecx, 2
jne 0x720630
mov ecx, dword [esp]
mov dword [ecx + 4], eax
mov eax, 2
jmp 0x720635
sete dl
movzx edx, dl
mov dword [ecx], edx
jmp 0x720628
mov ecx, dword [esp]
mov eax, dword [esp + 8]
mov dword [ecx], 1
mov dword [ecx + 4], eax
mov dword [ecx + 8], esi
jmp 0x720637
mov ecx, dword [esp]
xor eax, eax
mov dword [ecx], eax
add esp, 0x64
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, str.called__Option::unwrap____on_a__None__value_rustc_d5c2e9c342b358556da91d61ed4133f6f50fc0c3library_std_src_synconce.rs
mov edx, 0x2b
push 0x8c2790
call fcn.0070a0f0
add esp, 4
ud2
lea eax, [esp + 0x30]
lea edx, [esp + 0x14]
lea ecx, [esp + 0x38]
mov dword [esp + 0x18], 0x8c27c8
mov dword [esp + 0x1c], 2
mov dword [esp + 0x28], 0
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], 0x4218c0
mov dword [esp + 0x40], edx
lea ecx, [esp + 0x18]
mov edx, 0x8c284c
mov dword [esp + 0x44], 0x4262e0
mov dword [esp + 0x24], 2
call fcn.00709f70
ud2
Function at 0x7206c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x60
mov esi, dword [edx]
mov edi, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
mov ebp, dword [esp + 0x74]
lea ebx, [esi - 1]
cmp ebx, 2
jae 0x7206f5
cmp dword [edx + 0xc], edi
jbe 0x7207ce
mov edx, dword [edx + 8]
cmp byte [edx + edi], 0xc0
setge dl
jmp 0x7207d1
mov dword [esp + 4], eax
mov eax, dword [edx + 8]
mov dword [esp], ecx
mov ebx, dword [edx + 0x10]
mov ecx, dword [edx + 0xc]
mov dword [esp + 0x4c], eax
mov dword [esp + 8], eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x44], esi
mov esi, dword [edx + 4]
mov eax, dword [edx + 0x14]
movzx edx, byte [edx + 0x18]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x48], esi
mov byte [esp + 0x5c], dl
mov edx, ebp
cmp edi, ecx
jae 0x720750
nop word cs:[eax + eax]
nop
mov ebx, dword [esp + 8]
cmp byte [ebx + edi], 0xc0
jl 0x720756
jmp 0x7207f0
je 0x7207f0
mov ebx, eax
xor edi, edi
sub ebx, 1
cmovae esi, ebx
jb 0x720805
mov edx, dword [esp + 0xc]
mov ebp, ecx
cmp ecx, esi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], esi
jb 0x720812
lea eax, [esi + 1]
cmp eax, edx
jb 0x720812
mov edx, dword [esp + 0x80]
lea ecx, [esp + 0x14]
lea eax, [esp + 0x44]
mov dword [esp + 0x58], esi
push eax
push dword [esp + 0x88]
call fcn.00611760
add esp, 8
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
cmp ecx, 1
jne 0x7207de
mov edi, dword [esp + 0x1c]
mov eax, esi
mov esi, ebx
mov ecx, ebp
mov dword [esp + 4], edi
cmp edi, ecx
jae 0x720750
jmp 0x720740
sete dl
movzx edx, dl
mov dword [ecx], edx
mov dword [ecx + 4], ebp
mov dword [ecx + 8], eax
jmp 0x72080a
cmp ecx, 2
mov ecx, dword [esp]
jne 0x720808
mov dword [ecx + 4], edx
mov edi, 2
jmp 0x720808
mov ecx, dword [esp]
mov eax, dword [esp + 4]
mov dword [ecx], 1
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
jmp 0x72080a
mov ecx, dword [esp]
mov dword [ecx], edi
add esp, 0x60
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 0x2c]
lea edx, [esp + 0x10]
lea ecx, [esp + 0x34]
mov dword [esp + 0x14], 0x8c27c8
mov dword [esp + 0x18], 2
mov dword [esp + 0x24], 0
mov dword [esp + 0x10], ebp
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], 0x4218c0
mov dword [esp + 0x3c], edx
lea ecx, [esp + 0x14]
mov edx, 0x8c284c
mov dword [esp + 0x40], 0x4262e0
mov dword [esp + 0x20], 2
call fcn.00709f70
ud2
Function at 0x721c80
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
push edi
push esi
sub esp, 0x20
cmp dword [ecx + 4], 0
mov esi, ecx
je 0x721cfa
lea ebx, [esi + 0xc]
mov dword [esp + 4], 0
lea eax, [esp + 4]
push 0
push eax
push 0
push ebx
call dword [sym.imp.kernel32.dll_InitOnceBeginInitialize]
cmp eax, 1
mov dword [esp], eax
jne 0x721d35
cmp dword [esp + 4], 0
je 0x721d1c
call dword [sym.imp.kernel32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x721d58
mov edi, eax
inc eax
mov dword [esi], eax
mov eax, dword [0x919838]
nop word cs:[eax + eax]
nop
mov dword [esi + 8], eax
lock cmpxchg dword [0x919838], esi
jne 0x721ce0
push 0
push 0
push ebx
call dword [sym.imp.kernel32.dll_InitOnceComplete]
jmp 0x721d2c
call dword [sym.imp.kernel32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esp], eax
je 0x721d9b
mov ecx, eax
xor eax, eax
inc ecx
lock cmpxchg dword [esi], ecx
jne 0x721d20
mov edi, dword [esp]
jmp 0x721d2c
mov edi, dword [esi]
jmp 0x721d2b
mov edi, eax
push dword [esp]
call dword [sym.imp.kernel32.dll_TlsFree]
dec edi
mov eax, edi
add esp, 0x20
pop esi
pop edi
pop ebx
ret
mov dword [esp + 8], 0
lea eax, [esp + 8]
mov ecx, esp
mov edx, 0x8c9e7c
push 0x8c9edc
push eax
call fcn.00721dd0
add esp, 8
ud2
push 0
push 4
push ebx
call dword [sym.imp.kernel32.dll_InitOnceComplete]
lea ecx, [esp + 8]
mov edx, 0x8c9ecc
mov dword [esp + 8], 0x8c9e94
mov dword [esp + 0xc], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], str.not_implementedC:Users_runneradmin.cargo_registry_srcindex.crates.io_6f17d22bba15001fwinit_0.28.6_srcplatform_implwindowsdrop_handler.rs
mov dword [esp + 0x14], 0
call fcn.00709f70
ud2
mov ecx, esp
lea edx, [esp + 8]
mov dword [esp + 8], 0x8c9e94
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], str.not_implementedC:Users_runneradmin.cargo_registry_srcindex.crates.io_6f17d22bba15001fwinit_0.28.6_srcplatform_implwindowsdrop_handler.rs
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.00721e30
ud2
Function at 0x7221d0
Capabilities:
Resolve dns

Disassembly:
push ebx
push edi
push esi
sub esp, 0x34
mov esi, ecx
lea ecx, [esp + 4]
push dword [esp + 0x44]
call fcn.004250e0
add esp, 4
mov eax, dword [esp + 4]
test eax, eax
je 0x722216
mov ecx, dword [0x8c8db0]
mov edx, dword [0x8c8db4]
cmp dword [esp + 8], 0
mov dword [esi + 8], edx
mov dword [esi + 4], ecx
mov dword [esi], 1
je 0x72229b
push eax
jmp 0x72228d
mov edi, dword [esp + 8]
mov ebx, dword [esp + 0xc]
xorps xmm0, xmm0
mov eax, esp
mov dword [esp], 0
lea ecx, [esp + 0x14]
movups xmmword [esp + 0x14], xmm0
movups xmmword [esp + 0x24], xmm0
mov dword [esp + 0x1c], 1
push eax
push ecx
push 0
push edi
call dword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x72226f
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov eax, 1
test ebx, ebx
mov dword [esi], eax
mov byte [edi], 0
jne 0x72228c
jmp 0x72229b
mov ecx, dword [esp]
movzx eax, word [esp + 0x48]
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov word [esi + 0xc], ax
xor eax, eax
test ebx, ebx
mov dword [esi], eax
mov byte [edi], 0
je 0x72229b
push edi
push 0
push dword [0x919820]
call dword [sym.imp.kernel32.dll_HeapFree]
add esp, 0x34
pop esi
pop edi
pop ebx
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.004047ba
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.004047ba
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.004047ba
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.004047ba
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.004047ba
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.004047ba
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.004047ba
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.004047ba
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