joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a84e0
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
push edi
push dword [esp + 0x14]
call fcn.004e8750
push 0x62
push edi
mov ebx, eax
call fcn.005afeb0
add esp, 0x10
neg eax
sbb esi, esi
and esi, 0xfffffff0
add esi, 0x11
test ebx, ebx
jne 0x4a8592
call fcn.004648b0
push str.BIO_new_file
push 0x43
push str.crypto_bio_bss_file.c
call fcn.004649b0
add esp, 0xc
push edi
push dword [esp + 0x14]
push str.calling_fopen__s___s_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
call fcn.00464ac0
add esp, 0x14
call fcn.005bc950
cmp dword [eax], 2
je 0x4a8562
call fcn.005bc950
cmp dword [eax], 6
je 0x4a8562
mov esi, 0x80002
lea edi, [ebx + 0x4d]
jmp 0x4a856a
mov esi, 0x80
lea edi, [esi - 0x35]
call fcn.004648b0
push str.BIO_new_file
push edi
push str.crypto_bio_bss_file.c
call fcn.004649b0
push 0
push esi
push 0x20
call fcn.00464ac0
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x5fdd3c
call fcn.004731a0
mov edi, eax
add esp, 4
test edi, edi
jne 0x4a85b4
push ebx
call fcn.005bb43b
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push edi
call fcn.00472a50
push ebx
push esi
push 0x6a
push edi
call fcn.00472a80
add esp, 0x18
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x4b62e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.005ae090
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, dword [esp + 0x30]
mov esi, dword [esi + 0x64]
mov dword [esp + 0x14], esi
mov ecx, dword [esi + 0x70]
test ecx, ecx
je 0x4b634a
test edi, edi
je 0x4b632a
lea edx, [esi + 0x30]
add edx, ecx
cmp ecx, 0x40
jae 0x4b632a
mov al, byte [edx]
inc ecx
xor al, byte [ebx]
inc edx
mov byte [ebp], al
inc ebx
inc ebp
sub edi, 1
jne 0x4b6315
mov dword [esi + 0x70], ecx
test edi, edi
je 0x4b6404
cmp ecx, 0x40
jne 0x4b634a
mov dword [esi + 0x70], 0
add dword [esi + 0x20], 1
jne 0x4b634a
inc dword [esi + 0x24]
mov edx, dword [esi + 0x20]
lea ecx, [esi + 0x20]
mov eax, edi
mov dword [esp + 0x10], ecx
and eax, 0x3f
sub edi, eax
mov dword [esp + 0x24], eax
cmp edi, 0x40
jb 0x4b63bc
push dword [esp + 0x10]
mov ecx, edi
xor esi, esi
shr ecx, 6
lea eax, [ecx + edx]
cmp eax, ecx
cmovae esi, eax
neg edx
cmp eax, ecx
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x18]
cmovae edx, ecx
shl edx, 6
push esi
push edx
push ebx
push ebp
mov dword [esp + 0x2c], edx
call fcn.00411f00
mov eax, dword [esp + 0x2c]
add esp, 0x14
sub edi, eax
add ebx, eax
add ebp, eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x20], eax
test eax, eax
jne 0x4b63b1
inc dword [esi + 0x24]
mov edx, eax
cmp edi, 0x40
jae 0x4b6364
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4b6404
push 0x40
lea edi, [esi + 0x30]
push 0
push edi
call fcn.005afaf0
lea eax, [esi + 0x20]
push eax
push esi
push 0x40
push edi
push edi
call fcn.00411f00
mov edi, dword [esp + 0x44]
add esp, 0x20
xor edx, edx
test edi, edi
je 0x4b6401
sub ebx, ebp
nop word [eax + eax]
mov al, byte [esi + edx + 0x30]
lea ecx, [edx + ebp]
xor al, byte [ebx + ecx]
inc edx
mov byte [ecx], al
cmp edx, edi
jb 0x4b63f0
mov dword [esi + 0x70], edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret
Function at 0x4bbfe0
Capabilities:
Hash data using sha1

Disassembly:
mov eax, 0x40
call fcn.005ae090
mov eax, dword [0x665ec0]
xor eax, esp
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x48], 0x1d
push esi
mov esi, dword [esp + 0x48]
push edi
mov edi, dword [esp + 0x58]
je 0x4bc01c
pop edi
mov eax, 0xfffffffe
pop esi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.005ae073
add esp, 0x40
ret
test esi, esi
je 0x4bc12b
cmp dword [esp + 0x54], 0x30
jne 0x4bc12b
push 0x30
push edi
push esi
call fcn.004bbee0
add esp, 0xc
test eax, eax
jle 0x4bc12b
movaps xmm0, xmmword [str.6666666666666666jjjjjjjjjjjjjjjj_]
lea eax, [esp + 8]
push 0x28
push eax
push esi
movups xmmword [esp + 0x14], xmm0
movups xmmword [esp + 0x24], xmm0
movq qword [esp + 0x34], xmm0
call fcn.004bbee0
add esp, 0xc
test eax, eax
je 0x4bc12b
lea eax, [esp + 0x30]
push esi
push eax
call fcn.004bbd40
add esp, 8
test eax, eax
je 0x4bc12b
push 0x4c
lea eax, [esi + 0x14]
push 0
push eax
call fcn.005afaf0
push 0x30
push edi
push esi
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0xc3d2e1f0
call fcn.004bbee0
add esp, 0x18
test eax, eax
jle 0x4bc12b
movaps xmm0, xmmword [str.pem_read_bio_key_decoder]
lea eax, [esp + 8]
push 0x28
push eax
push esi
movups xmmword [esp + 0x14], xmm0
movups xmmword [esp + 0x24], xmm0
movq qword [esp + 0x34], xmm0
call fcn.004bbee0
add esp, 0xc
test eax, eax
je 0x4bc12b
push 0x14
lea eax, [esp + 0x34]
push eax
push esi
call fcn.004bbee0
add esp, 0xc
test eax, eax
je 0x4bc12b
lea eax, [esp + 0x30]
push 0x14
push eax
call fcn.00401320
add esp, 8
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.005ae073
add esp, 0x40
ret
mov ecx, dword [esp + 0x44]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.005ae073
add esp, 0x40
ret
Function at 0x4c21d0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov eax, 4
call fcn.005ae090
push edi
mov edi, dword [esp + 0xc]
mov dword [esp + 4], 1
cmp edi, 0xffffffff
jne 0x4c2218
call fcn.004648b0
push str.BIO_connect
push 0x56
push str.crypto_bio_bio_sock2.c
call fcn.004649b0
push 0
push 0x87
push 0x20
call fcn.00464ac0
add esp, 0x18
xor eax, eax
pop edi
pop ecx
ret
push ebx
mov ebx, dword [esp + 0x18]
mov eax, ebx
shr eax, 3
push esi
and eax, 1
push eax
push edi
call fcn.004915b0
add esp, 8
test eax, eax
je 0x4c22a7
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
test bl, 4
je 0x4c22ae
push 4
lea eax, [esp + 0x10]
push eax
push 8
push 0xffff
push edi
call esi
test eax, eax
je 0x4c22ae
call fcn.004648b0
push str.BIO_connect
push 0x60
push str.crypto_bio_bio_sock2.c
call fcn.004649b0
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00464ac0
call fcn.004648b0
push str.BIO_connect
push 0x62
push str.crypto_bio_bio_sock2.c
call fcn.004649b0
push 0
push 0x89
push 0x20
call fcn.00464ac0
add esp, 0x24
pop esi
pop ebx
xor eax, eax
pop edi
pop ecx
ret
test bl, 0x10
je 0x4c231f
push 4
lea eax, [esp + 0x10]
push eax
push 1
push 6
push edi
call esi
test eax, eax
je 0x4c231f
call fcn.004648b0
push str.BIO_connect
push 0x6a
push str.crypto_bio_bio_sock2.c
call fcn.004649b0
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00464ac0
call fcn.004648b0
push str.BIO_connect
push 0x6c
push str.crypto_bio_bio_sock2.c
call fcn.004649b0
push 0
push 0x8a
push 0x20
call fcn.00464ac0
add esp, 0x24
xor eax, eax
pop esi
pop ebx
pop edi
pop ecx
ret
mov esi, dword [esp + 0x18]
push esi
call fcn.004918e0
add esp, 4
push eax
push esi
call fcn.004918d0
add esp, 4
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4c23b1
push eax
call fcn.004c20e0
add esp, 4
test eax, eax
jne 0x4c22a7
call fcn.004648b0
push str.BIO_connect
push 0xb2
push str.crypto_bio_bio_sock2.c
call fcn.004649b0
add esp, 0xc
push str.calling_connect__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00464ac0
call fcn.004648b0
push str.BIO_connect
push 0xb4
push str.crypto_bio_bio_sock2.c
call fcn.004649b0
push 0
push 0x67
push 0x20
call fcn.00464ac0
add esp, 0x24
xor eax, eax
pop esi
pop ebx
pop edi
pop ecx
ret
pop esi
pop ebx
mov eax, 1
pop edi
pop ecx
ret

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

Disassembly:
mov cl, byte [esp + 0x10]
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
movzx eax, cl
and eax, 1
push edi
mov edi, dword [esp + 0x10]
test esi, esi
je 0x4c37c2
push ebx
add edi, esi
lea ebx, [edx + esi]
movzx edx, byte [edi - 1]
lea edi, [edi - 1]
movzx ecx, cl
lea ebx, [ebx - 1]
xor edx, ecx
mov cl, byte [esp + 0x1c]
add eax, edx
mov byte [ebx], al
shr eax, 8
sub esi, 1
jne 0x4c37a2
pop ebx
pop edi
pop esi
ret
Function at 0x4d01e0
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
mov edi, dword [esp + 0x14]
cmp ebp, 2
je 0x4d02b9
mov esi, dword [esp + 0x10]
test esi, esi
je 0x4d026e
push esi
push 0
lea eax, [esp + 0x28]
push eax
push 0
call fcn.004cd3e0
add esp, 0x10
cmp dword [esp + 0x20], 0xffffffff
je 0x4d0242
call fcn.004648b0
push str.ossl_ecx_key_op
push 0xa9
push str.cryptoececx_backend.c
call fcn.004649b0
push 0
push 0x66
push 0x10
call fcn.00464ac0
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebp
ret
mov eax, dword [esi]
mov esi, dword [esp + 0x1c]
push eax
call fcn.00462560
add esp, 4
test esi, esi
jne 0x4d0259
mov esi, eax
jmp 0x4d0272
cmp esi, eax
je 0x4d0272
call fcn.004648b0
push str.ossl_ecx_key_op
push 0xaf
jmp 0x4d0224
mov esi, dword [esp + 0x1c]
test edi, edi
je 0x4d02a5
test esi, esi
je 0x4d02a5
cmp esi, 0x40a
je 0x4d029a
cmp esi, 0x43f
je 0x4d029a
xor eax, eax
cmp esi, 0x40b
setne al
add eax, 0x38
jmp 0x4d029f
mov eax, 0x20
cmp dword [esp + 0x18], eax
je 0x4d02bd
call fcn.004648b0
push str.ossl_ecx_key_op
push 0xb5
jmp 0x4d0224
mov esi, dword [esp + 0x1c]
cmp esi, 0x40a
je 0x4d02e1
cmp esi, 0x43f
je 0x4d02e1
xor eax, eax
cmp esi, 0x40b
setne al
lea eax, [eax*2 + 1]
jmp 0x4d02f1
xor ecx, ecx
mov eax, 2
cmp esi, 0x40a
cmove eax, ecx
push ebx
push dword [esp + 0x2c]
push 1
push eax
push dword [esp + 0x34]
call fcn.004cfe50
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x4d033b
call fcn.004648b0
push str.ossl_ecx_key_op
push 0xbc
push str.cryptoececx_backend.c
call fcn.004649b0
push ebx
push 0x80010
push 0x10
call fcn.00464ac0
add esp, 0x18
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
test ebp, ebp
jne 0x4d0357
push dword [esp + 0x1c]
lea eax, [ebx + 0xc]
push edi
push eax
call fcn.005af570
add esp, 0xc
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
ret
push ebx
call fcn.004cfde0
mov edi, eax
add esp, 4
test edi, edi
jne 0x4d038a
call fcn.004648b0
push str.ossl_ecx_key_op
push 0xc6
push str.cryptoececx_backend.c
call fcn.004649b0
push edi
push 0x80010
jmp 0x4d0460
cmp ebp, 2
jne 0x4d03fc
test esi, esi
je 0x4d042f
cmp esi, 0x40a
je 0x4d03b7
cmp esi, 0x43f
je 0x4d03b7
xor eax, eax
cmp esi, 0x40b
setne al
add eax, 0x38
jmp 0x4d03bc
mov eax, 0x20
push 0
push eax
push edi
push dword [esp + 0x34]
call fcn.004652f0
add esp, 0x10
test eax, eax
jle 0x4d046a
cmp esi, 0x40a
jne 0x4d03eb
mov al, byte [edi + 0x1f]
and byte [edi], 0xf8
and al, 0x3f
or al, 0x40
mov byte [edi + 0x1f], al
jmp 0x4d042f
cmp esi, 0x40b
jne 0x4d042f
and byte [edi], 0xfc
or byte [edi + 0x37], 0x80
jmp 0x4d042f
cmp esi, 0x40a
je 0x4d041c
cmp esi, 0x43f
je 0x4d041c
xor eax, eax
cmp esi, 0x40b
setne al
add eax, 0x38
jmp 0x4d0421
mov eax, 0x20
push eax
push dword [esp + 0x1c]
push edi
call fcn.005af570
add esp, 0xc
push ebx
call fcn.004d0480
add esp, 4
test eax, eax
jne 0x4d0350
call fcn.004648b0
push str.ossl_ecx_key_op
push 0xda
push str.cryptoececx_backend.c
call fcn.004649b0
push 0
push 0xa6
push 0x10
call fcn.00464ac0
add esp, 0x18
push ebx
call fcn.004cfe00
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x4d4fb0
Capabilities:
Encrypt data using curve25519

Disassembly:
mov eax, 0xe4
call fcn.005ae090
mov eax, dword [0x665ec0]
xor eax, esp
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0xf4]
mov ecx, dword [esp + 0xe8]
push ebx
mov ebx, dword [esp + 0xf0]
push esi
mov esi, dword [esp + 0xf8]
push edi
push eax
push str.SHA512
push ecx
call fcn.00478d40
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4d5032
push 0
push edi
push 0
lea eax, [esp + 0xb8]
push eax
push 0x20
push esi
call fcn.004780f0
push edi
mov esi, eax
call fcn.00478d70
add esp, 0x1c
test esi, esi
jne 0x4d504c
lea eax, [esp + 0xac]
push 0x40
push eax
call fcn.00401320
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xe0]
xor ecx, esp
call fcn.005ae073
add esp, 0xe4
ret
mov al, byte [esp + 0xcb]
and byte [esp + 0xac], 0xf8
and al, 0x3f
or al, 0x40
mov byte [esp + 0xcb], al
lea eax, [esp + 0xac]
push eax
lea eax, [esp + 0x10]
push eax
call fcn.004d4700
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.004d4680
lea eax, [esp + 0xbc]
push 0x40
push eax
call fcn.00401320
mov ecx, dword [esp + 0x104]
add esp, 0x18
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005ae073
add esp, 0xe4
ret
Function at 0x4dd090
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
lea edx, [eax + 0x3c]
movd xmm0, ebx
pshufd xmm4, xmm0, 0
lea ecx, [esi + 0x3c]
cmp eax, ecx
ja 0x4dd0df
cmp edx, esi
jb 0x4dd0df
push edi
sub esi, eax
mov edi, 0x10
nop dword [eax]
mov edx, dword [eax + esi]
lea eax, [eax + 4]
mov ecx, dword [eax - 4]
xor ecx, edx
and ecx, ebx
xor edx, ecx
mov dword [eax + esi - 4], edx
xor dword [eax - 4], ecx
sub edi, 1
jne 0x4dd0c0
pop edi
pop esi
pop ebx
ret
sub esi, eax
mov ecx, 4
nop word [eax + eax]
lea eax, [eax + 0x10]
movups xmm1, xmmword [esi + eax - 0x10]
movups xmm3, xmmword [eax - 0x10]
movaps xmm2, xmm1
xorps xmm2, xmm3
andps xmm2, xmm4
movaps xmm0, xmm2
xorps xmm2, xmm3
xorps xmm0, xmm1
movups xmmword [esi + eax - 0x10], xmm0
movups xmmword [eax - 0x10], xmm2
sub ecx, 1
jne 0x4dd0f0
pop esi
pop ebx
ret
Function at 0x4e14d0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x18], esi
jne 0x4e1599
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
cmp al, 0x6a
je 0x4e14f1
cmp al, 0x6b
jne 0x4e1599
inc ecx
cmp al, 0x6b
jne 0x4e1552
add esi, 0xfffffffd
xor eax, eax
test esi, esi
jle 0x4e1512
nop
mov dl, byte [ecx]
inc ecx
cmp dl, 0xba
je 0x4e1512
cmp dl, 0xbb
jne 0x4e1526
inc eax
cmp eax, esi
jl 0x4e1500
sub esi, eax
test eax, eax
jne 0x4e1555
call fcn.004648b0
push str.RSA_padding_check_X931
push 0x56
jmp 0x4e1532
call fcn.004648b0
push str.RSA_padding_check_X931
push 0x4e
push str.crypto_rsa_rsa_x931.c
call fcn.004649b0
push 0
push 0x8a
push 4
call fcn.00464ac0
add esp, 0x18
or eax, 0xffffffff
pop esi
ret
add esi, 0xfffffffe
cmp byte [esi + ecx], 0xcc
je 0x4e1587
call fcn.004648b0
push str.RSA_padding_check_X931
push 0x5f
push str.crypto_rsa_rsa_x931.c
call fcn.004649b0
push 0
push 0x8b
push 4
call fcn.00464ac0
add esp, 0x18
or eax, 0xffffffff
pop esi
ret
push esi
push ecx
push dword [esp + 0x10]
call fcn.005af570
add esp, 0xc
mov eax, esi
pop esi
ret
call fcn.004648b0
push str.RSA_padding_check_X931
push 0x43
push str.crypto_rsa_rsa_x931.c
call fcn.004649b0
push 0
push 0x89
push 4
call fcn.00464ac0
add esp, 0x18
or eax, 0xffffffff
pop esi
ret
Function at 0x4e82a0
Capabilities:
Create thread

Disassembly:
push esi
push edi
push 0x27
push str.crypto_thread_arch_thread_win.c
push 4
call fcn.0045f1e0
mov edi, dword [esp + 0x18]
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4e82e4
push 0
push 0
push edi
push 0x4e8300
push 0
push 0
call fcn.005bd6e2
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x4e82e4
mov dword [edi + 0x10], esi
mov eax, 1
pop edi
pop esi
ret
push 0x34
push str.crypto_thread_arch_thread_win.c
push esi
mov dword [edi + 0x10], 0
call fcn.0045efe0
add esp, 0xc
xor eax, eax
pop edi
pop esi
ret
Function at 0x5078d0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.005ae090
cmp dword [esp + 0xc], 0
je 0x507a8d
mov eax, dword [esp + 0x14]
push ebx
push ebp
mov ebp, dword [esp + 0x18]
inc eax
push esi
mov esi, dword [esp + 0x30]
push edi
mov edi, dword [esp + 0x30]
push esi
push edi
push dword [esp + 0x34]
shr eax, 1
push dword [esp + 0x34]
mov dword [esp + 0x20], eax
push eax
push ebp
push dword [esp + 0x30]
call fcn.00507700
add esp, 0x1c
test eax, eax
je 0x50796f
push 0x1b8
push str.providersimplementationskdfs_tls1_prf.c
push esi
call fcn.0045ef50
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x50796f
mov eax, dword [esp + 0x10]
sub ebp, eax
add ebp, dword [esp + 0x24]
push esi
push ebx
push dword [esp + 0x34]
push dword [esp + 0x34]
push eax
push ebp
push dword [esp + 0x34]
call fcn.00507700
add esp, 0x1c
test eax, eax
jne 0x507977
push 0x1bd
push str.providersimplementationskdfs_tls1_prf.c
push esi
push ebx
call fcn.0045f070
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
xor edx, edx
test esi, esi
je 0x507a6e
cmp esi, 8
jb 0x507a51
lea eax, [esi - 1]
lea ecx, [edi - 1]
add eax, ebx
add ecx, esi
cmp edi, eax
ja 0x5079a0
cmp ecx, ebx
jae 0x507a51
cmp esi, 0x40
jb 0x507a25
mov ebp, esi
lea ecx, [ebx + 0x30]
mov eax, esi
and ebp, 0x3f
sub eax, ebp
mov esi, ebx
sub esi, edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], esi
lea eax, [edi + 0x10]
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x1c]
nop dword [eax]
movups xmm0, xmmword [eax - 0x10]
add edx, 0x40
lea ecx, [ecx + 0x40]
lea eax, [eax + 0x40]
movups xmm1, xmmword [ecx - 0x70]
xorps xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [edi + eax - 0x40]
xorps xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [ecx - 0x50]
xorps xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm1, xmmword [eax - 0x20]
movups xmm0, xmmword [ecx - 0x40]
xorps xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp edx, dword [esp + 0x10]
jb 0x5079d0
mov edi, dword [esp + 0x30]
cmp ebp, 8
jb 0x507a4d
mov ecx, esi
lea eax, [edx + edi]
mov ebp, ebx
and ecx, 0xfffffff8
sub ebp, edi
movq xmm1, qword [eax + ebp]
lea eax, [eax + 8]
movq xmm0, qword [eax - 8]
add edx, 8
xorps xmm1, xmm0
movq qword [eax - 8], xmm1
cmp edx, ecx
jb 0x507a31
cmp edx, esi
jae 0x507a6e
mov ebp, ebx
lea ecx, [edx + edi]
sub ebp, edi
mov edi, esi
sub edi, edx
nop dword [eax]
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edi, 1
jne 0x507a60
push 0x1c2
push str.providersimplementationskdfs_tls1_prf.c
push esi
push ebx
call fcn.0045f070
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x20]
call fcn.00507700
add esp, 0x1c
neg eax
sbb eax, eax
neg eax
pop ecx
ret
Function at 0x510550
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
lea ecx, [edx + 0x3f8]
lea esi, [eax + 0x3f8]
cmp eax, ecx
ja 0x51058b
cmp esi, edx
jb 0x51058b
sub edx, eax
mov esi, 0x80
mov ecx, dword [eax + edx]
lea eax, [eax + 8]
xor dword [eax - 8], ecx
mov ecx, dword [eax + edx - 4]
xor dword [eax - 4], ecx
sub esi, 1
jne 0x510574
pop esi
ret
lea esi, [edx + 0x30]
sub edx, eax
lea ecx, [eax + 0x10]
mov eax, 0x10
nop dword [eax + eax]
lea ecx, [ecx + 0x40]
lea esi, [esi + 0x40]
movups xmm0, xmmword [ecx - 0x50]
movups xmm1, xmmword [esi - 0x70]
xorps xmm1, xmm0
movups xmmword [ecx - 0x50], xmm1
movups xmm0, xmmword [ecx - 0x40]
movups xmm1, xmmword [edx + ecx - 0x40]
xorps xmm1, xmm0
movups xmmword [ecx - 0x40], xmm1
movups xmm0, xmmword [ecx - 0x30]
movups xmm1, xmmword [esi - 0x50]
xorps xmm1, xmm0
movups xmmword [ecx - 0x30], xmm1
movups xmm1, xmmword [esi - 0x40]
movups xmm0, xmmword [ecx - 0x20]
xorps xmm1, xmm0
movups xmmword [ecx - 0x20], xmm1
sub eax, 1
jne 0x5105a0
pop esi
ret

Function at 0x512740
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.005ae090
push ebx
mov ebx, dword [esp + 0x10]
xor ecx, ecx
push esi
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x1c], 0x10
push edi
mov edi, dword [esp + 0x1c]
test esi, esi
jle 0x51283e
cmp esi, 8
jb 0x512824
lea eax, [esi - 1]
lea edx, [esi - 1]
add eax, edi
add edx, ebx
cmp ebx, eax
ja 0x51278a
cmp edx, edi
jae 0x512824
mov edx, edi
push ebp
cmp esi, 0x40
jb 0x5127f9
mov eax, esi
lea ebp, [edi + 0x30]
and eax, 0xffffffc0
sub edx, ebx
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x10]
movups xmm0, xmmword [eax - 0x10]
add ecx, 0x40
lea ebp, [ebp + 0x40]
lea eax, [eax + 0x40]
movups xmm1, xmmword [ebp - 0x70]
xorps xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [edx + eax - 0x40]
xorps xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [ebp - 0x50]
xorps xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm1, xmmword [eax - 0x20]
movups xmm0, xmmword [ebp - 0x40]
xorps xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp ecx, dword [esp + 0x10]
jl 0x5127a3
mov eax, esi
and al, 0x3f
cmp al, 8
jb 0x51281f
jmp 0x5127fb
sub edx, ebx
mov ebp, esi
lea eax, [ecx + ebx]
and ebp, 0xfffffff8
movq xmm1, qword [edx + eax]
lea eax, [eax + 8]
movq xmm0, qword [eax - 8]
add ecx, 8
xorps xmm1, xmm0
movq qword [eax - 8], xmm1
cmp ecx, ebp
jl 0x512803
pop ebp
cmp ecx, esi
jge 0x51283e
mov edx, esi
lea eax, [ecx + ebx]
sub edi, ebx
sub edx, ecx
nop dword [eax]
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub edx, 1
jne 0x512830
push esi
push ebx
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x20]
push ebx
push dword [eax + 8]
call fcn.004599b0
add esp, 0x14
test eax, eax
je 0x512867
xor eax, eax
cmp dword [esp + 0x20], esi
pop edi
pop esi
sete al
pop ebx
pop ecx
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x5129d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
test ebp, ebp
je 0x512a45
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x512a44
push ebx
mov ebx, dword [esp + 0x10]
push edi
mov edi, dword [ebx + 0x14]
cmp esi, edi
cmovb edi, esi
test edi, edi
je 0x512a0f
mov edx, ebp
lea ecx, [ebx + 0x1c]
nop dword [eax]
mov al, byte [edx]
lea edx, [edx + 1]
xor byte [ecx], al
lea ecx, [ecx + 1]
sub edi, 1
jne 0x512a00
mov eax, dword [ebx + 0x14]
cmp esi, eax
jbe 0x512a42
sub esi, eax
cmp esi, 0x10
jbe 0x512a24
mov esi, 0x10
jmp 0x512a28
test esi, esi
je 0x512a42
xor edx, edx
nop word [eax + eax]
mov eax, dword [ebx + 0x14]
lea ecx, [edx + ebp]
mov al, byte [ecx + eax]
xor byte [ebx + edx + 0x3c], al
inc edx
cmp edx, esi
jb 0x512a30
pop edi
pop ebx
pop esi
pop ebp
ret