joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100b93e0
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov edi, dword [esp + 0xc]
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [edi + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
push 0xf
push edi
mov esi, eax
call fcn.100868b0
add esp, 8
test esi, esi
jg 0x100b9437
je 0x100b9419
cmp esi, 0xffffffff
jne 0x100b9437
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.100b9630
add esp, 4
test eax, eax
je 0x100b9437
push 0xa
push edi
call fcn.10087010
add esp, 8
pop edi
mov eax, esi
pop esi
ret

Function at 0x100be110
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebx
mov ebx, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x14]
cmp ebx, 2
je 0x100be16c
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100be15d
push eax
push 0
lea eax, [esp + 0x24]
push eax
push 0
call fcn.100a8e10
add esp, 0x10
cmp dword [esp + 0x1c], 0xffffffff
je 0x100be15d
push 0x2f
push str.cryptoececx_meth.c
push 0x66
push 0x10a
push 0x10
call fcn.10092a20
add esp, 0x14
xor eax, eax
pop edi
pop ebx
ret
test edi, edi
je 0x100be168
cmp dword [esp + 0x18], 0x20
je 0x100be16c
push 0x35
jmp 0x100be142
push esi
push 0x3a
push str.cryptoececx_meth.c
push 0x24
call fcn.100867c0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x100be1a2
push 0x3c
push str.cryptoececx_meth.c
push 0x41
push 0x10a
push 0x10
call fcn.10092a20
add esp, 0x14
xor eax, eax
pop esi
pop edi
pop ebx
ret
test ebx, ebx
jne 0x100be1b9
push dword [esp + 0x1c]
push edi
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x100be265
push 0x43
push str.cryptoececx_meth.c
push 0x20
call fcn.100b9900
add esp, 0xc
mov dword [esi + 0x20], eax
test eax, eax
jne 0x100be1fc
push 0x45
push str.cryptoececx_meth.c
push 0x41
push 0x10a
push 0x10
call fcn.10092a20
push 0x46
push str.cryptoececx_meth.c
push esi
call fcn.10086580
add esp, 0x20
xor eax, eax
pop esi
pop edi
pop ebx
ret
cmp ebx, 2
jne 0x100be24b
push 0x20
push eax
call fcn.10090110
add esp, 8
test eax, eax
jg 0x100be235
push 0x4b
push str.cryptoececx_meth.c
push dword [esi + 0x20]
call fcn.100b98f0
push 0x4c
push str.cryptoececx_meth.c
push esi
call fcn.10086580
add esp, 0x18
xor eax, eax
pop esi
pop edi
pop ebx
ret
mov eax, dword [esi + 0x20]
and byte [eax], 0xf8
mov eax, dword [esi + 0x20]
and byte [eax + 0x1f], 0x7f
mov eax, dword [esi + 0x20]
or byte [eax + 0x1f], 0x40
jmp 0x100be259
movups xmm0, xmmword [edi]
movups xmmword [eax], xmm0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [eax + 0x10], xmm0
push dword [esi + 0x20]
push esi
call fcn.100e0440
add esp, 8
push esi
push 0x40a
push dword [esp + 0x18]
call fcn.1008b2f0
add esp, 0xc
mov eax, 1
pop esi
pop edi
pop ebx
ret
Function at 0x100c64a0
Capabilities:
Query environment variable

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, ebx
jne 0x100c64c5
push 0x11f
push str.cryptoengineeng_list.c
push 0x43
push 0x6a
push 0x26
call fcn.10092a20
add esp, 0x14
xor eax, eax
pop ebx
ret
push 0x100bfd70
push 0x101a4e3c
call fcn.10095ad0
add esp, 8
neg eax
sbb eax, eax
test dword [0x101a4e40], eax
jne 0x100c64ff
push 0x123
push str.cryptoengineeng_list.c
push 0x41
push 0x6a
push 0x26
call fcn.10092a20
add esp, 0x14
xor eax, eax
pop ebx
ret
push esi
push edi
push dword [0x101a52c8]
call fcn.10095ac0
mov esi, dword [0x101a4e50]
add esp, 4
test esi, esi
je 0x100c657c
nop dword [eax]
mov ecx, dword [esi]
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100c6544
test dl, dl
je 0x100c6540
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100c6544
add eax, 2
add ecx, 2
test dl, dl
jne 0x100c6524
xor eax, eax
jmp 0x100c6549
sbb eax, eax
or eax, 1
test eax, eax
je 0x100c6556
mov esi, dword [esi + 0x60]
test esi, esi
jne 0x100c6520
jmp 0x100c657c
test byte [esi + 0x4c], 4
je 0x100c6579
call fcn.100bfb90
mov edi, eax
test edi, edi
jne 0x100c656b
xor esi, esi
jmp 0x100c657c
push esi
push edi
call fcn.100c6770
add esp, 8
mov esi, edi
jmp 0x100c657c
inc dword [esi + 0x50]
push dword [0x101a52c8]
call fcn.10095b40
add esp, 4
test esi, esi
jne 0x100c6666
mov ecx, str.dynamic
mov eax, ebx
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100c65c0
test dl, dl
je 0x100c65bc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100c65c0
add eax, 2
add ecx, 2
test dl, dl
jne 0x100c65a0
xor eax, eax
jmp 0x100c65c5
sbb eax, eax
or eax, 1
test eax, eax
je 0x100c666c
push str.OPENSSL_ENGINES
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
test eax, eax
mov edi, str.C:Program_Files__x86_OpenSSLlibengines_1_1
push str.dynamic
cmovne edi, eax
call fcn.100c64a0
mov esi, eax
add esp, 8
test esi, esi
je 0x100c666c
push 0
push ebx
push 0x1016e380
push esi
call fcn.100d5550
add esp, 0x10
test eax, eax
je 0x100c666c
push 0
push 0x10168400
push str.DIR_LOAD
push esi
call fcn.100d5550
add esp, 0x10
test eax, eax
je 0x100c666c
push 0
push edi
push str.DIR_ADD
push esi
call fcn.100d5550
add esp, 0x10
test eax, eax
je 0x100c666c
push 0
push 0x1016e398
push str.LIST_ADD
push esi
call fcn.100d5550
add esp, 0x10
test eax, eax
je 0x100c666c
push 0
push 0
push str.LOAD
push esi
call fcn.100d5550
add esp, 0x10
test eax, eax
je 0x100c666c
pop edi
mov eax, esi
pop esi
pop ebx
ret
push esi
call fcn.100bfb00
push 0x153
push str.cryptoengineeng_list.c
push 0x74
push 0x6a
push 0x26
call fcn.10092a20
push ebx
push 0x1016e39c
push 2
call fcn.10092160
add esp, 0x24
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x100d1a00
Capabilities:
Encode data using base64

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
xor ebx, ebx
test esi, esi
jle 0x100d1aec
push edi
mov edi, dword [esp + 0x14]
inc edi
nop word [eax + eax]
movzx edx, byte [edi - 1]
cmp esi, 3
jl 0x100d1a7e
movzx ecx, byte [edi]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
mov ecx, edx
shr ecx, 0x12
and ecx, 0x3f
movzx ecx, byte [ecx + 0x10171028]
mov byte [eax], cl
mov ecx, edx
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + 0x10171028]
mov byte [eax + 1], cl
mov ecx, edx
shr ecx, 6
and ecx, 0x3f
and edx, 0x3f
movzx ecx, byte [ecx + 0x10171028]
mov byte [eax + 2], cl
movzx ecx, byte [edx + 0x10171028]
mov byte [eax + 3], cl
jmp 0x100d1acf
shl edx, 0x10
cmp esi, 2
jne 0x100d1a8e
movzx ecx, byte [edi]
shl ecx, 8
or edx, ecx
mov ecx, edx
shr ecx, 0x12
and ecx, 0x3f
movzx ecx, byte [ecx + 0x10171028]
mov byte [eax], cl
mov ecx, edx
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + 0x10171028]
mov byte [eax + 1], cl
cmp esi, 1
jne 0x100d1abb
lea ecx, [esi + 0x3c]
jmp 0x100d1ac8
shr edx, 6
and edx, 0x3f
movzx ecx, byte [edx + 0x10171028]
mov byte [eax + 2], cl
mov byte [eax + 3], 0x3d
sub esi, 3
add eax, 4
add ebx, 4
add edi, 3
test esi, esi
jg 0x100d1a20
pop edi
mov byte [eax], 0
mov eax, ebx
pop esi
pop ebx
ret
mov byte [eax], bl
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x100d1cb0
Capabilities:
Generate random numbers via winapi
Get memory capacity

Disassembly:
mov eax, 0x6c
call fcn.100857c0
mov eax, dword [0x1019b080]
xor eax, esp
mov dword [esp + 0x68], eax
push 0xf0000040
push 1
push 0
push 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x100d1d26
lea eax, [esp + 0x28]
push eax
push 0x40
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x100d1d1a
mov eax, 8
call fcn.100857c0
movsd xmm0, qword [0x101711a0]
lea eax, [esp + 0x30]
movsd qword [esp], xmm0
push 0x40
push eax
call fcn.10090090
add esp, 0x10
push 0
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0xf0000040
push 0x16
push str.Intel_Hardware_Cryptographic_Service_Provider
push 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x100d1d8a
lea eax, [esp + 0x28]
push eax
push 0x40
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x100d1d7e
mov eax, 8
call fcn.100857c0
movsd xmm0, qword [0x101711a0]
lea eax, [esp + 0x30]
movsd qword [esp], xmm0
push 0x40
push eax
call fcn.10090090
add esp, 0x10
push 0
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
call fcn.100d1e10
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, 8
call fcn.100857c0
movsd xmm0, qword [0x10149d98]
lea eax, [esp + 0x10]
movsd qword [esp], xmm0
push 0x20
push eax
call fcn.10090090
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 4], eax
mov eax, 8
call fcn.100857c0
movsd xmm0, qword [0x10149d98]
lea eax, [esp + 0xc]
movsd qword [esp], xmm0
push 4
push eax
call fcn.10090090
mov ecx, dword [esp + 0x78]
add esp, 0x10
xor ecx, esp
mov eax, 1
call fcn.10084980
add esp, 0x6c
ret
Function at 0x100e0440
Capabilities:
Encrypt data using curve25519

Disassembly:
mov eax, pe_nt_image_headers32
call fcn.100857c0
mov eax, dword [0x1019b080]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x124]
mov dword [esp], eax
mov eax, dword [esp + 0x128]
push ebx
push ebp
push esi
movups xmm0, xmmword [eax]
push edi
movups xmm1, xmmword [eax + 0x10]
movd eax, xmm0
movups xmmword [esp + 0xec], xmm1
and al, 0xf8
psrldq xmm1, 0xc
movups xmmword [esp + 0xdc], xmm0
mov byte [esp + 0xdc], al
movd eax, xmm1
shr eax, 0x18
and al, 0x3f
or al, 0x40
mov byte [esp + 0xfb], al
lea eax, [esp + 0xdc]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.100e2f60
mov eax, dword [esp + 0x6c]
add eax, dword [esp + 0x94]
mov dword [esp + 0xe4], eax
mov eax, dword [esp + 0x70]
add eax, dword [esp + 0x98]
mov dword [esp + 0xe8], eax
mov eax, dword [esp + 0x74]
add eax, dword [esp + 0x9c]
mov dword [esp + 0xec], eax
mov eax, dword [esp + 0x78]
add eax, dword [esp + 0xa0]
mov dword [esp + 0xf0], eax
mov eax, dword [esp + 0x7c]
add eax, dword [esp + 0xa4]
mov dword [esp + 0xf4], eax
mov eax, dword [esp + 0x80]
add eax, dword [esp + 0xa8]
mov ebp, dword [esp + 0xb4]
mov edx, dword [esp + 0x8c]
mov edi, dword [esp + 0xb8]
mov ecx, dword [esp + 0x90]
mov dword [esp + 0xf8], eax
mov eax, dword [esp + 0xac]
add eax, dword [esp + 0x84]
mov dword [esp + 0xfc], eax
mov eax, dword [esp + 0xb0]
add eax, dword [esp + 0x88]
mov dword [esp + 0x100], eax
lea eax, [edx + ebp]
mov dword [esp + 0x104], eax
lea eax, [edi + ecx]
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x94]
sub eax, dword [esp + 0x6c]
mov dword [esp + 0x10c], eax
mov eax, dword [esp + 0x98]
sub eax, dword [esp + 0x70]
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x9c]
sub eax, dword [esp + 0x74]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 0xa0]
sub eax, dword [esp + 0x78]
mov dword [esp + 0x118], eax
mov eax, dword [esp + 0xa4]
sub eax, dword [esp + 0x7c]
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0xa8]
sub eax, dword [esp + 0x80]
mov dword [esp + 0x120], eax
mov eax, dword [esp + 0xac]
sub eax, dword [esp + 0x84]
mov dword [esp + 0x124], eax
mov eax, dword [esp + 0xb0]
sub eax, dword [esp + 0x88]
mov dword [esp + 0x128], eax
lea eax, [esp + 0x10c]
sub ebp, edx
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x130], ebp
sub edi, ecx
push eax
mov dword [esp + 0x138], edi
call fcn.100e0c40
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0xf0]
push eax
push eax
call fcn.100e0ec0
lea eax, [esp + 0xf8]
push eax
push dword [esp + 0x30]
call fcn.100e2720
mov ecx, dword [esp + 0x150]
add esp, 0x24
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10084980
add esp, 0x120
ret
Function at 0x100edb40
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.100894c0
add esp, 4
cmp eax, 0x72
jne 0x100edc8c
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
push ebp
push edi
push esi
push dword [esp + 0x28]
mov edi, eax
and eax, 1
push dword [esp + 0x28]
shr edi, 1
push dword [esp + 0x28]
lea ebp, [eax + edi]
push ebp
push dword [esp + 0x28]
call fcn.100aeec0
push eax
call fcn.100ed8d0
add esp, 0x1c
test eax, eax
jne 0x100edb93
pop edi
pop ebp
pop esi
ret
push ebx
push 0xf8
push str.cryptokdf_tls1_prf.c
push esi
call fcn.10086550
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x100edbe5
mov eax, dword [esp + 0x18]
push esi
push ebx
push dword [esp + 0x2c]
add eax, edi
push dword [esp + 0x2c]
push ebp
push eax
call fcn.100a8c40
push eax
call fcn.100ed8d0
add esp, 0x1c
test eax, eax
jne 0x100edbec
push 0xfd
push str.cryptokdf_tls1_prf.c
push esi
push ebx
call fcn.10086650
add esp, 0x10
pop ebx
pop edi
pop ebp
xor eax, eax
pop esi
ret
xor edi, edi
test esi, esi
je 0x100edc6e
mov edx, dword [esp + 0x28]
cmp esi, 0x20
jb 0x100edc4b
lea eax, [esi - 1]
lea ecx, [edx - 1]
add eax, ebx
add ecx, esi
cmp edx, eax
ja 0x100edc11
cmp ecx, ebx
jae 0x100edc4b
mov eax, esi
mov ecx, esi
and eax, 0x1f
mov ebp, ebx
sub ecx, eax
mov eax, edx
sub ebp, edx
movups xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movups xmm1, xmmword [eax + ebp - 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
movups xmm1, xmmword [ebx + edi + 0x10]
add edi, 0x20
movups xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
cmp edi, ecx
jb 0x100edc20
cmp edi, esi
jae 0x100edc6e
mov ebp, ebx
lea ecx, [edi + edx]
sub ebp, edx
mov edx, esi
sub edx, edi
nop word [eax + eax]
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edx, 1
jne 0x100edc60
push 0x102
push str.cryptokdf_tls1_prf.c
push esi
push ebx
call fcn.10086650
add esp, 0x10
mov eax, 1
pop ebx
pop edi
pop ebp
pop esi
ret
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
push esi
call fcn.100ed8d0
add esp, 0x1c
neg eax
sbb eax, eax
neg eax
pop esi
ret
Function at 0x100fce80
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push edi
mov eax, dword [ebx + 4]
cmp eax, dword [ecx + 4]
jge 0x100fce97
mov edi, ecx
jmp 0x100fce9b
mov edi, ebx
mov ebx, ecx
push dword [edi + 4]
mov ebp, dword [esp + 0x14]
push ebp
call fcn.10098e40
add esp, 8
test eax, eax
jne 0x100fceb3
pop edi
pop ebp
pop ebx
ret
xor eax, eax
cmp dword [ebx + 4], eax
jle 0x100fced7
push esi
nop dword [eax + eax]
mov ecx, dword [ebx]
mov edx, dword [edi]
mov esi, dword [ecx + eax*4]
mov ecx, dword [ebp]
xor esi, dword [edx + eax*4]
mov dword [ecx + eax*4], esi
inc eax
cmp eax, dword [ebx + 4]
jl 0x100fcec0
pop esi
cmp eax, dword [edi + 4]
jge 0x100fcef1
nop dword [eax]
mov ecx, dword [edi]
mov edx, dword [ebp]
mov ecx, dword [ecx + eax*4]
mov dword [edx + eax*4], ecx
inc eax
cmp eax, dword [edi + 4]
jl 0x100fcee0
mov eax, dword [edi + 4]
push ebp
mov dword [ebp + 4], eax
call fcn.10098c40
add esp, 4
mov eax, 1
pop edi
pop ebp
pop ebx
ret
Function at 0x10100ea0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x8c
call fcn.100857c0
mov eax, dword [0x1019b080]
xor eax, esp
mov dword [esp + 0x88], eax
mov edx, dword [esp + 0xa0]
xor eax, eax
push ebx
mov ebx, dword [esp + 0x9c]
push ebp
mov ebp, dword [esp + 0x9c]
push esi
mov esi, dword [esp + 0x9c]
push edi
mov edi, dword [esp + 0xac]
mov dword [esp + 0x10], edx
test edi, edi
je 0x10100f06
cmp edi, dword [esi]
je 0x10100efd
test ebp, ebp
je 0x10100f80
test ebx, ebx
js 0x10100f80
mov eax, 1
mov dword [esi], edi
jmp 0x10100f0c
mov edi, dword [esi]
test edi, edi
je 0x10100f80
test ebp, ebp
je 0x1010109a
push edi
call fcn.1008f080
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, 0x80
jle 0x10100f40
push 0x28
push str.cryptohmachmac.c
push str.assertion_failed:_j____int_sizeof_ctx__key_
call fcn.10097470
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, ebx
jge 0x10100f9b
push dword [esp + 0x10]
push edi
push dword [esi + 4]
call fcn.100a8550
add esp, 0xc
test eax, eax
je 0x10100f80
push ebx
push ebp
push dword [esi + 4]
call fcn.100a8700
add esp, 0xc
test eax, eax
je 0x10100f80
lea ebp, [esi + 0x10]
push ebp
lea eax, [esi + 0x14]
push eax
push dword [esi + 4]
call fcn.100a84b0
add esp, 0xc
test eax, eax
jne 0x10100fb7
xor eax, eax
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10084980
add esp, 0x8c
ret
cmp ebx, 0x80
ja 0x10100f80
push ebx
lea eax, [esi + 0x14]
push ebp
push eax
call sub.VCRUNTIME140.dll_memcpy
lea ebp, [esi + 0x10]
add esp, 0xc
mov dword [ebp], ebx
mov ecx, dword [ebp]
cmp ecx, 0x80
je 0x10100fda
mov eax, 0x80
sub eax, ecx
push eax
lea eax, [esi + 0x14]
add eax, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov al, byte [esi + ecx + 0x14]
xor al, 0x36
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x80
jl 0x10100fe0
push edx
push edi
push dword [esi + 8]
call fcn.100a8550
add esp, 0xc
test eax, eax
je 0x10100f80
push edi
call fcn.1008f080
push eax
lea eax, [esp + 0x20]
push eax
push dword [esi + 8]
call fcn.100a8700
add esp, 0x10
test eax, eax
je 0x10100f80
xor ecx, ecx
nop dword [eax]
mov al, byte [esi + ecx + 0x14]
xor al, 0x5c
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x80
jl 0x10101030
push dword [esp + 0x10]
push edi
push dword [esi + 0xc]
call fcn.100a8550
add esp, 0xc
test eax, eax
je 0x10100f80
push edi
call fcn.1008f080
push eax
lea eax, [esp + 0x20]
push eax
push dword [esi + 0xc]
call fcn.100a8700
add esp, 0x10
test eax, eax
je 0x10100f80
push dword [esi + 8]
push dword [esi + 4]
call fcn.100a8730
add esp, 8
test eax, eax
je 0x10100f80
mov eax, 1
jmp 0x10100f82
test eax, eax
je 0x1010107a
jmp 0x10100fde
Function at 0x10106460
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
mov edi, 0x80
mov byte [ebx], 0
cmp ecx, edi
cmovg ecx, edi
test ebp, ebp
jg 0x10106488
mov ebp, 0x400
jmp 0x10106492
mov eax, 0x400
cmp ebp, eax
cmovg ebp, eax
test ecx, ecx
jle 0x101064b4
sub dword [esp + 0x1c], ebx
mov edx, ebx
mov ebx, dword [esp + 0x1c]
mov esi, ecx
mov al, byte [ebx + edx]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub esi, 1
jne 0x101064a2
mov ebx, dword [esp + 0x14]
movzx edx, byte [ebx + ecx - 1]
cmp ecx, edi
jge 0x101064d9
mov esi, ebx
sub esi, ecx
movzx eax, byte [esi + ecx]
add eax, edx
movzx eax, al
movzx edx, byte [eax + 0x10189870]
mov byte [ecx + ebx], dl
inc ecx
cmp ecx, edi
jl 0x101064c1
lea eax, [ebp + 7]
mov edx, 0xff
sar eax, 3
neg ebp
sub edi, eax
mov dword [esp + 0x14], eax
movzx eax, byte [edi + ebx]
lea esi, [edi + ebx]
and ebp, 7
mov ecx, ebp
sar edx, cl
and edx, eax
movzx ecx, byte [edx + 0x10189870]
mov byte [esi], cl
test edi, edi
je 0x10106528
mov edx, dword [esp + 0x14]
nop dword [eax]
movzx eax, byte [esi + edx - 1]
lea esi, [esi - 1]
xor eax, ecx
movzx ecx, byte [eax + 0x10189870]
mov byte [esi], cl
sub edi, 1
jne 0x10106510
lea esi, [ebx + 0xfc]
mov edi, 0x40
lea edx, [ebx + 0x7e]
movzx ecx, byte [edx + 1]
lea esi, [esi - 4]
movzx eax, byte [edx]
lea edx, [edx - 2]
shl ecx, 8
or ecx, eax
movzx eax, cx
mov dword [esi + 4], eax
sub edi, 1
jne 0x10106536
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x1010b150
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.100857c0
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x1c]
mov ebx, dword [esi + 0x160]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esp + 0x14], ebx
mov dword [esi + 0x16c], 0
mov dword [esi + 0x168], 0
cmp edi, 0xc
jne 0x1010b1fb
mov eax, dword [esp + 0x18]
mov edi, 1
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
mov byte [esi + 0xf], 1
jmp 0x1010b329
mov dword [esp + 0xc], edi
push ebp
mov ebp, dword [esp + 0x1c]
cmp edi, 0x10
jb 0x1010b273
mov ebx, ebp
lea ecx, [esi + 0xf]
mov eax, edi
sub ebx, esi
shr eax, 4
mov dword [esp + 0x20], eax
nop dword [eax]
lea eax, [ebx + ecx]
cmp esi, eax
ja 0x1010b242
cmp ecx, ebp
jb 0x1010b242
mov eax, esi
mov edx, 0x10
mov cl, byte [ebx + eax]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub edx, 1
jne 0x1010b232
jmp 0x1010b250
movups xmm1, xmmword [esi]
movups xmm0, xmmword [ebp]
pxor xmm1, xmm0
movups xmmword [esi], xmm1
lea eax, [esi + 0x60]
push eax
push esi
call dword [esp + 0x20]
add esp, 8
lea ecx, [esi + 0xf]
add ebp, 0x10
add ebx, 0x10
sub edi, 0x10
sub dword [esp + 0x20], 1
jne 0x1010b220
mov ebx, dword [esp + 0x18]
test edi, edi
je 0x1010b302
xor edx, edx
test edi, edi
je 0x1010b2f8
cmp edi, 0x20
jb 0x1010b2db
lea eax, [ebp - 1]
lea ecx, [esi - 1]
add eax, edi
add ecx, edi
cmp esi, eax
ja 0x1010b298
cmp ecx, ebp
jae 0x1010b2db
mov eax, edi
mov ecx, edi
and eax, 0x1f
mov ebx, ebp
sub ecx, eax
mov eax, esi
sub ebx, esi
nop word [eax + eax]
movups xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movups xmm1, xmmword [eax + ebx - 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
movups xmm1, xmmword [edx + ebp + 0x10]
add edx, 0x20
movups xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
cmp edx, ecx
jb 0x1010b2b0
cmp edx, edi
jae 0x1010b2f4
sub ebp, esi
lea ecx, [edx + esi]
sub edi, edx
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edi, 1
jne 0x1010b2e6
mov ebx, dword [esp + 0x18]
lea eax, [esi + 0x60]
push eax
push esi
call ebx
add esp, 8
mov eax, dword [esp + 0x10]
xor ecx, ecx
shld ecx, eax, 3
shl eax, 3
bswap eax
xor dword [esi + 0xc], eax
lea eax, [esi + 0x60]
push eax
bswap ecx
xor dword [esi + 8], ecx
push esi
call ebx
mov edi, dword [esi + 0xc]
add esp, 8
bswap edi
pop ebp
push dword [esi + 0x174]
lea eax, [esi + 0x20]
push eax
mov eax, dword [esi + 0x170]
push esi
call eax
add esp, 0xc
inc edi
bswap edi
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x1010d970
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.100857c0
mov edx, dword [esp + 0x1c]
xor ecx, ecx
test edx, edx
je 0x1010da65
push ebx
mov ebx, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x28]
push edi
mov edi, dword [esp + 0x20]
cmp edx, 0x20
jb 0x1010da3e
push ebp
lea eax, [ebx - 1]
lea ebp, [esi - 1]
add eax, edx
add ebp, edx
cmp esi, eax
ja 0x1010d9b7
cmp ebp, ebx
jae 0x1010da3d
lea eax, [edi - 1]
add eax, edx
cmp esi, eax
ja 0x1010d9c4
cmp ebp, edi
jae 0x1010da3d
mov eax, edx
mov ebp, edx
mov edx, esi
and eax, 0x1f
sub edx, edi
sub ebp, eax
mov dword [esp + 0x10], edx
mov eax, edi
mov edx, ebx
mov dword [esp + 0x1c], ebp
sub edx, edi
lea ebp, [ebx + 0x10]
mov dword [esp + 0x14], edx
mov edx, esi
mov esi, dword [esp + 0x10]
sub edx, ebx
mov edi, dword [esp + 0x14]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x18]
nop
movups xmm0, xmmword [eax]
add ecx, 0x20
lea eax, [eax + 0x20]
lea ebp, [ebp + 0x20]
movups xmm1, xmmword [edi + eax - 0x20]
pxor xmm1, xmm0
movups xmmword [esi + eax - 0x20], xmm1
movups xmm1, xmmword [eax - 0x10]
movups xmm0, xmmword [ebp - 0x20]
pxor xmm1, xmm0
movups xmmword [ebx + ebp - 0x20], xmm1
cmp ecx, dword [esp + 0x1c]
jb 0x1010da00
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
pop ebp
cmp ecx, edx
jae 0x1010da62
sub edi, ebx
lea eax, [ecx + ebx]
sub esi, ebx
sub edx, ecx
nop dword [eax + eax]
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
mov byte [eax + esi - 1], cl
sub edx, 1
jne 0x1010da50
pop edi
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x10110360
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0x18], 0
je 0x10110374
mov dword [esp + 0x18], fcn.1010eb40
jmp fcn.10109d90
mov dword [esp + 0x18], fcn.1010dde0
jmp fcn.10109ad0