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

Disassembly:
sub esp, 0x10c
mov eax, dword [0x61c174]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x118]
push ebx
mov ebx, dword [esp + 0x114]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 4], eax
xor eax, eax
mov ecx, dword [ebx + 0xc]
push ebp
push esi
mov esi, 0x170
mov edx, dword [ecx + 0x14c]
cmp dword [esp + 0x120], edx
push edi
sete al
lea eax, [eax*4 + 0x148]
mov ebp, dword [eax + ecx]
mov eax, 0x180
cmove esi, eax
mov eax, dword [ecx + 0x2a0]
add esi, ecx
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x44], 3
je 0x5200b3
xor eax, eax
cmp dword [esp + 0x124], edx
sete al
lea eax, [eax*4 + 0x160]
cmp dword [eax + ecx], 0x51fc70
jne 0x5200b3
cmp dword [esi], 0
je 0x52004e
test edi, edi
je 0x5200b3
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.005313c0
add esp, 0x14
cmp eax, 0xffffffff
je 0x5200b3
test al, 1
je 0x5200b3
mov ecx, dword [esi]
test ecx, ecx
jne 0x52009c
mov eax, dword [ebx + 0x4e8]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x61c024]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
test ecx, ecx
je 0x5200e7
mov edi, dword [esi + 4]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x5200b3
add dword [esi + 8], eax
push 0
push dword [esp + 0x130]
push dword [esp + 0x1c]
push ebp
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
jne 0x520122
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x5200f8
xor edi, edi
lea eax, [edi + 0x51]
jmp 0x520122
mov ecx, dword [esp + 0x10]
mov eax, 0x1b
mov dword [ecx], 0xffffffff
jmp 0x520128
push 0x100
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.0050f450
push eax
push str.Send_failure:__s
push ebx
call fcn.0051fa20
add esp, 0x18
mov dword [ebx + 0x964], esi
mov eax, 0x37
mov ecx, dword [esp + 0x10]
mov dword [ecx], edi
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00549eab
add esp, 0x10c
ret
Function at 0x520780
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x188
mov eax, dword [0x61c174]
xor eax, esp
mov dword [esp + 0x184], eax
push ebx
mov ebx, dword [esp + 0x190]
lea eax, [esp + 8]
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [esp + 0x1a4]
push 0x80
push 0
push eax
mov dword [esp + 0x18], 0x80
call fcn.0054c590
add esp, 0xc
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x1a4]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x520807
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push esi
call fcn.0050f450
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x520847
push edi
push esi
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
call fcn.005203a0
add esp, 0x10
test al, al
jne 0x520850
call fcn.0054fda1
mov esi, dword [eax]
call fcn.0054fda1
mov edi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push esi
call fcn.0050f450
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0051fa20
add esp, 0x1c
mov ecx, dword [esp + 0x190]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00549eab
add esp, 0x188
ret
Function at 0x522240
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x57a2c8
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x52225a
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x57a2e4
push esi
call fcn.00555a10
add esp, 8
test eax, eax
je 0x5222a2
test ebp, ebp
je 0x522293
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x5222c8
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5222c8
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x52237f
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5222e5
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [0x61c024]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x522375
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x522375
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x522317
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x522330
sub ecx, edx
sub ecx, esi
add ecx, ebx
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x522340
test ebp, ebp
je 0x52236c
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x61c028]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x61c028]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x529da0
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x529db2
mov eax, dword [eax + 0x70]
mov al, byte [eax + 0xe3]
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x529dc6
xor al, al
ret
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
ret
Function at 0x5334d0
Capabilities:
Move file

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.005291a0
push dword [esp + 0x38]
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x18], xmm0
call fcn.0055aff5
push dword [esp + 0x40]
mov edi, eax
call fcn.0055aff5
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
add esp, 0xc
mov esi, eax
push 1
push esi
push edi
call ebx
test eax, eax
jne 0x533565
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax + eax]
lea eax, [esp + 0x20]
push eax
call fcn.005291a0
movups xmm0, xmmword [esp + 0x14]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
mov ecx, esp
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
call fcn.00529250
add esp, 0x20
test edx, edx
ja 0x533589
jb 0x533557
cmp eax, 0x3e8
ja 0x533589
push 1
call ebp
push 1
push esi
push edi
call ebx
test eax, eax
je 0x533520
test edi, edi
je 0x533572
push edi
call fcn.0054e586
add esp, 4
test esi, esi
je 0x53357f
push esi
call fcn.0054e586
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
test edi, edi
je 0x533596
push edi
call fcn.0054e586
add esp, 4
test esi, esi
je 0x5335a3
push esi
call fcn.0054e586
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
Function at 0x5335b0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration
Start tcp server

Disassembly:
sub esp, 0x34
mov eax, dword [0x61c174]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
push edi
mov edi, dword [esp + 0x4c]
push 6
push 1
push 2
mov dword [esp + 0x14], 0x10
mov dword [esp + 0x18], 1
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x5337a2
xorps xmm0, xmm0
mov eax, 2
push 0x7f000001
movlpd qword [esp + 0x24], xmm0
mov word [esp + 0x1c], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x1c], eax
xor eax, eax
push 4
mov word [esp + 0x1e], ax
lea eax, [esp + 0x10]
push eax
push 4
push 0xffff
push esi
mov dword [edi + 4], 0xffffffff
mov dword [edi], 0xffffffff
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x533790
push 0x10
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x533790
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x533790
cmp dword [esp + 8], 0x10
jl 0x533790
push 1
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x533790
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x533790
push 0x10
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x533790
push 1
push esi
call fcn.0053be40
add esp, 8
test eax, eax
js 0x533790
push 0
push 0x2710
lea eax, [esp + 0x18]
mov dword [esp + 0x18], esi
push 1
push eax
mov dword [esp + 0x24], 0x300
call fcn.00530ef0
add esp, 0x10
push 0
push 0
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x533790
lea eax, [esp + 8]
mov dword [esp + 8], 0x10
push eax
lea eax, [esp + 0x1c]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x533790
cmp dword [esp + 8], 0x10
jl 0x533790
lea eax, [esp + 8]
mov dword [esp + 8], 0x10
push eax
lea eax, [esp + 0x2c]
push eax
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_getpeername]
cmp eax, 0xffffffff
je 0x533790
cmp dword [esp + 8], 0x10
jl 0x533790
mov ax, word [esp + 0x18]
cmp ax, word [esp + 0x28]
jne 0x533790
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x2c]
jne 0x533790
mov ax, word [esp + 0x1a]
cmp ax, word [esp + 0x2a]
jne 0x533790
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00549eab
add esp, 0x34
ret
push esi
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
call esi
push dword [edi]
call esi
push dword [edi + 4]
call esi
mov ecx, dword [esp + 0x38]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, esp
call fcn.00549eab
add esp, 0x34
ret
Function at 0x537600
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
xor ebp, ebp
push esi
push edi
lea esi, [ebp + 1]
push esi
push ebp
call dword [0x61c02c]
mov edi, eax
add esp, 8
test edi, edi
je 0x537657
nop word [eax + eax]
push esi
push edi
push dword [esp + 0x1c]
mov ebp, edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x53766f
cmp esi, ebx
je 0x53766f
cmp esi, 0x8000
ja 0x53766f
cmp esi, ebx
jb 0x537668
push esi
push edi
call dword [0x61c02c]
mov edi, eax
add esp, 8
test edi, edi
jne 0x537620
push ebp
call dword [0x61c028]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [0x61c028]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x540ff0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x120
mov eax, dword [0x61c174]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x124]
push ebx
push ebp
mov ebp, dword [esp + 0x134]
xor ebx, ebx
push esi
push edi
mov edi, dword [esp + 0x138]
xor esi, esi
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edi
call fcn.0055aff5
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x54106f
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0050f540
push eax
push edi
push str.schannel:_invalid_path_name_for_CA_file__s:__s
push ebp
call fcn.0051fa20
push esi
call dword [0x61c028]
add esp, 0x20
lea eax, [ebx + 0x4d]
jmp 0x5411cf
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x5410c9
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0050f540
push eax
push edi
push str.schannel:_failed_to_open_CA_file__s:__s
push ebp
call fcn.0051fa20
push 0
mov esi, 0x4d
call dword [0x61c028]
add esp, 0x20
jmp 0x5411c1
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x541109
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0050f540
push eax
push edi
push str.schannel:_failed_to_determine_size_of_CA_file__s:__s
push ebp
call fcn.0051fa20
add esp, 0x1c
mov esi, 0x4d
jmp 0x5411ad
mov edi, dword [esp + 0x24]
cmp dword [esp + 0x28], ebx
jl 0x541137
jg 0x54111d
cmp edi, 0x100000
jbe 0x541137
push 0x100000
push str.schannel:_CA_file_exceeds_max_size_of__u_bytes
push ebp
call fcn.0051fa20
add esp, 0xc
mov esi, 0x4d
jmp 0x5411ad
lea eax, [edi + 1]
push eax
call dword [0x61c024]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x54114f
lea esi, [eax + 0x1b]
jmp 0x5411ad
test edi, edi
je 0x541194
nop dword [eax]
nop word [eax + eax]
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5411ec
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5411e8
add esi, eax
cmp esi, edi
jb 0x541160
push ebp
push dword [esp + 0x18]
mov byte [edi + ebx], 0
push edi
push ebx
push dword [esp + 0x2c]
call fcn.00540df0
add esp, 0x14
mov esi, eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [0x61c028]
add esp, 4
push dword [esp + 0x20]
call fcn.0054e586
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00549eab
add esp, 0x120
ret
mov edi, esi
jmp 0x541194
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0050f540
push eax
push dword [esp + 0x24]
push str.schannel:_failed_to_read_from_CA_file__s:__s
push ebp
call fcn.0051fa20
add esp, 0x1c
mov esi, 0x4d
jmp 0x5411ad
Function at 0x544eb0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push dword [esp + 0x20]
call fcn.00443ef0
mov esi, dword [esp + 0x1c]
mov ebx, eax
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x14], ebx
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea ecx, [ecx + edx*2]
add ecx, 0xc
push ecx
call dword [0x61c024]
mov edi, eax
add esp, 8
test edi, edi
je 0x545018
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x544f2c
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push ebp
push dword [edi + 4]
call eax
mov ebp, dword [edi + 8]
push dword [edi + 4]
add ebp, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ebp
call eax
mov eax, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [esp + 0x10], eax
mov eax, dword [esi]
push ecx
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [esp + 0x18]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x544f91
mov dword [esp + 0x18], eax
mov ebx, eax
nop dword [eax + eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x1c], al
lea eax, [esp + 0x1c]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x28], al
lea eax, [esp + 0x28]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub ebx, 1
jne 0x544f50
mov ebx, dword [esp + 0x18]
cmp ebx, dword [esi + 0x10]
jae 0x544fbd
mov eax, dword [esi + 4]
push 1
push 0x5803b3
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x5803b4
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x544f96
push dword [esp + 0x28]
call fcn.00443ef0
mov ecx, dword [edi]
push eax
push dword [esp + 0x2c]
push dword [edi + 4]
mov eax, dword [ecx + 4]
call eax
mov esi, dword [esp + 0x3c]
add esp, 0x10
mov ebx, dword [edi]
test esi, esi
jne 0x544fe8
mov esi, dword [ebx + 0xc]
add esi, dword [edi + 8]
push dword [edi + 4]
mov eax, dword [ebx + 8]
push esi
call eax
push dword [ebx + 0x14]
mov eax, dword [ebx + 4]
push esi
push dword [edi + 8]
call eax
push dword [edi + 8]
mov eax, dword [ebx + 8]
push esi
call eax
push edi
call dword [0x61c028]
add esp, 0x20
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
pop ecx
ret
Function at 0x548080
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x254
mov eax, dword [0x61c174]
xor eax, esp
mov dword [esp + 0x250], eax
cmp dword [esp + 0x260], 0
mov eax, dword [esp + 0x25c]
push ebp
mov ebp, dword [esp + 0x25c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x268]
push esi
mov esi, dword [esp + 0x270]
mov dword [esp + 0x10], eax
je 0x5481c4
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.00548530
add esp, 8
lea eax, [esp + 0x18]
mov ecx, 2
nop
lea eax, [eax + 0x10]
movups xmm0, xmmword [esi]
movups xmmword [eax - 0x10], xmm0
sub ecx, 1
jne 0x5480e0
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x268]
push edi
lea edi, [esp + 0x5c]
bswap esi
sub edi, ebp
push ebx
mov eax, esi
mov dword [esp + 0x14], esi
bswap eax
mov dword [esp + 0x2c], eax
mov edx, 2
cmp ecx, edx
lea eax, [esi + 1]
bswap eax
mov ebx, ecx
mov dword [esp + 0x3c], eax
cmovae ebx, edx
lea eax, [esp + 0x20]
push ebx
push eax
lea eax, [esp + 0x48]
mov dword [esp + 0x24], ebx
push eax
call fcn.00549480
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esp + 0x28]
push dword [eax + 0xf0]
lea eax, [esp + 0x94]
push eax
call fcn.00548440
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x7c]
push ebx
push eax
call fcn.00548620
add esp, 0x24
test ebx, ebx
je 0x54819d
mov esi, dword [esp + 0x10]
mov eax, ebp
sub esi, ebp
mov edx, 4
nop dword [eax]
mov ecx, dword [eax]
xor ecx, dword [edi + eax]
mov dword [esi + eax], ecx
add eax, 4
sub edx, 1
jne 0x548180
sub ebx, 1
jne 0x548174
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x270]
sub ecx, ebx
mov dword [esp + 0x270], ecx
je 0x5481c2
add dword [esp + 0x10], 0x20
add ebp, 0x20
sub edi, 0x20
add esi, 2
jmp 0x548104
pop ebx
pop edi
mov ecx, dword [esp + 0x258]
pop esi
pop ebp
xor ecx, esp
call fcn.00549eab
add esp, 0x254
ret
Function at 0x548440
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x18]
mov eax, dword [ebx]
xor dword [esi], eax
mov eax, dword [ebx + 4]
xor dword [esi + 4], eax
mov eax, dword [ebx + 8]
xor dword [esi + 8], eax
mov eax, dword [ebx + 0xc]
xor dword [esi + 0xc], eax
mov eax, dword [ebx + 0x10]
xor dword [esi + 0x10], eax
mov eax, dword [ebx + 0x14]
xor dword [esi + 0x14], eax
mov eax, dword [ebx + 0x18]
xor dword [esi + 0x18], eax
mov eax, dword [ebx + 0x1c]
xor dword [esi + 0x1c], eax
cmp ebp, 1
jbe 0x5484d8
push edi
lea edi, [ebx + 0x28]
dec ebp
push esi
call fcn.00549190
push esi
call fcn.00549000
push esi
call fcn.00548830
mov eax, dword [edi - 8]
lea edi, [edi + 0x20]
xor dword [esi], eax
add esp, 0xc
mov eax, dword [edi - 0x24]
xor dword [esi + 4], eax
mov eax, dword [edi - 0x20]
xor dword [esi + 8], eax
mov eax, dword [edi - 0x1c]
xor dword [esi + 0xc], eax
mov eax, dword [edi - 0x18]
xor dword [esi + 0x10], eax
mov eax, dword [edi - 0x14]
xor dword [esi + 0x14], eax
mov eax, dword [edi - 0x10]
xor dword [esi + 0x18], eax
mov eax, dword [edi - 0xc]
xor dword [esi + 0x1c], eax
sub ebp, 1
jne 0x548487
mov ebp, dword [esp + 0x18]
pop edi
push esi
call fcn.00549190
push esi
call fcn.00549000
shl ebp, 5
add esp, 8
mov eax, dword [ebx + ebp]
xor dword [esi], eax
mov eax, dword [ebx + ebp + 4]
xor dword [esi + 4], eax
mov eax, dword [ebx + ebp + 8]
xor dword [esi + 8], eax
mov eax, dword [ebx + ebp + 0xc]
xor dword [esi + 0xc], eax
mov eax, dword [ebx + ebp + 0x10]
xor dword [esi + 0x10], eax
mov eax, dword [ebx + ebp + 0x14]
xor dword [esi + 0x14], eax
mov eax, dword [ebx + ebp + 0x18]
xor dword [esi + 0x18], eax
mov eax, dword [ebx + ebp + 0x1c]
xor dword [esi + 0x1c], eax
pop esi
pop ebp
pop ebx
ret
Function at 0x548620
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2c
mov eax, dword [0x61c174]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
push ebp
movups xmm0, xmmword [eax]
movups xmmword [esp + 0xc], xmm0
movups xmm0, xmmword [eax + 0x10]
lea eax, [esp + 0xc]
push eax
movups xmmword [esp + 0x20], xmm0
call fcn.00549700
xor ebp, ebp
add esp, 4
mov dword [esp + 4], ebp
cmp dword [esp + 0x38], ebp
jbe 0x548818
push ebx
lea eax, [ecx + 8]
push esi
mov dword [esp + 0x10], eax
push edi
nop
mov edx, dword [esp + ebp*4 + 0x30]
mov eax, dword [esp + ebp*4 + 0x28]
movzx eax, al
mov ebx, dword [esp + ebp*4 + 0x20]
mov ecx, dword [esp + ebp*4 + 0x18]
movzx edx, dl
shl edx, 8
or edx, eax
movzx eax, bl
shl edx, 8
or edx, eax
movzx eax, cl
shl edx, 8
or edx, eax
mov ecx, edx
shr ecx, 0xc
xor ecx, edx
and ecx, 0xf0f0
mov eax, ecx
shl eax, 0xc
xor eax, ecx
mov ecx, dword [esp + 0x10]
xor edx, eax
mov eax, edx
shr eax, 6
xor eax, edx
mov esi, dword [esp + ecx*4 + 0x18]
and eax, 0xcc00cc
mov ebx, eax
shl ebx, 6
xor ebx, eax
mov eax, dword [esp + ebp*4 + 0x30]
mov ebp, dword [esp + ecx*4 + 0x28]
xor ebx, edx
shr eax, 8
movzx edx, al
mov eax, ebp
shr eax, 8
movzx eax, al
shl edx, 8
or edx, eax
mov eax, dword [esp + ecx*4 + 0x20]
shr eax, 8
movzx eax, al
shl edx, 8
or edx, eax
mov eax, esi
shr eax, 8
movzx eax, al
shl edx, 8
or edx, eax
mov ecx, edx
shr ecx, 0xc
xor ecx, edx
and ecx, 0xf0f0
mov eax, ecx
shl eax, 0xc
xor eax, ecx
xor edx, eax
mov eax, edx
shr eax, 6
xor eax, edx
and eax, 0xcc00cc
mov edi, eax
shl edi, 6
xor edi, eax
mov eax, dword [esp + 0x10]
xor edi, edx
mov eax, dword [esp + eax*4 + 0x30]
shr eax, 0x10
movzx edx, al
mov eax, ebp
mov ebp, dword [esp + 0x10]
shr eax, 0x10
movzx eax, al
shl edx, 8
or edx, eax
mov eax, dword [esp + ebp*4 + 0x20]
shl edx, 8
shr eax, 0x10
movzx eax, al
or edx, eax
mov eax, esi
shr eax, 0x10
movzx eax, al
shl edx, 8
or edx, eax
mov ecx, edx
shr ecx, 0xc
xor ecx, edx
and ecx, 0xf0f0
mov eax, ecx
shl eax, 0xc
xor eax, ecx
xor edx, eax
mov eax, edx
shr eax, 6
xor eax, edx
and eax, 0xcc00cc
mov esi, eax
shl esi, 6
xor esi, eax
mov eax, dword [esp + ebp*4 + 0x18]
shr eax, 8
xor esi, edx
mov edx, dword [esp + ebp*4 + 0x20]
and edx, 0xff00ffff
or edx, eax
mov eax, dword [esp + ebp*4 + 0x28]
and eax, 0xff0000ff
shr edx, 8
or edx, eax
mov eax, dword [esp + ebp*4 + 0x30]
and eax, 0xff000000
shr edx, 8
or edx, eax
inc ebp
mov ecx, edx
mov dword [esp + 0x10], ebp
shr ecx, 0xc
xor ecx, edx
and ecx, 0xf0f0
mov eax, ecx
shl eax, 0xc
xor eax, ecx
xor edx, eax
mov eax, edx
shr eax, 6
xor eax, edx
and eax, 0xcc00cc
mov ecx, eax
shl ecx, 6
xor ecx, eax
mov eax, dword [esp + 0x14]
xor ecx, edx
mov dword [eax - 8], ebx
mov dword [eax - 4], edi
mov dword [eax], esi
mov dword [eax + 4], ecx
add eax, 0x10
mov dword [esp + 0x14], eax
cmp ebp, dword [esp + 0x44]
jb 0x548670
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c]
pop ebp
xor ecx, esp
call fcn.00549eab
add esp, 0x2c
ret