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

Disassembly:
push ebp
push ebx
push edi
push esi
mov ebx, dword [esp + 0x14]
mov edi, dword [ebx + 0x28]
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
cmp dword [edi + 0x38], 0
je 0x580f6e
push 0
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [ebx + 0x24]
call dword [sym.imp.WS2_32.dll_send]
jmp 0x580f98
push edi
call fcn.0057b450
add esp, 4
mov esi, eax
mov ebp, dword [ebx + 0x24]
push edi
call fcn.0057b430
add esp, 4
push esi
push eax
push 0
push dword [esp + 0x28]
push dword [esp + 0x28]
push ebp
call dword [sym.imp.WS2_32.dll_sendto]
mov esi, eax
push 0xf
push ebx
call fcn.0057c080
add esp, 8
lea eax, [esi + 1]
cmp eax, 1
ja case.0x580fc0.104
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x66
jle 0x580fe2
lea ecx, [eax - 0x67]
cmp ecx, 0x25
ja case.default.0x580fc0
jmp dword [ecx*4 + 0x956e0c]
push 0xa
push ebx
call fcn.0057c0a0
add esp, 8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi + 0x3c], eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
cmp eax, 4
je case.0x580fc0.103
cmp eax, 0xb
je case.0x580fc0.103
jmp case.0x580fc0.104
cmp eax, 0x2733
je case.0x580fc0.103
jmp case.0x580fc0.104

Function at 0x5831a0
Capabilities:
Check if file exists

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
push ebp
push edi
call fcn.005dcfc0
add esp, 8
mov esi, eax
push 0x62
push ebp
call sub.api_ms_win_crt_private_l1_1_0.dll_strchr
add esp, 8
xor ebx, ebx
test eax, eax
sete al
test esi, esi
je 0x583214
mov byte [esp + 3], al
push 0x95767c
call fcn.0057bf10
add esp, 4
test eax, eax
je 0x58327d
movzx ecx, byte [esp + 3]
mov bl, cl
shl ebx, 4
inc ebx
push 0
push eax
mov edi, eax
call fcn.0057c080
add esp, 8
push esi
push ebx
push 0x6a
push edi
call fcn.0057c940
mov eax, edi
add esp, 0x10
jmp 0x5832b4
call fcn.005b5b10
push str.BIO_new_file
push 0x43
push str.crypto_bio_bss_file.c
call fcn.005b5c10
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
push edi
push str.calling_fopen__s___s_
push eax
push 2
call fcn.005b5d00
add esp, 0x14
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 2
je 0x58325b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 6
jne 0x583288
call fcn.005b5b10
push str.BIO_new_file
push 0x4b
push str.crypto_bio_bss_file.c
call fcn.005b5c10
add esp, 0xc
push 0
push pe_nt_image_headers32
jmp 0x5832a8
push esi
call fcn.00786c28
add esp, 4
jmp 0x5832b2
call fcn.005b5b10
push str.BIO_new_file
push 0x4d
push str.crypto_bio_bss_file.c
call fcn.005b5c10
add esp, 0xc
push 0
push 0x80002
push 0x20
call fcn.005b5d00
add esp, 0xc
xor eax, eax
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x583fd0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push edi
push esi
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push ebx
push esi
push dword [edi + 0x24]
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
push 0xf
push edi
call fcn.0057c080
add esp, 8
mov eax, esi
inc eax
cmp eax, 1
ja case.0x58401c.104
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x66
jle 0x584034
lea ecx, [eax - 0x67]
cmp ecx, 0x25
ja case.default.0x58401c
jmp dword [ecx*4 + 0x957b80]
push 0xa
push edi
call fcn.0057c0a0
add esp, 8
mov eax, esi
pop esi
pop edi
pop ebx
ret
cmp eax, 4
je case.0x58401c.103
cmp eax, 0xb
je case.0x58401c.103
jmp case.0x58401c.104
cmp eax, 0x2733
je case.0x58401c.103
jmp case.0x58401c.104
Function at 0x588b60
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov dword [esp + 4], edx
mov edi, ecx
mov ebp, dword [esp + 0x40]
push ecx
call fcn.00588180
add esp, 4
lea edx, [eax + 7]
lea ecx, [eax + 0xe]
test edx, edx
cmovns ecx, edx
sar ecx, 3
xor esi, esi
cmp dword [esp + 0x48], 0
mov ebx, 0
mov edx, 0
je 0x588ce1
add ecx, edx
cmp ebp, 0xffffffff
je 0x588d10
cmp ecx, ebp
jle 0x588c20
movups xmm0, xmmword [edi]
movups xmmword [esp + 0x18], xmm0
mov eax, dword [edi + 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
test eax, eax
mov dword [esp], edx
jle 0x588be7
mov ecx, dword [esp + 0x18]
nop dword [eax]
cmp dword [ecx + eax*4 - 4], 0
jne 0x588be3
lea edx, [eax - 1]
cmp eax, 1
mov eax, edx
jg 0x588bd0
xor eax, eax
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x588bf3
mov dword [esp + 0x24], 0
lea eax, [esp + 0x18]
push eax
call fcn.00588180
add esp, 4
mov ecx, eax
add eax, 7
add ecx, 0xe
test eax, eax
cmovns ecx, eax
sar ecx, 3
add ecx, dword [esp]
mov eax, 0xffffffff
cmp ecx, ebp
jg 0x588d36
mov eax, dword [edi + 8]
test eax, eax
je 0x588d1d
mov dword [esp], esi
mov esi, dword [esp + 0x44]
xor edx, edx
cmp esi, 1
sete cl
test ebp, ebp
je 0x588d34
mov dl, cl
lea ecx, [edx*2 - 1]
mov dword [esp + 0x10], ecx
cmp esi, 1
mov ecx, dword [esp + 4]
lea esi, [ecx + ebp - 1]
cmove esi, ecx
mov ecx, dword [edi + 4]
shl eax, 2
mov edx, 1
sub edx, eax
mov dword [esp + 0xc], edx
shl ecx, 2
neg ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], edi
xor edi, edi
xor eax, eax
mov dword [esp + 0x14], ebp
nop word cs:[eax + eax]
mov ecx, dword [esp + 8]
mov ecx, dword [ecx]
mov edx, eax
and edx, 0xfffffffc
mov ebp, dword [ecx + edx]
mov ecx, dword [esp + 4]
lea edx, [ecx + edi]
lea ecx, [eax*8]
shr ebp, cl
sar edx, 0x1f
and edx, ebp
mov ebp, dword [esp + 0x14]
movzx ecx, dl
xor ecx, dword [esp]
add ebx, ecx
mov byte [esi], bl
movzx edx, bl
xor ebx, ebx
cmp ecx, edx
seta bl
mov ecx, dword [esp + 0xc]
add ecx, eax
shr ecx, 0x1f
add eax, ecx
add esi, dword [esp + 0x10]
inc edi
cmp ebp, edi
jne 0x588c90
jmp 0x588d30
mov ebx, dword [edi + 0xc]
xor edx, edx
test ebx, ebx
sete dl
mov dword [esp], edx
mov esi, 0xff
cmove esi, ebx
lea edx, [ecx*8]
cmp edx, eax
mov edx, dword [esp]
cmovne edx, ebx
add ecx, edx
cmp ebp, 0xffffffff
jne 0x588baa
mov ebp, ecx
mov eax, dword [edi + 8]
test eax, eax
jne 0x588c2b
test ebp, ebp
je 0x588d34
push ebp
push 0
push dword [esp + 0xc]
call fcn.00786b68
add esp, 0xc
mov eax, ebp
jmp 0x588d36
xor eax, eax
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x588f80
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov esi, dword [edx]
mov ebp, dword [edx + 4]
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
movzx eax, byte [edx + 0x10]
shr al, 2
cmp ebp, ecx
sete dl
and dl, al
cmp dl, 1
jne 0x589019
xor eax, eax
test ebp, ebp
jle 0x58904f
xor edi, edi
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], ebp
nop word cs:[eax + eax]
mov ecx, dword [esi + edi*4]
mov ebp, dword [ebx + edi*4]
mov edx, ebp
xor edx, ecx
mov ebx, ecx
sub ebx, ebp
xor ebx, ebp
or ebx, edx
xor ebx, ecx
sar ebx, 0x1f
mov esi, ebx
not ebx
and ebx, eax
or ebx, esi
mov esi, dword [esp + 8]
mov eax, ebp
sub eax, ecx
xor eax, ecx
or eax, edx
xor eax, ebp
mov ebp, dword [esp]
sar eax, 0x1f
mov ecx, eax
not eax
and eax, ebx
mov ebx, dword [esp + 4]
and ecx, 1
or eax, ecx
inc edi
cmp ebp, edi
jne 0x588fd0
jmp 0x58904f
mov eax, ebp
sub eax, ecx
jne 0x58904f
jmp 0x58903d
mov ecx, dword [esi + ebp*4 - 4]
mov edx, dword [ebx + ebp*4 - 4]
dec ebp
cmp ecx, edx
jne 0x589045
test ebp, ebp
jg 0x589030
xor eax, eax
jmp 0x58904f
xor eax, eax
cmp edx, ecx
adc eax, 0xffffffff
or eax, 1
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x589430
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, eax
not ecx
dec eax
and eax, ecx
shr eax, 0x1f
dec eax
mov ecx, dword [edx + 4]
mov edi, dword [esi + 4]
xor edi, ecx
and edi, eax
xor ecx, edi
mov dword [edx + 4], ecx
xor dword [esi + 4], edi
mov ecx, dword [edx + 0xc]
mov edi, dword [esi + 0xc]
xor edi, ecx
and edi, eax
xor ecx, edi
mov dword [edx + 0xc], ecx
xor dword [esi + 0xc], edi
mov ecx, dword [esp + 0x24]
mov edi, dword [edx + 0x10]
mov ebx, dword [esi + 0x10]
xor ebx, edi
and ebx, eax
and ebx, 4
xor edi, ebx
mov dword [edx + 0x10], edi
xor dword [esi + 0x10], ebx
test ecx, ecx
jle 0x58955f
mov edx, dword [edx]
mov esi, dword [esi]
xor edi, edi
cmp ecx, 4
jb 0x589503
lea ebx, [edx + ecx*4]
mov dword [esp], ebx
lea ebp, [esi + ecx*4]
cmp edx, ebp
setb bl
cmp esi, dword [esp]
setb bh
test bl, bh
jne 0x589503
mov edi, ecx
and edi, 0x7ffffffc
movd xmm0, eax
pshufd xmm0, xmm0, 0
xor ebx, ebx
nop word [eax + eax]
movdqu xmm1, xmmword [edx + ebx*4]
movdqu xmm2, xmmword [esi + ebx*4]
movdqa xmm3, xmm2
pxor xmm3, xmm1
pand xmm3, xmm0
pxor xmm1, xmm3
movdqu xmmword [edx + ebx*4], xmm1
pxor xmm3, xmm2
movdqu xmmword [esi + ebx*4], xmm3
add ebx, 4
cmp edi, ebx
jne 0x5894d0
cmp edi, ecx
je 0x58955f
mov ebx, edi
test cl, 1
je 0x589521
mov ebx, dword [edx + edi*4]
mov ebp, dword [esi + edi*4]
xor ebp, ebx
and ebp, eax
xor ebx, ebp
mov dword [edx + edi*4], ebx
xor dword [esi + edi*4], ebp
mov ebx, edi
or ebx, 1
lea ebp, [ecx - 1]
cmp edi, ebp
je 0x58955f
nop dword [eax + eax]
mov edi, dword [edx + ebx*4]
mov ebp, dword [esi + ebx*4]
xor ebp, edi
and ebp, eax
xor edi, ebp
mov dword [edx + ebx*4], edi
xor dword [esi + ebx*4], ebp
mov edi, dword [edx + ebx*4 + 4]
mov ebp, dword [esi + ebx*4 + 4]
xor ebp, edi
and ebp, eax
xor edi, ebp
mov dword [edx + ebx*4 + 4], edi
xor dword [esi + ebx*4 + 4], ebp
add ebx, 2
cmp ecx, ebx
jne 0x589530
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x5d5d20
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov edx, dword [esp + 0x18]
xor eax, eax
test edx, edx
je 0x5d5d8d
movzx ecx, byte [edx]
test cl, cl
je 0x5d5d8d
inc edx
mov edi, 0x100
xor ebx, ebx
nop
mov dword [esp], edx
movsx eax, cl
mov ebp, edi
or ebp, eax
mov ecx, eax
shr ecx, 2
xor ecx, eax
and cl, 0xf
mov esi, ebx
mov al, 0x20
sub al, cl
shl esi, cl
mov ecx, eax
xor edx, edx
shrd ebx, edx, cl
mov edx, dword [esp]
xor ecx, ecx
add edi, 0x100
test al, 0x20
cmovne ebx, ecx
mov eax, ebx
or eax, esi
imul ebp, ebp
mov ebx, ebp
xor ebx, eax
movzx ecx, byte [edx]
inc edx
test cl, cl
jne 0x5d5d40
mov eax, ebx
shr eax, 0x10
xor eax, ebx
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x5d63e0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov edx, dword [esp + 0x18]
xor eax, eax
test edx, edx
je 0x5d6450
movzx ecx, byte [edx]
test cl, cl
je 0x5d6450
inc edx
mov esi, 0x100
xor ebx, ebx
nop
mov dword [esp], edx
and cl, 0xdf
movsx eax, cl
mov ebp, esi
or ebp, eax
mov ecx, eax
shr ecx, 2
xor ecx, eax
and cl, 0xf
mov edi, ebx
mov al, 0x20
sub al, cl
shl edi, cl
mov ecx, eax
xor edx, edx
shrd ebx, edx, cl
mov edx, dword [esp]
xor ecx, ecx
test al, 0x20
cmovne ebx, ecx
mov eax, ebx
or eax, edi
imul ebp, ebp
mov ebx, ebp
xor ebx, eax
add esi, 0x100
movzx ecx, byte [edx]
inc edx
test cl, cl
jne 0x5d6400
mov eax, ebx
shr eax, 0x10
xor eax, ebx
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x5d8950
Capabilities:
Access the windows event log
Check os version
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x220
mov esi, esp
mov ebx, dword [ebp + 8]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x5d89b6
mov edi, eax
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x5d89b6
lea eax, [ebp + 0xc]
mov dword [esi + 0xc], eax
lea ecx, [esi + 0x10]
push eax
push ebx
push 0x200
push ecx
mov ebx, ecx
call fcn.00786820
add esp, 0x10
test eax, eax
mov ecx, 0x200
cmovns ecx, eax
lea eax, [esi + 8]
push 0
push eax
push ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x5d8b4e
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov edi, eax
lea eax, [eax*2 + 5]
inc edi
and eax, 0xfffffffc
call fcn.00787ee0
mov ebx, esp
and ebx, 0xfffffff0
mov esp, ebx
push edi
push ebx
push edi
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edx, dword [ebp + 8]
test eax, eax
setne al
test edi, edi
sete cl
or cl, al
jne 0x5d8a4e
xor eax, eax
cmp edi, 0x10
jb 0x5d8a41
mov eax, edi
and eax, 0xfffffff0
xor ecx, ecx
nop word [eax + eax]
movq xmm0, qword [edx + ecx]
punpcklbw xmm0, xmm0
movq xmm1, qword [edx + ecx + 8]
punpcklbw xmm1, xmm1
psraw xmm0, 8
psraw xmm1, 8
movdqa xmmword [ebx + ecx*2], xmm0
movdqa xmmword [ebx + ecx*2 + 0x10], xmm1
add ecx, 0x10
cmp eax, ecx
jne 0x5d8a10
jmp 0x5d8a4a
movsx ecx, byte [edx + eax]
mov word [ebx + eax*2], cx
inc eax
cmp edi, eax
jne 0x5d8a41
test edi, edi
je 0x5d8ab1
xor eax, eax
jmp 0x5d8a65
inc eax
cmp eax, edi
jae 0x5d8ab1
cmp word [ebx + eax*2], 0x25
jne 0x5d8a60
nop dword [eax]
inc eax
movzx ecx, word [ebx + eax*2]
lea edx, [ecx - 0x30]
cmp edx, 0xa
jb case.0x5d8a85.42
lea edx, [ecx - 0x2a]
cmp edx, 0x39
ja case.default.0x5d8a85
jmp dword [edx*4 + 0x96b8f4]
mov word [ebx + eax*2], 0x63
jmp case.0x5d8a85.43
cmp ecx, 0x73
jne case.0x5d8a85.43
mov word [ebx + eax*2], 0x53
jmp case.0x5d8a85.43
mov word [ebx + eax*2], 0x43
jmp case.0x5d8a85.43
mov word [ebx + eax*2], 0x73
jmp case.0x5d8a85.43
lea eax, [ebp + 0xc]
mov dword [esi + 0xc], eax
lea edi, [esi + 0x10]
push eax
push ebx
push 0xff
push edi
call fcn.007867d0
add esp, 0x10
mov word [esi + 0x20e], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
js 0x5d8b3e
call fcn.005d8850
test eax, eax
jle 0x5d8b3e
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
test eax, eax
je 0x5d8b4e
mov dword [esi + 8], edi
sub esp, 0x24
lea ecx, [esi + 8]
mov dword [esp + 0x1c], ecx
movd xmm0, dword [0x96b8f0]
movdqu xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 1
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push edi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x5d8b4e
push 0x10
push str.OpenSSL:_FATAL
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x5e84d0
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
xor eax, eax
xor edx, edx
cmp ecx, 0
je 0x5e84fb
mov dl, byte [esi]
lea esi, [esi + 1]
xor dl, byte [edi]
lea edi, [edi + 1]
or al, dl
dec ecx
jne 0x5e84e7
neg eax
shr eax, 0x1f
pop edi
pop esi
ret
Function at 0x5ea510
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [esp + 0x30]
test eax, eax
je 0x5ea5e7
xor eax, eax
nop word cs:[eax + eax]
mov dword [esp], eax
mov ebp, eax
shr ebp, 3
mov eax, dword [esp + 0x28]
movzx eax, byte [eax + ebp]
mov ecx, dword [esp]
mov bh, cl
and bh, 7
mov dl, bh
xor dl, 7
movzx ecx, dl
mov esi, edx
bt eax, ecx
setb bl
shl bl, 7
mov edi, dword [esp + 0x38]
movups xmm0, xmmword [edi]
movups xmmword [esp + 4], xmm0
push dword [esp + 0x34]
push edi
push edi
call dword [esp + 0x50]
add esp, 0xc
movzx eax, bl
xor bl, byte [edi]
cmp dword [esp + 0x40], 0
movzx ecx, bl
cmove ecx, eax
movdqu xmm2, xmmword [esp + 4]
movdqa xmm0, xmm2
psrldq xmm0, 1
movd xmm1, ecx
pslldq xmm1, 0xf
por xmm1, xmm0
psrlw xmm1, 7
pand xmm1, xmmword [0x96d520]
movdqa xmm0, xmm2
paddb xmm0, xmm2
por xmm0, xmm1
movdqu xmmword [edi], xmm0
mov edi, dword [esp + 0x2c]
movzx eax, byte [edi + ebp]
btr eax, esi
and bl, 0x80
movzx edx, bl
mov cl, bh
shr edx, cl
or edx, eax
mov eax, dword [esp]
mov ecx, dword [esp + 0x30]
mov byte [edi + ebp], dl
inc eax
cmp ecx, eax
jne 0x5ea530
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x5ea5f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
cmp dword [esp + 0x2c], 0
je 0x5ea6b2
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x24]
cmp dword [esp + 0x3c], 0
lea ebp, [esp + 1]
je 0x5ea661
xor edi, edi
nop dword [eax + eax]
movups xmm0, xmmword [ebx]
movups xmmword [esp], xmm0
push eax
push ebx
push ebx
call dword [esp + 0x4c]
add esp, 0xc
movzx eax, byte [ebx]
xor al, byte [esi + edi]
mov ecx, dword [esp + 0x28]
mov byte [ecx + edi], al
movsd xmm0, qword [ebp]
movsd xmm1, qword [ebp + 7]
movsd qword [ebx + 7], xmm1
movsd qword [ebx], xmm0
mov byte [ebx + 0xf], al
mov eax, dword [esp + 0x30]
inc edi
cmp dword [esp + 0x2c], edi
jne 0x5ea620
jmp 0x5ea6b2
xor edi, edi
nop word cs:[eax + eax]
movups xmm0, xmmword [ebx]
movups xmmword [esp], xmm0
push eax
push ebx
push ebx
call dword [esp + 0x4c]
add esp, 0xc
movzx eax, byte [esi + edi]
movzx ecx, byte [ebx]
xor cl, al
mov edx, dword [esp + 0x28]
mov byte [edx + edi], cl
movsd xmm0, qword [ebp]
movsd xmm1, qword [ebp + 7]
movsd qword [ebx + 7], xmm1
movsd qword [ebx], xmm0
mov byte [ebx + 0xf], al
mov eax, dword [esp + 0x30]
inc edi
cmp dword [esp + 0x2c], edi
jne 0x5ea670
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x5eafb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, dword [esp + 0x20]
mov ecx, dword [esi + 0x38]
mov eax, 0xfffffffe
or ecx, dword [esi + 0x3c]
jne 0x5eb1c4
mov ecx, dword [esp + 0x28]
mov edx, dword [esi + 0x34]
mov ebx, dword [esi + 0x30]
add ebx, ecx
adc edx, 0
mov eax, 0xffffffff
mov edi, ebx
neg edi
mov edi, 0x20000000
sbb edi, edx
jb 0x5eb1c4
mov edi, dword [esp + 0x24]
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], edx
mov eax, dword [esi + 0x170]
test eax, eax
je 0x5eb050
test ecx, ecx
je 0x5eb1bc
nop dword [eax]
movzx edx, byte [edi]
xor byte [esi + eax + 0x40], dl
inc edi
lea ebx, [ecx - 1]
inc eax
and eax, 0xf
je 0x5eb028
cmp ecx, 1
mov ecx, ebx
jne 0x5eb010
test eax, eax
jne 0x5eb1bc
lea eax, [esi + 0x40]
lea ecx, [esi + 0x60]
push ecx
push eax
call dword [esi + 0x168]
add esp, 8
mov ebp, ebx
and ebp, 0xfffffff0
mov dword [esp + 8], ebp
jne 0x5eb05d
mov ebp, edi
jmp 0x5eb075
mov ebx, ecx
mov ebp, ebx
and ebp, 0xfffffff0
mov dword [esp + 8], ebp
je 0x5eb04c
lea eax, [esi + 0x40]
lea ecx, [esi + 0x60]
push ebp
push edi
push ecx
push eax
call dword [esi + 0x164]
add esp, 0x10
add ebp, edi
and ebx, 0xf
test ebx, ebx
je 0x5eb1ba
lea ecx, [esi + 0x40]
mov dword [esp], 0
cmp ebx, 8
mov dword [esp + 4], ebx
jb 0x5eb150
mov eax, dword [esp + 8]
lea edx, [ebx + eax]
add edx, edi
cmp ecx, edx
lea edx, [esi + ebx + 0x40]
setb bl
cmp ebp, edx
setb dl
test bl, dl
mov ebx, dword [esp + 4]
jne 0x5eb150
mov dword [esp], 0
cmp ebx, 0x20
jb 0x5eb11e
mov eax, ebx
and eax, 0xffffffe0
mov edx, dword [esp + 8]
add edx, edi
add edx, 0x10
xor ebx, ebx
nop word cs:[eax + eax]
movups xmm0, xmmword [edx + ebx - 0x10]
movups xmm1, xmmword [edx + ebx]
movups xmm2, xmmword [esi + ebx + 0x40]
xorps xmm2, xmm0
movups xmm0, xmmword [esi + ebx + 0x50]
xorps xmm0, xmm1
movups xmmword [esi + ebx + 0x40], xmm2
movups xmmword [esi + ebx + 0x50], xmm0
add ebx, 0x20
cmp eax, ebx
jne 0x5eb0e0
mov ebx, dword [esp + 4]
cmp ebx, eax
je 0x5eb1ba
mov dword [esp], eax
test bl, 0x18
je 0x5eb150
mov edx, dword [esp]
mov eax, ebx
and eax, 0xfffffff8
nop word cs:[eax + eax]
movsd xmm0, qword [ebp + edx]
movsd xmm1, qword [ecx + edx]
xorps xmm1, xmm0
movlps qword [ecx + edx], xmm1
add edx, 8
cmp eax, edx
jne 0x5eb130
mov dword [esp], eax
cmp ebx, eax
je 0x5eb1ba
mov edx, dword [esp]
and ebx, 3
je 0x5eb16c
mov edx, dword [esp]
nop dword [eax + eax]
movzx eax, byte [ebp + edx]
xor byte [ecx + edx], al
inc edx
dec ebx
jne 0x5eb160
mov ebx, dword [esp + 4]
mov eax, dword [esp]
sub eax, ebx
cmp eax, 0xfffffffc
ja 0x5eb1ba
mov eax, dword [esp + 8]
add eax, edi
add eax, 3
nop word cs:[eax + eax]
movzx ecx, byte [eax + edx - 3]
xor byte [esi + edx + 0x40], cl
movzx ecx, byte [eax + edx - 2]
xor byte [esi + edx + 0x41], cl
movzx ecx, byte [eax + edx - 1]
xor byte [esi + edx + 0x42], cl
movzx ecx, byte [eax + edx]
xor byte [esi + edx + 0x43], cl
add edx, 4
cmp ebx, edx
jne 0x5eb190
mov eax, ebx
mov dword [esi + 0x170], eax
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x5ee910
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov eax, edx
mov dword [esp + 0xc], ecx
mov esi, dword [ecx + 0x14]
cmp esi, edx
jae 0x5eea5b
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 0x18]
mov ebx, eax
sub ebx, edx
jb 0x5ee971
mov edi, eax
and ebx, 0xfffffffc
lea eax, [edx + ebx]
add eax, 4
mov ecx, dword [esp + 0xc]
mov dword [ecx + 0x18], eax
shl eax, 4
push 0x71
push str.crypto_modes_ocb128.c
push eax
mov ebx, ecx
push dword [ecx + 0x40]
call fcn.005db4d0
add esp, 0x10
test eax, eax
je 0x5eea6d
mov dword [ebx + 0x40], eax
mov eax, edi
mov edx, esi
shl edx, 4
add edx, 0x1f
movdqa xmm0, xmmword [0x96d5a0]
movdqa xmm1, xmmword [0x96d5b0]
nop dword [eax]
mov ecx, dword [esp + 0xc]
mov edi, dword [ecx + 0x40]
mov bh, byte [edi + edx - 0x10]
mov bl, bh
movzx ecx, byte [edi + edx - 0x11]
shr bh, 7
mov ch, cl
add ch, cl
or ch, bh
mov byte [edi + edx - 1], ch
mov ch, byte [edi + edx - 0x12]
shr cl, 7
mov bh, ch
add bh, ch
or bh, cl
mov byte [edi + edx - 2], bh
mov cl, byte [edi + edx - 0x13]
shr ch, 7
add cl, cl
or cl, ch
add bl, bl
mov byte [edi + edx - 3], cl
movd xmm2, dword [edi + edx - 0x17]
movd xmm4, dword [edi + edx - 0x16]
psrlw xmm4, 7
pand xmm4, xmm0
movq xmm3, xmm2
paddb xmm2, xmm2
por xmm2, xmm4
movd dword [edi + edx - 7], xmm2
movq xmm2, qword [edi + edx - 0x1f]
movdqa xmmword [esp + 0x10], xmm2
mov bh, byte [esp + 0x10]
sar bh, 7
and bh, 0x87
xor bh, bl
movdqa xmm4, xmm2
pand xmm4, xmm1
por xmm4, xmm3
psllq xmm4, 0x38
movdqa xmm3, xmm2
psrlq xmm3, 8
por xmm3, xmm4
psrlw xmm3, 7
pand xmm3, xmm0
paddb xmm2, xmm2
por xmm2, xmm3
movq qword [edi + edx - 0xf], xmm2
mov byte [edi + edx], bh
inc esi
add edx, 0x10
cmp eax, esi
jne 0x5ee990
mov ecx, dword [esp + 0xc]
mov dword [ecx + 0x14], eax
shl eax, 4
mov ecx, dword [esp + 0xc]
add eax, dword [ecx + 0x40]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
jmp 0x5eea65