joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b8370
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov eax, dword [esp + 0xc]
movd xmm0, dword [esp + 0x10]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 4]
pshufd xmm4, xmm0, 0
movd xmm0, eax
cwde
push esi
lea esi, [ecx + edx]
pinsrw xmm0, eax, 4
pshufhw xmm2, xmm0, 0
pxor xmm2, xmm4
aesenc xmm2, xmm2
cmp edx, 0x10
jae 0x4b83f3
test edx, edx
je 0x4b83ed
test ecx, 0x800
jne 0x4b83c7
movups xmm0, xmmword [ecx]
mov eax, 0x62a18f
sub eax, edx
movups xmm1, xmmword [eax]
pand xmm1, xmm0
jmp 0x4b83da
movups xmm1, xmmword [esi - 0x10]
mov eax, 0x62a1af
sub eax, edx
movups xmm0, xmmword [eax]
pshufb xmm1, xmm0
pxor xmm2, xmm1
aesenc xmm2, xmm2
aesenc xmm2, xmm2
aesenc xmm2, xmm2
movd eax, xmm2
pop esi
ret
cmp edx, 0x20
ja 0x4b844a
lea eax, [ecx + 0x10]
movaps xmm3, xmm2
aesenc xmm3, xmm4
cmp eax, esi
jae 0x4b8422
movups xmm0, xmmword [esi - 0x10]
movups xmm1, xmmword [ecx]
pxor xmm3, xmm0
aesenc xmm3, xmm3
pxor xmm1, xmm2
aesenc xmm3, xmm3
jmp 0x4b8436
movaps xmm1, xmm2
cmp ecx, esi
je 0x4b8440
movups xmm1, xmmword [esi - 0x10]
pxor xmm1, xmm2
aesenc xmm1, xmm1
aesenc xmm1, xmm1
aesenc xmm1, xmm1
pxor xmm1, xmm3
movd eax, xmm1
pop esi
ret
movaps xmm1, xmm2
aesenc xmm1, xmm4
vmovdqu xmm0, xmm2
vinsertf128 ymm0, ymm0, xmm1, 1
pop esi
jmp fcn.004b8470

Function at 0x4b8510
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffe0
sub esp, 0x40
movq xmm0, qword [0x72e620]
movq qword [esp + 0x18], xmm0
mov ecx, dword [esp + 0x18]
and ecx, 0x8000000
or ecx, 0
je 0x4b862b
movq xmm0, xmm0
movq qword [esp + 0x18], xmm0
mov ecx, dword [esp + 0x18]
and ecx, 0x400000
or ecx, 0
je 0x4b8613
mov eax, dword [ebp + 0x10]
movd xmm0, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
pshufd xmm2, xmm0, 0
movd xmm0, eax
cwde
pinsrw xmm0, eax, 4
pshufhw xmm0, xmm0, 0
pxor xmm0, xmm2
aesenc xmm0, xmm0
movaps xmm1, xmm0
aesenc xmm1, xmm2
cmp edx, 0x20
ja 0x4b8601
vinsertf128 ymm1, ymm0, xmm1, 1
test edx, edx
je 0x4b85f6
mov ecx, dword [ebp + 8]
or eax, 0xffffffff
bzhi eax, eax, edx
kmovd k1, eax
vmovdqu8 ymm0 {k1} {z}, ymmword [ecx]
vmovdqu ymmword [esp + 0x20], ymm0
cmp edx, 0x10
jb 0x4b85d9
vpxor ymm0, ymm0, ymm1
vaesenc ymm0, ymm0, ymm0
vaesenc ymm1, ymm0, ymm0
vextracti128 xmm0, ymm1, 1
vpxor xmm1, xmm1, xmm0
vmovd eax, xmm1
vzeroupper
mov esp, ebp
pop ebp
ret
vmovaps xmm0, xmmword [esp + 0x20]
vpxor xmm0, xmm0, xmm1
vaesenc xmm0, xmm0, xmm0
vaesenc xmm0, xmm0, xmm0
vaesenc xmm0, xmm0, xmm0
vmovaps xmm1, xmm0
vmovd eax, xmm1
vzeroupper
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
vinsertf128 ymm0, ymm0, xmm1, 1
call fcn.004b8470
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004b8370
add esp, 0x10
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004b81f0
add esp, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x4b8780
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, ebx
push edi
and esi, 0xfffffffc
mov edi, ebx
xor edi, dword [esp + 0x18]
add esi, eax
cmp eax, esi
je 0x4b87c2
nop dword [eax]
imul edx, dword [eax], 0x5bd1e995
add eax, 4
imul edi, edi, 0x5bd1e995
mov ecx, edx
shr ecx, 0x18
xor ecx, edx
imul edx, ecx, 0x5bd1e995
xor edi, edx
cmp eax, esi
jne 0x4b87a0
and ebx, 3
je 0x4b87e5
add esi, ebx
xor edx, edx
cmp eax, esi
je 0x4b87dd
nop
movzx ecx, byte [eax]
inc eax
shl edx, 8
or edx, ecx
cmp eax, esi
jne 0x4b87d0
xor edx, edi
imul edi, edx, 0x5bd1e995
mov eax, edi
shr eax, 0xd
xor eax, edi
imul ecx, eax, 0x5bd1e995
pop edi
pop esi
pop ebx
mov eax, ecx
shr eax, 0xf
xor eax, ecx
ret

Function at 0x4b88d0
Capabilities:
Encode data using add xor sub operations

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
test edx, edx
je 0x4b8902
movzx ecx, word [esi]
lea esi, [esi + 2]
shl eax, 4
add ecx, eax
mov eax, ecx
shr eax, 0x17
and eax, 0x1e0
xor eax, ecx
and eax, 0xfffffff
sub edx, 1
jne 0x4b88e1
pop esi
ret

Function at 0x4b8910
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov edx, dword [esp + 0x18]
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x18]
mov eax, ebp
and eax, 0xfffffffc
mov ecx, ebp
add eax, ebx
shl ebp, 0x18
push esi
mov esi, dword [esp + 0x20]
and ecx, 3
mov dword [esp + 0xc], eax
mov eax, edx
push edi
mov edi, esi
mov dword [esp + 0x20], ebp
xor eax, 0x74656462
xor edi, 0x6c796765
xor edx, 0x646f7261
xor esi, 0x736f6d65
cmp ebx, dword [esp + 0x10]
je 0x4b8994
mov ebp, dword [esp + 0x10]
xor eax, dword [ebx]
add esi, edx
add edi, eax
rol edx, 7
xor edx, esi
rol eax, 8
xor eax, edi
rol esi, 0x10
add esi, eax
add edi, edx
rol eax, 0xb
xor eax, esi
rol edx, 9
xor esi, dword [ebx]
xor edx, edi
add ebx, 4
rol edi, 0x10
cmp ebx, ebp
jne 0x4b8963
mov ebp, dword [esp + 0x20]
sub ecx, 1
je 0x4b89b5
sub ecx, 1
je 0x4b89ac
sub ecx, 1
jne 0x4b89ba
movzx ecx, byte [ebx + 2]
shl ecx, 0x10
or ebp, ecx
movzx ecx, byte [ebx + 1]
shl ecx, 8
or ebp, ecx
movzx ecx, byte [ebx]
or ebp, ecx
add esi, edx
xor eax, ebp
add edi, eax
rol edx, 7
xor edx, esi
rol eax, 8
xor eax, edi
rol esi, 0x10
add edi, edx
add esi, eax
rol eax, 0xb
xor eax, esi
rol edx, 9
xor edx, edi
xor esi, ebp
add esi, edx
rol edi, 0x10
xor edi, 0xff
rol edx, 7
add edi, eax
xor edx, esi
rol eax, 8
xor eax, edi
rol esi, 0x10
add edi, edx
add esi, eax
rol eax, 0xb
xor eax, esi
rol edx, 9
xor edx, edi
rol edi, 0x10
add edi, eax
add esi, edx
rol eax, 8
rol edx, 7
xor eax, edi
xor edx, esi
rol eax, 0xb
add edi, edx
rol edx, 9
mov ecx, edi
rol ecx, 0x10
xor eax, ecx
xor eax, edx
xor eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x4b8a40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bf58c
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x72b01c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebx], 0
push 8
mov dword [ebp - 4], 0
call fcn.0059506c
add esp, 4
mov dword [ebp - 0x14], eax
push 0
push dword [ebp + 8]
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.004fa950
mov edi, eax
mov byte [ebp - 4], 0
push 1
mov ecx, edi
call fcn.00485840
mov ecx, dword [edi]
push dword [ebp + 0xc]
mov esi, dword [ecx + 0x30]
mov ecx, esi
call dword [0x5cb3f0]
mov ecx, edi
call esi
mov dword [ebx + 4], edi
mov eax, ebx
mov word [ebx + 8], 1
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0x14
mov dword [ebx + 0x14], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4c5f60
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
add ecx, 4
push edi
mov dword [esi], eax
mov dword [esi + 4], 0
mov dword [esi + 8], ecx
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov eax, dword [ecx]
mov dword [esi + 4], eax
mov eax, dword fs:[0x2c]
mov dword [ecx], esi
mov ecx, dword [0x72f0ac]
mov edi, dword [eax + ecx*4]
cmp byte [edi + 0x30], 0
jne 0x4c5fad
call fcn.00595db4
lea ecx, [edi + 0x18]
mov dword [esi + 0xc], ecx
mov eax, dword [ecx]
mov dword [esi + 0x10], eax
mov eax, esi
pop edi
mov dword [ecx], 0
pop esi
ret 8
Function at 0x4ce360
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c0a64
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x72b01c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
test eax, eax
jne 0x4ce45e
push 0x64
call fcn.0059506c
mov dword [ebp - 0x10], eax
add esp, 4
mov dword [eax], 1
mov dword [eax + 4], 0xffffffff
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov dword [eax + 0x30], 0
mov dword [eax + 0x34], 0
mov dword [eax + 0x38], 0
mov dword [eax + 0x3c], 0
mov dword [eax + 0x40], 0
mov dword [eax + 0x44], 0
mov dword [eax + 0x48], 0
mov dword [eax + 0x4c], 0
mov dword [eax + 0x50], 0
mov dword [eax + 0x54], 0
mov dword [eax + 0x58], 0
mov dword [eax + 0x5c], 0
mov word [eax + 0x60], 0
mov dword [edi], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [eax]
cmp eax, 1
je 0x4ce4a8
mov esi, dword [edi]
push 0x64
call fcn.0059506c
add esp, 4
mov dword [ebp - 0x10], eax
push dword [edi]
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.004cd370
mov dword [edi], eax
or eax, 0xffffffff
lock xadd dword [esi], eax
cmp eax, 1
jne 0x4ce4a8
test esi, esi
je 0x4ce4a8
mov ecx, esi
call fcn.004cd4e0
push 0x64
push esi
call fcn.00594d5b
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4e1990
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c201e
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x72b01c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
mov edi, dword [ebp + 8]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
push 0
push 0x4000
push esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], 0
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x4e1a61
push 0xffffffffffffffff
push dword [ebp - 0x10]
lea eax, [ebp - 0x20]
push eax
call fcn.004b4d80
mov ecx, dword [edi]
mov edx, eax
add esp, 0xc
mov eax, dword [edx]
mov dword [edi], eax
mov eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edi + 4]
mov dword [edi + 4], eax
mov eax, dword [edx + 8]
mov dword [edx + 4], ecx
mov ecx, dword [edi + 8]
mov dword [edi + 8], eax
mov dword [edx + 8], ecx
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x4e1a58
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x4e1a58
push 4
push 2
push dword [ebp - 0x20]
call fcn.0045fe90
add esp, 0xc
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [edi + 8], 0
jne 0x4e1ab6
mov ecx, esi
mov edx, 0x697c50
mov ebx, 0xc
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4e1a8d
add ecx, 4
add edx, 4
sub ebx, 4
jae 0x4e1a73
push str.C:_tempqt_common
push 0x11
jmp 0x4e1aaf
mov ecx, 0x697c70
mov edx, 0xc
mov eax, dword [esi]
cmp eax, dword [ecx]
jne 0x4e1ab6
add esi, 4
add ecx, 4
sub edx, 4
jae 0x4e1a97
push str.C:_tempqt_user
push 0xf
mov ecx, edi
call fcn.0048dcf0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f6730
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x10
cmp dword [esp + 0x18], 0
push esi
mov esi, ecx
mov dword [esp + 4], esi
jbe 0x4f68f6
push ebx
push ebp
push edi
xor edi, edi
mov dword [esp + 0x14], edi
nop
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 0x10]
add edx, edi
xor ebp, ebp
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ebp
mov al, byte [edx + ebp]
cmp al, 0xff
je 0x4f68cd
cmp byte [esp + 0x2c], 0
movzx eax, al
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x80]
lea ebx, [eax + ecx*4]
je 0x4f6843
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov edi, dword [esi + 8]
mov edx, dword [ebx + 8]
dec edi
shl eax, 4
add eax, ecx
add eax, edx
xor eax, dword [esi + 0xc]
and edi, eax
mov eax, edi
and edi, 0x7f
shr eax, 7
imul esi, eax, 0x88
mov eax, dword [esp + 0x10]
add esi, dword [eax + 0x10]
movzx eax, byte [edi + esi]
cmp eax, 0xff
je 0x4f684a
mov ebp, ecx
nop word [eax + eax]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x80]
lea ecx, [eax + ecx*4]
mov eax, dword [ebx]
cmp eax, dword [ecx]
jne 0x4f67f4
cmp edx, dword [ecx + 8]
jne 0x4f67f4
cmp ebp, dword [ecx + 4]
jne 0x4f67f4
mov eax, dword [ebx + 0xc]
cmp eax, dword [ecx + 0xc]
je 0x4f683d
inc edi
cmp edi, 0x80
jne 0x4f6832
mov eax, dword [esp + 0x10]
add esi, 0x88
mov ecx, esi
xor edi, edi
sub ecx, dword [eax + 0x10]
mov eax, 0x78787879
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 8]
shr eax, 7
cmp ecx, eax
cmove esi, dword [edx + 0x10]
mov edx, dword [ebx + 8]
movzx eax, byte [edi + esi]
cmp eax, 0xff
jne 0x4f67d0
mov ebp, dword [esp + 0x1c]
jmp 0x4f684a
mov esi, dword [esi + 0x10]
add esi, edi
mov edi, ebp
mov dl, byte [esi + 0x85]
cmp dl, byte [esi + 0x84]
jne 0x4f6865
mov ecx, esi
call fcn.004f5c60
mov dl, byte [esi + 0x85]
movzx eax, dl
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x80]
mov al, byte [eax + ecx*4]
mov byte [esi + 0x85], al
mov byte [edi + esi], dl
lea edi, [ecx*4 + 0x10]
mov eax, dword [esi + 0x80]
add edi, eax
movups xmm0, xmmword [ebx]
movups xmmword [eax + ecx*4], xmm0
mov esi, dword [ebx + 0x10]
test esi, esi
je 0x4f68c1
nop word [eax + eax]
push 8
call fcn.0059506c
mov ecx, dword [esi]
add esp, 4
mov dword [eax], ecx
mov dword [eax + 4], 0
mov dword [edi], eax
lea edi, [eax + 4]
mov esi, dword [esi + 4]
test esi, esi
jne 0x4f68a0
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
inc ebp
mov dword [esp + 0x1c], ebp
cmp ebp, 0x80
jb 0x4f6763
add edi, 0x88
sub dword [esp + 0x28], 1
mov dword [esp + 0x14], edi
jne 0x4f6750
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x10
ret 0xc
Function at 0x4f9870
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x14]
add esp, 0x24
ret
Function at 0x4fa150
Capabilities:
Terminate thread

Disassembly:
push ebx
push ebp
mov ebp, ecx
xor bl, bl
push esi
push edi
mov esi, dword [ebp + 4]
lea edi, [esi + 0x40]
test edi, edi
je 0x4fa17a
mov ecx, 1
xor eax, eax
lock cmpxchg dword [edi], ecx
test eax, eax
je 0x4fa178
mov ecx, edi
call fcn.004f7360
mov bl, 1
cmp byte [esi + 0x48], 0
je 0x4fa1a2
cmp byte [esi + 0x68], 0
jne 0x4fa18c
mov byte [esi + 0x69], 1
jmp 0x4fa1a2
push 0
push dword [esi + 0x5c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
push ebp
call fcn.004f96b0
add esp, 8
test bl, bl
je 0x4fa1c1
xor edx, edx
mov eax, 1
lock cmpxchg dword [edi], edx
cmp eax, 1
je 0x4fa1c1
mov ecx, edi
pop edi
pop esi
pop ebp
pop ebx
jmp fcn.004f7500
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4fa3b0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
xor eax, eax
push esi
push edi
mov edi, dword [esp + 0x18]
cmp edi, 0x20
jb 0x4fa425
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov dword [esp + 0xc], edx
sub dword [esp + 0xc], ecx
mov dword [esp + 8], 0x10
lea esi, [ecx + 0x10]
sub dword [esp + 8], ecx
nop
movups xmm1, xmmword [eax + edx]
mov ecx, dword [esp + 0xc]
add eax, 0x20
movaps xmm0, xmm1
psrlw xmm1, 8
psllw xmm0, 8
movups xmm2, xmmword [ecx + esi]
mov ecx, dword [esp + 8]
pxor xmm0, xmm1
movups xmmword [esi - 0x10], xmm0
movaps xmm0, xmm2
psrlw xmm2, 8
psllw xmm0, 8
pxor xmm0, xmm2
movups xmmword [esi], xmm0
add esi, 0x20
add ecx, esi
cmp ecx, edi
jbe 0x4fa3e0
mov ecx, dword [esp + 0x14]
lea esi, [eax + 0x10]
mov edx, dword [esp + 0x1c]
cmp esi, edi
ja 0x4fa44f
movups xmm1, xmmword [eax + ecx]
movaps xmm0, xmm1
psrlw xmm1, 8
psllw xmm0, 8
pxor xmm0, xmm1
movups xmmword [eax + edx], xmm0
mov eax, esi
xor esi, esi
cmp eax, edi
jae 0x4fa481
add edx, eax
sub ecx, dword [esp + 0x1c]
mov dword [esp + 0x14], ecx
nop
cmp esi, 0x10
jae 0x4fa481
mov cx, word [edx + ecx]
add eax, 2
rol cx, 8
add esi, 2
mov word [edx], cx
add edx, 2
mov ecx, dword [esp + 0x14]
cmp eax, edi
jb 0x4fa460
mov eax, edi
pop edi
pop esi
add esp, 8
ret

Function at 0x5004c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c3c4b
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x72b01c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push 0x24
call fcn.0059506c
mov esi, eax
mov dword [ebp - 0x14], esi
push 8
mov dword [ebp - 4], 0
call fcn.0059506c
add esp, 8
mov dword [ebp - 0x18], eax
push 0
push dword [ebp + 8]
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.004fa950
mov dword [esi], eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov byte [esi + 0x20], 0
mov dword [esi + 8], esi
mov dword [esi + 0xc], 2
mov dword [esi + 0x10], 1
mov dword [ebx], esi
mov byte [esi + 0x20], 1
mov eax, dword [ebx]
push 0x22
mov dword [ebp - 4], 2
mov edi, dword [eax]
mov eax, dword [edi]
mov esi, dword [eax + 0x30]
mov ecx, esi
call dword [0x5cb3f0]
mov ecx, edi
call esi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x506200
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c449b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x72b01c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 0x118
call fcn.0059506c
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
lea ecx, [esi + 4]
mov dword [ebp - 4], 0
mov dword [esi], 0
call fcn.00508850
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0xffffffff
mov dword [esi + 0x34], 0xffffffff
mov dword [esi + 0x60], 0
push fcn.004019e0
push fcn.00402980
push 0xa
push 0xc
lea eax, [esi + 0x64]
mov byte [ebp - 4], 2
push eax
call fcn.00595665
push fcn.004019e0
push fcn.00402980
push 2
push 0xc
lea eax, [esi + 0xdc]
mov byte [ebp - 4], 3
push eax
call fcn.00595665
push fcn.004ed340
push fcn.004ed2c0
push 4
push 4
lea eax, [esi + 0xf4]
mov byte [ebp - 4], 4
push eax
call fcn.00595665
and dword [esi + 0x104], 0xc0000000
mov eax, 1
or byte [esi + 0x108], 3
mov dword [esi + 0x10c], 0
mov dword [esi + 0x110], 0
mov dword [esi + 0x114], 0
mov dword [edi], esi
lock xadd dword [esi], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x50a800
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c4bd5
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x72b01c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 0x10]
mov esi, dword [ecx + 0x14]
mov dword [ebp - 0x24], esi
test eax, eax
jl 0x50a9c6
mov ebx, dword [ebp + 0xc]
jg 0x50a9c6
test ebx, ebx
jb 0x50a9c6
test eax, eax
jne 0x50a9c6
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
cmp dword [ecx + 0x78], eax
je 0x50a91b
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
nop dword [eax]
push dword [ecx + 0x78]
mov eax, ebx
sub eax, esi
push eax
mov eax, dword [ebp + 8]
add eax, esi
push 1
push eax
call fcn.005a16f5
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
push dword [eax + 0x78]
call fcn.005a1413
mov edx, dword [ebp - 0x18]
add esp, 0x14
test eax, eax
setne al
mov byte [ebp - 0xd], al
test al, al
je 0x50a8a9
test edx, edx
je 0x50a8e9
xor ecx, ecx
mov eax, edx
add esi, eax
adc edi, ecx
cmp byte [ebp - 0xd], cl
jne 0x50a9ae
test edx, edx
jne 0x50a8d1
call fcn.005a132a
cmp dword [eax], 4
jne 0x50a97c
mov ecx, dword [ebp - 0x14]
jmp 0x50a870
cmp edi, dword [ebp + 0x10]
jg 0x50a97c
jl 0x50a8e4
cmp esi, ebx
jae 0x50a97c
mov ecx, dword [ebp - 0x14]
jmp 0x50a870
mov ebx, dword [ebp - 0x14]
push dword [ebx + 0x78]
call fcn.0059deca
push 0
push edx
push eax
push dword [ebx + 0x78]
call fcn.005a1b19
add esp, 0x14
mov eax, esi
mov edx, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ecx + 0x90], 0xffffffff
je 0x50a982
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
nop word [eax + eax]
mov ecx, ebx
mov edx, 0x7fffffff
sub ecx, esi
sbb eax, edi
test eax, eax
ja 0x50a947
jb 0x50a945
cmp ecx, edx
jae 0x50a947
mov edx, ecx
mov eax, dword [ebp + 8]
push edx
add eax, esi
push eax
mov eax, dword [ebp - 0x14]
push dword [eax + 0x90]
call fcn.005a2263
mov ecx, eax
add esp, 0xc
test ecx, ecx
jle 0x50a977
cdq
add esi, eax
mov eax, dword [ebp + 0x10]
adc edi, edx
cmp edi, eax
jl 0x50a930
jg 0x50a977
cmp esi, ebx
jb 0x50a930
cmp ecx, 0xffffffff
jne 0x50a9ae
mov eax, esi
or eax, edi
jne 0x50a9ae
or esi, 0xffffffff
lea eax, [ebp - 0x30]
push esi
push eax
or edi, esi
call fcn.004fd830
add esp, 8
mov ecx, dword [ebp - 0x24]
push eax
push 1
mov dword [ebp - 4], 1
call fcn.00508730
lea ecx, [ebp - 0x30]
call fcn.004019e0
mov eax, esi
mov edx, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp - 0x20]
push 0x16
push eax
call fcn.004fd830
add esp, 8
push eax
push 1
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00508730
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x50aa07
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x50aa07
push 4
push 2
push dword [ebp - 0x20]
call fcn.0045fe90
add esp, 0xc
or eax, 0xffffffff
or edx, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x50d3c0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c4f95
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
mov eax, dword [0x72b01c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x24]
push eax
call fcn.00508e40
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00496d70
mov ecx, dword [ebp + 8]
mov esi, eax
lea eax, [ebp - 0x18]
push eax
call fcn.00508e40
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00496d70
push 1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 0x18]
test eax, eax
setne bl
or esi, 0xffffffff
test ecx, ecx
je 0x50d44d
mov eax, esi
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x50d44d
push 4
push 2
push dword [ebp - 0x18]
call fcn.0045fe90
add esp, 0xc
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x50d46c
lock xadd dword [eax], esi
cmp esi, 1
jne 0x50d46c
push 4
push 2
push dword [ebp - 0x24]
call fcn.0045fe90
add esp, 0xc
test bl, bl
jne 0x50d482
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov dword [ecx + 4], 2
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret