joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a4890
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
push 0xd48
mov esi, ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
test eax, eax
jne 0x100a48a7
pop esi
ret
mov dword [eax + 8], esi
mov dword [eax], 1
mov esi, dword [eax]
mov edx, dword [eax + esi*4 + 4]
shr edx, 0x1e
xor edx, dword [eax + esi*4 + 4]
imul ecx, edx, 0x6c078965
add ecx, esi
mov dword [eax + esi*4 + 8], ecx
inc dword [eax]
cmp dword [eax], 0x350
jb 0x100a48b0
mov dword [eax + 4], 1
pop esi
ret

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

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
js 0x100a48f4
cmp eax, 0x350
jb 0x100a49bd
cmp eax, 0x350
jbe 0x100a4905
cmp dword [esi + 4], 0
jne 0x100a4905
xor eax, eax
pop esi
ret
xor edx, edx
nop word [eax + eax]
mov ecx, dword [esi + edx*4 + 0xc]
xor ecx, dword [esi + edx*4 + 8]
and ecx, 0x7fffffff
xor ecx, dword [esi + edx*4 + 8]
mov eax, ecx
shr ecx, 1
and eax, 1
xor ecx, dword [eax*4 + 0x1039bbd0]
xor ecx, dword [esi + edx*4 + 0x728]
mov dword [esi + edx*4 + 8], ecx
inc edx
cmp edx, 0x188
jb 0x100a4910
cmp edx, 0x34f
jae 0x100a4984
nop dword [eax]
mov ecx, dword [esi + edx*4 + 0xc]
xor ecx, dword [esi + edx*4 + 8]
and ecx, 0x7fffffff
xor ecx, dword [esi + edx*4 + 8]
mov eax, ecx
shr ecx, 1
and eax, 1
xor ecx, dword [eax*4 + 0x1039bbd0]
xor ecx, dword [esi + edx*4 - 0x618]
mov dword [esi + edx*4 + 8], ecx
inc edx
cmp edx, 0x34f
jb 0x100a4950
mov ecx, dword [esi + 8]
xor ecx, dword [esi + 0xd44]
and ecx, 0x7fffffff
xor ecx, dword [esi + 0xd44]
mov eax, ecx
shr ecx, 1
and eax, 1
mov eax, dword [eax*4 + 0x1039bbd0]
xor eax, dword [esi + 0x724]
xor eax, ecx
mov dword [esi + 0xd44], eax
xor eax, eax
mov dword [esi], 0
mov ecx, dword [esi + eax*4 + 8]
inc eax
mov dword [esi], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
pop esi
ret
Function at 0x100c9080
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101fc9e3
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x103b9004]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0x11
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0xa
mov dword [ebp - 4], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0x11
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0xa
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0x11
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0xa
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0x11
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0xa
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0x11
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0xa
mov dword [esi + 0x90], 0
mov dword [esi + 0x94], 0
mov dword [esi + 0x98], 0x11
mov dword [esi + 0x9c], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0xa4], 0
mov dword [esi + 0xa8], 0xa
lea eax, [esi + 0xac]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0x11
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0xa
lea eax, [esi + 0xc8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0x11
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0xa
mov edi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
lea eax, [esi + 0xe4]
test eax, eax
je 0x100c927f
push 0
push eax
call edi
lea eax, [esi + 0xfc]
test eax, eax
je 0x100c928e
push 0
push eax
call edi
lea eax, [esi + 0x114]
test eax, eax
je 0x100c929d
push 0
push eax
call edi
lea eax, [esi + 0x12c]
test eax, eax
je 0x100c92ac
push 0
push eax
call edi
lea eax, [esi + 0x144]
test eax, eax
je 0x100c92bb
push 0
push eax
call edi
lea eax, [esi + 0x15c]
test eax, eax
je 0x100c92ca
push 0
push eax
call edi
lea eax, [esi + 0x174]
test eax, eax
je 0x100c92d9
push 0
push eax
call edi
push 1
push 0x40
lea ecx, [esi + 4]
mov byte [ebp - 4], 0xe
call fcn.10093140
push 1
push 0x20
lea ecx, [esi + 0x20]
call fcn.10093140
push 1
push 0x10
lea ecx, [esi + 0x3c]
call fcn.10093140
push 1
push 0x40
lea ecx, [esi + 0x58]
call fcn.10093140
push 1
push 0x10
lea ecx, [esi + 0x74]
call fcn.10093140
push 1
push 0x20
lea ecx, [esi + 0xac]
call fcn.10093140
push 1
push 0x40
lea ecx, [esi + 0xc8]
call fcn.10093140
mov eax, esi
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 0x100d4940
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x103b9004]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edi
mov eax, dword [edi]
test eax, eax
je 0x100d496d
add eax, 0xc
jmp 0x100d4972
mov eax, 0x10202374
push 0x102023a0
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x100d4ad4
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push 2
push 0
push ebx
call esi
add esp, 0xc
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
add esp, 4
mov dword [esp + 0xc], eax
push 0
push 0
push ebx
call esi
add esp, 0xc
lea eax, [esp + 0x1c]
push ebx
push 1
push 0xc
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
movzx ecx, byte [esp + 0x2c]
add esp, 0x10
movzx eax, byte [esp + 0x1d]
shl ecx, 8
or ecx, eax
movzx eax, byte [esp + 0x1e]
shl ecx, 8
or ecx, eax
movzx eax, byte [esp + 0x1f]
shl ecx, 8
or ecx, eax
cmp ecx, 0x74746366
jne 0x100d4ab9
movzx edi, byte [esp + 0x24]
movzx eax, byte [esp + 0x25]
shl edi, 8
or edi, eax
movzx eax, byte [esp + 0x26]
shl edi, 8
or edi, eax
movzx eax, byte [esp + 0x27]
shl edi, 8
or edi, eax
lea ecx, [edi*4]
test ecx, ecx
je 0x100d4aca
lea eax, [ecx - 1]
cmp eax, 0x7ffffffe
jbe 0x100d4a3d
mov byte [0], 0
jmp 0x100d4aca
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
test esi, esi
je 0x100d4aca
push ebx
push 1
lea eax, [edi*4]
push eax
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
test edi, edi
je 0x100d4aad
add esi, 2
nop dword [eax]
movzx ecx, byte [esi - 2]
movzx eax, byte [esi - 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 1]
shl ecx, 8
or ecx, eax
push ecx
push dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push ebx
push dword [esp + 0x20]
call fcn.100d4af0
lea esi, [esi + 4]
sub edi, 1
jne 0x100d4a70
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x100d4aca
mov ecx, dword [esp + 0x10]
push 0
push dword [esp + 0x10]
push ebx
push edi
call fcn.100d4af0
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.101f3fd0
mov esp, ebp
pop ebp
ret 4
Function at 0x100d5090
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x100d51ee
cmp dword [ebp + 0x14], 0
mov dword [ebp + 8], 0
jbe 0x100d50d6
mov eax, dword [ebx]
test eax, eax
je 0x100d50b7
add eax, 0xc
jmp 0x100d50bc
mov eax, 0x10202374
push 0x102023a0
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 8
mov dword [ebp + 8], eax
test eax, eax
je 0x100d51ee
mov eax, dword [ebp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
test eax, eax
jne 0x100d50f6
cmp dword [ebx + 0x10], esi
jne 0x100d51aa
mov esi, dword [ebx + 0x14]
xor edi, edi
jmp 0x100d51aa
cmp eax, 0x74746366
jne 0x100d5115
cmp dword [ebx + 0x10], esi
je 0x100d510c
mov esi, dword [ebx + 0x14]
xor edi, edi
jmp 0x100d51aa
xor esi, esi
xor edi, edi
jmp 0x100d51aa
mov ecx, dword [ebx + 0x18]
test ecx, ecx
je 0x100d5121
mov eax, dword [ecx + 4]
jmp 0x100d5123
xor eax, eax
cdq
and edx, 0xf
lea ebx, [edx + eax]
sar ebx, 4
test ebx, ebx
je 0x100d51d4
lea edx, [ecx + 0xc]
neg ecx
sbb ecx, ecx
and ecx, edx
add ecx, 2
movzx edx, byte [ecx - 2]
movzx eax, byte [ecx - 1]
shl edx, 8
or edx, eax
movzx eax, byte [ecx]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 1]
shl edx, 8
or edx, eax
cmp edx, dword [ebp + 0xc]
jne 0x100d51a2
movzx edi, byte [ecx + 6]
movzx eax, byte [ecx + 7]
movzx esi, byte [ecx + 0xa]
shl edi, 8
or edi, eax
shl esi, 8
movzx eax, byte [ecx + 8]
shl edi, 8
or edi, eax
movzx eax, byte [ecx + 9]
shl edi, 8
or edi, eax
movzx eax, byte [ecx + 0xb]
or esi, eax
movzx eax, byte [ecx + 0xc]
shl esi, 8
or esi, eax
movzx eax, byte [ecx + 0xd]
shl esi, 8
or esi, eax
add ecx, 0x10
sub ebx, 1
jne 0x100d5141
test esi, esi
je 0x100d51d4
cmp dword [ebp + 0x14], esi
jb 0x100d51d4
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x100d51e5
push 0
push edi
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push ebx
push 1
push esi
push dword [ebp + 0x10]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x1c
mov eax, dword [ebp + 8]
test eax, eax
je 0x100d51e5
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x10
xor eax, eax
pop ebx
pop ebp
ret 0x10
Function at 0x100e4cb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ecx]
xor ebx, ebx
push edi
mov edi, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp + 8], ebx
jle 0x100e4cf7
lea eax, [esi + 1]
movzx esi, al
mov edx, dword [ecx + esi*4 + 8]
lea eax, [edx + edi]
movzx edi, al
mov eax, dword [ecx + edi*4 + 8]
mov dword [ecx + esi*4 + 8], eax
add eax, edx
mov dword [ecx + edi*4 + 8], edx
mov edx, dword [ebp - 4]
movzx eax, al
mov al, byte [ecx + eax*4 + 8]
xor byte [ebx + edx], al
inc ebx
cmp ebx, dword [ebp + 8]
jl 0x100e4cc6
mov dword [ecx + 4], edi
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100f0a90
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
movups xmm0, xmmword [edx]
push ebx
push esi
movups xmmword [ebp - 0x158], xmm0
mov ebx, ecx
lea eax, [ebp - 0x150]
movups xmm0, xmmword [edx + 0x10]
push edi
mov dword [ebp - 0x10], ebx
movups xmmword [ebp - 0x148], xmm0
movups xmm0, xmmword [edx + 0x20]
movups xmmword [ebp - 0x138], xmm0
movups xmm0, xmmword [edx + 0x30]
mov edx, 0x40
movups xmmword [ebp - 0x128], xmm0
mov ecx, dword [eax + 0x2c]
lea eax, [eax + 4]
xor ecx, dword [eax + 0x14]
xor ecx, dword [eax - 0xc]
xor ecx, dword [eax - 4]
rol ecx, 1
mov dword [eax + 0x34], ecx
sub edx, 1
jne 0x100f0ad7
mov eax, dword [ebx]
mov edx, eax
mov edi, dword [ebx + 4]
mov esi, dword [ebx + 8]
mov ebx, dword [ebx + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], edx
mov dword [ebp - 8], 0
mov eax, dword [eax + 0x10]
mov dword [ebp - 0xc], eax
mov ecx, edi
rol edx, 5
not ecx
mov eax, esi
and ecx, ebx
and eax, edi
or ecx, eax
mov eax, dword [ebp - 0xc]
add edx, ecx
mov dword [ebp - 0xc], ebx
mov ecx, dword [ebp - 8]
mov ebx, esi
add eax, 0x5a827999
mov esi, edi
mov edi, dword [ebp - 4]
ror esi, 2
add edx, dword [ebp + ecx*4 - 0x158]
inc ecx
add edx, eax
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
cmp ecx, 0x14
jl 0x100f0b13
mov dword [ebp - 4], 0x14
mov eax, ebx
mov ecx, edx
xor eax, esi
rol ecx, 5
xor eax, edi
add ecx, eax
mov eax, dword [ebp - 4]
add ecx, dword [ebp + eax*4 - 0x158]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], ebx
mov ebx, esi
mov esi, edi
mov edi, edx
ror esi, 2
lea edx, [eax + 0x6ed9eba1]
mov eax, dword [ebp - 4]
inc eax
add edx, ecx
mov dword [ebp - 4], eax
cmp eax, 0x28
jl 0x100f0b58
mov dword [ebp - 4], edx
mov dword [ebp - 8], 0x28
nop dword [eax]
mov ecx, esi
rol edx, 5
or ecx, edi
mov eax, esi
and eax, edi
and ecx, ebx
or ecx, eax
add edx, 0x8f1bbcdc
mov eax, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov dword [ebp - 0xc], ebx
mov ebx, esi
mov esi, edi
mov edi, dword [ebp - 4]
add ecx, dword [ebp + eax*4 - 0x158]
inc eax
add edx, ecx
ror esi, 2
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
cmp eax, 0x3c
jl 0x100f0ba0
mov dword [ebp - 8], 0x3c
mov ecx, edx
mov eax, ebx
mov edx, dword [ebp - 8]
xor eax, esi
rol ecx, 5
xor eax, edi
add ecx, 0xca62c1d6
add ecx, dword [ebp - 0xc]
add eax, dword [ebp + edx*4 - 0x158]
add eax, ecx
mov ecx, ebx
mov ebx, esi
mov dword [ebp - 0x14], eax
mov esi, edi
mov dword [ebp - 0xc], ecx
mov edi, dword [ebp - 4]
mov edx, eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
inc eax
ror esi, 2
mov dword [ebp - 8], eax
cmp eax, 0x50
jl 0x100f0be4
mov eax, edx
mov edx, dword [ebp - 0x10]
add eax, dword [ebp - 0x18]
add dword [edx + 4], edi
add dword [edx + 8], esi
add dword [edx + 0xc], ebx
add dword [edx + 0x10], ecx
pop edi
pop esi
mov dword [edx], eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100f0f70
Capabilities:
Hash data using sha256

Disassembly:
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0x6a09e667
mov dword [ecx + 0xc], 0xbb67ae85
mov dword [ecx + 0x10], 0x3c6ef372
mov dword [ecx + 0x14], 0xa54ff53a
mov dword [ecx + 0x18], 0x510e527f
mov dword [ecx + 0x1c], 0x9b05688c
mov dword [ecx + 0x20], 0x1f83d9ab
mov dword [ecx + 0x24], 0x5be0cd19
ret
Function at 0x1010dd60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101fe909
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x103b9004]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
mov dword [esi], vtable.CPDF_TextPage.0
mov dword [esi + 4], 0
mov dword [esi + 8], 1
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 2
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0x44
mov dword [esi + 0x34], 0x80200
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
lea ecx, [esi + 0x40]
mov dword [ecx], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0x44
mov dword [esi + 0x5c], 0x80032
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x80], 0
lea ebx, [esi + 0xa0]
mov dword [esi + 0x90], 0x3f800000
mov dword [esi + 0x84], 0x3f800000
mov dword [esi + 0x98], 0
mov dword [esi + 0x94], 0
mov dword [esi + 0x8c], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x9c], 0
mov dword [ebx + 0xc], 0x3f800000
mov dword [ebx], 0x3f800000
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 8], 0
mov dword [ebx + 4], 0
mov dword [esi + 0xb8], 0
mov dword [esi + 0xbc], 0
mov dword [esi + 0xc0], 0
mov dword [esi + 0xc4], 0
mov dword [esi + 0xc8], 0
mov dword [esi + 0xcc], 8
mov dword [esi + 0xd0], 0
mov dword [esi + 0xd4], 0
mov dword [esi + 0xd8], 0
mov dword [esi + 0xdc], 0
mov dword [esi + 0xe0], 0
mov dword [esi + 0xe4], 0x10
mov dword [esi + 0xe8], 0
mov dword [esi + 0xec], 0
mov dword [esi + 0xf0], 0
mov dword [esi + 0xf4], 0
mov dword [esi + 0xf8], 0
mov dword [esi + 0xfc], 0x1c
mov edi, dword [ebp + 8]
mov byte [ebp - 4], 8
mov dword [esi + 0x100], 0xffffffff
mov dword [esi + 0x104], 0
mov dword [esi + 0x10c], 0
mov dword [esi + 0x108], 0
mov dword [esi + 0x110], 0
mov dword [esi + 0x28], edi
mov dword [esi + 0x7c], 0
cmp dword [ecx + 0x10], 0
mov dword [ecx + 4], 0x2800
jge 0x1010dfec
mov eax, dword [ecx + 0xc]
neg eax
push eax
call fcn.1008ce10
cvttss2si eax, dword [edi + 0x90]
push 0
mov ecx, edi
push eax
cvttss2si eax, dword [edi + 0x8c]
push eax
push 0
push 0
push ebx
call fcn.1009ff20
mov eax, esi
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 0x1011f7c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
xor ecx, ecx
mov dword [ebp - 4], ebx
mov edi, edx
mov eax, dword [esi + 0x20]
sub eax, 0x20
mov dword [esi + 0x5c], 0
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x28]
mov dword [esi + 0x58], eax
mov word [esi + 0x56], 0
mov dword [esi + 0x30], 0
mov dword [eax + 8], eax
xor eax, eax
mov dword [ebp - 0x10], edi
mov word [esi + 0x54], ax
cmp cx, word [esi + 0x80]
jge 0x1011f8f3
xor edx, edx
nop dword [eax]
nop word [eax + eax]
mov eax, dword [esi + 0x8c]
mov ecx, esi
mov dword [esi + 0x64], 0
mov dword [esi + 0x60], 0
push edi
movzx eax, word [eax + ebx*2]
push eax
call fcn.1011f460
add esp, 8
test al, al
jne 0x1011f989
mov eax, dword [esi + 0x8c]
mov ecx, dword [esi + 0x48]
movzx eax, word [eax + ebx*2]
mov ebx, dword [esi + 4]
mov dword [ebp - 0xc], eax
lea eax, [ebx - 1]
test ecx, eax
jne 0x1011f888
cmp ecx, dword [esi + 0x4c]
jl 0x1011f888
cmp ecx, dword [esi + 0x50]
jg 0x1011f888
mov edx, dword [esi + 0x60]
test edx, edx
je 0x1011f888
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0xc]
xor eax, dword [edx + 0xc]
test al, 8
jne 0x1011f888
add dword [esi + 0x28], 0xfffffffc
mov eax, dword [esi + 0x58]
mov edx, ebx
mov edi, dword [esi + 8]
neg edx
mov dword [ebp - 8], eax
test byte [eax + 0xc], 8
je 0x1011f8a5
mov eax, ecx
and eax, edx
sub ecx, eax
cmp ecx, edi
jmp 0x1011f8b0
lea eax, [ebx - 1]
add eax, ecx
and eax, edx
sub eax, ecx
cmp eax, edi
setge dl
mov ecx, esi
call fcn.1011e940
test al, al
jne 0x1011f989
mov eax, dword [esi + 0x60]
test eax, eax
je 0x1011f8cf
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x1c], eax
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
inc eax
mov edi, dword [ebp - 0x10]
inc ebx
movzx edx, ax
movsx eax, word [esi + 0x80]
mov dword [ebp - 4], ebx
cmp ebx, eax
jl 0x1011f820
movzx eax, word [esi + 0x54]
mov edx, dword [esi + 0x5c]
movzx ebx, ax
cmp ax, 1
jbe 0x1011f992
test edx, edx
je 0x1011f992
nop dword [eax + eax]
lea edi, [edx + 4]
mov dword [ebp - 0x10], edi
cmp bx, 1
jbe 0x1011f927
mov ecx, dword [edx + 0x10]
mov eax, dword [edx + 8]
lea eax, [eax + ecx*4]
jmp 0x1011f929
xor eax, eax
mov dword [edi], eax
test byte [edx + 0xc], 8
mov edi, dword [edx + 0x14]
mov ecx, edi
mov eax, dword [edx + 0x10]
je 0x1011f93e
dec edi
add edi, eax
jmp 0x1011f94e
sub ecx, eax
lea eax, [eax*4 - 4]
inc ecx
add dword [edx + 8], eax
mov dword [edx + 0x14], ecx
mov edx, ecx
mov ecx, esi
call fcn.1011e9d0
test al, al
jne 0x1011f989
lea edx, [edi + 1]
mov ecx, esi
call fcn.1011e9d0
test al, al
jne 0x1011f989
mov edx, dword [ebp - 0x10]
add ebx, 0xffff
mov edx, dword [edx]
test bx, bx
jne 0x1011f910
mov eax, dword [esi + 0x28]
cmp eax, dword [esi + 0x24]
pop edi
pop esi
setae al
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x28]
cmp eax, dword [esi + 0x24]
pop edi
mov dword [esi + 0x5c], 0
setae al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10181f20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov eax, ecx
mov dword [ebp - 8], ebx
imul eax, dword [ebp + 0xc]
push esi
push edi
mov edi, edx
cmp ecx, 1
jne 0x10181fcc
imul eax, dword [ebp + 0x10]
mov esi, ecx
mov dword [ebp - 0x14], eax
cmp eax, ecx
jle 0x10182042
mov ecx, esi
mov eax, esi
and ecx, 7
shr eax, 3
mov dword [ebp - 0xc], ecx
mov edi, 8
test ecx, ecx
jne 0x10181f71
lea edx, [eax - 1]
mov dword [ebp + 8], edx
jmp 0x10181f74
mov dword [ebp + 8], eax
mov dl, byte [eax + ebx]
add eax, ebx
mov dword [ebp - 0x10], eax
mov eax, 7
sub eax, ecx
movzx ebx, dl
mov dword [ebp - 4], eax
test ecx, ecx
movzx eax, cl
mov cl, 8
cmove eax, edi
mov edi, dword [ebp - 8]
sub cl, al
mov eax, dword [ebp + 8]
mov al, byte [eax + edi]
shr al, cl
mov cl, 7
sub cl, byte [ebp - 0xc]
shr dl, cl
xor al, dl
test al, 1
mov eax, dword [ebp - 4]
je 0x10181fb5
bts ebx, eax
jmp 0x10181fb8
btr ebx, eax
mov eax, dword [ebp - 0x10]
inc esi
mov byte [eax], bl
mov ebx, edi
cmp esi, dword [ebp - 0x14]
jl 0x10181f53
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp ecx, 0x10
jne 0x1018202f
cmp eax, edi
jge 0x10182042
sub edi, eax
lea esi, [ebx + 1]
dec edi
mov ebx, eax
shr edi, 1
add esi, eax
not ebx
inc edi
nop dword [eax]
movzx eax, byte [ebx + esi]
lea esi, [esi + 2]
movzx edx, byte [ebx + esi - 1]
movzx ecx, byte [esi - 3]
shl ax, 8
or dx, ax
shl cx, 8
movzx eax, byte [esi - 2]
or cx, ax
add dx, cx
movzx ecx, dx
mov eax, ecx
mov byte [esi - 2], cl
shr eax, 8
mov byte [esi - 3], al
sub edi, 1
jne 0x10181ff0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, edi
jge 0x10182042
mov edx, ebx
sub edx, eax
mov cl, byte [edx + eax]
add byte [eax + ebx], cl
inc eax
cmp eax, edi
jl 0x10182037
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10185160
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x103b9004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
lea ebx, [ebp - 0x24]
movups xmm0, xmmword [edi + 0x3c8]
lea eax, [edi + 0x3c8]
mov dword [ebp - 0x30], edi
mov esi, ecx
mov dword [ebp - 0x34], eax
mov ecx, eax
or ecx, ebx
and ecx, 3
movups xmmword [ebx], xmm0
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x38], ecx
test ebx, ebx
jle 0x101852da
dec ebx
add edx, 2
shr ebx, 4
add esi, 2
inc ebx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], ebx
nop word [eax + eax]
movzx ecx, byte [edx - 2]
movzx eax, byte [edx - 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 3]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x14], ecx
movzx ecx, byte [edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 7]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x10], ecx
movzx ecx, byte [edx + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 8]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xb]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0xc], ecx
movzx ecx, byte [edx + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xc]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xd]
shl ecx, 8
or ecx, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [edi + 0x3c4]
push edi
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 8], ecx
call eax
add esp, 8
xor edi, edi
nop word [eax + eax]
mov al, byte [ebp + edi - 0x14]
xor al, byte [ebp + edi - 0x24]
mov edx, dword [ebp + edi - 0x24]
mov ecx, edx
mov ebx, dword [ebp + edi - 0x14]
mov byte [esi + 1], al
mov eax, ebx
shr ecx, 8
shr eax, 8
xor cl, al
mov eax, ebx
mov byte [esi], cl
mov ecx, edx
shr eax, 0x10
shr ecx, 0x10
xor cl, al
shr edx, 0x18
mov eax, dword [ebp + edi - 0x48]
shr ebx, 0x18
xor dl, bl
mov dword [ebp + edi - 0x24], eax
mov byte [esi - 1], cl
add edi, 4
mov byte [esi - 2], dl
add esi, 4
cmp edi, 0x10
jl 0x10185270
mov edx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x30]
add edx, 0x10
sub dword [ebp - 0x2c], 1
mov dword [ebp - 0x28], edx
jne 0x101851c0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
movups xmm0, xmmword [ebp - 0x24]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
movups xmmword [eax], xmm0
call fcn.101f3fd0
mov esp, ebp
pop ebp
ret