joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4052b0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x40a6c8]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x4052cf
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x40a6c4], 1
mov byte [0x40a6c0], bl
jne 0x405329
mov ecx, dword [0x40aa48]
test ecx, ecx
je 0x405317
mov esi, dword [0x40aa44]
sub esi, 4
cmp esi, ecx
jb 0x405317
mov eax, dword [esi]
test eax, eax
je 0x405310
call eax
mov ecx, dword [0x40aa48]
sub esi, 4
cmp esi, ecx
jae 0x405302
push 0x407014
push 0x407010
call fcn.00405360
add esp, 8
push 0x40701c
push 0x407018
call fcn.00405360
add esp, 8
test ebx, ebx
jne 0x405350
push ebp
mov dword [0x40a6c8], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x3c1b6e19
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e3d0
mov ecx, ebx
nop
nop
nop
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
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x76ab54ea
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x22773d09
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
mov ecx, 0x401033f6
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x40216b
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
call main
jmp 0x402175
push 0x14
push 0x411788
call fcn.00405300
call main
movzx esi, ax
push 2
call main
pop ecx
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x4021a3
xor ebx, ebx
jmp 0x4021d6
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x40219f
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x40219f
xor ebx, ebx
cmp dword [eax + 0x400074], 0xe
jbe 0x4021d6
cmp dword [eax + 0x4000e8], ebx
setne bl
mov dword [ebp - 0x1c], ebx
call fcn.004048ef
test eax, eax
jne 0x4021ea
push 0x1c
call main
pop ecx
call fcn.00403b58
test eax, eax
jne 0x4021fb
push 0x10
call main
pop ecx
call fcn.004051cc
and dword [ebp - 4], 0
call fcn.00404904
test eax, eax
jns 0x402215
push 0x1b
call main
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x4162e8], eax
call main
mov dword [0x414430], eax
call main
test eax, eax
jns 0x40223b
push 8
call main
pop ecx
call fcn.00404de7
test eax, eax
jns 0x40224c
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x40225f
push eax
call main
pop ecx
call fcn.00405299
push esi
push eax
push 0
push 0x400000
call main
mov esi, eax
mov dword [ebp - 0x24], esi
test ebx, ebx
jne 0x402281
push esi
call main
call fcn.00404663
jmp 0x4022b6
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
call fcn.00405345
ret

Function at 0x40af3c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x40af4b
pop dword [ebp - 0x24]
mov eax, 0x850af339
sub eax, 0x84ca43ee
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0xc0ad8822
add dword [ebp - 0x34], 0x8da4bd29
mov dword [ebp - 0x30], 0x7963ff95
sub dword [ebp - 0x30], 0x4730b350
mov dword [ebp - 0x2c], 0x1daef033
add dword [ebp - 0x2c], 0x2e9d53fb
mov dword [ebp - 0x28], 0x5c72ad00
sub dword [ebp - 0x28], 0x5c72ad00
lea eax, [ebp - 0x34]
push eax
mov eax, 0x395c1f90
sub eax, 0x391b4f5c
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x4aae5364
add dword [ebp - 0x34], 0x29c415f2
mov dword [ebp - 0x30], 0xc2e4308
add dword [ebp - 0x30], 0x353e1e6d
mov dword [ebp - 0x2c], 0xd5f64ca5
add dword [ebp - 0x2c], 0x8d791fc7
mov dword [ebp - 0x28], 0x93f35bb3
add dword [ebp - 0x28], 0x6c0ca44d
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0x2b76fa9a
add eax, 0xd4c9d596
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x38825
push 0
call eax
mov ecx, 0x340f8434
add ecx, 0xcbf0c0a6
mov esi, eax
mov edx, 0x15e54306
add edx, 0xea5cccfa
add edx, dword [ebp - 0x24]
mov ebx, 0xa816dffa
mov edi, dword [edx]
add dword [ebp - 0x10], edx
xor edi, ebx
mov dword [ebp - 0x14], 0x646c3550
mov dword [esi], edi
add dword [ebp - 0xc], ebx
add esi, 0x6f5bbf0
add esi, 0xf90a4414
add edx, 4
loop 0x40b067
add eax, 0x7d49513b
add eax, 0x82b7b500
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x20ba5122
add ecx, 0xdf85aede
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x407730
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.XdylwLzm
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407752
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407759
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407748
mov eax, 1
add ebx, ebx
jne 0x40776b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407760
jne 0x40777c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407760
xor ecx, ecx
sub eax, 3
jb 0x407790
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x407802
mov ebp, eax
add ebx, ebx
jne 0x40779b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4077a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4077cc
inc ecx
add ebx, ebx
jne 0x4077b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4077ad
jne 0x4077c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4077ad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4077ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4077dd
jmp 0x40774e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4077ec
add edi, ecx
jmp 0x40774e
pop esi
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x40784b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7064]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x407809
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x706c]
or eax, eax
je 0x407845
mov dword [ebx], eax
add ebx, 4
jmp 0x407826
call dword [esi + 0x7068]
mov ebp, dword [esi + 0x7070]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40787f
sub esp, 0xffffff80
jmp section.rUGnmMhn
Function at 0x408890
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
jmp 0x4088aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4088b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4088a0
mov eax, 1
add ebx, ebx
jne 0x4088c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4088b8
jne 0x4088d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4088b8
xor ecx, ecx
sub eax, 3
jb 0x4088e8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40895a
mov ebp, eax
add ebx, ebx
jne 0x4088f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x408900
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x408924
inc ecx
add ebx, ebx
jne 0x408910
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x408905
jne 0x408921
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x408905
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x408944
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x408935
jmp 0x4088a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x408944
add edi, ecx
jmp 0x4088a6
pop esi
mov edi, esi
mov ecx, 0x1f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x408962
cmp byte [edi], 0
jne 0x408962
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x408967
lea edi, [esi + 0x6000]
mov eax, dword [edi]
or eax, eax
je 0x4089df
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa804]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa898]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x408994
mov ecx, edi
jns 0x4089c3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa8a0]
or eax, eax
je 0x4089d9
mov dword [ebx], eax
add ebx, 4
jmp 0x4089b1
call dword [esi + 0xa89c]
mov ebp, dword [esi + 0xa8a4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x408a13
sub esp, 0xffffff80
jmp 0x401610
Function at 0x402c94
Capabilities:
Copy file

Disassembly:
push ebp
lea ebp, [esp - 4]
enter 0x104, 0
push ebx
push ecx
push edx
mov dword [ebp - 4], esp
mov eax, 0
mov dword [0x412dbf], eax
mov eax, 0
mov dword [0x411be5], eax
inc dword [0x412dbf]
cmp dword [0x412dbf], 3
jle 0x402ccb
jmp 0x402e71
mov edi, 0x411ced
mov esi, 0x40cb99
call fcn.00401940
push 0x40cba5
call fcn.00409060
mov edi, 0x40daad
mov esi, 0x40cbb5
call fcn.00401940
call fcn.00406c60
push 0x40da59
push 0x411be5
push 4
call fcn.00401720
cmp dword [0x411be5], 0x4030201
jne 0x402d26
push 0x40cbc0
call fcn.00402e90
mov byte [0x40da58], 1
mov al, byte [0x40da58]
test al, al
je 0x402e5b
mov dword [0x411be9], 2
push 0x411a77
push 0x40cbeb
call fcn.00401e60
push 0x411a77
call fcn.00401ee0
call fcn.00402760
test eax, eax
je 0x402d69
call fcn.00406a30
jmp 0x402cad
push 0x411a77
call fcn.00404fe0
test al, al
jne 0x402d95
push 0x411a77
call fcn.00405570
mov dword [0x411be9], eax
call fcn.00404f40
push 0x411a77
call fcn.00401d90
mov eax, 3
sub eax, dword [0x411be9]
mov dword [0x411be9], eax
cmp dword [0x411be9], 1
jne 0x402dbd
mov edi, 0x411ded
mov esi, 0x40cbf8
call fcn.00401940
cmp dword [0x411be9], 2
jne 0x402dd5
mov edi, 0x411ded
mov esi, 0x40cc01
call fcn.00401940
mov esi, 0x411ded
lea edi, [ebp - 0x104]
call fcn.00401b30
mov esi, 0x411ced
lea edi, [ebp - 0x104]
call fcn.00401af0
mov edi, 0x411bed
lea esi, [ebp - 0x104]
call fcn.00401940
push 0
push 0x411cee
push 0x411bee
call sub.kernel32.dll_CopyFileA
test al, al
je 0x402e59
push 0x411a77
push 0x40cc0a
call fcn.00401e60
push 0x411a77
call fcn.00401210
push 0x411a77
push dword [0x411be9]
push 0
call fcn.004069f0
call fcn.004069d0
push 0x411a77
call fcn.00401d90
jmp 0x402cad
jmp 0x402e71
push 0x40cc17
push 0x40cc24
call fcn.00402f20
push 0
call fcn.00402ef0
push 0x40cc25
call fcn.00402e90
pop edx
pop ecx
pop ebx
leave
pop ebp
ret
Function at 0x402f20
Capabilities:
Create process on windows

Disassembly:
enter 0x55c, 1
push ebx
push ecx
push edx
mov esi, dword [ebp + 0xc]
lea edi, [ebp - 0x108]
call fcn.00401940
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x208]
call fcn.00401940
mov dword [ebp - 8], esp
lea eax, [ebp - 0x360]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.004030b0
lea edi, [ebp - 0x108]
lea esi, [ebp - 0x360]
call fcn.00401940
lea eax, [ebp - 0x360]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.004030b0
lea edi, [ebp - 0x208]
lea esi, [ebp - 0x360]
call fcn.00401940
lea eax, [ebp - 0x250]
push eax
push 0x44
call fcn.00403090
mov dword [ebp - 0x250], 0x44
mov dword [ebp - 0x20c], 0x40cc7e
lea esi, [ebp - 0x108]
lea edi, [ebp - 0x560]
call fcn.00401b30
mov esi, 0x40cc64
lea edi, [ebp - 0x560]
call fcn.00401af0
lea esi, [ebp - 0x560]
lea edi, [ebp - 0x460]
call fcn.00401b30
lea esi, [ebp - 0x208]
lea edi, [ebp - 0x460]
call fcn.00401af0
lea esi, [ebp - 0x460]
lea edi, [ebp - 0x360]
call fcn.00401b30
mov esi, 0x40cc66
lea edi, [ebp - 0x360]
call fcn.00401af0
mov edi, 0x40cc7d
lea esi, [ebp - 0x360]
call fcn.00401940
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x250]
push eax
push 0
push 0
push 0x220
push 0
push 0
push 0
push 0x40cc7e
push 0
call sub.kernel32.dll_CreateProcessA
test al, al
jne 0x40307e
cmp dword [0x40f728], 1
jg 0x40306e
push 0
push 0x40cc68
push dword [ebp - 0x20c]
push 0
call sub.user32.dll_MessageBoxA
cmp dword [0x40f728], 0
jne 0x40307e
push 0
call fcn.00402ef0
pop edx
pop ecx
pop ebx
leave
ret 8
Function at 0x407320
Capabilities:
Encode data using xor

Disassembly:
enter 0x10, 1
push ebx
push ecx
push edx
mov dword [ebp - 8], esp
mov eax, 0
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
imul eax, eax, 8
test eax, eax
jle 0x40736a
mov dword [ebp - 0x14], eax
mov eax, 0
mov dword [ebp - 0x10], eax
inc dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x10]
movzx ebx, byte [ebx + 0x40da58]
mov edi, dword [ebp + 0xc]
movzx ecx, byte [edi]
xor ecx, ebx
mov byte [eax], cl
inc dword [ebp + 0xc]
dec dword [ebp - 0x14]
jne 0x407347
mov eax, dword [ebp - 0xc]
pop edx
pop ecx
pop ebx
leave
ret 8
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.00420bb0
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.00420bb0
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.00420bb0
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.00420bb0
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.00420bb0
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.00420bb0
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.00420bb0
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.00420bb0
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