joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5459b0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ecx - 0xc8]
xor edi, edi
mov ebx, dword [esi + 0x18]
cmp eax, 0x64
jb 0x5459e5
push str.Couldnt_set_desired_mode
push esi
call fcn.005245a0
add esp, 8
lea eax, [edi + 0x11]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ecx, 0xc8
je 0x5459fc
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200
push esi
call fcn.00524660
add esp, 0xc
mov al, byte [ebp + 0x10]
cmp al, 0x13
jne 0x545a16
push ebx
push esi
call fcn.005458b0
add esp, 8
mov edi, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp al, 0x14
jne 0x545b23
mov eax, dword [esi + 0x18]
xor ebx, ebx
cmp byte [esi + 0x4d8], 2
mov dword [ebp + 0xc], eax
jne 0x545a89
mov eax, dword [esi + 0x124]
mov eax, dword [eax]
test eax, eax
je 0x545a89
push 3
push ebx
lea ecx, [ebp + 8]
mov dword [ebp + 8], ebx
push ecx
push ebx
push eax
call fcn.00551760
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x545b3e
push 0x2f
push dword [ebp + 8]
call fcn.006623a0
add esp, 8
test eax, eax
je 0x545a7d
mov ebx, dword [ebp + 8]
mov ecx, 1
sub eax, ebx
cmovne ecx, eax
mov byte [ecx + ebx], 0
jmp 0x545a89
push dword [ebp + 8]
call dword [0x7192f4]
add esp, 4
mov ecx, dword [esi + 0x50c]
test ecx, ecx
jne 0x545aa7
cmp byte [esi + 0xd97], 0
mov ecx, str.NLST
mov eax, str.LIST
cmove ecx, eax
mov edx, 0x67cb10
test ebx, ebx
mov eax, edx
cmovne eax, ebx
push eax
mov eax, 0x684064
cmove eax, edx
push eax
push ecx
push 0x688e58
call sym.updateself.exe_curl_maprintf
mov edi, eax
push ebx
mov dword [ebp - 4], edi
call dword [0x7192f4]
add esp, 0x14
test edi, edi
jne 0x545ae9
mov edi, 0x1b
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
push edi
push 0x6840c0
add eax, 0x260
push eax
push esi
call fcn.0055f070
push dword [ebp - 4]
mov edi, eax
call dword [0x7192f4]
add esp, 0x14
test edi, edi
jne 0x545b3e
mov eax, dword [esi + 0x18]
mov byte [eax + 0x2fe], 0x1f
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp al, 0x15
jne 0x545b2b
push 0xd
jmp 0x545b31
cmp al, 0x16
jne 0x545b3e
push 0xe
push 1
push esi
call fcn.00545430
add esp, 0xc
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x54c3d0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push 0
mov byte [ebp + 0xa], cl
lea ecx, [ebp + 8]
push 3
mov eax, dword [esi + 0x18]
push ecx
mov byte [ebp + 8], 0xff
mov byte [ebp + 9], bl
push dword [eax + 0x128]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x54c418
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.005245a0
add esp, 0xc
push dword [ebp + 0x10]
push ebx
push str.SENT
push esi
call fcn.0054bfe0
add esp, 0x10
pop esi
pop ebx
pop ebp
ret

Function at 0x54c550
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0xc], 0x1f
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x124]
mov eax, dword [eax + 0x18]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
jne 0x54c6ad
push ebx
push edi
lea ebx, [ecx + 0x1cb4]
lea edi, [ecx + 0x1eb4]
mov dword [edi], ebx
cmp ebx, edi
jae 0x54c590
lea eax, [ebx + 1]
mov byte [ebx], 0xff
mov dword [edi], eax
jmp 0x54c592
mov eax, ebx
cmp eax, edi
jae 0x54c5a6
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x54c5a6
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ecx + 0x1ca8]
push esi
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
movzx eax, ax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x1caa]
push eax
call esi
mov edx, dword [ebp + 0xc]
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x54c612
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x54c612
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x54c612
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x54c612
shr ecx, 8
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x54c612
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x54c612
mov byte [eax], 0xf0
mov eax, dword [edi]
inc eax
mov ecx, dword [ebp - 4]
mov esi, dword [ebp + 8]
mov dword [edi], ebx
mov edi, ecx
mov dword [ecx + 0x1eb8], eax
sub eax, ebx
sub eax, 2
push eax
lea eax, [edi + 0x1cb6]
push eax
push 0x3e
push esi
call fcn.0054c0e0
mov eax, dword [ebp - 8]
add esp, 0x10
push 0
push 3
push ebx
push dword [eax + 0x128]
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x54c669
call ebx
push eax
push str.Sending_data_failed___d_
push esi
call fcn.005245a0
add esp, 0xc
push 4
lea eax, [edi + 0x1cb7]
push eax
push esi
call fcn.0054c430
add esp, 0xc
lea eax, [edi + 0x1cbb]
push 0
push 2
push eax
mov eax, dword [ebp - 8]
push dword [eax + 0x128]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x54c6aa
call ebx
push eax
push str.Sending_data_failed___d_
push esi
call fcn.005245a0
add esp, 0xc
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x54c6c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x718924]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x808], ebx
mov esi, dword [ebx + 0x124]
mov edi, dword [ebx + 0x18]
mov dword [ebp - 0x80c], edi
mov eax, dword [esi + 0x1eb8]
sub eax, dword [esi + 0x1eb4]
add eax, 2
push eax
lea eax, [esi + 0x1cb4]
push eax
push 0x3c
push ebx
call fcn.0054c0e0
mov eax, dword [esi + 0x1eb4]
add esp, 0x10
mov cl, byte [eax]
inc eax
mov dword [esi + 0x1eb4], eax
cmp cl, 0x18
je 0x54c88a
cmp cl, 0x23
je 0x54c867
cmp cl, 0x27
jne 0x54c918
push 0
push 0x27
push 0xfa
push 0xff
push str._c_c_c_c
lea eax, [ebp - 0x804]
push 0x800
push eax
call sym.updateself.exe_curl_msnprintf
mov esi, dword [esi + 0x1cb0]
add esp, 0x1c
mov edi, 4
test esi, esi
je 0x54c801
mov edx, dword [esi]
mov ecx, edx
lea ebx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x54c780
sub ecx, ebx
lea eax, [edi + 1]
add eax, ecx
cmp eax, 0x7fa
jae 0x54c7f0
push 0x2c
push edx
call fcn.004e38b0
mov edx, eax
mov ebx, 0x800
lea eax, [ebp - 0x804]
add esp, 8
sub ebx, edi
add eax, edi
test edx, edx
jne 0x54c7c9
push dword [esi]
push edx
push str._c_s
push ebx
push eax
call sym.updateself.exe_curl_msnprintf
add esp, 0x14
jmp 0x54c7ee
mov ecx, dword [esi]
lea eax, [edx + 1]
push eax
push 1
push ecx
sub edx, ecx
lea eax, [ebp - 0x804]
push edx
push 0
push str._c_.s_c_s
add eax, edi
push ebx
push eax
call sym.updateself.exe_curl_msnprintf
add esp, 0x20
add edi, eax
mov esi, dword [esi + 4]
test esi, esi
jne 0x54c774
mov ebx, dword [ebp - 0x808]
push 0xf0
push 0xff
mov eax, 0x800
sub eax, edi
push str._c_c
push eax
lea eax, [ebp - 0x804]
add eax, edi
push eax
call sym.updateself.exe_curl_msnprintf
add esp, 0x14
lea eax, [edi + 2]
push 0
push eax
lea eax, [ebp - 0x804]
push eax
mov eax, dword [ebp - 0x80c]
push dword [eax + 0x128]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x54c861
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.005245a0
add esp, 0xc
push edi
jmp 0x54c906
lea edx, [esi + 0x1c28]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x54c872
push 0xf0
push 0xff
push edx
push 0
push 0x23
jmp 0x54c8ab
lea edx, [esi + 0x1c08]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x54c895
push 0xf0
push 0xff
push edx
push 0
push 0x18
push 0xfa
push 0xff
push str._c_c_c_c_s_c_c
sub ecx, esi
lea eax, [ebp - 0x804]
push 0x800
push eax
lea esi, [ecx + 6]
call sym.updateself.exe_curl_msnprintf
add esp, 0x28
lea eax, [ebp - 0x804]
push 0
push esi
push eax
push dword [edi + 0x128]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x54c902
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.005245a0
add esp, 0xc
lea eax, [esi - 2]
push eax
lea eax, [ebp - 0x802]
push eax
push 0x3e
push ebx
call fcn.0054c0e0
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cb998
mov esp, ebp
pop ebp
ret
Function at 0x54dae0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x718924]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ebx + 0x18]
mov edi, dword [eax + 0x260]
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x88], 0x80
lea eax, [ebp - 0x84]
push eax
mov eax, dword [edi + 0x13c]
push 0
add eax, 4
push eax
push dword [edi + 0x148]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [edi + 0x130], 0
mov dword [edi + 0x134], eax
jne 0x54db6c
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push eax
lea eax, [edi + 0xb0]
push eax
call fcn.004e25c0
mov eax, dword [ebp - 0x88]
add esp, 0xc
mov dword [edi + 0x130], eax
mov esi, dword [edi + 0x134]
cmp esi, 4
jge 0x54db9f
push str.Received_too_short_packet
push ebx
call fcn.005245a0
add esp, 8
mov dword [edi + 0xc], 7
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb998
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x148]
movzx eax, byte [edx]
movzx ecx, byte [edx + 1]
shl eax, 8
or ecx, eax
mov dword [edi + 0xc], ecx
add ecx, 0xfffffffd
cmp ecx, 3
ja case.default.0x54dbc0
jmp dword [ecx*4 + 0x54dcfc]
cmp esi, 4
jle case.0x54dbc0.4
movzx ecx, byte [edx + 2]
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
movzx eax, word [edi + 0x144]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x54dbc0.4
lea eax, [esi - 4]
push eax
lea eax, [edx + 4]
push eax
push 1
push ebx
call fcn.00524890
mov esi, eax
add esp, 0x10
test esi, esi
je 0x54dc27
push 5
push edi
call fcn.0054e640
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb998
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x134]
sub eax, 4
cdq
add dword [ebx + 0x98], eax
adc dword [ebx + 0x9c], edx
push dword [ebx + 0x9c]
push dword [ebx + 0x98]
push ebx
call fcn.00533670
jmp 0x54dcc7
movzx ecx, byte [edx + 2]
lea eax, [edx + 4]
mov dword [ebp - 0x8c], eax
add esi, 0xfffffffc
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
lea eax, [edx + 4]
push esi
push eax
mov dword [edi + 8], ecx
call fcn.0054e6c0
add esp, 8
cmp eax, esi
jae case.0x54dbc0.4
push dword [ebp - 0x8c]
push str.TFTP_error:__s
push ebx
call fcn.00524660
jmp 0x54dcc7
lea eax, [esi - 2]
push eax
lea eax, [edx + 2]
push eax
push edi
call fcn.0054d890
add esp, 0xc
test eax, eax
je case.0x54dbc0.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb998
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x6840c0
push ebx
call fcn.005245a0
add esp, 0xc
push ebx
call fcn.00533bb0
add esp, 4
test eax, eax
je 0x54db8c
push 5
push edi
call fcn.0054e640
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 0x2a
pop edi
pop esi
pop ebx
call fcn.004cb998
mov esp, ebp
pop ebp
ret
Function at 0x54e640
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [eax + 0x10]
cmp edx, 3
ja case.default.0x54e650
jmp dword [edx*4 + 0x54e6a4]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0054e030
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0054dd10
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0054e7f0
push str.TFTP_finished
push 0x6840c0
push ecx
call fcn.00524660
add esp, 0xc
xor eax, eax
pop ebp
ret
push str.Internal_state_machine_error
push 0x6840c0
push ecx
call fcn.005245a0
add esp, 0xc
mov eax, 0x47
pop ebp
ret
Function at 0x553bf0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x7232ac]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x553c42
push 3
push 2
push eax
push eax
push 6
call fcn.00559910
add esp, 0x14
test al, al
je 0x553c36
mov dword [0x7232ac], 2
mov esp, ebp
pop ebp
ret
mov dword [0x7232ac], 1
jmp 0x553c47
cmp eax, 2
je 0x553c87
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x553c6e
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x553c87
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret
Function at 0x5548a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x718924]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov eax, dword [ebx]
push 0
push dword [ebp + 0x10]
mov eax, dword [eax + 8]
push ecx
mov dword [edi], 0
push dword [eax + 0x98]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
jne 0x554930
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x5548fb
mov dword [edi], 0x51
jmp 0x55492d
push 0x100
lea eax, [ebp - 0x104]
push eax
push esi
call fcn.00536820
push eax
push str.Recv_failure:__s
push dword [ebx + 4]
call fcn.005245a0
mov eax, dword [ebx + 4]
add esp, 0x18
mov dword [eax + 0x930], esi
mov dword [edi], 0x38
or esi, 0xffffffff
push dword [edi]
push esi
push dword [ebp + 0x10]
push str.nw_in_read_len_zu______d__err_d
push dword [ebx]
push dword [ebx + 4]
call fcn.005246e0
mov ecx, dword [ebp - 4]
add esp, 0x18
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004cb998
mov esp, ebp
pop ebp
ret

Function at 0x554960
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x718924]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [eax + 8]
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x1e8]
test dword [eax + 0x44], 0x800
jne 0x554a80
push 0x80
lea eax, [ebp - 0x184]
mov dword [ebp - 0x188], 0x80
push 0
push eax
call fcn.004e30c0
add esp, 0xc
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x184]
push eax
push dword [esi + 0x98]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x554a11
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.00536820
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.005245a0
add esp, 0x1c
mov eax, 2
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb998
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x120]
push eax
lea eax, [esi + 0xf0]
push eax
push dword [ebp - 0x188]
lea eax, [ebp - 0x184]
push eax
call fcn.00525420
add esp, 0x10
test al, al
jne 0x554a80
push edi
call fcn.004e6683
mov esi, dword [eax]
call fcn.004e6683
mov edi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.00536820
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.005245a0
add esp, 0x1c
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb998
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.004cb998
mov esp, ebp
pop ebp
ret
Function at 0x560440
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x560473
push 0x2e
push edi
call fcn.004e38b0
add esp, 8
test eax, eax
je 0x560471
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x561190
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x7192f0]
mov edi, eax
add esp, 4
test edi, edi
jne 0x5611bd
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x561207
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [ebp + 0x10], ebx
jmp 0x56120d
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [esi]
push ecx
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x56126b
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
nop dword [eax + eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x561230
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x561297
mov eax, dword [esi + 4]
push 1
push 0x6a1904
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x6a1905
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x561270
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5612a0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push dword [ebp + 0x10]
call fcn.00526440
mov esi, dword [ebp + 8]
mov ebx, eax
mov dword [ebp - 4], ebx
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea ecx, [ecx + edx*2]
add ecx, 0xc
push ecx
call dword [0x7192f0]
mov edi, eax
add esp, 8
test edi, edi
je 0x561400
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 0x56131e
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [ebp + 0xc]
push ebx
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp + 0xc], eax
push eax
mov eax, dword [esi + 8]
call eax
mov eax, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [ebp - 4], eax
mov eax, dword [esi]
push ecx
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp - 4]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x56137b
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
nop dword [eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp - 4], 1
jne 0x561340
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x5613a7
mov eax, dword [esi + 4]
push 1
push 0x6a1904
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x6a1905
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x561380
push dword [ebp + 0x18]
call fcn.00526440
mov ecx, dword [edi]
push eax
push dword [ebp + 0x14]
push dword [edi + 4]
mov eax, dword [ecx + 4]
call eax
mov esi, dword [ebp + 0x1c]
add esp, 0x10
mov ebx, dword [edi]
test esi, esi
jne 0x5613cf
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 [0x7192f4]
add esp, 0x20
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x568600
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
cmp ebp, ebx
je 0x568727
mov eax, dword [esp + 0xc]
mov ecx, dword [ebp + 4]
lea edx, [eax - 1]
not eax
shr eax, 0x1f
shr edx, 0x1f
and edx, eax
mov eax, dword [ebx + 4]
xor eax, ecx
dec edx
and eax, edx
mov dword [esp + 0x14], 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 ecx, dword [esp + 0x18]
test ecx, ecx
jle 0x568727
push esi
push edi
cmp ecx, 4
jb 0x5686fd
mov edx, dword [ebp]
lea edi, [ecx - 1]
mov esi, dword [ebx]
lea ebp, [ecx - 1]
lea ebp, [edx + ebp*4]
cmp esi, ebp
lea edi, [esi + edi*4]
mov ebp, dword [esp + 0x18]
ja 0x56869c
cmp edi, edx
jae 0x5686fd
cmp esi, ebx
ja 0x5686a4
cmp edi, ebx
jae 0x5686fd
cmp esi, ebp
ja 0x5686ac
cmp edi, ebp
jae 0x5686fd
lea edi, [ecx - 1]
lea edi, [edx + edi*4]
cmp edx, ebx
ja 0x5686ba
cmp edi, ebx
jae 0x5686fd
cmp edx, ebp
ja 0x5686c2
cmp edi, ebp
jae 0x5686fd
mov edi, ecx
and edi, 0xfffffffc
nop word [eax + eax]
movups xmm3, xmmword [esi + eax*4]
movups xmm2, xmmword [edx + eax*4]
movaps xmm1, xmm3
pxor xmm1, xmm2
pand xmm1, xmm4
movaps xmm0, xmm1
pxor xmm1, xmm3
pxor xmm0, xmm2
movups xmmword [edx + eax*4], xmm0
movups xmmword [esi + eax*4], xmm1
add eax, 4
cmp eax, edi
jl 0x5686d0
cmp eax, ecx
jge 0x568725
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 + 0x1c]
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 0x568701
pop edi
pop esi
pop ebp
pop ebx
ret