joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4078f8
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0040797b
jae 0x407906
xor ecx, ecx
call fcn.0040797b
jae 0x407935
xor eax, eax
call fcn.0040797b
jae 0x407945
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0040797b
adc al, al
jae 0x407927
jne 0x407971
stosb byte es:[edi], al
jmp 0x407909
call fcn.00407987
sub ecx, ebx
jne 0x40794e
call fcn.00407985
jmp 0x40796d
lodsb al, byte [esi]
shr eax, 1
je 0x407997
adc ecx, ecx
jmp 0x40796a
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.00407985
cmp eax, 0x7d00
jae 0x40796a
cmp ah, 5
jae 0x40796b
cmp eax, 0x7f
ja 0x40796c
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x407909
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret
Function at 0x40b02c
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffe0
push esi
push edi
push ebx
sub esp, 0xd4
mov dword [esp + 0x58], ecx
mov ecx, 0xfe338407
mov dword [esp + 0x5c], edx
call fcn.00414100
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edx
push 0x40
push dword [esp + 0x58]
push dword [esp + 0x58]
mov eax, dword [esp + 0x64]
lea ecx, [esp + 0x4c]
mov edx, dword [eax]
call fcn.0040b278
push 0
lea ecx, [esp + 0x44]
call fcn.0040f4e0
mov edi, dword [eax + 0x3c]
lea ecx, [esp + 0xa0]
push 0x108
mov ebx, dword [ecx - 0x50]
add ebx, edi
mov eax, dword [ecx - 0x4c]
adc eax, 0
push eax
push ebx
mov esi, dword [ecx - 0x48]
mov edx, dword [esi]
call fcn.0040b278
lea eax, [esp + 0xa0]
push eax
lea ecx, [eax - 0x60]
call fcn.0040f458
lea ecx, [esp + 0xa0]
call fcn.0040f678
push 0
lea ecx, [esp + 0x44]
call fcn.0040f4e0
mov edx, eax
add edi, edx
movzx eax, word [edx + 0x14]
add edi, eax
sub edi, edx
movzx edx, word [edx + 6]
add edi, 0x18
mov dword [esp + 0xb0], edx
test edx, edx
jle 0x40b20a
xor esi, esi
lea eax, [esp + 0x60]
cdq
movd xmm1, eax
movd xmm0, edx
punpckldq xmm1, xmm0
movdqu xmmword [eax + 0x60], xmm1
push 0x28
mov ebx, dword [esp + 0x54]
add ebx, edi
mov eax, dword [esp + 0x58]
adc eax, 0
push eax
push ebx
mov eax, dword [esp + 0x64]
lea ecx, [esp + 0x9c]
mov edx, dword [eax]
call fcn.0040b278
lea eax, [esp + 0x90]
push eax
lea ecx, [eax - 0x50]
call fcn.0040f458
lea ecx, [esp + 0x90]
call fcn.0040f678
push 0
lea ecx, [esp + 0x44]
call fcn.0040f4e0
mov ebx, eax
mov eax, dword [esp + 0x5c]
test dword [ebx + 0x24], eax
je 0x40b1f9
add esp, 0xc
push 0x30
push 0
mov edx, dword [ebx + 0xc]
lea eax, [esp + 0x5c]
push eax
add edx, dword [eax - 0x10]
mov ecx, dword [eax - 0xc]
adc ecx, 0
add edx, dword [ebx + 8]
mov dword [eax + 0x58], edx
adc ecx, 0
mov dword [eax + 0x54], ecx
call fcn.00413670
mov ecx, dword [esp + 0x58]
pxor xmm5, xmm5
movq xmm4, qword [0x41b810]
mov eax, dword [ecx]
cdq
movd xmm2, dword [ecx]
movq xmm0, qword [ecx + 0x40]
movq qword [esp], xmm0
movd xmm1, edx
punpckldq xmm2, xmm1
mov dword [esp + 8], 6
movq qword [esp + 0xc], xmm2
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0x18], ecx
movq qword [esp + 0x1c], xmm5
movdqu xmm3, xmmword [esp + 0xc0]
movq qword [esp + 0x24], xmm3
movq qword [esp + 0x2c], xmm4
movq qword [esp + 0x34], xmm5
call fcn.004146b0
test eax, eax
jge 0x40b219
inc esi
add edi, 0x28
cmp esi, dword [esp + 0xb0]
jl 0x40b100
lea ecx, [esp + 0x40]
call fcn.0040f678
xor eax, eax
xor edx, edx
jmp 0x40b266
mov edi, dword [ebx + 0xc]
lea ecx, [esp + 0x40]
mov ebx, dword [ebx + 8]
mov esi, dword [ecx + 0x20]
add esi, dword [ecx + 0x38]
sub esi, dword [ecx + 0x10]
lea eax, [edi + ebx]
sub esi, eax
mov edx, dword [ebp + 8]
sub edx, esi
add edx, 0x10
mov dword [ecx + 0x18], edx
call fcn.0040f678
mov ecx, dword [esp + 0x50]
xor eax, eax
add ecx, edi
mov edi, dword [esp + 0x54]
adc edi, 0
add ecx, ebx
adc edi, 0
cmp esi, dword [ebp + 8]
cmovl eax, dword [esp + 0x58]
cdq
sub ecx, eax
mov eax, ecx
sbb edi, edx
mov edx, edi
add esp, 0xd4
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x411c90
Capabilities:
Access peb ldr_data

Disassembly:
push esi
push edi
push ebx
push ebp
mov ebp, edx
mov esi, eax
cmp ebp, 0xfe338407
jne 0x411cb7
mov eax, esi
mov edx, 0x41bde0
push 4
pop ecx
add esp, 0xfffffff4
call fcn.004113b0
jmp 0x411d3c
cmp ebp, 0xa7e21d79
jne 0x411cdd
mov edx, dword fs:[0x18]
push 0
mov ecx, esi
mov edx, dword [edx + 0x30]
mov ebx, dword [edx + 0xc]
mov ebp, dword [ebx + 0xc]
push dword [ebp + 0x30]
call fcn.0040d000
jmp 0x411d3c
mov edi, dword [0x41d21c]
mov ecx, edi
xor ebx, ebx
test edi, edi
je 0x411d13
xor edx, edx
xor eax, eax
cmp dword [eax + ecx + 0xc], 0
je 0x411d05
cmp ebp, dword [eax + ecx + 8]
je 0x411d45
inc edx
add eax, 0x10
cmp edx, 0x10
jl 0x411cef
mov ecx, dword [ecx + 0x100]
test ecx, ecx
jne 0x411ceb
test ebx, ebx
jne 0x411d25
mov eax, ebp
push eax
call fcn.00411d58
test eax, eax
je 0x411d33
mov edi, dword [0x41d21c]
inc ebx
cmp ebx, 2
jge 0x411d33
mov ecx, edi
test edi, edi
je 0x411d0f
jmp 0x411ceb
mov ecx, esi
push 0
call fcn.0040cfc8
mov eax, esi
pop ebp
pop ebx
pop edi
pop esi
ret 8
add ecx, eax
push ecx
mov ecx, esi
call fcn.0040cfe4
jmp 0x411d3c

Function at 0x4140c0
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
push esi
push esi
push 0x33
call 0x4140cc
add dword [esp], 5
retf
Function at 0x414628
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
sub esp, 0x14
mov eax, ecx
mov edx, dword [ebp + 0x10]
mov edi, edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
or edi, eax
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
je 0x4146a7
mov edi, esi
or edi, ecx
je 0x4146a7
cmp dword [ebp - 0xc], 0
je 0x4146a7
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], ecx
push 0x33
call 0x414666
add dword [esp], 5
retf
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret 0x10

Function at 0x4146b0
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebx
mov ebx, esp
and esp, 0xffffffe0
push ebp
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push esi
push edi
sub esp, 0xd0
mov eax, dword [ebx + 8]
or eax, dword [ebx + 0xc]
jne 0x4146de
mov eax, 0xc0000139
xor edx, edx
dec edx
jmp 0x414850
mov esi, dword [ebx + 0x10]
lea ecx, [ebx + 0x14]
test esi, esi
jg 0x4146f3
pxor xmm0, xmm0
movq qword [ebp - 0x78], xmm0
jmp 0x41470e
dec esi
lea edx, [ebx + 0x17]
and edx, 0xfffffffc
mov dword [ebx + 0x10], esi
lea ecx, [edx + 8]
movq xmm0, qword [ecx - 8]
movq qword [ebp - 0x78], xmm0
test esi, esi
jg 0x414719
pxor xmm0, xmm0
movq qword [ebp - 0x58], xmm0
jmp 0x414734
add edx, 0xb
dec esi
and edx, 0xfffffffc
mov dword [ebx + 0x10], esi
lea ecx, [edx + 8]
movq xmm0, qword [ecx - 8]
movq qword [ebp - 0x58], xmm0
test esi, esi
jg 0x41473f
pxor xmm0, xmm0
movq qword [ebp - 0x38], xmm0
jmp 0x41476e
add edx, 0xb
dec esi
and edx, 0xfffffffc
mov dword [ebx + 0x10], esi
lea ecx, [edx + 8]
movq xmm0, qword [ecx - 8]
movq qword [ebp - 0x38], xmm0
test esi, esi
jle 0x41476e
add edx, 0xb
dec esi
and edx, 0xfffffffc
mov dword [ebx + 0x10], esi
lea ecx, [edx + 8]
movq xmm0, qword [ecx - 8]
jmp 0x414772
pxor xmm0, xmm0
xor eax, eax
lea edi, [ebp - 0x18]
movq qword [ebp - 0xb8], xmm0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add ecx, 3
movd xmm3, esi
and ecx, 0xfffffffc
mov eax, ecx
cdq
mov eax, esi
movd xmm1, ecx
mov dword [ebp - 0xd0], 0
movd xmm0, edx
cdq
punpckldq xmm1, xmm0
movq qword [ebp - 0xd8], xmm1
movd xmm2, edx
punpckldq xmm3, xmm2
movq qword [ebp - 0x98], xmm3
mov dword [ebp - 0xd0], esp
and esp, 0xfffffff0
push 0x33
call 0x4147cf
add dword [esp], 5
retf
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x414b10
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push esi
push edi
push ebx
push ebp
sub esp, 0x200
mov ebp, ecx
mov ebx, edx
test ebp, ebp
je 0x414c3d
test ebx, ebx
je 0x414c3d
cmp dword [esp + 0x214], 0
je 0x414c3d
cmp dword [esp + 0x218], 0
je 0x414c3d
cmp dword [esp + 0x21c], 0
jne 0x414b62
cmp dword [esp + 0x220], 0
je 0x414c3d
xor ecx, ecx
mov eax, ecx
xor edx, edx
idiv ebx
mov dl, byte [edx + ebp]
mov byte [esp + ecx], cl
mov byte [esp + ecx + 0x100], dl
inc ecx
cmp ecx, 0x100
jl 0x414b64
xor esi, esi
xor ebp, ebp
xor ebx, ebx
movzx edx, byte [esp + ebp]
inc esi
movzx ecx, byte [esp + ebp + 0x100]
add ecx, edx
add ecx, ebx
movzx ebx, cl
mov al, byte [esp + ebx]
mov byte [esp + ebp], al
inc ebp
mov byte [esp + ebx], dl
cmp esi, 0x100
jl 0x414b86
cmp dword [esp + 0x218], 0
jle 0x414c3d
xor ebp, ebp
xor ebx, ebx
inc ebx
xor ecx, ecx
movzx ebx, bl
mov esi, dword [esp + 0x214]
movzx eax, byte [esp + ebx]
add ecx, eax
movzx ecx, cl
mov dl, byte [esp + ecx]
mov byte [esp + ebx], dl
mov byte [esp + ecx], al
movzx edi, byte [esp + ebx]
add eax, edi
movzx eax, al
movzx edx, byte [ebp + esi]
movzx esi, byte [esp + eax]
xor edx, esi
cmp dword [esp + 0x220], 0
jne 0x414c11
lea esi, [esp + 0x21c]
mov eax, dword [esi]
inc ebx
mov byte [ebp + eax], dl
inc ebp
cmp ebp, dword [esi - 4]
jl 0x414bc1
jmp 0x414c3d
push dword [esp + 0x224]
push edx
mov dword [esp + 0x108], ecx
call dword [esp + 0x228]
mov ecx, dword [esp + 0x100]
test al, al
jne 0x414c3d
inc ebp
inc ebx
cmp ebp, dword [esp + 0x218]
jl 0x414bc1
add esp, 0x200
pop ebp
pop ebx
pop edi
pop esi
ret 0x14

Function at 0x415090
Capabilities:
Encode data using xor

Disassembly:
xor edx, edx
movdqu xmm5, xmmword [0x41bf30]
pxor xmm3, xmm3
movdqu xmm4, xmmword [0x41bf40]
movdqu xmm2, xmmword [0x41bf50]
movdqu xmm1, xmmword [0x41bf60]
movdqa xmm6, xmm4
xor al, al
movdqa xmm0, xmm2
inc al
pand xmm0, xmm6
pcmpeqd xmm7, xmm7
pcmpeqd xmm0, xmm3
psrld xmm6, 1
pxor xmm0, xmm7
movdqa xmm7, xmm0
pandn xmm7, xmm6
pxor xmm6, xmm1
pand xmm6, xmm0
por xmm6, xmm7
cmp al, 8
jb 0x4150bc
movdqu xmmword [ecx + edx*4], xmm6
add edx, 4
paddd xmm4, xmm5
cmp edx, 0x100
jb 0x4150b6
ret
Function at 0x4187f0
Capabilities:
Parse pe header

Disassembly:
push esi
push edi
push ebx
push ebp
sub esp, 0x20
mov ebp, ecx
mov eax, dword [esp + 0x34]
movzx edx, word [eax]
cmp edx, 0x5a4d
jne 0x418819
mov eax, dword [esp + 0x34]
mov ebx, dword [eax + 0x3c]
add ebx, eax
cmp dword [ebx], 0x4550
je 0x41883c
push 0xa7083a73
push 0x10154545
call fcn.0041303c
test eax, eax
je 0x4189c6
push 0xc1
int3
push 0x790529cb
push 0xfe338407
mov edi, dword [ebx + 0x34]
mov esi, dword [ebx + 0x50]
call fcn.0041303c
mov ecx, eax
test ecx, ecx
je 0x418867
xor edx, edx
lea eax, [esp + 4]
push edx
push 0x1c
push eax
push edx
push edi
push 0xffffffffffffffff
call ecx
mov eax, dword [esp + 0x14]
cmp eax, 0x1000
je 0x4188a9
cmp eax, 0x2000
je 0x418890
cmp eax, 0x10000
jne 0x4188b0
xor eax, eax
cmp esi, dword [esp + 0x10]
cmova edi, eax
mov edx, 0x3000
jmp 0x4188b0
mov eax, 0x1000
mov edx, 0x3000
cmp esi, dword [esp + 0x10]
cmovbe edx, eax
push 0
pop eax
cmova edi, eax
jmp 0x4188b0
mov edx, 0x3000
xor edi, edi
push 0xffffffffffffffff
push 4
push edx
mov ecx, edi
mov edx, esi
call fcn.00412840
mov dword [esp], eax
cmp dword [esp], 0
je 0x4188e0
push 0x18
pop ecx
call fcn.00413974
mov esi, eax
test esi, esi
jne 0x418900
xor edx, edx
dec edx
mov ecx, dword [esp]
call fcn.0041288c
push 0xa7083a73
push 0x10154545
call fcn.0041303c
test eax, eax
je 0x4189c6
push 0xe
int3
mov edi, dword [esp]
xor edx, edx
mov dword [esi + 4], edi
mov dword [esi + 0xc], edx
mov dword [esi + 8], edx
mov byte [esi + 0x10], dl
push dword [ebx + 0x54]
push dword [esp + 0x38]
push edi
call fcn.004136b4
add esp, 0xc
push ebx
mov edx, dword [esp + 0x38]
mov ecx, ebp
push edx
push esi
mov edx, dword [edx + 0x3c]
add edx, edi
mov dword [esi], edx
mov dword [edx + 0x34], edi
call fcn.004189dc
mov edx, dword [ebp + 0x10]
mov edi, dword [ebx + 0x34]
mov ebx, edx
sub ebx, edi
neg edi
add edi, dword [esp]
test edx, edx
cmovne edi, ebx
test edi, edi
je 0x41895a
push edi
mov ecx, ebp
push esi
call fcn.00418a5c
mov ecx, ebp
push esi
call fcn.00418ad0
test al, al
je 0x4189a4
cmp byte [ebp + 0xd], 0
je 0x418974
mov ecx, ebp
push esi
call fcn.00418c90
mov edx, dword [esi]
mov ebx, dword [esp]
mov edx, dword [edx + 0x28]
test edx, edx
lea edi, [ebx + edx]
cmovne edx, edi
mov dword [esi + 0x14], edx
cmp byte [ebp + 0xc], 0
je 0x4189ca
test edx, edx
je 0x4189ca
push dword [esp + 0x38]
push 1
push dword [esp + 8]
call edx
mov dword [ebp + 8], eax
test eax, eax
jne 0x4189ca
mov ecx, ebp
push esi
call fcn.00418d50
push 0xa7083a73
push 0x10154545
call fcn.0041303c
test eax, eax
je 0x4189c6
push 0x45a
int3
xor eax, eax
jmp 0x4189d0
mov byte [esi + 0x10], 1
mov eax, esi
add esp, 0x20
pop ebp
pop ebx
pop edi
pop esi
ret 8
Function at 0x4189dc
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push edi
push ebx
push ebp
mov eax, dword [esp + 0x14]
mov edi, dword [eax + 4]
mov eax, dword [eax]
movzx edx, word [eax + 0x14]
lea esi, [eax + edx + 0x18]
movzx edx, word [eax + 6]
test edx, edx
jle 0x418a53
xor ebp, ebp
mov eax, dword [esi + 0x10]
test eax, eax
je 0x418a22
push eax
mov eax, dword [esi + 0x14]
add eax, dword [esp + 0x1c]
mov ebx, dword [esi + 0xc]
push eax
add ebx, edi
push ebx
call fcn.004136b4
add esp, 0xc
mov eax, dword [esp + 0x14]
mov dword [esi + 0x18], ebx
jmp 0x418a45
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x38]
test eax, eax
jle 0x418a4b
push eax
mov eax, dword [esi + 0xc]
push 0
add eax, edi
push eax
mov dword [esi + 0x18], eax
call fcn.00413670
add esp, 0xc
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
movzx edx, word [edx + 6]
inc ebp
add esi, 0x28
cmp ebp, edx
jl 0x4189fb
pop ebp
pop ebx
pop edi
pop esi
ret 0xc

Function at 0x419a1d
Capabilities:
Execute syscall

Disassembly:
mov edx, esp
sysenter
ret
Function at 0x8f6370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x8f638e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x91f074
push ecx
mov edi, eax
call fcn.0090a198
mov esi, eax
add esp, 8
test esi, esi
jne 0x8f63cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0090a02e
push esi
call fcn.00909fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x8f9850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x8f98ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x924720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x8f98ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.0090a1e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x8f98ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x924720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x8f992a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.0090b082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x8f9957
mov word [eax], si
add eax, 2
push eax
call fcn.0090b030
add esp, 4
jmp 0x8f9959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x8f98ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x8f98b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x8f9ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x8fa080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x8fa0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x91f458
push ecx
call fcn.0090a1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.0090a1e1
add esp, 0x10
jmp 0x8fa0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0090a20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00909dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.008fa050
mov eax, dword [0x924728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], reloc.wtsapi32.dll_WTSSetSessionInformationW
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x8fa13b
push esi
call fcn.008f9fb0
add esp, 4
mov dword [0x924728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x8fa14c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.008f9ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x8fd440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x8fd4b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x8fd48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x8fd471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x8fd47e
add edx, ecx
cmp ebx, edx
jb 0x8fd48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x8fd467
xor ecx, ecx
jmp 0x8fd4a2
test eax, eax
jne 0x8fd492
xor ecx, ecx
jmp 0x8fd4a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.008fd3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x8fd8f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x8fd921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0x8fd946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x8fd96e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], reloc.wtsapi32.dll_WTSQueryUserToken
jne 0x8fd993
push ecx
push esi
call fcn.008fd4c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret
Function at 0x8fec00
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
xor ecx, ecx
mov cx, word [eax + 0x14]
xor esi, esi
mov si, word [eax + 6]
push edi
xor edi, edi
lea ecx, [ecx + eax + 0x18]
test esi, esi
jbe 0x8fec4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x8fec2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x8fec38
add edx, eax
cmp ebx, edx
jb 0x8fec46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x8fec21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x8fec50
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [ecx + 0x14]
mov esi, dword [ecx + 0xc]
mov ecx, dword [esp + 0x18]
sub eax, esi
add eax, ebx
pop edi
pop esi
add eax, ecx
pop ebx
ret

Function at 0x8fec70
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x8fecb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x8fec9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x8feca8
add edx, ecx
cmp ebx, edx
jb 0x8fecb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x8fec91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x8fef60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.0090b145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x8feffb
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x8fefdd
lea eax, [esp + 0x18]
push eax
jmp 0x8fefe2
push 0x924720
call fcn.0090afd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x8fefb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x8fef40
push 4
push ecx
push eax
call fcn.0090b43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x8ff310
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push 0
push 0
push 0
push edi
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.0090b145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x8ff3ab
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x8ff38d
lea eax, [esp + 0x18]
push eax
jmp 0x8ff392
push 0x924720
call fcn.0090afd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x8ff360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x8fef40
push 4
push ecx
push eax
call fcn.0090b43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret