joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4066d0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push edi
xor edi, edi
test ebx, ebx
je 0x4068ef
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [sym.imp.USER32.dll_PhysicalToLogicalPoint]
nop dword [eax]
push 0
push 0
call esi
push str.RX_Engine_n
push 0x4af2b0
call fcn.004018a0
sub byte [edi + ebp], 0x1d
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x4af2b0
call fcn.004018a0
xor byte [edi + ebp], 0x46
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x4af2b0
call fcn.004018a0
xor byte [edi + ebp], 0x42
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x4af2b0
call fcn.004018a0
add byte [edi + ebp], 0xc3
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x4af2b0
call fcn.004018a0
add byte [edi + ebp], 0xe9
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x4af2b0
call fcn.004018a0
xor byte [edi + ebp], 0x5d
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x4af2b0
call fcn.004018a0
add byte [edi + ebp], 0x15
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x4af2b0
call fcn.004018a0
add byte [edi + ebp], 0x90
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x4af2b0
call fcn.004018a0
add byte [edi + ebp], 0x3b
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x4af2b0
call fcn.004018a0
add esp, 8
xor byte [edi + ebp], 0xa2
push 0
push 0
call esi
push str.RX_Engine_n
push 0x4af2b0
call fcn.004018a0
add byte [edi + ebp], 0x72
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x4af2b0
call fcn.004018a0
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x4af2b0
call fcn.004018a0
add byte [edi + ebp], 0x4d
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x4af2b0
call fcn.004018a0
xor byte [edi + ebp], 0xe
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x4af2b0
call fcn.004018a0
add byte [edi + ebp], 0x72
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x4af2b0
call fcn.004018a0
xor byte [edi + ebp], 0x86
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x4af2b0
call fcn.004018a0
add byte [edi + ebp], 0x18
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x4af2b0
call fcn.004018a0
add byte [edi + ebp], 0xfd
add esp, 8
inc edi
cmp edi, ebx
jb 0x4066f0
pop esi
pop ebp
pop edi
pop ebx
ret
Function at 0x4079f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
mov eax, dword [0x4ad300]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
mov ebx, dword [esp + 0x34]
push ebp
push esi
push edi
mov eax, dword [ebx + 0x3c]
xor esi, esi
mov dword [esp + 0x10], 0
mov eax, dword [eax + ebx + 0x78]
add eax, ebx
mov dword [esp + 0x1c], eax
mov edi, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
add edi, ebx
mov dword [esp + 0x18], eax
test eax, eax
je 0x407ad9
mov ebp, dword [esp + 0x44]
mov edx, dword [edi]
xorps xmm0, xmm0
add edx, ebx
mov dword [esp + 0x30], 0
mov eax, edx
mov dword [esp + 0x34], 0
movups xmmword [esp + 0x20], xmm0
lea ecx, [eax + 1]
mov dword [esp + 0x14], ecx
nop word [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407a60
sub eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
push edx
call fcn.00401d30
test ebx, ebx
je 0x407a99
cmp ebp, 3
jbe 0x407a99
lea eax, [esp + 0x20]
push 0x14d
push eax
call fcn.00408020
add esp, 8
test eax, eax
je 0x407a99
cmp eax, ebp
je 0x407af2
mov ecx, dword [esp + 0x34]
add edi, 4
cmp ecx, 0x10
jb 0x407ace
mov edx, dword [esp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407ac4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407b41
push ecx
push edx
call fcn.0040d428
add esp, 8
inc esi
cmp esi, dword [esp + 0x18]
jb 0x407a35
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
add eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040d871
add esp, 0x2c
ret
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x24]
lea eax, [eax + esi*2]
movzx ecx, word [eax + ebx]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, dword [eax + ebx]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x34]
cmp ecx, 0x10
jb 0x407ad9
mov edx, dword [esp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407b35
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407b41
push ecx
push edx
call fcn.0040d428
add esp, 8
jmp 0x407ad9
call fcn.0041211f
int3
Function at 0x4083d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x4aeeb0], eax
push 0xda4c2ca8
push dword [0x4aeeb0]
call fcn.004079f0
add esp, 8
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
call edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40ba00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x40ba21
jl 0x40ba18
test edi, edi
jne 0x40ba21
xor eax, eax
xor edx, edx
jmp 0x40bae2
cmp dword [ebx + 0x38], 0
je 0x40ba36
push eax
push edi
push dword [ebp + 8]
call fcn.0040bae8
jmp 0x40bae2
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40ba7d
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x40ba7d
cmp eax, edi
jb 0x40ba57
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040e9a0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x40ba83
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x40bad7
mov ecx, ebx
call fcn.0040b26b
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x40bac2
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.004155d3
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x40bad7
jmp 0x40ba95
test edx, edx
je 0x40bad7
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.004155d3
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x40e053
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40e092
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40e092
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40e092
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40e092
cmp dword [ecx + 0x74], 0xe
jbe 0x40e092
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x41ce08
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42f850
push 0x42f848
push str.FlsAlloc
push 0x1e
call fcn.0041ccd2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41ce3c
push dword [ebp + 8]
mov ecx, esi
call dword [0x42b194]
call esi
jmp 0x41ce42
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x41ce86
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42f860
push 0x42f858
push str.FlsGetValue
push 0x20
call fcn.0041ccd2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41cebd
push dword [ebp + 8]
mov ecx, esi
call dword [0x42b194]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41f59e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041f240

Function at 0x41f5a9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041f3cf

Function at 0x41f9a3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040e4a0
mov eax, dword [0x4ad300]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041c6de
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41f9e5
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41fb41
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00429960
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4afb98]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00420742
mov ecx, dword [esi*4 + 0x4afb98]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41fb3a
cmp eax, dword [edi + ecx + 0x24]
jne 0x41fb3a
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41fb3a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00420742
add esp, 0x14
test edx, edx
jl 0x41fb3a
jg 0x41fab0
test eax, eax
jb 0x41fb3a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41fb3a
jl 0x41faca
cmp dword [ebp - 0x1008], eax
ja 0x41fb3a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41fae8
test ebx, ebx
je 0x41fb21
cmp ecx, edi
jae 0x41fb21
mov al, byte [ecx]
cmp al, 0xd
jne 0x41fb02
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41fb0e
cmp byte [ecx + 1], 0xa
jne 0x41fb0e
inc ecx
jmp 0x41fb0e
movzx eax, al
movsx eax, byte [eax + 0x4ad5a8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41fae8
cmp edx, ebx
jne 0x41fae8
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41fb3f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040d871
leave
ret
Function at 0x41fbe0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4afb98]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41fc20
cmp byte [ebx], 0xa
jne 0x41fc20
or byte [eax + edi + 0x28], 4
jmp 0x41fc25
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41fd23
mov al, byte [edx]
cmp al, 0x1a
je 0x41fd05
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41fc54
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41fc79
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41fc83
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41fc36
jmp 0x41fd23
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41fd00
cmp dword [ebp - 0xc], 0
je 0x41fd00
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4afb98]
test byte [eax + edi + 0x28], 0x48
je 0x41fcda
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41fcc5
mov byte [esi], dl
jmp 0x41fcd6
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4afb98]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41fd23
cmp byte [ebp - 1], 0xa
jne 0x41fce9
cmp esi, ebx
jne 0x41fce9
mov byte [esi], 0xa
jmp 0x41fd22
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00420760
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41fd23
mov byte [esi], 0xd
jmp 0x41fd22
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4afb98]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41fd1f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41fd23
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41fd2c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4afb98]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41fd6f
cmp word [esi], dx
jne 0x41fd6f
or byte [edi + eax + 0x28], 4
jmp 0x41fd74
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41fec7
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41fea7
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41fdb6
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41fdec
cmp eax, edx
jae 0x41fdf8
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41fd8e
jmp 0x41fec7
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41fea3
cmp dword [ebp - 0x14], 0
je 0x41fea3
mov eax, dword [ebx*4 + 0x4afb98]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41fe7b
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41fe44
mov word [esi], cx
jmp 0x41fe77
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4afb98]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4afb98]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4afb98]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41fec7
pop ebx
cmp word [ebp - 4], bx
jne 0x41fe8c
cmp esi, dword [ebp + 0xc]
jne 0x41fe8c
mov word [esi], bx
jmp 0x41fec4
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00420760
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41fec7
push 0xd
jmp 0x41fec0
mov ecx, dword [ebx*4 + 0x4afb98]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41febe
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41fec7
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x422faa
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x423047
push ebx
push esi
call fcn.00422f73
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00421d3b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x422ff4
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x423046
push edi
push eax
call fcn.0041b77c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x423014
call fcn.0041b43c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x423045
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00421d3b
add esp, 0x20
test eax, eax
jne 0x423033
push edi
call fcn.0041b43c
jmp 0x42303b
push ebx
call fcn.0041b43c
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x429760
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42978d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42978d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4027c0
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x4027ce
call dword [0x5ce01c]
or eax, eax
je 0x4027cf
ret
mov al, 1
jmp fcn.0040284c

Function at 0x4027d8
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x4027e6
call dword [0x5ce020]
or eax, eax
jne 0x4027e7
ret
mov al, 2
jmp fcn.0040284c

Function at 0x4027f0
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [eax]
test ecx, ecx
je 0x402828
test edx, edx
je 0x402812
push eax
mov eax, ecx
call dword [0x5ce024]
pop ecx
or eax, eax
je 0x402821
mov dword [ecx], eax
ret
mov al, 2
jmp fcn.0040284c
mov dword [eax], edx
mov eax, ecx
call dword [0x5ce020]
or eax, eax
jne 0x40280b
ret
mov al, 1
jmp fcn.0040284c
test edx, edx
je 0x40283c
push eax
mov eax, edx
call dword [0x5ce01c]
pop ecx
or eax, eax
je 0x402821
mov dword [ecx], eax
ret

Function at 0x40284c
Capabilities:
Terminate process

Disassembly:
and eax, 0x7f
mov ecx, dword [0x5d4004]
test ecx, ecx
je 0x40285c
pop edx
call ecx
dec eax
mov al, byte [eax + 0x402875]
jns 0x402870
call fcn.00406f80
mov eax, dword [eax + 4]
jmp fcn.00403c68

Function at 0x402890
Capabilities:
Terminate process

Disassembly:
push eax
push edx
push ecx
call fcn.00406f80
cmp dword [eax + 4], 0
pop ecx
pop edx
pop eax
jne 0x4028a5
ret
xor eax, eax
jmp fcn.0040284c

Function at 0x4029d4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x402a03
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403ddc
jmp 0x402a21
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.0040295c
mov edi, eax
test ebx, ebx
je 0x402a21
cmp dword [esi], 0
je 0x402a21
dec ebx
jmp 0x402a0a
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402ef8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402f90
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402f70
xor eax, eax
push ebp
push 0x402f69
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402fac
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402f70
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret

Function at 0x403210
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x40322a
mov ecx, eax
mov ecx, dword [ecx]
cmp ecx, edx
je 0x40322a
mov ecx, dword [ecx - 0x24]
test ecx, ecx
jne 0x403216
mov al, 0xa
jmp fcn.0040284c
ret
Function at 0x40325c
Capabilities:
Terminate process

Disassembly:
cmp dword [0x5d401c], 0
je 0x402afb
call dword [0x5d401c]
mov eax, 0xd2
jmp fcn.00403c68
push eax
push ecx
mov eax, dword [eax]
call fcn.0040322c
pop ecx
pop eax
je 0x40326b
jmp ebx
pop ecx
jmp 0x402aec

Function at 0x403274
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, edx
mov eax, dword [eax]
call fcn.0040322c
mov eax, ebx
pop ebx
jne 0x403289
pop ecx
jmp 0x402aec
ret

Function at 0x403b44
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, 0x5d44a4
mov esi, 0x5d4038
mov edi, 0x5d403c
cmp byte [ebx + 0x24], 0
jne 0x403b73
cmp dword [edi], 0
je 0x403b73
mov edx, dword [edi]
mov eax, edx
xor edx, edx
mov dword [edi], edx
mov ebp, eax
call ebp
cmp dword [edi], 0
jne 0x403b62
cmp dword [0x5d4040], 0
je 0x403bba
call fcn.00403ac0
cmp byte [0x5d4048], 0
je 0x403ba0
mov edx, 0x5ce02c
mov eax, 0x5d421c
call fcn.0040681c
call fcn.0040679f
jmp 0x403bb3
push 0
push 0x5ce04c
push 0x5ce02c
push 0
call sub.user32.dll_MessageBoxA
xor eax, eax
mov dword [0x5d4040], eax
cmp byte [ebx + 0x24], 2
jne 0x403bca
cmp dword [esi], 0
jne 0x403bca
xor eax, eax
mov dword [ebx + 0xc], eax
call fcn.00403994
cmp byte [ebx + 0x24], 1
jbe 0x403bda
cmp dword [esi], 0
je 0x403bf7
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x403bf7
call fcn.0040608c
mov eax, dword [ebx + 0x10]
mov edx, dword [eax + 0x10]
cmp edx, dword [eax + 4]
je 0x403bf7
push edx
call sub.kernel32.dll_FreeLibrary
call fcn.0040396c
cmp byte [ebx + 0x24], 1
jne 0x403c05
call dword [ebx + 0x28]
cmp byte [ebx + 0x24], 0
je 0x403c10
call fcn.00403b10
cmp dword [ebx], 0
jne 0x403c1d
mov eax, dword [esi]
push eax
call sub.kernel32.dll_ExitProcess
mov eax, dword [ebx]
push esi
mov esi, eax
mov edi, ebx
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
pop esi
jmp 0x403bba

Function at 0x403cac
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004027c0
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x5d4049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403c74
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x4043f0
Capabilities:
Terminate process

Disassembly:
test edx, edx
je fcn.004043b4
mov ecx, dword [edx - 4]
shr ecx, 1
je fcn.004043b4
push ecx
push edx
push eax
call sub.oleaut32.dll_SysReAllocStringLen
test eax, eax
je 0x40439c
ret

Function at 0x404498
Capabilities:
Terminate process

Disassembly:
mov al, 1
jmp fcn.0040284c
test ecx, ecx
je fcn.004043b4
push eax
push ecx
push edx
call sub.oleaut32.dll_SysAllocStringLen
test eax, eax
je 0x40439c
pop edx
push dword [edx]
mov dword [edx], eax
call sub.oleaut32.dll_SysFreeString
ret