joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409f76
Capabilities:
Parse pe header

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

Function at 0x40d8d7
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [0x32fc938]
test eax, eax
je 0x40d916
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40d916
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40d916
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40d916
cmp dword [ecx + 0x74], 0xe
jbe 0x40d916
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x43bdd6
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, dword [esp + 0x3c]
xor ebx, ebx
cmp esi, 1
je 0x43be06
cmp esi, 2
je 0x43be06
cmp esi, 4
je 0x43be06
cmp esi, 8
je 0x43be06
cmp esi, 0x18
je 0x43be06
cmp esi, 0x20
je 0x43be06
xor eax, eax
jmp 0x43bfd3
mov ecx, dword [0x3301310]
push ebp
push edi
xor edi, edi
mov dword [esp + 0x10], edi
test ecx, ecx
jle 0x43bfcf
mov edx, dword [esp + 0x28]
mov eax, dword [edi*4 + 0x3301578]
cmp dword [eax], edx
je 0x43be39
inc edi
mov dword [esp + 0x10], edi
cmp edi, ecx
jl 0x43be20
jmp 0x43bfcf
cmp dword [esp + 0x38], 0x20
jne 0x43bfa6
mov eax, dword [eax + 8]
test eax, eax
je 0x43be79
cmp esi, 0x20
je 0x43be55
cmp esi, 0xffffffff
jne 0x43be79
push esi
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call eax
jmp 0x43bfcd
mov eax, dword [esp + 0x2c]
inc eax
imul ebp, eax, 3
and ebp, 0xfffffffc
mov eax, ebp
mov dword [esp + 0x14], ebp
imul eax, dword [esp + 0x30]
push eax
push 0
push dword [0x32fee44]
call dword [0x32fca98]
mov dword [esp + 0x18], eax
test eax, eax
je 0x43bfcf
mov ebx, dword [esp + 0x30]
test ebx, ebx
jle 0x43bf71
mov edx, dword [esp + 0x24]
mov ecx, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ecx
mov esi, edx
test eax, eax
jle 0x43bf50
mov ebp, ecx
mov edi, eax
mov ecx, 0xff
movzx eax, byte [esi + 2]
sub eax, ecx
movzx ecx, byte [esi + 3]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebp + 2], al
movzx eax, byte [esi + 1]
sub eax, ecx
movzx ecx, byte [esi + 3]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebp + 1], al
movzx eax, byte [esi]
lea esi, [esi + 4]
sub eax, ecx
movzx ecx, byte [esi - 1]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebp], al
lea ebp, [ebp + 3]
sub edi, 1
jne 0x43bedf
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
add edx, dword [esp + 0x34]
add ecx, ebp
sub dword [esp + 0x24], 1
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], ecx
jne 0x43becc
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x10]
mov eax, dword [edi*4 + 0x3301578]
push esi
push dword [esp + 0x44]
mov esi, dword [esp + 0x20]
push dword [esp + 0x44]
push ebp
push ebx
push dword [esp + 0x40]
push esi
push dword [esp + 0x3c]
call dword [eax + 4]
push esi
push 0
push dword [0x32fee44]
mov ebx, eax
call dword [0x32fca8c]
jmp 0x43bfcf
cmp dword [esp + 0x38], 0x18
jne 0x43bfcf
push esi
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call dword [eax + 4]
mov ebx, eax
pop edi
mov eax, ebx
pop ebp
pop esi
pop ebx
add esp, 0xc
ret 0x28
Function at 0x4b3826
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
lea eax, [esp + 0x10]
push ebx
push esi
push eax
push dword [esp + 0x78]
xor esi, esi
mov ebx, esi
call dword [0x32fcce4]
test eax, eax
je 0x4b39bd
push dword [esp + 0x28]
call fcn.0043a57a
test eax, eax
je 0x4b3866
push dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
call dword [0x32fcd98]
jmp 0x4b39bd
push edi
push esi
call dword [0x32fcd80]
mov edi, eax
test edi, edi
je 0x4b39aa
push ebp
mov ebp, dword [0x32fcdb8]
lea eax, [esp + 0x34]
push eax
push 0x18
push dword [esp + 0x38]
call ebp
cmp eax, 0x18
jne 0x4b39a2
push 0x2c
lea eax, [esp + 0x50]
push esi
push eax
call fcn.0041fa80
mov eax, dword [esp + 0x44]
add esp, 0xc
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x54], eax
xor eax, eax
push 0x20
inc eax
mov dword [esp + 0x50], 0x28
mov word [esp + 0x5c], ax
pop eax
push esi
push esi
mov word [esp + 0x62], ax
lea eax, [esp + 0x1c]
push eax
push esi
lea eax, [esp + 0x5c]
mov dword [esp + 0x6c], esi
push eax
push edi
call dword [0x32fcddc]
mov ebx, eax
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x4b39a2
mov esi, dword [0x32fcd88]
push ebx
push edi
call esi
push 2
xor eax, eax
push eax
push eax
push dword [esp + 0x48]
push dword [esp + 0x48]
push dword [esp + 0x90]
push eax
push eax
push edi
call dword [0x32fcd74]
push dword [esp + 0x2c]
push edi
call esi
lea eax, [esp + 0x34]
push eax
push 0x18
push dword [esp + 0x38]
call ebp
cmp eax, 0x18
jne 0x4b39a2
mov ebp, dword [esp + 0x38]
xor esi, esi
mov edx, dword [esp + 0x3c]
mov eax, ebp
shl eax, 2
mov dword [esp + 0x10], eax
test edx, edx
jle 0x4b39a2
mov eax, dword [0x32fcd94]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
mov ecx, edx
sub ecx, esi
add eax, 3
dec ecx
xor ebx, ebx
imul ecx, dword [esp + 0x10]
add eax, ecx
mov dword [esp + 0x7c], eax
test ebp, ebp
jle 0x4b3999
push esi
push ebx
push edi
call dword [esp + 0x24]
mov ecx, dword [esp + 0x7c]
test eax, eax
setne al
dec al
mov byte [ecx], al
add ecx, 4
mov ebp, dword [esp + 0x38]
inc ebx
mov dword [esp + 0x7c], ecx
cmp ebx, ebp
jl 0x4b3971
mov edx, dword [esp + 0x3c]
inc esi
cmp esi, edx
jl 0x4b3954
mov ebx, dword [esp + 0x1c]
push edi
call dword [0x32fcd90]
pop ebp
push dword [esp + 0x28]
mov esi, dword [0x32fcd98]
call esi
push dword [esp + 0x2c]
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x68
ret 4
Function at 0x4ec650
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8f000]
mov dword [edi + 0xcf740], 0xb204d659
push edi
jmp 0x4ec67a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4ec681
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ec670
mov eax, 1
add ebx, ebx
jne 0x4ec693
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4ec6a4
jne 0x4ec6c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ec6c3
dec eax
add ebx, ebx
jne 0x4ec6b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4ec688
add ebx, ebx
jne 0x4ec6bf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4ec715
xor ecx, ecx
sub eax, 3
jb 0x4ec6db
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4ec74a
sar eax, 1
mov ebp, eax
jmp 0x4ec6e6
add ebx, ebx
jne 0x4ec6e6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ec6b4
inc ecx
add ebx, ebx
jne 0x4ec6f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ec6b4
add ebx, ebx
jne 0x4ec701
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4ec6f6
jne 0x4ec712
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4ec6f6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4ec734
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4ec726
jmp 0x4ec676
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4ec734
add edi, ecx
jmp 0x4ec676
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4ec752
cmp byte [edi], 0x11
jne 0x4ec752
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 0x4ec757
lea edi, [esi + 0xe5000]
mov eax, dword [edi]
or eax, eax
je 0x4ec7cf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xf3ba4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xf3d20]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4ec784
mov ecx, edi
jns 0x4ec7b3
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 + 0xf3d24]
or eax, eax
je 0x4ec7c9
mov dword [ebx], eax
add ebx, 4
jmp 0x4ec7a1
call dword [esi + 0xf3d34]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4ec800
cmp al, 0xef
ja 0x4ec7f3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4ec7d5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4ec7e2
mov ebp, dword [esi + 0xf3d28]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x4ec834
sub esp, 0xffffff80
jmp 0x420577
Function at 0x403900
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4420e8
push 0x428050
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x444690]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
mov word [ebp - 0x20], 0x500
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x4039ad
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x2c]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x28]
jmp 0x4039ad
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0041fd32
mov esp, ebp
pop ebp
ret

Function at 0x4039d0
Capabilities:
Get session user name
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x442108
push 0x428050
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x444690]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x120], bl
push 0x103
push ebx
lea eax, [ebp - 0x11f]
push eax
call fcn.00422330
add esp, 0xc
mov dword [ebp - 0x12c], 0x104
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x403aa9
mov edx, 6
mov dword [ebp - 0x130], edx
lea esi, [ebp - 0x120]
or ecx, 0xffffffff
mov dword [ebp - 0x124], esi
mov eax, edx
dec edx
mov dword [ebp - 0x130], edx
test eax, eax
je 0x403a89
movzx eax, byte [esi]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x4407b8]
inc esi
jmp 0x403a5f
not ecx
xor ebx, ebx
cmp ecx, 0x39b5d60d
sete bl
jmp 0x403aa3
mov dword [ebp - 0x128], ebx
mov dword [ebp - 4], 0xfffffffe
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0041fd32
mov esp, ebp
pop ebp
ret
Function at 0x4049d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4049e9
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404a24
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x404a20
lea ebx, [ebx]
cmp esi, edx
jae 0x404a24
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x404a10
cmp esi, edx
jb 0x404a2b
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x408280
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438d6b
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x444690]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, edx
mov dword [ebp - 0x30], ecx
xor edi, edi
mov edx, 0x445c50
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], edi
call fcn.0040ad40
mov eax, dword [ebp - 0x34]
cmp dword [eax - 0xc], edi
je 0x4083e1
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
push ecx
push eax
push ecx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.0040a930
mov esi, dword [ebp - 0x40]
test eax, eax
jne 0x4083d3
test esi, esi
je 0x4083de
sub esp, 8
lea ecx, [ebp - 0xf0]
call fcn.004089f0
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 3
call fcn.0040a2f0
mov edx, ebx
mov ecx, eax
call fcn.0040a5b0
mov ecx, eax
call fcn.0040a2f0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xf0]
call fcn.00408b20
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x2c]
lea edx, [ebp - 0x2c]
cmp edi, 8
cmovae edx, ebx
lea ecx, [edx + 2]
lea ecx, [ecx]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x408350
sub edx, ecx
sar edx, 1
lea ecx, [ebp - 0x2c]
lea eax, [edx*2 + 2]
push eax
cmp edi, 8
cmovae ecx, ebx
push ecx
push 2
push 0
push dword [ebp - 0x30]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
neg edi
sbb edi, edi
inc edi
cmp dword [ebp - 0x18], 8
jb 0x408397
push dword [ebp - 0x2c]
call fcn.0041fd2d
add esp, 4
xor eax, eax
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 2
call fcn.00408aa0
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x88], 0x440f0c
call fcn.0041f8a1
add esp, 4
test esi, esi
je 0x4083de
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x34]
lea edx, [eax - 0x10]
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408411
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x408411
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041fd32
mov esp, ebp
pop ebp
ret
Function at 0x40a9c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x670
mov eax, dword [0x444690]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x440f18
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
push 0x440f28
push str.Shlwapi.dll
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call esi
mov esi, eax
test edi, edi
je 0x40ab08
test esi, esi
je 0x40ab08
push 0x40
lea eax, [ebp - 0x66c]
push 0
push eax
call fcn.00422330
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x640], ax
mov dword [ebp - 0x62c], eax
mov dword [ebp - 0x620], eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
xorps xmm0, xmm0
push eax
mov dword [ebp - 0x670], 0x44
movq qword [ebp - 0x628], xmm0
call fcn.00422330
add esp, 0x18
lea eax, [ebp - 0x20c]
push 0
push 0x25
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x440f4c
lea eax, [ebp - 0x20c]
push eax
call esi
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionW]
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
call fcn.00422330
push ebx
lea eax, [ebp - 0x20c]
push eax
push str.__s__start___s_
lea eax, [ebp - 0x61c]
push 0x208
push eax
call fcn.00420b3c
add esp, 0x20
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x670]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041fd32
mov esp, ebp
pop ebp
ret
Function at 0x40ab20
Capabilities:
Modify service
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438e10
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x444690]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
xor edi, edi
mov edx, 0x446070
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], esi
call fcn.0040ad40
mov eax, dword [ebp - 0x1c]
cmp dword [eax - 0xc], esi
je 0x40ac57
push 5
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
je 0x40ac57
push 0x17
push dword [ebp - 0x1c]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x24], eax
test esi, esi
je 0x40ac4e
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push esi
mov dword [ebp - 0x18], 0
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40ac3a
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x11]
push ecx
push eax
push 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x30], 0
call fcn.004050e0
mov eax, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x34]
sub eax, ebx
cmp eax, dword [ebp - 0x18]
jne 0x40ac32
test ebx, ebx
je 0x40ac32
lea ecx, [ebp - 0x18]
push ecx
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x40ac32
cmp dword [ebx + 4], 2
je 0x40ac32
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebx + 8]
push 2
push dword [ebx]
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
lea ecx, [ebp - 0x34]
call fcn.00404fe0
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor esi, esi
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor edi, edi
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40ac86
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40ac86
test esi, esi
je 0x40ac91
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x40ac9c
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40bdf0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov dword [ebp - 0xc], ecx
push esi
mov edx, 0x446288
lea ecx, [ebp - 4]
xor ebx, ebx
call fcn.0040ad40
mov eax, dword [ebp - 4]
cmp dword [eax - 0xc], ebx
je 0x40beae
xor esi, esi
push edi
lea esp, [esp]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 8]
push edx
push 0
xor ecx, ecx
push 2
test esi, esi
push 0
setne cl
push 0
push 0
push eax
mov dword [ebp - 8], 0
add ecx, 0x80000001
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40bea0
mov edx, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
test edx, edx
jne 0x40be61
lea eax, [edx + 0xd]
jmp 0x40be8e
mov eax, edx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40be66
sub eax, ebx
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push 0x441070
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ebx, ebx
test eax, eax
sete bl
test edi, edi
je 0x40bea0
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
inc esi
cmp esi, 2
jl 0x40be20
pop edi
lea esi, [eax - 0x10]
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40bec8
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40de90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438ef7
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x444690]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x44102c
mov dword [edi + 0x60], 0x440ec0
mov dword [ebp - 4], 0
mov eax, dword [edi]
lea esi, [edi + 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], 1
mov dword [edi + eax], 0x440ecc
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push ecx
lea eax, [ecx - 8]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
push esi
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.0040f200
mov dword [ebp - 4], 2
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], 0x441020
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call fcn.0040f2b0
lea eax, [esi + 4]
mov dword [esi + 0xc], eax
lea eax, [esi + 0x14]
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
mov dword [esi], 0x440fe4
mov byte [esi + 0x4c], 0
mov byte [esi + 0x45], 0
lea ecx, [esi + 8]
mov dword [esi + 0x10], ecx
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [0x47bf9c]
mov dword [esi + 0x48], eax
mov dword [esi + 0x50], 0
mov dword [esi + 0x40], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40ee30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x438ff8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x444690]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x444690]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x40ef84
cmp byte [ebx + 0x45], 0
je 0x40ef84
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x40ee90
xor al, al
jmp 0x40ef86
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
cmp ecx, 0x10
cmovae eax, dword [esp + 0x18]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], 8
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
jmp 0x40eed0
cmp dword [esp + 0x2c], 0x10
mov ecx, dword [ebx + 0x40]
lea eax, [esp + 0x14]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x2c]
lea edi, [esp + 0x1c]
cmovae edi, dword [esp + 0x1c]
lea esi, [esp + 0x1c]
cmovae esi, dword [esp + 0x1c]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x40ef11
dec eax
je 0x40ef15
sub eax, 2
je 0x40ef6b
xor bl, bl
jmp 0x40ef6d
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp ecx, 0x10
lea eax, [esp + 0x18]
cmovae eax, edx
sub esi, eax
je 0x40ef4c
push dword [ebx + 0x50]
cmp ecx, 0x10
push esi
lea eax, [esp + 0x20]
cmovae eax, edx
push 1
push eax
call fcn.00421109
add esp, 0x10
cmp esi, eax
jne 0x40ef0d
cmp byte [ebx + 0x45], 0
je 0x40ef6b
test esi, esi
jne 0x40eed0
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.0040eb30
jmp 0x40eed0
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x40ef80
push dword [esp + 0x18]
call fcn.0041fd2d
add esp, 4
mov al, bl
jmp 0x40ef86
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0041fd32
mov esp, ebp
pop ebp
ret