joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ff0f0
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.004ff610
push eax
mov dword [ebp - 4], eax
call fcn.006eefbe
add esp, 4
test eax, eax
jne 0x4ff3f8
cmp byte [0x84ad10], al
je 0x4ff3e9
push ebx
push esi
mov esi, dword [0x84ad0c]
push edi
push 0x164ed0
push eax
push esi
mov byte [0x84ad10], al
call fcn.007051b0
add esp, 0xc
lea eax, [esi + 0x89da4]
mov ecx, 0x164ed0
xchg dword [eax], ecx
mov ecx, dword [0x84ad0c]
mov edx, 0x30
lea eax, [ecx + 0x738]
mov byte [eax], 0
lea eax, [eax + 0x5c]
sub edx, 1
jne 0x4ff154
lea eax, [ecx + 0x2f8]
mov edx, 0x10
nop word [eax + eax]
mov byte [eax - 0x40], 0
lea eax, [eax + 0x48]
mov dword [eax - 0x48], 0
mov dword [eax - 0x44], 0
sub edx, 1
jne 0x4ff170
mov dword [ecx + 0x2b8], 0x61666564
lea eax, [ecx + 0x1888]
mov dword [ecx + 0x2bc], 0x746c75
mov edx, 0x400
mov dword [ecx + 8], 1
mov byte [eax], 0
lea eax, [eax + 0x60]
sub edx, 1
jne 0x4ff1b0
mov dword [ecx + 4], edx
xor esi, esi
rdtsc
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], edx
mov dword [ecx + 0x2c], 0x16
mov dword [ecx + 0x30], 0
mov dword [ecx + 0x34], 0
mov dword [ecx + 0x38], 0
mov dword [ecx + 0x48], 0
mov dword [ecx + 0x4c], 0
mov dword [ecx + 0x50], 0
mov dword [ecx + 0x54], 0
mov dword [ecx + 0x68], 0
mov dword [ecx + 0x60], 0
mov dword [ecx + 0x64], 0
mov dword [ecx + 0x6c], 1
mov dword [ecx + 0x10], 0x3c
mov dword [ecx], 0
mov dword [ecx + 0x88978], 0xffffffff
mov dword [ecx + 0x88d80], 0xffffffff
mov dword [ecx + 0x89188], 0xffffffff
mov dword [ecx + 0x89590], 0xffffffff
mov dword [ecx + 0x89998], 0xffffffff
rdtsc
mov dword [ecx + 0x88], 1
mov edi, eax
mov dword [ecx + 0x2b0], 0x420551ec
mov ebx, edx
mov dword [ecx + 0x2b4], 0x3cf5c8d9
nop
mov dword [esi + ecx + 0x89dc0], 0
mov dword [esi + ecx + 0x89dc4], 0
mov dword [esi + ecx + 0x89dc8], 0
mov dword [esi + ecx + 0x89dcc], 0
mov dword [esi + ecx + 0x89dd0], 0
mov dword [esi + ecx + 0x89dd4], 0
mov dword [esi + ecx + 0x89dd8], edi
mov dword [esi + ecx + 0x89ddc], ebx
mov dword [esi + ecx + 0x89de0], 0
mov dword [esi + ecx + 0x89de4], 0
mov dword [esi + ecx + 0x89de8], 0xffffffff
mov word [esi + ecx + 0x8a020], 0
mov dword [esi + ecx + 0x89fec], 0
mov dword [esi + ecx + 0x89ff4], 0
mov dword [esi + ecx + 0x89ff0], 0
add ecx, 0x89ff8
add ecx, esi
call fcn.00528ce0
add esi, 0x268
cmp esi, 0x4d000
jge 0x4ff342
mov ecx, dword [0x84ad0c]
jmp 0x4ff280
mov edx, dword [0x84ad0c]
mov ecx, 0x200
pop edi
pop esi
pop ebx
mov dword [edx + 0xe2e80], 0
lea eax, [edx + 0x162e88]
mov dword [eax + 0x1000], 0xffffffff
lea eax, [eax + 8]
mov dword [eax + 0xffc], 0x7fffffff
mov dword [eax - 8], 0
mov dword [eax - 4], 0x80000000
sub ecx, 1
jne 0x4ff360
push 2
push 0x76aeac
mov dword [edx + 0x164e88], 0xffffffff
call fcn.004f68e0
mov dword [0x91433c], eax
add esp, 8
mov dword [eax + 0x20], 1
mov dword [eax + 0x24], 0
mov eax, dword [0x84ad0c]
mov byte [eax + 0x164ec4], 0
mov dword [eax + 0x164ec8], 0
mov dword [eax + 0x9c], 0
mov byte [eax + 0x164ecc], 0
mov byte [eax + 0xdae58], 0
call fcn.0050f650
push dword [ebp - 4]
call fcn.006ef019
add esp, 4
mov esp, ebp
pop ebp
ret
push eax
call fcn.006ef37a
int3
Function at 0x4ff8f0
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0xa91338]
sub esp, 0x24
mov edx, dword [0xa9133c]
mov eax, ecx
or eax, edx
jne 0x4ff9a5
push ebx
push esi
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call esi
rdtsc
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 8], edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push 5
call esi
rdtsc
mov ebx, eax
mov esi, edx
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
sub ebx, dword [ebp - 4]
mov ecx, ebx
sbb esi, dword [ebp - 8]
mov edx, esi
call fcn.00703160
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
sbb edx, dword [ebp - 0x18]
movsd qword [ebp - 0xc], xmm0
call fcn.007031c0
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
movsd qword [ebp - 0x1c], xmm0
call fcn.007031c0
movsd xmm1, qword [ebp - 0x1c]
divsd xmm1, xmm0
movsd xmm0, qword [ebp - 0xc]
divsd xmm0, xmm1
call fcn.007030b0
pop esi
mov dword [0xa91338], eax
mov dword [0xa9133c], edx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ecx
mov esp, ebp
pop ebp
ret
Function at 0x5027f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
mov edx, dword [ebp + 0xc]
push 0xffffffffffffffff
push 0x745b35
push eax
mov dword fs:[0], esp
sub esp, 0x10
cmp dword [edx + 0x14], 0x10
push ebx
push esi
push edi
mov ebx, ecx
mov edi, edx
jb 0x50281d
mov edi, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
cmp dword [edx + 0x10], ecx
jbe 0x502842
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, dword [edx + 0x10]
jb 0x502830
push esi
push edx
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.00502680
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x502872
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [ebx + 8], 0x71c71c7
je 0x5029ce
lea eax, [ebx + 4]
mov dword [ebp - 0x1c], eax
push 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
call fcn.00516cd0
add esp, 4
mov edi, eax
mov dword [ebp - 0x18], edi
push dword [ebp + 0xc]
lea ecx, [edi + 8]
call fcn.004838a0
mov dword [edi + 0x20], 0
mov eax, dword [ebx + 8]
inc eax
movss xmm3, dword [ebx]
mov dword [ebp - 4], 1
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x75f520]
mov eax, dword [ebx + 0x1c]
cvtpd2ps xmm2, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x75f520]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, xmm3
jbe 0x50296d
divss xmm2, xmm3
sub esp, 8
cvtps2pd xmm0, xmm2
movsd qword [ebp - 0x14], xmm0
fld qword [ebp - 0x14]
fstp qword [esp]
call fcn.00715730
fstp qword [ebp - 0x14]
movsd xmm0, qword [ebp - 0x14]
add esp, 8
cvtpd2ps xmm0, xmm0
call fcn.00702ec0
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [ebx + 0x1c]
cmp eax, ecx
jae 0x502951
cmp eax, 0x200
jae 0x50294f
shl eax, 3
cmp eax, ecx
jae 0x502951
mov eax, ecx
push eax
mov ecx, ebx
call fcn.00502c40
push esi
lea eax, [edi + 8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00502680
mov edx, dword [eax]
jmp 0x502970
mov edx, dword [ebp - 0x14]
mov eax, dword [ebx + 8]
mov ecx, dword [edx + 4]
inc eax
mov dword [ebx + 8], eax
mov dword [edi], edx
mov dword [edi + 4], ecx
mov dword [ecx], edi
mov dword [edx + 4], edi
mov eax, dword [ebx + 0x18]
mov dword [ebp + 0xc], ecx
and eax, esi
mov ecx, dword [ebx + 0xc]
mov esi, dword [ecx + eax*8]
cmp esi, dword [ebx + 4]
jne 0x50299c
mov dword [ecx + eax*8], edi
jmp 0x5029ae
cmp esi, edx
jne 0x5029a5
mov dword [ecx + eax*8], edi
jmp 0x5029b2
mov edx, dword [ebp + 0xc]
cmp dword [ecx + eax*8 + 4], edx
jne 0x5029b2
mov dword [ecx + eax*8 + 4], edi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax], edi
pop edi
pop esi
mov byte [eax + 4], 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.unordered_map_set_too_long
call fcn.006ee17a
int3
Function at 0x5038e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x745bd5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
mov edi, dword [ebp + 0xc]
mov edx, ecx
mov dword [ebp - 0x10], edx
mov dword [ebp + 0xc], edi
cmp dword [edi + 0x14], 0x10
jb 0x503913
mov eax, dword [edi]
mov dword [ebp + 0xc], eax
xor ecx, ecx
mov esi, 0x811c9dc5
cmp dword [edi + 0x10], ecx
jbe 0x503937
mov edx, dword [ebp + 0xc]
movzx eax, byte [ecx + edx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, dword [edi + 0x10]
jb 0x503922
mov edx, dword [ebp - 0x10]
push esi
push edi
lea eax, [ebp - 0x20]
mov ecx, edx
push eax
call fcn.00489ef0
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x503957
mov eax, dword [ebp + 8]
mov dword [eax], ecx
xor cl, cl
jmp 0x503a4e
mov eax, dword [ebp - 0x10]
cmp dword [eax + 8], 0x4924924
je 0x503a63
add eax, 4
mov dword [ebp - 0x18], eax
push 0x38
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
call fcn.00516cd0
add esp, 4
mov dword [ebp - 0x14], eax
lea ecx, [eax + 8]
push edi
call fcn.004838a0
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x30], 0
mov dword [ecx + 0x34], 0
movups xmm0, xmmword [edi + 0x18]
movups xmmword [ecx + 0x20], xmm0
movq xmm0, qword [edi + 0x28]
movq qword [ecx + 0x30], xmm0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0xf
mov byte [edi + 0x18], 0
mov edi, dword [ebp - 0x10]
mov dword [ebp - 4], 1
mov eax, dword [edi + 8]
inc eax
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x75f520]
mov eax, dword [edi + 0x1c]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x75f520]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, dword [edi]
jbe 0x503a35
mov ecx, edi
call fcn.004ce530
mov eax, dword [ebp - 0x14]
mov ecx, edi
push esi
add eax, 8
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00489ef0
mov ecx, dword [eax]
jmp 0x503a38
mov ecx, dword [ebp - 0x20]
push dword [ebp - 0x14]
push ecx
push esi
mov ecx, edi
call fcn.004ce260
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov cl, 1
mov eax, dword [ebp + 8]
mov byte [eax + 4], cl
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push str.unordered_map_set_too_long
call fcn.006ee17a
int3
Function at 0x503b40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
mov edx, dword [ebp + 0xc]
push 0xffffffffffffffff
push 0x745c05
push eax
mov dword fs:[0], esp
sub esp, 0x10
cmp dword [edx + 0x14], 0x10
push ebx
push esi
push edi
mov ebx, ecx
mov edi, edx
jb 0x503b6d
mov edi, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
cmp dword [edx + 0x10], ecx
jbe 0x503b92
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, dword [edx + 0x10]
jb 0x503b80
push esi
push edx
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.00502680
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x503bc2
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [ebx + 8], 0x6666666
je 0x503d26
lea eax, [ebx + 4]
mov dword [ebp - 0x1c], eax
push 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
call fcn.00516cd0
add esp, 4
mov edi, eax
mov dword [ebp - 0x18], edi
push dword [ebp + 0xc]
lea ecx, [edi + 8]
call fcn.004838a0
xorps xmm0, xmm0
movq qword [edi + 0x20], xmm0
mov dword [edi + 0x24], 0
mov eax, dword [ebx + 8]
inc eax
movss xmm3, dword [ebx]
mov dword [ebp - 4], 1
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x75f520]
mov eax, dword [ebx + 0x1c]
cvtpd2ps xmm2, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x75f520]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, xmm3
jbe 0x503cc5
divss xmm2, xmm3
sub esp, 8
cvtps2pd xmm0, xmm2
movsd qword [ebp - 0x14], xmm0
fld qword [ebp - 0x14]
fstp qword [esp]
call fcn.00715730
fstp qword [ebp - 0x14]
movsd xmm0, qword [ebp - 0x14]
add esp, 8
cvtpd2ps xmm0, xmm0
call fcn.00702ec0
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [ebx + 0x1c]
cmp eax, ecx
jae 0x503ca9
cmp eax, 0x200
jae 0x503ca7
shl eax, 3
cmp eax, ecx
jae 0x503ca9
mov eax, ecx
push eax
mov ecx, ebx
call fcn.00505f90
push esi
lea eax, [edi + 8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00502680
mov edx, dword [eax]
jmp 0x503cc8
mov edx, dword [ebp - 0x14]
mov eax, dword [ebx + 8]
mov ecx, dword [edx + 4]
inc eax
mov dword [ebx + 8], eax
mov dword [edi], edx
mov dword [edi + 4], ecx
mov dword [ecx], edi
mov dword [edx + 4], edi
mov eax, dword [ebx + 0x18]
mov dword [ebp + 0xc], ecx
and eax, esi
mov ecx, dword [ebx + 0xc]
mov esi, dword [ecx + eax*8]
cmp esi, dword [ebx + 4]
jne 0x503cf4
mov dword [ecx + eax*8], edi
jmp 0x503d06
cmp esi, edx
jne 0x503cfd
mov dword [ecx + eax*8], edi
jmp 0x503d0a
mov edx, dword [ebp + 0xc]
cmp dword [ecx + eax*8 + 4], edx
jne 0x503d0a
mov dword [ecx + eax*8 + 4], edi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax], edi
pop edi
pop esi
mov byte [eax + 4], 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.unordered_map_set_too_long
call fcn.006ee17a
int3
Function at 0x503fa0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x745bd5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
mov edi, dword [ebp + 0xc]
mov edx, ecx
mov dword [ebp - 0x10], edx
mov dword [ebp + 0xc], edi
cmp dword [edi + 0x14], 0x10
jb 0x503fd3
mov eax, dword [edi]
mov dword [ebp + 0xc], eax
xor ecx, ecx
mov esi, 0x811c9dc5
cmp dword [edi + 0x10], ecx
jbe 0x503ff7
mov edx, dword [ebp + 0xc]
movzx eax, byte [ecx + edx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, dword [edi + 0x10]
jb 0x503fe2
mov edx, dword [ebp - 0x10]
push esi
push edi
lea eax, [ebp - 0x20]
mov ecx, edx
push eax
call fcn.00489ef0
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x504026
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword [eax], ecx
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 0x10]
cmp dword [eax + 8], 0x4924924
je 0x504130
add eax, 4
mov dword [ebp - 0x18], eax
push 0x38
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
call fcn.00516cd0
add esp, 4
mov dword [ebp - 0x14], eax
push edi
lea edi, [eax + 8]
mov ecx, edi
call fcn.004838a0
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x18], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
movups xmm0, xmmword [eax]
movups xmmword [edi + 0x18], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [edi + 0x28], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov edi, dword [ebp - 0x10]
mov dword [ebp - 4], 1
mov eax, dword [edi + 8]
inc eax
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x75f520]
mov eax, dword [edi + 0x1c]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x75f520]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, dword [edi]
jbe 0x504104
mov ecx, edi
call fcn.004ce530
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x20]
push esi
add ecx, 8
push ecx
push eax
mov ecx, edi
call fcn.00489ef0
mov ecx, dword [eax]
jmp 0x504107
mov ecx, dword [ebp - 0x20]
push dword [ebp - 0x14]
push ecx
push esi
mov ecx, edi
call fcn.004ce260
mov ecx, dword [ebp + 8]
pop edi
pop esi
mov dword [ecx], eax
mov eax, ecx
mov byte [ecx + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
push str.unordered_map_set_too_long
call fcn.006ee17a
int3
Function at 0x514520
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], edi
mov edx, ecx
lea eax, [edi + 0x6aa90]
mov dword [ebp - 0x1c], eax
mov eax, dword [eax]
cmp eax, 0x2000
movzx eax, byte [ecx + 0x20]
setae byte [ebp - 1]
xor ebx, ebx
lea esi, [ecx + eax*2]
cmp ecx, esi
je 0x514573
mov ecx, ebx
mov eax, ebx
shr eax, 2
shl ecx, 6
add ecx, eax
movzx eax, word [edx]
add eax, 0x9e3779b9
add edx, 2
add eax, ecx
xor ebx, eax
cmp edx, esi
jne 0x514554
mov eax, 0x80060019
mul ebx
mov eax, ebx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 0xd
imul eax, eax, 0x2aaa
sub ebx, eax
xor eax, eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], eax
add eax, ebx
xor edx, edx
mov esi, 0x2aaa
mov ecx, 1
div esi
mov ebx, edx
lea eax, [ebx + ebx*4]
lea edi, [edi + eax*8]
xor eax, eax
lea edx, [edi + 0x24]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edx
cmp byte [ebp - 1], al
je 0x5145d7
mov ecx, 2
lock cmpxchg dword [edx], ecx
mov esi, eax
test esi, esi
jne 0x5145e5
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
lock cmpxchg dword [edx], ecx
mov esi, eax
test esi, esi
je 0x5146a2
cmp esi, 1
jne 0x51466e
mov edi, dword [ebp - 0x10]
xor esi, esi
cmp esi, 0xa
jb 0x5145ff
xor esi, esi
call sub.KERNEL32.dll_SwitchToThread
mov ebx, dword [edi]
nop
inc esi
cmp ebx, 1
je 0x5145f3
mov edi, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
mov al, byte [edi + 0x20]
cmp al, byte [edx + 0x20]
jne 0x514685
movzx ecx, al
add ecx, ecx
sub ecx, 4
jb 0x514631
mov eax, dword [edi]
cmp eax, dword [edx]
jne 0x514636
add edi, 4
add edx, 4
sub ecx, 4
jae 0x514620
cmp ecx, 0xfffffffc
je 0x514663
mov al, byte [edi]
cmp al, byte [edx]
jne 0x514685
cmp ecx, 0xfffffffd
je 0x514663
mov al, byte [edi + 1]
cmp al, byte [edx + 1]
jne 0x514685
cmp ecx, 0xfffffffe
je 0x514663
mov al, byte [edi + 2]
cmp al, byte [edx + 2]
jne 0x514685
cmp ecx, 0xffffffff
je 0x514663
mov al, byte [edi + 3]
cmp al, byte [edx + 3]
jne 0x514685
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp esi, 2
je 0x5145cc
push dword [ebp + 8]
mov ecx, edi
call fcn.00514350
test al, al
jne 0x5146d3
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, 0x2aaa
jae 0x5145cc
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0xc]
jmp 0x514595
mov eax, dword [ebp - 0x1c]
mov esi, 1
lock xadd dword [eax], esi
mov ecx, dword [ebp + 8]
lea eax, [ebx + ebx*4]
mov edi, dword [ebp - 0xc]
movups xmm0, xmmword [ecx]
movups xmmword [edi + eax*8], xmm0
movups xmm0, xmmword [ecx + 0x10]
movups xmmword [edi + eax*8 + 0x10], xmm0
mov cx, word [ecx + 0x20]
mov word [edi + eax*8 + 0x20], cx
nop
mov dword [edx], esi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x519730
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 0xc]
xorps xmm0, xmm0
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
movups xmmword [ebp - 0x24], xmm0
movups xmmword [ebp - 0x14], xmm0
test ebx, ebx
je 0x519787
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x24]
xor ecx, ecx
movzx edx, byte [eax + edi]
mov eax, edx
and edx, 0x3f
shr eax, 6
lea esi, [esi + eax*8]
xor eax, eax
bts eax, edx
cmp edx, 0x20
cmovae ecx, eax
xor eax, ecx
cmp edx, 0x40
cmovae ecx, eax
or dword [esi], eax
or dword [esi + 4], ecx
inc edi
cmp edi, ebx
jne 0x519750
mov ecx, dword [ebp - 4]
mov ebx, dword [ecx + 4]
mov eax, dword [ebp + 0x10]
cmp ebx, eax
cmovb eax, ebx
cmp eax, ebx
je 0x5197d7
mov ecx, dword [ecx]
mov dword [ebp + 0x10], ecx
nop dword [eax + eax]
movzx edi, byte [ecx + eax]
xor esi, esi
mov ecx, edi
xor edx, edx
and ecx, 0x3f
bts esi, ecx
cmp ecx, 0x20
cmovae edx, esi
xor esi, edx
cmp ecx, 0x40
cmovae edx, esi
shr edi, 6
and esi, dword [ebp + edi*8 - 0x24]
and edx, dword [ebp + edi*8 - 0x20]
or esi, edx
je 0x5197da
inc eax
cmp eax, ebx
je 0x5197d7
mov ecx, dword [ebp + 0x10]
jmp 0x5197a0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x5197f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 0xc]
xorps xmm0, xmm0
push esi
push edi
mov edx, ecx
xor edi, edi
mov dword [ebp - 4], edx
movups xmmword [ebp - 0x24], xmm0
movups xmmword [ebp - 0x14], xmm0
test ebx, ebx
je 0x519849
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x24]
xor ecx, ecx
movzx edx, byte [eax + edi]
mov eax, edx
and edx, 0x3f
shr eax, 6
lea esi, [esi + eax*8]
xor eax, eax
bts eax, edx
cmp edx, 0x20
cmovae ecx, eax
xor eax, ecx
cmp edx, 0x40
cmovae ecx, eax
or dword [esi], eax
or dword [esi + 4], ecx
inc edi
cmp edi, ebx
jne 0x519812
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
cmp dword [edx + 4], eax
cmovb eax, dword [edx + 4]
dec eax
cmp eax, 0xffffffff
je 0x519893
mov ebx, dword [edx]
nop dword [eax + eax]
movzx edi, byte [ebx + eax]
xor esi, esi
mov ecx, edi
xor edx, edx
and ecx, 0x3f
bts esi, ecx
cmp ecx, 0x20
cmovae edx, esi
xor esi, edx
cmp ecx, 0x40
cmovae edx, esi
shr edi, 6
and esi, dword [ebp + edi*8 - 0x24]
and edx, dword [ebp + edi*8 - 0x20]
or esi, edx
je 0x519896
dec eax
cmp eax, 0xffffffff
jne 0x519860
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x519fd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, ecx
push esi
push edi
mov dword [ebp - 0x20], eax
mov ecx, dword [eax]
mov esi, dword [eax + 4]
mov dword [ebp - 4], ecx
cmp ecx, esi
jne 0x519ffc
xor edi, edi
lea eax, [edi + 8]
neg edi
sbb edi, edi
and eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + 0x14]
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x18], 0
mov ebx, dword [eax + 4]
mov edx, dword [eax]
mov edi, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 8], ebx
cmp ebx, ecx
jne 0x51a036
push ecx
push dword [ebp - 0xc]
push edx
call fcn.004959f0
add esp, 0xc
test eax, eax
je 0x51a0dd
sub esi, dword [ebp - 4]
mov eax, 0x2aaaaaab
imul esi
add ebx, edi
xor esi, esi
sar edx, 1
mov eax, edx
dec edx
shr eax, 0x1f
add edx, eax
mov dword [ebp - 0x10], edx
cmp edi, ebx
je 0x51a072
mov ecx, esi
mov eax, esi
shr eax, 2
shl ecx, 6
add ecx, eax
movsx eax, byte [edi]
add eax, 0x9e3779b9
inc edi
add eax, ecx
xor esi, eax
cmp edi, ebx
jne 0x51a055
and esi, edx
xor ecx, ecx
mov dword [ebp + 8], ecx
nop dword [eax]
mov ebx, dword [ebp - 4]
lea eax, [esi + esi*2]
lea edi, [ebx + eax*4]
mov eax, dword [edi + 4]
mov ebx, dword [edi]
cmp eax, dword [ebp - 8]
jne 0x51a0ac
push dword [ebp - 8]
push dword [ebp - 0x14]
push ebx
call fcn.004959f0
add esp, 0xc
test eax, eax
je 0x51a0df
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 4]
mov edx, dword [ebp - 0x20]
mov edi, dword [edx + 0x14]
mov edx, dword [ebp - 0x10]
cmp eax, edi
jne 0x51a0d0
push edi
push dword [ebp - 0xc]
push ebx
call fcn.004959f0
add esp, 0xc
test eax, eax
je 0x51a0dd
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
inc esi
add esi, ecx
inc ecx
and esi, edx
mov dword [ebp + 8], ecx
cmp ecx, edx
jbe 0x51a080
xor edi, edi
lea eax, [edi + 8]
neg edi
pop ebx
sbb edi, edi
and eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4