joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4726e0
Capabilities:
Check for software breakpoints

Disassembly:
cmp dword [esi + 0x14], 0xcc
je 0x472705
mov eax, dword [esi + 0x180]
mov ecx, dword [eax]
push esi
call ecx
add esp, 4
mov dword [esi + 0x78], 0
mov dword [esi + 0x14], 0xcc
mov edx, dword [esi + 0x180]
cmp byte [edx + 8], 0
je 0x472730
mov eax, dword [esi]
mov dword [eax + 0x14], 0x30
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call edx
mov eax, dword [esi + 0x180]
add esp, 4
cmp byte [eax + 8], 0
jne 0x472711
xor ecx, ecx
cmp byte [esi + 0x41], cl
mov al, 1
setne cl
add ecx, 0xcd
mov dword [esi + 0x14], ecx
ret

Function at 0x4727f0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x47281f
push esi
call fcn.004721b0
add esp, 4
cmp byte [esi + 0x40], 0
je 0x472818
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x47289a
mov eax, dword [esi + 0x190]
cmp byte [eax + 0x10], 0
je 0x47288a
mov eax, dword [esi + 8]
test eax, eax
je 0x472844
mov ecx, dword [eax]
push esi
call ecx
add esp, 4
mov edx, dword [esi + 0x190]
mov eax, dword [edx]
push esi
call eax
add esp, 4
test eax, eax
je 0x472886
cmp eax, 2
je 0x47288a
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x472835
cmp eax, 3
je 0x47286c
cmp eax, 1
jne 0x472835
add dword [ecx + 4], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
jl 0x472835
mov edx, dword [esi + 0x11c]
add dword [eax + 8], edx
jmp 0x472835
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
call fcn.004726e0
pop esi
ret
cmp eax, 0xcc
je 0x4728bc
mov ecx, dword [esi]
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call edx
add esp, 4
call fcn.004726e0
pop esi
ret
Function at 0x476ec0
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
push edi
mov dword [edi + 4], ebx
call fcn.00479760
push 0x54
push edi
mov dword [esp + 0x18], eax
call fcn.004796f0
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x476f06
push edi
call fcn.00479770
mov eax, dword [edi]
mov dword [eax + 0x14], 0x36
mov ecx, dword [edi]
mov dword [ecx + 0x18], ebx
mov edx, dword [edi]
mov eax, dword [edx]
push edi
call eax
add esp, 8
mov dword [esi], fcn.004763b0
mov dword [esi + 4], fcn.00476500
mov dword [esi + 8], fcn.004765c0
mov dword [esi + 0xc], fcn.00476670
mov dword [esi + 0x10], 0x476720
mov dword [esi + 0x14], 0x476790
mov dword [esi + 0x18], 0x476800
mov dword [esi + 0x1c], 0x476ae0
mov dword [esi + 0x20], 0x476c20
mov dword [esi + 0x24], fcn.00476d70
mov dword [esi + 0x28], 0x476e80
mov dword [esi + 0x30], 0x3b9aca00
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], 0x54
push str.JPEGMEM
mov dword [edi + 4], esi
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
cmp eax, ebx
je 0x476fe1
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x10]
push ecx
push str._ld_c
push eax
mov byte [esp + 0x24], 0x78
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x10
test eax, eax
jle 0x476fe1
mov al, byte [esp + 0x14]
cmp al, 0x6d
je 0x476fbc
cmp al, 0x4d
jne 0x476fd4
mov eax, dword [esp + 0xc]
imul eax, eax, 0x3e8
imul eax, eax, 0x3e8
pop edi
mov dword [esi + 0x2c], eax
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esp + 0xc]
imul eax, eax, 0x3e8
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x47aa71
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x154
push 8
push dword [0x517fd0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0x54eaac]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esp + 8]
mov dword [0x54eab0], esi
and dword [esi + 0x88], 0
or dword [esi + 0x8c], 0xffffffff
or dword [esi + 0x90], 0xffffffff
push esi
mov dword [esi + 0x84], 0xffffff
mov dword [esi + 0x6c], 2
mov dword [esi + 0x70], 0x3f
call fcn.0047f9c5
mov dword [esi + 0x58], 0x47a9f0
mov dword [esi + 0x5c], 0x47aa2f
mov dword [esi + 0x10], fcn.00479bb7
mov dword [esi + 0x30], 0x479d36
mov dword [esi + 0x64], 0x479e3f
mov dword [esi + 0x60], 0x479e8a
mov dword [esi + 0x34], 0x47a58f
mov dword [esi + 0x24], 0x47a42e
mov dword [esi + 0x28], 0x47a457
mov dword [esi + 0x2c], 0x47a482
mov dword [esi + 0x44], 0x47a880
mov eax, esi
pop esi
ret 4
Function at 0x47b60e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x20], 0
push esi
mov esi, dword [ecx + 0xb4]
mov dword [ebp - 4], esi
je 0x47b681
mov eax, dword [ebp + 0xc]
imul esi, dword [ebp + 0x10]
imul eax, dword [ebp + 0x18]
add eax, dword [ebp + 8]
push ebx
lea edx, [eax + edx*4]
push edi
mov eax, dword [ecx + 0xac]
imul eax, dword [ebp + 0x14]
add eax, dword [ecx + 0xa8]
mov edi, edx
add eax, esi
cmp dword [ebp + 0x1c], 0
jle 0x47b670
mov ebx, dword [ebp + 0x1c]
mov dword [ebp + 0x10], ebx
mov bl, byte [edi + 2]
xor byte [eax + 2], bl
mov bl, byte [edi + 1]
xor byte [eax + 1], bl
mov bl, byte [edi]
xor byte [eax], bl
add eax, dword [ebp - 4]
add edi, 4
dec dword [ebp + 0x10]
jne 0x47b655
dec dword [ebp + 0x20]
inc dword [ebp + 0x14]
add edx, dword [ebp + 0xc]
cmp dword [ebp + 0x20], 0
jne 0x47b635
pop edi
pop ebx
pop esi
leave
ret 0x1c

Function at 0x47c2fb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x20], 0
mov edx, dword [ecx + 0xb4]
je 0x47c377
push ebx
imul eax, eax, 3
push esi
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x18]
add edi, dword [ebp + 8]
mov esi, edx
imul esi, dword [ebp + 0x10]
add eax, edi
mov edi, eax
mov dword [ebp + 0x18], eax
mov eax, dword [ecx + 0xac]
imul eax, dword [ebp + 0x14]
add eax, dword [ecx + 0xa8]
add eax, esi
cmp dword [ebp + 0x1c], 0
jle 0x47c35f
mov ebx, dword [ebp + 0x1c]
mov dword [ebp + 0x10], ebx
mov bl, byte [edi + 2]
xor byte [eax + 2], bl
mov bl, byte [edi + 1]
xor byte [eax + 1], bl
mov bl, byte [edi]
xor byte [eax], bl
add edi, 3
add eax, edx
dec dword [ebp + 0x10]
jne 0x47c345
mov edi, dword [ebp + 0x18]
dec dword [ebp + 0x20]
add edi, dword [ebp + 0xc]
inc dword [ebp + 0x14]
cmp dword [ebp + 0x20], 0
mov dword [ebp + 0x18], edi
jne 0x47c327
pop edi
pop esi
pop ebx
pop ebp
ret 0x1c

Function at 0x47c3d3
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
imul eax, eax, 3
cmp dword [ebp + 0x1c], 0
mov dword [ebp - 4], eax
je 0x47c463
mov eax, dword [ebp + 0x10]
imul ecx, ecx, 3
imul eax, dword [ebp + 0x18]
add eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, edx
imul esi, esi, 3
add ecx, eax
push edi
mov edi, ecx
mov dword [ebp + 0xc], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xac]
imul ecx, dword [ebp + 0x14]
add ecx, dword [eax + 0xa8]
mov edx, dword [ebp - 4]
add ecx, esi
test edx, edx
jle 0x47c44b
mov eax, 0xff
sub eax, dword [ebp + 0x20]
mov dword [ebp + 0x18], edx
mov dword [ebp - 8], eax
movzx eax, byte [ecx]
movzx edx, byte [edi]
imul eax, dword [ebp - 8]
imul edx, dword [ebp + 0x20]
add eax, edx
cdq
mov ebx, 0xff
idiv ebx
inc edi
mov byte [ecx], al
inc ecx
dec dword [ebp + 0x18]
jne 0x47c42a
mov edi, dword [ebp + 0xc]
dec dword [ebp + 0x1c]
add edi, dword [ebp + 0x10]
inc dword [ebp + 0x14]
cmp dword [ebp + 0x1c], 0
mov dword [ebp + 0xc], edi
jne 0x47c400
pop edi
pop esi
pop ebx
leave
ret 0x1c
Function at 0x42303f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44e580]
jne 0x423049
repz ret
jmp fcn.0042940c

Function at 0x4319c1
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004279c6
and dword [ebp - 4], 0
cmp dword [0x451f68], 0
mov ebx, eax
jne 0x431a72
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x431b23
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x431b23
push eax
call fcn.00427954
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x451f68], eax
call esi
push eax
call fcn.00427954
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x451f6c], eax
call esi
push eax
call fcn.00427954
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x451f70], eax
call esi
push eax
call fcn.00427954
pop ecx
mov dword [0x451f78], eax
test eax, eax
je 0x431a72
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00427954
pop ecx
mov dword [0x451f74], eax
mov eax, dword [0x451f74]
cmp eax, ebx
je 0x431aca
cmp dword [0x451f78], ebx
je 0x431aca
push eax
call fcn.004279cf
push dword [0x451f78]
mov esi, eax
call fcn.004279cf
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x431aca
test edi, edi
je 0x431aca
call esi
test eax, eax
je 0x431ac1
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x431ac1
test byte [ebp - 0xc], 1
jne 0x431aca
or dword [ebp + 0x10], 0x200000
jmp 0x431b03
mov eax, dword [0x451f6c]
cmp eax, ebx
je 0x431b03
push eax
call fcn.004279cf
pop ecx
test eax, eax
je 0x431b03
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x431b03
mov eax, dword [0x451f70]
cmp eax, ebx
je 0x431b03
push eax
call fcn.004279cf
pop ecx
test eax, eax
je 0x431b03
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x451f68]
call fcn.004279cf
pop ecx
test eax, eax
je 0x431b23
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x431b25
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10001490
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x100014b4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor eax, eax
push eax
push eax
push eax
push 0x10001a2a
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
inc eax
pop ebp
ret 0xc
Function at 0x10012f30
Capabilities:
Hash data using fnv

Disassembly:
movsd xmm0, qword [esp + 4]
xorps xmm1, xmm1
ucomisd xmm0, xmm1
lahf
test ah, 0x44
jp 0x10012f4b
movsd qword [esp + 4], xmm1
jmp 0x10012f51
movsd qword [esp + 4], xmm0
push ebx
mov ebx, dword [esp + 8]
mov ecx, ebx
movzx eax, bl
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
mov eax, dword [esp + 0xc]
shrd ecx, eax, 8
push esi
movzx eax, cl
mov ecx, ebx
xor edx, eax
mov eax, dword [esp + 0x10]
shrd ecx, eax, 0x10
imul edx, edx, 0x1000193
movzx eax, cl
pop esi
xor edx, eax
imul ecx, edx, 0x1000193
mov edx, dword [esp + 0xc]
mov eax, edx
shrd ebx, eax, 0x18
movzx eax, bl
xor ecx, eax
movzx eax, dl
imul ecx, ecx, 0x1000193
pop ebx
xor ecx, eax
movzx eax, dh
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [esp + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [esp + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
ret 8
Function at 0x10017480
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0x10]
mov eax, 0x66666667
push ebx
push esi
mov esi, dword [esp + 0x14]
sub ecx, esi
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov ebx, ecx
mov dword [esp + 0x14], ecx
sar ebx, 1
test ebx, ebx
jle 0x100175fe
lea eax, [ecx - 1]
mov dword [esp + 0xc], eax
sar eax, 1
push ebp
mov dword [esp + 0x1c], eax
lea eax, [ebx + ebx*4]
push edi
lea ebp, [esi + eax*8]
mov eax, dword [esp + 0x20]
sub ebp, 0x28
dec ebx
mov dword [esp + 0x10], ebp
mov edx, ebx
mov edi, ebx
movq xmm4, qword [ebp + 0x20]
movups xmm2, xmmword [ebp]
movups xmm3, xmmword [ebp + 0x10]
cmp ebx, eax
jge 0x10017555
mov ebp, eax
nop dword [eax + eax]
lea ecx, [edi + edi]
lea eax, [ecx + ecx*4]
movsd xmm0, qword [esi + eax*8 + 0x30]
lea edi, [ecx + 1]
addsd xmm0, qword [esi + eax*8 + 0x28]
movsd xmm1, qword [esi + eax*8 + 0x58]
addsd xmm1, qword [esi + eax*8 + 0x50]
xor eax, eax
comisd xmm0, xmm1
seta al
xor eax, 1
add edi, eax
lea eax, [edx + edx*4]
mov edx, edi
lea ecx, [edi + edi*4]
movups xmm0, xmmword [esi + ecx*8]
movups xmmword [esi + eax*8], xmm0
movups xmm0, xmmword [esi + ecx*8 + 0x10]
movups xmmword [esi + eax*8 + 0x10], xmm0
movq xmm0, qword [esi + ecx*8 + 0x20]
movq qword [esi + eax*8 + 0x20], xmm0
cmp edi, ebp
jl 0x100174f0
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
cmp edx, eax
jne 0x10017587
test cl, 1
jne 0x10017587
lea ecx, [ecx + ecx*4]
movups xmm0, xmmword [esi + ecx*8 - 0x28]
lea eax, [edx + edx*4]
mov edx, dword [esp + 0x14]
movups xmmword [esi + eax*8], xmm0
movups xmm0, xmmword [esi + ecx*8 - 0x18]
movups xmmword [esi + eax*8 + 0x10], xmm0
movq xmm0, qword [esi + ecx*8 - 8]
movq qword [esi + eax*8 + 0x20], xmm0
lea ecx, [edx - 1]
sar ecx, 1
cmp ebx, edx
jge 0x100175de
movaps xmm1, xmm2
unpckhpd xmm1, xmm2
addsd xmm1, xmm2
nop dword [eax + eax]
lea edi, [ecx + ecx*4]
movsd xmm0, qword [esi + edi*8 + 8]
addsd xmm0, qword [esi + edi*8]
comisd xmm1, xmm0
jbe 0x100175de
movups xmm0, xmmword [esi + edi*8]
lea eax, [edx + edx*4]
mov edx, ecx
dec ecx
movups xmmword [esi + eax*8], xmm0
sar ecx, 1
movups xmm0, xmmword [esi + edi*8 + 0x10]
movups xmmword [esi + eax*8 + 0x10], xmm0
movq xmm0, qword [esi + edi*8 + 0x20]
movq qword [esi + eax*8 + 0x20], xmm0
cmp ebx, edx
jl 0x100175a0
mov ecx, dword [esp + 0x1c]
lea eax, [edx + edx*4]
movups xmmword [esi + eax*8], xmm2
movups xmmword [esi + eax*8 + 0x10], xmm3
movq qword [esi + eax*8 + 0x20], xmm4
test ebx, ebx
jg 0x100174c5
pop edi
pop ebp
pop esi
pop ebx
add esp, 8
ret
Function at 0x10017610
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0x10]
mov eax, 0x66666667
push ebx
push esi
mov esi, dword [esp + 0x14]
sub ecx, esi
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov ebx, ecx
mov dword [esp + 0x14], ecx
sar ebx, 1
test ebx, ebx
jle 0x1001778f
lea eax, [ecx - 1]
mov dword [esp + 0xc], eax
sar eax, 1
push ebp
mov dword [esp + 0x1c], eax
lea eax, [ebx + ebx*4]
push edi
lea ebp, [esi + eax*8]
mov eax, dword [esp + 0x20]
sub ebp, 0x28
dec ebx
mov dword [esp + 0x10], ebp
mov edx, ebx
mov edi, ebx
movq xmm4, qword [ebp + 0x20]
movups xmm3, xmmword [ebp]
movups xmm2, xmmword [ebp + 0x10]
cmp ebx, eax
jge 0x100176e5
mov ebp, eax
nop dword [eax + eax]
lea ecx, [edi + edi]
lea eax, [ecx + ecx*4]
movsd xmm0, qword [esi + eax*8 + 0x40]
lea edi, [ecx + 1]
addsd xmm0, qword [esi + eax*8 + 0x38]
movsd xmm1, qword [esi + eax*8 + 0x68]
addsd xmm1, qword [esi + eax*8 + 0x60]
xor eax, eax
comisd xmm0, xmm1
seta al
xor eax, 1
add edi, eax
lea eax, [edx + edx*4]
mov edx, edi
lea ecx, [edi + edi*4]
movups xmm0, xmmword [esi + ecx*8]
movups xmmword [esi + eax*8], xmm0
movups xmm0, xmmword [esi + ecx*8 + 0x10]
movups xmmword [esi + eax*8 + 0x10], xmm0
movq xmm0, qword [esi + ecx*8 + 0x20]
movq qword [esi + eax*8 + 0x20], xmm0
cmp edi, ebp
jl 0x10017680
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
cmp edx, eax
jne 0x10017717
test cl, 1
jne 0x10017717
lea ecx, [ecx + ecx*4]
movups xmm0, xmmword [esi + ecx*8 - 0x28]
lea eax, [edx + edx*4]
mov edx, dword [esp + 0x14]
movups xmmword [esi + eax*8], xmm0
movups xmm0, xmmword [esi + ecx*8 - 0x18]
movups xmmword [esi + eax*8 + 0x10], xmm0
movq xmm0, qword [esi + ecx*8 - 8]
movq qword [esi + eax*8 + 0x20], xmm0
lea ecx, [edx - 1]
sar ecx, 1
cmp ebx, edx
jge 0x1001776f
movaps xmm1, xmm2
unpckhpd xmm1, xmm2
addsd xmm1, xmm2
nop dword [eax + eax]
lea edi, [ecx + ecx*4]
movsd xmm0, qword [esi + edi*8 + 0x18]
addsd xmm0, qword [esi + edi*8 + 0x10]
comisd xmm1, xmm0
jbe 0x1001776f
movups xmm0, xmmword [esi + edi*8]
lea eax, [edx + edx*4]
mov edx, ecx
dec ecx
movups xmmword [esi + eax*8], xmm0
sar ecx, 1
movups xmm0, xmmword [esi + edi*8 + 0x10]
movups xmmword [esi + eax*8 + 0x10], xmm0
movq xmm0, qword [esi + edi*8 + 0x20]
movq qword [esi + eax*8 + 0x20], xmm0
cmp ebx, edx
jl 0x10017730
mov ecx, dword [esp + 0x1c]
lea eax, [edx + edx*4]
movups xmmword [esi + eax*8], xmm3
movups xmmword [esi + eax*8 + 0x10], xmm2
movq qword [esi + eax*8 + 0x20], xmm4
test ebx, ebx
jg 0x10017655
pop edi
pop ebp
pop esi
pop ebx
add esp, 8
ret
Function at 0x10018020
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 4]
push ebx
push ebp
lea ecx, [eax - 1]
mov ebx, ecx
push esi
mov esi, dword [esp + 0x14]
mov ebp, esi
sar ebx, 1
mov dword [esp + 0x14], ecx
push edi
mov edi, esi
cmp esi, ebx
jge 0x100180a0
lea ecx, [edi + edi]
lea eax, [ecx + ecx*4]
movsd xmm0, qword [edx + eax*8 + 0x30]
lea edi, [ecx + 1]
addsd xmm0, qword [edx + eax*8 + 0x28]
movsd xmm1, qword [edx + eax*8 + 0x58]
addsd xmm1, qword [edx + eax*8 + 0x50]
xor eax, eax
comisd xmm0, xmm1
seta al
xor eax, 1
add edi, eax
lea eax, [esi + esi*4]
mov esi, edi
lea ecx, [edi + edi*4]
movups xmm0, xmmword [edx + ecx*8]
movups xmmword [edx + eax*8], xmm0
movups xmm0, xmmword [edx + ecx*8 + 0x10]
movups xmmword [edx + eax*8 + 0x10], xmm0
movq xmm0, qword [edx + ecx*8 + 0x20]
movq qword [edx + eax*8 + 0x20], xmm0
cmp edi, ebx
jl 0x10018043
mov eax, dword [esp + 0x1c]
cmp edi, ebx
jne 0x100180d1
test al, 1
jne 0x100180d1
lea ecx, [eax + eax*4]
movups xmm0, xmmword [edx + ecx*8 - 0x28]
lea eax, [esi + esi*4]
mov esi, dword [esp + 0x18]
movups xmmword [edx + eax*8], xmm0
movups xmm0, xmmword [edx + ecx*8 - 0x18]
movups xmmword [edx + eax*8 + 0x10], xmm0
movq xmm0, qword [edx + ecx*8 - 8]
movq qword [edx + eax*8 + 0x20], xmm0
mov ebx, dword [esp + 0x20]
cmp ebp, esi
jge 0x10018129
nop dword [eax]
movsd xmm0, qword [ebx + 8]
lea ecx, [esi - 1]
addsd xmm0, qword [ebx]
sar ecx, 1
lea edi, [ecx + ecx*4]
movsd xmm1, qword [edx + edi*8 + 8]
addsd xmm1, qword [edx + edi*8]
comisd xmm0, xmm1
jbe 0x10018129
lea eax, [esi + esi*4]
mov esi, ecx
movups xmm0, xmmword [edx + edi*8]
movups xmmword [edx + eax*8], xmm0
movups xmm0, xmmword [edx + edi*8 + 0x10]
movups xmmword [edx + eax*8 + 0x10], xmm0
movq xmm0, qword [edx + edi*8 + 0x20]
movq qword [edx + eax*8 + 0x20], xmm0
cmp ebp, ecx
jl 0x100180e0
movups xmm0, xmmword [ebx]
lea eax, [esi + esi*4]
pop edi
movups xmmword [edx + eax*8], xmm0
pop esi
movups xmm0, xmmword [ebx + 0x10]
pop ebp
movups xmmword [edx + eax*8 + 0x10], xmm0
movq xmm0, qword [ebx + 0x20]
movq qword [edx + eax*8 + 0x20], xmm0
pop ebx
ret
Function at 0x10018150
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 4]
push ebx
push ebp
lea ecx, [eax - 1]
mov ebx, ecx
push esi
mov esi, dword [esp + 0x14]
mov ebp, esi
sar ebx, 1
mov dword [esp + 0x14], ecx
push edi
mov edi, esi
cmp esi, ebx
jge 0x100181d0
lea ecx, [edi + edi]
lea eax, [ecx + ecx*4]
movsd xmm0, qword [edx + eax*8 + 0x40]
lea edi, [ecx + 1]
addsd xmm0, qword [edx + eax*8 + 0x38]
movsd xmm1, qword [edx + eax*8 + 0x68]
addsd xmm1, qword [edx + eax*8 + 0x60]
xor eax, eax
comisd xmm0, xmm1
seta al
xor eax, 1
add edi, eax
lea eax, [esi + esi*4]
mov esi, edi
lea ecx, [edi + edi*4]
movups xmm0, xmmword [edx + ecx*8]
movups xmmword [edx + eax*8], xmm0
movups xmm0, xmmword [edx + ecx*8 + 0x10]
movups xmmword [edx + eax*8 + 0x10], xmm0
movq xmm0, qword [edx + ecx*8 + 0x20]
movq qword [edx + eax*8 + 0x20], xmm0
cmp edi, ebx
jl 0x10018173
mov eax, dword [esp + 0x1c]
cmp edi, ebx
jne 0x10018201
test al, 1
jne 0x10018201
lea ecx, [eax + eax*4]
movups xmm0, xmmword [edx + ecx*8 - 0x28]
lea eax, [esi + esi*4]
mov esi, dword [esp + 0x18]
movups xmmword [edx + eax*8], xmm0
movups xmm0, xmmword [edx + ecx*8 - 0x18]
movups xmmword [edx + eax*8 + 0x10], xmm0
movq xmm0, qword [edx + ecx*8 - 8]
movq qword [edx + eax*8 + 0x20], xmm0
mov ebx, dword [esp + 0x20]
cmp ebp, esi
jge 0x1001825b
nop dword [eax]
movsd xmm0, qword [ebx + 0x10]
lea ecx, [esi - 1]
addsd xmm0, qword [ebx + 0x18]
sar ecx, 1
lea edi, [ecx + ecx*4]
movsd xmm1, qword [edx + edi*8 + 0x18]
addsd xmm1, qword [edx + edi*8 + 0x10]
comisd xmm0, xmm1
jbe 0x1001825b
lea eax, [esi + esi*4]
mov esi, ecx
movups xmm0, xmmword [edx + edi*8]
movups xmmword [edx + eax*8], xmm0
movups xmm0, xmmword [edx + edi*8 + 0x10]
movups xmmword [edx + eax*8 + 0x10], xmm0
movq xmm0, qword [edx + edi*8 + 0x20]
movq qword [edx + eax*8 + 0x20], xmm0
cmp ebp, ecx
jl 0x10018210
movups xmm0, xmmword [ebx]
lea eax, [esi + esi*4]
pop edi
movups xmmword [edx + eax*8], xmm0
pop esi
movups xmm0, xmmword [ebx + 0x10]
pop ebp
movups xmmword [edx + eax*8 + 0x10], xmm0
movq xmm0, qword [ebx + 0x20]
movq qword [edx + eax*8 + 0x20], xmm0
pop ebx
ret
Function at 0x1002ce90
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov edx, dword [esp + 4]
push esi
push edi
mov dword [ecx + 0x1384], 0xffffffff
lea edi, [ecx + 8]
mov dword [ecx + 4], edx
mov esi, 1
nop dword [eax + eax]
mov eax, edx
lea edi, [edi + 4]
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, esi
inc esi
mov dword [edi - 4], edx
cmp esi, 0x270
jb 0x1002ceb0
pop edi
pop esi
mov dword [ecx], 0x270
mov eax, ecx
ret 4

Function at 0x1002cfe0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi]
cmp eax, 0x270
jne 0x1002d02f
lea edx, [esi + 8]
mov edi, eax
mov ecx, dword [edx]
lea edx, [edx + 4]
xor ecx, dword [edx - 8]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x1002cff2
mov eax, dword [esi]
jmp 0x1002d118
cmp eax, 0x4e0
jb 0x1002d118
push ebx
mov ebx, dword [esi + 0x9c4]
lea edi, [esi + 0x9c4]
push ebp
mov ebp, 0xe3
nop dword [eax]
lea edx, [edi]
mov eax, ebx
mov ebx, dword [edx + 4]
lea edi, [edx + 4]
mov ecx, ebx
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x634]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub ebp, 1
jne 0x1002d050
mov ebx, dword [esi + 0xd50]
lea edi, [esi + 0xd50]
mov ebp, 0x18c
nop dword [eax]
mov eax, ebx
lea edx, [edi]
mov ebx, dword [edx + 4]
lea edi, [edx + 4]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx - 0xd4c]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub ebp, 1
jne 0x1002d0a0
mov eax, dword [esi + 0x1380]
mov ecx, dword [esi + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop ebp
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
xor eax, eax
pop ebx
mov dword [esi], 0
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
ret