joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5a1a40
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0x10], 0xffffff9d
jne 0x5a1a95
mov dword [0x6999f0], 0xffffffff
mov dword [ebp - 4], 0
jmp 0x5a1a68
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 4
jae 0x5a1a90
mov ecx, dword [ebp - 4]
shl ecx, 4
mov dword [ecx + 0x6999b8], 0
mov edx, dword [ebp - 4]
shl edx, 4
mov dword [edx + 0x6999bc], 0
jmp 0x5a1a5f
jmp 0x5a1c43
cmp dword [ebp + 0x10], 4
jb 0x5a1ab1
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x30]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x5a1c43
cmp dword [ebp + 0x10], 0
jl 0x5a1abd
cmp dword [ebp + 0x10], 4
jb 0x5a1ac2
jmp 0x5a1c43
cmp dword [0x6999f0], 0
jge 0x5a1ad4
cmp dword [0x6999f0], 4
jae 0x5a1aeb
push 0
mov eax, dword [0x6999f0]
shl eax, 4
mov ecx, dword [eax + 0x6999b8]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebp + 0x10]
mov dword [0x6999f0], edx
mov eax, dword [0x6999f0]
shl eax, 4
cmp dword [eax + 0x6999bc], 0
jne 0x5a1b34
mov ecx, dword [0x6999f0]
shl ecx, 4
mov edx, dword [ecx + 0x6999b8]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.005a1c50
add esp, 8
mov ecx, dword [0x6999f0]
shl ecx, 4
mov dword [ecx + 0x6999bc], 1
push 0
push 0
push 0xaec
mov edx, dword [0x6999f0]
shl edx, 4
mov eax, dword [edx + 0x6999b8]
push eax
mov ecx, dword [0x6999f0]
shl ecx, 4
mov edx, dword [ecx + 0x6999b0]
call edx
push 5
mov eax, dword [0x6999f0]
shl eax, 4
mov ecx, dword [eax + 0x6999b8]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebp - 4], 0
jmp 0x5a1b87
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 3
jae 0x5a1c43
mov eax, dword [ebp - 4]
mov ecx, dword [eax*8 + 0x6999f4]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5a1c3e
mov eax, dword [ebp - 4]
mov ecx, dword [eax*8 + 0x6999f8]
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx + ecx + 0x138]
and eax, 1
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [ebp - 4]
mov eax, dword [edx*8 + 0x6999f8]
mov ecx, dword [ebp + 0xc]
movsx edx, byte [ecx + eax + 0x138]
and edx, 2
je 0x5a1c3e
mov eax, dword [ebp - 4]
mov ecx, dword [eax*8 + 0x6999f8]
imul ecx, ecx, 0x32
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx + 0x13b]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov edx, dword [ebp - 4]
mov eax, dword [edx*8 + 0x6999f8]
mov ecx, dword [ebp + 0xc]
movsx edx, byte [ecx + eax + 0x138]
and edx, 0xfffffffd
mov eax, dword [ebp - 4]
mov ecx, dword [eax*8 + 0x6999f8]
mov eax, dword [ebp + 0xc]
mov byte [eax + ecx + 0x138], dl
jmp 0x5a1b7e
mov esp, ebp
pop ebp
ret
Function at 0x5a1d60
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
and eax, 0xffff
movzx ecx, ax
and ecx, 0xff
movzx edx, cl
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
and eax, 0xffff
movzx ecx, ax
shr ecx, 8
and ecx, 0xff
movzx edx, cl
mov dword [ebp - 8], edx
cmp dword [ebp - 4], 0x80000000
jae 0x5a1dc3
mov eax, dword [ebp - 4]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
mov dword [ebp - 0xc], ecx
jmp 0x5a1de9
cmp dword [ebp - 0x14], 4
jae 0x5a1de2
mov edx, dword [ebp - 4]
shr edx, 0x10
and edx, 0xffff
movzx eax, dx
and eax, 0xffff7fff
mov dword [ebp - 0xc], eax
jmp 0x5a1de9
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0x14], 6
jb 0x5a1df8
mov dword [ebp - 0x10], 7
jmp 0x5a1e44
cmp dword [ebp - 0x14], 5
jne 0x5a1e07
mov dword [ebp - 0x10], 6
jmp 0x5a1e44
cmp dword [ebp - 0x14], 4
jne 0x5a1e1c
cmp dword [ebp - 8], 0
jne 0x5a1e1c
mov dword [ebp - 0x10], 4
jmp 0x5a1e44
cmp dword [ebp - 0x14], 3
jne 0x5a1e31
cmp dword [ebp - 8], 0
jne 0x5a1e31
mov dword [ebp - 0x10], 5
jmp 0x5a1e44
cmp dword [ebp - 0x14], 4
jne 0x5a1e44
cmp dword [ebp - 8], 1
jne 0x5a1e44
mov dword [ebp - 0x10], 3
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x5a1e50
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x6a50f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea eax, [ebp - 0x10f]
push eax
call fcn.00532490
add esp, 0xc
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x12c], 0
cmp dword [0x6ade34], 0
jne 0x5a2095
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
push str.TerminalServerFlexlmMutex
push 0x699a68
lea ecx, [ebp - 0x110]
push ecx
call fcn.00535a83
add esp, 0x10
lea edx, [ebp - 0x110]
push edx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
jne 0x5a1f14
xor eax, eax
jmp 0x5a20a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x5a1f30
push 0xffffffffffffffff
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x6ade34], 0
jne 0x5a207b
call fcn.005a1d60
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0x130], ecx
mov edx, dword [ebp - 0x130]
sub edx, 4
mov dword [ebp - 0x130], edx
cmp dword [ebp - 0x130], 3
ja case.default.0x5a1f76
mov eax, dword [ebp - 0x130]
jmp dword [eax*4 + 0x5a20b0]
push 0x699a70
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x6ade48], eax
cmp dword [0x6ade48], 0
je 0x5a2034
push str.WTSEnumerateSessionsA
mov ecx, dword [0x6ade48]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x6ade3c], eax
cmp dword [0x6ade3c], 0
je 0x5a2034
push 0x699a98
mov edx, dword [0x6ade48]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x6ade40], eax
cmp dword [0x6ade40], 0
je 0x5a2034
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x128]
push ecx
push 1
push 0
push 0
call dword [0x6ade3c]
cmp dword [ebp - 0x128], 0
je 0x5a200e
mov edx, dword [ebp - 0x128]
cmp dword [edx + 8], 0
jne 0x5a201d
mov eax, dword [ebp - 0x128]
push eax
call dword [0x6ade40]
jmp 0x5a2034
mov ecx, dword [ebp - 0x128]
push ecx
call dword [0x6ade40]
mov dword [0x6ade38], 1
mov edx, dword [0x6ade48]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x6ade48], 0
jmp case.default.0x5a1f76
push 0x1000
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
je case.default.0x5a1f76
mov dword [0x6ade38], 1
mov dword [0x6ade34], 1
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [0x6ade38], 0
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00531ddb
mov esp, ebp
pop ebp
ret
Function at 0x5a24e0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x6a50f0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x6ade50], 0
jne 0x5a2583
push 0
push 0x94
push 0
lea eax, [ebp - 0xa0]
push eax
call fcn.005286a0
add esp, 0x10
mov dword [ebp - 0xa0], 0x94
lea ecx, [ebp - 0xa0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x5a2579
cmp dword [ebp - 0x90], 1
jne 0x5a2548
mov dword [0x6ade4c], 2
jmp 0x5a2579
cmp dword [ebp - 0x90], 2
je 0x5a255a
cmp dword [ebp - 0x9c], 6
jb 0x5a2566
mov dword [0x6ade4c], 1
jmp 0x5a2579
cmp dword [ebp - 0x90], 0
jne 0x5a2579
mov dword [0x6ade4c], 3
mov dword [0x6ade50], 1
mov eax, dword [0x6ade4c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00531ddb
mov esp, ebp
pop ebp
ret

Function at 0x5a3220
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
cmp dword [ebp + 8], 0
je 0x5a3261
cmp dword [ebp + 0xc], 0
je 0x5a3261
cmp dword [ebp + 0x10], 0
je 0x5a3261
cmp dword [ebp + 0x14], 0
jne 0x5a3266
jmp 0x5a3339
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.005a25a0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x5a3339
cmp dword [ebp - 0x14], 0
je 0x5a3339
lea ecx, [ebp - 0x14]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x5a3339
mov edx, dword [ebp - 0x14]
add edx, 1
push edx
call fcn.00534c8a
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x5a3339
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x5a3339
mov edx, dword [ebp + 0x10]
cmp dword [edx], 1
je 0x5a330f
mov eax, dword [ebp + 0x10]
cmp dword [eax], 2
jne 0x5a3324
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.005a2ab0
add esp, 8
mov dword [ebp - 8], eax
jmp 0x5a3339
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x14]
mov dword [ecx], edx
cmp dword [ebp - 4], 0
je 0x5a3352
mov eax, dword [ebp - 4]
push eax
call fcn.005834f0
add esp, 4
mov dword [ebp - 4], 0
cmp dword [ebp - 0xc], 0
je 0x5a336b
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.005834f0
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x5a3380
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
cmp dword [ebp + 8], 0
je 0x5a33c1
cmp dword [ebp + 0xc], 0
je 0x5a33c1
cmp dword [ebp + 0x10], 0
je 0x5a33c1
cmp dword [ebp + 0x14], 0
jne 0x5a33c6
jmp 0x5a3499
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.005a28a0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5a3499
cmp dword [ebp - 0x14], 0
je 0x5a3499
lea ecx, [ebp - 0x14]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x5a3499
mov edx, dword [ebp - 0x14]
add edx, 1
push edx
call fcn.00534c8a
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x5a3499
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x5a3499
mov edx, dword [ebp + 0x10]
cmp dword [edx], 1
je 0x5a346f
mov eax, dword [ebp + 0x10]
cmp dword [eax], 2
jne 0x5a3484
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.005a2950
add esp, 8
mov dword [ebp - 4], eax
jmp 0x5a3499
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x14]
mov dword [ecx], edx
cmp dword [ebp - 8], 0
je 0x5a34b2
mov eax, dword [ebp - 8]
push eax
call fcn.005834f0
add esp, 4
mov dword [ebp - 8], 0
cmp dword [ebp - 0xc], 0
je 0x5a34cb
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.005834f0
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x5a3540
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
cmp dword [ebp + 8], 0
je 0x5a357a
cmp dword [ebp + 0xc], 0
je 0x5a357a
cmp dword [ebp + 0x14], 0
je 0x5a357a
cmp dword [ebp + 0x18], 0
jne 0x5a357f
jmp 0x5a3601
cmp dword [ebp + 0x10], 1
je 0x5a358b
cmp dword [ebp + 0x10], 2
jne 0x5a35e2
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.005a25a0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x5a35a6
jmp 0x5a3601
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x14]
push eax
call fcn.005a25a0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x5a35c1
jmp 0x5a3601
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0xc], eax
jmp 0x5a3601
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0
je 0x5a361a
mov edx, dword [ebp - 4]
push edx
call fcn.005834f0
add esp, 4
mov dword [ebp - 4], 0
cmp dword [ebp - 8], 0
je 0x5a3633
mov eax, dword [ebp - 8]
push eax
call fcn.005834f0
add esp, 4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x5a3640
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
cmp dword [ebp + 8], 0
je 0x5a367a
cmp dword [ebp + 0xc], 0
je 0x5a367a
cmp dword [ebp + 0x14], 0
je 0x5a367a
cmp dword [ebp + 0x18], 0
jne 0x5a367f
jmp 0x5a3709
cmp dword [ebp + 0x10], 1
je 0x5a368b
cmp dword [ebp + 0x10], 2
jne 0x5a36ea
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.005a28a0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x5a36a6
jmp 0x5a3709
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x14]
push eax
call fcn.005a28a0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x5a36c1
jmp 0x5a3709
mov ecx, dword [ebp - 0x10]
shl ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0xc], eax
jmp 0x5a3709
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 8], 0
je 0x5a3722
mov eax, dword [ebp - 8]
push eax
call fcn.005834f0
add esp, 4
mov dword [ebp - 8], 0
cmp dword [ebp - 4], 0
je 0x5a373b
mov ecx, dword [ebp - 4]
push ecx
call fcn.005834f0
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x5a37a0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x5a37da
cmp dword [ebp + 8], 0
jne 0x5a37da
jmp 0x5a387e
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
cmp dword [ebp - 8], 0
je 0x5a387e
mov edx, dword [ebp - 8]
push edx
call fcn.00534c8a
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x5a387e
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x5a387e
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.005a2ab0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x5a387e
cmp dword [ebp + 0xc], 0
je 0x5a3878
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0xc]
jle 0x5a384e
mov edx, dword [ebp + 0xc]
sub edx, 1
mov dword [ebp - 8], edx
push 0
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.005286a0
add esp, 0x10
push 0
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00528390
add esp, 0x10
mov edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0xc], 0
je 0x5a3897
mov eax, dword [ebp - 0xc]
push eax
call fcn.005834f0
add esp, 4
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0
je 0x5a38b0
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.005834f0
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x5a38c0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
cmp dword [ebp + 0xc], 0
je 0x5a38fa
cmp dword [ebp + 8], 0
jne 0x5a38fa
jmp 0x5a39a0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
cmp dword [ebp - 8], 0
je 0x5a39a0
mov edx, dword [ebp - 8]
shl edx, 1
push edx
call fcn.00534c8a
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x5a39a0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x5a39a0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.005a2950
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x5a39a0
cmp dword [ebp + 0xc], 0
je 0x5a399a
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0xc]
jle 0x5a3970
mov edx, dword [ebp + 0xc]
sub edx, 1
mov dword [ebp - 8], edx
push 0
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.005286a0
add esp, 0x10
push 0
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00528390
add esp, 0x10
mov edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 4], 0
je 0x5a39b9
mov eax, dword [ebp - 4]
push eax
call fcn.005834f0
add esp, 4
mov dword [ebp - 4], 0
cmp dword [ebp - 0xc], 0
je 0x5a39d2
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.005834f0
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x5a3af0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.005a25a0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x5a3bee
push 0
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x5a3bee
cmp dword [ebp + 0x10], 0
je 0x5a3bee
mov eax, dword [ebp - 0xc]
push eax
call fcn.00534c8a
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5a3bee
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x5a3bee
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.005a2ab0
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x5a3bd3
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x10]
jle 0x5a3bb2
mov ecx, dword [ebp + 0x10]
sub ecx, 1
mov dword [ebp - 0xc], ecx
push 0
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00527a50
add esp, 0x10
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0xc]
mov byte [edx], 0
jmp 0x5a3bee
mov dword [ebp - 0xc], 0
push 0
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.005286a0
add esp, 0x10
cmp dword [ebp - 8], 0
je 0x5a3c07
mov edx, dword [ebp - 8]
push edx
call fcn.005834f0
add esp, 4
mov dword [ebp - 8], 0
cmp dword [ebp - 4], 0
je 0x5a3c20
mov eax, dword [ebp - 4]
push eax
call fcn.005834f0
add esp, 4
mov dword [ebp - 4], 0
cmp dword [ebp - 0x10], 0
je 0x5a3c39
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.005834f0
add esp, 4
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x5a3c40
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.005a28a0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x5a3d40
push 0
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5a3d40
cmp dword [ebp + 0x10], 0
je 0x5a3d40
mov eax, dword [ebp - 8]
shl eax, 1
push eax
call fcn.00534c8a
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x5a3d40
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5a3d40
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.005a2950
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x5a3d25
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
jle 0x5a3d04
mov ecx, dword [ebp + 0x10]
sub ecx, 1
mov dword [ebp - 8], ecx
push 0
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00527a50
add esp, 0x10
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 8]
mov byte [edx], 0
jmp 0x5a3d40
mov dword [ebp - 8], 0
push 0
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.005286a0
add esp, 0x10
cmp dword [ebp - 0x10], 0
je 0x5a3d59
mov edx, dword [ebp - 0x10]
push edx
call fcn.005834f0
add esp, 4
mov dword [ebp - 0x10], 0
cmp dword [ebp - 4], 0
je 0x5a3d72
mov eax, dword [ebp - 4]
push eax
call fcn.005834f0
add esp, 4
mov dword [ebp - 4], 0
cmp dword [ebp - 0xc], 0
je 0x5a3d8b
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.005834f0
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret