joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402830
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x24
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [esp + 4], 0x4050d4
mov dword [ebp - 0x10], eax
mov esi, eax
mov dword [esp], 0
call dword [sym.imp.ucrtbase.dll_setlocale]
cmp ebx, 1
jle 0x4028c2
lea edi, [esi + 4]
mov esi, 1
jmp 0x40287a
add esi, 1
add edi, 4
cmp ebx, esi
je 0x4028c2
mov eax, dword [edi]
cmp word [eax], 0x2f
jne 0x4028e0
test byte [section..data], 1
je 0x402870
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.command_line_switch__s_not_supported_n
add esi, 1
add edi, 4
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x405188
mov dword [esp + 4], 0x404000
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
cmp ebx, esi
jne 0x40287a
mov eax, 0x65
call sym._output_error
mov eax, 1
add esp, 0x24
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll__wcsicmp]
mov dword [esp + 4], str.quit
mov dword [ebp - 0x14], eax
call eax
test eax, eax
je 0x40290f
mov dword [esp + 4], str.exit
mov eax, dword [edi]
mov dword [esp], eax
mov eax, dword [ebp - 0x14]
call eax
test eax, eax
jne 0x402920
add esp, 0x24
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], str.class
mov eax, dword [edi]
mov dword [esp], eax
mov eax, dword [ebp - 0x14]
call eax
test eax, eax
je 0x40294c
mov dword [esp + 4], str.context
mov eax, dword [edi]
mov dword [esp], eax
mov eax, dword [ebp - 0x14]
call eax
test eax, eax
jne 0x40298d
test byte [section..data], 1
je 0x4028c2
mov eax, dword [edi]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.command__s_not_supported_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x405188
mov dword [esp + 4], 0x404000
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x4028c2
mov dword [esp + 4], str.path
mov eax, dword [edi]
mov dword [esp], eax
mov eax, dword [ebp - 0x14]
call eax
test eax, eax
jne 0x402a0a
add esi, 1
cmp ebx, esi
jle 0x402a60
mov eax, dword [ebp - 0x10]
mov edi, dword [eax + esi*4]
lea eax, [esi + 1]
cmp ebx, eax
jle 0x4028c2
lea ecx, [eax*4]
mov dword [esp + 4], 0x405148
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + eax*4]
mov dword [esp], eax
mov eax, dword [ebp - 0x14]
call eax
test eax, eax
jne 0x4028c2
lea edx, [esi + 2]
cmp ebx, edx
jle 0x4028c2
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
mov edx, dword [eax + ecx + 4]
add esp, 0x24
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
jmp sym._query_prop
mov eax, dword [edi]
mov dword [ebp - 0x1c], ebx
xor edi, edi
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x18], esi
mov esi, eax
mov eax, dword [edi*8 + 0x405400]
mov dword [esp], esi
mov dword [esp + 4], eax
call ebx
test eax, eax
je 0x402a49
add edi, 1
cmp edi, 0xb
jne 0x402a19
mov eax, 0x66
call sym._output_error
mov eax, 1
jmp 0x4028d1
mov edi, dword [edi*8 + 0x405404]
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
test edi, edi
jne 0x4029b4
jmp 0x402a35
mov eax, 0x68
call sym._output_error
mov eax, 1
jmp 0x4028d1
Function at 0x402ac0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x402b18
cmp byte [esi + ebx - 1], 0xa
je 0x402aec
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4070a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x403140
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call sym.___wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x403318
mov edi, dword [0x4070a4]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], edi
je 0x403227
test byte [0x404018], 8
jne 0x4032c0
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x404028], 8
jne 0x403280
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x4031c9
cmp esi, 3
jbe 0x403238
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x4031da
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x405668]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x4031c9
mov dword [esp], 0x404028
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x4031a0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x4031a0
mov dword [esp], 0x404018
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x40318b
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x403193
mov eax, 0xffffffff
jmp 0x403227

Function at 0x403390
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
Function at 0x4069d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push eax
push 0x40
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0x4069f3
mov eax, 1
jmp 0x406afe
mov edx, dword [ebp + 8]
movzx eax, word [edx]
cmp eax, 0x5a4d
jne 0x406a09
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x3c], 0
jne 0x406a13
mov eax, 2
jmp 0x406afe
mov edx, dword [ebp + 0x10]
push edx
push 0xf8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x40
push edx
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0x406a3e
mov eax, 1
jmp 0x406afe
mov eax, dword [ebp + 8]
cmp dword [eax + 0x40], 0x4550
jne 0x406a64
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x58]
cmp edx, 0x10b
jne 0x406a64
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x46]
test ecx, ecx
jne 0x406a6e
mov eax, 2
jmp 0x406afe
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x46]
imul eax, eax, 0x28
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x140], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x140]
push eax
call fcn.004133f0
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x138], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x138], 0
jne 0x406aaf
mov eax, 3
jmp 0x406afe
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x54]
lea ecx, [ecx + eax + 0x18]
mov edx, dword [ebp + 8]
mov dword [edx + 0x13c], ecx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x140]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x13c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x138]
push eax
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0x406afc
mov eax, 1
jmp 0x406afe
xor eax, eax
pop ebp
ret

Function at 0x407490
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x4074a6
xor eax, eax
jmp 0x4074e6
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx], 0x4550
jne 0x4074cb
mov edx, dword [ebp - 4]
movzx eax, word [edx + 0x18]
cmp eax, 0x10b
je 0x4074cf
xor eax, eax
jmp 0x4074e6
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x78]
push ecx
call fcn.004074f0
add esp, 0xc
mov esp, ebp
pop ebp
ret

Function at 0x413ff0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x414020
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x414033
xor eax, eax
jmp 0x4140f1
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x41404e
xor eax, eax
jmp 0x4140f1
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0x4550
je 0x41406c
xor eax, eax
jmp 0x4140f1
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x78]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x1c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x24]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1c], 0
jmp 0x4140ae
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x18]
jae 0x4140ef
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
push edx
call fcn.00413410
add esp, 8
test eax, eax
jne 0x4140ed
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x4140f1
jmp 0x4140a5
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x45706d
Capabilities:
Check for vm using instruction vpcext

Disassembly:
mov ebp, 0x42ab4461
pop ebx
fisubr word [ecx + 0x2a976b2a]
invalid

Function at 0x5625d3
Capabilities:
Encode data using xor

Disassembly:
mov dh, 0x51
jbe 0x56261d
lodsb al, byte [esi]
salc
cmp eax, edx
push 0x51
bound esi, qword [edx + 0x24]
push cs
test dword [esi + 0x7b3fa035], ecx
fld dword [ebx + 0x42e7a1cd]
popal
invalid
movsd dword es:[edi], dword [esi]
imul edx, dword [edi - 0x66], 0x5f
mov dh, 0x26
invalid

Function at 0x5affeb
Capabilities:
Encode data using xor

Disassembly:
pop eax
mov ebp, 0x3f0422e3
movsd dword es:[edi], dword [esi]
xchg byte [ecx + eax - 0x29], cl
loopne 0x5b003b
mov dh, 0x1c
iretd
jle 0x5b0084
pop ds
lodsb al, byte [esi]
or eax, 0x2c30a260
cld
cmp eax, 0xd070d8a4
int 0xb0
xchg ebp, eax
jmp 0x5b0065
push eax
xchg ch, cl
inc ecx
movsb byte es:[edi], byte [esi]
dec ebp
add eax, 0xb0101ba5
jo 0x5b00c5
xor byte [ecx], ah
pop ebp
pop ebp
xor byte [eax + 0x55], bh
jge 0x5b0085
xchg esi, eax
jge 0x5b0058
xchg dword [eax + esi*4], esi
arpl word [edx + 0x5ccc70b7], si
mov dl, 0xb7
jo 0x5b0028
pop esp
in eax, 0xbd
mov esp, dword [eax - 0x6b]
pushal
xchg ebp, eax
aaa
sub esp, 0x342600d6
sal byte [esi + 0x45], 1
salc
add byte [esi], ah
xor al, 0xd0
jbe 0x5b00b1
in eax, 0xe5
inc edx
jne 0x5b0025
add esp, dword [esi - 0x61a8927c]
and al, 0xdf
push edi
sbb al, 0xea
push edi
adc eax, 0x2b789dca
invalid
xor al, 0x24
lodsb al, byte [esi]
and al, 0xac
cmpsb byte [esi], byte es:[edi]
jl 0x5b0060
out 0xd6, eax
invalid
and byte [edi], cl
sti
in eax, 0xa3
les edx, [ebx - 0x4e9fed81]
mov dword [ecx - 0x38], ebx
clc
test al, 0xe2
not byte [ecx]
xor eax, 0x24e15a3e
mov edx, 0xeecb8dd1
or ch, byte [esp + ebp*4]
or ch, byte [esp + ebp*4]
add dword cs:[esi], edi
invalid
pop ebp
adc byte [ecx + 3], ch
loopne 0x5b0093
test ebx, esi
adc byte [edi], cl
arpl word [0x86c5d493], ax
cmp dword [ebx - 0x54], 0x5f
add bh, byte [ecx - 0x6ae0c162]
jecxz 0x5b0144
inc eax
add ah, ch
xchg edi, eax
xor byte [esi - 0x5a], cl
cmp eax, 0x5036c744
inc ecx
jmp 0x5b0109
dec edx
int1
retf 0x545d
popal
in eax, dx
and dword [ebx + eax*2 + 0x3c330def], ebx
sbb byte ds:[ecx - 0x20], al
push edx
dec esi
adc al, 0x31
aad 5
cli
aas
xchg ebp, eax
invalid
popfd
sub al, 0xac
lodsb al, byte [esi]
push eax
out 0xb1, eax
push ecx
leave
push eax
xor dword [ecx], eax
xor ebp, dword [esi - 0x2e5e62bf]
not ecx
aad 0xa3
adc edx, dword [ecx]
test dword [ebp - 0x4b406e53], ebx
imul eax, dword [ecx + 4], 0x714e03c0
sal dword [esi + esi], 0x40
push ss
push ecx
adc dl, cl
test bl, 0xb1
loope 0x5b0146
mov ah, dh
movsd dword es:[edi], dword [esi]
jmp 0x5b011c
Function at 0x5d3497
Capabilities:
Encode data using xor

Disassembly:
pushfd
push cs
cmp eax, dword [esi]
dec eax
adc dl, bh
inc eax
retf
mov eax, 0x1747e6a2
sbb bh, byte [edi + 0x14ba98b5]
push 0xc8e123d3
push ecx
or ah, byte [ebx - 0x61a4f5c]
push esi
invalid
leave
stosd dword es:[edi], eax
inc eax
nop
jbe 0x5d3463
mov eax, ebp
jno 0x5d34f9
mov eax, dword [0x9ef72c46]
inc esi
sub al, 0xf7
sahf
jno 0x5d3452
call 0x6332b79b
jmp 0x25b85e02
jns 0x5d34a2
inc eax
cmpsb byte [esi], byte es:[edi]
mov esi, 0x61106652
fld dword [ebx + 0x3191476e]
loopne 0x5d3571
cmpsd dword [esi], dword es:[edi]
out 0xbd, al
cmp esi, dword [ebx]
salc
mov ch, 0x17
insd dword es:[edi], dx
xchg ebx, eax
frstor dword [eax + 0x1a]
mov byte gs:[edx + esi*2], ch
add eax, 0x25515a26
push cs
stc
invalid
shr ebp, 0xfb
out dx, eax
invalid

Function at 0x65038e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x6582c0
cmp edx, dword [eax]
je 0x6503b0
add eax, 8
inc ecx
cmp eax, 0x658350
jl 0x6503a1
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x6582c0]
jne 0x6504de
mov eax, dword [0xa5b93c]
cmp eax, 1
je 0x6504b8
test eax, eax
jne 0x6503e1
cmp dword [0x658204], 1
je 0x6504b8
cmp edx, 0xfc
je 0x6504de
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x650418
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00650aa0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00650cd0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x65045b
lea eax, [ebp - 0x1a4]
push eax
call fcn.00650cd0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x654b38
push edi
call fcn.006524a0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00650aa0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00650ab0
lea eax, [ebp - 0xa0]
push 0x654b18
push eax
call fcn.00650ab0
push dword [esi + 0x6582c4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00650ab0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00652414
add esp, 0x2c
pop edi
jmp 0x6504de
lea eax, [ebp + 8]
lea esi, [esi + 0x6582c4]
push 0
push eax
push dword [esi]
call fcn.00650cd0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x415db0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10054
call fcn.00431580
mov eax, dword [0x45e5fc]
xor eax, esp
mov dword [esp + 0x10050], eax
mov eax, dword [esp + 0x10058]
xor ecx, ecx
push 0x28
push eax
lea eax, [esp + 8]
mov word [esp + 0x58], cx
push eax
mov word [esp + 0xc], cx
call fcn.0042cd10
add esp, 0xc
lea eax, [esp + 0x50]
push 0x10000
push eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x415e2d
cmp eax, 0x10000
ja 0x415e2d
lea eax, [esp + 0x50]
push eax
call fcn.0043dd00
add esp, 4
mov ecx, dword [esp + 0x10050]
xor ecx, esp
call fcn.0043156c
add esp, 0x10054
ret
mov ecx, dword [esp + 0x10050]
xor eax, eax
xor ecx, esp
call fcn.0043156c
add esp, 0x10054
ret

Function at 0x415ed0
Capabilities:
Set environment variable

Disassembly:
sub esp, 0x54
mov eax, dword [0x45e5fc]
xor eax, esp
mov dword [esp + 0x50], eax
push esi
push str.PATH
call fcn.00415db0
mov dword [0x45fb04], eax
xor eax, eax
push 0x28
mov word [esp + 0xc], ax
lea eax, [esp + 0xc]
push str.PATH
push eax
call fcn.0042cd10
add esp, 0x10
lea eax, [esp + 4]
push 0x44baf8
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push str.PYTHONHOME
call fcn.00415db0
push 1
mov dword [0x45fb08], eax
call fcn.0042dd50
mov esi, eax
xor eax, eax
push 0x28
mov word [esp + 0x10], ax
lea eax, [esp + 0x10]
push str.PYTHONHOME
push eax
call fcn.0042cd10
add esp, 0x14
lea eax, [esp + 4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 1
call fcn.0042dd50
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
mov eax, dword [sym.imp.python38.dll__Py_path_config]
mov ecx, dword [esp + 0x54]
pop esi
xor ecx, esp
mov dword [eax + 0x18], 1
call fcn.0043156c
add esp, 0x54
ret
Function at 0x4163d0
Capabilities:
Set environment variable

Disassembly:
sub esp, 0x58
mov eax, dword [0x45e5fc]
xor eax, esp
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x5c]
push ebx
mov ebx, dword [esp + 0x64]
push ebp
mov ebp, dword [esp + 0x6c]
push esi
push edi
mov dword [esp + 0x10], eax
call fcn.00422bb0
push str.environ
push eax
call dword [sym.imp.python38.dll_PyObject_GetAttrString]
push ebx
mov esi, eax
call dword [sym.imp.python38.dll_PyUnicode_FromString]
add esp, 0xc
mov edi, eax
xor eax, eax
mov word [esp + 0x14], ax
lea eax, [esp + 0x14]
push 0x28
push ebx
push eax
call fcn.0042cd10
add esp, 0xc
lea eax, [esp + 0x14]
test ebp, ebp
je 0x416475
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0xffffffffffffffff
push ebp
call sub.python38.dll_PyUnicode_FromWideChar
mov ebx, eax
push ebx
push edi
push esi
call dword [sym.imp.python38.dll_PyObject_SetItem]
add esp, 0x14
test eax, eax
je 0x416465
push 1
call dword [sym.imp.python38.dll_PyErr_PrintEx]
add esp, 4
push 1
call dword [sym.imp.python38.dll_Py_Exit]
add dword [ebx], 0xffffffff
jne 0x416499
mov eax, dword [ebx + 4]
push ebx
mov eax, dword [eax + 0x18]
call eax
jmp 0x416496
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push edi
push esi
call dword [sym.imp.python38.dll_PyObject_DelItem]
add esp, 8
test eax, eax
je 0x416499
push dword [esp + 0x10]
call fcn.00415a10
add esp, 4
add dword [edi], 0xffffffff
jne 0x4164aa
mov eax, dword [edi + 4]
push edi
mov eax, dword [eax + 0x18]
call eax
add esp, 4
add dword [esi], 0xffffffff
jne 0x4164bb
mov eax, dword [esi + 4]
push esi
mov eax, dword [eax + 0x18]
call eax
add esp, 4
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043156c
add esp, 0x58
ret
Function at 0x4245c0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x4245cb
xor eax, eax
ret
push esi
mov esi, dword [esp + 8]
movzx eax, byte [esi]
shl eax, 7
sub edx, 1
js 0x4245f3
nop dword [eax + eax]
movzx ecx, byte [esi]
lea esi, [esi + 1]
imul eax, eax, 0xf4243
xor eax, ecx
sub edx, 1
jns 0x4245e0
xor eax, edx
mov ecx, 0xfffffffe
cmp eax, 0xffffffff
pop esi
cmove eax, ecx
ret

Function at 0x42ce10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
or eax, 0xffffffff
xor esi, esi
test edi, edi
je 0x42cee0
push ebx
mov ebx, dword [esp + 0x10]
movzx ecx, byte [esi + ebx]
xor eax, ecx
mov ecx, eax
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
shr eax, 1
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
and al, 1
movzx edx, al
neg edx
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
movzx ecx, al
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
movzx edx, al
neg edx
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
movzx ecx, al
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
movzx edx, al
neg edx
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
movzx ecx, al
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0xedb88320
inc esi
xor eax, ecx
cmp esi, edi
jb 0x42ce28
pop ebx
pop edi
not eax
pop esi
ret
Function at 0x42f260
Capabilities:
Extract resource via kernel32 functions

Disassembly:
cmp byte [0x460704], 0
push esi
push edi
jne 0x42f2bc
push 0xa
push 3
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [0x45fb4c], eax
mov esi, dword [eax]
add eax, 4
mov dword [0x45fb4c], eax
mov ecx, dword [eax]
lea edi, [eax + 4]
push ecx
push edi
mov dword [0x45fb4c], edi
call fcn.0042ce10
add esp, 8
cmp eax, esi
jne 0x42f421
mov byte [0x460704], 1
jmp 0x42f2c2
mov edi, dword [0x45fb4c]
push ebx
mov ebx, dword [esp + 0x18]
mov ecx, 0x44b8b8
mov eax, ebx
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x42f2f0
test dl, dl
je 0x42f2ec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x42f2f0
add eax, 2
add ecx, 2
test dl, dl
jne 0x42f2d0
xor eax, eax
jmp 0x42f2f5
sbb eax, eax
or eax, 1
test eax, eax
je 0x42f373
cmp byte [0x4606e4], 1
je 0x42f373
mov esi, dword [sym.imp.python38.dll_PyDict_New]
call esi
mov dword [0x460250], eax
call esi
mov dword [0x460254], eax
call esi
mov dword [0x460258], eax
call esi
mov dword [0x46025c], eax
call esi
mov dword [0x460260], eax
call esi
mov dword [0x460264], eax
call esi
mov dword [0x460268], eax
call esi
mov edi, dword [sym.imp.python38.dll_PyLong_FromLong]
mov esi, 0xfffffffb
mov dword [0x46026c], eax
nop dword [eax + eax]
push esi
call edi
mov dword [esi*4 + 0x45fc14], eax
add esp, 4
inc esi
cmp esi, 0x101
jl 0x42f350
mov edi, dword [0x45fb4c]
mov byte [0x4606e4], 1
mov ecx, edi
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x42f397
test dl, dl
je 0x42f393
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x42f397
add eax, 2
add ecx, 2
test dl, dl
jne 0x42f377
xor edx, edx
jmp 0x42f39c
sbb edx, edx
or edx, 1
mov ecx, edi
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42f3a1
sub ecx, esi
mov eax, dword [edi + ecx + 1]
lea esi, [edi + ecx]
add esi, 5
test edx, edx
je 0x42f405
add esi, eax
mov ecx, ebx
mov eax, esi
nop
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x42f3e0
test dl, dl
je 0x42f3dc
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x42f3e0
add ecx, 2
add eax, 2
test dl, dl
jne 0x42f3c0
xor edx, edx
jmp 0x42f3e5
sbb edx, edx
or edx, 1
mov ecx, esi
lea edi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42f3f0
sub ecx, edi
add esi, ecx
mov eax, dword [esi + 1]
add esi, 5
test edx, edx
jne 0x42f3b8
movzx eax, word [esi]
push eax
lea eax, [esi + 2]
push eax
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call fcn.0042bfb0
add esp, 0x10
pop ebx
pop edi
pop esi
ret
push str.Error__corrupted_constants_object
call fcn.0043c0ca
add esp, 4
call fcn.004333b0
int3