joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c77d0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e770b
mov eax, dword fs:[0]
push eax
sub esp, 0x828
mov eax, dword [0x651ea8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x830], ebx
cmp byte [ebx + 0x20], 0
je 0x4c79aa
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4c79aa
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0x834], eax
test eax, eax
je 0x4c79aa
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, eax
mov dword [ebp - 0x82c], ecx
test ecx, ecx
je 0x4c79aa
mov edi, ecx
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x814], 0xf
mov byte [ebp - 0x828], 0
lea edx, [edi + 1]
nop dword [eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x4c7870
sub edi, edx
cmp edi, 0xf
ja 0x4c789c
push edi
push ecx
lea eax, [ebp - 0x828]
mov dword [ebp - 0x818], edi
push eax
call fcn.0058f8d0
mov byte [ebp + edi - 0x828], 0
jmp 0x4c7900
cmp edi, 0x7fffffff
ja 0x4c79c6
mov ebx, edi
or ebx, 0xf
cmp ebx, 0x7fffffff
jbe 0x4c78bc
mov ebx, closesocket
jmp 0x4c78c6
mov eax, 0x16
cmp ebx, eax
cmovb ebx, eax
lea eax, [ebx + 1]
push eax
lea ecx, [ebp - 0x828]
call fcn.00406c90
push edi
push dword [ebp - 0x82c]
mov esi, eax
mov dword [ebp - 0x818], edi
push esi
mov dword [ebp - 0x814], ebx
call fcn.0058f350
mov ebx, dword [ebp - 0x830]
mov byte [esi + edi], 0
mov dword [ebp - 0x828], esi
add esp, 0xc
push dword [ebp - 0x834]
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp - 0x818]
test ecx, ecx
je 0x4c7974
cmp dword [ebp - 0x814], 0x10
lea edx, [ebp - 0x810]
push 0x400
push edx
push ecx
lea eax, [ebp - 0x828]
cmovae eax, dword [ebp - 0x828]
push eax
push 0
push dword [0x6986fc]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
lea eax, [ebp - 0x810]
mov ecx, ebx
push eax
call fcn.004c71a0
mov ecx, dword [0x697ee0]
test ecx, ecx
je 0x4c7974
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x814]
cmp edx, 0x10
jb 0x4c79aa
mov ecx, dword [ebp - 0x828]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4c79a0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c79cb
push edx
push ecx
call fcn.00552c1d
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00552c0c
mov esp, ebp
pop ebp
ret
call fcn.00406c80
call fcn.0059841a
int3

Function at 0x4cdfd0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004a7850

Function at 0x4d37e0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
mov esi, ecx
call sub.WS2_32.dll_gethostbyname
test eax, eax
jne 0x4d37f9
xor al, al
pop esi
pop ebp
ret 4
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esi + 4], eax
mov al, 1
pop esi
pop ebp
ret 4
Function at 0x4da600
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, eax
cmp dword [eax + 0x14], 0x10
jb 0x4da610
mov edx, dword [eax]
push ebx
push esi
push edi
mov edi, dword [eax + 0x10]
xor ebx, ebx
xor eax, eax
xor esi, esi
lea ecx, [edi + edx]
cmp edx, ecx
cmova edi, ebx
test edi, edi
je 0x4da643
nop dword [eax + eax]
movzx ecx, byte [edx]
lea edx, [edx + 1]
imul eax, eax, 0x1000193
inc esi
xor eax, ecx
cmp esi, edi
jb 0x4da630
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4df060
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
mov edi, ecx
push 0x61ce5c
lea esi, [edi + 0x259]
push esi
call fcn.00598656
add esp, 8
test eax, eax
je 0x4df08a
push eax
call fcn.00598966
add esp, 4
mov al, 1
pop edi
pop esi
ret
cmp byte [edi + 0x368], 0
jne 0x4df0e4
push 0x61ce2c
push esi
call fcn.00598656
mov esi, eax
add esp, 8
test esi, esi
je 0x4df0e4
push esi
push 1
push 4
push 0x5f5710
call fcn.0059888c
push esi
push 1
push 4
push 0x5f5714
call fcn.0059888c
push esi
push 1
lea eax, [edi + 0x154]
push 4
push eax
call fcn.0059888c
push esi
call fcn.00598966
add esp, 0x34
mov al, 1
pop edi
pop esi
ret
pop edi
xor al, al
pop esi
ret

Function at 0x4df130
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x13e8], 0x20
je 0x4df146
xor al, al
pop esi
pop ebp
ret 4
cmp byte [esi + 0x369], 0
jne 0x4df185
cmp dword [esi + 0x13ec], 0x10
push edi
lea edi, [esi + 0x13d8]
jb 0x4df161
mov edi, dword [edi]
mov edx, dword [ebp + 8]
xor ecx, ecx
xor dword [edi + ecx*4], edx
inc ecx
mov eax, dword [esi + 0x13e8]
add edx, 0x1000193
shr eax, 2
cmp ecx, eax
jne 0x4df166
mov byte [esi + 0x369], 1
pop edi
mov al, 1
pop esi
pop ebp
ret 4

Function at 0x4e04c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x651ea8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x4e056d
cmp byte [esi + 0x3e], 0
je 0x4e056d
mov eax, dword [esi]
push 0xffff
call dword [eax + 0xc]
mov ecx, 0xffff
cmp cx, ax
je 0x4e0523
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4e0535
sub eax, 1
je 0x4e0539
sub eax, 2
je 0x4e056d
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00552c0c
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3e], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4e0556
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0059888c
add esp, 0x10
cmp edi, eax
jne 0x4e0523
cmp byte [esi + 0x3e], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00552c0c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00552c0c
mov esp, ebp
pop ebp
ret
Function at 0x4e1ee0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x651ea8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, 0xffff
mov esi, ecx
cmp ax, di
jne 0x4e1f15
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00552c0c
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push ebx
mov ecx, dword [eax]
test ecx, ecx
je 0x4e1f53
mov edx, dword [esi + 0x30]
mov ebx, dword [edx]
lea eax, [ecx + ebx*2]
cmp ecx, eax
jae 0x4e1f53
lea ecx, [ebx - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], di
pop ebx
mov ax, di
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00552c0c
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x4e202f
mov ebx, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [ebx], eax
jne 0x4e1f7d
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [ebx], ecx
mov eax, dword [esi + 0x1c]
sar edx, 1
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4e1fb6
push dword [esi + 0x4c]
push edi
call fcn.005a72ac
mov ecx, 0xffff
add esp, 8
cmp ax, cx
movzx eax, di
jne 0x4e2034
pop ebx
pop edi
mov eax, ecx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00552c0c
mov esp, ebp
pop ebp
ret 4
movzx eax, di
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x4e202f
cmp eax, 1
jle 0x4e2002
cmp eax, 3
jne 0x4e202f
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.004dba80
add esp, 8
test al, al
movzx eax, di
jne 0x4e2034
jmp 0x4e202f
mov ebx, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub ebx, eax
je 0x4e201f
push dword [esi + 0x4c]
push ebx
push 1
push eax
call fcn.0059888c
add esp, 0x10
cmp ebx, eax
jne 0x4e202f
lea eax, [ebp - 0x28]
mov byte [esi + 0x3e], 1
cmp dword [ebp - 0x30], eax
jne 0x4e1f3d
mov eax, 0xffff
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.00552c0c
mov esp, ebp
pop ebp
ret 4
Function at 0x4f19a0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e9376
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x651ea8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.UI::CWindow.0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0xf
mov byte [edi + 4], 0
mov eax, dword [ebp + 8]
lea esi, [edi + 0x64]
push 0
mov dword [edi + 0x24], 0
mov ecx, esi
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov byte [edi + 0x55], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], eax
mov dword [edi + 0x60], 0
push 0
mov dword [ebp - 4], 0
mov dword [ebp + 8], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00429220
mov dword [esi], eax
lea esi, [edi + 0x70]
mov dword [edi + 0x6c], 0
push 0
push 0
mov ecx, esi
mov byte [ebp - 4], 1
mov dword [ebp + 8], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00429220
mov dword [esi], eax
mov eax, edi
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x50], 0
mov byte [edi + 0x78], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x5040c0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
mov ecx, ebx
push esi
push edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5040d0
mov edi, 0x1505
mov esi, 0
sub ecx, edx
je 0x5040f7
movsx edx, byte [esi + ebx]
mov eax, edi
shl eax, 5
inc esi
add edi, eax
add edi, edx
cmp esi, ecx
jb 0x5040e5
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x50b910
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ea1ae
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x651ea8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [0x6da270], edi
lea esi, [edi + 4]
mov dword [edi], vtable.CRaceManager.0
mov ecx, esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0040f8e0
mov dword [esi], eax
lea esi, [edi + 0xc]
mov byte [ebp - 4], 1
mov ecx, esi
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00434de0
mov dword [esi], eax
lea esi, [edi + 0x14]
mov byte [ebp - 4], 2
mov ecx, esi
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00415b20
mov dword [esi], eax
mov ecx, edi
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0xf
mov byte [edi + 0x1c], 0
call fcn.0050cc00
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 0x50ba00
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ea1d0
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x651ea8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebx], vtable.CRaceManager.0
call fcn.0050bc30
mov ecx, dword [ebx + 0x30]
cmp ecx, 0x10
jb 0x50ba66
mov eax, dword [ebx + 0x1c]
inc ecx
cmp ecx, 0x1000
jb 0x50ba5c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50bb23
mov eax, edx
push ecx
push eax
call fcn.00552c1d
add esp, 8
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0xf
mov byte [ebx + 0x1c], 0
mov esi, dword [ebx + 0x14]
push dword [esi + 4]
lea ecx, [ebx + 0x14]
mov dword [ebp - 4], 0
call fcn.00415b40
mov eax, dword [ebx + 0x14]
push 0x2c
mov dword [eax + 4], esi
mov eax, dword [ebx + 0x14]
mov dword [eax], esi
mov eax, dword [ebx + 0x14]
mov dword [eax + 8], esi
mov dword [ebx + 0x18], 0
push dword [ebx + 0x14]
call fcn.00552c1d
mov esi, dword [ebx + 0xc]
add esp, 8
push dword [esi + 4]
lea ecx, [ebx + 0xc]
mov dword [ebp - 4], 1
call fcn.00461170
mov eax, dword [ebx + 0xc]
push 0x40
mov dword [eax + 4], esi
mov eax, dword [ebx + 0xc]
mov dword [eax], esi
mov eax, dword [ebx + 0xc]
mov dword [eax + 8], esi
mov dword [ebx + 0x10], 0
push dword [ebx + 0xc]
call fcn.00552c1d
add esp, 8
lea ecx, [ebx + 4]
call fcn.0040f7e0
push 0x18
push dword [ebx + 4]
call fcn.00552c1d
mov dword [ebx], vtable.CSingleton_class_CRaceManager_.0
add esp, 8
mov dword [0x6da270], 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
call fcn.0059841a
int3
Function at 0x50f4a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x18
mov edx, dword [ebp + 8]
sub eax, edx
sar eax, 2
mov dword [ebp + 0xc], eax
push esi
mov esi, eax
sar esi, 1
test esi, esi
jle 0x50f687
push ebx
lea ecx, [eax - 1]
mov ebx, ecx
mov dword [ebp - 0x18], ecx
sar ebx, 1
push edi
mov dword [ebp - 0x10], ebx
mov ecx, dword [edx + esi*4 - 4]
dec esi
mov dword [ebp - 0xc], ecx
mov ecx, esi
mov dword [ebp - 8], esi
mov edi, esi
mov dword [ebp - 4], ecx
cmp esi, ebx
jge 0x50f5aa
nop word [eax + eax]
mov ecx, dword [0x6da20c]
lea eax, [edi + edi]
mov edi, dword [edx + eax*4 + 4]
mov esi, dword [edx + eax*4 + 8]
mov dword [ebp - 0x14], eax
call fcn.00427f80
mov ecx, esi
mov ebx, eax
call fcn.0043e370
mov ecx, edi
mov esi, eax
call fcn.0043e370
movss xmm5, dword [ebx + 0x30]
movss xmm4, dword [ebx + 0x34]
movaps xmm1, xmm5
subss xmm1, dword [esi]
subss xmm5, dword [eax]
movss xmm2, dword [ebx + 0x38]
movaps xmm3, xmm4
subss xmm4, dword [eax + 4]
subss xmm3, dword [esi + 4]
movaps xmm0, xmm2
mov edi, dword [ebp - 0x14]
subss xmm2, dword [eax + 8]
subss xmm0, dword [esi + 8]
mulss xmm4, xmm4
xor eax, eax
mov edx, dword [ebp + 8]
mulss xmm3, xmm3
mov ecx, dword [ebp - 4]
mulss xmm1, xmm1
mov ebx, dword [ebp - 0x10]
mulss xmm5, xmm5
addss xmm3, xmm1
mulss xmm0, xmm0
addss xmm4, xmm5
mulss xmm2, xmm2
addss xmm3, xmm0
addss xmm4, xmm2
comiss xmm4, xmm3
seta al
inc edi
xor eax, 1
add edi, eax
mov eax, dword [edx + edi*4]
mov dword [edx + ecx*4], eax
mov ecx, edi
mov dword [ebp - 4], ecx
cmp edi, ebx
jl 0x50f4f0
mov esi, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
cmp edi, ebx
jne 0x50f5bf
test al, 1
jne 0x50f5bf
mov eax, dword [edx + eax*4 - 4]
mov dword [edx + ecx*4], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 4], ecx
lea ebx, [ecx - 1]
sar ebx, 1
cmp esi, ecx
jge 0x50f671
nop dword [eax]
mov ecx, dword [0x6da20c]
mov esi, dword [edx + ebx*4]
call fcn.00427f80
mov ecx, esi
mov edi, eax
call fcn.0043e370
mov ecx, dword [ebp - 0xc]
mov esi, eax
call fcn.0043e370
movss xmm5, dword [edi + 0x30]
movss xmm4, dword [edi + 0x34]
movaps xmm1, xmm5
subss xmm1, dword [esi]
subss xmm5, dword [eax]
movss xmm2, dword [edi + 0x38]
movaps xmm3, xmm4
subss xmm3, dword [esi + 4]
subss xmm4, dword [eax + 4]
mov edx, dword [ebp + 8]
movaps xmm0, xmm2
subss xmm0, dword [esi + 8]
subss xmm2, dword [eax + 8]
mov ecx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mulss xmm3, xmm3
mulss xmm4, xmm4
mulss xmm1, xmm1
mulss xmm5, xmm5
addss xmm3, xmm1
mulss xmm0, xmm0
addss xmm4, xmm5
mulss xmm2, xmm2
addss xmm3, xmm0
addss xmm4, xmm2
comiss xmm4, xmm3
jbe 0x50f671
mov eax, dword [edx + ebx*4]
mov dword [edx + ecx*4], eax
mov ecx, ebx
dec ebx
mov dword [ebp - 4], ecx
sar ebx, 1
cmp esi, ecx
jl 0x50f5d0
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x10]
mov dword [edx + ecx*4], eax
mov eax, dword [ebp + 0xc]
test esi, esi
jg 0x50f4d0
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x510270
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov ebx, ecx
dec edi
mov dword [ebp - 4], ebx
mov eax, edi
mov dword [ebp - 0x10], edi
sar eax, 1
mov esi, ecx
mov dword [ebp - 0xc], eax
cmp ecx, eax
jge 0x51035a
nop dword [eax]
mov ecx, dword [0x6da20c]
lea eax, [esi + esi]
mov edi, dword [edx + eax*4 + 4]
mov esi, dword [edx + eax*4 + 8]
mov dword [ebp - 8], eax
call fcn.00427f80
mov ecx, esi
mov ebx, eax
call fcn.0043e370
mov ecx, edi
mov esi, eax
call fcn.0043e370
movss xmm5, dword [ebx + 0x30]
movss xmm4, dword [ebx + 0x34]
movaps xmm1, xmm5
subss xmm1, dword [esi]
subss xmm5, dword [eax]
movss xmm2, dword [ebx + 0x38]
movaps xmm3, xmm4
subss xmm4, dword [eax + 4]
subss xmm3, dword [esi + 4]
movaps xmm0, xmm2
mov edx, dword [ebp + 8]
subss xmm2, dword [eax + 8]
subss xmm0, dword [esi + 8]
mov esi, dword [ebp - 8]
xor eax, eax
mulss xmm3, xmm3
mov ecx, dword [ebp + 0xc]
mulss xmm4, xmm4
mulss xmm1, xmm1
mulss xmm5, xmm5
addss xmm3, xmm1
mulss xmm0, xmm0
addss xmm4, xmm5
mulss xmm2, xmm2
addss xmm3, xmm0
addss xmm4, xmm2
comiss xmm4, xmm3
seta al
inc esi
xor eax, 1
add esi, eax
mov eax, dword [edx + esi*4]
mov dword [edx + ecx*4], eax
mov ecx, esi
mov eax, dword [ebp - 0xc]
mov dword [ebp + 0xc], ecx
cmp esi, eax
jl 0x5102a0
mov ebx, dword [ebp - 4]
mov edi, dword [ebp - 0x10]
cmp esi, eax
jne 0x510371
mov eax, dword [ebp + 0x10]
test al, 1
jne 0x510371
mov eax, dword [edx + eax*4 - 4]
mov dword [edx + ecx*4], eax
mov ecx, edi
mov dword [ebp + 0xc], ecx
cmp ebx, ecx
jge 0x51042b
nop dword [eax]
lea eax, [ecx - 1]
mov ecx, dword [ebp + 0x14]
sar eax, 1
mov dword [ebp + 0x10], eax
mov edi, dword [ecx]
mov ecx, dword [0x6da20c]
mov esi, dword [edx + eax*4]
call fcn.00427f80
mov ecx, esi
mov ebx, eax
call fcn.0043e370
mov ecx, edi
mov esi, eax
call fcn.0043e370
movss xmm5, dword [ebx + 0x30]
movss xmm4, dword [ebx + 0x34]
movaps xmm1, xmm5
subss xmm1, dword [esi]
subss xmm5, dword [eax]
movss xmm2, dword [ebx + 0x38]
movaps xmm3, xmm4
subss xmm3, dword [esi + 4]
subss xmm4, dword [eax + 4]
mov edx, dword [ebp + 8]
movaps xmm0, xmm2
subss xmm0, dword [esi + 8]
subss xmm2, dword [eax + 8]
mov ecx, dword [ebp + 0xc]
mulss xmm3, xmm3
mulss xmm4, xmm4
mulss xmm1, xmm1
mulss xmm5, xmm5
addss xmm3, xmm1
mulss xmm0, xmm0
addss xmm4, xmm5
mulss xmm2, xmm2
addss xmm3, xmm0
addss xmm4, xmm2
comiss xmm4, xmm3
jbe 0x51042b
mov esi, dword [ebp + 0x10]
mov eax, dword [edx + esi*4]
mov dword [edx + ecx*4], eax
mov ecx, esi
mov dword [ebp + 0xc], ecx
cmp dword [ebp - 4], esi
jl 0x510380
mov eax, dword [ebp + 0x14]
pop edi
pop esi
pop ebx
mov eax, dword [eax]
mov dword [edx + ecx*4], eax
mov esp, ebp
pop ebp
ret
Function at 0x522a50
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ebe77
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x651ea8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.CArea.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
lea esi, [edi + 0x64]
mov byte [ebp - 4], 7
mov ecx, esi
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0040f8e0
mov dword [esi], eax
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
mov dword [edi + 0x74], 0
mov dword [edi + 0x78], 0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x80], 0
lea esi, [edi + 0x8c]
mov byte [ebp - 4], 0xa
mov ecx, esi
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0040f8e0
mov dword [esi], eax
lea esi, [edi + 0x98]
mov byte [ebp - 4], 0xb
mov ecx, esi
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00415bd0
mov dword [esi], eax
mov eax, edi
mov dword [edi + 0x84], 0xff00ff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x530180
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ec9ac
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x651ea8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea esi, [edi + 8]
mov dword [edi], vtable.CWeaponTrace.0
push 8
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.00552c5c
mov dword [esi], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [esi]
mov dword [eax], esi
lea esi, [edi + 0x1c]
mov dword [ebp - 4], 0
push 8
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.00552c5c
mov dword [esi], eax
add esp, 8
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [esi]
mov dword [eax], esi
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
lea ecx, [edi + 0x4c]
mov byte [ebp - 4], 2
call fcn.004c8cb0
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.005313c0
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