joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4281cf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x488f08
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4bc760]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
push edi
mov eax, dword [0x4bc760]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov ax, word [0x4c2df4]
mov ecx, 0xc8
xor ebx, ebx
cmp ax, cx
jne 0x428221
push ebx
push ebx
call fcn.0046b53e
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], ebx
mov byte [esp + 0x10], bl
mov dword [esp + 0x38], ebx
mov cl, byte [esi]
test cl, cl
je 0x428263
mov al, byte [esi + 1]
xor al, cl
lea ecx, [esp + 0x10]
and al, 0xf
xor al, byte [esi + 1]
movzx eax, al
push eax
push 1
call fcn.0041dfc2
lea esi, [esi + 2]
mov cl, byte [esi]
test cl, cl
jne 0x42823b
mov ax, word [0x4c2df4]
movzx edi, ax
mov esi, ebx
test edi, edi
je 0x428285
mov edx, dword [esi*4 + 0x4c2e00]
lea ecx, [esp + 0x10]
call fcn.00415092
test al, al
jne 0x4282fb
inc esi
cmp esi, edi
jb 0x42826c
mov eax, dword [esp + 0x20]
inc eax
push eax
call fcn.00437b80
mov dx, word [0x4c2df4]
mov esi, eax
cmp dword [esp + 0x28], 0x10
pop ecx
movzx ecx, dx
mov dword [ecx*4 + 0x4c2e00], esi
lea ecx, [esp + 0x10]
cmovae ecx, dword [esp + 0x10]
mov al, byte [ecx]
inc ecx
mov byte [esi], al
inc esi
test al, al
jne 0x4282b2
inc dx
movzx eax, dx
mov word [0x4c2df4], dx
mov esi, dword [eax*4 + 0x4c2dfc]
push ebx
push 1
lea ecx, [esp + 0x18]
call fcn.0040d955
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00466746
mov esp, ebp
pop ebp
ret
mov esi, dword [esi*4 + 0x4c2e00]
jmp 0x4282cf

Function at 0x4290c1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xc
mov eax, 0x48905b
call fcn.0046af40
mov esi, edx
mov eax, ecx
mov dword [ebp - 0x10], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x4a1a28
mov dword [ebp - 0x14], ebx
call fcn.0040d781
mov dword [ebp - 4], ebx
push ebx
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x100
movzx ecx, si
mov ebx, eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
mov dword [ebp - 0x18], eax
push ecx
push ecx
push ebx
push eax
push ecx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
jle 0x429187
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00437b80
pop ecx
push edi
mov esi, eax
push esi
push ebx
push dword [ebp - 0x18]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
call fcn.0040ca1c
mov edi, dword [ebp - 0x10]
pop ecx
push eax
push esi
mov ecx, edi
call fcn.0040dd92
push esi
call fcn.00437b89
pop ecx
jmp 0x42918a
mov edi, dword [ebp - 0x10]
mov eax, edi
call fcn.0046af0e
ret
Function at 0x429294
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4890c4
mov eax, dword fs:[0]
push eax
mov eax, 0x1070
call fcn.0046bc50
mov eax, dword [0x4bc760]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0x1078], edi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1014]
push 0x800
push eax
push edi
mov dword [ebp - 0x107c], esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x42934b
lea eax, [ebp - 0x1014]
push eax
lea ecx, [ebp - 0x1044]
call fcn.0040d781
and dword [ebp - 4], 0
lea edx, [ebp - 0x1044]
push esi
lea ecx, [ebp - 0x1074]
call fcn.00429192
pop ecx
cmp dword [eax + 0x14], 8
jb 0x429321
mov eax, dword [eax]
push eax
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0
push 1
lea ecx, [ebp - 0x1074]
call fcn.0040d9e7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1044]
push 0
push 1
call fcn.0040d9e7
mov esi, dword [ebx]
jmp 0x4293e4
push dword [esi]
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
test edi, edi
je 0x4293db
push 0x800
lea eax, [ebp - 0x814]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x4293db
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x102c]
call fcn.0040d781
push dword [ebp - 0x107c]
lea edx, [ebp - 0x102c]
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x105c]
call fcn.00429192
pop ecx
cmp dword [eax + 0x14], 8
jb 0x4293b1
mov eax, dword [eax]
push eax
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0
push 1
lea ecx, [ebp - 0x105c]
call fcn.0040d9e7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x102c]
push 0
push 1
call fcn.0040d9e7
mov edi, dword [ebp - 0x1078]
add esi, 4
cmp esi, dword [ebx + 4]
jne 0x429352
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00466746
mov esp, ebp
pop ebp
ret
Function at 0x42aab4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4bc760]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, ecx
lea ecx, [ebp - 0x1c]
push ebx
call fcn.0042e9fa
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42aaee
test al, 0x10
je 0x42aaee
mov bl, 1
jmp 0x42aaf0
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.0040d9e7
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00466746
mov esp, ebp
pop ebp
ret

Function at 0x42ab0d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4bc760]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, ecx
lea ecx, [ebp - 0x1c]
push ebx
call fcn.0042e9fa
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42ab47
test al, 0x10
jne 0x42ab47
mov bl, 1
jmp 0x42ab49
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.0040d9e7
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00466746
mov esp, ebp
pop ebp
ret

Function at 0x42ab66
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48935b
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4bc760]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [0x4bc760]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x42abac
xor al, al
jmp 0x42acb7
push 1
push ecx
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x2e
push eax
call fcn.004253a1
mov edi, eax
cmp edi, 0xffffffff
je 0x42aba5
push esi
lea ecx, [esp + 0x1c]
call fcn.00413b07
and dword [esp + 0x70], 0
xor ebx, ebx
inc ebx
lea ecx, [esp + 0x18]
call fcn.0042ab0d
test al, al
lea eax, [esp + 0x18]
je 0x42ac92
cmp eax, esi
je 0x42abff
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.0040de35
push 0x4a5218
lea ecx, [esp + 0x34]
call fcn.0040d781
mov edx, ebx
mov byte [esp + 0x70], 1
lea ecx, [esp + 0x48]
call fcn.0040f163
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x7c], 2
call fcn.0040dcec
push 0
push 1
lea ecx, [esp + 0x50]
mov byte [esp + 0x78], 1
call fcn.0040d9e7
push 0x4a1b00
call fcn.0040ca1c
pop ecx
push eax
push 0x4a1b00
lea ecx, [esp + 0x38]
call fcn.0040dd92
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x38]
push eax
push edi
lea ecx, [esp + 0x28]
call fcn.004152a0
push 0
push 1
lea ecx, [esp + 0x38]
mov byte [esp + 0x78], 0
call fcn.0040d9e7
inc ebx
cmp ebx, 0x186a0
jl 0x42abda
xor bl, bl
jmp 0x42aca8
cmp esi, eax
je 0x42aca6
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x20]
mov ecx, esi
push eax
call fcn.0040de35
mov bl, 1
push 0
push 1
lea ecx, [esp + 0x20]
call fcn.0040d9e7
mov al, bl
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00466746
mov esp, ebp
pop ebp
ret
Function at 0x42b044
Capabilities:
Check os version
Create process on windows
Self delete

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x784
mov eax, dword [0x4bc760]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
lea eax, [ebp - 0x780]
push 0x40
push edi
push eax
mov dword [ebp - 0x784], edi
call fcn.00469150
add esp, 0xc
lea eax, [ebp - 0x20c]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x740], xmm0
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, 0x114
lea eax, [ebp - 0x730]
push esi
push edi
push eax
call fcn.00469150
add esp, 0xc
mov dword [ebp - 0x730], esi
lea eax, [ebp - 0x730]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x72c], 6
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
jb 0x42b0d7
push str.cmd.exe__C_timeout_2___Nul__Del___s_
jmp 0x42b0dc
push str.cmd.exe__C_ping_1.1.1.1__n_1__w_3000___Nul__Del___s_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x740]
push eax
lea eax, [ebp - 0x784]
push eax
push edi
push edi
push 0x8000000
push edi
push edi
push edi
lea eax, [ebp - 0x61c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp - 0x73c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x740]
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00466746
mov esp, ebp
pop ebp
ret

Function at 0x42b132
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x3c
mov eax, 0x489502
call fcn.0046af73
push 7
pop edx
xor ebx, ebx
mov dword [ebp - 0x2c], edx
xor eax, eax
mov dword [ebp - 0x30], ebx
mov word [ebp - 0x40], ax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0x40]
call fcn.0042c9cb
pop ecx
test al, al
je 0x42b1fa
mov edx, 0x20119
lea ecx, [ebp - 0x40]
call fcn.0042c8b6
mov esi, eax
test esi, esi
jne 0x42b19b
mov edx, 0x20219
lea ecx, [ebp - 0x40]
call fcn.0042c8b6
mov esi, eax
test esi, esi
je 0x42b1fa
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x48]
push ecx
push ebx
push ebx
lea eax, [ebp - 0x28]
mov dword [ebp - 0x48], ebx
cmovae eax, dword [ebp - 0x28]
push ebx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x42b1f8
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
cmp word [ecx + eax*2 - 2], 0x2a
jne 0x42b1fa
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.00413b07
lea eax, [ebp - 0x44]
mov edx, 0x20019
push eax
mov ecx, esi
call fcn.0042ca6b
add esp, 0x1c
mov bl, al
jmp 0x42b1fa
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0040d9e7
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.0040d9e7
mov al, bl
call fcn.0046af22
ret
Function at 0x42b466
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x44
mov eax, 0x48956c
call fcn.0046af73
mov edi, edx
and dword [ebp - 0x34], 0
xor eax, eax
push 7
pop edx
mov dword [ebp - 0x30], edx
mov word [ebp - 0x44], ax
and dword [ebp - 4], eax
and dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
mov word [ebp - 0x2c], ax
inc eax
lea edx, [ebp - 0x44]
mov byte [ebp - 4], al
lea eax, [ebp - 0x2c]
push eax
call fcn.0042c9cb
pop ecx
test al, al
je 0x42b56d
mov edx, 0x20119
lea ecx, [ebp - 0x44]
call fcn.0042c8b6
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x42b56d
xor esi, esi
lea edx, [ebp - 0x48]
push edx
push esi
push esi
xor bl, bl
mov dword [ebp - 0x48], esi
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
push esi
cmovae ecx, dword [ebp - 0x2c]
push ecx
push eax
mov dword [ebp - 0x50], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42b562
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x42b562
inc eax
push 0x4c1f0e
push eax
call fcn.00468549
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x42b56d
mov ecx, dword [ebp - 0x48]
inc ecx
push ecx
push 0
push esi
call fcn.00469150
add esp, 0xc
lea ecx, [ebp - 0x48]
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push ecx
push esi
lea ecx, [ebp - 0x50]
push ecx
push 0
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42b55b
cmp dword [ebp - 0x50], 1
jne 0x42b55b
cmp dword [edi + 0x14], 8
jb 0x42b547
mov edi, dword [edi]
push edi
push esi
call fcn.00468901
pop ecx
pop ecx
test eax, eax
movzx ebx, bl
push 1
pop eax
cmovne ebx, eax
push esi
call fcn.00437b89
pop ecx
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42b56f
xor bl, bl
xor esi, esi
lea ecx, [ebp - 0x2c]
push 0
inc esi
push esi
call fcn.0040d9e7
push 0
push esi
lea ecx, [ebp - 0x44]
call fcn.0040d9e7
mov al, bl
call fcn.0046af22
ret
Function at 0x42ca6b
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x280
mov eax, 0x489783
call fcn.0046af73
mov ebx, edx
mov dword [ebp - 0x280], ebx
mov dword [ebp - 0x27c], ecx
mov edi, dword [ebp + 8]
and dword [ebp - 4], 0
lea eax, [ebp - 0x278]
push 1
push ecx
push eax
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x278], 0x5c
call fcn.004253a1
mov esi, eax
lea ecx, [ebp + 0xc]
push esi
push 0
lea eax, [ebp - 0x22c]
push eax
call fcn.0040d806
mov byte [ebp - 4], 1
lea eax, [esi + 1]
mov ecx, dword [ebp + 0x1c]
sub ecx, esi
sub ecx, 2
push ecx
push eax
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp + 0xc]
call fcn.0040d806
mov byte [ebp - 4], 2
cmp dword [ebp - 0x21c], 0
jne 0x42caf0
xor eax, eax
jmp 0x42cb04
cmp dword [ebp - 0x218], 8
lea eax, [ebp - 0x22c]
cmovae eax, dword [ebp - 0x22c]
push edi
push ebx
xor ebx, ebx
push ebx
push eax
push dword [ebp - 0x27c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42cc83
cmp dword [edi], ebx
je 0x42cc83
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x288]
mov dword [ebp - 0x278], ebx
push eax
push ebx
lea eax, [ebp - 0x284]
mov dword [ebp - 0x284], ebx
push eax
lea eax, [ebp - 0x278]
mov dword [ebp - 0x288], ebx
push eax
push ebx
push ebx
push ebx
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov esi, ebx
cmp dword [ebp - 0x278], ebx
jbe 0x42cc83
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x28c]
mov dword [ebp - 0x28c], 0xff
push eax
lea eax, [ebp - 0x214]
push eax
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x42cbe4
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x25c]
call fcn.0040d781
push dword [ebp - 0x234]
cmp dword [ebp - 0x230], 8
lea ecx, [ebp - 0x244]
push ebx
cmovae ecx, dword [ebp - 0x244]
push ecx
mov ecx, eax
call fcn.0041462f
cmp eax, 0xffffffff
lea ecx, [ebp - 0x25c]
push 0
push 1
setne bl
call fcn.0040d9e7
test bl, bl
jne 0x42cbf6
xor ebx, ebx
inc esi
cmp esi, dword [ebp - 0x278]
jb 0x42cb6b
jmp 0x42cc83
push 0x4a1a20
lea edx, [ebp - 0x22c]
lea ecx, [ebp - 0x274]
call fcn.0040e342
lea ecx, [ebp - 0x214]
mov byte [ebp - 4], 3
push ecx
mov edx, eax
lea ecx, [ebp - 0x25c]
call fcn.00414fcd
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x22c]
call fcn.0040d7d7
xor ebx, ebx
lea ecx, [ebp - 0x25c]
push ebx
push 1
call fcn.0040d9e7
push ebx
push 1
lea ecx, [ebp - 0x274]
call fcn.0040d9e7
cmp dword [ebp - 0x218], 8
lea eax, [ebp - 0x22c]
push edi
push dword [ebp - 0x280]
cmovae eax, dword [ebp - 0x22c]
push ebx
push eax
push dword [ebp - 0x27c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42cc83
cmp dword [edi], ebx
je 0x42cc83
mov bl, 1
xor esi, esi
lea ecx, [ebp - 0x244]
push esi
push 1
call fcn.0040d9e7
push esi
push 1
lea ecx, [ebp - 0x22c]
call fcn.0040d9e7
push esi
push 1
lea ecx, [ebp + 0xc]
call fcn.0040d9e7
mov al, bl
call fcn.0046af22
ret
Function at 0x42d234
Capabilities:
Get system information on windows

Disassembly:
push 0x1fc
mov eax, 0x489966
call fcn.0046af73
mov ebx, ecx
xor edx, edx
push 0xf
pop eax
mov dword [ebp - 0x1e4], edx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], edx
mov byte [ebp - 0x5c], dl
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], edx
mov byte [ebp - 0x44], dl
push 9
pop ecx
xor eax, eax
mov dword [ebp - 4], edx
mov esi, 0x11c
lea edi, [ebp - 0x208]
push esi
rep stosd dword es:[edi], eax
push edx
lea eax, [ebp - 0x1dc]
push eax
call fcn.00469150
add esp, 0xc
mov dword [ebp - 0x1dc], esi
lea eax, [ebp - 0x1dc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x42d42d
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov edx, dword [ebp - 0x1d4]
lea ecx, [ebp - 0x8c]
call fcn.00423e49
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x74]
mov edx, dword [ebp - 0x1d8]
call fcn.00423e49
mov edi, 0x4a1fac
mov byte [ebp - 4], 2
push edi
mov edx, eax
lea ecx, [ebp - 0xbc]
call fcn.0041bcea
push esi
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xa4]
call fcn.0041bc9e
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x5c]
call fcn.0040eacc
xor esi, esi
lea ecx, [ebp - 0xa4]
push 0
inc esi
push esi
call fcn.0040d955
push 0
push esi
lea ecx, [ebp - 0xbc]
call fcn.0040d955
push 0
push esi
lea ecx, [ebp - 0x74]
call fcn.0040d955
push 0
push esi
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0
call fcn.0040d955
movzx edx, word [ebp - 0xc6]
lea ecx, [ebp - 0xa4]
call fcn.0040f0d5
mov esi, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xbc]
movzx edx, word [ebp - 0xc8]
call fcn.0040f0d5
push edi
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x74]
call fcn.0041bcea
push esi
mov edx, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x8c]
call fcn.0041bc9e
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.0040eacc
xor edi, edi
lea ecx, [ebp - 0x8c]
xor esi, esi
push edi
inc esi
push esi
call fcn.0040d955
push edi
push esi
lea ecx, [ebp - 0x74]
call fcn.0040d955
push edi
push esi
lea ecx, [ebp - 0xbc]
call fcn.0040d955
push edi
push esi
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0
call fcn.0040d955
mov eax, dword [ebp - 0x1d0]
and dword [ebp - 0x1e0], edi
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x1e0]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [ebp - 0x1e0], edi
mov eax, dword [ebp - 0x1cc]
push 0x59
setne byte [ebp - 0x28]
mov dword [ebp - 0x24], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
movzx eax, word [ebp - 0xc4]
mov dword [ebp - 0x1c], eax
movzx eax, word [ebp - 0x208]
setne byte [ebp - 0x20]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x5c]
mov ecx, ebx
push eax
call fcn.0040fd6c
lea ecx, [ebp - 0x5c]
call fcn.0040f65e
mov eax, ebx
call fcn.0046af22
ret
Function at 0x42e636
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x4bc760]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 9
pop eax
mov esi, ecx
lea edi, [ebp - 0x144]
mov ecx, eax
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, 0x11c
push edi
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.00469150
add esp, 0xc
mov dword [ebp - 0x120], edi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x42e690
inc eax
jmp 0x42e80c
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp dword [ebp - 0x110], 2
jne 0x42e7f5
mov eax, dword [ebp - 0x11c]
cmp eax, 4
jbe 0x42e7f5
push 1
pop ebx
sub eax, 5
je 0x42e779
dec eax
je 0x42e6f2
sub eax, 4
jne 0x42e7f5
cmp dword [ebp - 0x118], eax
jne 0x42e6de
cmp byte [ebp - 6], bl
jne 0x42e6e8
mov edi, 0x4a5af4
jmp 0x42e7e1
mov edi, str.Windows_10_Server
jmp 0x42e7e1
mov eax, dword [ebp - 0x118]
sub eax, 0
je 0x42e766
dec eax
je 0x42e750
dec eax
je 0x42e737
dec eax
je 0x42e71e
dec eax
je 0x42e713
mov edi, str.Unsupported_version_of_Windows
jmp 0x42e7e1
cmp byte [ebp - 6], bl
jne 0x42e7f1
jmp 0x42e6de
cmp byte [ebp - 6], bl
jne 0x42e72d
mov edi, str.Windows_8.1
jmp 0x42e7e1
mov edi, str.Windows_Server_2012_R2
jmp 0x42e7e1
cmp byte [ebp - 6], bl
jne 0x42e746
mov edi, str.Windows_8
jmp 0x42e7e1
mov edi, str.Windows_Server_2012
jmp 0x42e7e1
cmp byte [ebp - 6], bl
jne 0x42e75f
mov edi, str.Windows_7
jmp 0x42e7e1
mov edi, str.Windows_Server_2008_R2
jmp 0x42e7e1
cmp byte [ebp - 6], bl
jne 0x42e772
mov edi, str.Windows_Vista
jmp 0x42e7e1
mov edi, str.Windows_Server_2008
jmp 0x42e7e1
mov eax, dword [ebp - 0x118]
sub eax, 0
je 0x42e7dc
dec eax
je 0x42e7ce
dec eax
jne 0x42e7f5
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x42e79d
mov edi, str.Windows_Server_2003_R2
jmp 0x42e7e1
test dword [ebp - 8], 0x2000
je 0x42e7ad
mov edi, str.Windows_Storage_Server_2003
jmp 0x42e7e1
test dword [ebp - 8], 0x8000
je 0x42e7bd
mov edi, str.Windows_Home_Server
jmp 0x42e7e1
cmp byte [ebp - 6], bl
jne 0x42e7d5
push 9
pop eax
cmp word [ebp - 0x144], ax
jne 0x42e7d5
mov edi, str.Windows_XP
jmp 0x42e7e1
mov edi, str.Windows_Server_2003
jmp 0x42e7e1
mov edi, str.Windows_2000
push edi
call fcn.0040ca1c
pop ecx
push eax
push edi
mov ecx, esi
call fcn.0040dd92
mov eax, ebx
jmp 0x42e80c
mov edi, str.Unsupported_version_of_Windows
push edi
call fcn.0040ca1c
pop ecx
push eax
push edi
mov ecx, esi
call fcn.0040dd92
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00466746
mov esp, ebp
pop ebp
ret