joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402040
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x48
mov eax, dword [ecx]
mov edi, dword [ecx + 4]
mov dword [ebp - 0x1c], eax
test byte [0x404000], 8
jne 0x402198
mov dword [esp + 8], 0x20
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x402267
mov dword [eax], dbg.factory_QueryInterface
mov dword [eax + 4], 0x405340
mov eax, dword [edi]
mov dword [ebx + 0x18], 1
mov dword [ebx + 8], eax
mov eax, dword [edi + 4]
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0xc], eax
mov eax, dword [edi + 8]
mov dword [ebx + 0x10], eax
mov eax, dword [edi + 0xc]
mov dword [ebx + 0x14], eax
lea eax, [ebx + 0x1c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x40bbc8
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], edi
call dword [sym.imp.ole32.dll_CoGetClassObject]
sub esp, 0x14
mov esi, eax
test eax, eax
jns 0x402120
mov eax, dword [ebx]
mov dword [esp], ebx
call dword [eax + 8]
sub esp, 4
lea esp, [ebp - 0x10]
mov eax, esi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0xc], 8
mov dword [esp + 8], 4
add eax, 8
mov dword [esp + 4], ebx
mov dword [esp + 0x10], eax
mov dword [esp], edi
call dword [sym.imp.ole32.dll_CoRegisterClassObject]
sub esp, 0x14
mov esi, eax
test eax, eax
js 0x4020fe
mov edi, dword [ebp - 0x1c]
mov dword [edi + 4], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateEventW]
mov dword [edi + 0xc], eax
sub esp, 0x10
lea esp, [ebp - 0x10]
mov eax, esi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
test edi, edi
je 0x402260
mov eax, edi
shr eax, 0x10
je 0x402248
movzx eax, byte [edi + 0xf]
mov dword [esp + 0x2c], eax
movzx eax, byte [edi + 0xe]
mov dword [esp + 0x28], eax
movzx eax, byte [edi + 0xd]
mov dword [esp + 0x24], eax
movzx eax, byte [edi + 0xc]
mov dword [esp + 0x20], eax
movzx eax, byte [edi + 0xb]
mov dword [esp + 0x1c], eax
movzx eax, byte [edi + 0xa]
mov dword [esp + 0x18], eax
movzx eax, byte [edi + 9]
mov dword [esp + 0x14], eax
movzx eax, byte [edi + 8]
mov dword [esp + 0x10], eax
movzx eax, word [edi + 6]
mov dword [esp + 0xc], eax
movzx eax, word [edi + 4]
mov dword [esp + 8], eax
mov eax, dword [edi]
mov dword [esp], str._08x__04x__04x__02x_02x__02x_02x_02x_02x_02x_02x
mov dword [esp + 4], eax
call dbg.wine_dbg_sprintf
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0xc], str.__p__s__n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.surrogate_LoadDllServer
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x402069
movzx eax, di
mov dword [esp], str._guid_0x_04hx_
mov dword [esp + 4], eax
call dbg.wine_dbg_sprintf
jmp 0x40220d
mov eax, str._null_
jmp 0x40220d
mov esi, 0x8007000e
jmp 0x402109
Function at 0x4024f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x40254b
cmp byte [esi + ebx - 1], 0xa
je 0x40251f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x40f084], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x402b20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xf0
mov edi, dword [0x40f094]
mov esi, dword [ebp + 8]
test edi, edi
je 0x402ce0
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x40f094]
movzx eax, al
bt eax, esi
jae 0x402d40
mov ecx, dword [0x40f084]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x402be6
test byte [0x404018], 8
jne 0x402c80
lea ebx, [esp + 0x28]
mov edi, ebx
test byte [0x404028], 8
jne 0x402c30
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call dbg.sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x402bb5
cmp esi, 3
jbe 0x402bf0
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 8], str._s:_s:_s
lea edx, [edi + 1]
mov dword [esp], eax
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x40bca0]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x402bb5
mov ecx, dword [0x40f094]
test ecx, ecx
je 0x402d20
mov dword [esp], 0x404028
call dword [0x40f094]
test al, 8
je 0x402b8c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call dbg.sprintf
add edi, eax
jmp 0x402b8c
mov ebx, dword [0x40f094]
test ebx, ebx
je 0x402d00
mov dword [esp], 0x404018
call dword [0x40f094]
test al, 8
je 0x402b79
call dword [sym.imp.kernel32.dll_GetTickCount]
lea ebx, [esp + 0x28]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mov eax, 0x10624dd3
mov dword [esp], ebx
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call dbg.sprintf
lea edi, [ebx + eax]
jmp 0x402b7f
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x40f094
call sym._load_func.part.0
jmp 0x402b40
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x40f094
call sym._load_func.part.0
jmp 0x402c8a
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x40f094
call sym._load_func.part.0
jmp 0x402c3e
mov eax, 0xffffffff
jmp 0x402be6
Function at 0x40128f
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
mov ebp, ecx
push edi
cmp dword [ebp + 4], 0xffffffff
je 0x4012e8
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x4012e8
mov edi, dword [esp + 0x14]
cmp edi, 1
jb 0x4012e8
push esi
xor esi, esi
test edi, edi
je 0x4012e3
and dword [esp + 0x14], 0
lea eax, [esp + 0x14]
push 0
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [ebp + 4]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x4012e3
cmp dword [esp + 0x14], 0
je 0x4012e3
add esi, dword [esp + 0x14]
cmp esi, edi
jb 0x4012b2
mov eax, esi
pop esi
jmp 0x4012ea
xor eax, eax
pop edi
pop ebp
pop ebx
ret 8

Function at 0x4012f0
Capabilities:
Encode data using xor
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1cc
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x50]
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
mov dword [ebp - 8], 0x463ee4
push ebx
push eax
call fcn.004183a0
add esp, 0xc
lea eax, [ebp - 0x148]
mov esi, 0xf8
push esi
push ebx
push eax
call fcn.004183a0
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 8]
add esp, 8
mov dword [edi], ebx
push 3
push 3
push SysReAllocString
push dword [ebp + 8]
call fcn.004011ce
test al, al
je 0x40144d
push 0x40
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 8]
call fcn.0040128f
cmp eax, 0x40
jne 0x40144d
mov eax, 0x5a4d
cmp word [ebp - 0x50], ax
jne 0x40144d
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 8]
push ebx
cdq
push edx
push eax
call fcn.0040123d
push esi
lea eax, [ebp - 0x148]
push eax
lea ecx, [ebp - 8]
call fcn.0040128f
cmp eax, esi
jne 0x40144d
cmp dword [ebp - 0x148], 0x4550
jne 0x40144d
mov esi, dword [ebp - 0x140]
test esi, esi
je 0x40144d
lea ecx, [ebp - 8]
call fcn.00401209
cmp ebx, edx
ja 0x40144d
jb 0x4013d0
cmp esi, eax
ja 0x40144d
push ebx
push ebx
push esi
lea ecx, [ebp - 8]
call fcn.0040123d
cmp eax, esi
jne 0x40144d
cmp edx, ebx
jne 0x40144d
push 8
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
call fcn.0040128f
cmp eax, 8
jne 0x40144d
cmp dword [ebp - 0x10], 0x12d84cb
jne 0x40144d
lea esi, [eax + 0x78]
push esi
lea eax, [ebp - 0x1c8]
push eax
lea ecx, [ebp - 8]
call fcn.0040128f
cmp eax, esi
jne 0x40144d
push 4
push 0x3000
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x40144d
push dword [ebp - 0xc]
lea ecx, [ebp - 8]
push esi
call fcn.0040128f
mov edx, dword [ebp - 0xc]
cmp eax, edx
je 0x401469
push 0x8000
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
mov esi, ebx
cmp dword [ebp - 4], 0xffffffff
je 0x40145e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [edi], edx
test edx, edx
je 0x40144f
mov ch, bl
mov cl, byte [ebx + esi]
mov eax, ebx
and eax, 0x7f
mov al, byte [ebp + eax - 0x1c8]
add al, ch
mov ch, cl
xor al, cl
mov byte [ebx + esi], al
inc ebx
cmp ebx, edx
jb 0x401471
jmp 0x40144f
Function at 0x401e67
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
mov dword [ebp - 0xc], 4
mov dword [ebp - 8], ebx
call fcn.0040856d
cmp eax, 0x258
jge 0x401e8a
xor al, al
jmp 0x401ee7
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401e86
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push str.EnableLUA
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
test eax, eax
je 0x401ed2
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401e86
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], 4
jne 0x401ee5
cmp dword [ebp - 8], ebx
je 0x401ee5
mov bl, 1
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402221
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
mov esi, ecx
push edi
xor edi, edi
cmp word [esi], di
je 0x402294
call fcn.00401eed
test al, al
je 0x402294
push esi
push str._scheckwritepermissions.test
push 0xffffffffffffffff
lea eax, [ebp - 0x208]
push 0x103
push eax
call fcn.00401acf
add esp, 0x14
lea eax, [ebp - 0x208]
push edi
push 0x80
push 2
push edi
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
je 0x402294
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov al, 1
jmp 0x402296
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x406cf0
Capabilities:
Set registry value

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
xor ebx, ebx
lea ebp, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, bx
jne 0x406cfd
sub esi, ebp
sar esi, 1
lea esi, [esi*2 + 2]
test ecx, ecx
je 0x406d78
test edx, edx
je 0x406d78
cmp dword [esp + 0x14], ebx
je 0x406d78
cmp dword [esp + 0x1c], ebx
je 0x406d78
test esi, esi
je 0x406d78
lea eax, [esp + 0xc]
mov dword [esp + 0xc], ebx
push eax
mov eax, dword [esp + 0x24]
or eax, 0x20006
push eax
push ebx
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406d78
push esi
push dword [esp + 0x20]
push dword [esp + 0x20]
push ebx
push dword [esp + 0x24]
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esp + 0xc]
xor edx, edx
movzx ebx, bl
inc edx
test eax, eax
cmove ebx, edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
mov al, bl
pop ebx
pop ecx
ret

Function at 0x407557
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x660
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x24], 0x10
jbe 0x407617
lea ecx, [esp + 0x258]
call fcn.00409bff
push dword [esi + 0x20]
mov eax, ecx
push str._s.
push eax
call fcn.0040c813
add esp, 0xc
lea eax, [esp + 8]
push eax
push dword [esp + 0x260]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40760c
test byte [esp + 8], 0x10
jne 0x4075ec
lea eax, [esp + 0x34]
push eax
push dword [esi + 0x20]
lea eax, [esp + 0x260]
push 0x45c788
push eax
call fcn.0040c813
add esp, 0x10
mov ecx, esi
push dword [esp + 0x25c]
call fcn.004072c1
test al, al
je 0x4075ec
push dword [esp + 0x25c]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp byte [esi + 0x9b11], 0
jne 0x407605
lea eax, [esp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x4075a9
push edi
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea ecx, [esi + 0x8d78]
call fcn.00447c54
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407a9c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
push esi
mov esi, ecx
lea ecx, [esp + 8]
call fcn.0040b6e3
push dword [esp + 0x14]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
jne 0x407aca
xor al, al
jmp 0x407ade
lea ecx, [esp + 8]
call fcn.00401be0
mov ecx, dword [esp + 0xc]
mov edx, esi
call fcn.004077e3
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x407ce4
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x4014
call fcn.004309c0
push ebx
push ebp
push esi
mov esi, edx
xor ebp, ebp
push edi
mov eax, dword [esi + 4]
mov dword [esi + 8], ebp
test eax, eax
je 0x407d05
xor edx, edx
mov word [eax], dx
push ebp
push ebp
push 3
push ebp
push 3
push ebp
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x407d8e
xor eax, eax
mov dword [esp + 0x10], ebp
lea edi, [esp + 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x20]
mov edi, 0x4000
push edi
push ebp
push eax
call fcn.004183a0
add esp, 0xc
mov dword [esp + 0x14], ebp
lea eax, [esp + 0x10]
mov dword [esp + 0x18], ebp
push ebp
push eax
push edi
lea eax, [esp + 0x2c]
push eax
push 0xc
lea eax, [esp + 0x28]
push eax
push 0x2d1400
push ebx
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
je 0x407d87
mov eax, dword [esp + 0x10]
cmp eax, 0x28
jb 0x407d87
lea edx, [esp + 0x20]
lea ecx, [esp + 0x20]
add edx, eax
add ecx, dword [esp + 0x38]
push esi
call fcn.00407ec1
pop ecx
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4014
ret

Function at 0x40845c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
push esi
mov esi, ecx
lea ecx, [esp + 8]
call fcn.0040b6e3
push dword [esp + 0x14]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
jne 0x40848a
xor al, al
jmp 0x40849e
lea ecx, [esp + 8]
call fcn.00401be0
mov ecx, dword [esp + 0xc]
mov edx, esi
call fcn.004081a3
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4084f6
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
xor eax, eax
push esi
mov dword [ebp - 4], eax
mov esi, 0x100
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x214]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
je 0x408568
push 3
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x14]
push 4
push eax
call fcn.00423035
add esp, 0x10
xor eax, eax
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x214]
push esi
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationW]
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4085de
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
push edi
lea ecx, [ebp - 0x238]
call fcn.00401cb7
mov ecx, dword [ebp + 8]
call fcn.0040b78b
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x408626
lea ecx, [ebp - 0x238]
call fcn.00407a9c
movzx eax, al
test eax, eax
je 0x408624
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040c9a2
jmp 0x408647
lea ecx, [ebp - 0x238]
call fcn.0040845c
movzx eax, al
test eax, eax
je 0x408647
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040c9a2
lea ecx, [ebp - 0x238]
call fcn.004084a3
movzx eax, al
test eax, eax
je 0x408668
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040c9a2
call fcn.004084f6
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40869c
push dword [ebp - 4]
push 0x45ad88
lea eax, [ebp - 0x238]
push eax
call fcn.0040c813
add esp, 0xc
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040c9a2
mov ecx, dword [ebp + 8]
call fcn.00401782
movzx eax, al
test eax, eax
jne 0x4086c6
lea ecx, [ebp - 0x238]
call fcn.0040b2f3
lea ecx, [ebp - 0x238]
call fcn.00401c2f
jmp 0x40876e
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
movzx eax, word [ebp - 8]
test eax, eax
je 0x40872f
movzx eax, word [ebp - 6]
test eax, eax
je 0x40872f
movzx eax, word [ebp - 6]
push eax
movzx eax, word [ebp - 8]
push eax
push str._u._u
lea eax, [ebp - 0x238]
push eax
call fcn.0040c813
add esp, 0x10
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040c9a2
lea ecx, [ebp - 0x238]
call fcn.0040b2f3
lea ecx, [ebp - 0x238]
call fcn.00401c2f
jmp 0x40876e
call fcn.0040856d
push eax
push 0x45ca98
lea eax, [ebp - 0x238]
push eax
call fcn.0040c813
add esp, 0xc
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040c9a2
lea ecx, [ebp - 0x238]
call fcn.0040b2f3
lea ecx, [ebp - 0x238]
call fcn.00401c2f
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x408b89
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x330
push ebx
push ebp
push esi
push edi
mov ebp, 0x11c
lea eax, [esp + 0x10]
push ebp
xor ebx, ebx
mov edi, edx
push ebx
push eax
mov esi, ecx
call fcn.004183a0
add esp, 0xc
lea ecx, [esp + 0x130]
call fcn.00401cb7
push str.Windows
mov ecx, esi
call fcn.0040c54b
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_GetVersionExW]
push eax
call ebp
test eax, eax
jne 0x408bf7
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x114
push eax
call ebp
test eax, eax
je 0x408d74
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
test edi, edi
je 0x408c0a
imul eax, edx, 0x64
add eax, ecx
mov dword [edi], eax
mov eax, dword [esp + 0x20]
sub eax, 1
je 0x408d54
sub eax, 1
je 0x408c26
push str.Microsoft_Win32s
jmp 0x408d6b
cmp edx, 4
ja 0x408c35
push str.Microsoft_Windows_NT
jmp 0x408cd3
cmp edx, 5
jne 0x408c5e
sub ecx, ebx
je 0x408c57
sub ecx, 1
je 0x408c50
sub ecx, 1
mov eax, str.Windows_2003
jmp 0x408cd2
mov eax, str.Windows_XP
jmp 0x408cd2
mov eax, str.Windows_2000
jmp 0x408cd2
cmp edx, 6
jne 0x408cad
sub ecx, ebx
je 0x408ca1
sub ecx, 1
je 0x408c95
sub ecx, 1
je 0x408c89
sub ecx, 1
je 0x408c7d
mov eax, str.Windows_8.x
jmp 0x408cd2
mov eax, str.Windows_8.1
mov ecx, str.Windows_Server_2012_R2
jmp 0x408cc7
mov eax, str.Windows_8
mov ecx, str.Windows_Server_2012
jmp 0x408cc7
mov eax, str.Windows_7
mov ecx, str.Windows_Server_2008_R2
jmp 0x408cc7
mov eax, str.Windows_Vista
mov ecx, str.Windows_Server_2008
jmp 0x408cc7
cmp edx, 0xa
jne 0x408cda
test ecx, ecx
je 0x408cbd
push str.Windows_10.x
jmp 0x408cd3
mov eax, str.Windows_10
mov ecx, str.Windows_Server_10
cmp byte [esp + 0x12a], 1
cmovne eax, ecx
push eax
mov ecx, esi
call fcn.0040c54b
movzx eax, word [esp + 0x1c]
push eax
cmp word [esp + 0x28], bx
jne 0x408cfe
lea eax, [esp + 0x134]
push str.__Build__d_
push eax
call fcn.0040c813
add esp, 0xc
jmp 0x408d18
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x138]
push str.__s__Build__d_
push eax
call fcn.0040c813
add esp, 0x10
lea eax, [esp + 0x130]
mov ecx, esi
push eax
call fcn.0040c9a2
lea ecx, [esp + 0x130]
call fcn.00408b4f
test al, al
je 0x408d72
push str._on
mov ecx, esi
call fcn.0040c7b8
lea eax, [esp + 0x130]
mov ecx, esi
push eax
call fcn.0040c9a2
jmp 0x408d72
cmp edx, 4
ja 0x408d66
jne 0x408d5f
test ecx, ecx
jne 0x408d66
push str.Microsoft_Windows_95
jmp 0x408d6b
push str.Microsoft_Windows_98
mov ecx, esi
call fcn.0040c7b8
mov bl, 1
pop edi
mov al, bl
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408e7e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
test ecx, ecx
je 0x408ef3
test edx, edx
je 0x408ef3
cmp dword [ebp + 8], 0
je 0x408ef3
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x408ef3
cmp dword [ebp + 0x10], 0
je 0x408ef3
push ebx
lea eax, [ebp - 4]
xor ebx, ebx
push eax
mov eax, dword [ebp + 0x14]
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push edx
push ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408eee
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
xor edx, edx
movzx ebx, bl
inc edx
test eax, eax
cmove ebx, edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
jmp 0x408ef5
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4097c9
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [esp + 0x10]
mov edi, ecx
xor ebx, ebx
push eax
push edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
jne 0x4097f8
xor al, al
jmp 0x409893
mov eax, dword [0x4ab0ac]
cmp esi, dword [0x4ab0b0]
jbe 0x409840
test eax, eax
je 0x40981c
push 0x8000
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
mov dword [0x4ab0ac], ebx
push 4
push 0x3000
push esi
push ebx
mov dword [0x4ab0b0], ebx
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov dword [0x4ab0ac], eax
test eax, eax
je 0x4097f1
mov dword [0x4ab0b0], esi
push eax
push esi
push ebx
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x409891
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x18]
push eax
push 0x45dc94
push dword [0x4ab0ac]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x409891
mov edx, dword [esp + 0x14]
test edx, edx
je 0x409891
mov eax, dword [esp + 0x1c]
mov ecx, dword [edx + 0x10]
mov edx, dword [edx + 0x14]
mov dword [eax], ecx
mov eax, dword [esp + 0x20]
mov dword [eax], edx
test ecx, ecx
je 0x409891
test edx, edx
je 0x409891
mov bl, 1
mov al, bl
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8