joyce8/EMBER2024-capa huggingface dataset:
Function at 0x666a20
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 0x666a61
cmp dword [ebp + 0xc], 0
je 0x666a61
cmp dword [ebp + 0x10], 0
je 0x666a61
cmp dword [ebp + 0x14], 0
jne 0x666a66
jmp 0x666b39
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.00665f40
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x666b39
cmp dword [ebp - 0x14], 0
je 0x666b39
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 0x666b39
mov edx, dword [ebp - 0x14]
add edx, 1
push edx
call fcn.005d4c93
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x666b39
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 0x666b39
mov edx, dword [ebp + 0x10]
cmp dword [edx], 1
je 0x666b0f
mov eax, dword [ebp + 0x10]
cmp dword [eax], 2
jne 0x666b24
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.00665ff0
add esp, 8
mov dword [ebp - 4], eax
jmp 0x666b39
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 0x666b52
mov eax, dword [ebp - 8]
push eax
call fcn.0062c1c0
add esp, 4
mov dword [ebp - 8], 0
cmp dword [ebp - 0xc], 0
je 0x666b6b
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0062c1c0
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x666be0
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 0x666c1a
cmp dword [ebp + 0xc], 0
je 0x666c1a
cmp dword [ebp + 0x14], 0
je 0x666c1a
cmp dword [ebp + 0x18], 0
jne 0x666c1f
jmp 0x666ca1
cmp dword [ebp + 0x10], 1
je 0x666c2b
cmp dword [ebp + 0x10], 2
jne 0x666c82
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00665c40
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x666c46
jmp 0x666ca1
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x14]
push eax
call fcn.00665c40
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x666c61
jmp 0x666ca1
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 0x666ca1
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 0x666cba
mov edx, dword [ebp - 4]
push edx
call fcn.0062c1c0
add esp, 4
mov dword [ebp - 4], 0
cmp dword [ebp - 8], 0
je 0x666cd3
mov eax, dword [ebp - 8]
push eax
call fcn.0062c1c0
add esp, 4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x666ce0
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 0x666d1a
cmp dword [ebp + 0xc], 0
je 0x666d1a
cmp dword [ebp + 0x14], 0
je 0x666d1a
cmp dword [ebp + 0x18], 0
jne 0x666d1f
jmp 0x666da9
cmp dword [ebp + 0x10], 1
je 0x666d2b
cmp dword [ebp + 0x10], 2
jne 0x666d8a
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00665f40
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x666d46
jmp 0x666da9
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x14]
push eax
call fcn.00665f40
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x666d61
jmp 0x666da9
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 0x666da9
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 0x666dc2
mov eax, dword [ebp - 8]
push eax
call fcn.0062c1c0
add esp, 4
mov dword [ebp - 8], 0
cmp dword [ebp - 4], 0
je 0x666ddb
mov ecx, dword [ebp - 4]
push ecx
call fcn.0062c1c0
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x666e40
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 0x666e7a
cmp dword [ebp + 8], 0
jne 0x666e7a
jmp 0x666f1e
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 0x666f1e
mov edx, dword [ebp - 8]
push edx
call fcn.005d4c93
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x666f1e
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 0x666f1e
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.00666150
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x666f1e
cmp dword [ebp + 0xc], 0
je 0x666f18
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0xc]
jle 0x666eee
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.00401ca0
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.00401990
add esp, 0x10
mov edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0xc], 0
je 0x666f37
mov eax, dword [ebp - 0xc]
push eax
call fcn.0062c1c0
add esp, 4
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0
je 0x666f50
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0062c1c0
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x666f60
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 0x666f9a
cmp dword [ebp + 8], 0
jne 0x666f9a
jmp 0x667040
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 0x667040
mov edx, dword [ebp - 8]
shl edx, 1
push edx
call fcn.005d4c93
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x667040
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 0x667040
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00665ff0
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x667040
cmp dword [ebp + 0xc], 0
je 0x66703a
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0xc]
jle 0x667010
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.00401ca0
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.00401990
add esp, 0x10
mov edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 4], 0
je 0x667059
mov eax, dword [ebp - 4]
push eax
call fcn.0062c1c0
add esp, 4
mov dword [ebp - 4], 0
cmp dword [ebp - 0xc], 0
je 0x667072
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0062c1c0
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x667190
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.00665c40
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x66728e
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 0x66728e
cmp dword [ebp + 0x10], 0
je 0x66728e
mov eax, dword [ebp - 0xc]
push eax
call fcn.005d4c93
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x66728e
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 0x66728e
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00666150
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x667273
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x10]
jle 0x667252
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.00401150
add esp, 0x10
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0xc]
mov byte [edx], 0
jmp 0x66728e
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.00401ca0
add esp, 0x10
cmp dword [ebp - 8], 0
je 0x6672a7
mov edx, dword [ebp - 8]
push edx
call fcn.0062c1c0
add esp, 4
mov dword [ebp - 8], 0
cmp dword [ebp - 4], 0
je 0x6672c0
mov eax, dword [ebp - 4]
push eax
call fcn.0062c1c0
add esp, 4
mov dword [ebp - 4], 0
cmp dword [ebp - 0x10], 0
je 0x6672d9
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0062c1c0
add esp, 4
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x6672e0
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.00665f40
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x6673e0
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 0x6673e0
cmp dword [ebp + 0x10], 0
je 0x6673e0
mov eax, dword [ebp - 8]
shl eax, 1
push eax
call fcn.005d4c93
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x6673e0
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 0x6673e0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.00665ff0
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x6673c5
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
jle 0x6673a4
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.00401150
add esp, 0x10
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 8]
mov byte [edx], 0
jmp 0x6673e0
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.00401ca0
add esp, 0x10
cmp dword [ebp - 0x10], 0
je 0x6673f9
mov edx, dword [ebp - 0x10]
push edx
call fcn.0062c1c0
add esp, 4
mov dword [ebp - 0x10], 0
cmp dword [ebp - 4], 0
je 0x667412
mov eax, dword [ebp - 4]
push eax
call fcn.0062c1c0
add esp, 4
mov dword [ebp - 4], 0
cmp dword [ebp - 0xc], 0
je 0x66742b
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0062c1c0
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x669ed0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0x10], 0xffffff9d
jne 0x669f25
mov dword [0x77d070], 0xffffffff
mov dword [ebp - 4], 0
jmp 0x669ef8
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 4
jae 0x669f20
mov ecx, dword [ebp - 4]
shl ecx, 4
mov dword [ecx + 0x77d038], 0
mov edx, dword [ebp - 4]
shl edx, 4
mov dword [edx + 0x77d03c], 0
jmp 0x669eef
jmp 0x66a0d3
cmp dword [ebp + 0x10], 4
jb 0x669f41
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 0x66a0d3
cmp dword [ebp + 0x10], 0
jl 0x669f4d
cmp dword [ebp + 0x10], 4
jb 0x669f52
jmp 0x66a0d3
cmp dword [0x77d070], 0
jge 0x669f64
cmp dword [0x77d070], 4
jae 0x669f7b
push 0
mov eax, dword [0x77d070]
shl eax, 4
mov ecx, dword [eax + 0x77d038]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebp + 0x10]
mov dword [0x77d070], edx
mov eax, dword [0x77d070]
shl eax, 4
cmp dword [eax + 0x77d03c], 0
jne 0x669fc4
mov ecx, dword [0x77d070]
shl ecx, 4
mov edx, dword [ecx + 0x77d038]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0066a0e0
add esp, 8
mov ecx, dword [0x77d070]
shl ecx, 4
mov dword [ecx + 0x77d03c], 1
push 0
push 0
push 0xaec
mov edx, dword [0x77d070]
shl edx, 4
mov eax, dword [edx + 0x77d038]
push eax
mov ecx, dword [0x77d070]
shl ecx, 4
mov edx, dword [ecx + 0x77d030]
call edx
push 5
mov eax, dword [0x77d070]
shl eax, 4
mov ecx, dword [eax + 0x77d038]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebp - 4], 0
jmp 0x66a017
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 3
jae 0x66a0d3
mov eax, dword [ebp - 4]
mov ecx, dword [eax*8 + 0x77d074]
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 0x66a0ce
mov eax, dword [ebp - 4]
mov ecx, dword [eax*8 + 0x77d078]
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 + 0x77d078]
mov ecx, dword [ebp + 0xc]
movsx edx, byte [ecx + eax + 0x138]
and edx, 2
je 0x66a0ce
mov eax, dword [ebp - 4]
mov ecx, dword [eax*8 + 0x77d078]
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 + 0x77d078]
mov ecx, dword [ebp + 0xc]
movsx edx, byte [ecx + eax + 0x138]
and edx, 0xfffffffd
mov eax, dword [ebp - 4]
mov ecx, dword [eax*8 + 0x77d078]
mov eax, dword [ebp + 0xc]
mov byte [eax + ecx + 0x138], dl
jmp 0x66a00e
mov esp, ebp
pop ebp
ret
Function at 0x66a1e0
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 0x66a243
mov eax, dword [ebp - 4]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
mov dword [ebp - 0xc], ecx
jmp 0x66a269
cmp dword [ebp - 0x14], 4
jae 0x66a262
mov edx, dword [ebp - 4]
shr edx, 0x10
and edx, 0xffff
movzx eax, dx
and eax, 0xffff7fff
mov dword [ebp - 0xc], eax
jmp 0x66a269
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0x14], 6
jb 0x66a278
mov dword [ebp - 0x10], 7
jmp 0x66a2c4
cmp dword [ebp - 0x14], 5
jne 0x66a287
mov dword [ebp - 0x10], 6
jmp 0x66a2c4
cmp dword [ebp - 0x14], 4
jne 0x66a29c
cmp dword [ebp - 8], 0
jne 0x66a29c
mov dword [ebp - 0x10], 4
jmp 0x66a2c4
cmp dword [ebp - 0x14], 3
jne 0x66a2b1
cmp dword [ebp - 8], 0
jne 0x66a2b1
mov dword [ebp - 0x10], 5
jmp 0x66a2c4
cmp dword [ebp - 0x14], 4
jne 0x66a2c4
cmp dword [ebp - 8], 1
jne 0x66a2c4
mov dword [ebp - 0x10], 3
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x66a2d0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x78ca90]
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.005cfab0
add esp, 0xc
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x12c], 0
cmp dword [0x795734], 0
jne 0x66a515
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
push str.TerminalServerFlexlmMutex
push 0x77d0e8
lea ecx, [ebp - 0x110]
push ecx
call fcn.005d3f03
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 0x66a394
xor eax, eax
jmp 0x66a521
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x66a3b0
push 0xffffffffffffffff
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x795734], 0
jne 0x66a4fb
call fcn.0066a1e0
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.0x66a3f6
mov eax, dword [ebp - 0x130]
jmp dword [eax*4 + 0x66a530]
push 0x77d0f0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x795748], eax
cmp dword [0x795748], 0
je 0x66a4b4
push str.WTSEnumerateSessionsA
mov ecx, dword [0x795748]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x79573c], eax
cmp dword [0x79573c], 0
je 0x66a4b4
push 0x77d118
mov edx, dword [0x795748]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x795740], eax
cmp dword [0x795740], 0
je 0x66a4b4
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x128]
push ecx
push 1
push 0
push 0
call dword [0x79573c]
cmp dword [ebp - 0x128], 0
je 0x66a48e
mov edx, dword [ebp - 0x128]
cmp dword [edx + 8], 0
jne 0x66a49d
mov eax, dword [ebp - 0x128]
push eax
call dword [0x795740]
jmp 0x66a4b4
mov ecx, dword [ebp - 0x128]
push ecx
call dword [0x795740]
mov dword [0x795738], 1
mov edx, dword [0x795748]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x795748], 0
jmp case.default.0x66a3f6
push 0x1000
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
je case.default.0x66a3f6
mov dword [0x795738], 1
mov dword [0x795734], 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 [0x795738], 0
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005cfbcb
mov esp, ebp
pop ebp
ret
Function at 0x670b70
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x78ca90]
xor eax, ebp
mov dword [ebp - 8], eax
mov byte [ebp - 0x410], 0
push 0x400
push 0
lea eax, [ebp - 0x40f]
push eax
call fcn.005cfab0
add esp, 0xc
mov dword [ebp - 0x414], 0
mov dword [ebp - 0x420], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x418], 0
cmp dword [ebp + 8], 0
je 0x670be7
push 0
push 0x400
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x410]
push edx
call fcn.00401150
add esp, 0x10
jmp 0x670c0c
cmp dword [ebp + 8], 0
jne 0x670c0c
push 0x400
lea eax, [ebp - 0x410]
push eax
call fcn.00667080
add esp, 8
test eax, eax
je 0x670c0c
xor eax, eax
jmp 0x670db4
push 1
call fcn.00672190
add esp, 4
test eax, eax
jne 0x670c21
xor eax, eax
jmp 0x670db4
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x410]
push edx
call fcn.00665c40
add esp, 8
mov dword [ebp - 0x414], eax
push 0
push 0x20
push 0
lea eax, [ebp - 0x440]
push eax
call fcn.00401ca0
add esp, 0x10
mov dword [ebp - 0x440], 2
mov dword [ebp - 0x438], 1
mov dword [ebp - 0x43c], 2
cmp dword [ebp - 0x414], 0
je 0x670c84
mov ecx, dword [ebp - 0x414]
mov dword [ebp - 0x444], ecx
jmp 0x670c90
lea edx, [ebp - 0x410]
mov dword [ebp - 0x444], edx
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x440]
push ecx
push 0
mov edx, dword [ebp - 0x444]
push edx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x670cba
cmp dword [ebp - 0x420], 0
jne 0x670cd9
cmp dword [ebp - 0x414], 0
je 0x670cd2
mov eax, dword [ebp - 0x414]
push eax
call fcn.0062c1c0
add esp, 4
xor eax, eax
jmp 0x670db4
mov ecx, dword [ebp - 0x420]
mov dword [ebp - 0x41c], ecx
jmp 0x670cf6
mov edx, dword [ebp - 0x41c]
mov eax, dword [edx + 0x1c]
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
je 0x670d89
push 0
mov ecx, dword [ebp + 0x10]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
call fcn.00401ca0
add esp, 0x10
push 2
push 0
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x41c]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 0x41c]
mov edx, dword [ecx + 0x18]
push edx
call dword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
je 0x670d45
jmp 0x670ce7
push 0
push str.127.0.0.1
mov eax, dword [ebp + 0xc]
push eax
call fcn.004013c0
add esp, 0xc
test eax, eax
je 0x670d73
push 0
push str.0.0.0.0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004013c0
add esp, 0xc
test eax, eax
jne 0x670d78
jmp 0x670ce7
mov dword [ebp - 0x418], 1
jmp 0x670d89
mov edx, dword [ebp - 0x420]
push edx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 0x414], 0
je 0x670dae
mov eax, dword [ebp - 0x414]
push eax
call fcn.0062c1c0
add esp, 4
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005cfbcb
mov esp, ebp
pop ebp
ret