joyce8/EMBER2024-capa huggingface dataset:
Function at 0x590d70
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x6a5f90]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
mov dword [ebp - 0x68], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x10], 0xffffffff
mov byte [ebp - 0x60], 0
push 0x45
push 0
lea eax, [ebp - 0x5f]
push eax
call fcn.00533390
add esp, 0xc
mov dword [ebp - 0xc], 0
push 0
push 0x20
push 0
lea ecx, [ebp - 0x88]
push ecx
call fcn.005295a0
add esp, 0x10
mov dword [ebp - 0x88], 1
mov dword [ebp - 0x80], 1
cmp dword [ebp + 8], 0
je 0x590f03
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.00528e10
add esp, 8
mov dword [ebp - 8], eax
push 0
push 0x40
mov eax, dword [ebp + 8]
push eax
call fcn.00528e80
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x590e31
lea ecx, [ebp - 0x60]
push ecx
push str.__69_0_9a_fA_F:_
mov edx, dword [ebp - 0xc]
push edx
call fcn.005388bc
add esp, 0xc
lea eax, [ebp - 0x60]
push eax
call fcn.00591030
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 1
jle 0x590f03
lea ecx, [ebp - 0x68]
push ecx
lea edx, [ebp - 0x88]
push edx
push 0
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x68], 0
je 0x590ecb
mov ecx, dword [ebp - 0x68]
cmp dword [ecx + 4], 0x17
jne 0x590ecb
push 0
push 0x69a1e8
mov edx, dword [ebp + 8]
push edx
call fcn.00528fd0
add esp, 0xc
mov esi, eax
push 0
lea eax, [ebp - 0x60]
push eax
call fcn.00528e10
add esp, 8
lea ecx, [esi + eax + 1]
cmp dword [ebp - 8], ecx
jne 0x590ecb
push 0
lea edx, [ebp - 0x60]
push edx
call fcn.00528e10
add esp, 8
mov esi, eax
push 0
push 0x69a1ec
mov eax, dword [ebp + 8]
push eax
call fcn.00528fd0
add esp, 0xc
lea ecx, [esi + eax + 1]
mov dword [ebp - 0x64], ecx
jmp 0x590ef3
push 0
push 0x69a1f0
mov edx, dword [ebp + 8]
push edx
call fcn.00528fd0
add esp, 0xc
mov esi, eax
lea eax, [ebp - 0x60]
push eax
call fcn.00590f20
add esp, 4
lea ecx, [esi + eax + 1]
mov dword [ebp - 0x64], ecx
cmp dword [ebp - 0x68], 0
je 0x590f03
mov edx, dword [ebp - 0x68]
push edx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, dword [ebp - 0x64]
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00532cdb
mov esp, ebp
pop ebp
ret
Function at 0x592d10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x6a5f90]
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.00536983
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.00532cdb
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.0053daa8
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.0053db69
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 0x5a2e50
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x6a5f90]
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.00533390
add esp, 0xc
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x12c], 0
cmp dword [0x6aecd4], 0
jne 0x5a3095
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
push str.TerminalServerFlexlmMutex
push 0x69a900
lea ecx, [ebp - 0x110]
push ecx
call fcn.00536983
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 [0x6aecd4], 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 0x69a908
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x6aece8], eax
cmp dword [0x6aece8], 0
je 0x5a3034
push str.WTSEnumerateSessionsA
mov ecx, dword [0x6aece8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x6aecdc], eax
cmp dword [0x6aecdc], 0
je 0x5a3034
push 0x69a930
mov edx, dword [0x6aece8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x6aece0], eax
cmp dword [0x6aece0], 0
je 0x5a3034
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x128]
push ecx
push 1
push 0
push 0
call dword [0x6aecdc]
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 [0x6aece0]
jmp 0x5a3034
mov ecx, dword [ebp - 0x128]
push ecx
call dword [0x6aece0]
mov dword [0x6aecd8], 1
mov edx, dword [0x6aece8]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x6aece8], 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 [0x6aecd8], 1
mov dword [0x6aecd4], 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 [0x6aecd8], 0
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00532cdb
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 [0x6a5f90]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x6aecf0], 0
jne 0x5a3583
push 0
push 0x94
push 0
lea eax, [ebp - 0xa0]
push eax
call fcn.005295a0
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 [0x6aecec], 2
jmp 0x5a3579
cmp dword [ebp - 0x90], 2
je 0x5a355a
cmp dword [ebp - 0x9c], 6
jb 0x5a3566
mov dword [0x6aecec], 1
jmp 0x5a3579
cmp dword [ebp - 0x90], 0
jne 0x5a3579
mov dword [0x6aecec], 3
mov dword [0x6aecf0], 1
mov eax, dword [0x6aecec]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00532cdb
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.00535b8a
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.00535b8a
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.00535b8a
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.005295a0
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.00529290
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.00535b8a
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.005295a0
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.00529290
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.00535b8a
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.00528950
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.005295a0
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.00535b8a
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.00528950
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.005295a0
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