joyce8/EMBER2024-capa huggingface dataset:
Function at 0x524f70
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x18], esi
jne 0x52500d
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
cmp al, 0x6a
je 0x524f91
cmp al, 0x6b
jne 0x52500d
inc ecx
cmp al, 0x6b
jne 0x524fd5
add esi, 0xfffffffd
xor eax, eax
test esi, esi
jle 0x524fb2
nop
mov dl, byte [ecx]
inc ecx
cmp dl, 0xba
je 0x524fb2
cmp dl, 0xbb
jne 0x524fb8
inc eax
cmp eax, esi
jl 0x524fa0
sub esi, eax
test eax, eax
jne 0x524fd8
push 0
push 0
push 0x8a
push 0x80
push 4
call fcn.004bc0f0
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
add esi, 0xfffffffe
cmp byte [esi + ecx], 0xcc
je 0x524ffb
push 0
push 0
push 0x8b
push 0x80
push 4
call fcn.004bc0f0
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push esi
push ecx
push dword [esp + 0x10]
call fcn.005c32c0
add esp, 0xc
mov eax, esi
pop esi
ret
push 0
push 0
push 0x89
push 0x80
push 4
call fcn.004bc0f0
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
Function at 0x5298f0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.005c1580
push esi
mov esi, dword [esp + 0xc]
push esi
call fcn.004ca6c0
add esp, 4
cmp eax, 0x72
jne 0x529a5d
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
push ebp
push edi
mov edi, dword [esp + 0x2c]
mov ebp, eax
push edi
push esi
push dword [esp + 0x2c]
and eax, 1
shr ebp, 1
push dword [esp + 0x2c]
add eax, ebp
push eax
push dword [esp + 0x2c]
mov dword [esp + 0x24], eax
call fcn.004ed1f0
push eax
call fcn.00529690
add esp, 0x1c
test eax, eax
jne 0x529952
pop edi
pop ebp
pop esi
pop ecx
ret
push ebx
push 0x104
push str.cryptokdf_tls1_prf.c
push edi
call fcn.004c4080
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x529984
push eax
push eax
push 0x41
push 0x6f
push 0x34
call fcn.004bc0f0
add esp, 0x14
xor eax, eax
pop ebx
pop edi
pop ebp
pop esi
pop ecx
ret
mov eax, dword [esp + 0x1c]
push edi
push ebx
push dword [esp + 0x30]
add eax, ebp
push dword [esp + 0x30]
push dword [esp + 0x20]
push eax
call fcn.004b2d40
push eax
call fcn.00529690
add esp, 0x1c
test eax, eax
jne 0x5299c7
push 0x10a
push str.cryptokdf_tls1_prf.c
push edi
push ebx
call fcn.004c4170
add esp, 0x10
xor eax, eax
pop ebx
pop edi
pop ebp
pop esi
pop ecx
ret
xor edx, edx
test edi, edi
je 0x529a3e
cmp edi, 0x20
jb 0x529a1b
lea eax, [edi - 1]
lea ecx, [esi - 1]
add eax, ebx
add ecx, edi
cmp esi, eax
ja 0x5299e4
cmp ecx, ebx
jae 0x529a1b
mov ecx, edi
mov ebp, ebx
and ecx, 0xffffffe0
mov eax, esi
sub ebp, esi
nop
movups xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movups xmm1, xmmword [eax + ebp - 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
movups xmm1, xmmword [ebx + edx + 0x10]
add edx, 0x20
movups xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
cmp edx, ecx
jb 0x5299f0
cmp edx, edi
jae 0x529a3e
mov ebp, ebx
lea ecx, [edx + esi]
sub ebp, esi
mov esi, edi
sub esi, edx
nop word [eax + eax]
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub esi, 1
jne 0x529a30
push 0x10f
push str.cryptokdf_tls1_prf.c
push edi
push ebx
call fcn.004c4170
add esp, 0x10
mov eax, 1
pop ebx
pop edi
pop ebp
pop esi
pop ecx
ret
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push esi
call fcn.00529690
add esp, 0x1c
neg eax
sbb eax, eax
neg eax
pop esi
pop ecx
ret
Function at 0x566e70
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 0x10]
mov edx, 0x400
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, 0x80
mov esi, edx
mov ecx, edi
mov byte [ebp], 0
cmp dword [esp + 0x18], ecx
cmovle ecx, dword [esp + 0x18]
test eax, eax
cmovg esi, eax
cmp esi, edx
cmovg esi, edx
mov dword [esp + 0x14], esi
test ecx, ecx
jle 0x566ec5
mov ebx, dword [esp + 0x1c]
mov edx, ebp
sub ebx, ebp
mov esi, ecx
mov al, byte [ebx + edx]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub esi, 1
jne 0x566eb3
mov esi, dword [esp + 0x14]
movzx ebx, byte [ecx + ebp - 1]
cmp ecx, edi
jge 0x566eea
mov edx, ebp
movzx eax, byte [edx]
lea edx, [edx + 1]
add eax, ebx
movzx eax, al
movzx ebx, byte [eax + 0x6905d8]
mov byte [ecx + ebp], bl
inc ecx
cmp ecx, edi
jl 0x566ed0
mov ecx, dword [esp + 0x14]
lea ebx, [esi + 7]
sar ebx, 3
neg ecx
sub edi, ebx
and ecx, 7
movzx eax, byte [edi + ebp]
lea esi, [edi + ebp]
mov edx, 0xff
sar edx, cl
and edx, eax
movzx ecx, byte [edx + 0x6905d8]
mov byte [esi], cl
test edi, edi
je 0x566f38
nop dword [eax + eax]
movzx eax, byte [esi + ebx - 1]
lea esi, [esi - 1]
xor eax, ecx
movzx ecx, byte [eax + 0x6905d8]
mov byte [esi], cl
sub edi, 1
jne 0x566f20
lea esi, [ebp + 0xfc]
mov edi, 0x40
lea edx, [ebp + 0x7e]
movzx ecx, byte [edx + 1]
lea esi, [esi - 4]
movzx eax, byte [edx]
lea edx, [edx - 2]
shl ecx, 8
or ecx, eax
mov dword [esi + 4], ecx
sub edi, 1
jne 0x566f46
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x569160
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Encrypt data using salsa20 or chacha

Disassembly:
mov eax, 0x98
call fcn.005c1580
mov eax, dword [0x6dad44]
xor eax, esp
mov dword [esp + 0x94], eax
mov ecx, dword [esp + 0xa8]
push edi
mov edi, dword [esp + 0xa0]
mov dword [esp + 4], edi
mov eax, dword [ecx]
mov dword [esp + 0x68], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x6c], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x70], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x74], eax
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x78], eax
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x7c], eax
mov eax, dword [ecx + 0x18]
mov dword [esp + 0x80], eax
mov eax, dword [ecx + 0x1c]
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0x84], eax
mov dword [esp + 0x58], 0x61707865
mov dword [esp + 0x5c], 0x3320646e
mov eax, dword [ecx]
mov dword [esp + 0x88], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x8c], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x90], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x60], 0x79622d32
mov dword [esp + 0x64], 0x6b206574
test eax, eax
je 0x56935d
push ebx
mov ebx, dword [esp + 0xa8]
push ebp
push esi
nop
mov esi, 0x40
cmp eax, esi
cmovb esi, eax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x24], esi
push eax
call fcn.00569380
add esp, 8
xor eax, eax
test esi, esi
je 0x56932c
cmp esi, 0x20
jb 0x569304
lea edx, [edi - 1]
lea ecx, [esp + esi + 0x23]
add edx, esi
cmp edi, ecx
ja 0x56927c
lea ecx, [esp + 0x24]
cmp edx, ecx
jae 0x569304
lea ecx, [ebx - 1]
add ecx, esi
cmp edi, ecx
ja 0x569289
cmp edx, ebx
jae 0x569304
mov ebp, esi
lea edx, [edi + 0x10]
lea esi, [esp + 0x24]
mov ecx, ebx
sub ecx, esi
and ebp, 0xffffffe0
mov dword [esp + 0x14], ecx
mov ecx, edi
sub ecx, esi
mov dword [esp + 0x18], ecx
mov ecx, ebx
mov ebx, dword [esp + 0x14]
sub ecx, edi
mov esi, dword [esp + 0x18]
mov edi, ecx
mov dword [esp + 0x1c], ecx
nop word [eax + eax]
movups xmm0, xmmword [esp + eax + 0x24]
lea ecx, [ebx + eax]
movups xmm1, xmmword [esp + ecx + 0x24]
lea ecx, [esi + eax]
lea edx, [edx + 0x20]
pxor xmm1, xmm0
movups xmm0, xmmword [esp + eax + 0x34]
add eax, 0x20
movups xmmword [esp + ecx + 0x24], xmm1
movups xmm1, xmmword [edi + edx - 0x20]
pxor xmm1, xmm0
movups xmmword [edx - 0x20], xmm1
cmp eax, ebp
jb 0x5692c0
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0xb0]
cmp eax, esi
jae 0x56932c
lea ecx, [esp + 0x24]
mov ebp, edi
sub ebx, ecx
sub ebp, ecx
lea edx, [esp + 0x24]
add edx, eax
inc eax
mov cl, byte [ebx + edx]
xor cl, byte [edx]
mov byte [edx + ebp], cl
cmp eax, esi
jb 0x569312
mov ebx, dword [esp + 0xb0]
mov eax, dword [esp + 0xb4]
add edi, esi
inc dword [esp + 0x94]
sub eax, esi
add ebx, esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb4], eax
test eax, eax
jne 0x569230
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x98]
pop edi
xor ecx, esp
call fcn.005c0e20
add esp, 0x98
ret
Function at 0x5b52a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x98
call fcn.005c1580
mov eax, dword [0x6dad44]
xor eax, esp
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xa0]
push ebx
push edi
mov edi, dword [esp + 0xac]
xor ebx, ebx
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
sub ecx, edi
mov dword [esp + 0x10], ecx
cmp edx, edi
jb 0x5b5469
cmp edi, 0x40
ja 0x5b5469
lea eax, [esp + 0x1c]
neg eax
lea ecx, [esp + 0x1c]
and eax, 0x3f
add ecx, eax
lea eax, [edi + 0x100]
mov dword [esp + 0xc], ecx
cmp edx, eax
jbe 0x5b5319
mov ebx, edx
sub ebx, edi
sub ebx, 0x100
push ebp
push esi
push edi
xor esi, esi
mov dword [esp + 0x20], 0
push esi
push ecx
call fcn.005c3840
mov eax, dword [esp + 0xbc]
add esp, 0xc
xor ebp, ebp
cmp ebx, dword [eax + 0xc]
jae 0x5b53dc
mov ecx, ebx
sub ecx, dword [eax + 8]
mov dword [esp + 0x10], ecx
nop dword [eax + eax]
mov edi, dword [esp + 0xb0]
mov eax, ebx
xor eax, dword [esp + 0x18]
lea edx, [eax - 1]
not eax
shr eax, 0x1f
shr edx, 0x1f
and edx, eax
mov eax, dword [esp + 0xb0]
neg edx
xor ecx, dword [eax + 8]
mov eax, ebx
xor eax, dword [edi + 8]
or ecx, eax
mov eax, edx
or eax, dword [esp + 0x1c]
xor ecx, ebx
shr ecx, 0x1f
and edx, ebp
neg ecx
or esi, edx
mov edx, dword [esp + 0x14]
and ecx, eax
mov eax, dword [edi + 0x14]
mov edi, dword [esp + 0xb4]
mov dword [esp + 0x1c], ecx
mov al, byte [eax + ebx]
inc ebx
and al, cl
or byte [edx + ebp], al
inc ebp
mov ecx, ebp
mov eax, ebp
sub ecx, edi
xor eax, edi
xor ecx, edi
or ecx, eax
mov eax, dword [esp + 0xb0]
xor ecx, ebp
shr ecx, 0x1f
neg ecx
and ebp, ecx
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x10], ecx
cmp ebx, dword [eax + 0xc]
jb 0x5b5350
jmp 0x5b53e0
mov edx, dword [esp + 0x14]
xor ebp, ebp
test edi, edi
je 0x5b544b
mov eax, esi
mov ecx, esi
and eax, 0xffffffdf
and ecx, 0x20
mov bl, byte [eax + edx]
mov eax, esi
or eax, 0x20
inc esi
mov dl, byte [eax + edx]
lea eax, [ecx - 1]
not ecx
shr eax, 0x1f
shr ecx, 0x1f
and al, cl
neg al
movzx eax, al
mov dword [esp + 0x10], eax
not eax
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
and cl, dl
mov edx, dword [esp + 0x14]
and al, bl
or al, cl
mov ecx, dword [esp + 0x20]
mov byte [ecx + ebp], al
mov ecx, esi
sub ecx, edi
mov eax, esi
xor ecx, edi
xor eax, edi
or ecx, eax
inc ebp
xor ecx, esi
shr ecx, 0x1f
neg ecx
and esi, ecx
cmp ebp, edi
jb 0x5b53e6
pop esi
pop ebp
pop edi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.005c0e20
add esp, 0x98
ret
mov ecx, dword [esp + 0x9c]
xor eax, eax
pop edi
pop ebx
xor ecx, esp
call fcn.005c0e20
add esp, 0x98
ret

Function at 0x60aaf0
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x60ab17
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005f27c0
add esp, 4
or eax, 0xffffffff
jmp 0x60ab19
xor eax, eax
pop ebp
ret
Function at 0x60ab40
Capabilities:
Delete directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x60ab67
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005f27c0
add esp, 4
or eax, 0xffffffff
jmp 0x60ab69
xor eax, eax
pop ebp
ret

Function at 0x60ee75
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0060eba6

Function at 0x639160
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
call fcn.006269f0
mov byte [ebp - 1], al
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x63919e
cmp dword [ebp + 8], 0
je 0x63918c
lea eax, [ebp + 8]
push eax
call fcn.00639560
add esp, 4
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x63919e
mov eax, 4
jmp 0x6392ce
call fcn.006267c0
movzx edx, al
test edx, edx
jne 0x6391cc
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x6391bd
mov dword [ebp - 0xc], 4
jmp 0x6391c4
mov dword [ebp - 0xc], 3
mov eax, dword [ebp - 0xc]
jmp 0x6392ce
movzx eax, byte [ebp - 1]
test eax, eax
je 0x639275
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
push 0
push 0
lea ecx, [ebp - 0x34]
push ecx
push 0x6394c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
lea ecx, [ebp - 8]
call fcn.0062d766
lea ecx, [ebp - 8]
call fcn.0061cdd0
movzx edx, al
test edx, edx
jne 0x639237
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 8]
call fcn.005f1dfb
mov eax, dword [ebp - 0x10]
jmp 0x6392ce
push 0
push 0xffffffffffffffff
lea ecx, [ebp - 8]
call fcn.005d1530
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test eax, eax
je 0x639262
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 8]
call fcn.005f1dfb
mov eax, dword [ebp - 0x14]
jmp 0x6392ce
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 8]
call fcn.005f1dfb
mov eax, dword [ebp - 0x18]
jmp 0x6392ce
call fcn.00626940
movzx ecx, al
test ecx, ecx
jne 0x6392ae
mov edx, dword [ebp + 0x10]
or edx, 0x200000
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.00639460
add esp, 0x10
jmp 0x6392ce
call fcn.00626850
mov dword [ebp - 0x24], eax
lea ecx, [ebp + 0x10]
push ecx
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.00639460
add esp, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x6392e0
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
call fcn.006269f0
mov byte [ebp - 1], al
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x63931e
cmp dword [ebp + 8], 0
je 0x63930c
lea eax, [ebp + 8]
push eax
call fcn.00639580
add esp, 4
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x63931e
mov eax, 4
jmp 0x63944e
call fcn.006267c0
movzx edx, al
test edx, edx
jne 0x63934c
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x63933d
mov dword [ebp - 0xc], 4
jmp 0x639344
mov dword [ebp - 0xc], 3
mov eax, dword [ebp - 0xc]
jmp 0x63944e
movzx eax, byte [ebp - 1]
test eax, eax
je 0x6393f5
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
push 0
push 0
lea ecx, [ebp - 0x34]
push ecx
push 0x639510
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
lea ecx, [ebp - 8]
call fcn.0062d766
lea ecx, [ebp - 8]
call fcn.0061cdd0
movzx edx, al
test edx, edx
jne 0x6393b7
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 8]
call fcn.005f1dfb
mov eax, dword [ebp - 0x10]
jmp 0x63944e
push 0
push 0xffffffffffffffff
lea ecx, [ebp - 8]
call fcn.005d1530
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test eax, eax
je 0x6393e2
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 8]
call fcn.005f1dfb
mov eax, dword [ebp - 0x14]
jmp 0x63944e
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 8]
call fcn.005f1dfb
mov eax, dword [ebp - 0x18]
jmp 0x63944e
call fcn.00626940
movzx ecx, al
test ecx, ecx
jne 0x63942e
mov edx, dword [ebp + 0x10]
or edx, 0x200000
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.00639490
add esp, 0x10
jmp 0x63944e
call fcn.00626850
mov dword [ebp - 0x24], eax
lea ecx, [ebp + 0x10]
push ecx
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.00639490
add esp, 0x10
mov esp, ebp
pop ebp
ret

Function at 0x63c778
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0063bdce

Function at 0x63c783
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0063c109
Function at 0x401017
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, edx
push edi
mov edi, ecx
test esi, esi
je 0x4010a3
push ebx
mov ebx, dword [ebp + 8]
cmp byte [esi], 0
je 0x4010a2
push 0x5c
push esi
call fcn.004088b0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4010a2
push edi
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40107a
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x401070
test ebx, ebx
je 0x401070
push edi
push str.CreateDirectory___s_
push 5
call ebx
add esp, 0xc
jmp 0x401077
push edi
push 1
call ebx
pop ecx
pop ecx
mov eax, dword [ebp - 4]
test al, 0x10
jne 0x40109a
push 0xb7
call dword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
je 0x40109a
push edi
push str.CreateDirectory___s_
push 5
call ebx
add esp, 0xc
mov byte [esi], 0x5c
add esi, 1
jne 0x401029
pop ebx
xor eax, eax
pop edi
inc eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40193d
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, ecx
mov dword [ebp - 4], edx
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 - 0xc], eax
call esi
push str.PySys_GetObject
push edi
mov dword [ebp - 0x10], eax
call esi
push str.Py_OptimizeFlag
push edi
mov dword [ebp - 0x14], eax
call esi
cmp dword [0x46df48], 0
mov ecx, eax
jne 0x40199e
xor eax, eax
jmp 0x4019ea
test ebx, ebx
je 0x4019e7
mov edx, dword [ebp - 8]
test edx, edx
je 0x4019e7
mov edi, dword [ebp - 0xc]
test edi, edi
je 0x4019e7
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x4019e7
cmp dword [ebp - 0x14], 0
je 0x4019e7
test ecx, ecx
je 0x4019e7
xor eax, eax
cmp dword [ebp - 4], eax
push 0x46e6c0
setne al
mov dword [ecx], eax
call edx
pop ecx
call ebx
mov edx, dword [ebp - 4]
mov ecx, esi
call fcn.004017ab
mov esi, eax
call edi
mov eax, esi
jmp 0x4019ea
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401e5a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x46c004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x268]
push 0x46e9e0
push str.PYTHONHOME_s
push eax
mov dword [ebp - 0x26c], 0x104
call esi
lea eax, [ebp - 0x268]
push eax
call fcn.00410a9a
add esp, 0x10
mov ebx, 0x46e480
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
jne 0x401f6b
push 0x465aec
push dword [0x46e9b8]
lea eax, [ebp - 0x54]
push dword [0x46e8d0]
push str.SOFTWAREPythonPythonCore_d._d_sInstallPath
push eax
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [ebp - 0x26c]
add esp, 0x14
push eax
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x54]
push eax
push 0x80000001
call esi
test eax, eax
je 0x401f18
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x54]
push eax
push 0x80000002
call esi
test eax, eax
je 0x401f18
xor eax, eax
jmp 0x401f6b
push edi
lea edi, [ebp - 0x158]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401f20
mov ax, word [0x465ae8]
mov esi, ebx
mov word [edi], ax
mov al, byte [ebx]
inc ebx
test al, al
jne 0x401f33
lea edi, [ebp - 0x158]
sub ebx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401f43
mov ecx, ebx
lea eax, [ebp - 0x158]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 8
mov ecx, ebx
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004079b2
mov esp, ebp
pop ebp
ret
Function at 0x401f7b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov edi, ecx
push str.PyImport_ImportModule
push edi
call esi
push str.PyObject_SetAttrString
push edi
mov dword [ebp - 0x18], eax
call esi
push str.PyObject_GetAttrString
push edi
mov dword [ebp - 8], eax
call esi
push str.PyCFunction_New
push edi
mov ebx, 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
push str.PyLong_FromVoidPtr
push edi
mov dword [ebp - 0x14], eax
call esi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40208b
test ebx, ebx
je 0x40208b
cmp dword [ebp - 8], 0
je 0x40208b
cmp dword [ebp - 4], 0
je 0x40208b
cmp dword [ebp - 0xc], 0
je 0x40208b
cmp dword [ebp - 0x10], 0
je 0x40208b
cmp dword [ebp - 0x14], 0
je 0x40208b
push str.builtins
call eax
mov edi, eax
pop ecx
test edi, edi
je 0x402067
push str.ValueError
push edi
call ebx
push str.OSError
push edi
mov dword [0x46e584], eax
call ebx
add esp, 0x10
mov dword [0x46e8cc], eax
mov esi, 0x46ca70
push 6
pop ebx
push 0
push esi
call dword [ebp - 4]
push eax
push dword [esi]
push edi
call dword [ebp - 8]
add esp, 0x14
add esi, 0x10
sub ebx, 1
jne 0x40204f
mov eax, dword [ebp - 0xc]
mov dword [0x46e9dc], eax
mov eax, dword [ebp - 0x10]
mov dword [0x46fc80], eax
mov eax, dword [ebp - 0x14]
mov dword [0x46e8c8], eax
mov eax, dword [ebp - 0x1c]
mov dword [0x46e9b0], eax
xor eax, eax
jmp 0x40208e
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret