joyce8/EMBER2024-capa huggingface dataset:
Function at 0x58a280
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x5fd0b0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x6102d0], 0
jne 0x58a321
push 0x94
push 0
lea eax, [ebp - 0xa0]
push eax
call fcn.004720b0
add esp, 0xc
mov dword [ebp - 0xa0], 0x94
lea ecx, [ebp - 0xa0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x58a317
cmp dword [ebp - 0x90], 1
jne 0x58a2e6
mov dword [0x6102cc], 2
jmp 0x58a317
cmp dword [ebp - 0x90], 2
je 0x58a2f8
cmp dword [ebp - 0x9c], 6
jb 0x58a304
mov dword [0x6102cc], 1
jmp 0x58a317
cmp dword [ebp - 0x90], 0
jne 0x58a317
mov dword [0x6102cc], 3
mov dword [0x6102d0], 1
mov eax, dword [0x6102cc]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047209e
mov esp, ebp
pop ebp
ret

Function at 0x58ab10
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0
cmp dword [ebp + 8], 0
jne 0x58ab48
jmp 0x58ab8c
mov eax, dword [ebp + 8]
mov dword [eax], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x58ab8c
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.0058a6e0
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x58ab8c
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0058abb0
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x10], 0
je 0x58aba5
mov edx, dword [ebp - 0x10]
push edx
call fcn.005363c0
add esp, 4
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x58afa0
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 0x58afe1
cmp dword [ebp + 0xc], 0
je 0x58afe1
cmp dword [ebp + 0x10], 0
je 0x58afe1
cmp dword [ebp + 0x14], 0
jne 0x58afe6
jmp 0x58b0b9
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.0058a340
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x58b0b9
cmp dword [ebp - 0x14], 0
je 0x58b0b9
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 0x58b0b9
mov edx, dword [ebp - 0x14]
add edx, 1
push edx
call fcn.004758f8
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x58b0b9
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 0x58b0b9
mov edx, dword [ebp + 0x10]
cmp dword [edx], 1
je 0x58b08f
mov eax, dword [ebp + 0x10]
cmp dword [eax], 2
jne 0x58b0a4
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.0058a840
add esp, 8
mov dword [ebp - 8], eax
jmp 0x58b0b9
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 0x58b0d2
mov eax, dword [ebp - 4]
push eax
call fcn.005363c0
add esp, 4
mov dword [ebp - 4], 0
cmp dword [ebp - 0xc], 0
je 0x58b0eb
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.005363c0
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x58b100
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 0x58b141
cmp dword [ebp + 0xc], 0
je 0x58b141
cmp dword [ebp + 0x10], 0
je 0x58b141
cmp dword [ebp + 0x14], 0
jne 0x58b146
jmp 0x58b219
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.0058a630
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x58b219
cmp dword [ebp - 0x14], 0
je 0x58b219
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 0x58b219
mov edx, dword [ebp - 0x14]
add edx, 1
push edx
call fcn.004758f8
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x58b219
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 0x58b219
mov edx, dword [ebp + 0x10]
cmp dword [edx], 1
je 0x58b1ef
mov eax, dword [ebp + 0x10]
cmp dword [eax], 2
jne 0x58b204
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.0058a6e0
add esp, 8
mov dword [ebp - 4], eax
jmp 0x58b219
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 0x58b232
mov eax, dword [ebp - 8]
push eax
call fcn.005363c0
add esp, 4
mov dword [ebp - 8], 0
cmp dword [ebp - 0xc], 0
je 0x58b24b
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.005363c0
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x58b2c0
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 0x58b2fa
cmp dword [ebp + 0xc], 0
je 0x58b2fa
cmp dword [ebp + 0x14], 0
je 0x58b2fa
cmp dword [ebp + 0x18], 0
jne 0x58b2ff
jmp 0x58b381
cmp dword [ebp + 0x10], 1
je 0x58b30b
cmp dword [ebp + 0x10], 2
jne 0x58b362
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0058a340
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x58b326
jmp 0x58b381
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x14]
push eax
call fcn.0058a340
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x58b341
jmp 0x58b381
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 0x58b381
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 0x58b39a
mov edx, dword [ebp - 4]
push edx
call fcn.005363c0
add esp, 4
mov dword [ebp - 4], 0
cmp dword [ebp - 8], 0
je 0x58b3b3
mov eax, dword [ebp - 8]
push eax
call fcn.005363c0
add esp, 4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x58b3c0
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 0x58b3fa
cmp dword [ebp + 0xc], 0
je 0x58b3fa
cmp dword [ebp + 0x14], 0
je 0x58b3fa
cmp dword [ebp + 0x18], 0
jne 0x58b3ff
jmp 0x58b489
cmp dword [ebp + 0x10], 1
je 0x58b40b
cmp dword [ebp + 0x10], 2
jne 0x58b46a
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0058a630
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x58b426
jmp 0x58b489
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x14]
push eax
call fcn.0058a630
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x58b441
jmp 0x58b489
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 0x58b489
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 0x58b4a2
mov eax, dword [ebp - 8]
push eax
call fcn.005363c0
add esp, 4
mov dword [ebp - 8], 0
cmp dword [ebp - 4], 0
je 0x58b4bb
mov ecx, dword [ebp - 4]
push ecx
call fcn.005363c0
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x58b520
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 0x58b55a
cmp dword [ebp + 8], 0
jne 0x58b55a
jmp 0x58b5fa
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 0x58b5fa
mov edx, dword [ebp - 8]
push edx
call fcn.004758f8
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x58b5fa
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 0x58b5fa
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.0058a840
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x58b5fa
cmp dword [ebp + 0xc], 0
je 0x58b5f4
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0xc]
jle 0x58b5ce
mov edx, dword [ebp + 0xc]
sub edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.004720b0
add esp, 0xc
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004751f0
add esp, 0xc
mov edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0xc], 0
je 0x58b613
mov eax, dword [ebp - 0xc]
push eax
call fcn.005363c0
add esp, 4
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0
je 0x58b62c
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.005363c0
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x58b640
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 0x58b67a
cmp dword [ebp + 8], 0
jne 0x58b67a
jmp 0x58b71c
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 0x58b71c
mov edx, dword [ebp - 8]
shl edx, 1
push edx
call fcn.004758f8
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x58b71c
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 0x58b71c
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.0058a6e0
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x58b71c
cmp dword [ebp + 0xc], 0
je 0x58b716
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0xc]
jle 0x58b6f0
mov edx, dword [ebp + 0xc]
sub edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.004720b0
add esp, 0xc
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004751f0
add esp, 0xc
mov edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 4], 0
je 0x58b735
mov eax, dword [ebp - 4]
push eax
call fcn.005363c0
add esp, 4
mov dword [ebp - 4], 0
cmp dword [ebp - 0xc], 0
je 0x58b74e
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.005363c0
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x58b870
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.0058a340
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x58b966
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 0x58b966
cmp dword [ebp + 0x10], 0
je 0x58b966
mov eax, dword [ebp - 0xc]
push eax
call fcn.004758f8
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x58b966
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 0x58b966
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.0058a840
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x58b94d
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x10]
jle 0x58b92e
mov ecx, dword [ebp + 0x10]
sub ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00471e10
add esp, 0xc
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0xc]
mov byte [edx], 0
jmp 0x58b966
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004720b0
add esp, 0xc
cmp dword [ebp - 8], 0
je 0x58b97f
mov edx, dword [ebp - 8]
push edx
call fcn.005363c0
add esp, 4
mov dword [ebp - 8], 0
cmp dword [ebp - 4], 0
je 0x58b998
mov eax, dword [ebp - 4]
push eax
call fcn.005363c0
add esp, 4
mov dword [ebp - 4], 0
cmp dword [ebp - 0x10], 0
je 0x58b9b1
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.005363c0
add esp, 4
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x58b9c0
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.0058a630
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x58bab8
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 0x58bab8
cmp dword [ebp + 0x10], 0
je 0x58bab8
mov eax, dword [ebp - 8]
shl eax, 1
push eax
call fcn.004758f8
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x58bab8
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 0x58bab8
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.0058a6e0
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x58ba9f
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
jle 0x58ba80
mov ecx, dword [ebp + 0x10]
sub ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00471e10
add esp, 0xc
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 8]
mov byte [edx], 0
jmp 0x58bab8
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004720b0
add esp, 0xc
cmp dword [ebp - 0x10], 0
je 0x58bad1
mov edx, dword [ebp - 0x10]
push edx
call fcn.005363c0
add esp, 4
mov dword [ebp - 0x10], 0
cmp dword [ebp - 4], 0
je 0x58baea
mov eax, dword [ebp - 4]
push eax
call fcn.005363c0
add esp, 4
mov dword [ebp - 4], 0
cmp dword [ebp - 0xc], 0
je 0x58bb03
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.005363c0
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x59c950
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0x10], 0xffffff9d
jne 0x59c9a5
mov dword [0x5f6708], 0xffffffff
mov dword [ebp - 4], 0
jmp 0x59c978
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 4
jae 0x59c9a0
mov ecx, dword [ebp - 4]
shl ecx, 4
mov dword [ecx + 0x5f66d0], 0
mov edx, dword [ebp - 4]
shl edx, 4
mov dword [edx + 0x5f66d4], 0
jmp 0x59c96f
jmp 0x59cb53
cmp dword [ebp + 0x10], 4
jb 0x59c9c1
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 0x59cb53
cmp dword [ebp + 0x10], 0
jl 0x59c9cd
cmp dword [ebp + 0x10], 4
jb 0x59c9d2
jmp 0x59cb53
cmp dword [0x5f6708], 0
jge 0x59c9e4
cmp dword [0x5f6708], 4
jae 0x59c9fb
push 0
mov eax, dword [0x5f6708]
shl eax, 4
mov ecx, dword [eax + 0x5f66d0]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebp + 0x10]
mov dword [0x5f6708], edx
mov eax, dword [0x5f6708]
shl eax, 4
cmp dword [eax + 0x5f66d4], 0
jne 0x59ca44
mov ecx, dword [0x5f6708]
shl ecx, 4
mov edx, dword [ecx + 0x5f66d0]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0059cb60
add esp, 8
mov ecx, dword [0x5f6708]
shl ecx, 4
mov dword [ecx + 0x5f66d4], 1
push 0
push 0
push 0xaec
mov edx, dword [0x5f6708]
shl edx, 4
mov eax, dword [edx + 0x5f66d0]
push eax
mov ecx, dword [0x5f6708]
shl ecx, 4
mov edx, dword [ecx + 0x5f66c8]
call edx
push 5
mov eax, dword [0x5f6708]
shl eax, 4
mov ecx, dword [eax + 0x5f66d0]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebp - 4], 0
jmp 0x59ca97
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 3
jae 0x59cb53
mov eax, dword [ebp - 4]
mov ecx, dword [eax*8 + 0x5f670c]
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 0x59cb4e
mov eax, dword [ebp - 4]
mov ecx, dword [eax*8 + 0x5f6710]
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 + 0x5f6710]
mov ecx, dword [ebp + 0xc]
movsx edx, byte [ecx + eax + 0x138]
and edx, 2
je 0x59cb4e
mov eax, dword [ebp - 4]
mov ecx, dword [eax*8 + 0x5f6710]
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 + 0x5f6710]
mov ecx, dword [ebp + 0xc]
movsx edx, byte [ecx + eax + 0x138]
and edx, 0xfffffffd
mov eax, dword [ebp - 4]
mov ecx, dword [eax*8 + 0x5f6710]
mov eax, dword [ebp + 0xc]
mov byte [eax + ecx + 0x138], dl
jmp 0x59ca8e
mov esp, ebp
pop ebp
ret
Function at 0x59cc60
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
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
movzx edx, cl
mov dword [ebp - 8], edx
cmp dword [ebp - 4], 0x80000000
jae 0x59ccb1
mov eax, dword [ebp - 4]
shr eax, 0x10
movzx ecx, ax
mov dword [ebp - 0xc], ecx
jmp 0x59ccd1
cmp dword [ebp - 0x14], 4
jae 0x59ccca
mov edx, dword [ebp - 4]
shr edx, 0x10
movzx eax, dx
and eax, 0xffff7fff
mov dword [ebp - 0xc], eax
jmp 0x59ccd1
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0x14], 6
jb 0x59cce0
mov dword [ebp - 0x10], 7
jmp 0x59cd2c
cmp dword [ebp - 0x14], 5
jne 0x59ccef
mov dword [ebp - 0x10], 6
jmp 0x59cd2c
cmp dword [ebp - 0x14], 4
jne 0x59cd04
cmp dword [ebp - 8], 0
jne 0x59cd04
mov dword [ebp - 0x10], 4
jmp 0x59cd2c
cmp dword [ebp - 0x14], 3
jne 0x59cd19
cmp dword [ebp - 8], 0
jne 0x59cd19
mov dword [ebp - 0x10], 5
jmp 0x59cd2c
cmp dword [ebp - 0x14], 4
jne 0x59cd2c
cmp dword [ebp - 8], 1
jne 0x59cd2c
mov dword [ebp - 0x10], 3
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x59cd40
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x5fd0b0]
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.004720b0
add esp, 0xc
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x12c], 0
cmp dword [0x6105c4], 0
jne 0x59cf85
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
push str.TerminalServerFlexlmMutex
push 0x5f6780
lea ecx, [ebp - 0x110]
push ecx
call fcn.00471bce
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 0x59ce04
xor eax, eax
jmp 0x59cf91
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x59ce20
push 0xffffffffffffffff
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x6105c4], 0
jne 0x59cf6b
call fcn.0059cc60
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.0x59ce66
mov eax, dword [ebp - 0x130]
jmp dword [eax*4 + 0x59cfa0]
push 0x5f6788
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x6105d8], eax
cmp dword [0x6105d8], 0
je 0x59cf24
push str.WTSEnumerateSessionsA
mov ecx, dword [0x6105d8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x6105cc], eax
cmp dword [0x6105cc], 0
je 0x59cf24
push 0x5f67b0
mov edx, dword [0x6105d8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x6105d0], eax
cmp dword [0x6105d0], 0
je 0x59cf24
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x128]
push ecx
push 1
push 0
push 0
call dword [0x6105cc]
cmp dword [ebp - 0x128], 0
je 0x59cefe
mov edx, dword [ebp - 0x128]
cmp dword [edx + 8], 0
jne 0x59cf0d
mov eax, dword [ebp - 0x128]
push eax
call dword [0x6105d0]
jmp 0x59cf24
mov ecx, dword [ebp - 0x128]
push ecx
call dword [0x6105d0]
mov dword [0x6105c8], 1
mov edx, dword [0x6105d8]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x6105d8], 0
jmp case.default.0x59ce66
push 0x1000
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
je case.default.0x59ce66
mov dword [0x6105c8], 1
mov dword [0x6105c4], 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 [0x6105c8], 0
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047209e
mov esp, ebp
pop ebp
ret