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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
push eax
add ecx, 0xffffffa4
push dword [edx + edx*8 + 0x40]
sti
push ecx
call dword [sym.imp.MSVCRT.dll_fprintf]
mov eax, dword [0x2b4102ac]
and esp, 0xc
and eax, 0x501496c0
push eax
push 0x403fd1
or byte [edi + sym.imp.MSVCRT.dll_printf], bl
add esp, 8
push 1
call dword [0xa340c170]
xor dword [ebp - 0x75], edx
xchg ebx, eax
xor eax, 0x900000b8
pop edi
add al, byte cs:[ecx]
test eax, eax
mov eax, dword [0x41e14c]
je 0x401778
push 0xd9413cdb
shr al, 0x9e
inc eax
push cs
add byte [ecx], dh
mov ecx, dword [0x5fe002ea]
adc byte [ebx + ecx*4], dl
adc eax, 0xce1800
out dx, al
push eax
call 0xe35850
ljmp 0xf292

Function at 0x405b70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
mov ebx, dword [eax + ecx]
push edi
mov ecx, dword [0x75fe8514]
or byte [eax], bl
inc esi
and byte [eax + 0x4fde0038], al
mov esi, dword [eax]
or al, 0x8b
inc esi
mov ah, 0x3b
enter 0x46c7, 0x14
mov cl, 0
add byte [eax], al
jge 0x405c10
mov edx, dword [esi + 0x1c]
mov eax, dword [edx + ecx*4]
mov dword [esi + 0x20], eax
cmp byte [eax], 0x2d
xchg esi, eax
push ss
mov dl, byte [eax + 1]
into
cmp byte [0x508a1696], ch
add esi, ecx
test dl, dl
je 0x405c06
mov dword [esi + 0x21], eax
mov dl, byte [eax]
xor byte [ecx], 0x2d
jne 0x405bae
inc ecx
mov dword [esi + 0x13], ecx
mov dword [esi + 0x20], 0x412b54
mov ecx, dword [ebp + 0x10]
jbe 0x405c0e
adc byte [edi + 0x5e], bl
mov byte [ecx], al
cmp byte [esi + 0x65], bh
add ebp, edi
pop ebp
ret 0xa1cc
je 0x405ba2
pop ebp
dec ebp
adc al, 0xc7
add dword [eax], eax
add byte [esi], al
mov edx, dword [esi + 0x20]
cmp byte [edx], 0xd1
jne 0x405ca0
add byte [ebx + 0x3a802056], cl
ror dword [edi], 1
test dword [ebx - 0x17000000], eax
aad 0
add byte [eax], al
mov eax, dword [esi - 0x4a]
std
jmp 0x405cf7
mov dh, 0xfd
cmp byte [eax], al
je 0x405c24
mov ecx, dword [ebp - 0x45]
mov dword [ecx], eax
jmp 0x405c88
pop edi
insd dword es:[edi], dx
cmp ebp, edx
arpl word [ebx - 0x6f6febae], cx
jno 0x405cc9
inc eax
retf 0xf2aa
add al, 0xa7
mov byte [0xb0bd73b6], al
inc esi
xor dword [ebx - 0x145316da], esi
or dh, byte [ecx + 0x63]
push es
invalid
sub byte [ecx], cl
mov dl, 0xe0
or eax, 0x9aaced03
dec ecx

Function at 0x4061cf
Capabilities:
Encode data using xor

Disassembly:
pop ebp
push 0x3233
push 0x5f327377
push esp
push 0x726774c
call ebp
mov eax, 0x190
sub esp, eax
push esp
push eax
push 0x6b8029
call ebp
push eax
push eax
push eax
push eax
inc eax
push eax
inc eax
push eax
push 0xe0df0fea
call ebp
aad 0x97
Function at 0x402531
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402570
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402570
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], reloc.api_ms_win_crt_runtime_l1_1_0.dll__cexit
jne 0x402570
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402570
cmp dword [ecx + 0x74], 0xe
jbe 0x402570
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..3ean
nop
nop
mov ebx, 0x40915c
mov ecx, 0x13a3492
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x431024
nop
nop
mov eax, section..7LWLf
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x50a97659
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x91c614
Capabilities:
Encode data using xor

Disassembly:
jmp 0x91c61e
pushal
call 0x91c624
pop ebp
sub ebp, 0x10
sub ebp, 0x51c614
jmp 0x91c63a
mov eax, 0x51c614
add eax, ebp
add eax, 0x4c
mov ecx, 0x5fc
mov edx, 0xc3b72f62
xor byte [eax], dl
inc eax
dec ecx
jne 0x91c651
jmp 0x91c664
jmp 0x5f7db018
Function at 0x408972
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
pop eax
sub edx, 0x432933e3
call fcn.004089af
sub esi, 1
xor dword [ebx], eax
add edx, 1
add edx, edx
inc ebx
and esi, edx
cmp ebx, edi
jne fcn.00408972
push edx
mov esi, dword [esp]
add esp, 4
dec esi
ret
Function at 0x10a4e7c0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x10a4e7ca
pushal
call 0x10a4e7d0
pop ebp
sub ebp, 0x10
sub ebp, 0xa4e7c0
mov al, byte [esp + 0x28]
cmp al, 1
je 0x10a4e7f4
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x10a4e7fd
mov eax, 0xa4e7c0
add eax, ebp
add eax, 0x63
mov ecx, 0x5d6
mov edx, 0x2bc303a1
xor byte [eax], dl
inc eax
dec ecx
jne 0x10a4e814
jmp 0x10a4e827
sub ch, byte [edx + ebp + 0x28]
popfd
mov eax, dword [0x6020a1a1]
pop ecx
mov eax, dword [0x6ca2a1a1]
sbb dword [esi + 0x1ba1a1a1], esp
mov dword [ecx + 0x4356a1a1], esp
mov byte [0xad202a69], al
mov eax, dword [0x64a2a1a1]
sub al, 0xc5
test dword [ebp + 0x28], ebx
movsd dword es:[edi], dword [esi]
test ecx, esi
leave
xchg ebp, eax
daa
and dword [ecx + 0x23c02ac9], 0xffffffa1
mov al, byte [0x7dc9858d]
xchg esp, eax
pushal
or al, 0x49
movsb byte es:[edi], byte [esi]
mov eax, dword [0x9548a1a1]
mov eax, dword [0xc52ca1a1]
test dword [ebp + 0x28], ebx
lea eax, [ebp + 0x242afcf5]
test eax, 0x2aa1a1a1
xor al, 0xad
mov eax, dword [0x2c2aa1a1]
mov cl, 0xa1
mov eax, dword [0xa34860a1]
nop
mov dword [0xe8a56322], eax
scasb al, byte es:[edi]
and al, 0x55
pop esi
and ah, byte [ebx - 0x5b]
call 0x6efa0d47
pop esi
pop esi
sub cl, byte [ebp - 0x7a3ad37b]
movsd dword es:[edi], dword [esi]
arpl word [ebp - 0x7ad2d55f], bp
movsd dword es:[edi], dword [esi]
mov eax, dword [0x95c9a1a1]
daa
and dword [ecx + 0x23c02ac9], 0xffffffa1
mov al, byte [0xc52c858d]
test dword [ebp + 0x28], ebx
lodsd eax, dword [esi]
test dword [ecx - 0x5c], ecx
mov eax, dword [0xf048a1a1]
mov dword [0xc52ca1a1], eax
test dword [ebp + 0x28], ebx
lea eax, [ebp - 0x2ba1030b]
lodsd eax, dword [esi]
pop esi
aam 0xa9
dec ecx
fbld tbyte [ecx + 0x1c2aa1a1]
test eax, 0x20a1a1a1
push eax
adc ebx, dword [ebx]
push ss
push esi
and byte [eax + 0x13], dl
sbb edx, dword [esi]
push esi
xchg edx, eax
push 0x16215320
jae 0x10a4e919
push ebx
and dword [esi], edx
jae 0x10a4e891
jae 0x10a4e923
dec ecx
movsb byte es:[edi], byte [esi]
jmp 0xb2940eb6
mov ebx, 0x21a1a1a1
pop edx
dec eax
scasb al, byte es:[edi]
and eax, 0xa1a1a1b0
invalid
mov eax, dword [0x20c7a1a1]
pop edx
pop esi
test byte [esi - 0x5e5e4bdb], ch
mov eax, dword [0x5e6d48e0]
pop esi
pop esi
mov ch, ch
cwde
mov al, byte [0x22a46022]
dec ecx
movsd dword es:[edi], dword [esi]
dec eax
sbb al, 0x5e
pop esi
pop esi
mov ch, dh
cwde
mov dword [0x22a76022], eax
dec ebx
movsd dword es:[edi], dword [esi]
and cl, byte [ecx - 0x5c]
dec eax
or bl, byte [esi + 0x5e]
pop esi
cld
arpl word [ebp + 0x4d2af4a1], bp
div esi
hlt

Function at 0x401c2e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
and byte [ebp - 0x100], 0
push edi
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0xff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 8
lea eax, [ebp - 0x100]
push 0x404008
push eax
call fcn.00401ca0
mov ecx, 0x401bdc
mov eax, 0x4017fd
sub ecx, eax
push ecx
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.00401d18
push 0x100
lea eax, [ebp - 0x100]
push 0
push eax
call fcn.004020d0
add esp, 0x24
call fcn.00401846
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4022f0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de4be
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x24], edi
mov ecx, 0x51bcaa
mov dword [ebp - 0x20], 0
call fcn.004dd914
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 1
test eax, eax
je 0x4024c4
mov ecx, dword [ebp - 0x1c]
nop dword [eax]
dec eax
mov dword [ebp + 8], eax
mov al, byte [ecx]
inc ecx
mov byte [ebp + esi - 0x14], al
inc esi
mov ah, byte [ebp - 0x12]
mov dl, byte [ebp - 0x13]
mov dh, byte [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 0xf], ah
mov byte [ebp - 0xd], dl
mov byte [ebp - 0xe], dh
cmp esi, 3
jne 0x402405
mov al, dh
mov cl, dh
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov al, dl
shl cl, 4
shr al, 4
add cl, al
mov al, ah
mov byte [ebp - 0x17], cl
and ah, 0x3f
mov cl, dl
shr al, 6
and cl, 0xf
mov byte [ebp - 0x15], ah
shl cl, 2
add cl, al
xor esi, esi
mov byte [ebp - 0x16], cl
nop word [eax + eax]
cmp dword [0x51add4], 0x10
mov ecx, 0x51adc0
movzx eax, byte [ebp + esi - 0x18]
cmovae ecx, dword [0x51adc0]
movzx eax, byte [eax + ecx]
mov ecx, edi
push eax
call fcn.00402970
inc esi
cmp esi, 4
jl 0x4023d0
mov ecx, dword [ebp - 0x1c]
xor esi, esi
mov dl, byte [ebp - 0xd]
mov dh, byte [ebp - 0xe]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x402370
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x4024c4
mov eax, 3
sub eax, esi
mov dword [ebp + 8], eax
cmp esi, 3
jge 0x402446
push eax
lea eax, [ebp - 0x14]
add eax, esi
push 0
push eax
call fcn.004b4010
mov cl, byte [ebp - 0x12]
add esp, 0xc
mov dl, byte [ebp - 0x13]
mov dh, byte [ebp - 0x14]
jmp 0x402449
mov cl, byte [ebp - 0xf]
mov al, dh
and dh, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, dl
shr al, 4
and dl, 0xf
shl dh, 4
add dh, al
shl dl, 2
mov al, cl
mov byte [ebp - 0x17], dh
shr al, 6
and cl, 0x3f
add dl, al
mov byte [ebp - 0x15], cl
lea eax, [esi + 1]
mov byte [ebp - 0x16], dl
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x4024b0
xor esi, esi
cmp dword [0x51add4], 0x10
mov ecx, 0x51adc0
movzx eax, byte [ebp + esi - 0x18]
cmovae ecx, dword [0x51adc0]
movzx eax, byte [eax + ecx]
mov ecx, edi
push eax
call fcn.00402970
inc esi
cmp esi, dword [ebp - 0x14]
jl 0x402483
mov esi, dword [ebp - 0x1c]
cmp esi, 3
jge 0x4024c4
push 0x3d
mov ecx, edi
call fcn.00402970
sub dword [ebp + 8], 1
jne 0x4024b5
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x403780
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
mov ecx, 0x51b252
push edi
mov edi, edx
call fcn.004dd914
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4037e5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4037e5
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4037d2
cmp esi, edx
jae 0x4037e5
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4037c0
cmp esi, edx
jae 0x4037e5
xor eax, eax
cmp word [esi], ax
pop edi
cmove esi, eax
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x403fd0
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de5de
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
mov esi, ecx
mov ecx, 0x51bcaa
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], 0
call fcn.004dd914
mov dword [ebp - 4], 1
call fcn.00402de0
mov ecx, eax
test ecx, ecx
je 0x4040d7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], 1
push eax
push 1
push 0
push 0
call dword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsW]
test eax, eax
je 0x4040c6
mov edx, dword [ebp - 0x18]
xor eax, eax
push edi
mov edi, dword [ebp - 0x1c]
test edx, edx
je 0x404074
lea ecx, [edi + 8]
cmp dword [ecx], 0
je 0x404067
inc eax
add ecx, 0xc
cmp eax, edx
jb 0x404058
jmp 0x404074
lea eax, [eax + eax*2]
movq xmm0, qword [edi + eax*4]
movq qword [ebp - 0x30], xmm0
push edi
mov edi, dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
call edi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
push 5
push dword [ebp - 0x30]
push 0
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x4040c5
mov edx, dword [ebp - 0x10]
test edx, edx
jne 0x4040a1
xor ecx, ecx
jmp 0x4040b7
mov ecx, edx
push ebx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4040a7
sub ecx, ebx
sar ecx, 1
pop ebx
push ecx
push edx
mov ecx, esi
call fcn.004067e0
push dword [ebp - 0x10]
call edi
pop edi
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402c50
int3
Function at 0x4040f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de60d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x11], dl
mov dword [ebp - 0x28], ecx
mov ecx, 0x51bcaa
mov dword [ebp - 4], 0
call fcn.004dd914
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push eax
mov edx, 0x50634c
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x24]
call fcn.004055f0
add esp, 4
push 0x506348
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.00405780
add esp, 4
mov byte [ebp - 4], 3
mov edx, dword [eax]
mov edi, dword [ebp + 8]
add edi, 0xfffffff0
lea ecx, [edx - 0x10]
cmp ecx, edi
je 0x4041b8
mov eax, dword [edi + 0xc]
lea ebx, [edi + 0xc]
shr eax, 0x1f
test al, al
jne 0x4041ac
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x4041ac
call fcn.00406700
or esi, 0xffffffff
mov dword [ebp - 0x1c], eax
mov ecx, esi
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x4041a4
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x1c]
add eax, 0x10
mov dword [ebp + 8], eax
jmp 0x4041bb
push dword [edx - 0xc]
lea ecx, [ebp + 8]
push edx
call fcn.004067e0
or esi, 0xffffffff
mov edx, dword [ebp - 0x20]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4041d5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x24]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4041ef
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp + 0x14], 0
mov ecx, 0x440
mov eax, 0x40
mov dword [ebp - 0x64], 0x3c
cmovne eax, ecx
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x60], eax
mov ecx, 9
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x28]
movlpd qword [ebp - 0x40], xmm0
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0x30], xmm0
mov eax, dword [eax]
mov dword [ebp - 0x50], eax
xor eax, eax
cmp byte [ebp + 0x10], al
mov dword [ebp - 0x58], 0
cmovne eax, ecx
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x44], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x404272
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov dword [edi], eax
cmp byte [ebp - 0x11], 0
je 0x404291
push dword [ebp + 0x18]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0x18]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x4042ac
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404630
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de685
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
mov ecx, 0x51bcaa
call fcn.004dd914
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push ecx
mov dword [ebp - 4], 0
lea ebx, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.:
call fcn.00406190
push ecx
mov byte [ebp - 4], 1
mov esi, esp
mov dword [ebp - 0x10], esi
mov ecx, dword [edi]
sub ecx, 0x10
call fcn.00406700
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
mov byte [ebp - 4], 0
call fcn.00404370
mov edi, dword [ebp - 0x1c]
add esp, 8
sub edi, dword [ebp - 0x20]
sar edi, 2
mov byte [ebp - 4], 2
call fcn.00402de0
mov ecx, eax
test ecx, ecx
je 0x4047e1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
xor esi, esi
mov byte [ebp - 4], 3
or ebx, 0xffffffff
test edi, edi
je 0x404779
mov eax, dword [ebp - 0x20]
lea edx, [eax + esi*4]
mov eax, dword [edx]
mov ecx, dword [eax - 0xc]
test esi, esi
jne 0x404749
cmp ecx, 1
jl 0x4047f0
cmp word [eax + 2], 0x3a
jne 0x404776
push 0x506398
lea ecx, [ebp - 0x14]
call fcn.00405780
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x10]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00406970
mov byte [ebp - 4], 3
mov eax, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40476d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40476d
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00406970
push 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 1
push 0x50639c
lea ecx, [ebp - 0x10]
call fcn.00406970
inc esi
cmp esi, edi
jb 0x4046e8
mov eax, dword [ebp - 0x10]
lea edx, [eax - 0x10]
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40478e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x4047d0
mov edx, dword [ebp - 0x1c]
push ecx
call fcn.00406b00
mov ecx, dword [ebp - 0x18]
add esp, 4
mov edx, dword [ebp - 0x20]
sub ecx, edx
and ecx, 0xfffffffc
mov eax, edx
cmp ecx, 0x1000
jb 0x4047c6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4047eb
push ecx
push edx
call fcn.004b09a5
add esp, 8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402c50
call fcn.004b8090
push 0x80070057
call fcn.00402c50
int3
Function at 0x404a70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de6f6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push esi
mov esi, ecx
mov ecx, 0x51bcaa
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x10], 0
call fcn.004dd914
mov dword [ebp - 4], 1
call fcn.00402de0
mov ecx, eax
test ecx, ecx
je 0x404bf8
mov eax, dword [ecx]
push ebx
push edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push 0x104
lea eax, [ebp - 0x120]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x10], 1
call fcn.004b4010
add esp, 0xc
lea eax, [ebp - 0x120]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x120]
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 3
call ebx
lea edi, [eax - 1]
test edi, edi
jle 0x404b62
mov ecx, dword [esi]
mov edx, 1
mov eax, dword [ecx - 8]
sub edx, dword [ecx - 4]
sub eax, edi
or eax, edx
jge 0x404b38
push edi
mov ecx, esi
call fcn.00406900
push edi
push dword [esi]
lea eax, [ebp - 0x120]
push 0xffffffffffffffff
push eax
push 0
push 3
call ebx
mov eax, dword [esi]
cmp edi, dword [eax - 8]
jg 0x404c02
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [esi]
mov word [eax + edi*2], cx
jmp 0x404b69
mov ecx, esi
call fcn.00406570
push 2
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.00405a90
mov dword [ebp - 4], 2
or ebx, 0xffffffff
mov edx, dword [eax]
mov edi, dword [esi]
sub edi, 0x10
lea ecx, [edx - 0x10]
cmp ecx, edi
je 0x404bcd
cmp dword [edi + 0xc], 0
jl 0x404bc2
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x404bc2
call fcn.00406700
mov dword [ebp - 0x14], eax
lea edx, [edi + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404bbb
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [esi], eax
jmp 0x404bcd
push dword [edx - 0xc]
mov ecx, esi
push edx
call fcn.004067e0
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
pop edi
test ebx, ebx
pop ebx
jg 0x404be7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402c50
push 0x80070057
call fcn.00402c50
int3
Function at 0x408b60
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push ebx
mov ebx, ecx
mov ecx, 0x51bcaa
push esi
call fcn.004dd914
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
push reloc.WS2_32.dll_bind
mov dword [ebp - 8], 0
mov dword [ebp - 0x1c], 0xffffffff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x408cfe
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov ecx, dword [ebp - 8]
test eax, eax
mov edx, 0x64
cmovne ecx, edx
xor edi, edi
mov dword [ebp - 8], ecx
test ecx, ecx
je 0x408cfd
push 0x104
lea eax, [ebp - 0x224]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004b4010
push 0x104
lea eax, [ebp - 0x120]
mov dword [ebp - 0x14], 0
push 0
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0x104
call fcn.004b4010
push edi
push str._04u
lea eax, [ebp - 0x120]
push 0x104
push eax
call fcn.00409760
add esp, 0x28
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408cd9
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push str.NetCfgInstanceId
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x408cd4
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
jb 0x408c99
mov eax, dword [ebx]
lea ecx, [ebp - 0x224]
push ecx
push eax
call fcn.004bdb53
add esp, 8
test eax, eax
jne 0x408cd4
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 4
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push str.Characteristics
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x408cf2
push dword [ebp - 4]
call esi
inc edi
cmp edi, dword [ebp - 8]
jb 0x408bf1
pop edi
push dword [ebp - 0xc]
call esi
mov eax, dword [ebp - 0x1c]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x18]
push dword [ebp - 4]
mov dword [ebp - 0x1c], eax
call esi
pop edi
push dword [ebp - 0xc]
call esi
mov eax, dword [ebp - 0x1c]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ad60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4decb5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov edi, ecx
mov ecx, 0x51bcaa
call fcn.004dd914
mov esi, dword [ebp + 8]
push 8
call fcn.004b09db
mov dword [ebp + 8], eax
mov dword [eax], esi
mov dword [eax + 4], edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
push ecx
push 0
push eax
push 0x40cac0
push 0
push 0
call fcn.004bdd88
add esp, 0x1c
mov dword [ebp - 0x14], eax
pop edi
pop esi
test eax, eax
je 0x40adfc
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x40adef
push ecx
push eax
call fcn.004b2284
add esp, 8
test eax, eax
jne 0x40adf6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push 1
call fcn.004b219f
push eax
call fcn.004b2172
push 6
mov dword [ebp - 0x10], 0
call fcn.004b219f
int3