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

Disassembly:
push edi
mov edi, dword [esp + 0xc]
xor ecx, ecx
test edi, edi
jle 0x45a4cd
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x14]
mov dl, byte [ecx + esi]
xor eax, eax
mov al, bh
xor al, dl
movzx dx, dl
add edx, ebx
mov byte [ecx + esi], al
imul edx, dword [esp + 0x20]
add edx, ebp
inc ecx
cmp ecx, edi
mov ebx, edx
jl 0x45a4aa
pop esi
pop ebp
pop ebx
pop edi
ret

Function at 0x45a580
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x73e2fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, ecx
mov cl, byte [esp + 3]
mov dword [esp + 4], eax
mov byte [eax + 0x3c], cl
xor ecx, ecx
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov dword [esp + 0x10], ecx
or edx, 0xffffffff
mov byte [eax + 0x18], cl
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], ecx
mov ecx, dword [esp + 8]
mov dword [eax], 0x766300
mov dword [eax + 0x14], edx
mov dword [eax + 0x1c], 0x3f800000
mov byte [eax + 0x38], 1
mov dword [esp + 0x10], edx
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x45b5f0
Capabilities:
Encode data using xor

Disassembly:
mov ax, word [esp + 4]
push ebx
push esi
cmp ax, 1
push edi
jne 0x45b646
mov ebx, dword [esp + 0x18]
mov edx, 0x816
test ebx, ebx
jbe 0x45b6d4
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
sub edi, esi
mov al, byte [esi]
xor ecx, ecx
mov cl, dh
xor cl, al
movzx ax, al
add eax, edx
mov byte [edi + esi], cl
lea edx, [eax + eax*2]
shl edx, 6
add edx, eax
shl edx, 7
inc esi
dec ebx
lea edx, [edx + eax + 0x1608]
jne 0x45b619
pop edi
pop esi
mov al, 1
pop ebx
ret
cmp ax, 2
jne 0x45b693
mov ebx, dword [esp + 0x18]
mov ecx, 0x1608
test ebx, ebx
jbe 0x45b6d4
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
sub edi, esi
mov al, byte [esi]
xor edx, edx
mov dl, ch
xor dl, al
movzx ax, al
add eax, ecx
mov byte [esi + edi], dl
lea ecx, [eax + eax*2]
shl ecx, 3
sub ecx, eax
inc esi
dec ebx
lea eax, [ecx + ecx*8]
lea eax, [eax + eax*4]
lea ecx, [eax + eax + 0x6081]
jne 0x45b663
pop edi
pop esi
mov al, 1
pop ebx
ret
mov ebx, dword [esp + 0x18]
mov ecx, 0x6081
test ebx, ebx
jbe 0x45b6d4
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
sub edi, esi
mov al, byte [esi]
xor edx, edx
mov dl, ch
xor dl, al
movzx ax, al
add eax, ecx
mov byte [esi + edi], dl
lea ecx, [eax + eax*2]
shl ecx, 4
sub ecx, eax
inc esi
dec ebx
lea eax, [ecx + ecx*2]
lea ecx, [eax + eax*4]
lea ecx, [ecx*8 + 0x816]
jne 0x45b6aa
pop edi
pop esi
mov al, 1
pop ebx
ret
Function at 0x45cad0
Capabilities:
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x73e4ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x314
push edi
mov edi, ecx
mov dword [esp + 4], edi
mov eax, dword [edi + 0x40094]
test eax, eax
je 0x45cc4a
cmp dword [edi + 4], 0xffffffff
je 0x45cc4a
mov eax, dword [edi + 0x40020]
test eax, eax
je 0x45cc4a
mov eax, dword [edi + 0x40038]
test eax, eax
je 0x45cb58
push 0x7a464c
lea ecx, [esp + 0x1c]
call fcn.0067db50
mov eax, dword [edi + 0x4003c]
mov ecx, dword [esp + 0x32c]
mov edx, dword [esp + 0x328]
push eax
push ecx
push edx
lea ecx, [esp + 0x24]
call fcn.0067dc60
mov ecx, dword [edi + 0x4003c]
jmp 0x45cb66
mov eax, dword [esp + 0x32c]
mov ecx, dword [esp + 0x328]
push ebx
push ebp
push esi
push 1
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.0045b7e0
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
push 0xaa55
mov dword [esp + 0x330], 0
lea eax, [ebp + 6]
lea ebx, [edi + 0x20]
mov dword [esp + 0x18], eax
call sub.wsock32.dll_htons
mov word [ebx], ax
add ebx, 2
mov ecx, ebp
push 0x55aa
mov word [ebx], bp
add ebx, 2
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add ebx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.wsock32.dll_htons
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov word [ebx], ax
xor ebx, ebx
test esi, esi
jle 0x45cc19
lea eax, [edi + 0x20]
mov edi, dword [esp + 0x10]
push 0
push esi
push eax
mov eax, dword [edi + 4]
push eax
call sub.wsock32.dll_send
cmp eax, 0xffffffff
je 0x45cbfd
test eax, eax
je 0x45cbf7
add ebx, eax
cmp ebx, esi
jl 0x45cbd8
jmp 0x45cc19
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push 0x7a4658
call fcn.00455190
add esp, 8
push 0xffffffffffffffff
call dword [sym.imp.user32.dll_PostQuitMessage]
mov ebx, dword [edi + 0x40060]
mov ecx, dword [esp + 0x20]
add ebx, esi
push ecx
mov dword [edi + 0x40060], ebx
mov dword [esp + 0x330], 0xffffffff
mov dword [esp + 0x1c], 0x766304
call fcn.00726ea6
add esp, 4
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x318]
pop edi
mov dword fs:[0], ecx
add esp, 0x320
ret 8
Function at 0x45fc70
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
dec eax
push esi
cmp eax, 8
push edi
ja case.default.0x45fc82
jmp dword [eax*4 + 0x45fe78]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
push ecx
push 1
push edx
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
push ecx
push 2
push edx
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
push ecx
push 4
push edx
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
mov eax, dword [esp + 0x14]
push ebp
lea ecx, [esp + 0x1c]
push 0
push ecx
lea edx, [esp + 0x18]
push 4
push edx
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.kernel32.dll_ReadFile]
mov edi, 0x7c4d88
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
mov ecx, ebx
push ebp
call fcn.00401450
test al, al
je 0x45fd5f
mov edi, dword [ebx + 4]
mov ecx, ebp
mov edx, ecx
mov esi, 0x7c4d88
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 4]
mov dword [ebx + 8], ebp
mov byte [eax + ebp], 0
mov esi, dword [esp + 0x10]
pop ebp
test esi, esi
jle 0x45fe60
cmp esi, 0xffffffff
jne 0x45fd76
call fcn.007373b0
mov ecx, ebx
call fcn.00404990
cmp eax, esi
jae 0x45fd86
call fcn.007373b0
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x45fdab
mov al, byte [ecx - 1]
test al, al
je 0x45fdab
cmp al, 0xff
je 0x45fdab
test esi, esi
jne 0x45fdcf
dec al
push esi
mov byte [ecx - 1], al
mov ecx, ebx
call fcn.00404760
jmp 0x45fdf9
test esi, esi
jne 0x45fdba
push 1
mov ecx, ebx
call fcn.00404760
jmp 0x45fdf9
mov eax, dword [ebx + 0xc]
cmp eax, 0x1f
ja 0x45fdc6
cmp eax, esi
jae 0x45fdd7
push 1
mov ecx, ebx
call fcn.00404760
push esi
mov ecx, ebx
call fcn.00401570
mov edi, dword [ebx + 4]
mov ecx, esi
mov edx, ecx
mov eax, 0x20202020
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebx + 4]
mov dword [ebx + 8], esi
mov byte [eax + esi], 0
mov eax, dword [ebx + 4]
test eax, eax
je 0x45fe28
mov al, byte [eax - 1]
test al, al
je 0x45fe18
cmp al, 0xff
je 0x45fe18
mov ecx, dword [ebx + 8]
push 0
push ecx
mov ecx, ebx
call fcn.00401450
mov eax, dword [ebx + 4]
test eax, eax
je 0x45fe23
mov byte [eax - 1], 0xff
mov ebx, dword [ebx + 4]
jmp 0x45fe2d
mov ebx, 0x765608
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x18]
push 0
push edx
push eax
push ebx
jmp 0x45fe55
lea edx, [esp + 0x18]
push 0
push edx
push 4
jmp 0x45fe50
lea edx, [esp + 0x18]
push 0
push edx
push 8
mov eax, dword [esp + 0x28]
push eax
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.kernel32.dll_ReadFile]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0xc
Function at 0x470380
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x73ebc6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov dword [esp + 0x18], ebp
call fcn.00460830
mov al, byte [esp + 0x13]
xor esi, esi
lea ebx, [ebp + 0x7b4]
mov dword [esp + 0x30], esi
mov byte [ebx], al
mov dword [ebx + 4], esi
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], esi
lea ecx, [ebp + 0x98]
mov byte [esp + 0x30], 1
mov dword [ebp], fcn.004611a0
mov dword [ebp + 0x18], 1
mov edx, dword [ecx]
mov edi, 0x7c4d88
mov dword [esp + 0x1c], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x20], eax
mov ecx, dword [ecx + 8]
mov dword [ebp + 0x500], eax
mov dword [esp + 0x24], ecx
mov dword [ebp + 0x504], ecx
mov dword [ebp + 0x4fc], edx
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp + 0x7c4], 0
mov dword [ebp + 0x7c8], esi
mov dword [ebp + 0x7cc], esi
mov dword [ebp + 0x7b0], esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
cmp edi, 0xfffffffd
mov dword [esp + 0x14], edi
jbe 0x470439
call fcn.007373b0
mov ecx, dword [ebx + 4]
cmp ecx, esi
je 0x47045e
mov al, byte [ecx - 1]
test al, al
je 0x47045e
cmp al, 0xff
je 0x47045e
cmp edi, esi
jne 0x470482
dec al
push esi
mov byte [ecx - 1], al
mov ecx, ebx
call fcn.00404760
jmp 0x4704b3
cmp edi, esi
jne 0x47046d
push 1
mov ecx, ebx
call fcn.00404760
jmp 0x4704b3
mov eax, dword [ebx + 0xc]
cmp eax, 0x1f
ja 0x470479
cmp eax, edi
jae 0x47048a
push 1
mov ecx, ebx
call fcn.00404760
push edi
mov ecx, ebx
call fcn.00401570
mov eax, dword [ebx + 4]
mov ecx, edi
mov edx, ecx
mov esi, 0x7c4d88
mov edi, eax
mov eax, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx + 8], eax
mov ebx, dword [ebx + 4]
add ebx, eax
mov byte [ebx], 0
mov ecx, dword [esp + 0x28]
pop edi
mov eax, ebp
pop esi
mov dword [esp + 0x28], 0xffffffff
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x48c640
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov ebp, dword [sym.imp.kernel32.dll_WriteFile]
mov esi, ecx
push edi
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
mov al, byte [esi + 0x2c]
push 0
mov ebx, 1
push ecx
lea edx, [esp + 0x1b]
push ebx
push edx
push edi
mov dword [esp + 0x28], 0
mov byte [esp + 0x27], al
call ebp
mov al, byte [esi + 0x30]
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esp + 0x1b]
push ebx
push edx
push edi
mov byte [esp + 0x27], al
call ebp
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 0x40]
push 4
push ecx
push edi
call ebp
mov dl, byte [esi + 0x3c]
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x1b]
push ebx
push ecx
push edi
mov byte [esp + 0x27], dl
call ebp
lea edx, [esp + 0x14]
push 0
push edx
lea eax, [esi + 0x54]
push 0xc
push eax
push edi
call ebp
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esi + 0x60]
push 0xc
push edx
push edi
call ebp
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 0x6c]
push 0xc
push ecx
push edi
call ebp
lea edx, [esp + 0x14]
push 0
push edx
lea eax, [esi + 0xa4]
push ebx
push eax
push edi
call ebp
push 0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esi + 0x98]
push 0xc
push edx
push edi
call ebp
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 0x1b0]
push 4
push ecx
push edi
call ebp
lea edx, [esp + 0x14]
push 0
push edx
lea eax, [esi + 0x1b4]
push 4
push eax
push edi
call ebp
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esi + 0xa5]
push 0x104
push edx
push edi
call ebp
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 0x1c4]
push 4
push ecx
push edi
call ebp
lea edx, [esp + 0x14]
push 0
push edx
lea eax, [esi + 0x1c8]
push 4
push eax
push edi
call ebp
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esi + 0x1b8]
push 4
push edx
push edi
call ebp
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 0x1bc]
push 4
push ecx
push edi
call ebp
mov ecx, dword [esi + 0x1d0]
lea eax, [esi + 0x1c0]
cmp ecx, ebx
mov dword [eax], 0x5c7
jne 0x48c7ae
mov dword [eax], 0x1c7
cmp dword [esi + 0x1d4], ebx
jne 0x48c7bc
xor dword [eax], 0x100
cmp dword [esi + 0x1dc], ebx
je 0x48c7c7
xor dword [eax], 4
cmp dword [esi + 0x1d8], ebx
jne 0x48c7d2
xor dword [eax], 0x40
cmp dword [esi + 0x1cc], ebx
je 0x48c7dc
xor dword [eax], ebx
lea edx, [esp + 0x14]
push 0
push edx
push 4
push eax
push edi
call ebp
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
add esp, 8
ret 4
Function at 0x4cf2d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x742b88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov ecx, 9
lea edi, [ebp + 0x17c]
or eax, 0xffffffff
rep stosd dword es:[edi], eax
mov al, byte [esp + 0x13]
mov edi, 0x7a5650
mov byte [esp + 0x14], al
or ecx, 0xffffffff
xor eax, eax
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebx, ecx
lea ecx, [esp + 0x18]
push ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call fcn.00401450
test al, al
je 0x4cf35a
mov edi, dword [esp + 0x18]
mov ecx, ebx
mov edx, ecx
mov esi, 0x7a5650
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00404970
xor esi, esi
mov eax, dword [ebp + 0x70]
mov dword [esp + 0x2c], esi
mov edi, dword [eax]
cmp eax, edi
je 0x4cf3ad
mov ebx, dword [edi + 8]
cmp dword [ebx + 0x78], 1
jne 0x4cf395
mov eax, dword [ebx + 0x30]
cmp eax, esi
jne 0x4cf37c
mov eax, 0x765608
mov ecx, dword [esp + 0x18]
cmp ecx, esi
jne 0x4cf389
mov ecx, 0x765608
push eax
push ecx
call dword [sym.imp.kernel32.dll_lstrcmpiA]
test eax, eax
je 0x4cf3a0
mov edi, dword [edi]
mov eax, dword [ebp + 0x70]
cmp eax, edi
jne 0x4cf367
jmp 0x4cf3ad
cmp ebx, esi
je 0x4cf3ad
mov eax, dword [ebx]
push 2
mov ecx, ebx
call dword [eax + 0x3c]
mov ecx, ebp
call fcn.004cfc90
cmp dword [ebp + 0x7c], 0x11
jne 0x4cf3c5
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0xac]
mov eax, dword [ebp]
push esi
mov ecx, ebp
call dword [eax + 0x3c]
mov ecx, ebp
call fcn.005fdf40
mov ecx, dword [0x93c990]
call fcn.005d0520
mov ecx, dword [esp + 0x18]
pop edi
cmp ecx, esi
pop esi
pop ebp
mov dword [esp + 0x20], 0xffffffff
pop ebx
je 0x4cf41d
mov al, byte [ecx - 1]
test al, al
je 0x4cf413
cmp al, 0xff
je 0x4cf413
dec al
mov byte [ecx - 1], al
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
dec ecx
push ecx
call fcn.00726ea6
add esp, 4
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x51f2d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x747404
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x1c], esi
call fcn.00401850
mov al, byte [esp + 0x13]
mov cl, byte [esp + 0x13]
xor ebx, ebx
lea edi, [esi + 0xc0]
mov dword [esp + 0x2c], ebx
push 0x28
mov dword [esp + 0x24], edi
mov byte [edi], al
mov byte [edi + 1], cl
mov byte [edi + 8], bl
call fcn.00726f70
mov ebp, eax
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], ebp
mov dword [ebp + 4], ebx
mov dword [ebp + 0x24], 1
call fcn.007376fa
mov eax, dword [0x938a0c]
mov byte [esp + 0x2c], 1
cmp eax, ebx
jne 0x51f35e
mov dword [0x938a0c], ebp
mov dword [ebp], ebx
mov edx, dword [0x938a0c]
mov dword [esp + 0x14], ebx
mov dword [edx + 8], ebx
mov edx, dword [0x938a08]
lea ecx, [esp + 0x18]
inc edx
mov dword [0x938a08], edx
mov byte [esp + 0x2c], bl
call fcn.00737796
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x51f389
push eax
call fcn.00726ea6
add esp, 4
mov ebp, dword [0x938a0c]
push 0x28
call fcn.00726f70
mov dword [eax + 4], ebp
mov dword [eax + 0x24], ebx
mov dword [edi + 4], eax
mov dword [edi + 0xc], ebx
mov dword [eax], eax
mov edi, dword [edi + 4]
mov dword [edi + 8], edi
mov al, byte [esp + 0x17]
mov byte [esp + 0x30], 3
push 0x34
mov byte [esi + 0xd0], al
call fcn.00726f70
mov dword [eax], eax
mov dword [eax + 4], eax
add esp, 8
mov dword [esi + 0xd4], eax
mov dword [esi + 0xd8], ebx
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x2c], 4
mov dword [esi], 0x768964
mov dword [esi + 0xbc], ebx
mov dword [esi + 0xdc], ebx
mov dword [esi + 0xe0], ebx
mov dword [esi + 0xe4], ebx
mov dword [esi + 0xe8], ebx
mov dword [esi + 0xec], ebx
mov dword [esi + 0xf0], ebx
mov dword [esi + 0xf4], ebx
mov dword [esi + 0xf8], ebx
mov dword [esi + 0xfc], ebx
mov eax, esi
pop edi
pop esi
mov dword [esp + 0x24], 0xffffffff
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x542540
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x749d48
push eax
mov dword fs:[0], esp
sub esp, 0x18
lea eax, [esp + 8]
push ebx
push esi
push edi
push 0x300
push 0x400
push 0x26
push 0
mov esi, ecx
push eax
call dword [sym.imp.user32.dll_SetRect]
mov eax, dword [esi + 0xf8]
test eax, eax
je 0x5425a0
add eax, 0x88
mov ecx, dword [eax]
mov dword [esp + 0x14], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x18], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x1c], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x20], edx
lea edi, [esi + 0xbc]
mov ecx, edi
call fcn.0069e590
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
mov ebx, esp
mov dword [esp + 0x30], esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x40]
mov dword [eax + 8], ecx
lea ecx, [esi + 0xfc]
mov dword [eax + 0xc], edx
lea eax, [esp + 0x2f]
push eax
call fcn.004ce310
push eax
mov ecx, ebx
call fcn.004b8bb0
mov ecx, dword [0x805a1c]
mov edx, dword [0x93cc7c]
push ecx
push edx
mov ecx, edi
mov dword [esp + 0x54], 0xffffffff
call fcn.0069e0f0
mov ecx, dword [esp + 0x24]
mov byte [esi + 0x12c], 0
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret
Function at 0x58dbc0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x74e720
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [0x93c98c]
mov edx, dword [0x76560c]
push ebx
push ebp
mov ebx, dword [eax + 0x4f0]
push esi
add eax, 0x4c8
mov esi, ecx
push edi
xor ebp, ebp
mov cl, byte [eax]
push edx
mov byte [esp + 0x20], cl
push ebp
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
call fcn.00404560
mov eax, dword [0x93c98c]
mov edi, dword [esi + 0xc0]
cmp edi, ebp
mov dword [esp + 0x44], ebp
mov ecx, dword [eax + 0x4d8]
mov dword [esp + 0x18], ecx
je 0x58dd23
cmp dword [edi + 0xd4], ebp
je 0x58dcbd
mov dl, byte [esp + 0x13]
push ebp
lea ecx, [esp + 0x30]
mov byte [esp + 0x30], dl
call fcn.00404760
cmp ebx, 0x64
mov byte [esp + 0x44], 1
ja case.0x58dc65.0
xor eax, eax
mov al, byte [ebx + 0x58de20]
jmp dword [eax*4 + 0x58de0c]
lea ecx, [esp + 0x2c]
push ecx
push 0xa9a
jmp 0x58dc8e
lea edx, [esp + 0x2c]
push edx
push 0xaa0
jmp 0x58dc8e
lea eax, [esp + 0x2c]
push eax
push 0xa9b
call fcn.006a8c20
add esp, 8
mov ecx, dword [edi + 0xd4]
cmp ecx, ebp
je 0x58dcad
mov edx, dword [ecx]
lea eax, [esp + 0x2c]
push eax
call dword [edx + 0x9c]
push 1
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 0
call fcn.00404760
mov eax, dword [esi + 0xc0]
mov ecx, dword [eax + 0xd0]
cmp ecx, ebp
je 0x58dcda
mov edx, dword [ecx]
lea eax, [esp + 0x1c]
push eax
call dword [edx + 0x9c]
mov ebx, dword [esi + 0xc0]
mov ebp, 5
lea edi, [ebx + 0xe8]
mov ecx, dword [edi]
test ecx, ecx
je 0x58dcf8
mov edx, dword [ecx]
push 0
call dword [edx + 0x44]
add edi, 4
dec ebp
jne 0x58dceb
mov eax, dword [esp + 0x18]
cmp eax, 5
jg 0x58dd1d
test eax, eax
jle 0x58dd1d
mov ecx, dword [ebx + eax*4 + 0xe4]
test ecx, ecx
je 0x58dd1d
mov eax, dword [ecx]
push 1
call dword [eax + 0x44]
mov ebx, dword [esp + 0x14]
xor ebp, ebp
mov ecx, dword [esi + 0xc8]
cmp ecx, ebp
je 0x58dd4e
push ebx
call fcn.00517440
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esi + 0xc8]
call fcn.00517420
mov ecx, dword [esi + 0xc8]
call fcn.005190f0
mov ecx, dword [esi + 0xcc]
cmp ecx, ebp
je 0x58dd79
push ebx
call fcn.00522730
mov ecx, dword [esi + 0xcc]
lea edx, [esp + 0x1c]
push edx
call fcn.005f23e0
mov ecx, dword [esi + 0xcc]
call fcn.00523410
mov ecx, dword [esi + 0xd0]
cmp ecx, ebp
je 0x58dda4
push ebx
call fcn.00524580
mov ecx, dword [esi + 0xd0]
lea eax, [esp + 0x1c]
push eax
call fcn.005f23e0
mov ecx, dword [esi + 0xd0]
call fcn.00524d60
mov ecx, dword [0x93cc28]
mov ecx, dword [ecx + 0x44]
cmp ecx, ebp
je 0x58ddb6
call fcn.00560d70
mov ecx, esi
call fcn.0058cfb0
mov ecx, dword [esp + 0x20]
pop edi
pop esi
cmp ecx, ebp
pop ebp
mov dword [esp + 0x38], 0xffffffff
pop ebx
je 0x58ddfa
mov al, byte [ecx - 1]
test al, al
je 0x58ddf0
cmp al, 0xff
je 0x58ddf0
dec al
mov byte [ecx - 1], al
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
dec ecx
push ecx
call fcn.00726ea6
add esp, 4
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x591fe9
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x74ed73
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
call fcn.00737c5c
lea ecx, [esp + 0x10]
mov dword [esi + 0x34], eax
call fcn.007376fa
mov edi, dword [0x93f128]
xor ebx, ebx
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], ebx
call fcn.007376fa
mov eax, dword [edi + 4]
mov byte [esp + 0x20], 1
cmp eax, 0xffffffff
jae 0x592028
inc eax
mov dword [edi + 4], eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], bl
call fcn.00737796
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.00737796
lea eax, [esi + 4]
lea ecx, [esi + 0x14]
lea edx, [esi + 0x18]
mov dword [esp + 0x20], 2
mov dword [esi + 0xc], eax
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], edx
lea eax, [esi + 8]
lea ecx, [esi + 0x24]
lea edx, [esi + 0x28]
mov dword [esi], 0x772e70
mov dword [esi + 0x10], eax
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x20]
push ebx
push ebx
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
push ebx
mov dword [ecx], ebx
mov ecx, esi
call fcn.00592100
mov cl, byte [esp + 0x28]
xor eax, eax
mov dword [esp + 0x20], 3
mov dword [esi], 0x76b458
test cl, 1
jne 0x5920ac
mov eax, 4
test cl, 2
jne 0x5920b3
or al, 2
mov edx, dword [esi + 0xc]
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], 0x20
mov dword [esi + 0x44], eax
mov dword [edx], ebx
mov eax, dword [esi + 0x1c]
pop edi
mov dword [eax], ebx
mov ecx, dword [esi + 0x2c]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov eax, esi
pop esi
mov dword [ecx], ebx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], 0xffffffff
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4