joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402720
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
push ebx
xor ebx, ebx
push ebp
mov ebp, dword [esp + 0x20]
cmp ebp, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 8], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
je 0x402758
lea eax, [esp + 8]
push eax
push str.SystemCurrentControlSetControlProductOptions
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x402762
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 4
mov eax, dword [esp + 8]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
push ecx
push ebx
lea edx, [esp + 0x1c]
push edx
push ebx
push str.ProductSuite
push eax
call esi
test eax, eax
je 0x40279b
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 4
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x4027b9
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 4
push edi
push eax
call fcn.0040dea4
mov edi, eax
mov eax, dword [esp + 0x14]
add esp, 4
cmp edi, ebx
mov dword [esp + 0x28], edi
jne 0x4027e4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 4
lea ecx, [esp + 0x14]
push ecx
push edi
lea edx, [esp + 0x20]
push edx
push ebx
push str.ProductSuite
push eax
call esi
test eax, eax
je 0x40281c
push edi
call fcn.0040ddeb
mov ecx, dword [esp + 0x14]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 4
cmp dword [esp + 0x18], 7
je 0x402843
push edi
call fcn.0040ddeb
mov edx, dword [esp + 0x14]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 4
mov eax, dword [esp + 0x28]
cmp byte [eax], bl
mov dword [esp + 0x20], 1
je 0x4028c8
mov esi, ebp
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40287b
cmp cl, bl
je 0x402877
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40287b
add eax, 2
add esi, 2
cmp cl, bl
jne 0x402857
xor eax, eax
jmp 0x402880
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40288e
mov dword [esp + 0x1c], 1
jmp 0x4028a0
push ebp
push edi
call fcn.0040dd60
add esp, 8
test eax, eax
je 0x4028a0
mov dword [esp + 0x20], ebx
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4028a5
sub eax, edx
lea edi, [edi + eax + 1]
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4028b7
sub eax, edx
lea ebp, [eax + ebp + 1]
cmp byte [edi], bl
jne 0x402853
mov eax, dword [esp + 0x28]
push eax
call fcn.0040ddeb
mov ecx, dword [esp + 0x14]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x1c], ebx
je 0x4027d8
cmp dword [esp + 0x20], ebx
je 0x4027d8
cmp byte [ebp], bl
jne 0x4027d8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret 4
Function at 0x402920
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x14]
test ebp, ebp
mov dword [esp + 4], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
je 0x40295d
lea eax, [esp + 4]
push eax
push str.SystemCurrentControlSetControlProductOptions
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x402966
xor eax, eax
pop ebp
add esp, 0xc
ret 4
mov eax, dword [esp + 4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0xc]
push ecx
push 0
lea edx, [esp + 0x18]
push edx
push 0
push str.ProductType
push eax
call esi
test eax, eax
je 0x4029a0
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x4029bd
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret 4
push edi
push eax
call fcn.0040dea4
mov edi, eax
mov eax, dword [esp + 0x10]
add esp, 4
test edi, edi
jne 0x4029e3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret 4
lea ecx, [esp + 0x10]
push ecx
push edi
lea edx, [esp + 0x1c]
push edx
push 0
push str.ProductType
push eax
call esi
test eax, eax
je 0x402a1b
push edi
call fcn.0040ddeb
mov ecx, dword [esp + 0x10]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret 4
push ebp
push edi
call fcn.0040e483
mov esi, eax
neg esi
sbb esi, esi
push edi
inc esi
call fcn.0040ddeb
mov edx, dword [esp + 0x18]
add esp, 0xc
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0xc
ret 4
Function at 0x404570
Capabilities:
Get system information on windows

Disassembly:
push 0xffffffffffffffff
push 0x41693b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x640
mov eax, dword [0x4204c4]
push ebx
push ebp
push esi
mov dword [esp + 0x648], eax
mov eax, dword [esp + 0x65c]
mov esi, ecx
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], eax
call fcn.00402710
mov eax, 0x105
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
xor eax, eax
lea ebx, [esi + 0x420]
mov ecx, 0x82
mov edi, ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
lea edi, [esi + 0xc]
mov ecx, 0x82
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
lea edx, [esi + 0x216]
mov edi, edx
mov ecx, 0x82
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ebp, [esi + 0x834]
xor eax, eax
mov ecx, 0x82
mov edi, ebp
rep stosd dword es:[edi], eax
lea ecx, [esi + 0xa3e]
push ecx
push 0
push 0
stosw word es:[edi], ax
lea eax, [esp + 0x20]
push eax
push ebx
lea ecx, [esp + 0x24]
push ecx
push ebp
lea eax, [esp + 0x34]
push eax
push edx
lea ecx, [esp + 0x40]
mov dword [esp + 0x67c], 0
mov dword [esp + 0x48], 2
call fcn.004073f0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4046d4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4046d4
lea eax, [esi + 0xc]
push ebp
push eax
call fcn.0040d057
xor ecx, ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ecx
add esp, 8
lea edx, [esp + 0x28]
mov dword [esp + 0x44], ecx
push edx
mov dword [esp + 0x4c], ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [esp + 0x28], 0
jne 0x4046a3
push str.x86data
jmp 0x4046a8
push str._alphadata
push ebx
call fcn.0040d028
mov eax, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x4046d0
push ebx
mov ecx, esi
call fcn.00403cd0
test eax, eax
jne 0x4046d0
mov ecx, 0x82
mov edi, ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor esi, esi
jmp 0x404749
mov ecx, dword [esi + 0xca4]
mov edi, dword [sym.imp.SQLUNIRL.dll__LoadString_16]
push 0x200
lea eax, [esp + 0x50]
push eax
push 2
push ecx
call edi
mov ecx, dword [0x420d18]
push str.8.00
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x454]
push eax
call dword [ecx + 0x4cc]
mov eax, dword [esi + 0xca4]
add esp, 0xc
push 0x200
lea edx, [esp + 0x250]
push edx
push 0xb
push eax
call edi
mov eax, dword [esp + 0x20]
push 0
lea ecx, [esp + 0x250]
push ecx
lea edx, [esp + 0x454]
push edx
push eax
call dword [sym.imp.SQLUNIRL.dll__MessageBox_16]
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x658], 0xffffffff
call fcn.0040a510
mov ecx, dword [esp + 0x650]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x640]
pop ebx
call fcn.0040d00b
add esp, 0x64c
ret 4
Function at 0x406d30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ecx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
mov dword [esp + 4], 0
je 0x406da1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x406da1
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push ecx
push edx
mov byte [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406da1
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 4]
push edi
lea eax, [esp + 0x14]
push eax
push esi
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x406da1
mov eax, esi
pop esi
pop ecx
ret
xor eax, eax
pop esi
pop ecx
ret
Function at 0x4079c0
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x416a8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x230
mov eax, dword [0x4204c4]
push ebx
push esi
mov dword [esp + 0x230], eax
mov eax, dword [ebp + 8]
mov ebx, ecx
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], eax
xor esi, esi
call fcn.0040ab40
xor eax, eax
mov ecx, 0x82
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x28]
push str.SoftwareMicrosoftMSSQLServ
push ecx
mov dword [esp + 0x24c], esi
call fcn.0040d057
lea edx, [esp + 0x30]
push 0x418b88
push edx
call fcn.0040d028
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jb 0x407a60
lea ecx, [esp + 0x10]
mov dword [esp + 0x244], 0xffffffff
call fcn.0040aed0
xor eax, eax
jmp 0x407ace
mov eax, dword [esp + 0xc]
push eax
mov ecx, ebx
call fcn.004071d0
test eax, eax
jne 0x407ab8
lea ecx, [esp + 0x28]
push ecx
push 0x80000002
lea ecx, [esp + 0x18]
call fcn.0040af10
movzx eax, al
test eax, eax
je 0x407ab8
lea ecx, [esp + 0x10]
call fcn.0040ab60
lea edx, [esp + 0x28]
push edx
mov ecx, ebx
call fcn.00407860
mov esi, eax
test esi, esi
jne 0x407ab8
lea eax, [esp + 0x28]
push eax
push 0x80000002
lea ecx, [esp + 0x18]
call fcn.0040ab90
lea ecx, [esp + 0x10]
mov dword [esp + 0x244], 0xffffffff
call fcn.0040aed0
mov eax, esi
mov ecx, dword [esp + 0x23c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x234]
call fcn.0040d00b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x409c10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ecx
push ebx
push ebp
push esi
xor ebp, ebp
push 5
mov dword [esp + 0x10], ebp
call dword [sym.imp.SQLUNIRL.dll__MAKEINTRESOURCE_4]
mov ebx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.SQLUNIRL.dll__FindResource_12]
mov esi, eax
test esi, esi
je 0x409c9a
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x409c92
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x409c7f
mov ecx, dword [esp + 0x20]
push ecx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebp
call fcn.004099a0
add esp, 0xc
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov esi, dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret
pop esi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret
Function at 0x40a2d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x42c
mov eax, dword [0x4204c4]
mov dword [esp + 0x428], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
xor eax, eax
push ebx
push esi
push edi
mov byte [esp + 0x120], 0
mov ecx, 0x40
lea edi, [esp + 0x121]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov byte [esp + 0x18], 0
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov word [esp + 0x228], 0
mov ecx, 0x81
lea edi, [esp + 0x22a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x40a409
lea ecx, [esp + 0x120]
test ecx, ecx
je 0x40a39a
mov ecx, 0xc
mov esi, str.SoftwareMicrosoftMicrosoft_SQL_Server80Tools
lea edi, [esp + 0x120]
rep movsd dword es:[edi], dword [esi]
xor edx, edx
cmp edx, str.Help
movsb byte es:[edi], byte [esi]
je 0x40a39a
lea edi, [esp + 0x120]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40a380
mov eax, dword [str.Help]
mov cx, word [0x4192e0]
mov dword [edi], eax
mov word [edi + 4], cx
lea edx, [esp + 0x18]
test edx, edx
mov dword [esp + 0x14], 0x104
mov dword [esp + 0xc], 0
je 0x40a409
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
lea ecx, [esp + 0x12c]
push ecx
push 0x80000002
mov byte [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a409
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push str.HelpPath
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0xc]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40a41d
lea edx, [esp + 0x18]
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40a411
jmp 0x40a45d
lea edi, [esp + 0x18]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40a422
mov ax, word [0x418954]
mov word [edi], ax
mov eax, ebx
mov edx, ebx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a437
lea edi, [esp + 0x18]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40a445
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x104
lea ecx, [esp + 0x22c]
push ecx
push 0xffffffffffffffff
lea edx, [esp + 0x24]
push edx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp + 0x10]
mov edx, dword [esp + 0x10]
push eax
push 0xf
lea ecx, [esp + 0x230]
push ecx
push edx
call fcn.0040cea5
mov ecx, dword [esp + 0x434]
call fcn.0040d00b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c7b0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x22c
mov eax, dword [0x4204c4]
push esi
mov esi, dword [esp + 0x234]
test esi, esi
mov dword [esp + 0x22c], eax
je 0x40c8c1
push str._PRINT_CONSOLE_
call fcn.0040eaaa
add esp, 4
test eax, eax
je 0x40c815
call dword [sym.imp.KERNEL32.dll_AllocConsole]
push 0x419e40
push str.conout_
call fcn.0040ea92
add esp, 8
test eax, eax
mov dword [0x420d2c], eax
je 0x40c81f
push 0
push 4
push 0
push eax
call fcn.0040e9bd
add esp, 0x10
jmp 0x40c81f
mov dword [0x420d2c], 0x420510
push str._PRINT_FILE_
call fcn.0040eaaa
add esp, 4
test eax, eax
je 0x40c84d
push 0x419e20
push 0x419e04
call fcn.0040e653
add esp, 4
push eax
call fcn.0040e8e1
add esp, 8
jmp 0x40c8a9
push 0x104
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 4]
push 0x417b74
push ecx
call fcn.0040d028
add esp, 8
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, 0x112
sub ecx, eax
push ecx
lea edx, [esp + 8]
push esi
push edx
call fcn.0040cf43
lea eax, [esp + 0x10]
push 0x419e20
push eax
mov word [esp + 0x23c], 0
call fcn.0040e8e1
add esp, 0x14
test eax, eax
mov dword [0x420d30], eax
je 0x40c8c1
push 0
push 4
push 0
push eax
call fcn.0040e9bd
add esp, 0x10
mov ecx, dword [esp + 0x22c]
pop esi
call fcn.0040d00b
add esp, 0x22c
ret
Function at 0x40c950
Capabilities:
Check os version
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x334
mov eax, dword [0x4204c4]
push ebx
mov dword [esp + 0x334], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
dec eax
push edi
je 0x40ca75
dec eax
je 0x40c9ce
dec eax
jne 0x40ca88
xor eax, eax
mov ecx, 0x82
lea edi, [esp + 0x128]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0x12c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x128]
push 0x5c
push ecx
call fcn.0040cfa0
add esp, 8
test eax, eax
je 0x40ca88
mov word [eax], bx
jmp 0x40ca88
xor eax, eax
lea edx, [esp + 0x10]
mov ecx, 0x45
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x20], 2
jne 0x40ca60
cmp dword [esp + 0x14], 5
jb 0x40ca60
push 0x105
lea eax, [esp + 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x105
lea ecx, [esp + 0x12c]
push str.kernel32.dll
push ecx
call fcn.0040c8e0
add esp, 0xc
test al, al
je 0x40ca60
lea edx, [esp + 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x40ca60
push str.GetSystemWindowsDirectory
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40ca60
push 0x105
lea ecx, [esp + 0x12c]
push ecx
call eax
jmp 0x40ca88
push 0x105
lea edx, [esp + 0x12c]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x40ca88
push 0x105
lea eax, [esp + 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x105
lea ecx, [esp + 0x12c]
push esi
push ecx
call fcn.0040c8e0
add esp, 0xc
test al, al
je 0x40cac3
lea edx, [esp + 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [esp + 0x33c]
call fcn.0040d00b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x33c]
mov eax, ebx
call fcn.0040d00b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40ce43
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40ce99
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x41d1c4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40ce8c
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x40ce9b
xor eax, eax
pop esi
leave
ret 4
Function at 0x411382
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x420f9c], esi
push edi
jne 0x4113a2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x420f98], esi
mov byte [0x420f94], al
jne 0x411408
mov ecx, dword [0x4214a8]
test ecx, ecx
je 0x4113e9
mov eax, dword [0x4214a4]
sub eax, 4
cmp eax, ecx
jmp 0x4113e2
mov eax, dword [eax]
test eax, eax
je 0x4113d4
call eax
mov eax, dword [0x4214a4]
sub eax, 4
cmp eax, dword [0x4214a8]
mov dword [0x4214a4], eax
jae 0x4113cc
mov eax, 0x42003c
mov esi, 0x420044
cmp eax, esi
mov edi, eax
jae 0x411408
mov eax, dword [edi]
test eax, eax
je 0x411401
call eax
add edi, 4
cmp edi, esi
jb 0x4113f9
mov eax, 0x420048
mov esi, 0x420050
cmp eax, esi
mov edi, eax
jae 0x411427
mov eax, dword [edi]
test eax, eax
je 0x411420
call eax
add edi, 4
cmp edi, esi
jb 0x411418
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x411441
push dword [ebp + 8]
mov dword [0x420f9c], 1
call fcn.004112de
pop ebp
ret
Function at 0x411676
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4116a4
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4116ab
cmp ebx, dword [eax + 4]
jae 0x4116ab
xor eax, eax
jmp 0x41189b
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4116bc
xor eax, eax
inc eax
jmp 0x41189a
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4116d2
cmp ecx, edx
jae 0x411817
cmp dword [eax + 4], 0
je 0x4116db
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4116c3
cmp dword [ebp + 8], 0
je 0x4116fd
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x411817
cmp eax, esi
jae 0x411817
mov eax, dword [0x420fa0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x411722
cmp dword [esi*4 + 0x420fa8], edi
je 0x41181b
inc esi
cmp esi, eax
jl 0x411710
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x411897
cmp dword [ebp - 8], 0x1000000
jne 0x411897
test byte [ebp - 0xc], 0xcc
je 0x4117a0
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x411897
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x411897
cmp word [eax + 0x18], 0x10b
jne 0x411897
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x411897
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4117a0
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4117a0
test byte [ecx + 0x27], 0x80
jne 0x411817
push 1
push 0x420fe8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4116b4
mov ecx, dword [0x420fa0]
test ecx, ecx
mov edx, ecx
jle 0x4117d4
lea eax, [ecx*4 + 0x420fa4]
cmp dword [eax], edi
je 0x4117d4
dec edx
sub eax, 4
test edx, edx
jg 0x4117c8
test edx, edx
jne 0x411805
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4117e1
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4117f9
lea eax, [edx*4 + 0x420fa8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4117e7
cmp ecx, 0x10
jge 0x411805
inc ecx
mov dword [0x420fa0], ecx
push 0
push 0x420fe8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4116b4
xor eax, eax
jmp 0x41189a
test esi, esi
jle 0x4116b4
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x420fe8
call ebx
test eax, eax
jne 0x4116b4
cmp dword [esi*4 + 0x420fa8], edi
je 0x411871
mov eax, dword [0x420fa0]
lea esi, [eax - 1]
test esi, esi
jl 0x41185f
cmp dword [esi*4 + 0x420fa8], edi
je 0x41185b
dec esi
jns 0x41184f
test esi, esi
jge 0x41186f
cmp eax, 0x10
jge 0x41186a
inc eax
mov dword [0x420fa0], eax
lea esi, [eax - 1]
jmp 0x411871
je 0x411889
xor ecx, ecx
test esi, esi
jl 0x411889
lea eax, [ecx*4 + 0x420fa8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x411877
push 0
push 0x420fe8
call ebx
jmp 0x4116b4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4118a4
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040dae0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41193f
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x420f5c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x41193f
cmp eax, 1
je 0x411960
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41193f
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x41190c
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x41193b
xor eax, eax
inc eax
jmp 0x41197f
cmp edi, eax
jae 0x411943
xor eax, eax
jmp 0x41197f
cmp eax, esi
jae 0x41194a
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x420f5c]
jmp 0x411963
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret