joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4633e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bc3c8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4eec64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 4], 2
mov dword [ebp - 0x10], edi
mov esi, 0xf003f
cmp dword [ebp + 0x18], edi
je 0x463429
call fcn.004658e0
test eax, eax
je 0x463429
mov esi, 0xf013f
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push edi
lea eax, [ebp - 0x10]
push eax
push edi
push esi
push edi
push edi
push edi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x463487
mov eax, dword [ebp + 0x14]
cmp dword [eax - 4], 1
mov esi, dword [eax - 0xc]
jle 0x46345f
mov eax, esi
push eax
lea ecx, [ebp + 0x14]
call fcn.0042157e
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
lea ecx, [esi + esi]
push ecx
push eax
mov eax, dword [ebp - 0x10]
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x46347d
lea edi, [eax + 1]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4634aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4634cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4634f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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
Function at 0x463510
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bba70
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4eec64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], 0
mov esi, 0xf003f
cmp dword [ebp + 0x18], edi
je 0x46355d
call fcn.004658e0
test eax, eax
je 0x46355d
mov esi, 0xf013f
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push esi
push 0
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4635a7
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x10]
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x46359d
lea edi, [eax + 1]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4635ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4635f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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
Function at 0x463670
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4eec64]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x218], esi
test ebx, ebx
je 0x463775
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x463775
lea eax, [ebp - 0x210]
push eax
push 0x10008
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46377a
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [ecx]
mov eax, dword [ebp - 0x210]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x20c]
push edx
push 0
push eax
mov dword [ebp - 0x214], 0x104
call edi
mov esi, eax
cmp esi, 0x103
je 0x463745
test esi, esi
jne 0x463755
mov edx, dword [ebp - 0x210]
lea ecx, [ebp - 0x20c]
push ecx
push edx
call fcn.00463670
mov esi, eax
add esp, 8
test esi, esi
je 0x4636d0
mov ecx, dword [ebp - 0x210]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4220
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x218]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov ecx, dword [ebp - 0x210]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4220
mov esp, ebp
pop ebp
ret
mov eax, 0x3f2
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004a4220
mov esp, ebp
pop ebp
ret
Function at 0x463790
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x4eec64]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x808]
push ecx
push 0x80000
push 8
mov dword [ebp - 0x80c], eax
xor eax, eax
push ebx
push edi
mov dword [ebp - 0x808], eax
mov dword [ebp - 0x810], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x463973
mov edx, dword [ebp - 0x80c]
mov eax, dword [ebp - 0x808]
push edx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
mov ecx, dword [ebp - 0x808]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x463973
lea edx, [ebp - 0x808]
push edx
push 0x40000
push 8
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x463975
mov eax, dword [ebp - 0x80c]
mov ecx, dword [ebp - 0x808]
push eax
push 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
mov edx, dword [ebp - 0x808]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x463973
lea eax, [ebp - 0x808]
push eax
push 0x10009
push 8
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x463975
mov edx, dword [ebp - 0x808]
push eax
push eax
push eax
push eax
push eax
push eax
push eax
lea ecx, [ebp - 0x810]
push ecx
push eax
push eax
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov esi, eax
test esi, esi
jne 0x463975
mov eax, dword [ebp - 0x810]
mov ebx, dword [ebp + 0x14]
test eax, eax
je 0x463905
xor edi, edi
test eax, eax
jbe 0x463905
mov ecx, dword [ebp - 0x808]
push 0x400
lea eax, [ebp - 0x804]
push eax
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov esi, eax
test esi, esi
jne 0x4638fb
mov edx, dword [ebp - 0x80c]
mov ecx, dword [ebp - 0x808]
push ebx
push edx
lea eax, [ebp - 0x804]
push eax
push ecx
call fcn.00463790
inc edi
mov esi, eax
cmp edi, dword [ebp - 0x810]
jb 0x4638b4
cmp esi, 0x103
jne 0x463905
xor esi, esi
mov ecx, dword [ebp - 0x808]
test ebx, ebx
je 0x46395d
lea edx, [ebp - 0x80c]
push edx
push 0
lea eax, [ebp - 0x814]
push eax
push 0
push str.SymbolicLinkValue
push ecx
mov dword [ebp - 0x80c], 0
mov dword [ebp - 0x814], 6
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x463954
mov edx, dword [ebp - 0x808]
push edx
call dword [0x4f3860]
mov esi, eax
mov eax, dword [ebp - 0x808]
push eax
jmp 0x46396d
push ecx
call dword [0x4f3860]
mov edx, dword [ebp - 0x808]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a4220
mov esp, ebp
pop ebp
ret 0x10
Function at 0x463b70
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 2
push 0
push ecx
push edx
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x463bf1
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x463bc9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x463be8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x463c10
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x463c2f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x463c40
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4be1d0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4eec64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
lea esi, [ebx + 9]
cmp dword [ebp + 0x18], ebx
je 0x463c84
mov eax, dword [ebp + 0x10]
push eax
call fcn.0042889c
cmp dword [ebp + 0x14], ebx
je 0x463c97
call fcn.004658e0
test eax, eax
je 0x463c97
mov esi, 0x109
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
push esi
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x463db2
call fcn.004964ca
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x463ccd
push 0x80004005
call fcn.00421000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp + 0x18], esi
mov byte [ebp - 4], 1
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x514
or eax, ecx
jge 0x463d04
push 0x514
lea ecx, [ebp + 0x18]
call fcn.00421527
mov esi, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x10]
push 0x514
push esi
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004a4afb
add esp, 8
test eax, eax
jl 0x463ded
cmp eax, dword [esi - 8]
jg 0x463ded
xor edx, edx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], dx
test edi, edi
jne 0x463d88
cmp dword [ebp + 0x1c], edi
je 0x463d73
push edi
push ecx
lea eax, [esi - 0x10]
mov dword [ebp + 0x14], esp
mov edi, esp
push eax
call fcn.00423fab
add eax, 0x10
mov dword [edi], eax
mov edi, dword [ebp + 0x10]
add esp, 4
call fcn.00465c90
inc dword [ebp - 0x14]
add esp, 8
inc ebx
jmp 0x463ce0
mov eax, dword [ebp + 0x10]
lea ecx, [ebp + 0x18]
push ecx
call fcn.00428b9c
inc dword [ebp - 0x14]
inc ebx
jmp 0x463ce0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x463db2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x463dd8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00421000
int3
Function at 0x464b70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
mov eax, dword [ebp + 8]
setne 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 0x464ba9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x464bb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x464bce
test al, 0x10
je 0x464bce
mov esi, 1
jmp 0x464bd0
xor esi, esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x464bef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x464c00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x464c1e
test al, 0x10
jne 0x464c1e
mov esi, 1
jmp 0x464c20
xor esi, esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x464c3f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x464c50
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x464c60
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push ebx
push eax
call fcn.004a5222
lea ecx, [esi + 2]
push 0x5c
push ecx
mov ebx, eax
mov dword [ebp - 4], 0
call fcn.004a536a
add esp, 0xc
test eax, eax
je 0x464ce3
push edi
sub eax, esi
sar eax, 1
cmp dword [ebp - 4], 0
mov edi, eax
jle 0x464ccc
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x464ca7
sub eax, edx
push edi
sar eax, 1
push esi
inc eax
push eax
push ebx
call fcn.004a7c1e
add esp, 0x10
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
inc dword [ebp - 4]
lea edx, [esi + edi*2 + 2]
push 0x5c
push edx
call fcn.004a536a
add esp, 8
test eax, eax
jne 0x464c96
pop edi
push ebx
call fcn.004a5105
add esp, 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
pop ebx
mov eax, ecx
mov esp, ebp
pop ebp
ret
Function at 0x4657a0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push edi
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4657e4
mov ecx, dword [ebp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
cmp eax, 0xffffffff
je 0x4657dd
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x465803
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x465810
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c0268
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4eec64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.00423fab
add esp, 4
lea esi, [eax + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edx, edx
cmp eax, 0xffffffff
setne dl
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
mov edi, edx
mov edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x465892
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ecx, ecx
test edi, edi
sete cl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov esi, ecx
mov ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4658c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4680d0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd121
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4eec64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], edi
call fcn.004964ca
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x46811d
push 0x80004005
call fcn.00421000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, 0x4cc12c
mov dword [ebp - 4], 1
test ecx, 0xffff0000
jne 0x46821c
mov edx, ecx
movzx ebx, dx
push ebx
call fcn.0049e401
mov edi, eax
test edi, edi
je 0x468236
mov eax, ebx
shr eax, 4
inc eax
movzx ecx, ax
push 6
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x468236
push ebx
push eax
push edi
call fcn.00421708
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x468236
mov eax, dword [esi]
movzx edi, word [ebx]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, edi
or eax, ecx
jge 0x4681a9
push edi
mov ecx, esi
call fcn.00421527
movzx eax, word [ebx]
mov edx, dword [esi]
add ebx, 2
mov dword [ebp - 0x10], edx
cmp eax, 0xffffffff
jne 0x4681c3
push ebx
call fcn.004a4b1a
add esp, 4
inc eax
add eax, eax
push eax
lea ecx, [edi + edi]
push ebx
push ecx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004a460f
add esp, 0x10
cmp eax, 0x50
ja case.0x4681e6.1
movzx edx, byte [eax + 0x4682cc]
jmp dword [edx*4 + 0x4682bc]
call fcn.00496a32
call fcn.00496a6a
test edi, edi
jl 0x468212
mov eax, dword [esi]
cmp edi, dword [eax - 8]
jg 0x468212
mov edx, dword [ebp - 0x14]
mov dword [eax - 0xc], edi
mov eax, dword [esi]
xor ecx, ecx
mov word [edx + eax], cx
jmp 0x468236
push 0x80070057
call fcn.00421000
push 0x4cc12c
call fcn.004a4b1a
add esp, 4
push eax
push 0x4cc12c
mov ecx, esi
call fcn.00423f3a
mov dword [ebp - 4], 0
mov eax, dword [esi]
sub eax, 0x10
mov ecx, 1
mov dword [ebp - 0x1c], 0x104
mov dword [ebp - 0x18], ecx
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
or eax, ecx
jge 0x46826c
push 0x104
mov ecx, esi
call fcn.00421527
mov eax, dword [esi]
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x468290
push ecx
push eax
call fcn.004a4afb
add esp, 8
test eax, eax
jl 0x468212
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x468212
mov dword [ecx - 0xc], eax
mov edx, dword [esi]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, esi
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 0x4688a0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd0e0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4eec64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
call fcn.004964ca
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4688e9
push 0x80004005
call fcn.00421000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ecx, [eax + 0x10]
mov dword [ebp - 0x18], ecx
cmp dword [ebp + 0xc], 0
mov byte [ebp - 4], 1
je 0x468952
mov edx, dword [ebp + 8]
lea eax, [edx - 0x10]
lea esi, [ecx - 0x10]
cmp eax, esi
je 0x4689ae
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x46894b
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x46894b
push eax
call fcn.00423fab
add esp, 4
mov ebx, eax
or edx, 0xffffffff
lock xadd dword [edi], edx
dec edx
test edx, edx
jg 0x468943
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
add ebx, 0x10
mov dword [ebp - 0x18], ebx
jmp 0x4689ae
mov eax, dword [edx - 0xc]
push eax
push edx
jmp 0x4689a6
lea edi, [ebp + 8]
call fcn.0044c560
mov ecx, dword [eax]
mov esi, dword [ebp - 0x18]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x4689ae
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4689a1
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4689a1
push eax
call fcn.00423fab
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x468999
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [ebp - 0x18], ebx
jmp 0x4689ae
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x18]
call fcn.00423f3a
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x18]
push edx
push 0x4686b0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], ecx
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4689f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x468a16
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret