joyce8/EMBER2024-capa huggingface dataset:
Function at 0x592d10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x6a60f0]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xd4]
mov edx, dword [ecx + 0x10e8]
and edx, 0x40
jne 0x592d45
xor eax, eax
jmp 0x592f2b
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x13c]
and ecx, 0x80
jne 0x592db8
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x13c]
or eax, 0x80
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x13c], eax
push str.BUG_B
push 0x45
push 0x44
push str.FLEXLM__c_c_sADDATE
lea edx, [ebp - 0x2d0]
push edx
call fcn.00536ca3
add esp, 0x14
lea eax, [ebp - 0x2d0]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0057e940
add esp, 8
test eax, eax
je 0x592db8
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x13c]
or eax, 0x100
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x13c], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x13c]
and eax, 0x100
je 0x592e30
cmp dword [ebp + 8], 0
je 0x592e26
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x80], 0
je 0x592def
xor edx, edx
je 0x592def
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x80]
mov dword [ebp - 0x2d4], ecx
jmp 0x592df9
mov dword [ebp - 0x2d4], 0xffffffa8
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x2d4]
mov dword [edx + 0x80], eax
push 0
push 0xff
push 0
push 0
push 0x138
push 0xffffffffffffffa8
mov ecx, dword [ebp + 8]
push ecx
call fcn.00577350
add esp, 0x1c
mov eax, 0xffffffa8
jmp 0x592f2b
mov byte [ebp - 0x208], 0x5c
mov byte [ebp - 0x207], 0
push 0
lea edx, [ebp - 0x208]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00592f40
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x592e64
mov eax, dword [ebp - 4]
jmp 0x592f2b
push 0x200
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0
lea edx, [ebp - 0x208]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00592f40
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x592e9c
mov eax, dword [ebp - 4]
jmp 0x592f2b
mov byte [ebp - 0x208], 0x2f
mov byte [ebp - 0x206], 0x61
mov byte [ebp - 0x205], 0x72
mov byte [ebp - 0x207], 0x76
mov byte [ebp - 0x204], 0
push 0
lea ecx, [ebp - 0x208]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00592f40
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x592ee2
mov eax, dword [ebp - 4]
jmp 0x592f2b
mov byte [ebp - 0x208], 0x2f
mov byte [ebp - 0x204], 0
mov byte [ebp - 0x206], 0x6d
mov byte [ebp - 0x207], 0x74
mov byte [ebp - 0x205], 0x70
push 0
lea eax, [ebp - 0x208]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00592f40
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x592f28
mov eax, dword [ebp - 4]
jmp 0x592f2b
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00532ffe
mov esp, ebp
pop ebp
ret
Function at 0x59a7b0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0xffffffff
cmp dword [ebp + 0xc], 0
je 0x59a7de
cmp dword [ebp + 0x10], 0
jne 0x59a7e0
jmp 0x59a838
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.005a35a0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x59a838
cmp dword [ebp - 0xc], 0
je 0x59a838
mov dword [ebp - 0xc], 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.005a35a0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x59a838
cmp dword [ebp - 0xc], 0
je 0x59a838
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.0053ddc8
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 8], 0
je 0x59a851
mov eax, dword [ebp - 8]
push eax
call fcn.005844f0
add esp, 4
mov dword [ebp - 8], 0
cmp dword [ebp - 4], 0
je 0x59a86a
mov ecx, dword [ebp - 4]
push ecx
call fcn.005844f0
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x59a880
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0xffffffff
cmp dword [ebp + 0xc], 0
je 0x59a8ae
cmp dword [ebp + 0x10], 0
jne 0x59a8b0
jmp 0x59a908
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.005a38a0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x59a908
cmp dword [ebp - 0xc], 0
je 0x59a908
mov dword [ebp - 0xc], 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.005a38a0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x59a908
cmp dword [ebp - 0xc], 0
je 0x59a908
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.0053de89
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], 0
je 0x59a921
mov eax, dword [ebp - 4]
push eax
call fcn.005844f0
add esp, 4
mov dword [ebp - 4], 0
cmp dword [ebp - 8], 0
je 0x59a93a
mov ecx, dword [ebp - 8]
push ecx
call fcn.005844f0
add esp, 4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x5a2a40
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0x10], 0xffffff9d
jne 0x5a2a95
mov dword [0x69a9f0], 0xffffffff
mov dword [ebp - 4], 0
jmp 0x5a2a68
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 4
jae 0x5a2a90
mov ecx, dword [ebp - 4]
shl ecx, 4
mov dword [ecx + 0x69a9b8], 0
mov edx, dword [ebp - 4]
shl edx, 4
mov dword [edx + 0x69a9bc], 0
jmp 0x5a2a5f
jmp 0x5a2c43
cmp dword [ebp + 0x10], 4
jb 0x5a2ab1
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 0x5a2c43
cmp dword [ebp + 0x10], 0
jl 0x5a2abd
cmp dword [ebp + 0x10], 4
jb 0x5a2ac2
jmp 0x5a2c43
cmp dword [0x69a9f0], 0
jge 0x5a2ad4
cmp dword [0x69a9f0], 4
jae 0x5a2aeb
push 0
mov eax, dword [0x69a9f0]
shl eax, 4
mov ecx, dword [eax + 0x69a9b8]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebp + 0x10]
mov dword [0x69a9f0], edx
mov eax, dword [0x69a9f0]
shl eax, 4
cmp dword [eax + 0x69a9bc], 0
jne 0x5a2b34
mov ecx, dword [0x69a9f0]
shl ecx, 4
mov edx, dword [ecx + 0x69a9b8]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.005a2c50
add esp, 8
mov ecx, dword [0x69a9f0]
shl ecx, 4
mov dword [ecx + 0x69a9bc], 1
push 0
push 0
push 0xaec
mov edx, dword [0x69a9f0]
shl edx, 4
mov eax, dword [edx + 0x69a9b8]
push eax
mov ecx, dword [0x69a9f0]
shl ecx, 4
mov edx, dword [ecx + 0x69a9b0]
call edx
push 5
mov eax, dword [0x69a9f0]
shl eax, 4
mov ecx, dword [eax + 0x69a9b8]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebp - 4], 0
jmp 0x5a2b87
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 3
jae 0x5a2c43
mov eax, dword [ebp - 4]
mov ecx, dword [eax*8 + 0x69a9f4]
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 0x5a2c3e
mov eax, dword [ebp - 4]
mov ecx, dword [eax*8 + 0x69a9f8]
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 + 0x69a9f8]
mov ecx, dword [ebp + 0xc]
movsx edx, byte [ecx + eax + 0x138]
and edx, 2
je 0x5a2c3e
mov eax, dword [ebp - 4]
mov ecx, dword [eax*8 + 0x69a9f8]
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 + 0x69a9f8]
mov ecx, dword [ebp + 0xc]
movsx edx, byte [ecx + eax + 0x138]
and edx, 0xfffffffd
mov eax, dword [ebp - 4]
mov ecx, dword [eax*8 + 0x69a9f8]
mov eax, dword [ebp + 0xc]
mov byte [eax + ecx + 0x138], dl
jmp 0x5a2b7e
mov esp, ebp
pop ebp
ret
Function at 0x5a2e50
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x6a60f0]
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.005336b0
add esp, 0xc
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x12c], 0
cmp dword [0x6aee34], 0
jne 0x5a3095
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
push str.TerminalServerFlexlmMutex
push 0x69aa68
lea ecx, [ebp - 0x110]
push ecx
call fcn.00536ca3
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 0x5a2f14
xor eax, eax
jmp 0x5a30a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x5a2f30
push 0xffffffffffffffff
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x6aee34], 0
jne 0x5a307b
call fcn.005a2d60
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.0x5a2f76
mov eax, dword [ebp - 0x130]
jmp dword [eax*4 + 0x5a30b0]
push 0x69aa70
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x6aee48], eax
cmp dword [0x6aee48], 0
je 0x5a3034
push str.WTSEnumerateSessionsA
mov ecx, dword [0x6aee48]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x6aee3c], eax
cmp dword [0x6aee3c], 0
je 0x5a3034
push 0x69aa98
mov edx, dword [0x6aee48]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x6aee40], eax
cmp dword [0x6aee40], 0
je 0x5a3034
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x128]
push ecx
push 1
push 0
push 0
call dword [0x6aee3c]
cmp dword [ebp - 0x128], 0
je 0x5a300e
mov edx, dword [ebp - 0x128]
cmp dword [edx + 8], 0
jne 0x5a301d
mov eax, dword [ebp - 0x128]
push eax
call dword [0x6aee40]
jmp 0x5a3034
mov ecx, dword [ebp - 0x128]
push ecx
call dword [0x6aee40]
mov dword [0x6aee38], 1
mov edx, dword [0x6aee48]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x6aee48], 0
jmp case.default.0x5a2f76
push 0x1000
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
je case.default.0x5a2f76
mov dword [0x6aee38], 1
mov dword [0x6aee34], 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 [0x6aee38], 0
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00532ffe
mov esp, ebp
pop ebp
ret
Function at 0x5a34e0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x6a60f0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x6aee50], 0
jne 0x5a3583
push 0
push 0x94
push 0
lea eax, [ebp - 0xa0]
push eax
call fcn.005298c0
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 0x5a3579
cmp dword [ebp - 0x90], 1
jne 0x5a3548
mov dword [0x6aee4c], 2
jmp 0x5a3579
cmp dword [ebp - 0x90], 2
je 0x5a355a
cmp dword [ebp - 0x9c], 6
jb 0x5a3566
mov dword [0x6aee4c], 1
jmp 0x5a3579
cmp dword [ebp - 0x90], 0
jne 0x5a3579
mov dword [0x6aee4c], 3
mov dword [0x6aee50], 1
mov eax, dword [0x6aee4c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00532ffe
mov esp, ebp
pop ebp
ret

Function at 0x5a4220
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 0x5a4261
cmp dword [ebp + 0xc], 0
je 0x5a4261
cmp dword [ebp + 0x10], 0
je 0x5a4261
cmp dword [ebp + 0x14], 0
jne 0x5a4266
jmp 0x5a4339
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.005a35a0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x5a4339
cmp dword [ebp - 0x14], 0
je 0x5a4339
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 0x5a4339
mov edx, dword [ebp - 0x14]
add edx, 1
push edx
call fcn.00535eaa
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x5a4339
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 0x5a4339
mov edx, dword [ebp + 0x10]
cmp dword [edx], 1
je 0x5a430f
mov eax, dword [ebp + 0x10]
cmp dword [eax], 2
jne 0x5a4324
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.005a3ab0
add esp, 8
mov dword [ebp - 8], eax
jmp 0x5a4339
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 0x5a4352
mov eax, dword [ebp - 4]
push eax
call fcn.005844f0
add esp, 4
mov dword [ebp - 4], 0
cmp dword [ebp - 0xc], 0
je 0x5a436b
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.005844f0
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x5a4380
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 0x5a43c1
cmp dword [ebp + 0xc], 0
je 0x5a43c1
cmp dword [ebp + 0x10], 0
je 0x5a43c1
cmp dword [ebp + 0x14], 0
jne 0x5a43c6
jmp 0x5a4499
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.005a38a0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5a4499
cmp dword [ebp - 0x14], 0
je 0x5a4499
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 0x5a4499
mov edx, dword [ebp - 0x14]
add edx, 1
push edx
call fcn.00535eaa
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x5a4499
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 0x5a4499
mov edx, dword [ebp + 0x10]
cmp dword [edx], 1
je 0x5a446f
mov eax, dword [ebp + 0x10]
cmp dword [eax], 2
jne 0x5a4484
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.005a3950
add esp, 8
mov dword [ebp - 4], eax
jmp 0x5a4499
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 0x5a44b2
mov eax, dword [ebp - 8]
push eax
call fcn.005844f0
add esp, 4
mov dword [ebp - 8], 0
cmp dword [ebp - 0xc], 0
je 0x5a44cb
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.005844f0
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x5a47a0
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 0x5a47da
cmp dword [ebp + 8], 0
jne 0x5a47da
jmp 0x5a487e
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 0x5a487e
mov edx, dword [ebp - 8]
push edx
call fcn.00535eaa
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x5a487e
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 0x5a487e
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.005a3ab0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x5a487e
cmp dword [ebp + 0xc], 0
je 0x5a4878
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0xc]
jle 0x5a484e
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.005298c0
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.005295b0
add esp, 0x10
mov edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0xc], 0
je 0x5a4897
mov eax, dword [ebp - 0xc]
push eax
call fcn.005844f0
add esp, 4
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0
je 0x5a48b0
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.005844f0
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x5a48c0
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 0x5a48fa
cmp dword [ebp + 8], 0
jne 0x5a48fa
jmp 0x5a49a0
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 0x5a49a0
mov edx, dword [ebp - 8]
shl edx, 1
push edx
call fcn.00535eaa
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x5a49a0
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 0x5a49a0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.005a3950
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x5a49a0
cmp dword [ebp + 0xc], 0
je 0x5a499a
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0xc]
jle 0x5a4970
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.005298c0
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.005295b0
add esp, 0x10
mov edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 4], 0
je 0x5a49b9
mov eax, dword [ebp - 4]
push eax
call fcn.005844f0
add esp, 4
mov dword [ebp - 4], 0
cmp dword [ebp - 0xc], 0
je 0x5a49d2
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.005844f0
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x5a4af0
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.005a35a0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x5a4bee
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 0x5a4bee
cmp dword [ebp + 0x10], 0
je 0x5a4bee
mov eax, dword [ebp - 0xc]
push eax
call fcn.00535eaa
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5a4bee
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 0x5a4bee
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.005a3ab0
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x5a4bd3
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x10]
jle 0x5a4bb2
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.00528c70
add esp, 0x10
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0xc]
mov byte [edx], 0
jmp 0x5a4bee
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.005298c0
add esp, 0x10
cmp dword [ebp - 8], 0
je 0x5a4c07
mov edx, dword [ebp - 8]
push edx
call fcn.005844f0
add esp, 4
mov dword [ebp - 8], 0
cmp dword [ebp - 4], 0
je 0x5a4c20
mov eax, dword [ebp - 4]
push eax
call fcn.005844f0
add esp, 4
mov dword [ebp - 4], 0
cmp dword [ebp - 0x10], 0
je 0x5a4c39
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.005844f0
add esp, 4
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x5a4c40
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.005a38a0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x5a4d40
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 0x5a4d40
cmp dword [ebp + 0x10], 0
je 0x5a4d40
mov eax, dword [ebp - 8]
shl eax, 1
push eax
call fcn.00535eaa
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x5a4d40
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 0x5a4d40
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.005a3950
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x5a4d25
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
jle 0x5a4d04
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.00528c70
add esp, 0x10
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 8]
mov byte [edx], 0
jmp 0x5a4d40
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.005298c0
add esp, 0x10
cmp dword [ebp - 0x10], 0
je 0x5a4d59
mov edx, dword [ebp - 0x10]
push edx
call fcn.005844f0
add esp, 4
mov dword [ebp - 0x10], 0
cmp dword [ebp - 4], 0
je 0x5a4d72
mov eax, dword [ebp - 4]
push eax
call fcn.005844f0
add esp, 4
mov dword [ebp - 4], 0
cmp dword [ebp - 0xc], 0
je 0x5a4d8b
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.005844f0
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret