joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45c709
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x482090
call fcn.0045d3e0
mov edi, 0x94
mov eax, edi
call fcn.0045a8a0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [0x47e1b0]
mov ecx, dword [esi + 0x10]
mov dword [0x4c3c04], ecx
mov eax, dword [esi + 4]
mov dword [0x4c3c10], eax
mov edx, dword [esi + 8]
mov dword [0x4c3c14], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4c3c08], esi
cmp ecx, 2
je 0x45c769
or esi, 0x8000
mov dword [0x4c3c08], esi
shl eax, 8
add eax, edx
mov dword [0x4c3c0c], eax
xor esi, esi
push esi
mov edi, dword [0x47e16c]
call edi
cmp word [eax], 0x5a4d
jne 0x45c7a4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x45c7a4
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x45c7bc
cmp eax, 0x20b
je 0x45c7a9
mov dword [ebp - 0x1c], esi
jmp 0x45c7d0
cmp dword [ecx + 0x84], 0xe
jbe 0x45c7a4
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x45c7ca
cmp dword [ecx + 0x74], 0xe
jbe 0x45c7a4
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0045d81d
pop ecx
test eax, eax
jne 0x45c7e4
push 0x1c
call fcn.0045c6e5
pop ecx
call fcn.0045f877
test eax, eax
jne 0x45c7f5
push 0x10
call fcn.0045c6e5
pop ecx
call fcn.0046310e
mov dword [ebp - 4], esi
call fcn.00462f10
test eax, eax
jge 0x45c80e
push 0x1b
call fcn.0045c6c0
pop ecx
call dword [0x47e164]
mov dword [0x4c52f8], eax
call fcn.00462dee
mov dword [0x4c3a44], eax
call fcn.00462d4c
test eax, eax
jge 0x45c834
push 8
call fcn.0045c6c0
pop ecx
call fcn.00462b19
test eax, eax
jge 0x45c845
push 9
call fcn.0045c6c0
pop ecx
push 1
call fcn.0045e56f
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x45c85b
push eax
call fcn.0045c6c0
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [0x47e168]
call fcn.00462abc
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x45c87c
movzx eax, word [ebp - 0x40]
jmp 0x45c87f
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004011a0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x45c89d
push edi
call fcn.0045e69c
call fcn.0045e6be
jmp 0x45c8cf
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0045d41b
ret
Function at 0x45d5da
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x45d608
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x45d60f
cmp ebx, dword [eax + 4]
jae 0x45d60f
xor eax, eax
jmp 0x45d7ff
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x45d620
xor eax, eax
inc eax
jmp 0x45d7fe
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x45d636
cmp ecx, edx
jae 0x45d77b
cmp dword [eax + 4], 0
je 0x45d63f
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x45d627
cmp dword [ebp + 8], 0
je 0x45d661
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x45d77b
cmp eax, esi
jae 0x45d77b
mov eax, dword [0x4c3a60]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x45d686
cmp dword [esi*4 + 0x4c3a68], edi
je 0x45d77f
inc esi
cmp esi, eax
jl 0x45d674
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x47e150]
test eax, eax
je 0x45d7fb
cmp dword [ebp - 8], 0x1000000
jne 0x45d7fb
test byte [ebp - 0xc], 0xcc
je 0x45d704
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x45d7fb
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x45d7fb
cmp word [eax + 0x18], 0x10b
jne 0x45d7fb
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x45d7fb
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x45d704
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x45d704
test byte [ecx + 0x27], 0x80
jne 0x45d77b
push 1
push 0x4c3aa8
call dword [0x47e1a0]
test eax, eax
jne 0x45d618
mov ecx, dword [0x4c3a60]
test ecx, ecx
mov edx, ecx
jle 0x45d738
lea eax, [ecx*4 + 0x4c3a64]
cmp dword [eax], edi
je 0x45d738
dec edx
sub eax, 4
test edx, edx
jg 0x45d72c
test edx, edx
jne 0x45d769
push 0xf
pop ebx
cmp ecx, ebx
jg 0x45d745
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x45d75d
lea eax, [edx*4 + 0x4c3a68]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x45d74b
cmp ecx, 0x10
jge 0x45d769
inc ecx
mov dword [0x4c3a60], ecx
push 0
push 0x4c3aa8
call dword [0x47e1a0]
jmp 0x45d618
xor eax, eax
jmp 0x45d7fe
test esi, esi
jle 0x45d618
mov ebx, dword [0x47e1a0]
push 1
push 0x4c3aa8
call ebx
test eax, eax
jne 0x45d618
cmp dword [esi*4 + 0x4c3a68], edi
je 0x45d7d5
mov eax, dword [0x4c3a60]
lea esi, [eax - 1]
test esi, esi
jl 0x45d7c3
cmp dword [esi*4 + 0x4c3a68], edi
je 0x45d7bf
dec esi
jns 0x45d7b3
test esi, esi
jge 0x45d7d3
cmp eax, 0x10
jge 0x45d7ce
inc eax
mov dword [0x4c3a60], eax
lea esi, [eax - 1]
jmp 0x45d7d5
je 0x45d7ed
xor ecx, ecx
test esi, esi
jl 0x45d7ed
lea eax, [ecx*4 + 0x4c3a68]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x45d7db
push 0
push 0x4c3aa8
call ebx
jmp 0x45d618
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x468fd0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
xor edx, edx
cmp ecx, edx
je 0x469071
push ebx
push ebp
push esi
mov esi, dword [ecx]
mov byte [esi + 0x16], dl
mov esi, dword [ecx]
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov byte [esi + 0x18], dl
mov esi, dword [ecx]
mov byte [esi + 0x19], dl
mov esi, dword [ecx + 4]
xor eax, eax
cmp esi, edx
push edi
jle 0x46901f
mov edi, dword [ecx]
movzx ebx, byte [edi + edx]
mov ebp, eax
shr ebp, 0x18
xor ebx, ebp
mov ebp, dword [ebx*4 + 0x48c5c0]
shl eax, 8
xor eax, ebp
inc edx
cmp edx, esi
jl 0x469001
xor edx, edx
mov esi, dword [ecx + 0xc]
cmp esi, edx
jle 0x46904c
mov edi, dword [ecx + 8]
lea esp, [esp]
movzx ebx, byte [edi + edx]
mov ebp, eax
shr ebp, 0x18
xor ebx, ebp
mov ebp, dword [ebx*4 + 0x48c5c0]
shl eax, 8
xor eax, ebp
inc edx
cmp edx, esi
jl 0x469030
mov edx, dword [ecx]
mov byte [edx + 0x16], al
mov esi, dword [ecx]
mov edx, eax
shr edx, 8
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov edx, eax
shr edx, 0x10
pop edi
mov byte [esi + 0x18], dl
mov ecx, dword [ecx]
pop esi
shr eax, 0x18
pop ebp
mov byte [ecx + 0x19], al
pop ebx
ret
Function at 0x1001b700
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1001b73f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001b73f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001b73f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1001b73f
cmp dword [ecx + 0x74], 0xe
jbe 0x1001b73f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1001e3fd
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 0x1001e49a
push ebx
push esi
call fcn.1001e3c6
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.1001e35a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001e447
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001e499
push edi
push eax
call fcn.1001c43d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001e467
call fcn.1001cea2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001e498
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001e35a
add esp, 0x20
test eax, eax
jne 0x1001e486
push edi
call fcn.1001cea2
jmp 0x1001e48e
push ebx
call fcn.1001cea2
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 0x1001e707
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10025d10
push 0x10025d08
push str.FlsAlloc
push 0x1f
call fcn.1001e623
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001e73b
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002414c]
call esi
jmp 0x1001e741
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001e785
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10025d20
push 0x10025d18
push str.FlsGetValue
push 0x21
call fcn.1001e623
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001e7bc
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002414c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001e7c4
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10025d28
push 0x10025d20
push str.FlsSetValue
push 0x22
call fcn.1001e623
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001e7fe
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1002414c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10023da0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10023dcd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10023dcd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4013a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44bcf9
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x469930]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x28], 2
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
push eax
mov dword [ebx], vtable.CProcessEnum::CProcessEntry.0
lea esi, [ebx + 4]
mov dword [esp + 0x18], eax
call fcn.00401310
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x2c], 3
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
push eax
mov dword [esp + 0x20], eax
call fcn.00401310
add eax, 0x10
mov dword [ebx + 8], eax
mov byte [esp + 0x30], 4
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
push eax
lea ebp, [ebx + 0xc]
mov dword [esp + 0x28], eax
call fcn.00401310
add eax, 0x10
add esp, 0xc
mov dword [ebp], eax
mov eax, dword [esp + 0x40]
mov byte [esp + 0x28], 5
mov dword [ebx + 0x10], eax
mov eax, dword [esi]
mov edi, dword [eax - 0xc]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or eax, ecx
jge 0x40145a
push edi
mov ecx, esi
call fcn.00401e90
mov eax, dword [esi]
lea ecx, [edi + 1]
push ecx
push eax
call fcn.00430645
add esp, 8
test edi, edi
jl 0x4015a6
mov eax, dword [esi]
cmp edi, dword [eax - 8]
jg 0x4015a6
mov dword [eax - 0xc], edi
mov edx, dword [esi]
mov word [edx + edi*2], 0
mov eax, dword [ebp]
mov esi, dword [eax - 0xc]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or eax, ecx
jge 0x4014a6
push esi
mov ecx, ebp
call fcn.00401e90
mov eax, dword [ebp]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.00430645
add esp, 8
test esi, esi
jl 0x4015a6
mov eax, dword [ebp]
cmp esi, dword [eax - 8]
jg 0x4015a6
mov dword [eax - 0xc], esi
mov edx, dword [ebp]
mov word [edx + esi*2], 0
mov eax, dword [ebx + 8]
mov esi, dword [eax - 0xc]
lea edi, [ebx + 8]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or eax, ecx
jge 0x4014f8
push esi
mov ecx, edi
call fcn.00401e90
mov eax, dword [edi]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.00430645
add esp, 8
test esi, esi
jl 0x4015a6
mov eax, dword [edi]
cmp esi, dword [eax - 8]
jg 0x4015a6
mov dword [eax - 0xc], esi
mov edx, dword [edi]
mov eax, dword [esp + 0x14]
mov word [edx + esi*2], 0
mov byte [esp + 0x28], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401547
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
mov byte [esp + 0x28], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401569
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40158e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x14
push 0x80070057
call fcn.00401280
int3
Function at 0x4017d0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x30
push esi
push edi
lea eax, [esp + 0x10]
push eax
push str.SeDebugPrivilege
push 0
mov dword [esp + 0x18], 0x10
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x4017fb
xor eax, eax
pop edi
pop esi
add esp, 0x30
ret
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x1c]
push ecx
push 0x10
mov dword [esp + 0x3c], edx
lea edx, [esp + 0x34]
push edx
push 0
push ebx
mov dword [esp + 0x40], 1
mov dword [esp + 0x4c], 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jne 0x4017f3
cmp dword [esp + 0x3c], 0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
je 0x401869
or dword [esp + 0x24], 2
jmp 0x40186e
and dword [esp + 0x24], 0xfffffffd
mov edx, dword [esp + 0xc]
push 0
push 0
push edx
lea eax, [esp + 0x24]
push eax
push 0
push ebx
call esi
call edi
neg eax
sbb eax, eax
pop edi
add eax, 1
pop esi
add esp, 0x30
ret

Function at 0x4023d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4023e9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402424
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402420
lea ebx, [ebx]
cmp esi, eax
jae 0x402424
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402410
cmp esi, eax
jb 0x40242a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x40378c
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x469930]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [0x46b324], eax
push esi
mov esi, dword [ebp + 8]
jne 0x4037d7
push 0x46b324
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push 4
mov byte [ebp - 0xc], al
mov byte [ebp - 0xb], al
mov byte [ebp - 0xa], al
mov byte [ebp - 9], al
mov byte [ebp - 8], al
push 1
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
push dword [0x46b324]
push esi
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042d9aa
leave
ret
Function at 0x4037f1
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x469930]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [0x46b328], eax
push esi
mov esi, dword [ebp + 8]
jne 0x40383b
push 0x46b328
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
mov byte [ebp - 0xc], al
mov byte [ebp - 0xb], al
mov byte [ebp - 0xa], al
mov byte [ebp - 9], al
mov byte [ebp - 8], al
push 1
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 7], 2
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
push dword [0x46b328]
push esi
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042d9aa
leave
ret

Function at 0x40392e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0
lea eax, [ebp - 0x3c]
push 0x3c
push eax
call fcn.0042d110
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x30], str.open
mov dword [ebp - 0x24], 0x459a14
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x403990
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x403994
xor al, al
jmp 0x4039a8
cmp dword [ebp + 0x18], 0
je 0x4039a6
push dword [ebp + 0x18]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov al, 1
leave
ret 0x14

Function at 0x4042ca
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x404320
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
test esi, esi
mov ebx, ecx
jne 0x404336
push 0x80004005
call fcn.00401280
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x404339
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8
Function at 0x404887
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x469930]
xor eax, ebp
mov dword [ebp + 0x194], eax
mov eax, dword [ebp + 0x1a0]
push ebx
push esi
push edi
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], esi
call fcn.00404295
mov edi, eax
cmp edi, esi
je 0x4048ef
lea ecx, [ebp - 0x70]
call fcn.00404230
mov eax, edi
mov ecx, dword [ebp + 0x194]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042d9aa
add ebp, 0x198
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x404907
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x70]
call fcn.00404887
cmp eax, esi
jne 0x40493a
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call edi
test eax, eax
je 0x4048f7
lea ecx, [ebp - 0x70]
call fcn.00404230
push dword [ebp - 0x78]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.00404230
mov eax, esi
jmp 0x4048d5
Function at 0x40a065
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
sub esp, 0x404
lea ebp, [esp - 4]
mov eax, dword [0x469930]
xor eax, ebp
mov dword [ebp + 0x404], eax
push 0x20
mov eax, 0x447bf0
call fcn.0042f433
mov edi, ecx
mov eax, dword [ebp + 0x414]
mov ebx, dword [ebp + 0x410]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x418]
mov dword [ebp - 0x18], eax
call dword [0x46ae0c]
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], esi
mov dword [ebp], esi
push 2
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x1c], ebx
jne 0x40a0dd
call fcn.00404159
mov esi, eax
jmp 0x40a1de
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x40a0fa
call fcn.00404159
jmp 0x40a1d3
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
mov dword [ebp - 0x18], eax
je 0x40a0f0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
mov dword [ebp - 0x14], edi
jae 0x40a161
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x40a12d
lea ecx, [ebp]
call fcn.00404833
mov esi, 0x8007000e
lea ecx, [ebp - 0x20]
call fcn.00403d1b
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.0042d9aa
add ebp, 0x408
leave
ret 0x10
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.00404e2c
mov dword [ebp - 4], 1
jmp 0x40a191
mov ebx, dword [ebp]
cmp ebx, esi
jne 0x40a19f
mov esi, 0x8007000e
jmp 0x40a1d5
call dword [0x46ae0c]
push edi
push ebx
push edi
push dword [ebp - 0x18]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x40a0f0
mov ecx, dword [ebp]
push dword [ebp + 0x41c]
mov word [ecx + eax*2], si
push dword [ebp]
lea ecx, [ebp - 0x28]
call fcn.00405c6a
mov esi, eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x40a132
lea ecx, [ebp]
call fcn.00404833
jmp 0x40a132
Function at 0x40c195
Capabilities:
Manipulate safe mode programs

Disassembly:
push 0x14
mov eax, 0x4481b9
call fcn.0042f400
push 0x43
call dword [sym.imp.USER32.dll_GetSystemMetrics]
xor ebx, ebx
cmp eax, ebx
je 0x40c26c
lea ecx, [ebp - 0x20]
call fcn.004124e9
push ebx
push ebx
push 0xf001f
push ebx
push str.SYSTEMCurrentControlSetControlSafeBootMinimalMSIServer
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], ebx
call fcn.00412856
test eax, eax
mov esi, str.Service
jne 0x40c20a
push esi
lea ecx, [ebp - 0x10]
call fcn.00402190
lea eax, [ebp - 0x10]
push eax
push ebx
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.004126b2
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.004012d0
lea ecx, [ebp - 0x18]
call fcn.004124e9
push ebx
push ebx
push 0xf001f
push ebx
push str.SYSTEMCurrentControlSetControlSafeBootNetworkMSIServer
push edi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00412856
test eax, eax
jne 0x40c255
push esi
lea ecx, [ebp - 0x10]
call fcn.00402190
lea eax, [ebp - 0x10]
push eax
push ebx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.004126b2
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004012d0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.0041268b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0041268b
call fcn.0042f49f
ret

Function at 0x40c296
Capabilities:
Modify service

Disassembly:
push ebp
sub esp, 0x90
lea ebp, [esp - 4]
mov eax, dword [0x469930]
xor eax, ebp
mov dword [ebp + 0x90], eax
push 0x10
mov eax, 0x4481dc
call fcn.0042f400
mov edi, ecx
xor ebx, ebx
inc ebx
lea ecx, [ebp]
mov dword [ebp - 0x10], ebx
call fcn.0040ec86
xor esi, esi
cmp dword [ebp + 4], 2
mov dword [ebp - 4], esi
je 0x40c308
mov esi, ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.0040ed05
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x90]
xor ecx, ebp
call fcn.0042d9aa
add ebp, 0x94
leave
ret
mov ecx, edi
call fcn.0040c195
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, esi
mov dword [ebp - 0x14], eax
je 0x40c390
push 0xf01ff
push str.MSIServer
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
cmp ebx, esi
je 0x40c387
mov edi, 0x1000
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [ebp - 0x1c]
push ecx
push edi
push eax
push ebx
mov dword [ebp - 0x18], eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x40c380
mov eax, dword [ebp - 0x18]
cmp dword [eax + 4], 4
jne 0x40c380
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push 3
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x40c380
mov dword [ebp - 0x10], esi
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [ebp - 0x10]
jmp 0x40c2d7