joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411459
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x411493
cmp dword [ebp + 0x10], 0
je 0x411493
cmp dword [ebp + 0x18], 0
je 0x411493
cmp dword [ebp + 0x1c], 0
jne 0x411498
jmp 0x41152a
cmp dword [ebp + 0x14], 1
je 0x4114a4
cmp dword [ebp + 0x14], 2
jne 0x41150b
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004106ca
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4114c3
jmp 0x41152a
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004106ca
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4114e2
jmp 0x41152a
mov eax, dword [ebp - 0xc]
shl eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 0x14]
push eax
push 0
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], eax
jmp 0x41152a
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 0x10], 0
je 0x411543
mov edx, dword [ebp - 0x10]
push edx
call fcn.00419aae
add esp, 4
mov dword [ebp - 0x10], 0
cmp dword [ebp - 8], 0
je 0x41155c
mov eax, dword [ebp - 8]
push eax
call fcn.00419aae
add esp, 4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4115af
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 0x10], 0
je 0x4115e9
cmp dword [ebp + 0xc], 0
jne 0x4115e9
jmp 0x411691
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
cmp dword [ebp - 0x10], 0
je 0x411691
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00419880
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x411691
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x411691
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004108c7
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x411691
cmp dword [ebp + 0x10], 0
je 0x41168b
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0x10]
jle 0x411665
mov ecx, dword [ebp + 0x10]
sub ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.004aef20
add esp, 0xc
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004af900
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 8], ecx
cmp dword [ebp - 0xc], 0
je 0x4116aa
mov edx, dword [ebp - 0xc]
push edx
call fcn.00419aae
add esp, 4
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0
je 0x4116c3
mov eax, dword [ebp - 0xc]
push eax
call fcn.00419aae
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x4116ca
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
je 0x411704
cmp dword [ebp + 0xc], 0
jne 0x411704
jmp 0x4117ae
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
cmp dword [ebp - 0x10], 0
je 0x4117ae
mov edx, dword [ebp - 0x10]
shl edx, 1
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00419880
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4117ae
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4117ae
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00410773
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4117ae
cmp dword [ebp + 0x10], 0
je 0x4117a8
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0x10]
jle 0x411782
mov ecx, dword [ebp + 0x10]
sub ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.004aef20
add esp, 0xc
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004af900
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], ecx
cmp dword [ebp - 8], 0
je 0x4117c7
mov edx, dword [ebp - 8]
push edx
call fcn.00419aae
add esp, 4
mov dword [ebp - 8], 0
cmp dword [ebp - 0xc], 0
je 0x4117e0
mov eax, dword [ebp - 0xc]
push eax
call fcn.00419aae
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4118f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00410403
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4119f6
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4119f6
cmp dword [ebp + 0x14], 0
je 0x4119f6
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00419880
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4119f6
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4119f6
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004108c7
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4119dd
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0x14]
jle 0x4119be
mov ecx, dword [ebp + 0x14]
sub ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004afd60
add esp, 0xc
mov edx, dword [ebp + 0x10]
add edx, dword [ebp - 0x10]
mov byte [edx], 0
jmp 0x4119f6
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 0x14]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004aef20
add esp, 0xc
cmp dword [ebp - 8], 0
je 0x411a0f
mov edx, dword [ebp - 8]
push edx
call fcn.00419aae
add esp, 4
mov dword [ebp - 8], 0
cmp dword [ebp - 4], 0
je 0x411a28
mov eax, dword [ebp - 4]
push eax
call fcn.00419aae
add esp, 4
mov dword [ebp - 4], 0
cmp dword [ebp - 0xc], 0
je 0x411a41
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00419aae
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x411a48
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004106ca
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x411b50
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x411b50
cmp dword [ebp + 0x14], 0
je 0x411b50
mov ecx, dword [ebp - 0x10]
shl ecx, 1
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00419880
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x411b50
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x411b50
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00410773
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x411b37
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0x14]
jle 0x411b18
mov ecx, dword [ebp + 0x14]
sub ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004afd60
add esp, 0xc
mov edx, dword [ebp + 0x10]
add edx, dword [ebp - 0x10]
mov byte [edx], 0
jmp 0x411b50
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 0x14]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004aef20
add esp, 0xc
cmp dword [ebp - 8], 0
je 0x411b69
mov edx, dword [ebp - 8]
push edx
call fcn.00419aae
add esp, 4
mov dword [ebp - 8], 0
cmp dword [ebp - 4], 0
je 0x411b82
mov eax, dword [ebp - 4]
push eax
call fcn.00419aae
add esp, 4
mov dword [ebp - 4], 0
cmp dword [ebp - 0xc], 0
je 0x411b9b
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00419aae
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x42949f
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov dword [ebp - 0x404], 0
push 0x400
lea eax, [ebp - 0x400]
push eax
call sub.WSOCK32.dll_gethostname
test eax, eax
jne 0x4294dc
lea ecx, [ebp - 0x400]
push ecx
call fcn.004298c1
add esp, 4
mov dword [ebp - 0x404], eax
mov eax, dword [ebp - 0x404]
mov esp, ebp
pop ebp
ret

Function at 0x4298c1
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov dword [ebp - 0x408], 0
mov dword [ebp - 0x40c], 0
push 1
call fcn.0042a406
add esp, 4
test eax, eax
jne 0x4298f7
mov eax, dword [ebp - 0x408]
jmp 0x4299b4
mov dword [ebp - 0x40c], 0
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll_gethostbyname
mov dword [ebp - 0x404], eax
cmp dword [ebp - 0x404], 0
jne 0x429924
mov eax, dword [ebp - 0x408]
jmp 0x4299b4
push 0x400
lea ecx, [ebp - 0x400]
push ecx
mov edx, dword [ebp - 0x404]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x404]
movsx eax, word [edx + 8]
push eax
call fcn.00429b2e
add esp, 0x10
test eax, eax
jne 0x42995b
mov eax, dword [ebp - 0x408]
jmp 0x4299b4
lea ecx, [ebp - 0x400]
push ecx
mov edx, dword [ebp - 0x404]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x404]
movsx eax, word [edx + 8]
push eax
call fcn.0042a2cf
add esp, 0x10
mov dword [ebp - 0x408], eax
mov ecx, dword [ebp - 0x404]
movsx edx, word [ecx + 0xa]
push edx
mov eax, dword [ebp - 0x404]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x408]
push eax
call fcn.0042a3c0
add esp, 0xc
mov eax, dword [ebp - 0x408]
mov esp, ebp
pop ebp
ret
Function at 0x42a406
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
cmp dword [0x4da068], 0
je 0x42a41f
mov eax, 1
jmp 0x42a45d
mov word [ebp - 0x194], 0x101
lea eax, [ebp - 0x190]
push eax
mov cx, word [ebp - 0x194]
push ecx
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x42a44e
call sub.WSOCK32.dll_WSAGetLastError
call sub.WSOCK32.dll_WSACleanup
xor eax, eax
jmp 0x42a45d
mov dword [0x4da068], 1
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x42f46b
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
push esi
push edi
mov byte [ebp - 0x404], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x403]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x80c], 0
mov dword [ebp - 0x808], 0
mov byte [ebp - 0x804], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x803]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 4], 0x400
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x50]
push ecx
push 0x4cd840
lea edx, [ebp - 0x404]
push edx
call fcn.004af408
add esp, 0xc
lea eax, [ebp - 0x80c]
push eax
push 0x20007
push 0
push 0x4cd84c
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x42f568
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x80], 0
je 0x42f523
xor edx, edx
test edx, edx
je 0x42f523
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x80]
mov dword [ebp - 0x810], ecx
jmp 0x42f52d
mov dword [ebp - 0x810], 0xffffff86
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x810]
mov dword [edx + 0x80], eax
push 0
push 0xff
push 0
push 0
push 0x267
push 0xffffffffffffff86
mov ecx, dword [ebp + 8]
push ecx
call fcn.00419110
add esp, 0x1c
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x80]
jmp 0x42f689
push 0
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x804]
push ecx
mov edx, dword [ebp - 0x808]
mov dword [ebp - 0x814], edx
mov eax, dword [ebp - 0x814]
push eax
mov ecx, dword [ebp - 0x80c]
push ecx
mov edx, dword [ebp - 0x808]
add edx, 1
mov dword [ebp - 0x808], edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x42f67a
mov eax, dword [ebp - 4]
mov byte [ebp + eax - 0x804], 0
lea ecx, [ebp - 0x404]
push ecx
call fcn.004aee10
add esp, 4
push eax
lea edx, [ebp - 0x404]
push edx
lea eax, [ebp - 0x804]
push eax
call fcn.004af7d0
add esp, 0xc
test eax, eax
jne 0x42f66e
mov ecx, dword [ebp + 0xc]
add ecx, 4
push ecx
call fcn.004aee10
add esp, 4
push eax
mov edx, dword [ebp + 0xc]
add edx, 4
push edx
lea eax, [ebp - 0x804]
push eax
call fcn.004aee10
add esp, 4
mov esi, eax
mov ecx, dword [ebp + 0xc]
add ecx, 4
push ecx
call fcn.004aee10
add esp, 4
sub esi, eax
lea edx, [ebp + esi - 0x804]
push edx
call fcn.004af7d0
add esp, 0xc
test eax, eax
jne 0x42f66e
lea eax, [ebp - 0x804]
push eax
mov ecx, dword [ebp - 0x80c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 0x4cd874
mov edx, dword [ebp - 0x80c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042f68f
add esp, 8
mov dword [ebp - 4], 0x400
jmp 0x42f568
mov edx, dword [ebp - 0x80c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x430ff8
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
add eax, 0x80000002
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00432557
add esp, 8
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 0x20006
push 0
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4310f4
push 0
call fcn.00431186
add esp, 4
push 1
call fcn.00431186
add esp, 4
lea eax, [ebp - 8]
push eax
push 0x20006
push 0
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4310f4
mov eax, dword [ebp - 0xc]
push eax
call fcn.00419aae
add esp, 4
cmp dword [ebp + 8], 0
je 0x4310ea
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x80], 0
je 0x4310b9
xor edx, edx
test edx, edx
je 0x4310b9
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x80]
mov dword [ebp - 0x14], ecx
jmp 0x4310c0
mov dword [ebp - 0x14], 0xffffffc1
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x80], eax
push 0
push 0xff
push 0
push 0
push 0x1de
push 0xffffffffffffffc1
mov ecx, dword [ebp + 8]
push ecx
call fcn.00419110
add esp, 0x1c
mov eax, 1
jmp 0x431182
mov edx, dword [ebp - 0xc]
push edx
call fcn.00419aae
add esp, 4
cmp dword [ebp + 0x10], 0
je 0x43111c
cmp dword [ebp + 0x14], 0
jne 0x43112c
mov eax, dword [ebp + 0x10]
push eax
call fcn.004aee10
add esp, 4
test eax, eax
jne 0x43112c
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x431176
cmp dword [ebp + 0x14], 0
je 0x43113a
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
jmp 0x43114c
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004aee10
add esp, 4
add eax, 1
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0x14]
neg ecx
sbb ecx, ecx
and ecx, 2
add ecx, 1
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004112f3
add esp, 0x18
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4326c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
and eax, 0xff
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
and ecx, 0xffff
sar ecx, 8
and ecx, 0xff
and ecx, 0xff
mov dword [ebp - 4], ecx
cmp dword [ebp - 8], 0x80000000
jae 0x432715
mov edx, dword [ebp - 8]
shr edx, 0x10
and edx, 0xffff
and edx, 0xffff
mov dword [ebp - 0x14], edx
jmp 0x43273a
cmp dword [ebp - 0x10], 4
jae 0x432733
mov eax, dword [ebp - 8]
shr eax, 0x10
and eax, 0xffff
and eax, 0xffff
and ah, 0x7f
mov dword [ebp - 0x14], eax
jmp 0x43273a
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x10], 5
jne 0x43274d
cmp dword [ebp - 4], 2
jne 0x43274d
mov dword [ebp - 0xc], 8
cmp dword [ebp - 0x10], 5
jne 0x432760
cmp dword [ebp - 4], 1
jne 0x432760
mov dword [ebp - 0xc], 7
cmp dword [ebp - 0x10], 5
jne 0x432773
cmp dword [ebp - 4], 0
jne 0x432773
mov dword [ebp - 0xc], 6
cmp dword [ebp - 0x10], 4
jne 0x432786
cmp dword [ebp - 4], 0
jne 0x432786
mov dword [ebp - 0xc], 4
cmp dword [ebp - 0x10], 3
jne 0x432799
cmp dword [ebp - 4], 0
jne 0x432799
mov dword [ebp - 0xc], 5
cmp dword [ebp - 0x10], 4
jne 0x4327ac
cmp dword [ebp - 4], 1
jne 0x4327ac
mov dword [ebp - 0xc], 3
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x4327b3
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push edi
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x104], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
cmp dword [0x4da0f4], 0
jne 0x4329e0
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
push str.TerminalServerFlexlmMutex
push 0x4cdce4
lea eax, [ebp - 0x104]
push eax
call fcn.004af408
add esp, 0x10
lea ecx, [ebp - 0x104]
push ecx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
jne 0x432865
xor eax, eax
jmp 0x4329ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x432881
push 0xffffffffffffffff
mov edx, dword [ebp - 0x11c]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x4da0f4], 0
jne 0x4329c6
call fcn.004326c0
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp - 0x124]
sub ecx, 4
mov dword [ebp - 0x124], ecx
cmp dword [ebp - 0x124], 4
ja case.default.0x4328c7
mov edx, dword [ebp - 0x124]
jmp dword [edx*4 + 0x4329f1]
push 0x4cdcec
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x4da104], eax
cmp dword [0x4da104], 0
je 0x43297f
push str.WTSEnumerateSessionsA
mov eax, dword [0x4da104]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4da0fc], eax
cmp dword [0x4da0fc], 0
je 0x43297f
push str.WTSFreeMemory
mov ecx, dword [0x4da104]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4da100], eax
cmp dword [0x4da100], 0
je 0x43297f
lea edx, [ebp - 0x10c]
push edx
lea eax, [ebp - 0x114]
push eax
push 1
push 0
push 0
call dword [0x4da0fc]
cmp dword [ebp - 0x114], 0
je 0x432959
mov ecx, dword [ebp - 0x114]
cmp dword [ecx + 8], 0
jne 0x432968
mov edx, dword [ebp - 0x114]
push edx
call dword [0x4da100]
jmp 0x43297f
mov eax, dword [ebp - 0x114]
push eax
call dword [0x4da100]
mov dword [0x4da0f8], 1
mov ecx, dword [0x4da104]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x4da104], 0
jmp case.default.0x4328c7
push 0x1000
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
je case.default.0x4328c7
mov dword [0x4da0f8], 1
mov dword [0x4da0f4], 1
mov edx, dword [ebp - 0x11c]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [0x4da0f8], 0
setne al
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x432a10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xd0]
mov edx, dword [ecx + 0x10a4]
and edx, 0x40
test edx, edx
jne 0x432a3d
xor eax, eax
jmp 0x432c1e
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x134]
and ecx, 0x80
test ecx, ecx
jne 0x432aad
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x134]
or al, 0x80
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x134], eax
push str.BUG_B
push 0x45
push 0x44
push str.FLEXLM__c_c_sADDATE
lea edx, [ebp - 0x2cc]
push edx
call fcn.004af408
add esp, 0x14
lea eax, [ebp - 0x2cc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00431804
add esp, 8
test eax, eax
je 0x432aad
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x134]
or ah, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x134], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x134]
and eax, 0x100
test eax, eax
je 0x432b23
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x80], 0
je 0x432ae2
xor edx, edx
test edx, edx
je 0x432ae2
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x80]
mov dword [ebp - 0x2d0], ecx
jmp 0x432aec
mov dword [ebp - 0x2d0], 0xffffffa8
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x2d0]
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.00419110
add esp, 0x1c
mov eax, 0xffffffa8
jmp 0x432c1e
mov byte [ebp - 0x204], 0x5c
mov byte [ebp - 0x203], 0
push 0
lea edx, [ebp - 0x204]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00432c22
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x432b57
mov eax, dword [ebp - 4]
jmp 0x432c1e
push 0x200
lea ecx, [ebp - 0x204]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0
lea edx, [ebp - 0x204]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00432c22
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x432b8f
mov eax, dword [ebp - 4]
jmp 0x432c1e
mov byte [ebp - 0x204], 0x2f
mov byte [ebp - 0x202], 0x61
mov byte [ebp - 0x201], 0x72
mov byte [ebp - 0x203], 0x76
mov byte [ebp - 0x200], 0
push 0
lea ecx, [ebp - 0x204]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00432c22
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x432bd5
mov eax, dword [ebp - 4]
jmp 0x432c1e
mov byte [ebp - 0x204], 0x2f
mov byte [ebp - 0x200], 0
mov byte [ebp - 0x202], 0x6d
mov byte [ebp - 0x203], 0x74
mov byte [ebp - 0x201], 0x70
push 0
lea eax, [ebp - 0x204]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00432c22
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x432c1b
mov eax, dword [ebp - 4]
jmp 0x432c1e
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret