joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d9650
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x10]
and ecx, 0xff
mov byte [ebp - 8], cl
mov edx, dword [ebp + 0x10]
sar edx, 8
and edx, 0xff
mov byte [ebp - 7], dl
mov eax, dword [ebp + 0x10]
sar eax, 0x10
and eax, 0xff
mov byte [ebp - 6], al
mov ecx, dword [ebp + 0x10]
sar ecx, 0x18
and ecx, 0xff
mov byte [ebp - 5], cl
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
sub eax, 1
mov dword [ebp + 0xc], eax
test edx, edx
je 0x4d96e1
mov ecx, dword [ebp - 4]
movsx edx, byte [ebp + ecx - 8]
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
xor ecx, edx
mov edx, dword [ebp + 8]
mov byte [edx], cl
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 3
jle 0x4d96d6
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
jmp 0x4d969b
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x4e5530
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x58b7c8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x591da4], 0
jne 0x4e55d1
push 0x94
push 0
lea eax, [ebp - 0xa0]
push eax
call sub.MSVCR90.dll_memset
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 0x4e55c7
cmp dword [ebp - 0x90], 1
jne 0x4e5596
mov dword [0x591da0], 2
jmp 0x4e55c7
cmp dword [ebp - 0x90], 2
je 0x4e55a8
cmp dword [ebp - 0x9c], 6
jb 0x4e55b4
mov dword [0x591da0], 1
jmp 0x4e55c7
cmp dword [ebp - 0x90], 0
jne 0x4e55c7
mov dword [0x591da0], 3
mov dword [0x591da4], 1
mov eax, dword [0x591da0]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472edc
mov esp, ebp
pop ebp
ret

Function at 0x4e5dc0
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 0x4e5df8
jmp 0x4e5e3c
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 0x4e5e3c
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.004e5990
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4e5e3c
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004e5e60
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x10], 0
je 0x4e5e55
mov edx, dword [ebp - 0x10]
push edx
call fcn.0048e500
add esp, 4
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x4e6250
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 0x4e6291
cmp dword [ebp + 0xc], 0
je 0x4e6291
cmp dword [ebp + 0x10], 0
je 0x4e6291
cmp dword [ebp + 0x14], 0
jne 0x4e6296
jmp 0x4e6369
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.004e55f0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4e6369
cmp dword [ebp - 0x14], 0
je 0x4e6369
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 0x4e6369
mov edx, dword [ebp - 0x14]
add edx, 1
push edx
call sub.MSVCR90.dll_malloc
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4e6369
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 0x4e6369
mov edx, dword [ebp + 0x10]
cmp dword [edx], 1
je 0x4e633f
mov eax, dword [ebp + 0x10]
cmp dword [eax], 2
jne 0x4e6354
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.004e5af0
add esp, 8
mov dword [ebp - 8], eax
jmp 0x4e6369
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 0x4e6382
mov eax, dword [ebp - 4]
push eax
call fcn.0048e500
add esp, 4
mov dword [ebp - 4], 0
cmp dword [ebp - 0xc], 0
je 0x4e639b
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0048e500
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x4e63b0
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 0x4e63f1
cmp dword [ebp + 0xc], 0
je 0x4e63f1
cmp dword [ebp + 0x10], 0
je 0x4e63f1
cmp dword [ebp + 0x14], 0
jne 0x4e63f6
jmp 0x4e64c9
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.004e58e0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4e64c9
cmp dword [ebp - 0x14], 0
je 0x4e64c9
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 0x4e64c9
mov edx, dword [ebp - 0x14]
add edx, 1
push edx
call sub.MSVCR90.dll_malloc
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4e64c9
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 0x4e64c9
mov edx, dword [ebp + 0x10]
cmp dword [edx], 1
je 0x4e649f
mov eax, dword [ebp + 0x10]
cmp dword [eax], 2
jne 0x4e64b4
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.004e5990
add esp, 8
mov dword [ebp - 4], eax
jmp 0x4e64c9
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 0x4e64e2
mov eax, dword [ebp - 8]
push eax
call fcn.0048e500
add esp, 4
mov dword [ebp - 8], 0
cmp dword [ebp - 0xc], 0
je 0x4e64fb
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0048e500
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4e6570
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 0x4e65aa
cmp dword [ebp + 0xc], 0
je 0x4e65aa
cmp dword [ebp + 0x14], 0
je 0x4e65aa
cmp dword [ebp + 0x18], 0
jne 0x4e65af
jmp 0x4e6631
cmp dword [ebp + 0x10], 1
je 0x4e65bb
cmp dword [ebp + 0x10], 2
jne 0x4e6612
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004e55f0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4e65d6
jmp 0x4e6631
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x14]
push eax
call fcn.004e55f0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4e65f1
jmp 0x4e6631
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 0x4e6631
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 0x4e664a
mov edx, dword [ebp - 4]
push edx
call fcn.0048e500
add esp, 4
mov dword [ebp - 4], 0
cmp dword [ebp - 8], 0
je 0x4e6663
mov eax, dword [ebp - 8]
push eax
call fcn.0048e500
add esp, 4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x4e6670
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 0x4e66aa
cmp dword [ebp + 0xc], 0
je 0x4e66aa
cmp dword [ebp + 0x14], 0
je 0x4e66aa
cmp dword [ebp + 0x18], 0
jne 0x4e66af
jmp 0x4e6739
cmp dword [ebp + 0x10], 1
je 0x4e66bb
cmp dword [ebp + 0x10], 2
jne 0x4e671a
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004e58e0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4e66d6
jmp 0x4e6739
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x14]
push eax
call fcn.004e58e0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4e66f1
jmp 0x4e6739
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 0x4e6739
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 0x4e6752
mov eax, dword [ebp - 8]
push eax
call fcn.0048e500
add esp, 4
mov dword [ebp - 8], 0
cmp dword [ebp - 4], 0
je 0x4e676b
mov ecx, dword [ebp - 4]
push ecx
call fcn.0048e500
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x4e67d0
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 0x4e680a
cmp dword [ebp + 8], 0
jne 0x4e680a
jmp 0x4e68aa
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 0x4e68aa
mov edx, dword [ebp - 8]
push edx
call sub.MSVCR90.dll_malloc
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4e68aa
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 0x4e68aa
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.004e5af0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4e68aa
cmp dword [ebp + 0xc], 0
je 0x4e68a4
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0xc]
jle 0x4e687e
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 sub.MSVCR90.dll_memset
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 sub.MSVCR90.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0xc], 0
je 0x4e68c3
mov eax, dword [ebp - 0xc]
push eax
call fcn.0048e500
add esp, 4
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0
je 0x4e68dc
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0048e500
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x4e68f0
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 0x4e692a
cmp dword [ebp + 8], 0
jne 0x4e692a
jmp 0x4e69cc
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 0x4e69cc
mov edx, dword [ebp - 8]
shl edx, 1
push edx
call sub.MSVCR90.dll_malloc
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4e69cc
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 0x4e69cc
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.004e5990
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4e69cc
cmp dword [ebp + 0xc], 0
je 0x4e69c6
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0xc]
jle 0x4e69a0
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 sub.MSVCR90.dll_memset
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 sub.MSVCR90.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 4], 0
je 0x4e69e5
mov eax, dword [ebp - 4]
push eax
call fcn.0048e500
add esp, 4
mov dword [ebp - 4], 0
cmp dword [ebp - 0xc], 0
je 0x4e69fe
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0048e500
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x4e6b20
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.004e55f0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4e6c16
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 0x4e6c16
cmp dword [ebp + 0x10], 0
je 0x4e6c16
mov eax, dword [ebp - 0xc]
push eax
call sub.MSVCR90.dll_malloc
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4e6c16
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 0x4e6c16
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.004e5af0
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4e6bfd
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x10]
jle 0x4e6bde
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 sub.MSVCR90.dll_strncpy
add esp, 0xc
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0xc]
mov byte [edx], 0
jmp 0x4e6c16
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
cmp dword [ebp - 8], 0
je 0x4e6c2f
mov edx, dword [ebp - 8]
push edx
call fcn.0048e500
add esp, 4
mov dword [ebp - 8], 0
cmp dword [ebp - 4], 0
je 0x4e6c48
mov eax, dword [ebp - 4]
push eax
call fcn.0048e500
add esp, 4
mov dword [ebp - 4], 0
cmp dword [ebp - 0x10], 0
je 0x4e6c61
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0048e500
add esp, 4
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x4e6c70
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.004e58e0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4e6d68
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 0x4e6d68
cmp dword [ebp + 0x10], 0
je 0x4e6d68
mov eax, dword [ebp - 8]
shl eax, 1
push eax
call sub.MSVCR90.dll_malloc
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4e6d68
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 0x4e6d68
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.004e5990
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4e6d4f
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
jle 0x4e6d30
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 sub.MSVCR90.dll_strncpy
add esp, 0xc
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 8]
mov byte [edx], 0
jmp 0x4e6d68
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
cmp dword [ebp - 0x10], 0
je 0x4e6d81
mov edx, dword [ebp - 0x10]
push edx
call fcn.0048e500
add esp, 4
mov dword [ebp - 0x10], 0
cmp dword [ebp - 4], 0
je 0x4e6d9a
mov eax, dword [ebp - 4]
push eax
call fcn.0048e500
add esp, 4
mov dword [ebp - 4], 0
cmp dword [ebp - 0xc], 0
je 0x4e6db3
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0048e500
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x4f2b10
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x58b7c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x3c], 0x6c
mov byte [ebp - 0x3b], 0xb0
mov byte [ebp - 0x3a], 0x4b
mov byte [ebp - 0x39], 0xa0
mov byte [ebp - 0x38], 0xad
mov byte [ebp - 0x37], 0xef
mov byte [ebp - 0x36], 0x73
mov byte [ebp - 0x35], 0x4e
mov byte [ebp - 0x34], 0xa3
mov byte [ebp - 0x33], 0x2f
mov byte [ebp - 0x32], 0x90
mov byte [ebp - 0x31], 0xd2
mov byte [ebp - 0x30], 0xb0
mov byte [ebp - 0x2f], 0x45
mov byte [ebp - 0x2e], 0xa2
mov byte [ebp - 0x2d], 0x75
mov byte [ebp - 0x2c], 0x85
mov byte [ebp - 0x2b], 0xe8
mov byte [ebp - 0x2a], 0xa3
mov byte [ebp - 0x29], 0xfb
mov byte [ebp - 0x28], 0x7b
mov byte [ebp - 0x27], 0xd4
mov byte [ebp - 0x26], 0x81
mov byte [ebp - 0x25], 0x38
mov byte [ebp - 0x24], 0xd6
mov byte [ebp - 0x23], 0xf5
mov byte [ebp - 0x22], 0xdc
mov byte [ebp - 0x21], 0xa4
mov byte [ebp - 0x20], 0xba
mov byte [ebp - 0x1f], 0x4c
mov byte [ebp - 0x1e], pe_nt_image_headers32
mov byte [ebp - 0x1d], 0xb9
mov byte [ebp - 0x1c], 0xe9
mov byte [ebp - 0x1b], 0x83
mov byte [ebp - 0x1a], 0x8a
mov byte [ebp - 0x19], 0x7f
mov byte [ebp - 0x18], 0xa6
mov byte [ebp - 0x17], 0x18
mov byte [ebp - 0x16], 0xac
mov byte [ebp - 0x15], 0x17
mov byte [ebp - 0x14], 0xb9
mov byte [ebp - 0x13], 0x88
mov byte [ebp - 0x12], 0x11
mov byte [ebp - 0x11], 0xaa
mov byte [ebp - 0x10], 0x7a
mov byte [ebp - 0xf], 0x47
mov byte [ebp - 0xe], 0xf3
mov byte [ebp - 0xd], 0x76
mov byte [ebp - 0xc], 0x37
mov byte [ebp - 0xb], 0x74
mov byte [ebp - 0xa], 2
mov byte [ebp - 9], 0xa
mov byte [ebp - 8], 0x1d
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], 0x9c
mov byte [ebp - 5], 0x69
mov dword [ebp - 0x44], 0x38
mov dword [ebp - 0x40], 0
mov eax, dword [ebp + 0x10]
add eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x44]
ja 0x4f2c31
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
lea eax, [ebp + edx - 0x3c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472edc
mov esp, ebp
pop ebp
ret
Function at 0x500db0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0x10], 0xffffff9d
jne 0x500e05
mov dword [0x580218], 0xffffffff
mov dword [ebp - 4], 0
jmp 0x500dd8
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 4
jae 0x500e00
mov ecx, dword [ebp - 4]
shl ecx, 4
mov dword [ecx + 0x5801e0], 0
mov edx, dword [ebp - 4]
shl edx, 4
mov dword [edx + 0x5801e4], 0
jmp 0x500dcf
jmp 0x500fb3
cmp dword [ebp + 0x10], 4
jb 0x500e21
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 0x500fb3
cmp dword [ebp + 0x10], 0
jl 0x500e2d
cmp dword [ebp + 0x10], 4
jb 0x500e32
jmp 0x500fb3
cmp dword [0x580218], 0
jge 0x500e44
cmp dword [0x580218], 4
jae 0x500e5b
push 0
mov eax, dword [0x580218]
shl eax, 4
mov ecx, dword [eax + 0x5801e0]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebp + 0x10]
mov dword [0x580218], edx
mov eax, dword [0x580218]
shl eax, 4
cmp dword [eax + 0x5801e4], 0
jne 0x500ea4
mov ecx, dword [0x580218]
shl ecx, 4
mov edx, dword [ecx + 0x5801e0]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00500fc0
add esp, 8
mov ecx, dword [0x580218]
shl ecx, 4
mov dword [ecx + 0x5801e4], 1
push 0
push 0
push 0xaec
mov edx, dword [0x580218]
shl edx, 4
mov eax, dword [edx + 0x5801e0]
push eax
mov ecx, dword [0x580218]
shl ecx, 4
mov edx, dword [ecx + 0x5801d8]
call edx
push 5
mov eax, dword [0x580218]
shl eax, 4
mov ecx, dword [eax + 0x5801e0]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebp - 4], 0
jmp 0x500ef7
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 3
jae 0x500fb3
mov eax, dword [ebp - 4]
mov ecx, dword [eax*8 + 0x58021c]
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 0x500fae
mov eax, dword [ebp - 4]
mov ecx, dword [eax*8 + 0x580220]
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 + 0x580220]
mov ecx, dword [ebp + 0xc]
movsx edx, byte [ecx + eax + 0x138]
and edx, 2
je 0x500fae
mov eax, dword [ebp - 4]
mov ecx, dword [eax*8 + 0x580220]
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 + 0x580220]
mov ecx, dword [ebp + 0xc]
movsx edx, byte [ecx + eax + 0x138]
and edx, 0xfffffffd
mov eax, dword [ebp - 4]
mov ecx, dword [eax*8 + 0x580220]
mov eax, dword [ebp + 0xc]
mov byte [eax + ecx + 0x138], dl
jmp 0x500eee
mov esp, ebp
pop ebp
ret
Function at 0x5010c0
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 0x501111
mov eax, dword [ebp - 4]
shr eax, 0x10
movzx ecx, ax
mov dword [ebp - 0xc], ecx
jmp 0x501131
cmp dword [ebp - 0x14], 4
jae 0x50112a
mov edx, dword [ebp - 4]
shr edx, 0x10
movzx eax, dx
and eax, 0xffff7fff
mov dword [ebp - 0xc], eax
jmp 0x501131
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0x14], 6
jb 0x501140
mov dword [ebp - 0x10], 7
jmp 0x50118c
cmp dword [ebp - 0x14], 5
jne 0x50114f
mov dword [ebp - 0x10], 6
jmp 0x50118c
cmp dword [ebp - 0x14], 4
jne 0x501164
cmp dword [ebp - 8], 0
jne 0x501164
mov dword [ebp - 0x10], 4
jmp 0x50118c
cmp dword [ebp - 0x14], 3
jne 0x501179
cmp dword [ebp - 8], 0
jne 0x501179
mov dword [ebp - 0x10], 5
jmp 0x50118c
cmp dword [ebp - 0x14], 4
jne 0x50118c
cmp dword [ebp - 8], 1
jne 0x50118c
mov dword [ebp - 0x10], 3
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret