joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4311d9
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x43c144]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0xc]
push edi
xor esi, esi
push eax
mov dword [ebp - 0xc], esi
call fcn.0042d21f
pop ecx
test eax, eax
je 0x43120e
push esi
push esi
push esi
push esi
push esi
call fcn.0042d7ce
add esp, 0x14
push 4
pop eax
call fcn.0042da90
mov dword [ebp - 0x14], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x43132a
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x58]
dec edi
neg edi
sbb edi, edi
and edi, 0x103
inc edi
cmp dword [ebp - 0xc], 2
mov dword [ebp - 8], esi
jne 0x4312a3
mov dword [ebp - 0x10], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.kernelbase.dll
call esi
test eax, eax
jne 0x43127a
push 0x434764
call esi
test eax, eax
je 0x4312a3
push str.SetThreadStackGuarantee
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4312a3
and dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
call eax
cmp eax, 1
jne 0x4312a3
mov eax, dword [ebp - 0x10]
test eax, eax
jbe 0x4312a3
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea esi, [ebx - 1]
push esi
push dword [ebp - 8]
call fcn.0042e498
add esp, 0xc
test eax, eax
jl 0x43132a
not esi
and dword [ebp - 8], esi
je 0x4312d5
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 8]
call fcn.0042e498
add esp, 0xc
test eax, eax
jl 0x43132a
lea eax, [ebx + ebx]
cmp dword [ebp - 8], eax
jae 0x4312e0
mov dword [ebp - 8], eax
lea esi, [ebx - 1]
not esi
and esi, dword [ebp - 0x14]
sub esi, dword [ebp - 8]
cmp dword [ebp - 0xc], 1
jne 0x4312f4
push 0x11
pop ebx
mov eax, dword [ebp - 0x18]
add ebx, eax
cmp esi, ebx
jb 0x43132a
push 4
push 0x1000
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x43132a
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x43132a
xor eax, eax
inc eax
jmp 0x43132c
xor eax, eax
lea esp, [ebp - 0x68]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b7bc
leave
ret
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x8b33ba
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.008b3439
jae 0x8b33c6
xor ecx, ecx
call fcn.008b3439
jae 0x8b33f0
xor eax, eax
call fcn.008b3439
jae 0x8b3401
mov al, 0x10
call fcn.008b3439
adc al, al
jae 0x8b33e2
jne 0x8b342e
stosb byte es:[edi], al
jmp 0x8b33c7
call fcn.008b3445
dec ecx
loop 0x8b340d
mov eax, ebp
call fcn.008b3443
jmp 0x8b342f
lodsb al, byte [esi]
shr eax, 1
je 0x8b3455
adc ecx, 2
mov ebp, eax
jmp 0x8b342f
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.008b3443
cmp eax, 0x7d00
jae 0x8b342d
cmp eax, 0x500
jae 0x8b342e
cmp eax, 0x7f
ja 0x8b342f
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8b33c7
pop ebp
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x419bbc
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], edi
push eax
mov ebx, ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call fcn.0041bce7
mov esi, eax
test esi, esi
js 0x419cb1
push edi
lea eax, [ebp - 8]
mov edx, 0x1001030
push eax
mov ecx, 0x800
call fcn.00413eaf
mov esi, eax
test esi, esi
js 0x419c98
mov ecx, dword [ebp - 8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x419c0f
mov eax, dword [ebp - 4]
sub ecx, edx
add eax, 2
sar ecx, 1
lea esi, [eax + ecx*2]
mov eax, dword fs:[0x30]
push esi
push edi
mov dword [ebp - 4], esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
test edi, edi
jne 0x419c48
mov esi, 0xc000009a
jmp 0x419c98
push esi
push 0
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp - 8]
push dword [ebp - 0xc]
push 0x405768
push dword [ebp - 4]
push edi
call fcn.00419cd1
mov esi, eax
add esp, 0x14
test esi, esi
js 0x419c85
push dword [ebp - 4]
mov edx, 0x12000004
mov ecx, ebx
push edi
push 0
call fcn.00420448
mov esi, eax
mov eax, dword fs:[0x30]
push edi
xor edi, edi
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp - 8], 0
je 0x419cb1
push dword [ebp - 8]
mov eax, dword fs:[0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp - 0xc], 0
je 0x419cca
push dword [ebp - 0xc]
mov eax, dword fs:[0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x41bce7
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
push esi
push edi
mov edi, dword [ebp + 0xc]
lea ecx, [esp + 0xc]
xor edx, edx
mov dword [esp + 0x10], eax
push ecx
push edx
mov dword [esp + 0x14], edx
mov ecx, eax
push edx
mov edx, 0x12000004
mov dword [esp + 0x20], edi
call fcn.0042024d
mov esi, eax
cmp esi, 0xc0000023
je 0x41bd37
test esi, esi
js 0x41bd96
and dword [ebx], 0
mov eax, dword [esp + 0xc]
mov dword [edi], eax
jmp 0x41bd96
push dword [esp + 0xc]
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
test edi, edi
jne 0x41bd59
mov esi, 0xc000009a
jmp 0x41bd96
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
push edi
push 0
mov edx, 0x12000004
call fcn.0042024d
mov esi, eax
test esi, esi
js 0x41bd83
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov dword [ebx], edi
mov dword [ecx], eax
jmp 0x41bd96
mov ecx, dword fs:[0x30]
push edi
push 0
push dword [ecx + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41cce7
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x43b034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
mov edi, edx
push 0x5c
pop eax
xor esi, esi
mov dword [ebp - 0x418], edi
cmp word [ebx], ax
je 0x41ce15
mov edi, ebx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
cmp ax, si
jne 0x41cd1c
sub edi, ecx
sar edi, 1
cmp edi, 0x103
jbe 0x41cd3d
mov esi, 0xc000000d
jmp 0x41ce8b
push ebx
lea eax, [ebp - 0x414]
push 0x104
push eax
call dword [sym.imp.msvcrt.dll_wcscpy_s]
add esp, 0xc
push 0x5c
pop eax
cmp word [ebp + edi*2 - 0x416], ax
je 0x41cd8d
cmp edi, 0x103
jae 0x41cd33
mov word [ebp + edi*2 - 0x414], ax
lea edi, [edi*2 + 2]
cmp edi, 0x208
jae 0x41ce9c
xor eax, eax
mov word [ebp + edi - 0x414], ax
mov edi, 0x104
lea eax, [ebp - 0x20c]
push edi
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_2_0.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x41ce50
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x41cdb8
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jbe 0x41ce09
push 0x5c
pop edx
cmp word [ebp - 0x20a], dx
jne 0x41cde2
push 0x3f
pop eax
mov word [ebp - 0x20a], ax
cmp word [ebp + ecx*2 - 0x20e], dx
jne 0x41ce09
lea ecx, [ecx*2 - 2]
cmp ecx, 0x208
jae 0x41ce9c
xor eax, eax
mov word [ebp + ecx - 0x20c], ax
mov edi, dword [ebp - 0x418]
lea ebx, [ebp - 0x20c]
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x41ce1a
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
mov eax, dword fs:[0x30]
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edx, eax
mov dword [edi], edx
test edx, edx
jne 0x41ce6a
mov esi, 0xc000009a
jmp 0x41ce8b
push edi
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_QueryDosDeviceW]
test eax, eax
jne 0x41ce09
mov esi, 0xc0000001
jmp 0x41ce8b
mov ecx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x41ce6f
sub ecx, edi
sar ecx, 1
push ebx
inc ecx
push ecx
push edx
call dword [sym.imp.msvcrt.dll_wcscpy_s]
add esp, 0xc
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00437a70
leave
ret
call fcn.00437bca
int3
Function at 0x41cea2
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x43b034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x405a94]
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
mov ebx, edx
mov ax, word [0x405a98]
mov edi, ecx
push 0x41
mov word [ebp - 8], ax
mov esi, 0xc000000e
pop eax
mov word [ebp - 0xc], ax
push 0x40
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_QueryDosDeviceW]
test eax, eax
je 0x41cf07
lea eax, [ebp - 0x8c]
push eax
push edi
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x41cf19
mov ax, word [ebp - 0xc]
inc ax
mov word [ebp - 0xc], ax
cmp ax, 0x5a
jbe 0x41cedc
jmp 0x41cf7c
lea ecx, [ebp - 0xc]
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x41cf21
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
mov eax, dword fs:[0x30]
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edx, eax
mov dword [ebx], edx
test edx, edx
jne 0x41cf57
mov esi, 0xc000009a
jmp 0x41cf7c
lea ecx, [ebp - 0xc]
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x41cf5d
sub ecx, edi
lea eax, [ebp - 0xc]
sar ecx, 1
push eax
inc ecx
push ecx
push edx
call dword [sym.imp.msvcrt.dll_wcscpy_s]
add esp, 0xc
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00437a70
leave
ret
Function at 0x41d541
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x43b034]
xor eax, esp
mov dword [esp + 0x38], eax
and dword [esp], 0
lea eax, [esp + 0x28]
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push eax
push 0
xor edx, edx
mov dword [esp + 0x24], ebx
mov ecx, edi
call fcn.0041fcf3
mov esi, eax
test esi, esi
js 0x41d650
lea eax, [esp + 0x18]
mov edx, 0x10200003
push eax
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call fcn.0041ba94
mov esi, eax
test esi, esi
js 0x41d634
xor ebx, ebx
cmp dword [esp + 0x18], ebx
jbe 0x41d625
mov eax, dword [esp + 0xc]
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x10]
mov edx, eax
push ecx
mov ecx, dword [esp + 0x20]
call fcn.0041fa76
mov esi, eax
test esi, esi
js 0x41d634
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 0x10
push eax
push 0
mov edx, 0x23000003
call fcn.0042024d
mov ecx, dword [esp + 0x10]
mov esi, eax
call fcn.0041fd66
test esi, esi
js 0x41d613
lea edx, [esp + 0x24]
xor ecx, ecx
lea esi, [esp + 0x34]
mov eax, dword [edx + ecx*4]
cmp eax, dword [esi + ecx*4]
jne 0x41d613
inc ecx
cmp ecx, 4
jne 0x41d601
xor esi, esi
jmp 0x41d634
mov eax, dword [esp + 0x14]
inc ebx
add eax, 0x14
mov dword [esp + 0x14], eax
cmp ebx, dword [esp + 0x18]
jb 0x41d5b0
mov ecx, edi
call fcn.0041fca8
mov esi, eax
test esi, esi
js 0x41d634
xor edi, edi
cmp dword [esp + 0xc], 0
je 0x41d650
push dword [esp + 0xc]
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
test edi, edi
je 0x41d65b
mov ecx, edi
call fcn.0041fd66
mov ecx, dword [esp + 0x44]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00437a70
mov esp, ebp
pop ebp
ret
Function at 0x41d946
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
mov ebx, ecx
push 0xfffffffffffffff5
mov dword [ebp - 8], ebx
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetStdHandle]
mov edi, eax
cmp edi, 0xffffffff
je 0x41da42
push esi
push edi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileType]
mov esi, eax
test esi, esi
jne 0x41d984
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jne 0x41da41
and esi, 0xffff7fff
cmp esi, 2
jne 0x41d9cf
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.api_ms_win_core_console_l1_1_0.dll_GetConsoleMode]
test eax, eax
jne 0x41d9a9
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 6
je 0x41d9cf
mov ecx, ebx
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x41d9b0
push esi
sub ecx, edx
lea eax, [ebp - 0x10]
push eax
sar ecx, 1
push ecx
push ebx
push edi
call dword [sym.imp.api_ms_win_core_console_l1_1_0.dll_WriteConsoleW]
jmp 0x41da41
call dword [sym.imp.api_ms_win_core_console_l1_1_0.dll_GetConsoleOutputCP]
xor esi, esi
mov dword [ebp - 0xc], eax
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push ebx
push esi
push eax
call dword [sym.imp.api_ms_win_core_string_l1_1_0.dll_WideCharToMultiByte]
mov dword [ebp - 4], eax
test eax, eax
je 0x41da41
mov ecx, dword fs:[0x30]
push eax
push esi
push dword [ecx + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
test ebx, ebx
je 0x41da41
push esi
push esi
push dword [ebp - 4]
push ebx
push 0xffffffffffffffff
push dword [ebp - 8]
push esi
push dword [ebp - 0xc]
call dword [sym.imp.api_ms_win_core_string_l1_1_0.dll_WideCharToMultiByte]
test eax, eax
je 0x41da30
push esi
lea ecx, [ebp - 0x10]
dec eax
push ecx
push eax
push ebx
push edi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
mov eax, dword fs:[0x30]
push ebx
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop esi
pop edi
pop ebx
leave
ret
Function at 0x41dfff
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
call fcn.0041eeac
mov esi, eax
test esi, esi
jns 0x41e02d
push esi
push 0x405d28
push 4
call fcn.0041df4b
add esp, 0xc
jmp 0x41e16b
mov esi, dword [ebp - 4]
xor edi, edi
xor ebx, ebx
mov dword [ebp - 8], edi
test esi, esi
je 0x41e124
movzx eax, word [esi]
push 2
pop ecx
cmp ax, cx
jb 0x41e124
mov edi, eax
lea eax, [edi + 2]
push eax
mov eax, dword fs:[0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
test ebx, ebx
jne 0x41e074
mov esi, 0xc0000017
jmp 0x41e166
shr edi, 1
xor eax, eax
mov dword [ebp - 4], ebx
mov word [ebx + edi*2], ax
movzx eax, word [esi]
push eax
push dword [esi + 4]
push ebx
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea edx, [ebp - 8]
mov ecx, ebx
call fcn.00426de9
mov edi, dword [ebp - 8]
test eax, eax
js 0x41e0a7
mov esi, edi
mov dword [ebp - 4], esi
jmp 0x41e0a9
mov esi, ebx
call fcn.00424d50
dec eax
sub eax, 1
je 0x41e0bb
mov esi, 0xc00000bb
jmp 0x41e0c4
mov ecx, esi
call fcn.0042c668
mov esi, eax
mov eax, dword [ebp - 4]
test esi, esi
jns 0x41e0de
push esi
push eax
push 0x405e28
push 4
call fcn.0041df4b
add esp, 0x10
jmp 0x41e137
push eax
push 0x405e90
push 2
call fcn.0041df4b
add esp, 0xc
call fcn.0041e172
mov esi, eax
test esi, esi
jns 0x41e137
push esi
push 0x405ed0
push 4
call fcn.0041df4b
add esp, 0xc
call fcn.00424d50
dec eax
sub eax, 1
jne 0x41e137
call int.0042c5a8
test eax, eax
jns 0x41e137
call int.0042c5a8
jmp 0x41e137
push 0x405db8
push 4
call fcn.0041df4b
pop ecx
pop ecx
mov esi, 0xc000000d
test ebx, ebx
je 0x41e150
mov eax, dword fs:[0x30]
push ebx
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov edi, dword [ebp - 8]
test edi, edi
je 0x41e166
mov eax, dword fs:[0x30]
push edi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
call fcn.0041eef5
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41fa76
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x43b034]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
push esi
mov dword [esp + 0x1c], eax
and al, 1
push edi
mov edi, edx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x13], al
jne 0x41fab3
call fcn.0041eeac
test eax, eax
js 0x41fc30
xor eax, eax
mov dword [ebx], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.ntdll.dll_RtlStringFromGUID]
mov ebx, eax
test ebx, ebx
jns 0x41fade
push ebx
push 0x407440
push 4
jmp 0x41fbfb
push dword [esp + 0x18]
push 0x407498
push 2
call fcn.0041df4b
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x28]
add esp, 0xc
mov edx, 0x406cc8
mov ecx, esi
push eax
push 0x20019
call fcn.0042368a
mov ebx, eax
test ebx, ebx
jns 0x41fb19
push ebx
push 0x4074c0
jmp 0x41fad7
lea edx, [esp + 0x20]
mov ecx, edi
call fcn.0041ffa2
test al, al
je 0x41fbc6
mov eax, dword [esp + 0x20]
sub eax, 1
je 0x41fb50
sub eax, 1
je 0x41fb41
mov ebx, 0xc000000d
jmp 0x41fb73
lea edx, [esp + 0x28]
mov ecx, esi
call fcn.0041ffee
mov ebx, eax
jmp 0x41fb73
push 0
push 0x20
lea eax, [esp + 0x40]
push eax
push 0x5a
call dword [sym.imp.ntdll.dll_ZwQuerySystemInformation]
mov ebx, eax
test ebx, ebx
js 0x41fb77
lea esi, [esp + 0x38]
lea edi, [esp + 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
test ebx, ebx
jns 0x41fb82
push ebx
push 0x407520
jmp 0x41fad7
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
and dword [esp + 0x18], 0
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.ntdll.dll_RtlStringFromGUID]
mov ebx, eax
test ebx, ebx
jns 0x41fbb3
push ebx
push 0x407580
jmp 0x41fad7
push dword [esp + 0x18]
push 0x4075e0
push 2
call fcn.0041df4b
add esp, 0xc
push dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push 0xf003f
call fcn.0042368a
mov ebx, eax
test ebx, ebx
jns 0x41fc03
xor eax, eax
cmp ebx, 0xc0000034
push ebx
setne al
push 0x407618
lea eax, [eax*2 + 2]
push eax
call fcn.0041df4b
add esp, 0xc
cmp dword [esp + 0x18], 0
je 0x41fc15
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x41fc22
call fcn.004233d7
cmp byte [esp + 0x13], 0
jne 0x41fc2e
call fcn.0041eef5
mov eax, ebx
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00437a70
mov esp, ebp
pop ebp
ret 4
Function at 0x421ab0
Capabilities:
Get number of processors

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x43b034]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov edi, edx
mov dword [esp + 0x24], ecx
xor esi, esi
mov dword [esp + 0x10], esi
mov ebx, esi
mov dword [esp + 0x14], esi
mov eax, dword [edi + 0x18]
add eax, edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], eax
cmp dword [eax], 2
je 0x421af7
mov esi, 0xc00000bb
jmp 0x421c6d
cmp dword [edi + 0x14], ebx
jne 0x421b6c
mov edx, dword [edi + 0x1c]
mov eax, edx
and eax, 0xf000000
cmp eax, 0x2000000
jne 0x421aed
lea eax, [esp + 0x18]
mov dword [esp + 0x18], esi
push eax
push esi
push esi
call fcn.0042024d
mov esi, eax
cmp esi, 0xc0000023
jne 0x421c39
push dword [esp + 0x18]
mov eax, dword fs:[0x30]
xor esi, esi
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
test ebx, ebx
jne 0x421b51
mov esi, 0xc000009a
jmp 0x421c39
mov edx, dword [edi + 0x1c]
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x24]
push eax
push ebx
push esi
call fcn.0042024d
mov eax, dword [esp + 0x1c]
mov edi, ebx
jmp 0x421b79
cmp dword [edi + 0x14], 1
jne 0x421c34
add edi, 0x20
lea esi, [eax + 0x14]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x20]
jne 0x421b81
sub ecx, edx
mov edx, edi
sar ecx, 1
lea eax, [edx + 2]
mov dword [esp + 0x1c], eax
mov ax, word [edx]
add edx, 2
cmp ax, word [esp + 0x20]
jne 0x421b9b
sub edx, dword [esp + 0x1c]
sar edx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
mov word [esp + 0x12], ax
movzx eax, ax
push eax
xor eax, eax
push eax
mov eax, dword fs:[0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x421be2
mov esi, 0xc000009a
jmp 0x421c56
push esi
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
push edi
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
lea eax, [esp + 0x10]
mov dword [esp + 0x28], 0x18
mov dword [esp + 0x30], eax
xor edi, edi
lea eax, [esp + 0x40]
mov dword [esp + 0x2c], edi
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x38], 0x40
push eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
call dword [sym.imp.ntdll.dll_ZwQueryAttributesFile]
mov esi, eax
jmp 0x421c3b
mov esi, 0xc00000bb
xor edi, edi
cmp dword [esp + 0x14], 0
je 0x421c56
push dword [esp + 0x14]
mov eax, dword fs:[0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
test ebx, ebx
je 0x421c6d
push ebx
xor eax, eax
push eax
mov eax, dword fs:[0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ecx, dword [esp + 0x6c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00437a70
mov esp, ebp
pop ebp
ret
Function at 0x422738
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 8]
mov edx, 0x47000006
push ebx
push esi
mov dword [esp + 0x10], eax
mov ebx, ecx
mov eax, dword [ebp + 0xc]
xor ecx, ecx
push edi
mov dword [esp + 0x10], eax
mov esi, ecx
lea eax, [esp + 0xc]
mov dword [esp + 0xc], ecx
push eax
push ecx
push ecx
mov ecx, ebx
call fcn.0042024d
mov edi, eax
cmp edi, 0xc0000023
jne 0x4227b0
push dword [esp + 0xc]
mov eax, dword fs:[0x30]
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
jne 0x42279a
add edi, 0xfffffff4
jmp 0x4227dc
lea eax, [esp + 0xc]
mov edx, 0x47000006
push eax
push esi
push 0
mov ecx, ebx
call fcn.0042024d
mov edi, eax
test edi, edi
jns 0x4227cc
test esi, esi
je 0x4227dc
mov eax, dword fs:[0x30]
push esi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x4227dc
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov dword [ecx], eax
mov eax, dword [esp + 0x14]
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8