joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40afc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
pushal
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], 6
add bh, al
inc ebp
fadd qword [eax + eax]
add byte [eax], al
xor ebx, ebx
inc ebx
mov edi, 6
mov dword [ebp - 0x14], 0x46d1fa
in al, dx
cli
rol dword [esi], 1
and dword [ebp - 0x20], 0
mov edx, dword [ebp - 0x14]
movzx edx, byte [edx + 2]
shl edx, 9
add dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
xor eax, 0x4d
mov byte [ebp - 0x29], al
mov edx, dword [ebp - 0x14]
movzx edx, byte [edx + 1]
shl edx, 0xc
add dword [ebp - 0x20], edx
mov dword [ebp - 4], 3
jmp 0x40b02e
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x14]
movzx edx, byte [eax]
movzx ecx, byte [ebp - 0x29]
xor edx, ecx
mov byte [eax], dl
inc dword [ebp - 4]
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 4], eax
jb 0x40b01a
invalid
mov dword [ebp - 0x30], 0x46d5fa
mov dword [ebp - 0x28], 0x487000
mov eax, ebx
add eax, dword [ebp - 0x18]
sub eax, 7
mov dword [ebp - 8], eax
jmp 0x40b063
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x30]
mov cl, byte [ecx + eax]
mov byte [edx + eax], cl
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x11bc0
jb 0x40b051
mov dword [ebp - 0x34], 0x4a5000
mov dword [ebp - 0x38], 0x47f1fa
mov eax, edi
add eax, ebx
sub eax, 7
mov dword [ebp - 0xc], eax
jmp 0x40b098
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
mov cl, byte [ecx + eax]
mov byte [edx + eax], cl
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x5a58
jb 0x40b086
mov esi, 0x4851fa
mov dword [ebp - 0x3c], 0x10000000
Function at 0x40afd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
pushal
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], 6
add bh, al
inc ebp
fadd qword [eax + eax]
add byte [eax], al
xor ebx, ebx
inc ebx
mov edi, 6
mov dword [ebp - 0x14], 0x46d1fa
in al, dx
cli
rol dword [esi], 1
and dword [ebp - 0x20], 0
mov edx, dword [ebp - 0x14]
movzx edx, byte [edx + 2]
shl edx, 9
add dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
xor eax, 0x4d
mov byte [ebp - 0x29], al
mov edx, dword [ebp - 0x14]
movzx edx, byte [edx + 1]
shl edx, 0xc
add dword [ebp - 0x20], edx
mov dword [ebp - 4], 3
jmp 0x40b02e
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x14]
movzx edx, byte [eax]
movzx ecx, byte [ebp - 0x29]
xor edx, ecx
mov byte [eax], dl
inc dword [ebp - 4]
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 4], eax
jb 0x40b01a
invalid
mov dword [ebp - 0x30], 0x46d5fa
mov dword [ebp - 0x28], 0x487000
mov eax, ebx
add eax, dword [ebp - 0x18]
sub eax, 7
mov dword [ebp - 8], eax
jmp 0x40b063
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x30]
mov cl, byte [ecx + eax]
mov byte [edx + eax], cl
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x11bc0
jb 0x40b051
mov dword [ebp - 0x34], 0x4a5000
mov dword [ebp - 0x38], 0x47f1fa
mov eax, edi
add eax, ebx
sub eax, 7
mov dword [ebp - 0xc], eax
jmp 0x40b098
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
mov cl, byte [ecx + eax]
mov byte [edx + eax], cl
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x5a58
jb 0x40b086
mov esi, 0x4851fa
mov dword [ebp - 0x3c], 0x10000000

Function at 0x40b504
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x40fd30
call fcn.0040b7c8
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x40b564
cmp eax, 0xffffffff
je 0x40b564
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x40b55d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x40b55d
cmp edx, 0x10000000
jae 0x40b55d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x40b55a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40b5d0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40b60e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x40b606
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x40b610
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x40b5f6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40b6e0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x40b711
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40b711
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x40b711
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40ddf8
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [0x4116f4]
push edi
mov edi, edx
test edi, edi
je 0x40de47
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x40de46
and dword [ebp - 4], 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileType]
and eax, 0xffff7fff
cmp eax, 2
lea eax, [ebp - 4]
push 0
push eax
jne 0x40de3a
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x40de46
lea eax, [esi + esi]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop edi
pop ebx
leave
ret 4

Function at 0x40e75f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x411368]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp ax, word [0x411930]
jne 0x40e7fb
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 6
push eax
push 1
xor edi, edi
push edi
push 0x406cf0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e7fa
push esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 0x406da8
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x40e7fa
push 3
push dword [edi*8 + 0x401790]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x40e7ec
inc edi
cmp edi, 0x1c
jb 0x40e7ca
jmp 0x40e7fa
mov ax, word [edi*8 + 0x401794]
mov word [0x411930], ax
pop edi
mov ecx, dword [ebp - 4]
mov ax, word [0x411930]
xor ecx, ebp
call fcn.0040afd0
leave
ret
Function at 0x406310
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
push esi
mov ebx, ecx
mov ecx, 0x51322b
push edi
mov dword [ebp - 0x18], ebx
call fcn.004ba18d
mov edi, dword [ebx + 4]
lea eax, [ebp - 0x14]
push eax
or edi, 0x2001f
mov dword [ebp - 0xc], 0
push edi
push 0
push dword [ebp + 8]
mov dword [ebp - 8], 0
push dword [ebx]
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [ebp - 0xc]
test esi, esi
jne 0x406420
xor esi, esi
test eax, eax
je 0x406380
push eax
call ebx
mov esi, eax
mov eax, dword [ebp - 0x14]
and edi, 0x300
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edi
test esi, esi
jne 0x406420
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [ebp - 0x20]
push ecx
push esi
push esi
push esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0x100
push ecx
lea ecx, [ebp - 0x220]
push ecx
push esi
push eax
call edi
test eax, eax
jne 0x4063f8
nop
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0xc]
call fcn.00406310
mov esi, eax
test esi, esi
jne 0x40641d
lea eax, [ebp - 0x20]
mov dword [ebp - 0x10], 0x100
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x220]
push eax
push esi
push dword [ebp - 0xc]
call edi
test eax, eax
je 0x4063c0
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x406409
push eax
call ebx
mov dword [ebp - 0xc], 0
push dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 8], 0
call fcn.00404d00
mov esi, eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x406427
push eax
call ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x406f10
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4df7f6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov ecx, 0x513279
mov dword [ebp - 0x10], 0
call fcn.004ba18d
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x4e7954
call fcn.00403a90
mov eax, dword [ebp + 8]
push ecx
mov esi, esp
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], esi
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00404960
add esp, 4
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0
call fcn.0040aba0
mov ebx, dword [ebp - 0x20]
add esp, 0xc
sub ebx, dword [ebp - 0x24]
sar ebx, 2
call fcn.00405850
mov ecx, eax
test ecx, ecx
je 0x407120
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
xor edi, edi
mov byte [ebp - 4], 2
or ecx, 0xffffffff
test ebx, ebx
je 0x4070b0
nop
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + edi*4]
lea esi, [eax + edi*4]
mov eax, dword [ecx - 0xc]
test edi, edi
jne 0x40707d
cmp eax, 1
jl 0x40712f
cmp word [ecx + 2], 0x3a
jne 0x4070aa
mov ecx, dword [ecx - 0x10]
mov byte [ebp - 4], 4
test ecx, ecx
je 0x40700e
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x407024
call fcn.00405850
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x407120
mov eax, dword [ecx]
call dword [eax + 0xc]
or dword [ebp - 0x10], 1
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
push 1
push 0x4e7874
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00404a40
mov esi, dword [ebp - 0x14]
lea ecx, [ebp + 8]
add esp, 0x14
push dword [esi - 0xc]
push esi
call fcn.00404630
and dword [ebp - 0x10], 0xfffffffe
add esi, 0xfffffff0
mov byte [ebp - 4], 2
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4070a1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4070a1
push eax
push ecx
lea ecx, [ebp + 8]
call fcn.00404630
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 1
push 0x4e7874
lea ecx, [ebp + 8]
call fcn.00404630
inc edi
cmp edi, ebx
jb 0x406fd0
mov eax, dword [ebp + 8]
or ecx, 0xffffffff
mov byte [ebp - 4], 0
lea edx, [eax - 0x10]
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4070c9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x40710f
lea ecx, [ebp - 0x24]
push ecx
push dword [ebp - 0x20]
push eax
call fcn.00403790
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
mov edx, dword [ebp - 0x24]
sub ecx, edx
and ecx, 0xfffffffc
mov eax, edx
cmp ecx, 0x1000
jb 0x407105
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40712a
push ecx
push edx
call fcn.004ba17f
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.00404840
call fcn.004c10cf
push 0x80070057
call fcn.00404840
int3
Function at 0x4078c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4df93d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ecx, 0x513279
mov dword [ebp - 4], 0
call fcn.004ba18d
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], 1
push 0x4e794c
push eax
call fcn.00404430
add esp, 0xc
push 0x4e794c
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
call fcn.00404360
add esp, 0xc
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.00404120
mov edx, dword [ebp - 0x18]
or esi, 0xffffffff
mov byte [ebp - 4], 2
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407956
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c]
mov eax, esi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407974
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp + 0x1c], 0
mov ecx, 0x440
mov eax, 0x40
mov dword [ebp - 0x58], 0x3c
cmovne eax, ecx
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x54], eax
mov ecx, 5
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0xc]
movlpd qword [ebp - 0x34], xmm0
movlpd qword [ebp - 0x2c], xmm0
movlpd qword [ebp - 0x24], xmm0
mov eax, dword [eax]
mov dword [ebp - 0x44], eax
xor eax, eax
cmp byte [ebp + 0x18], al
mov dword [ebp - 0x4c], 0
cmovne eax, ecx
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x38], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x4079f7
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov dword [edi], eax
cmp byte [ebp + 0x10], 0
je 0x407a16
push dword [ebp + 0x20]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x407a38
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 0x408460
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dface
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov ecx, 0x513279
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
call fcn.004ba18d
call fcn.00405850
mov ecx, eax
test ecx, ecx
je 0x408572
mov eax, dword [ecx]
push edi
call dword [eax + 0xc]
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], 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 sub.WTSAPI32.dll_WTSEnumerateSessionsW
test eax, eax
je 0x408561
mov edx, dword [ebp - 0x18]
xor eax, eax
push esi
mov esi, dword [ebp - 0x1c]
test edx, edx
je 0x40850c
lea ecx, [esi + 8]
nop dword [eax]
cmp dword [ecx], 0
je 0x4084ff
inc eax
add ecx, 0xc
cmp eax, edx
jb 0x4084f0
jmp 0x40850c
lea eax, [eax + eax*2]
movq xmm0, qword [esi + eax*4]
movq qword [ebp - 0x2c], xmm0
push esi
call sub.WTSAPI32.dll_WTSFreeMemory
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
push 5
push dword [ebp - 0x2c]
push 0
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x408560
mov edx, dword [ebp - 0x10]
test edx, edx
jne 0x408535
xor ecx, ecx
jmp 0x40854f
mov ecx, edx
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408540
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.00406920
push dword [ebp - 0x10]
call sub.WTSAPI32.dll_WTSFreeMemory
pop esi
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404840
int3
Function at 0x408da0
Capabilities:
Contain obfuscated stackstrings
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dfc37
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x29c
mov ecx, 0x513279
mov dword [ebp - 4], 0
mov dword [ebp - 0x94], 0
call fcn.004ba18d
push 0x208
lea eax, [ebp - 0x2a8]
push 0
push eax
call fcn.004bd210
add esp, 0xc
lea eax, [ebp - 0x2a8]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
call fcn.00405850
mov ecx, eax
test ecx, ecx
je 0x408fc5
mov eax, dword [ecx]
push esi
push edi
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x2a8]
mov dword [ebp - 4], 1
push eax
mov ecx, esi
call fcn.00404870
test al, al
jne 0x408e62
lea ecx, [ebp - 0x2a8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408e44
sub ecx, edx
lea eax, [ebp - 0x2a8]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00406920
push ebx
xor eax, eax
mov dword [ebp - 4], 0
mov word [ebp - 0x14], ax
lea ecx, [ebp - 0x12]
lea eax, [ebp - 0xd]
mov dword [ebp - 0x94], 1
push eax
push ecx
lea edx, [ebp - 0x90]
mov dword [ebp - 0x90], 0x4d005c
push edx
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x8c], 0x630069
mov dword [ebp - 0x88], 0x6f0072
mov dword [ebp - 0x84], 0x6f0073
mov dword [ebp - 0x80], 0x740066
mov dword [ebp - 0x7c], 0x49005c
mov dword [ebp - 0x78], 0x74006e
mov dword [ebp - 0x74], 0x720065
mov dword [ebp - 0x70], 0x65006e
mov dword [ebp - 0x6c], 0x200074
mov dword [ebp - 0x68], 0x780045
mov dword [ebp - 0x64], 0x6c0070
mov dword [ebp - 0x60], 0x72006f
mov dword [ebp - 0x5c], 0x720065
mov dword [ebp - 0x58], 0x51005c
mov dword [ebp - 0x54], 0x690075
mov dword [ebp - 0x50], 0x6b0063
mov dword [ebp - 0x4c], 0x4c0020
mov dword [ebp - 0x48], 0x750061
mov dword [ebp - 0x44], 0x63006e
mov dword [ebp - 0x40], 0x5c0068
mov dword [ebp - 0x3c], 0x730055
mov dword [ebp - 0x38], 0x720065
mov dword [ebp - 0x34], 0x500020
mov dword [ebp - 0x30], 0x6e0069
mov dword [ebp - 0x2c], 0x65006e
mov dword [ebp - 0x28], 0x5c0064
mov dword [ebp - 0x24], 0x610054
mov dword [ebp - 0x20], 0x6b0073
mov dword [ebp - 0x1c], 0x610042
mov dword [ebp - 0x18], 0x5c0072
call fcn.00403eb0
mov edx, dword [eax]
mov dword [ebp - 4], 2
pop ebx
test edx, edx
jne 0x408f8b
xor eax, eax
jmp 0x408f9f
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408f90
sub eax, edi
sar eax, 1
push eax
push edx
mov ecx, esi
call fcn.00404630
lea ecx, [ebp - 0xa0]
call fcn.0040b7b0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404840
int3
Function at 0x408fd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dfc97
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
mov ecx, 0x513279
mov dword [ebp - 0x14], 0
call fcn.004ba18d
mov dword [ebp - 4], 1
call fcn.00405850
mov ecx, eax
test ecx, ecx
je 0x409122
mov eax, dword [ecx]
push esi
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
push 0x104
push 0
mov dword [ebp - 0x14], 2
mov dword [esi], eax
lea eax, [ebp - 0x138]
push eax
call fcn.004bd210
add esp, 0xc
lea eax, [ebp - 0x138]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x138]
mov ecx, esi
push eax
call fcn.004041a0
push 2
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00405e50
push eax
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.00404120
mov edx, dword [ebp - 0x28]
or eax, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40909b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0xd]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push ecx
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], 0x55005c
push edx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x20], 0x650073
mov dword [ebp - 0x1c], 0x730072
mov dword [ebp - 0x18], 0x5c
call fcn.00403eb0
mov edx, dword [eax]
mov dword [ebp - 4], 3
test edx, edx
jne 0x4090ea
xor eax, eax
jmp 0x409100
mov eax, edx
push edi
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4090f0
sub eax, edi
sar eax, 1
pop edi
push eax
push edx
mov ecx, esi
call fcn.00404630
lea ecx, [ebp - 0x34]
call fcn.0040b7b0
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.00404840
int3
Function at 0x4096a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push esi
mov ecx, 0x513279
call fcn.004ba18d
push 6
push 0
mov dword [ebp - 8], 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
lea eax, [ebp - 8]
push eax
push 0x4e792c
push 0
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHCreateItemFromParsingName]
test eax, eax
js 0x4097c5
push ebx
push edi
lea eax, [ebp - 1]
mov dword [ebp - 0x70], 0x790053
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x6c], 0x740073
push ecx
lea edx, [ebp - 0x70]
mov dword [ebp - 0x68], 0x6d0065
push edx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x64], 0x56002e
mov dword [ebp - 0x60], 0x6c006f
mov dword [ebp - 0x5c], 0x6d0075
mov dword [ebp - 0x58], 0x2e0065
mov dword [ebp - 0x54], 0x690042
mov dword [ebp - 0x50], 0x4c0074
mov dword [ebp - 0x4c], 0x63006f
mov dword [ebp - 0x48], 0x65006b
mov dword [ebp - 0x44], 0x500072
mov dword [ebp - 0x40], 0x6f0072
mov dword [ebp - 0x3c], 0x650074
mov dword [ebp - 0x38], 0x740063
mov dword [ebp - 0x34], 0x6f0069
mov dword [ebp - 0x30], 0x6e
call fcn.00403eb0
lea ecx, [ebp - 0x2c]
push ecx
push dword [eax]
call dword [sym.imp.PROPSYS.dll_PSGetPropertyKeyFromName]
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.0040b7b0
pop edi
pop ebx
test esi, esi
js 0x4097c5
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x18]
push edx
xorps xmm0, xmm0
lea edx, [ebp - 0x2c]
movups xmmword [ebp - 0x18], xmm0
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x34]
test eax, eax
js 0x4097c5
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp esi, 1
je 0x4097d2
cmp esi, 3
je 0x4097d2
cmp esi, 5
je 0x4097d2
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x4097d2
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4097e0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
mov ecx, 0x513279
push 0xffffffffffffffff
push 0x4dfd65
push eax
mov dword fs:[0], esp
sub esp, 0x214
push esi
call fcn.004ba18d
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x409933
lea eax, [ebp - 0x14]
push eax
call fcn.00408460
push 0x208
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004bd210
add esp, 0x10
mov dword [ebp - 0x18], 0x104
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
call fcn.00405850
mov ecx, eax
test ecx, ecx
je 0x409944
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x10]
call fcn.00404870
test al, al
jne 0x4098af
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409890
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00406920
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
mov byte [ebp - 4], 0
cmp dword [eax - 0xc], 0
je 0x4098fa
cmp dword [esi - 0xc], 0
je 0x4098fa
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00404240
add esp, 8
test al, al
je 0x4098fa
lea ecx, [ebp - 0x10]
call fcn.00403f90
lea ecx, [ebp - 0x14]
call fcn.00403f90
mov al, 1
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409914
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax - 0x10]
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x409933
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
xor al, al
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404840
int3