joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c4240
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor eax, eax
push edi
mov edi, ecx
mov ax, word [edi + 0x1e4e2]
shl ax, 2
add ax, word [edi + 0x1e4e0]
sub eax, 5
lea ecx, [eax*8]
sub ecx, eax
add cx, word [edi + 0x1e4de]
xor eax, eax
movsx ebx, cx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov eax, dword [edi + 0x1ea94]
test eax, eax
je 0x4c427c
mov ecx, dword [edi + 0x1ea98]
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp dword [ebp - 4], edx
jae 0x4c427c
mov eax, dword [ebp - 8]
mov esi, dword [edi + 0x1ea94]
mov ecx, dword [0x6812a0]
add esi, eax
mov eax, ecx
cmp eax, 8
jge 0x4c41ac
test eax, eax
jge 0x4c41ae
xor eax, eax
lea edx, [eax + eax*4]
lea eax, [eax + edx*2]
shl eax, 5
mov dl, byte [eax + edi + 0x1f9a2]
test dl, dl
jne 0x4c41cd
mov al, byte [esi + 0x2d]
test al, al
je 0x4c4264
mov dl, byte [0x6812a5]
test byte [esi + 0x2c], dl
je 0x4c4264
xor edx, edx
mov dx, word [esi + 0x2e]
cmp edx, ebx
jne 0x4c420c
movsx eax, byte [esi + 0x34]
cmp eax, 0xffffffff
jne 0x4c41f3
xor ebx, ebx
jmp 0x4c4202
mov edx, dword [edi + 0x203cc]
lea eax, [eax + eax*4]
lea eax, [eax + eax*8]
lea ebx, [edx + eax*8]
movsx eax, byte [ebx + 1]
cmp ecx, eax
jne 0x4c4264
jmp 0x4c4254
xor ecx, ecx
mov cx, word [esi + 0x30]
test cx, cx
je 0x4c4264
cmp ebx, edx
jle 0x4c4264
mov eax, ebx
sub eax, edx
and ecx, 0xffff
cdq
idiv ecx
test edx, edx
jne 0x4c4264
movsx eax, byte [esi + 0x34]
cmp eax, 0xffffffff
jne 0x4c4239
xor ebx, ebx
jmp 0x4c4248
mov edx, dword [edi + 0x203cc]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*8]
lea ebx, [edx + ecx*8]
movsx eax, byte [ebx + 1]
cmp dword [0x6812a0], eax
jne 0x4c4264
push esi
mov ecx, edi
call fcn.004c3e20
push esi
mov ecx, ebx
call fcn.005ae120
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
inc ecx
add eax, 0x50
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
jmp 0x4c4160
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4cad10
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jbe 0x4cad1d
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov edx, eax
mov eax, dword [ebp + 8]
push edi
test eax, eax
je 0x4cad14
mov ecx, 0x17
mov esi, ebx
mov edi, eax
rep movsd dword es:[edi], dword [esi]
add eax, 0x5c
dec edx
jne 0x4cad05
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4dfc30
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [edi], 0
mov dword [edi + 4], 0
mov eax, dword [ecx]
mov esi, dword [eax*8 + 0x652ea0]
mov ebx, dword [eax*8 + 0x652ea4]
or dword [edi], esi
or dword [edi + 4], ebx
add ecx, 4
mov dword [edx + eax*8], 0
mov dword [edx + eax*8 + 4], 0
mov esi, dword [ecx]
test esi, esi
jl 0x4dfc3d
mov edi, dword [esi*8 + 0x652ea0]
mov ebx, dword [esi*8 + 0x652ea4]
or dword [edx + eax*8], edi
or dword [edx + eax*8 + 4], ebx
mov edi, dword [edx + esi*8]
mov ebx, dword [edx + eax*8]
mov esi, dword [edx + esi*8 + 4]
or ebx, edi
mov dword [edx + eax*8], ebx
mov ebx, dword [edx + eax*8 + 4]
or ebx, esi
add ecx, 4
mov dword [edx + eax*8 + 4], ebx
mov esi, dword [ecx]
test esi, esi
jge 0x4dfc03
mov edi, dword [ebp + 8]
mov eax, dword [ecx + 4]
add ecx, 4
test eax, eax
jge 0x4dfbd6
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4e03f0
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, ecx
call fcn.0044b9c0
lea eax, [esi + 0x38]
mov edx, 0x40
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
add eax, 0x20
dec edx
jne 0x4e03b2
mov eax, 1
mov dword [esi + 0x94c], eax
mov dword [esi + 0x950], eax
mov dword [esi], 0x62b4ac
mov dword [esi + 0x34], ecx
mov dword [esi + 0x840], ecx
mov dword [esi + 0x948], ecx
mov dword [esi + 0x844], ecx
mov dword [esi + 0x958], 0xffffffff
mov dword [esi + 0x95c], ecx
mov eax, esi
pop esi
ret
Function at 0x4ebfd0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [sym.imp.winmm.dll_timeGetTime]
push esi
push edi
mov esi, ecx
call ebx
mov edi, eax
add edi, esi
mov dword [ebp - 4], edi
call ebx
sub eax, edi
jns 0x4ebfe9
mov esi, dword [sym.imp.user32.dll_TranslateMessage]
mov edi, dword [sym.imp.user32.dll_DispatchMessageA]
xor ebx, ebx
mov byte [0x67dbc8], 1
push 1
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.user32.dll_PeekMessageA]
test eax, eax
je 0x4ebf7a
lea ecx, [ebp - 0x20]
push ecx
call esi
lea edx, [ebp - 0x20]
push edx
call edi
jmp 0x4ebf59
mov eax, dword [0x67dc30]
push eax
call dword [sym.imp.user32.dll_IsIconic]
test eax, eax
je 0x4ebfca
cmp dword [0x67db7c], ebx
jne 0x4ebfca
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.user32.dll_GetMessageA]
test eax, eax
je 0x4ebfaf
lea edx, [ebp - 0x20]
push edx
call esi
lea eax, [ebp - 0x20]
push eax
call edi
mov ecx, dword [0x67dc30]
push ecx
call dword [sym.imp.user32.dll_IsIconic]
test eax, eax
je 0x4ebf59
cmp dword [0x67db7c], ebx
je 0x4ebf92
jmp 0x4ebf59
call fcn.005865b0
mov byte [0x67dbc8], bl
call fcn.004e1240
call dword [sym.imp.winmm.dll_timeGetTime]
sub eax, dword [ebp - 4]
js 0x4ebf52
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, ecx
test byte [eax + 0xd], 0x10
push esi
push edi
jne 0x4f0469
mov edx, dword [eax + 0x1e]
test edx, edx
je 0x4f0467
cmp edx, 3
je 0x4f0467
cmp edx, 0x1a
je 0x4f0467
cmp edx, 0x24
je 0x4f0467
mov di, word [eax + 0x24]
test di, di
jl 0x4f0467
mov esi, dword [0x67db18]
mov eax, dword [esi + 0x1ea14]
test eax, eax
jne 0x4f039b
xor edx, edx
jmp 0x4f03b3
mov ecx, dword [esi + 0x1ea18]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, di
cmp eax, edx
jae 0x4f0467
mov edx, dword [esi + 0x1ea14]
lea ecx, [eax + eax*2]
lea esi, [edx + ecx*4]
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
mov ecx, esi
call fcn.004f23f0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 6]
xor edx, ecx
mov ecx, dword [ebp - 0xc]
and edx, 0x3ff
xor word [ebp - 8], dx
mov dl, byte [esi + 6]
and ecx, 0x3ff
and eax, 0xffffc000
xor eax, ecx
xor cx, cx
and dl, 0xf
mov cl, dl
shl ecx, 0xa
or eax, ecx
mov word [ebp - 6], ax
mov ecx, dword [ebp - 8]
shl ecx, 6
test cx, cx
jl 0x4f0467
mov edx, dword [ebp - 6]
mov edi, dword [0x67db18]
mov esi, dword [edi + 0x1ead4]
lea eax, [edx*4]
movsx eax, ax
sar eax, 0xc
imul eax, esi
shl edx, 6
movsx edx, dx
sar edx, 6
add eax, edx
imul eax, esi
movsx ecx, cx
sar ecx, 6
add eax, ecx
mov ecx, dword [edi + 0x1ead0]
lea edx, [eax + eax*8]
lea eax, [eax + edx*2]
pop edi
lea eax, [ecx + eax*2]
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4f0550
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag

Disassembly:
mov eax, dword [ecx + 0x1e]
cmp eax, 0x22
jne 0x4f055f
mov ecx, dword [ecx]
cmp ecx, 0xffffffff
jne 0x4f0543
xor eax, eax
jmp 0x4f0578
mov edx, dword [0x67db18]
lea eax, [ecx + ecx*2]
shl eax, 6
sub eax, ecx
lea eax, [eax + eax*2]
add edx, ecx
lea eax, [edx + eax*2 + 0x203d8]
jmp 0x4f0578
cmp eax, 8
jne 0x4f058f
mov eax, dword [ecx]
mov ecx, dword [0x67db18]
mov edx, dword [ecx + 0x4c0e0]
lea eax, [eax + eax*4]
lea eax, [edx + eax*8]
mov cl, byte [eax + 6]
test cl, cl
je 0x4f058c
mov cl, byte [eax + 0x10]
test cl, cl
je 0x4f058c
mov eax, 1
ret
xor eax, eax
ret
xor eax, eax
mov ax, word [ecx + 0xc]
shr eax, 0xc
and al, 1
ret
Function at 0x4fe4c0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [0x67cb4c]
mov eax, dword [0x67cb60]
mov ecx, 1
and edx, ecx
mov dword [0x67cb4c], edx
mov edx, dword [0x67cb58]
and eax, ecx
and edx, ecx
and eax, ecx
push esi
mov esi, dword [0x67cb54]
push edi
mov edi, dword [0x67cb50]
mov dword [0x67cb58], edx
mov edx, dword [0x67cb94]
mov dword [0x67cb60], eax
mov eax, dword [0x67cb98]
and edi, ecx
and edx, ecx
and eax, ecx
mov dword [0x67cb50], edi
mov edi, dword [0x67cb5c]
mov dword [0x67cb94], edx
mov edx, dword [0x67cb70]
mov dword [0x67cb98], eax
mov eax, dword [0x67cb74]
and esi, ecx
and edi, ecx
and edx, ecx
and eax, ecx
mov dword [0x67cb54], esi
mov esi, dword [0x67cb6c]
mov dword [0x67cb5c], edi
mov edi, dword [0x67cb9c]
mov dword [0x67cb70], edx
mov edx, dword [0x67cb48]
mov dword [0x67cb74], eax
mov eax, dword [0x67cb68]
and edi, ecx
and esi, ecx
and edx, ecx
and eax, ecx
mov dword [0x67cb9c], edi
mov edi, dword [0x67cb78]
mov dword [0x67cb6c], esi
mov esi, dword [0x67cb7c]
mov dword [0x67cb48], edx
xor edx, edx
nop
nop
nop
nop
mov dword [0x67cb68], eax
mov al, byte [0x67cbbf]
and edi, ecx
and esi, ecx
and edx, ecx
and al, cl
mov dword [0x67cb78], edi
mov edi, dword [0x67cb84]
mov dword [0x67cb7c], esi
mov esi, dword [0x67cb90]
mov dword [0x67db54], edx
mov byte [0x67cbbf], al
mov eax, dword [0x67cba0]
and edi, ecx
and esi, ecx
xor edx, edx
cmp eax, edx
mov dword [0x67cb84], edi
mov dword [0x67cb90], esi
jl 0x4fe4f7
cmp eax, 2
jle 0x4fe4fd
mov dword [0x67cba0], edx
mov eax, dword [0x67cbc4]
cmp eax, edx
jl 0x4fe50b
cmp eax, 2
jle 0x4fe511
mov dword [0x67cbc4], edx
mov eax, dword [0x67cb64]
cmp eax, edx
jl 0x4fe51f
cmp eax, 2
jle 0x4fe525
mov dword [0x67cb64], ecx
mov eax, dword [0x67cb30]
cmp eax, 2
jl 0x4fe534
cmp eax, 5
jle 0x4fe53e
mov dword [0x67cb30], 3
mov eax, dword [0x67cb34]
cmp eax, edx
jle 0x4fe54c
cmp eax, 4
jle 0x4fe556
mov dword [0x67cb34], 2
mov ecx, dword [0x67cb38]
cmp ecx, edx
jl 0x4fe565
cmp ecx, 9
jle 0x4fe570
mov ecx, 5
mov dword [0x67cb38], ecx
mov eax, dword [0x67cb3c]
cmp eax, edx
jl 0x4fe57e
cmp eax, 9
jle 0x4fe588
mov eax, 5
mov dword [0x67cb3c], eax
mov dword [0x67cb40], ecx
or ecx, 0xffffffff
mov dword [0x67cb44], eax
xor eax, eax
mov edi, 0x67cbc0
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 3
jae 0x4fe639
mov dword [0x67cbc0], edx
call fcn.006053cc
cdq
mov ecx, 0xf423f
idiv ecx
mov edi, edx
inc edi
call sub.winmm.dll_timeGetTime
mov esi, eax
add esi, edi
mov eax, esi
cdq
mov ecx, 0x24
idiv ecx
mov dl, byte [edx + 0x6658b8]
mov byte [0x67cbc2], dl
call fcn.006053cc
cdq
mov ecx, 0xf423f
idiv ecx
mov edi, edx
inc edi
call sub.winmm.dll_timeGetTime
add eax, edi
add esi, eax
mov eax, esi
cdq
mov ecx, 0x24
idiv ecx
mov dl, byte [edx + 0x6658b8]
mov byte [0x67cbc1], dl
call fcn.006053cc
cdq
mov ecx, 0xf423f
idiv ecx
mov edi, edx
inc edi
call sub.winmm.dll_timeGetTime
add eax, edi
add eax, esi
cdq
mov ecx, 0x1a
idiv ecx
add dl, 0x41
mov byte [0x67cbc0], dl
pop edi
pop esi
ret
Function at 0x4fe520
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edx, dword [0x67cb4c]
mov eax, dword [0x67cb60]
mov ecx, 1
and edx, ecx
mov dword [0x67cb4c], edx
mov edx, dword [0x67cb58]
and eax, ecx
and edx, ecx
and eax, ecx
push esi
mov esi, dword [0x67cb54]
push edi
mov edi, dword [0x67cb50]
mov dword [0x67cb58], edx
mov edx, dword [0x67cb94]
mov dword [0x67cb60], eax
mov eax, dword [0x67cb98]
and edi, ecx
and edx, ecx
and eax, ecx
mov dword [0x67cb50], edi
mov edi, dword [0x67cb5c]
mov dword [0x67cb94], edx
mov edx, dword [0x67cb70]
mov dword [0x67cb98], eax
mov eax, dword [0x67cb74]
and esi, ecx
and edi, ecx
and edx, ecx
and eax, ecx
mov dword [0x67cb54], esi
mov esi, dword [0x67cb6c]
mov dword [0x67cb5c], edi
mov edi, dword [0x67cb9c]
mov dword [0x67cb70], edx
mov edx, dword [0x67cb48]
mov dword [0x67cb74], eax
mov eax, dword [0x67cb68]
and edi, ecx
and esi, ecx
and edx, ecx
and eax, ecx
mov dword [0x67cb9c], edi
mov edi, dword [0x67cb78]
mov dword [0x67cb6c], esi
mov esi, dword [0x67cb7c]
mov dword [0x67cb48], edx
xor edx, edx
nop
nop
nop
nop
mov dword [0x67cb68], eax
mov al, byte [0x67cbbf]
and edi, ecx
and esi, ecx
and edx, ecx
and al, cl
mov dword [0x67cb78], edi
mov edi, dword [0x67cb84]
mov dword [0x67cb7c], esi
mov esi, dword [0x67cb90]
mov dword [0x67db54], edx
mov byte [0x67cbbf], al
mov eax, dword [0x67cba0]
and edi, ecx
and esi, ecx
xor edx, edx
cmp eax, edx
mov dword [0x67cb84], edi
mov dword [0x67cb90], esi
jl 0x4fe4f7
cmp eax, 2
jle 0x4fe4fd
mov dword [0x67cba0], edx
mov eax, dword [0x67cbc4]
cmp eax, edx
jl 0x4fe50b
cmp eax, 2
jle 0x4fe511
mov dword [0x67cbc4], edx
mov eax, dword [0x67cb64]
cmp eax, edx
jl 0x4fe51f
cmp eax, 2
jle 0x4fe525
mov dword [0x67cb64], ecx
mov eax, dword [0x67cb30]
cmp eax, 2
jl 0x4fe534
cmp eax, 5
jle 0x4fe53e
mov dword [0x67cb30], 3
mov eax, dword [0x67cb34]
cmp eax, edx
jle 0x4fe54c
cmp eax, 4
jle 0x4fe556
mov dword [0x67cb34], 2
mov ecx, dword [0x67cb38]
cmp ecx, edx
jl 0x4fe565
cmp ecx, 9
jle 0x4fe570
mov ecx, 5
mov dword [0x67cb38], ecx
mov eax, dword [0x67cb3c]
cmp eax, edx
jl 0x4fe57e
cmp eax, 9
jle 0x4fe588
mov eax, 5
mov dword [0x67cb3c], eax
mov dword [0x67cb40], ecx
or ecx, 0xffffffff
mov dword [0x67cb44], eax
xor eax, eax
mov edi, 0x67cbc0
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 3
jae 0x4fe639
mov dword [0x67cbc0], edx
call fcn.006053cc
cdq
mov ecx, 0xf423f
idiv ecx
mov edi, edx
inc edi
call sub.winmm.dll_timeGetTime
mov esi, eax
add esi, edi
mov eax, esi
cdq
mov ecx, 0x24
idiv ecx
mov dl, byte [edx + 0x6658b8]
mov byte [0x67cbc2], dl
call fcn.006053cc
cdq
mov ecx, 0xf423f
idiv ecx
mov edi, edx
inc edi
call sub.winmm.dll_timeGetTime
add eax, edi
add esi, eax
mov eax, esi
cdq
mov ecx, 0x24
idiv ecx
mov dl, byte [edx + 0x6658b8]
mov byte [0x67cbc1], dl
call fcn.006053cc
cdq
mov ecx, 0xf423f
idiv ecx
mov edi, edx
inc edi
call sub.winmm.dll_timeGetTime
add eax, edi
add eax, esi
cdq
mov ecx, 0x1a
idiv ecx
add dl, 0x41
mov byte [0x67cbc0], dl
pop edi
pop esi
ret
Function at 0x502230
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0xc0]
xor ebx, ebx
push 6
push 5
mov byte [esi + 0x50], bl
mov byte [esi + 0x51], 1
mov dword [esi + 0x60], ebx
mov byte [esi + 0xbc], bl
call fcn.005ec0d0
mov ecx, dword [esi + 0xc4]
cmp ecx, ebx
je 0x502148
push 6
push 5
call fcn.005ec0d0
mov ecx, dword [esi + 0xc8]
push 6
push 5
call fcn.005ec0d0
mov ecx, dword [esi + 0xcc]
push 6
push 5
call fcn.005ec0d0
mov ecx, dword [esi + 0xd0]
push 6
push 5
call fcn.005ec0d0
mov ecx, dword [esi + 0xd4]
push 6
push 5
call fcn.005ec0d0
mov ecx, dword [esi + 0xdc]
cmp ecx, ebx
je 0x502197
push 6
push 6
call fcn.005ec0d0
mov ecx, dword [esi + 0xe0]
push 6
push 6
call fcn.005ec0d0
mov ecx, dword [esi + 0xe4]
push 6
push 6
call fcn.005ec0d0
mov ecx, dword [esi + 0xd8]
push 6
push 5
call fcn.005ec0d0
mov ecx, dword [esi + 0xf4]
push 6
push 6
call fcn.005ec0d0
mov ecx, dword [esi + 0xf0]
push 6
push 6
call fcn.005ec0d0
push 0x7e
mov ecx, esi
call fcn.005ec8f0
cmp eax, ebx
je 0x5021fa
push 6
push 6
mov ecx, eax
call fcn.005ec0d0
mov esi, dword [esi + 0x5c]
mov eax, dword [esi + 0x10]
push edi
xor edi, edi
cmp eax, ebx
jbe 0x502220
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 8]
push eax
call fcn.005f8040
mov eax, dword [esi + 0x10]
add esp, 4
inc edi
cmp edi, eax
jb 0x502207
mov eax, dword [esi + 8]
cmp eax, ebx
pop edi
je 0x502231
push eax
call fcn.005f8040
add esp, 4
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
pop esi
pop ebx
ret
Function at 0x502d90
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, ecx
mov ecx, 4
mov dword [0x67d050], ecx
mov eax, dword [esi + 0xb8]
add eax, 0x2c
mov eax, dword [eax + 4]
test eax, eax
push edi
jne 0x502daa
mov eax, 0x6264b0
mov edx, eax
call fcn.00545ea0
test al, al
je 0x502e8f
xor edx, edx
xor ecx, ecx
call fcn.00547170
test al, al
je 0x502e8f
mov ecx, dword [0x681d68]
mov eax, dword [ecx]
push 1
lea edx, [ebp - 0x28]
push edx
call dword [eax + 0x9c]
mov eax, dword [ebp - 4]
add eax, 0x64
mov dword [esi + 0x64], eax
cmp dword [0x67d050], 2
jne 0x502df7
mov dword [esi + 0x64], 0x3e8
mov edi, dword [sym.imp.user32.dll_ShowCursor]
push 1
mov dword [0x67d8c8], 1
mov dword [0x67d8c4], 1
call edi
mov ecx, dword [0x68ba40]
mov edx, dword [ecx + 0x20]
mov eax, dword [edx + 0x70c]
push 0
push eax
mov ecx, esi
call fcn.00502bf0
test al, al
push 0
jne 0x502ec4
call edi
mov eax, dword [0x681d68]
cmp dword [eax + 0x40], 0x88770118
je 0x502e75
mov ecx, dword [0x68ba40]
mov eax, dword [ecx + 0x20]
mov ecx, dword [eax + 0x710]
push 0
push 0xffffffffffffffff
push 0
push 0xffffffffffffffff
push 0
push 0xffffffffffffffff
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
mov edx, 1
call fcn.004ea100
mov ecx, dword [0x67d8ac]
mov dword [ecx + 0x38], 0x7801
call fcn.00545f20
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x68ba40]
mov eax, dword [ecx + 0x20]
mov ecx, dword [eax + 0x708]
push 0
push 0xffffffffffffffff
push 0
push 0xffffffffffffffff
push 0
push 0xffffffffffffffff
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
mov edx, 1
call fcn.004ea100
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
call edi
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5211c0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61bbcb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
mov ecx, dword [0x67d8a8]
push esi
push esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
call fcn.004ffe00
push 0x70
call fcn.00604401
add esp, 4
mov dword [ebp - 0x1c], eax
cmp eax, esi
mov dword [ebp - 4], esi
je 0x521037
mov ecx, eax
call fcn.00520460
jmp 0x521039
xor eax, eax
cmp eax, esi
mov dword [ebp - 4], 0xffffffff
mov dword [0x681310], eax
jne 0x52104e
call fcn.004e7fe0
mov edi, dword [0x67db18]
mov eax, dword [edi + 0x1ea64]
cmp eax, esi
jne 0x521063
mov dword [ebp - 0x14], esi
jmp 0x52107f
mov ecx, dword [edi + 0x1ea68]
sub ecx, eax
mov eax, 0x6bca1af3
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
xor edx, edx
cmp eax, esi
mov dword [ebp - 0x10], edx
jle 0x5210db
mov cl, byte [ebp - 0x18]
mov ebx, 1
shl ebx, cl
mov eax, dword [edi + 0x1ea64]
lea ecx, [edx + edx*8]
lea ecx, [edx + ecx*2]
add eax, ecx
test byte [eax + 4], bl
je 0x5210cd
cmp dword [eax], esi
je 0x5210cd
mov edx, dword [0x681310]
lea eax, [ebp - 0x10]
lea ecx, [edx + 0x5c]
mov edx, dword [ecx + 8]
push eax
push 1
push edx
call fcn.004f9e20
mov edx, dword [ebp - 0x10]
mov edi, dword [0x67db18]
mov eax, dword [ebp - 0x14]
inc edx
cmp edx, eax
mov dword [ebp - 0x10], edx
jl 0x521095
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x10], esi
mov eax, dword [edi + 0x1ea74]
test eax, eax
je 0x52114f
mov ecx, dword [edi + 0x1ea78]
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp esi, edx
jae 0x52114f
mov eax, dword [edi + 0x1ea74]
lea ecx, [esi + esi*4]
add eax, ecx
mov cl, bl
mov edx, 1
shl edx, cl
mov cl, byte [eax + 4]
test cl, dl
je 0x52114c
cmp dword [eax], 0
je 0x52114c
mov edx, dword [ebp - 0x14]
mov eax, dword [0x681310]
add esi, edx
lea edx, [ebp - 0x1c]
lea ecx, [eax + 0x5c]
push edx
mov dword [ebp - 0x1c], esi
mov eax, dword [ecx + 8]
push 1
push eax
call fcn.004f9e20
mov esi, dword [ebp - 0x10]
mov edi, dword [0x67db18]
inc esi
jmp 0x5210db
mov edx, dword [0x681310]
mov dword [ebp - 0x3c], 0x200
mov dword [ebp - 0x38], 0x32
mov dword [ebp - 0x34], 0x11
mov ecx, dword [edx + 0x60]
test ecx, ecx
jne 0x521175
xor eax, eax
jmp 0x52117d
mov eax, dword [edx + 0x64]
sub eax, ecx
sar eax, 2
lea ecx, [ebp - 0x3c]
add eax, 0xfffffff1
push ecx
mov ecx, edx
mov dword [ebp - 0x24], eax
call fcn.005ec6e0
mov edi, dword [0x681310]
xor esi, esi
push esi
mov ecx, edi
call fcn.00520e10
inc esi
cmp esi, 0x10
jl 0x521196
mov ecx, dword [0x681310]
mov edx, dword [ecx]
push 0
call dword [edx + 0x18]
mov ecx, dword [0x681310]
test ecx, ecx
pop edi
pop esi
pop ebx
je 0x5211c4
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x522420
Capabilities:
Get number of processors

Disassembly:
mov dword [ecx], 0x62bcf0
jmp fcn.0048a920
Function at 0x556d80
Capabilities:
Get number of processors

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
push eax
mov dword [esi], 0x62cbdc
call fcn.005f8040
xor eax, eax
add esp, 4
mov ecx, esi
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x2c], eax
call fcn.0054a040
pop esi
ret
Function at 0x588b30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x67d8d4]
test eax, eax
push ebx
push esi
push edi
mov esi, ecx
jne 0x588bf3
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x588bf3
mov eax, dword [esi + 0x84]
test eax, eax
jne 0x588b47
mov al, byte [0x676079]
test al, al
je 0x588bf3
mov ebx, dword [sym.imp.kernel32.dll_EnterCriticalSection]
xor eax, eax
mov ecx, 0xe
mov edi, 0x686d34
rep stosd dword es:[edi], eax
lea eax, [esi + 0x90]
push eax
call ebx
mov eax, dword [esi + 0x7c]
xor edi, edi
test eax, eax
jle 0x588b8a
lea ebx, [esi + 0x44]
mov eax, dword [ebx]
push eax
call dword [sym.imp.mss32.dll__AIL_end_sample_4]
mov eax, dword [esi + 0x7c]
inc edi
add ebx, 4
cmp edi, eax
jl 0x588b70
mov ebx, dword [sym.imp.kernel32.dll_EnterCriticalSection]
lea edi, [esi + 0x90]
push edi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 8]
test eax, eax
je 0x588bf3
add esi, 0xa8
push esi
call ebx
push edi
call ebx
mov eax, dword [0x686ce8]
test eax, eax
je 0x588be7
push eax
call dword [sym.imp.mss32.dll__AIL_stream_status_4]
cmp eax, 4
jne 0x588be7
call dword [sym.imp.mss32.dll__AIL_serve_0]
push 5
call dword [sym.imp.kernel32.dll_Sleep]
mov al, byte [0x67dc38]
test al, al
jne 0x588be7
push 0
push 0
push 0x5891b0
call fcn.0060750c
add esp, 0xc
push edi
mov edi, dword [sym.imp.kernel32.dll_LeaveCriticalSection]
call edi
push esi
call edi
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x588f10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x67d8d4]
test eax, eax
push edi
mov edi, ecx
jne 0x588f29
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x588f29
mov eax, dword [edi + 0x84]
test eax, eax
jne 0x588e78
mov al, byte [0x676079]
test al, al
je 0x588f29
mov ecx, dword [edi + 0x7c]
mov eax, 1
cmp ecx, eax
mov dword [ebp - 0xc], eax
jle 0x588f29
push ebx
lea eax, [edi + 0x48]
push esi
mov dword [ebp - 8], 0x686cee
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [0x67cb3c]
test eax, eax
mov esi, dword [ecx]
mov dword [ebp - 0x10], esi
je 0x588ef7
mov eax, dword [0x67d8d4]
test eax, eax
jne 0x588f03
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x588f03
test esi, esi
je 0x588f03
lea ebx, [edi + 0x90]
push ebx
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
push esi
call dword [sym.imp.mss32.dll__AIL_sample_status_4]
mov esi, eax
sub esi, 4
neg esi
sbb esi, esi
push ebx
inc esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
test esi, esi
je 0x588f03
mov edx, dword [ebp - 8]
movsx eax, word [edx]
mov ecx, dword [ebp - 0x10]
push eax
push 0x64
push ecx
jmp 0x588efc
push 0
push 1
push esi
mov ecx, edi
call fcn.00588cc0
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, dword [edi + 0x7c]
inc eax
add esi, 4
add edx, 2
cmp eax, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], esi
mov dword [ebp - 8], edx
jl 0x588e9a
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret