joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44e3e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b2fb0
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x4e1370]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 0x18]
mov eax, dword [ecx + 4]
cmp byte [eax + 0x31], 0
mov edi, ecx
jne 0x44e436
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
cmp dword [eax + 0xc], ecx
jae 0x44e42c
mov eax, dword [eax + 8]
jmp 0x44e430
mov edi, eax
mov eax, dword [eax]
cmp byte [eax + 0x31], 0
je 0x44e422
mov esi, dword [ebx]
mov edx, dword [ebx + 0x18]
mov dword [esp + 0x14], edx
test esi, esi
je 0x44e447
cmp esi, esi
je 0x44e44c
call fcn.00490387
cmp edi, dword [esp + 0x14]
je 0x44e45c
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
cmp ecx, dword [edi + 0xc]
jae 0x44e4c4
lea edx, [esp + 0x18]
push edx
call fcn.0046fda0
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x68], 0
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x40], ecx
call fcn.0044f0c0
push edi
push esi
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x1c]
push edx
mov eax, ebx
mov byte [esp + 0x78], 1
call fcn.0044e800
mov esi, dword [eax]
mov edi, dword [eax + 4]
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x6c], 0
call fcn.0044eab0
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x6c], 0xffffffff
call fcn.0044eab0
test esi, esi
jne 0x44e4ef
call fcn.00490387
cmp edi, dword [esi + 0x18]
jne 0x44e4d7
call fcn.00490387
lea eax, [edi + 0x10]
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [esi]
jmp 0x44e4cd
Function at 0x4500a0
Capabilities:
Query or enumerate registry value

Disassembly:
push eax
mov eax, dword [esp + 8]
push ecx
mov ecx, dword [eax]
lea edx, [esp + 0xc]
push edx
push 0
push str.Favorites
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4500cd
mov eax, dword [esp + 4]
sub eax, 3
neg eax
sbb eax, eax
and eax, 0xd
ret 4

Function at 0x4504a0
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x4b471b
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x4e1370]
xor eax, esp
mov dword [esp + 0x23c], eax
push esi
push edi
mov eax, dword [0x4e1370]
xor eax, esp
push eax
lea eax, [esp + 0x24c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x25c]
push 0
push 2
mov dword [esp + 0x18], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [esp + 0x18]
push ecx
push eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0x22c
call sub.KERNEL32.dll_Process32FirstW
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4505ef
mov edx, dword [0x4e7464]
mov eax, dword [edx + 0xc]
mov ecx, 0x4e7464
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0xc], edi
mov dword [esp + 0x254], 0
mov ecx, dword [esp + 0x20]
push ecx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4505c8
lea edi, [esp + 0xc]
mov ecx, esi
call fcn.0047d61b
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4505c4
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x450573
mov edi, dword [esp + 0xc]
sub eax, edx
sar eax, 1
push eax
push ebx
push edi
call fcn.00492259
add esp, 0xc
test eax, eax
jne 0x4505c8
mov esi, dword [esp + 0x20]
lea eax, [edi - 0x10]
mov dword [esp + 0x254], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4505c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x45060f
mov edi, dword [esp + 0xc]
lea eax, [edi - 0x10]
mov dword [esp + 0x254], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4505ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x450504
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x24c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x23c]
xor ecx, esp
call fcn.0049021b
add esp, 0x24c
ret
Function at 0x451700
Capabilities:
Create process on windows
Query environment variable

Disassembly:
sub esp, 0x21c
mov eax, dword [0x4e1370]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
mov ebp, dword [esp + 0x228]
push esi
push edi
mov ebx, edx
mov esi, ecx
mov dword [esp + 0x10], ebp
call fcn.0047db85
mov edi, eax
test edi, edi
jne 0x45179a
push 0x20a
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00494b20
add esp, 0xc
push 0x104
lea ecx, [esp + 0x18]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x4ca3d8
push ebx
call fcn.004920dc
add esp, 8
push edi
lea edx, [esp + 0x18]
push edi
test eax, eax
jne 0x451775
push str._Processid:FCC74B77_EC3E_4dd8_A80B_008A702075A9
jmp 0x451777
push 0
push edx
push 0x4c6e4c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
setg cl
mov eax, ecx
test eax, eax
je 0x45179a
call fcn.0047db85
mov edi, eax
mov edx, dword [esp + 0x234]
mov eax, dword [esi]
lea ebp, [esi + 0x50]
push ebp
push edx
lea ebx, [esi + 0x54]
push eax
mov ecx, ebx
mov edx, edi
call fcn.00450640
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4517e7
call fcn.0047b3d7
cmp dword [0x4e8830], edi
je 0x4517e7
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x234]
mov esi, dword [esi]
push ebx
push ebp
push eax
push ecx
push esi
call fcn.00451070
add esp, 0x14
jmp 0x4517e9
mov eax, edi
mov ecx, dword [esp + 0x228]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0049021b
add esp, 0x21c
ret 8
Function at 0x451d20
Capabilities:
Check if file exists
Create process on windows
Create process suspended

Disassembly:
push 0xffffffffffffffff
push 0x4b8b58
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push edi
mov eax, dword [0x4e1370]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [esi]
xor ebp, ebp
sub eax, 0x10
mov dword [esp + 0x18], ebp
call fcn.0040bbd0
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
mov dword [esp + 0x2c], ebp
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x400
or eax, ecx
jge 0x451d87
mov ecx, 0x400
lea eax, [esp + 0x14]
call fcn.00405860
mov edi, dword [esp + 0x14]
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov dword [esp + 0x1c], eax
mov eax, dword [edi - 8]
push eax
push edi
call fcn.004913b1
add esp, 8
cmp eax, ebp
jl 0x451f10
cmp eax, dword [edi - 8]
jg 0x451f10
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
cmp dword [edi - 0xc], ebp
jle 0x451de8
push 0x22
push edi
call fcn.00490c36
add esp, 8
cmp eax, ebp
je 0x451de8
sub eax, edi
sar eax, 1
jne 0x451de8
lea edx, [esp + 0x14]
push edx
mov eax, 1
xor ebx, ebx
call fcn.004535b0
mov edi, dword [esp + 0x14]
cmp dword [esp + 0x1c], ebp
je 0x451dfd
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x451dfd
mov dword [esp + 0x18], edi
mov eax, dword [esi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x400
or eax, ecx
jge 0x451e22
mov ecx, 0x400
mov eax, esi
call fcn.00405860
mov edx, dword [esp + 0x18]
mov eax, dword [esi]
lea ebp, [esi + 0x48]
push ebp
lea ecx, [esi + 4]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
push 0
push ecx
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x451e64
push ecx
push eax
call fcn.004913b1
add esp, 8
test eax, eax
jl 0x451f10
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x451f10
mov dword [ecx - 0xc], eax
mov edx, dword [esi]
xor ecx, ecx
mov word [edx + eax*2], cx
test ebx, ebx
jne 0x451ed5
mov ebx, dword [esp + 0x34]
push ebx
push str._systemroot_System32dllhost.exe
mov edx, 0x4ca3d8
mov ecx, esi
call fcn.00451700
test eax, eax
jne 0x451eaa
push ebx
push str._systemroot_System32cmd.exe
mov edx, str.cmd.exe
mov ecx, esi
call fcn.00451700
mov ebx, eax
test eax, eax
je 0x451ed5
mov edx, dword [esi + 0x50]
push edx
push 0
push 0x101
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp], eax
mov eax, dword [esi + 0x54]
push eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [esi + 0x4c], eax
lea eax, [edi - 0x10]
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x451ef9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x20
ret 4
push 0x80070057
call fcn.004058d0
int3
Function at 0x4525f0
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x214
mov eax, dword [0x4e1370]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x16]
mov dword [esp + 0xc], 0
push ecx
mov word [esp + 0x18], ax
call fcn.00494b20
mov edx, dword [esp + 0x228]
add esp, 0xc
push edx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x452684
lea eax, [esp + 4]
push eax
push 4
lea ecx, [esp + 0x10]
push ecx
push esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x45267d
mov eax, dword [esp + 8]
push 0x104
lea edx, [esp + 0x10]
push edx
push eax
push esi
call sub.PSAPI.DLL_GetModuleBaseNameW
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
lea ecx, [esp + 0x10]
call fcn.00405a20
mov ecx, dword [esp + 0x214]
pop esi
xor ecx, esp
mov eax, edi
call fcn.0049021b
add esp, 0x214
ret
Function at 0x4529b0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4b5518
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e1370]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
lea eax, [esp + 0x14]
push eax
mov eax, ebp
call fcn.00452510
xor ebx, ebx
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], ebx
je 0x452a32
xor ecx, ecx
cmp dword [esp + 0x34], 0x642
mov dword [esp + 0x28], 0xffffffff
sete cl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov esi, ecx
mov ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x452a2b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x452b84
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 0x18]
push ecx
push ebp
mov byte [esp + 0x30], 1
call fcn.00452ba0
cmp eax, ebx
jne 0x452b2d
mov edx, dword [0x4e7464]
mov eax, dword [edx + 0xc]
mov ecx, 0x4e7464
mov ebx, 1
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x30], esi
mov byte [esp + 0x28], 2
mov eax, dword [esi - 8]
mov ecx, ebx
sub ecx, dword [esi - 4]
sub eax, 0x400
or eax, ecx
mov dword [esp + 0x34], 0x400
jge 0x452a9e
mov ecx, 0x400
lea eax, [esp + 0x30]
call fcn.00405860
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x18]
push ecx
lea edi, [esp + 0x38]
call fcn.004547e0
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004913b1
add esp, 8
test eax, eax
jl 0x452b23
cmp eax, dword [esi - 8]
jg 0x452b23
mov dword [esi - 0xc], eax
xor edx, edx
mov word [esi + eax*2], dx
mov eax, dword [ebp + 0x18]
cmp dword [eax - 0xc], edx
je 0x452b00
cmp dword [esi - 0xc], edx
jne 0x452b00
lea ecx, [esp + 0x30]
call fcn.00406090
mov eax, dword [esp + 0x18]
test eax, eax
je 0x452af0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
call fcn.00406090
xor eax, eax
jmp 0x452b84
lea eax, [esi - 0x10]
mov byte [esp + 0x28], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x452b4b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x452b4b
push 0x80070057
call fcn.004058d0
mov ebp, dword [ebp + 0x10]
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x452b46
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x452b4b
mov ebx, 1
mov eax, dword [esp + 0x18]
test eax, eax
je 0x452b5a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x452b82
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 8
Function at 0x4547e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
push esi
add eax, eax
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
push 0
mov dword [edi], 0
mov ecx, dword [eax]
push str.UninstallString
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x45484e
mov eax, dword [esp + 8]
cmp eax, 1
je 0x45481f
cmp eax, 2
jne 0x45483a
mov eax, dword [esp]
test esi, esi
je 0x454848
test eax, eax
je 0x454843
test al, 1
jne 0x45483a
mov edx, eax
shr edx, 1
cmp word [esi + edx*2 - 2], 0
je 0x454848
mov eax, 0xd
pop ecx
ret 4
xor ecx, ecx
mov word [esi], cx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 4
Function at 0x457690
Capabilities:
Get common file path

Disassembly:
sub esp, 0x220
mov eax, dword [0x4e1370]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [esi + 0xfc]
push edi
test eax, eax
jne 0x45783d
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x1a]
push edx
mov word [esp + 0x1c], cx
call fcn.00494b20
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
add esp, 0xc
push 0
push 0
lea eax, [esp + 0x18]
push eax
push 0
call edi
test eax, eax
je 0x457700
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push ecx
lea ecx, [esp + 0x20]
call fcn.00405a20
mov ecx, esi
call fcn.00458890
push 0
push 2
lea edx, [esp + 0x18]
push edx
push 0
call edi
test eax, eax
je 0x45772d
push 1
push 4
push ecx
mov eax, esp
mov dword [esp + 0x14], esp
push eax
lea ecx, [esp + 0x20]
call fcn.00405a20
mov ecx, esi
call fcn.00458890
push 0
push 0x17
lea ecx, [esp + 0x18]
push ecx
push 0
call edi
test eax, eax
je 0x45775a
push 1
push 4
push ecx
mov edx, esp
mov dword [esp + 0x14], esp
push edx
lea ecx, [esp + 0x20]
call fcn.00405a20
mov ecx, esi
call fcn.00458890
push 0
push 0x16
lea eax, [esp + 0x18]
push eax
push 0
call edi
test eax, eax
je 0x457787
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push ecx
lea ecx, [esp + 0x20]
call fcn.00405a20
mov ecx, esi
call fcn.00458890
push 0
push 0x19
lea edx, [esp + 0x18]
push edx
push 0
call edi
test eax, eax
je 0x4577b4
push 0
push 1
push ecx
mov eax, esp
mov dword [esp + 0x14], esp
push eax
lea ecx, [esp + 0x20]
call fcn.00405a20
mov ecx, esi
call fcn.00458890
push 0
push 0xb
lea ecx, [esp + 0x18]
push ecx
push 0
call edi
test eax, eax
je 0x4577e1
push 0
push 1
push ecx
mov edx, esp
mov dword [esp + 0x14], esp
push edx
lea ecx, [esp + 0x20]
call fcn.00405a20
mov ecx, esi
call fcn.00458890
push 0
push 0x1a
lea eax, [esp + 0x18]
push eax
push 0
call edi
test eax, eax
je 0x45783d
lea edi, [esp + 0xc]
mov ecx, 0x104
lea edx, [esp + 0x10]
call fcn.0045e4f0
test eax, eax
jl 0x457821
mov eax, dword [esp + 0xc]
mov ecx, 0x104
sub ecx, eax
lea edx, [esp + eax*2 + 0x10]
mov eax, str.MicrosoftInternet_ExplorerQuick_Launch
call fcn.0045e530
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push ecx
lea ecx, [esp + 0x20]
call fcn.00405a20
mov ecx, esi
call fcn.00458890
mov ecx, dword [esp + 0x21c]
pop edi
xor ecx, esp
call fcn.0049021b
add esp, 0x220
ret
Function at 0x45ed80
Capabilities:
Get user security identifier

Disassembly:
sub esp, 0x62c
mov eax, dword [0x4e1370]
xor eax, esp
mov dword [esp + 0x628], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x222]
push ecx
mov dword [esp + 0x14], 0x208
mov word [esp + 0x224], ax
call fcn.00494b20
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x26]
push eax
mov word [esp + 0x28], dx
call fcn.00494b20
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x442]
push edx
mov word [esp + 0x444], cx
call fcn.00494b20
mov ecx, 0x104
add esp, 0x24
mov eax, 0x4cb128
lea edx, [esp + 0x218]
mov dword [esp], 0x208
mov dword [esp + 4], ecx
call fcn.0044c6a0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x428]
push edx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x22c]
push edx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x45ee81
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x45ee81
lea ecx, [esp + 8]
push ecx
mov edx, esi
lea ecx, [esp + 0x14]
call fcn.0045eea0
add esp, 4
test eax, eax
je 0x45ee81
mov eax, 1
mov ecx, dword [esp + 0x628]
xor ecx, esp
call fcn.0049021b
add esp, 0x62c
ret
mov ecx, dword [esp + 0x628]
xor ecx, esp
xor eax, eax
call fcn.0049021b
add esp, 0x62c
ret

Function at 0x45f0a0
Capabilities:
Get session user name
Get user security identifier

Disassembly:
sub esp, 0x630
mov eax, dword [0x4e1370]
xor eax, esp
mov dword [esp + 0x62c], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x226]
push ecx
mov dword [esp + 0xc], 0x208
mov word [esp + 0x228], ax
call fcn.00494b20
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x2a]
push eax
mov word [esp + 0x2c], dx
call fcn.00494b20
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x446]
push edx
mov word [esp + 0x448], cx
call fcn.00494b20
mov eax, 0x104
add esp, 0x24
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x220]
push ecx
mov dword [esp + 0xc], 0x208
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x45f1ab
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x42c]
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x230]
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x45f1ab
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x45f1ab
lea eax, [esp]
push eax
mov edx, esi
lea ecx, [esp + 0x18]
call fcn.0045eea0
add esp, 4
test eax, eax
je 0x45f1ab
mov eax, 1
mov ecx, dword [esp + 0x62c]
xor ecx, esp
call fcn.0049021b
add esp, 0x630
ret
mov ecx, dword [esp + 0x62c]
xor ecx, esp
xor eax, eax
call fcn.0049021b
add esp, 0x630
ret
Function at 0x460810
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x218
mov eax, dword [0x4e1370]
xor eax, esp
mov dword [esp + 0x214], eax
mov eax, dword [esp + 0x220]
push ebx
push esi
mov esi, dword [esp + 0x224]
push edi
lea ebx, [esp + 0xc]
push ebx
or eax, 0x20019
push eax
xor edi, edi
push edi
push edx
push ecx
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4608ea
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.00405a20
mov esi, dword [esp + 0x14]
cmp dword [esi - 0xc], edi
jle 0x4608ba
cmp dword [esp + 0x230], 1
jne 0x4608ba
push 0x206
lea edx, [esp + 0x1e]
xor ecx, ecx
push edi
push edx
mov word [esp + 0x24], cx
call fcn.00494b20
mov edx, dword [esp + 0x18]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push edi
push edi
push esi
push edx
mov dword [esp + 0x28], 0x206
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4608bf
cmp dword [esp + 0x10], edi
jbe 0x4608bf
mov edi, 1
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4608ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x220]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0049021b
add esp, 0x218
ret
Function at 0x4627a0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x4eb67c]
push esi
xor esi, esi
cmp eax, esi
je 0x4627bb
lea esp, [esp]
cmp dword [eax + 4], esi
jne 0x462803
mov eax, dword [eax]
cmp eax, esi
jne 0x4627b0
push 0x40
push 0x3000
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp eax, esi
je 0x462803
lea ecx, [eax + 0x20]
mov edx, ecx
mov dword [eax + 4], esi
mov dword [eax + 8], esi
sub edx, eax
nop
mov esi, dword [eax + 4]
mov dword [ecx], esi
mov dword [eax + 4], ecx
add edx, 0x20
add ecx, 0x20
cmp edx, 0xfe0
jbe 0x4627e0
mov ecx, dword [0x4eb67c]
mov dword [eax], ecx
mov dword [0x4eb67c], eax
pop esi
ret

Function at 0x462ae0
Capabilities:
Enumerate threads

Disassembly:
sub esp, 0x20
push edi
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [esp + 4], edi
cmp edi, 0xffffffff
je 0x462bcb
lea eax, [esp + 8]
push eax
push edi
mov dword [esp + 0x10], 0x1c
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x462bc4
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapReAlloc]
cmp dword [esp + 0xc], 0x10
jb 0x462ba0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x18], eax
jne 0x462ba0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esp + 0x14], eax
je 0x462ba0
mov eax, dword [esi]
test eax, eax
jne 0x462b67
mov ecx, dword [0x4e8818]
push 0x200
push eax
push ecx
mov dword [esi + 4], 0x80
call edi
mov dword [esi], eax
test eax, eax
je 0x462bbf
jmp 0x462b90
mov ecx, dword [esi + 4]
cmp dword [esi + 8], ecx
jb 0x462b90
lea edx, [ecx*8]
push edx
push eax
mov eax, dword [0x4e8818]
push 0
push eax
call ebx
test eax, eax
je 0x462bbf
mov ecx, dword [esi + 4]
add ecx, ecx
mov dword [esi + 4], ecx
mov dword [esi], eax
mov eax, dword [esi + 8]
mov edx, dword [esi]
mov ecx, dword [esp + 0x14]
mov dword [edx + eax*4], ecx
inc eax
mov dword [esi + 8], eax
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
push eax
mov dword [esp + 0x14], 0x1c
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x462b24
mov edi, dword [esp + 8]
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
add esp, 0x20
ret

Function at 0x462bd0
Capabilities:
Suspend thread

Disassembly:
push ebx
push esi
mov esi, eax
xor ebx, ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call fcn.00462ae0
cmp dword [esi], ebx
je 0x462c2e
cmp dword [esi + 8], ebx
jbe 0x462c2e
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_OpenThread]
push edi
mov eax, dword [esi]
mov ecx, dword [eax + ebx*4]
push ecx
push 0
push 0x5a
call ebp
mov edi, eax
test edi, edi
je 0x462c26
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
push edi
call fcn.004629b0
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [esi + 8]
jb 0x462bf4
pop edi
pop ebp
pop esi
pop ebx
ret