joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404670
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x406d08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push edi
mov edi, ecx
lea ecx, [esp + 0x18]
call fcn.00405da0
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0xc]
push eax
mov dword [esp + 0x40], 0
call sub.MFC42.DLL_CString::CString_1
push 0x409024
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 1
call fcn.00405ddc
mov ecx, dword [esp + 0xc]
push 0
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x404832
push ebx
push ebp
push esi
mov esi, dword [esp + 0x54]
mov bl, 5
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea edx, [esp + 0x14]
lea ecx, [esp + 0x24]
push edx
mov ebp, eax
call sub.MFC42.DLL_CFileFind::GetFileName
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0x4c], 2
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 3
push ecx
lea ecx, [esp + 0x14]
call fcn.00405de8
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x40480b
mov edx, dword [esp + 0x24]
push 0x10
lea ecx, [esp + 0x28]
call dword [edx + 0x40]
test eax, eax
je 0x404773
lea eax, [esp + 0x10]
push 0x409020
lea ecx, [esp + 0x20]
push eax
push ecx
call sub.MFC42.DLL_operator
mov edx, dword [esp + 0x1c]
push esi
push edx
mov ecx, edi
mov byte [esp + 0x50], 4
call fcn.00404670
mov byte [esp + 0x48], 3
lea ecx, [esp + 0x1c]
jmp 0x404806
lea eax, [esp + 0x54]
push 3
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Right
lea ecx, [esp + 0x54]
mov byte [esp + 0x48], bl
call sub.MFC42.DLL_CString::MakeUpper
mov eax, dword [esp + 0x54]
cmp byte [eax], 0x4f
jne 0x4047fd
cmp byte [eax + 1], 0x43
jne 0x4047fd
cmp byte [eax + 2], 0x58
jne 0x4047fd
push esi
lea ecx, [esp + 0x58]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
lea edx, [esp + 0x20]
push ecx
push 0x409020
push edx
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x4c], 6
call fcn.00405de8
lea ecx, [esp + 0x20]
mov byte [esp + 0x48], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x10]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edx, dword [esp + 0x54]
mov ecx, edi
push edx
call fcn.00404870
mov byte [esp + 0x48], 3
lea ecx, [esp + 0x54]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 1
call sub.MFC42.DLL_CString::CString
test ebp, ebp
jne 0x4046de
pop esi
pop ebp
pop ebx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [esp + 0xc]
mov byte [esp + 0x3c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], 0xffffffff
call sub.MFC42.DLL_CFileFind::CFileFind
mov ecx, dword [esp + 0x34]
pop edi
mov dword fs:[0], ecx
add esp, 0x3c
ret 8
Function at 0x6fc130
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1f8000]
lea eax, [edi + 0x2e524c]
push dword [eax]
mov dword [eax], 0x8de2e28e
push eax
push edi
jmp 0x6fc15a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6fc161
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6fc150
mov eax, 1
add ebx, ebx
jne 0x6fc173
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6fc184
jne 0x6fc1a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6fc1a3
dec eax
add ebx, ebx
jne 0x6fc190
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6fc168
add ebx, ebx
jne 0x6fc19f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x6fc1f5
xor ecx, ecx
sub eax, 3
jb 0x6fc1bb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6fc22a
sar eax, 1
mov ebp, eax
jmp 0x6fc1c6
add ebx, ebx
jne 0x6fc1c6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6fc194
inc ecx
add ebx, ebx
jne 0x6fc1d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6fc194
add ebx, ebx
jne 0x6fc1e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6fc1d6
jne 0x6fc1f2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6fc1d6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x6fc214
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x6fc206
jmp 0x6fc156
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x6fc214
add edi, ecx
jmp 0x6fc156
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0xc103
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x6fc236
cmp byte [edi], 0x63
jne 0x6fc236
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x6fc23b
lea edi, [esi + 0x2f8000]
mov eax, dword [edi]
or eax, eax
je 0x6fc2b3
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2ff13c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2ff328]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6fc268
mov ecx, edi
jns 0x6fc297
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2ff330]
or eax, eax
je 0x6fc2ad
mov dword [ebx], eax
add ebx, 4
jmp 0x6fc285
call dword [esi + 0x2ff32c]
mov ebp, dword [esi + 0x2ff334]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x2af]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x6fc2e7
sub esp, 0xffffff80
jmp 0x56ad6f
Function at 0x10050600
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10286ce0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x1034c380]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.102574d5
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.10256395
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.10050a80
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1005cc40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10287a35
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x1034c380]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10351ef0]
mov esi, dword [ebp + 8]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x103527c0]
cmp eax, dword [ecx + 4]
jle 0x1005ccdb
push 0x103527c0
call fcn.10257bb2
add esp, 4
cmp dword [0x103527c0], 0xffffffff
jne 0x1005ccdb
xorps xmm0, xmm0
mov dword [0x103527d4], 0
xor eax, eax
mov dword [0x103527d8], 7
movups xmmword [0x103527c4], xmm0
push 0x1028a140
mov word [0x103527c4], ax
call fcn.10257a0c
push 0x103527c0
call fcn.10257b61
add esp, 8
sub dword [ebp + 0xc], 1
jne 0x1005cd3a
push esi
call dword [0x1028b178]
push 4
call fcn.102574d5
mov dword [ebp - 0x14], eax
mov dword [eax], fcn.1005c890
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
push ecx
push 0
push eax
push 0x1006b2f0
push 0
push 0
call fcn.1026851f
add esp, 0x1c
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x1005cd62
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x1005cd5b
push ecx
push eax
call fcn.10256ce6
add esp, 8
test eax, eax
jne 0x1005cd5b
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10257496
mov esp, ebp
pop ebp
ret 0xc
push 1
call fcn.10256c88
push 6
mov dword [ebp - 0x18], 0
call fcn.10256c88
int3
Function at 0x1005d380
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x1005d3b2
jl 0x1005d3a5
test ecx, ecx
jne 0x1005d3b2
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x1005d472
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.1004fc70
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x1005d41e
jg 0x1005d3dd
test esi, esi
je 0x1005d41e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x1005d3f5
mov eax, dword [esp + 0x10]
jl 0x1005d3ef
cmp eax, esi
jae 0x1005d3f5
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.102594f0
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x1005d43f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x1005d45b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x1005d3c4
jl 0x1005d45b
test ecx, ecx
jne 0x1005d3c4
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x1005d4b6
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x1005d4b6
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.102594f0
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x1005d527
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x1005d4dc
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x1005d512
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.10268309
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x1005d527
cmp edi, eax
ja 0x1005d4f0
test edi, edi
je 0x1005d527
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.10268309
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100675d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1028853c
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x1034c380]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
push 0x28
call fcn.102574d5
mov ebx, eax
add esp, 4
mov dword [ebp - 0x1c], ebx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 4], 0
push esi
mov cl, byte [ecx]
mov byte [ebx], cl
lea ecx, [ebx + 4]
mov dword [ebp - 0x14], ecx
call fcn.1004eac0
lea esi, [ebx + 0x1c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], esi
push 0x40
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.102574d5
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov byte [ebp - 4], 2
mov ecx, esi
push eax
mov eax, dword [edi]
push dword [eax + 4]
call fcn.1006f060
mov ecx, dword [esi]
mov dword [ecx + 4], eax
mov edx, dword [esi]
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edx + 4]
cmp byte [ecx + 0xd], 0
jne 0x100676c0
mov eax, dword [ecx]
cmp byte [eax + 0xd], 0
jne 0x1006769d
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0xd], 0
je 0x10067693
mov dword [edx], ecx
mov edx, dword [esi]
mov ecx, dword [edx + 4]
mov eax, dword [ecx + 8]
cmp byte [eax + 0xd], 0
jne 0x100676bb
nop dword [eax]
mov ecx, eax
mov eax, dword [ecx + 8]
cmp byte [eax + 0xd], 0
je 0x100676b0
mov dword [edx + 8], ecx
jmp 0x100676c7
mov dword [edx], edx
mov eax, dword [esi]
mov dword [eax + 8], eax
lea ecx, [ebp - 0x14]
mov dword [ebx + 0x24], 0x10059400
mov dword [ebp - 0x14], 0
call fcn.1006a1b0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 3
call fcn.1006a1b0
mov edi, dword [ebp - 0x20]
lea esi, [edi + 4]
push esi
push 0
push ebx
push 0x1006b270
push 0
push 0
call fcn.1026851f
add esp, 0x18
mov dword [edi], eax
test eax, eax
je 0x10067744
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
call fcn.1006a1b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10257496
mov esp, ebp
pop ebp
ret 0x10
push 6
mov dword [esi], 0
call fcn.10256c88
int3
Function at 0x10074c90
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102897fd
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x1034c380]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x20]
mov esi, dword [ebp + 0x24]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x14], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
call fcn.10050af0
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
test ecx, ecx
je 0x10074d07
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, eax
test ecx, ecx
je 0x10074d07
mov eax, dword [ecx]
push 1
call dword [eax]
push dword [ebp - 0x10]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x14]
push eax
push 0x270f
push 0
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.100769c0
or dword [ebx], eax
add esp, 0x1c
test al, 2
jne 0x10074d62
cmp dword [ebp - 0x10], 2
jg 0x10074d56
mov eax, dword [ebp - 0x14]
cmp eax, 0x45
jge 0x10074d4c
add eax, 0x64
mov dword [esi + 0x14], eax
jmp 0x10074d62
cmp eax, 0x64
jge 0x10074d62
mov dword [esi + 0x14], eax
jmp 0x10074d62
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffff894
mov dword [esi + 0x14], ecx
mov ecx, dword [ebp + 0xc]
mov eax, edi
mov edx, dword [ebp + 0x10]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
Function at 0x10085890
Capabilities:
Encode data using base64

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
xor ebp, ebp
push esi
test eax, eax
je 0x100858a8
test byte [eax + 0x5c], 2
mov ebx, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz._
jne 0x100858ad
mov ebx, 0x1028cee8
mov esi, dword [esp + 0x1c]
test esi, esi
jle 0x10085985
mov edx, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
inc edi
movzx eax, byte [edi - 1]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
cmp esi, 3
jb 0x10085919
movzx ecx, byte [edi]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 1]
shl eax, 8
or eax, ecx
mov ecx, eax
shr ecx, 0x12
movzx ecx, byte [ecx + ebx]
mov byte [edx], cl
mov ecx, eax
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + ebx]
mov byte [edx + 1], cl
mov ecx, eax
shr ecx, 6
and ecx, 0x3f
and eax, 0x3f
movzx ecx, byte [ecx + ebx]
mov byte [edx + 2], cl
mov cl, byte [eax + ebx]
lea eax, [edx + 3]
jmp 0x10085965
shl eax, 0x10
cmp esi, 2
jne 0x10085929
movzx ecx, byte [edi]
shl ecx, 8
or eax, ecx
mov ecx, eax
shr ecx, 0x12
movzx ecx, byte [ecx + ebx]
mov byte [edx], cl
mov ecx, eax
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + ebx]
mov byte [edx + 1], cl
cmp esi, 1
jne 0x1008594c
mov al, 0x3d
jmp 0x10085955
shr eax, 6
and eax, 0x3f
mov al, byte [eax + ebx]
mov ecx, dword [esp + 0x18]
mov byte [ecx + 2], al
mov cl, 0x3d
mov eax, dword [esp + 0x14]
add eax, 3
sub esi, 3
mov byte [eax], cl
add ebp, 4
lea edx, [eax + 1]
add edi, 3
test esi, esi
jg 0x100858c3
pop edi
pop esi
mov eax, ebp
mov byte [edx], 0
pop ebp
pop ebx
ret
mov eax, dword [esp + 0x14]
pop esi
mov byte [eax], 0
mov eax, ebp
pop ebp
pop ebx
ret
Function at 0x10099e50
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
lea edx, [eax - 1]
not eax
shr edx, 0x1f
shr eax, 0x1f
and edx, eax
mov eax, dword [ebx + 4]
mov ecx, dword [ebp + 4]
dec edx
xor eax, ecx
mov dword [esp + 0x10], edx
and eax, edx
xor ecx, eax
mov dword [ebp + 4], ecx
xor dword [ebx + 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebx + 0xc]
xor eax, ecx
movd xmm0, edx
and eax, edx
pshufd xmm4, xmm0, 0
xor ecx, eax
mov dword [ebp + 0xc], ecx
xor dword [ebx + 0xc], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebx + 0x10]
xor eax, ecx
and eax, edx
and eax, 4
xor ecx, eax
mov dword [ebp + 0x10], ecx
xor dword [ebx + 0x10], eax
xor eax, eax
mov esi, dword [esp + 0x1c]
test esi, esi
jle 0x10099f66
push edi
cmp esi, 4
jb 0x10099f41
mov ecx, dword [ebp]
lea edi, [esi - 1]
mov edx, dword [ebx]
lea ebp, [esi - 1]
lea ebp, [ecx + ebp*4]
cmp edx, ebp
lea edi, [edx + edi*4]
mov ebp, dword [esp + 0x18]
ja 0x10099ee4
cmp edi, ecx
jae 0x10099f41
cmp edx, ebx
ja 0x10099eec
cmp edi, ebx
jae 0x10099f41
cmp edx, ebp
ja 0x10099ef4
cmp edi, ebp
jae 0x10099f41
lea edi, [esi - 1]
lea edi, [ecx + edi*4]
cmp ecx, ebx
ja 0x10099f02
cmp edi, ebx
jae 0x10099f41
cmp ecx, ebp
ja 0x10099f0a
cmp edi, ebp
jae 0x10099f41
mov edi, esi
and edi, 0xfffffffc
nop
movups xmm3, xmmword [edx + eax*4]
movups xmm2, xmmword [ecx + eax*4]
movaps xmm1, xmm3
xorps xmm1, xmm2
andps xmm1, xmm4
movaps xmm0, xmm1
xorps xmm1, xmm3
xorps xmm0, xmm2
movups xmmword [ecx + eax*4], xmm0
movups xmmword [edx + eax*4], xmm1
add eax, 4
cmp eax, edi
jl 0x10099f10
mov dword [esp + 0x18], eax
cmp eax, esi
jge 0x10099f65
mov ecx, dword [ebp]
mov edx, dword [ecx + eax*4]
lea esi, [ecx + eax*4]
mov ecx, dword [ebx]
mov edi, dword [ecx + eax*4]
xor edi, edx
and edi, dword [esp + 0x14]
xor edx, edi
mov dword [esi], edx
mov ecx, dword [ebx]
xor dword [ecx + eax*4], edi
inc eax
cmp eax, dword [esp + 0x20]
jl 0x10099f41
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x1009a2a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc
call fcn.10257f80
mov eax, dword [esp + 0x10]
push ebx
push esi
test byte [eax + 0x10], 4
mov esi, dword [eax + 4]
lea ebx, [esi - 1]
je 0x1009a347
mov ecx, dword [eax + 8]
xor edx, edx
push ebp
xor ebp, ebp
mov dword [esp + 0xc], 0
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], ecx
test ecx, ecx
jle 0x1009a330
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
push edi
push dword [ecx]
mov eax, ebp
xor eax, ebx
lea edi, [eax - 1]
not eax
shr edi, 0x1f
shr eax, 0x1f
and edi, eax
neg edi
mov esi, edi
or esi, dword [esp + 0x14]
call fcn.1009a370
mov ecx, dword [esp + 0x18]
mov edx, esi
not edx
mov dword [esp + 0x14], esi
and edx, 0x20
and eax, edi
add edx, dword [esp + 0x24]
inc ebp
add edx, eax
add ecx, 4
add esp, 4
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], ecx
cmp ebp, dword [esp + 0x18]
jl 0x1009a2e3
pop edi
mov eax, ebx
shr ebx, 0x1f
not eax
dec eax
shr eax, 0x1f
and eax, ebx
pop ebp
dec eax
pop esi
and eax, edx
pop ebx
add esp, 0xc
ret
test esi, esi
jne 0x1009a353
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret
mov eax, dword [eax]
push dword [eax + esi*4 - 4]
call fcn.1009a370
add esp, 4
shl esi, 5
add esi, 0xffffffe0
add eax, esi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x1009a930
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x24
call fcn.10257f80
push ebx
push esi
push edi
mov edi, dword [esp + 0x34]
xor ecx, ecx
push edi
mov dword [esp + 0x14], 0
xor ebx, ebx
mov dword [esp + 0x10], ecx
call fcn.1009a2a0
mov esi, eax
add esp, 4
lea eax, [esi + 7]
cdq
and edx, 7
lea ecx, [edx + eax]
sar ecx, 3
cmp dword [esp + 0x44], ebx
jne 0x1009a9a1
mov ebx, dword [edi + 0xc]
mov eax, ebx
neg eax
sbb eax, eax
and eax, 0xff
mov dword [esp + 0x10], eax
lea eax, [ecx*8]
cmp eax, esi
jne 0x1009a999
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 0xc], eax
jmp 0x1009a9a3
mov eax, ebx
mov dword [esp + 0xc], eax
jmp 0x1009a9a3
xor eax, eax
mov esi, dword [esp + 0x3c]
add eax, ecx
cmp esi, 0xffffffff
jne 0x1009a9e1
mov esi, eax
mov dword [esp + 0x3c], esi
mov ecx, dword [edi + 8]
shl ecx, 2
test ecx, ecx
jne 0x1009aa60
test esi, esi
je 0x1009aaf4
push esi
push ecx
push dword [esp + 0x40]
call fcn.10259a70
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x24
ret
cmp esi, eax
jge 0x1009a9b4
movups xmm0, xmmword [edi]
mov eax, dword [edi + 0x10]
mov dword [esp + 0x2c], eax
movups xmmword [esp + 0x1c], xmm0
psrldq xmm0, 4
movd ecx, xmm0
test ecx, ecx
jle 0x1009aa22
mov eax, dword [esp + 0x1c]
lea eax, [eax + ecx*4]
nop dword [eax + eax]
cmp dword [eax - 4], 0
lea eax, [eax - 4]
jne 0x1009aa1e
dec ecx
test ecx, ecx
jg 0x1009aa10
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x28]
xor edx, edx
test ecx, ecx
cmove eax, edx
mov dword [esp + 0x28], eax
lea eax, [esp + 0x1c]
push eax
call fcn.1009a2a0
add eax, 7
add esp, 4
cdq
and edx, 7
add eax, edx
sar eax, 3
add eax, dword [esp + 0xc]
cmp esi, eax
jge 0x1009a9b4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x24
ret
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
cmp edx, 1
je 0x1009aa70
dec eax
add eax, esi
mov edi, dword [edi + 4]
mov dword [esp + 0x44], eax
xor eax, eax
cmp edx, 1
push ebp
sete al
shl edi, 2
xor ebp, ebp
lea eax, [eax*2 - 1]
mov dword [esp + 0x18], eax
lea eax, [ecx - 1]
mov dword [esp + 0x1c], eax
test esi, esi
je 0x1009aaf3
mov dword [esp + 0x10], esi
neg edi
mov esi, dword [esp + 0x38]
mov eax, dword [esi]
mov edx, ebp
shr edx, 2
mov ecx, ebp
and ecx, 3
shl ecx, 3
mov edx, dword [eax + edx*4]
mov eax, edi
shr edx, cl
mov ecx, ebp
shr eax, 0x1f
neg al
and dl, al
mov eax, dword [esp + 0x48]
xor dl, byte [esp + 0x14]
add bl, dl
cmp bl, dl
mov byte [eax], bl
sbb ebx, ebx
sub ecx, dword [esp + 0x1c]
add eax, dword [esp + 0x18]
neg ebx
shr ecx, 0x1f
inc edi
add ebp, ecx
mov dword [esp + 0x48], eax
sub dword [esp + 0x10], 1
jne 0x1009aaa5
mov esi, dword [esp + 0x40]
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x24
ret