joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47e740
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x68000]
push edi
jmp 0x47e75a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x47e761
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47e750
mov eax, 1
add ebx, ebx
jne 0x47e773
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x47e784
jne 0x47e7a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47e7a3
dec eax
add ebx, ebx
jne 0x47e790
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x47e768
add ebx, ebx
jne 0x47e79f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x47e7f5
xor ecx, ecx
sub eax, 3
jb 0x47e7bb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x47e82a
sar eax, 1
mov ebp, eax
jmp 0x47e7c6
add ebx, ebx
jne 0x47e7c6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47e794
inc ecx
add ebx, ebx
jne 0x47e7d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47e794
add ebx, ebx
jne 0x47e7e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x47e7d6
jne 0x47e7f2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x47e7d6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x47e814
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x47e806
jmp 0x47e756
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x47e814
add edi, ecx
jmp 0x47e756
pop esi
mov edi, esi
mov ecx, 0x2aaa
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x47e832
cmp byte [edi], 6
jne 0x47e832
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 0x47e837
lea edi, [esi + 0x7b000]
mov eax, dword [edi]
or eax, eax
je 0x47e8af
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7e000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7e118]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x47e864
mov ecx, edi
jns 0x47e893
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 + 0x7e11c]
or eax, eax
je 0x47e8a9
mov dword [ebx], eax
add ebx, 4
jmp 0x47e881
call dword [esi + 0x7e12c]
mov ebp, dword [esi + 0x7e120]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
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 0x47e8e3
sub esp, 0xffffff80
jmp section.UPX0

Function at 0x710c7d
Capabilities:
Encode data using xor

Disassembly:
push 0x7109ec
mov edx, dword [esp]
add esp, 4
sub ebx, 0x2129ba2d
call fcn.00710cb6
add ebx, edi
xor dword [eax], edx
sub edi, 0x2ae8ea70
inc eax
sub ebx, ebx
dec edi
cmp eax, ecx
jne fcn.00710c7d
sub esp, 4
mov dword [esp], edi
pop edi
push ebx
pop ebx
or edi, ebx
ret
Function at 0x40380c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
mov eax, dword [0x43d100]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x403875
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.00402655
lea eax, [esp + 0x14]
push 0x235
push eax
call fcn.00406309
pop ecx
pop ecx
cmp eax, dword [esp + 0x38]
je 0x40388d
lea ecx, [esp + 0x14]
add edi, 4
call fcn.004053a0
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x40383d
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00409f50
add esp, 0x20
ret
mov eax, dword [ebx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.004053a0
jmp 0x403877

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
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 [0x43ea48], eax
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 0x27
push 0x43ca30
push 0x547
mov esi, 0x43ca58
push esi
call fcn.004038ab
push 1
push 0x427554
call fcn.00406896
add esp, 0x18
mov ecx, 0x43ed50
push 0
call fcn.004031a4
push eax
call fcn.00402227
push 0x8aafdc01
push dword [0x43ea48]
call fcn.0040380c
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
push 0x40
push 0x4e4
push esi
call eax
pop edi
pop esi
test eax, eax
je 0x406892
lea eax, [ebp - 0xc]
push 0x40663b
push eax
call fcn.004020fb
pop ecx
pop ecx
lea ecx, [ebp - 0xc]
call fcn.0040671a
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x406892
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x406892
call fcn.0040407b
xor eax, eax
leave
ret
Function at 0x41c31c
Capabilities:
Read file on windows

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

Function at 0x41c716
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040acb0
mov eax, dword [0x43d100]
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.0041a20e
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41c758
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41c8b4
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00425f10
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 + 0x43f700]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041d4b5
mov ecx, dword [esi*4 + 0x43f700]
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 0x41c8ad
cmp eax, dword [edi + ecx + 0x24]
jne 0x41c8ad
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 0x41c8ad
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041d4b5
add esp, 0x14
test edx, edx
jl 0x41c8ad
jg 0x41c823
test eax, eax
jb 0x41c8ad
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41c8ad
jl 0x41c83d
cmp dword [ebp - 0x1008], eax
ja 0x41c8ad
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41c85b
test ebx, ebx
je 0x41c894
cmp ecx, edi
jae 0x41c894
mov al, byte [ecx]
cmp al, 0xd
jne 0x41c875
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41c881
cmp byte [ecx + 1], 0xa
jne 0x41c881
inc ecx
jmp 0x41c881
movzx eax, al
movsx eax, byte [eax + 0x43d3c8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41c85b
cmp edx, ebx
jne 0x41c85b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41c8b2
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00409f50
leave
ret
Function at 0x41c953
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 + 0x43f700]
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 0x41c993
cmp byte [ebx], 0xa
jne 0x41c993
or byte [eax + edi + 0x28], 4
jmp 0x41c998
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41ca96
mov al, byte [edx]
cmp al, 0x1a
je 0x41ca78
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41c9c7
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41c9ec
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41c9f6
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 0x41c9a9
jmp 0x41ca96
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 0x41ca73
cmp dword [ebp - 0xc], 0
je 0x41ca73
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x43f700]
test byte [eax + edi + 0x28], 0x48
je 0x41ca4d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41ca38
mov byte [esi], dl
jmp 0x41ca49
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x43f700]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41ca96
cmp byte [ebp - 1], 0xa
jne 0x41ca5c
cmp esi, ebx
jne 0x41ca5c
mov byte [esi], 0xa
jmp 0x41ca95
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041d4d3
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41ca96
mov byte [esi], 0xd
jmp 0x41ca95
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x43f700]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41ca92
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41ca96
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41ca9f
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 + 0x43f700]
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 0x41cae2
cmp word [esi], dx
jne 0x41cae2
or byte [edi + eax + 0x28], 4
jmp 0x41cae7
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 0x41cc3a
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 0x41cc1a
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41cb29
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41cb5f
cmp eax, edx
jae 0x41cb6b
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 0x41cb01
jmp 0x41cc3a
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 0x41cc16
cmp dword [ebp - 0x14], 0
je 0x41cc16
mov eax, dword [ebx*4 + 0x43f700]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41cbee
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41cbb7
mov word [esi], cx
jmp 0x41cbea
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x43f700]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x43f700]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x43f700]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41cc3a
pop ebx
cmp word [ebp - 4], bx
jne 0x41cbff
cmp esi, dword [ebp + 0xc]
jne 0x41cbff
mov word [esi], bx
jmp 0x41cc37
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041d4d3
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41cc3a
push 0xd
jmp 0x41cc33
mov ecx, dword [ebx*4 + 0x43f700]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41cc31
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41cc3a
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 0x41e93e
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 0x41e9db
push ebx
push esi
call fcn.0041e907
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.0041d6e8
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41e988
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41e9da
push edi
push eax
call fcn.0041931d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41e9a8
call fcn.00418576
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41e9d9
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041d6e8
add esp, 0x20
test eax, eax
jne 0x41e9c7
push edi
call fcn.00418576
jmp 0x41e9cf
push ebx
call fcn.00418576
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 0x425d10
Capabilities:
Parse pe header

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

Function at 0x42e006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x42e072
nop
mov ebx, 0x407ef8
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x1f817bae
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e060
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x42e0d2
nop
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x3fa44815
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x440004]
jne 0x401010
repz ret
jmp fcn.00401617
Function at 0x40794e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00402b18
and dword [ebp - 4], 0
cmp dword [0x444798], 0
mov ebx, eax
jne 0x4079ff
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407ab0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x407ab0
push eax
call fcn.00402aa6
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x444798], eax
call esi
push eax
call fcn.00402aa6
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44479c], eax
call esi
push eax
call fcn.00402aa6
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4447a0], eax
call esi
push eax
call fcn.00402aa6
pop ecx
mov dword [0x4447a8], eax
test eax, eax
je 0x4079ff
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402aa6
pop ecx
mov dword [0x4447a4], eax
mov eax, dword [0x4447a4]
cmp eax, ebx
je 0x407a57
cmp dword [0x4447a8], ebx
je 0x407a57
push eax
call fcn.00402b21
push dword [0x4447a8]
mov esi, eax
call fcn.00402b21
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407a57
test edi, edi
je 0x407a57
call esi
test eax, eax
je 0x407a4e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407a4e
test byte [ebp - 0xc], 1
jne 0x407a57
or dword [ebp + 0x10], 0x200000
jmp 0x407a90
mov eax, dword [0x44479c]
cmp eax, ebx
je 0x407a90
push eax
call fcn.00402b21
pop ecx
test eax, eax
je 0x407a90
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407a90
mov eax, dword [0x4447a0]
cmp eax, ebx
je 0x407a90
push eax
call fcn.00402b21
pop ecx
test eax, eax
je 0x407a90
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x444798]
call fcn.00402b21
pop ecx
test eax, eax
je 0x407ab0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407ab2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x438920
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebp
mov ebp, dword [esp + 0x10]
push edi
cmp ebp, 0x182
jne 0x43894b
push 0
push 0
push 0
push str.sukeje
push str.nakefajijihi
push 0
call dword [sym.imp.KERNEL32.dll_UpdateResourceA]
jmp 0x438963
cmp ebp, 0x19f
jne 0x438963
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
xor edi, edi
test ebp, ebp
jle 0x4389b6
push esi
lea ebx, [ebx]
lea esi, [esp + 0x10]
mov dword [esp + 0xc], 5
mov dword [esp + 0x10], 0
call fcn.00438910
mov eax, dword [esp + 0x10]
add eax, 0x46
mov dword [esp + 0xc], eax
sub dword [esp + 0xc], 0x46
movsx eax, byte [edi + ebx]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xc]
xor dword [esp + 0x18], eax
mov cl, byte [esp + 0x18]
mov byte [edi + ebx], cl
inc edi
cmp edi, ebp
jl 0x438970
pop esi
pop edi
cmp ebp, 0x2d
pop ebp
jne 0x4389d1
mov dword [0x2b429c0], 0xa62e7790
mov dword [0x2b429c4], 0xffffffff
add esp, 8
ret
Function at 0x10001050
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x1002e040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x24c], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
mov cx, word [esi]
add esi, 2
cmp cx, 0x22
jne 0x100010c0
push 0x22
push esi
call fcn.10008d14
mov edx, eax
add esp, 8
test edx, edx
je 0x100010d7
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100010a0
sub ecx, esi
sar ecx, 1
cmp ecx, 2
ja 0x100010bb
mov esi, 0x1002397c
jmp 0x100010d7
lea esi, [edx + 4]
jmp 0x100010d7
push 0x20
push esi
call fcn.10008d14
add esp, 8
mov esi, 0x10023980
test eax, eax
je 0x100010d7
lea esi, [eax + 2]
push 0x208
lea eax, [ebp - 0x248]
push 0
push eax
call fcn.10009740
mov ax, word [0x1002398c]
movq xmm0, qword [str.PBVM]
push 0x32
mov word [ebp - 0x38], ax
lea eax, [ebp - 0x36]
push 0
push eax
movq qword [ebp - 0x40], xmm0
call fcn.10009740
lea ecx, [ebp - 0x40]
add esp, 0x18
add ecx, 0xfffffffe
nop word [eax + eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x10001120
mov eax, dword [str..dll]
mov dword [ecx], eax
mov eax, dword [0x10023994]
mov dword [ecx + 4], eax
mov ax, word [0x10023998]
mov word [ecx + 8], ax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x40]
push ebx
push eax
call fcn.100022e0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x100011af
lea ecx, [ebp - 0x248]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10001170
sub ecx, edx
sar ecx, 1
je 0x1000119a
push 0x1010
push str.Error
lea eax, [ebp - 0x248]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10007493
mov esp, ebp
pop ebp
ret 0x10
push str.PBHostAttachedDebug
push esi
call fcn.10008e66
add esp, 8
test eax, eax
je 0x100011d6
push str.PD_HostAttachedTarget
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x100011e2
or esi, 0xffffffff
jmp 0x100011f8
push str.FN_RunExecutable
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 0x3e8
push dword [ebp + 0x14]
push esi
push dword [ebp - 0x24c]
push ebx
call eax
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10007493
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10001d80
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x421c
call fcn.100074b0
mov eax, dword [0x1002e040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push 0x208
mov dword [ebp - 0x421c], eax
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10009740
push 0x4000
lea eax, [ebp - 0x420c]
push 0
push eax
call fcn.10009740
mov ecx, edi
add esp, 0x18
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10001de0
sub ecx, edx
sar ecx, 1
cmp ecx, 0xb
jne 0x10001f58
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x20c]
push 0x10023238
push 0x10023284
push eax
call edi
add esp, 0x10
mov dword [ebp - 0x4218], 0x104
lea eax, [ebp - 0x4210]
mov dword [ebp - 0x4214], 1
mov dword [ebp - 0x4210], 0
push eax
push 1
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10001e87
mov eax, dword [ebp - 0x4210]
test eax, eax
je 0x10001e87
lea ecx, [ebp - 0x4218]
push ecx
push esi
lea ecx, [ebp - 0x4214]
push ecx
push 0
push 0x10023290
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x4210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10001e90
sub ecx, edx
sar ecx, 1
je 0x10001f58
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10009740
push dword [ebp - 0x421c]
lea eax, [ebp - 0x20c]
push esi
push str._s_s
push eax
call edi
add esp, 0x1c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10001f58
push esi
push 0x100232c0
lea eax, [ebp - 0x420c]
push 0x2000
push eax
call fcn.100031c0
add esp, 0x10
mov esi, ebx
nop
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x10001f00
lea edi, [ebp - 0x420c]
sub ebx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10001f16
mov ecx, ebx
lea eax, [ebp - 0x420c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push str.Path
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10007493
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10007493
mov esp, ebp
pop ebp
ret