joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10135520
Capabilities:
Query service status
Start service

Disassembly:
sub esp, 0x28
mov eax, dword [0x1021e964]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push esi
mov esi, dword [esp + 0x34]
xorps xmm0, xmm0
push 0x20000
push 0
push 0
movups xmmword [esp + 0x14], xmm0
mov dword [esp + 0x34], 0
movups xmmword [esp + 0x24], xmm0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x10135571
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.1018d760
add esp, 0x28
ret
push edi
push 0x14
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x1013559d
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.1018d760
add esp, 0x28
ret
push 0x1023081c
push 0x24
lea eax, [esp + 0x14]
push eax
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x10135657
mov eax, dword [esp + 0x10]
cmp eax, 4
je 0x10135637
cmp eax, 1
je 0x101355d1
cmp eax, 3
jne 0x10135657
push 3
lea eax, [esp + 0x10]
push eax
push edi
call fcn.10135460
add esp, 0xc
test al, al
je 0x10135657
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x10135637
push 2
lea eax, [esp + 0x10]
mov esi, 3
push eax
push edi
call fcn.10135460
add esp, 0xc
test al, al
jne 0x10135629
nop dword [eax]
test esi, esi
jle 0x10135629
push 2
lea eax, [esp + 0x10]
dec esi
push eax
push edi
call fcn.10135460
add esp, 0xc
test al, al
je 0x10135610
lea eax, [esp + 0xc]
push eax
push edi
call fcn.10135440
add esp, 8
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
push edi
call esi
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.1018d760
add esp, 0x28
ret
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
push edi
call esi
mov ecx, dword [esp + 0x30]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1018d760
add esp, 0x28
ret
Function at 0x10135f90
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push ecx
mov edx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x14]
cmp edi, 0xffffffff
jae 0x101360d4
mov ecx, dword [esp + 0x10]
cmp edi, 4
jb 0x101360d4
push ebx
push esi
mov al, byte [ecx]
test al, al
je 0x101360d2
movsx eax, al
cmp eax, 0x80
jae 0x101360d2
mov bh, byte [eax + 0x10023498]
cmp bh, 0xff
je 0x101360d2
movsx eax, byte [ecx + 1]
cmp eax, 0x80
jae 0x101360d2
mov al, byte [eax + 0x10023498]
mov byte [esp + 0xf], al
movsx eax, al
cmp eax, 0xffffffff
je 0x101360d2
mov bl, byte [ecx + 2]
mov byte [esp + 0x1c], bl
cmp bl, 0x3d
je 0x10136026
movsx esi, bl
cmp esi, 0x80
jae 0x101360d2
cmp byte [esi + 0x10023498], 0xff
je 0x101360d2
mov bl, byte [ecx + 3]
sub edi, 4
add ecx, 4
mov byte [esp + 0xe], bl
cmp bl, 0x3d
mov bl, byte [esp + 0x1c]
je 0x10136056
movsx esi, byte [esp + 0xe]
cmp esi, 0x80
jae 0x101360d2
cmp byte [esi + 0x10023498], 0xff
je 0x101360d2
sar eax, 4
and al, 3
shl bh, 2
or al, bh
mov byte [edx], al
inc edx
cmp bl, 0x3d
je 0x101360c9
movsx esi, bl
cmp esi, 0x80
jae 0x1013607c
movsx eax, byte [esi + 0x10023498]
jmp 0x1013607f
or eax, 0xffffffff
mov bl, byte [esp + 0xf]
sar eax, 2
and al, 0xf
shl bl, 4
or al, bl
mov byte [edx], al
inc edx
mov al, byte [esp + 0xe]
cmp al, 0x3d
je 0x101360c9
cmp esi, 0x80
jae 0x101360a8
mov bl, byte [esi + 0x10023498]
jmp 0x101360ab
or bl, 0xff
movsx eax, al
cmp eax, 0x80
jae 0x101360bd
mov al, byte [eax + 0x10023498]
jmp 0x101360bf
or al, 0xff
and al, 0x3f
shl bl, 6
or al, bl
mov byte [edx], al
inc edx
cmp edi, 4
jae 0x10135fb2
pop esi
pop ebx
sub edx, dword [esp + 0xc]
mov eax, edx
pop edi
pop ecx
ret
Function at 0x101360e0
Capabilities:
Encode data using base64

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0x18]
mov eax, 0xaaaaaaab
lea ecx, [edi + 2]
mul ecx
mov ebx, edx
shr ebx, 1
shl ebx, 2
mov dword [esp + 0x18], ebx
cmp ebx, 0xbffffffd
ja 0x10136222
cmp edi, 0xfffffffd
jae 0x10136222
cmp dword [esp + 0x10], ebx
jb 0x10136222
mov ecx, dword [esp + 0xc]
push ebp
xor ebp, ebp
push esi
mov esi, dword [esp + 0x1c]
cmp edi, 3
jb 0x101361ac
mov eax, 0xaaaaaaab
mul edi
mov ebx, edx
shr ebx, 1
lea ebp, [ebx*4]
movzx eax, byte [esi]
sub edi, 3
shr eax, 2
movzx eax, byte [eax + 0x10023450]
mov byte [ecx], al
movzx edx, byte [esi]
movzx eax, byte [esi + 1]
and edx, 3
shr eax, 4
shl edx, 4
or edx, eax
movzx eax, byte [edx + 0x10023450]
mov byte [ecx + 1], al
movzx edx, byte [esi + 1]
movzx eax, byte [esi + 2]
and edx, 0xf
shr eax, 6
shl edx, 2
or edx, eax
movzx eax, byte [edx + 0x10023450]
mov byte [ecx + 2], al
movzx eax, byte [esi + 2]
add esi, 3
and eax, 0x3f
movzx eax, byte [eax + 0x10023450]
mov byte [ecx + 3], al
add ecx, 4
sub ebx, 1
jne 0x10136141
mov ebx, dword [esp + 0x20]
test edi, edi
je 0x1013620f
movzx eax, byte [esi]
shr eax, 2
mov al, byte [eax + 0x10023450]
mov byte [ecx], al
cmp edi, 1
jne 0x101361d9
movzx eax, byte [esi]
mov dl, 0x3d
and eax, 3
shl eax, 4
mov al, byte [eax + 0x10023450]
mov byte [ecx + 1], al
jmp 0x10136202
movzx edx, byte [esi]
movzx eax, byte [esi + 1]
and edx, 3
shr eax, 4
shl edx, 4
or edx, eax
mov al, byte [edx + 0x10023450]
mov byte [ecx + 1], al
movzx eax, byte [esi + 1]
and eax, 0xf
mov dl, byte [eax*4 + 0x10023450]
mov byte [ecx + 2], dl
mov byte [ecx + 3], 0x3d
add ecx, 4
add ebp, 4
lea eax, [ebx + 1]
cmp dword [esp + 0x18], eax
mov eax, ebp
jb 0x1013621d
mov byte [ecx], 0
pop esi
pop ebp
pop edi
pop ebx
ret
pop edi
xor eax, eax
pop ebx
ret
Function at 0x101374c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c9edd
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x1021e964]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov ecx, dword [ecx]
xor esi, esi
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
cmp byte [eax + 0xd], 0
jne 0x10137560
mov esi, eax
nop dword [eax + eax]
cmp dword [edi + 0x14], 0x10
mov edx, edi
mov dword [ebp - 0x14], esi
jb 0x1013751d
mov edx, dword [edi]
cmp dword [esi + 0x24], 0x10
lea ecx, [esi + 0x10]
jb 0x10137529
mov ecx, dword [esi + 0x10]
push dword [edi + 0x10]
push edx
push dword [esi + 0x20]
push ecx
call fcn.1004d260
shr eax, 0x1f
add esp, 0x10
test al, al
je 0x10137548
mov esi, dword [esi + 8]
mov ecx, dword [ebp - 0x10]
jmp 0x1013754f
mov ecx, esi
mov esi, dword [esi]
mov dword [ebp - 0x10], ecx
movzx eax, al
xor eax, 1
cmp byte [esi + 0xd], 0
mov dword [ebp - 0x20], eax
je 0x10137510
mov esi, eax
cmp byte [ecx + 0xd], 0
jne 0x101375b2
cmp dword [ecx + 0x24], 0x10
lea edx, [ecx + 0x10]
jb 0x10137572
mov edx, dword [ecx + 0x10]
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x1013757c
mov eax, dword [edi]
push dword [ecx + 0x20]
push edx
push dword [edi + 0x10]
push eax
call fcn.1004d260
shr eax, 0x1f
add esp, 0x10
test al, al
jne 0x101375b2
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x18]
cmp dword [eax + 4], 0x4924924
je 0x1013767f
mov dword [ebp - 0x24], eax
push 0x38
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
call fcn.1018d216
mov edx, eax
add esp, 4
mov dword [edx + 0x20], 0
mov dword [edx + 0x24], 0
movups xmm0, xmmword [edi]
movups xmmword [edx + 0x10], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [edx + 0x20], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [edx + 0x28], 0
mov dword [edx + 0x2c], 0
mov eax, dword [edi + 0x18]
mov dword [edx + 0x28], eax
mov eax, dword [edi + 0x1c]
mov dword [edx + 0x2c], eax
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
mov dword [edx + 0x30], eax
mov eax, dword [ebp - 0x28]
mov dword [edx + 0x34], ecx
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov word [edx + 0xc], 0
mov ecx, dword [ebp - 0x18]
push edx
push esi
push dword [ebp - 0x14]
call fcn.10049500
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
mov eax, ecx
mov byte [ecx + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
call fcn.1004a0b0
int3
Function at 0x1013e890
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push 0
push dword [esp + 0x14]
mov esi, ecx
push dword [esp + 0x14]
push dword [esp + 0x14]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1013e913
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x50]
call eax
test al, al
je 0x1013e8cb
mov eax, dword [esi + 0x14]
push 0
push 0
push 0x10010b20
push eax
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x50]
call eax
test al, al
je 0x1013e904
mov eax, dword [esi + 0x14]
push 2
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
jns 0x1013e8f9
mov dword [esi + 0xc], 0x64
and dword [esi + 8], 0xfffffffd
mov dword [esi + 0x14], 0xffffffff
call fcn.100ad3b0
mov dword [esi + 0xc], 0x66
or eax, 0xffffffff
pop esi
ret 0xc
Function at 0x1013e920
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x124
mov eax, dword [0x1021e964]
xor eax, esp
mov dword [esp + 0x120], eax
mov eax, dword [esp + 0x12c]
push ebx
push ebp
mov ebx, ecx
mov dword [esp + 0x10], eax
push esi
push edi
xor esi, esi
xor ebp, ebp
mov edi, dword [ebx + 0xb8]
test edi, edi
je 0x1013ea8d
push 0xfc
lea eax, [esp + 0x38]
push ebp
push eax
call fcn.101a4190
add esp, 0xc
mov dword [esp + 0x14], esi
test edi, edi
jle 0x1013ea5a
mov ebp, dword [esp + 0x138]
mov eax, 2
mov dword [esp + 0x28], 0x1388
cmp edi, eax
mov dword [esp + 0x30], ebp
lea ecx, [ebp + 1]
mov dword [esp + 0x2c], 1
cmovb eax, edi
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
push 0
push 0
lea eax, [esp + 0x38]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_select]
mov dword [esp + 0x10], eax
test eax, eax
jle 0x1013ea08
lea eax, [esp + 0x2c]
push eax
push ebp
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1013ea39
push 0
push dword [esp + 0x144]
push dword [esp + 0x20]
push ebp
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
jns 0x1013ea52
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2746
jne 0x1013ea39
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax + 0x10]
mov eax, 0xfffffffe
jmp 0x1013eaaf
jne 0x1013ea39
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], 0
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x20], 4
push eax
push 0x1007
push 0xffff
push ebp
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
js 0x1013ea7b
mov eax, dword [esp + 0x14]
mov edi, dword [ebx + 0xb8]
add eax, 2
mov dword [esp + 0x14], eax
cmp eax, edi
jl 0x1013e97d
mov ebp, dword [esp + 0x10]
test esi, esi
jg 0x1013eaad
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax + 0x10]
test esi, esi
jns 0x1013ea6e
mov dword [ebx + 0xc], 0x67
test ebp, ebp
jle 0x1013eaa8
test esi, esi
jne 0x1013eaa8
lea eax, [esi - 2]
jmp 0x1013eaaf
mov eax, dword [ebx]
mov ecx, ebx
push 1
or esi, 0xffffffff
call dword [eax + 0x10]
mov ebp, dword [esp + 0x10]
jmp 0x1013ea67
push 0
push dword [esp + 0x144]
push eax
push dword [esp + 0x144]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
jmp 0x1013ea56
or eax, 0xffffffff
jmp 0x1013eaaf
mov eax, esi
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1018d760
add esp, 0x124
ret 0xc
Function at 0x10145a30
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2c
mov eax, dword [0x1021e964]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
push ebx
push ebp
mov ebp, dword [esp + 0x40]
xor ebx, ebx
push esi
mov esi, dword [esp + 0x48]
shl eax, 3
movzx edx, byte [ebp]
push edi
mov dword [esp + 0x10], 7
lea ecx, [edx + 3]
add edx, edx
add ecx, ecx
xor eax, dword [esi + ecx*8]
xor ebx, dword [esi + ecx*8 + 4]
xor ecx, ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x44]
shl eax, 3
xor eax, dword [esi + edx*8 + 0x38]
xor ecx, dword [esi + edx*8 + 0x3c]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
nop
mov bl, byte [ebp]
movzx ecx, byte [ebp]
shr bl, 3
dec bl
shl ecx, 4
and bl, 1
shl bl, 3
movzx eax, bl
mov dword [esp + 0x24], eax
add eax, eax
lea edi, [esi + eax*8]
lea eax, [edi + 0x40]
push eax
lea eax, [esi + 0x40]
add eax, ecx
push eax
lea eax, [esi + 0x30]
add eax, ecx
push eax
call fcn.10146ba0
movzx ecx, byte [ebp]
lea eax, [edi + 0x30]
push eax
shl ecx, 4
lea eax, [esi + 0x30]
add eax, ecx
push eax
lea eax, [esi + 0x20]
add eax, ecx
push eax
call fcn.10146ba0
movzx ecx, byte [ebp]
lea eax, [edi + 0x20]
push eax
shl ecx, 4
lea eax, [esi + 0x20]
add eax, ecx
push eax
lea eax, [esi + 0x10]
add eax, ecx
push eax
call fcn.10146ba0
movzx ecx, byte [ebp]
lea eax, [edi + 0x10]
shl ecx, 4
add ecx, esi
push eax
lea eax, [ecx + 0x10]
push eax
push ecx
call fcn.10146ba0
movzx edx, byte [ebp]
mov ecx, dword [esp + 0x44]
shl edx, 4
add edx, esi
push edi
mov eax, dword [edx + 4]
xor eax, dword [esp + 0x4c]
xor ecx, dword [edx]
mov dword [esp + 0x60], eax
mov eax, dword [edx + 0xc]
xor eax, dword [esp + 0x54]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x50]
xor ecx, dword [edx + 8]
push eax
lea eax, [edx + 0x40]
mov dword [esp + 0x68], ecx
push eax
call fcn.10146ba0
add esp, 0x3c
mov byte [ebp], bl
sub dword [esp + 0x10], 1
jne 0x10145a90
mov ecx, dword [esp + 0x24]
mov edx, ecx
shl edx, 4
add edx, esi
lea eax, [ecx + 2]
add eax, eax
mov ecx, dword [esi + eax*8]
xor ecx, dword [edx + 0x10]
mov eax, dword [esi + eax*8 + 4]
xor eax, dword [edx + 0x14]
xor dword [edx], ecx
xor dword [edx + 4], eax
movzx edx, byte [ebp]
shl edx, 4
add edx, esi
mov ecx, dword [edx + 0x28]
xor ecx, dword [edx + 0x18]
mov eax, dword [edx + 0x2c]
xor eax, dword [edx + 0x1c]
xor dword [edx + 8], ecx
xor dword [edx + 0xc], eax
movzx ecx, byte [ebp]
mov edi, ecx
shl edi, 4
add edi, esi
lea eax, [ecx + 4]
add eax, eax
lea edx, [ecx + 3]
add edx, edx
mov ecx, dword [esi + eax*8]
xor ecx, dword [esi + edx*8]
mov eax, dword [esi + eax*8 + 4]
xor eax, dword [esi + edx*8 + 4]
xor dword [edi], ecx
xor dword [edi + 4], eax
movzx edx, byte [ebp]
shl edx, 4
add edx, esi
pop edi
pop esi
pop ebp
mov ecx, dword [edx + 0x48]
xor ecx, dword [edx + 0x38]
mov eax, dword [edx + 0x4c]
xor eax, dword [edx + 0x3c]
xor dword [edx + 8], ecx
mov ecx, dword [esp + 0x2c]
xor dword [edx + 0xc], eax
pop ebx
xor ecx, esp
call fcn.1018d760
add esp, 0x2c
ret
Function at 0x10146670
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x18]
mov bl, byte [edi]
movzx eax, byte [edi]
shr bl, 3
dec bl
and bl, 1
lea ecx, [eax + 4]
shl bl, 3
add eax, 3
movzx edx, bl
add eax, eax
add ecx, ecx
movups xmm0, xmmword [esi + eax*8]
lea eax, [edx + 4]
aesenc xmm0, xmmword [esi + ecx*8]
add eax, eax
movups xmmword [esi + eax*8], xmm0
movzx eax, byte [edi]
lea ecx, [eax + 3]
add eax, 2
add eax, eax
add ecx, ecx
movups xmm0, xmmword [esi + eax*8]
lea eax, [edx + 3]
aesenc xmm0, xmmword [esi + ecx*8]
add eax, eax
movups xmmword [esi + eax*8], xmm0
movzx eax, byte [edi]
lea ecx, [eax + 2]
inc eax
add eax, eax
add ecx, ecx
movups xmm0, xmmword [esi + eax*8]
lea eax, [edx + 2]
aesenc xmm0, xmmword [esi + ecx*8]
add eax, eax
add edx, edx
movups xmmword [esi + eax*8], xmm0
movzx eax, byte [edi]
add eax, eax
movups xmm0, xmmword [esi + eax*8]
aesenc xmm0, xmmword [esi + eax*8 + 0x10]
movups xmmword [esi + edx*8 + 0x10], xmm0
movzx ecx, byte [edi]
mov eax, ecx
add eax, eax
movups xmm1, xmmword [esi + eax*8]
mov eax, dword [esp + 0x14]
pxor xmm1, xmmword [eax]
lea eax, [ecx + 4]
add eax, eax
movups xmm0, xmmword [esi + eax*8]
aesenc xmm0, xmm1
movups xmmword [esi + edx*8], xmm0
mov byte [edi], bl
pop edi
pop esi
pop ebx
ret
Function at 0x10146830
Capabilities:
Encode data using xor
Encrypt data using aes via x86 extensions
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x38
mov eax, dword [0x1021e964]
xor eax, esp
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], 0
lea eax, [edi + 0xf]
mov dword [esp + 0x24], 0
shr eax, 4
and edi, 0xf
mov dword [ebp + 0x10], edi
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
test eax, eax
je 0x101469ba
xor ecx, ecx
add eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x10146981
mov edi, dword [esp + 0x14]
mov ecx, edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x18], eax
nop dword [eax + eax]
movups xmm1, xmmword [ecx]
mov cl, byte [edi]
movzx eax, byte [edi]
shr cl, 3
dec cl
and cl, 1
shl cl, 3
movzx edx, cl
mov byte [esp + 0xb], cl
lea ecx, [eax + 4]
add eax, 3
add ecx, ecx
add eax, eax
movups xmm0, xmmword [esi + eax*8]
lea eax, [edx + 4]
aesenc xmm0, xmmword [esi + ecx*8]
add eax, eax
movups xmmword [esi + eax*8], xmm0
movzx eax, byte [edi]
lea ecx, [eax + 3]
add eax, 2
add eax, eax
add ecx, ecx
movups xmm0, xmmword [esi + eax*8]
lea eax, [edx + 3]
aesenc xmm0, xmmword [esi + ecx*8]
add eax, eax
movups xmmword [esi + eax*8], xmm0
movzx eax, byte [edi]
lea ecx, [eax + 2]
inc eax
add eax, eax
add ecx, ecx
movups xmm0, xmmword [esi + eax*8]
lea eax, [edx + 2]
aesenc xmm0, xmmword [esi + ecx*8]
add eax, eax
add edx, edx
movups xmmword [esi + eax*8], xmm0
movzx eax, byte [edi]
add eax, eax
movups xmm0, xmmword [esi + eax*8]
aesenc xmm0, xmmword [esi + eax*8 + 0x10]
movups xmmword [esi + edx*8 + 0x10], xmm0
movzx ecx, byte [edi]
mov eax, ecx
add eax, eax
pxor xmm1, xmmword [esi + eax*8]
lea eax, [ecx + 4]
mov ecx, dword [esp + 0xc]
add eax, eax
add ecx, 0x10
sub dword [esp + 0x10], 1
mov dword [esp + 0xc], ecx
movups xmm0, xmmword [esi + eax*8]
mov al, byte [esp + 0xb]
aesenc xmm0, xmm1
movups xmmword [esi + edx*8], xmm0
mov byte [edi], al
jne 0x101468b0
mov edi, dword [ebp + 0x10]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
add ecx, ecx
lea eax, [edx + ecx*8]
test edi, edi
je 0x101469a0
push edi
push eax
lea eax, [esp + 0x28]
push eax
call fcn.101a3c10
movups xmm0, xmmword [esp + 0x2c]
add esp, 0xc
jmp 0x101469a3
movups xmm0, xmmword [eax]
push dword [esp + 0x14]
lea eax, [esp + 0x24]
movaps xmmword [esp + 0x24], xmm0
push eax
push esi
call fcn.10146670
add esp, 0xc
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
xor ecx, esp
call fcn.1018d760
mov esp, ebp
pop ebp
ret
Function at 0x101469d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x40
mov eax, dword [0x1021e964]
xor eax, esp
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x44]
push ebx
mov ebx, dword [esp + 0x54]
push ebp
mov ebp, dword [esp + 0x50]
push edi
mov edi, dword [esp + 0x58]
mov dword [esp + 0x1c], ebx
lea eax, [ebp + 0xf]
mov dword [esp + 0x24], ecx
shr eax, 4
and ebp, 0xf
mov dword [esp + 0x18], edi
mov dword [esp + 0x54], ebp
test eax, eax
je 0x10146b8d
push esi
xor esi, esi
add eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x10146b4c
mov dword [esp + 0x14], ecx
mov ebp, edi
mov dword [esp + 0x24], eax
mov esi, ebx
nop
mov al, byte [ebp]
movups xmm1, xmmword [ecx]
movzx ecx, byte [ebp]
shr al, 3
dec al
shl ecx, 4
and al, 1
shl al, 3
movzx ebx, al
shl ebx, 4
mov byte [esp + 0x13], al
add ebx, esi
movups xmmword [esp + 0x2c], xmm1
lea eax, [ebx + 0x40]
push eax
lea eax, [esi + 0x40]
add eax, ecx
push eax
lea eax, [esi + 0x30]
add eax, ecx
push eax
call fcn.10146ba0
movzx ecx, byte [ebp]
lea eax, [ebx + 0x30]
push eax
shl ecx, 4
lea eax, [esi + 0x30]
add eax, ecx
push eax
lea eax, [esi + 0x20]
add eax, ecx
push eax
call fcn.10146ba0
movzx ecx, byte [ebp]
lea eax, [ebx + 0x20]
push eax
shl ecx, 4
lea eax, [esi + 0x20]
add eax, ecx
push eax
lea eax, [esi + 0x10]
add eax, ecx
push eax
call fcn.10146ba0
movzx ecx, byte [ebp]
lea eax, [ebx + 0x10]
shl ecx, 4
add ecx, esi
push eax
lea eax, [ecx + 0x10]
push eax
push ecx
call fcn.10146ba0
movzx edi, byte [ebp]
movaps xmm0, xmm1
shl edi, 4
add edi, esi
psrldq xmm0, 4
movd eax, xmm0
movaps xmm0, xmm1
movd edx, xmm1
psrldq xmm1, 0xc
mov ecx, dword [edi + 4]
xor edx, dword [edi]
xor ecx, eax
mov dword [esp + 0x70], ecx
mov ecx, dword [edi + 0xc]
movd eax, xmm1
mov dword [esp + 0x6c], edx
psrldq xmm0, 8
xor ecx, eax
movd edx, xmm0
push ebx
lea eax, [esp + 0x70]
mov dword [esp + 0x7c], ecx
xor edx, dword [edi + 8]
push eax
lea eax, [edi + 0x40]
mov dword [esp + 0x7c], edx
push eax
call fcn.10146ba0
mov ecx, dword [esp + 0x50]
add esp, 0x3c
mov al, byte [esp + 0x13]
add ecx, 0x10
sub dword [esp + 0x18], 1
mov byte [ebp], al
mov dword [esp + 0x14], ecx
jne 0x10146a30
mov esi, dword [esp + 0x24]
mov ebp, dword [esp + 0x58]
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
shl esi, 4
add esi, ecx
test ebp, ebp
je 0x10146b75
push ebp
xorps xmm0, xmm0
lea eax, [esp + 0x30]
push esi
push eax
movlpd qword [esp + 0x38], xmm0
movlpd qword [esp + 0x40], xmm0
call fcn.101a3c10
add esp, 0xc
jmp 0x10146b7d
movups xmm0, xmmword [esi]
movups xmmword [esp + 0x2c], xmm0
lea eax, [esp + 0x2c]
push eax
push ebx
push edi
call fcn.10146730
add esp, 0xc
pop esi
mov ecx, dword [esp + 0x48]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.1018d760
add esp, 0x40
ret
Function at 0x10148400
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 0x10]
xor ecx, ecx
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x14]
movd xmm0, ebx
pshufd xmm3, xmm0, 0
test edx, edx
je 0x101484c0
push ebp
cmp edx, 4
jb 0x1014849a
lea eax, [edx - 1]
lea eax, [edi + eax*4]
lea ebp, [edx - 1]
lea ebp, [esi + ebp*4]
cmp esi, eax
ja 0x10148440
cmp ebp, edi
jae 0x1014849a
mov ebp, edx
mov ebx, esi
and ebp, 0xfffffffc
mov eax, edi
sub ebx, edi
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x20]
nop word [eax + eax]
movups xmm0, xmmword [esi + eax]
add ecx, 4
lea eax, [eax + 0x10]
movups xmm2, xmmword [eax - 0x10]
pxor xmm2, xmm0
movaps xmm1, xmm2
pand xmm1, xmm3
pxor xmm1, xmm0
movups xmmword [esi + eax - 0x10], xmm1
pxor xmm1, xmm2
movups xmmword [eax - 0x10], xmm1
cmp ecx, ebp
jb 0x10148460
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x20], ecx
cmp ecx, edx
jae 0x101484bf
sub esi, edi
lea eax, [edi + ecx*4]
sub edx, ecx
mov ecx, dword [eax + esi]
lea eax, [eax + 4]
xor dword [eax - 4], ecx
mov ecx, dword [eax - 4]
and ecx, ebx
xor dword [eax + esi - 4], ecx
mov ecx, dword [eax + esi - 4]
xor dword [eax - 4], ecx
sub edx, 1
jne 0x101484a1
pop ebp
pop edi
pop esi
pop ebx
ret