joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46f410
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47c118
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
push 0
push 0
lea ecx, [ebp - 0x4c]
call fcn.0040be90
mov dword [ebp - 4], 0
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004626e0
add esp, 8
cmp dword [ebp - 0x38], 8
jb 0x46f47a
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x18], eax
jmp 0x46f480
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x18], ecx
push 0
push 0
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x46f4b9
push 0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x98]
call fcn.00431f00
push 0x495a48
lea ecx, [ebp - 0x98]
push ecx
call fcn.0043e6d5
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x24], edx
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004397c5
add esp, 4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x34], ecx
cmp dword [ebp - 0x38], 8
jb 0x46f502
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x14], eax
jmp 0x46f508
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
push 0
push 0
lea ecx, [ebp - 0x68]
call fcn.004054b0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x28], edx
lea eax, [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x10]
sub ecx, 1
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.00462b90
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x14], 0
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.004054b0
lea edx, [ebp - 0x68]
push edx
mov ecx, dword [ebp + 8]
call fcn.004051e0
mov eax, dword [ebp - 0x1c]
or eax, 1
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0x68]
call fcn.004054b0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0043d95c
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.0040be90
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x46f5e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47c12a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
push 0
push 0
lea ecx, [ebp - 0x38]
call fcn.0040be90
mov dword [ebp - 4], 0
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004626e0
add esp, 8
cmp dword [ebp - 0x24], 8
jb 0x46f640
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x14], eax
jmp 0x46f646
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x14], ecx
push 0
push 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jbe 0x46f666
mov dword [ebp - 0x18], 1
jmp 0x46f66d
mov dword [ebp - 0x18], 0
mov al, byte [ebp - 0x18]
mov byte [ebp - 0xd], al
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x38]
call fcn.0040be90
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x46f6a0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47c14c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0
push 0
lea ecx, [ebp - 0x2c]
call fcn.0040be90
mov dword [ebp - 4], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
push 0
push 0
lea ecx, [ebp - 0x44]
call fcn.0040be90
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004626e0
add esp, 8
lea edx, [ebp - 0x44]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004626e0
add esp, 8
cmp dword [ebp - 0x30], 8
jb 0x46f731
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x14], edx
jmp 0x46f737
lea eax, [ebp - 0x44]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x18], 8
jb 0x46f74b
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x10], edx
jmp 0x46f751
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
jne 0x46f7ba
push str.cannot_set_environment_variable:
lea ecx, [ebp - 0x64]
call fcn.00403fb0
mov byte [ebp - 4], 2
mov eax, dword [0x48db58]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x64]
call fcn.00406250
push 0
lea edx, [ebp - 0x64]
push edx
lea ecx, [ebp - 0x90]
call fcn.00432530
push 0x4996b0
lea eax, [ebp - 0x90]
push eax
call fcn.0043e6d5
mov byte [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0x64]
call fcn.004054b0
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x44]
call fcn.0040be90
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040be90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x46fb10
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx ecx, word [ebp - 0x2c]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0xa
ja case.0x46fb3b.4
mov edx, dword [ebp - 8]
jmp dword [edx*4 + 0x46fc28]
push str.IA32
mov ecx, dword [ebp + 8]
call fcn.00403fb0
mov eax, dword [ebp - 4]
or eax, 1
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
jmp 0x46fc21
push str.MIPS
mov ecx, dword [ebp + 8]
call fcn.00403fb0
mov ecx, dword [ebp - 4]
or ecx, 1
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
jmp 0x46fc21
push str.ALPHA
mov ecx, dword [ebp + 8]
call fcn.00403fb0
mov edx, dword [ebp - 4]
or edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
jmp 0x46fc21
push 0x48bb38
mov ecx, dword [ebp + 8]
call fcn.00403fb0
mov eax, dword [ebp - 4]
or eax, 1
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
jmp 0x46fc21
push str.IA64
mov ecx, dword [ebp + 8]
call fcn.00403fb0
mov ecx, dword [ebp - 4]
or ecx, 1
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
jmp 0x46fc21
push str.IA64_32
mov ecx, dword [ebp + 8]
call fcn.00403fb0
mov edx, dword [ebp - 4]
or edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
jmp 0x46fc21
push str.AMD64
mov ecx, dword [ebp + 8]
call fcn.00403fb0
mov eax, dword [ebp - 4]
or eax, 1
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
jmp 0x46fc21
push str.Unknown
mov ecx, dword [ebp + 8]
call fcn.00403fb0
mov ecx, dword [ebp - 4]
or ecx, 1
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret

Function at 0x46fc60
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47c19d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x46fce7
push str.Cannot_get_computer_name
lea ecx, [ebp - 0x44]
call fcn.00403fb0
mov dword [ebp - 4], 0
push 0
lea edx, [ebp - 0x44]
push edx
lea ecx, [ebp - 0x90]
call fcn.00432530
push 0x4996b0
lea eax, [ebp - 0x90]
push eax
call fcn.0043e6d5
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x44]
call fcn.004054b0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0
push 0
lea ecx, [ebp - 0x2c]
call fcn.004054b0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x64]
push edx
call fcn.00462c70
add esp, 8
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x14], 0
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.004054b0
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp + 8]
call fcn.004051e0
mov eax, dword [ebp - 0x10]
or eax, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.004054b0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x46fd80
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
xor eax, eax
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov word [ecx + 4], ax
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0x288
mov edx, dword [ebp - 0x10]
push edx
call fcn.004397c5
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x6f
jne 0x46fdf3
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0043d95c
add esp, 4
mov edx, dword [ebp - 0x10]
push edx
call fcn.004397c5
add esp, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
jmp 0x46fdfe
cmp dword [ebp - 0x14], 0
je 0x46fdfe
jmp 0x46fe7e
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x46fe6c
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov byte [ebp - 1], 0
cmp dword [ebp - 8], 0
je 0x46fe6c
movzx ecx, byte [ebp - 1]
test ecx, ecx
jne 0x46fe6c
mov edx, dword [ebp - 8]
cmp dword [edx + 0x1a0], 6
jne 0x46fe62
mov eax, dword [ebp - 8]
cmp dword [eax + 0x190], 6
jne 0x46fe62
mov byte [ebp - 1], 1
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x190]
push edx
mov eax, dword [ebp - 8]
add eax, 0x194
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0043eb20
add esp, 0xc
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov dword [ebp - 8], eax
jmp 0x46fe19
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
push edx
call fcn.0043d95c
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x4701f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47c218
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.004067e0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.Poco::BasicBufferedStreamBuf_char__struct_std::char_traits_char___class_Poco::BufferAllocator_char__.0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov dword [ecx + 0x38], edx
mov eax, dword [ebp + 0xc]
mov dword [ecx + 0x3c], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x38]
mov dword [ebp - 0x30], edx
mov eax, dword [ecx + 0x3c]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004397c5
add esp, 4
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
mov dword [edx + 0x40], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x10]
mov dword [ecx + 0x44], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x40]
add ecx, 4
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x40]
add eax, 4
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
add edx, 4
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x20]
mov dword [ecx], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x1c]
mov edx, dword [ebp - 0x18]
mov dword [ecx], edx
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x2c]
mov dword [edx], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x38]
sub ecx, 1
mov edx, dword [eax + 0x3c]
sbb edx, 0
mov eax, dword [ebp - 0x10]
add ecx, dword [eax + 0x40]
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp - 0x14]
mov dword [ecx], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x20]
mov edx, dword [ebp - 0x14]
mov dword [ecx], edx
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x30]
mov dword [edx], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4708c0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0x58
push 0
mov eax, dword [ebp - 4]
add eax, 4
push eax
call fcn.0043f170
add esp, 0xc
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp - 4]
mov dword [edx + ecx + 0x14], 0
mov eax, 4
imul eax, eax, 0
mov ecx, dword [ebp - 4]
mov dword [ecx + eax + 0x14], 0
mov edx, 4
imul edx, edx, 0
mov eax, dword [ebp - 4]
mov dword [eax + edx + 4], 0x67452301
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp - 4]
mov dword [edx + ecx + 4], 0xefcdab89
mov eax, 4
shl eax, 1
mov ecx, dword [ebp - 4]
mov dword [ecx + eax + 4], 0x98badcfe
mov edx, 4
imul edx, edx, 3
mov eax, dword [ebp - 4]
mov dword [eax + edx + 4], 0x10325476
mov esp, ebp
pop ebp
ret
Function at 0x477a20
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47c690
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.004776b0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.Poco::PipeImpl.0
mov dword [ebp - 0x1c], 0xc
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 0
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x10]
add edx, 0xc
push edx
mov eax, dword [ebp - 0x10]
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x477ac6
push str.anonymous_pipe
lea ecx, [ebp - 0x34]
call fcn.00403fb0
mov byte [ebp - 4], 1
push 0
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x60]
call fcn.00435290
push 0x49604c
lea edx, [ebp - 0x60]
push edx
call fcn.0043e6d5
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.004054b0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4010aa
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
jmp 0x401fb0
sub esp, 0x318
mov eax, dword [0x47ffa0]
xor eax, esp
mov dword [esp + 0x314], eax
mov eax, dword [esp + 0x320]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push ebp
push esi
push edi
mov edi, dword [esp + 0x32c]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x128]
push edx
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
push eax
xor esi, esi
push esi
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x34]
push edx
push esi
mov ebp, 0x104
push edi
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebp
call ebx
cmp eax, 0x103
je 0x402073
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x128]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push 0
lea eax, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40207a
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x128]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x34]
push eax
add esi, 1
push esi
push edi
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebp
call ebx
cmp eax, 0x103
jne 0x402017
mov eax, 1
jmp 0x40207c
xor eax, eax
mov ecx, dword [esp + 0x324]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00426bcd
add esp, 0x318
ret
Function at 0x4010c3
Capabilities:
Check os version

Disassembly:
jmp 0x401cf0
sub esp, 0xa0
mov eax, dword [0x47ffa0]
xor eax, esp
mov dword [esp + 0x9c], eax
push esi
push 0x9c
lea eax, [esp + 8]
push 0
push eax
call fcn.00426c10
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x9c
call esi
test al, al
jne 0x401d49
lea edx, [esp + 4]
push edx
mov dword [esp + 8], 0x94
call esi
test eax, eax
je 0x401eae
mov eax, dword [esp + 0x14]
sub eax, 1
je 0x401e3d
sub eax, 1
jne 0x401eae
mov eax, dword [esp + 8]
cmp eax, 6
jb 0x401dc1
cmp dword [esp + 0xc], 1
jb 0x401d98
call fcn.004011c7
neg al
pop esi
sbb eax, eax
neg eax
add eax, 0xc
mov dword [0x481d4c], eax
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.00426bcd
add esp, 0xa0
ret
call fcn.004011c7
neg al
pop esi
sbb eax, eax
neg eax
add eax, 0xa
mov dword [0x481d4c], eax
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.00426bcd
add esp, 0xa0
ret
cmp eax, 5
jb 0x401e12
mov eax, dword [esp + 0xc]
cmp eax, 2
jb 0x401def
mov dword [0x481d4c], 9
pop esi
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.00426bcd
add esp, 0xa0
ret
cmp eax, 1
sbb eax, eax
add eax, 8
mov dword [0x481d4c], eax
pop esi
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.00426bcd
add esp, 0xa0
ret
mov ecx, 4
cmp ecx, eax
sbb edx, edx
and edx, 8
add edx, 6
mov dword [0x481d4c], edx
pop esi
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.00426bcd
add esp, 0xa0
ret
cmp dword [esp + 8], 4
jb 0x401eae
mov eax, dword [esp + 0xc]
cmp eax, 0x5a
jb 0x401e6d
mov dword [0x481d4c], 5
pop esi
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.00426bcd
add esp, 0xa0
ret
cmp eax, 0xa
jb 0x401ea4
mov eax, dword [esp + 0x10]
and eax, 0xffff
xor ecx, ecx
cmp eax, 0x8ae
sete cl
pop esi
add ecx, 3
mov dword [0x481d4c], ecx
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.00426bcd
add esp, 0xa0
ret
mov dword [0x481d4c], 2
mov ecx, dword [esp + 0xa0]
pop esi
xor ecx, esp
call fcn.00426bcd
add esp, 0xa0
ret
Function at 0x401118
Capabilities:
Terminate process

Disassembly:
jmp 0x401880
mov eax, dword [esp + 4]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
ret

Function at 0x401131
Capabilities:
Extract resource via kernel32 functions

Disassembly:
jmp 0x4015b0
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4015c9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401604
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401600
lea ebx, [ebx]
cmp esi, eax
jae 0x401604
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4015f0
cmp esi, eax
jb 0x40160a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4011c7
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x401c00
sub esp, 0x110
mov eax, dword [0x47ffa0]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
lea eax, [esp + 8]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SystemCurrentControlSetControlSession_ManagerEnvironment
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401ca5
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x94]
push edx
lea eax, [esp + 0x14]
push eax
push ebx
push str.PROCESSOR_ARCHITECTURE
push ecx
mov dword [esp + 0x1c], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401c9a
push esi
push edi
lea edx, [esp + 0x98]
push edx
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0xc]
mov byte [esp + ecx + 0x18], bl
mov edi, str.AMD64
lea esi, [esp + 0x18]
mov ecx, 6
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
pop edi
pop esi
jne 0x401c9a
mov bl, 1
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x110]
mov al, bl
pop ebx
xor ecx, esp
call fcn.00426bcd
add esp, 0x110
ret
Function at 0x401c00
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x401c00
sub esp, 0x110
mov eax, dword [0x47ffa0]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
lea eax, [esp + 8]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SystemCurrentControlSetControlSession_ManagerEnvironment
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401ca5
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x94]
push edx
lea eax, [esp + 0x14]
push eax
push ebx
push str.PROCESSOR_ARCHITECTURE
push ecx
mov dword [esp + 0x1c], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401c9a
push esi
push edi
lea edx, [esp + 0x98]
push edx
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0xc]
mov byte [esp + ecx + 0x18], bl
mov edi, str.AMD64
lea esi, [esp + 0x18]
mov ecx, 6
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
pop edi
pop esi
jne 0x401c9a
mov bl, 1
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x110]
mov al, bl
pop ebx
xor ecx, esp
call fcn.00426bcd
add esp, 0x110
ret

Function at 0x401cf0
Capabilities:
Check os version

Disassembly:
jmp 0x401cf0
sub esp, 0xa0
mov eax, dword [0x47ffa0]
xor eax, esp
mov dword [esp + 0x9c], eax
push esi
push 0x9c
lea eax, [esp + 8]
push 0
push eax
call fcn.00426c10
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x9c
call esi
test al, al
jne 0x401d49
lea edx, [esp + 4]
push edx
mov dword [esp + 8], 0x94
call esi
test eax, eax
je 0x401eae
mov eax, dword [esp + 0x14]
sub eax, 1
je 0x401e3d
sub eax, 1
jne 0x401eae
mov eax, dword [esp + 8]
cmp eax, 6
jb 0x401dc1
cmp dword [esp + 0xc], 1
jb 0x401d98
call fcn.004011c7
neg al
pop esi
sbb eax, eax
neg eax
add eax, 0xc
mov dword [0x481d4c], eax
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.00426bcd
add esp, 0xa0
ret
call fcn.004011c7
neg al
pop esi
sbb eax, eax
neg eax
add eax, 0xa
mov dword [0x481d4c], eax
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.00426bcd
add esp, 0xa0
ret
cmp eax, 5
jb 0x401e12
mov eax, dword [esp + 0xc]
cmp eax, 2
jb 0x401def
mov dword [0x481d4c], 9
pop esi
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.00426bcd
add esp, 0xa0
ret
cmp eax, 1
sbb eax, eax
add eax, 8
mov dword [0x481d4c], eax
pop esi
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.00426bcd
add esp, 0xa0
ret
mov ecx, 4
cmp ecx, eax
sbb edx, edx
and edx, 8
add edx, 6
mov dword [0x481d4c], edx
pop esi
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.00426bcd
add esp, 0xa0
ret
cmp dword [esp + 8], 4
jb 0x401eae
mov eax, dword [esp + 0xc]
cmp eax, 0x5a
jb 0x401e6d
mov dword [0x481d4c], 5
pop esi
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.00426bcd
add esp, 0xa0
ret
cmp eax, 0xa
jb 0x401ea4
mov eax, dword [esp + 0x10]
and eax, 0xffff
xor ecx, ecx
cmp eax, 0x8ae
sete cl
pop esi
add ecx, 3
mov dword [0x481d4c], ecx
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.00426bcd
add esp, 0xa0
ret
mov dword [0x481d4c], 2
mov ecx, dword [esp + 0xa0]
pop esi
xor ecx, esp
call fcn.00426bcd
add esp, 0xa0
ret