joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53aa80
Capabilities:
Create thread

Disassembly:
push esi
push edi
push 0x27
push str.crypto_thread_arch_thread_win.c
push 4
call fcn.0050ec40
mov edi, dword [esp + 0x18]
mov esi, eax
add esp, 0xc
test esi, esi
je 0x53aac4
push 0
push 0
push edi
push 0x53aae0
push 0
push 0
call fcn.0065c45e
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x53aac4
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.0050ea40
add esp, 0xc
xor eax, eax
pop edi
pop esi
ret

Function at 0x542440
Capabilities:
Initialize winsock library

Disassembly:
cmp dword [0x718890], 0
jne 0x5424d9
push 0x190
push 0
push 0x718898
mov dword [0x718890], 1
call fcn.00656e20
add esp, 0xc
push 0x718898
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x5424d9
call fcn.00514490
push str.BIO_sock_init
push 0x96
push str.crypto_bio_bio_sock.c
call fcn.00514590
add esp, 0xc
push str.calling_wsastartup__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.005146a0
call fcn.00514490
push str.BIO_sock_init
push 0x98
push str.crypto_bio_bio_sock.c
call fcn.00514590
push 0
push 0x7a
push 0x20
call fcn.005146a0
add esp, 0x24
or eax, 0xffffffff
ret
mov eax, 1
ret

Function at 0x5424e0
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 8]
push esi
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 0x8004667e
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
test esi, esi
jns 0x542535
call fcn.00514490
push str.BIO_socket_ioctl
push 0xf4
push str.crypto_bio_bio_sock.c
call fcn.00514590
add esp, 0xc
push str.calling_ioctlsocket__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.005146a0
add esp, 0xc
xor eax, eax
test esi, esi
pop esi
sete al
ret

Function at 0x542540
Capabilities:
Get socket status

Disassembly:
mov eax, 0x110
call fcn.00655180
mov eax, dword [0x716f80]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebp
mov ebp, dword [esp + 0x11c]
push edi
mov edi, dword [esp + 0x11c]
cmp edi, 0xffffffff
jne 0x542586
or eax, edi
pop edi
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0065469c
add esp, 0x110
ret
push esi
mov esi, dword [esp + 0x128]
mov eax, esi
or eax, dword [esp + 0x12c]
jne 0x5425b6
pop esi
pop edi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0065469c
add esp, 0x110
ret
push 0
call fcn.00661dbc
add esp, 4
cmp dword [esp + 0x12c], edx
jg 0x5425e9
jl 0x5425cf
cmp esi, eax
jae 0x5425e9
pop esi
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0065469c
add esp, 0x110
ret
sub esi, eax
mov dword [esp + 0x18], edi
xor ecx, ecx
mov dword [esp + 0x14], 1
lea eax, [esp + 0xc]
mov dword [esp + 0x10], 0
push eax
test ebp, ebp
mov dword [esp + 0x10], esi
push 0
lea eax, [esp + 0x1c]
cmovne eax, ecx
test ebp, ebp
push eax
lea eax, [esp + 0x20]
cmove eax, ecx
push eax
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov ecx, dword [esp + 0x118]
pop esi
pop edi
pop ebp
xor ecx, esp
call fcn.0065469c
add esp, 0x110
ret
Function at 0x5431f0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x230
call fcn.00655180
mov eax, dword [0x716f80]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x718a30], 0
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x542bd0
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x542fa0
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], 0x542b80
jne 0x543356
push 0x104
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x54334c
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.00662c27
push str.ws2_32
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.00662c81
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [esp + 0x40]
add esp, 0x18
push eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test edi, edi
je 0x5432bf
push str.getaddrinfo
push edi
call ebx
test eax, eax
jne 0x543306
push edi
call ebp
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.00662c27
push str.wship6
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.00662c81
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call esi
mov edi, eax
test edi, edi
je 0x543348
push str.getaddrinfo
push edi
call ebx
test eax, eax
je 0x543345
xor esi, esi
lea eax, [esp + 0x10]
nop dword [eax]
push dword [eax + esi*8]
push edi
call ebx
mov dword [esp + esi*8 + 0x14], eax
test eax, eax
je 0x543345
inc esi
lea eax, [esp + 0x10]
cmp esi, 3
jl 0x543310
mov eax, dword [esp + 0x14]
mov dword [0x7154dc], eax
mov eax, dword [esp + 0x1c]
mov dword [0x7154e4], eax
mov eax, dword [esp + 0x24]
mov dword [0x7154ec], eax
jmp 0x543348
push edi
call ebp
pop edi
pop esi
pop ebp
pop ebx
mov dword [0x718a30], 1
movzx eax, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
mov eax, dword [eax*8 + 0x7154dc]
call fcn.0065469c
add esp, 0x230
ret 4
Function at 0x543380
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x820
call fcn.00655180
mov eax, dword [0x716f80]
xor eax, esp
mov dword [esp + 0x81c], eax
push ebx
mov ebx, dword [esp + 0x83c]
lea eax, [esp + 0x19]
push ebp
push esi
mov esi, dword [esp + 0x830]
push edi
push 0x400
push 0
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], 0
mov byte [esp + 0x30], 0
call fcn.00656e20
push 0x400
lea eax, [esp + 0x439]
mov byte [esp + 0x438], 0
push 0
push eax
call fcn.00656e20
push 0x400
push esi
lea eax, [esp + 0x44]
push 0x401
push eax
mov dword [esp + 0x3c], eax
lea ebp, [esp + 0x450]
call fcn.00662d9b
add esp, 0x28
nop
push esi
mov edi, ebx
mov dword [ebx], 0
mov byte [ebp], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x54355f
cmp word [ebx + 8], 2
jne 0x543482
cmp word [ebx + 0xa], 4
jne 0x543482
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x543482
nop dword [eax]
nop dword [eax + eax]
push dword [eax]
push dword [esp + 0x844]
push dword [esp + 0x844]
push dword [esp + 0x844]
call fcn.005435b0
mov dword [edi], eax
test eax, eax
je 0x543558
add esi, 4
lea edi, [eax + 0x1c]
mov eax, dword [esi]
test eax, eax
jne 0x543450
push 0x400
push dword [ebx]
push 0x401
push ebp
call fcn.00662d9b
mov ebx, dword [esp + 0x28]
xor esi, esi
add esp, 0x10
cmp dword [ebx], esi
jne 0x54350f
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5434a6
sub ecx, edx
je case.0x54356f.11003
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov eax, edi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x5434e0
test dl, dl
je 0x5434dc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x5434e0
add eax, 2
add ecx, 2
test dl, dl
jne 0x5434c0
xor eax, eax
jmp 0x5434e5
sbb eax, eax
or eax, 1
test eax, eax
je case.0x54356f.11003
mov esi, dword [esp + 0x10]
inc esi
mov dword [esp + 0x10], esi
cmp esi, 0x10
je case.0x54356f.11003
mov esi, dword [esp + 0x1c]
mov eax, edi
mov dword [esp + 0x14], ebp
mov ebp, eax
jmp 0x543410
mov esi, 0x2afb
jmp 0x543582
cmp dword [esp + 0x844], esi
je 0x543582
mov ecx, ebp
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x543520
sub ecx, edx
lea ebx, [ecx + 1]
push ebx
push 1
call fcn.00662da6
mov edi, eax
add esp, 8
test edi, edi
je 0x543548
push ebp
push ebx
push edi
call fcn.00662c27
add esp, 0xc
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov dword [eax + 0x14], edi
mov eax, dword [ecx]
cmp dword [eax + 0x14], esi
jne 0x543582
mov esi, 8
jmp 0x543582
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x54356f.11001
jmp dword [eax*4 + 0x5435a0]
mov esi, 0x2afa
jmp 0x543582
mov esi, 0x2af9
mov ecx, dword [esp + 0x82c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0065469c
add esp, 0x820
ret 0x18
Function at 0x559960
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.00599fc0
push 0x62
push edi
mov ebx, eax
call fcn.006563e0
add esp, 0x10
neg eax
sbb esi, esi
and esi, 0xfffffff0
add esi, 0x11
test ebx, ebx
jne 0x559a12
call fcn.00514490
push str.BIO_new_file
push 0x43
push str.crypto_bio_bss_file.c
call fcn.00514590
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.005146a0
add esp, 0x14
call fcn.00663742
cmp dword [eax], 2
je 0x5599e2
call fcn.00663742
cmp dword [eax], 6
je 0x5599e2
mov esi, 0x80002
lea edi, [ebx + 0x4d]
jmp 0x5599ea
mov esi, 0x80
lea edi, [esi - 0x35]
call fcn.00514490
push str.BIO_new_file
push edi
push str.crypto_bio_bss_file.c
call fcn.00514590
push 0
push esi
push 0x20
call fcn.005146a0
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x6ada50
call fcn.00523690
mov edi, eax
add esp, 4
test edi, edi
jne 0x559a34
push ebx
call fcn.0065a647
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push edi
call fcn.00522f40
push ebx
push esi
push 0x6a
push edi
call fcn.00522f70
add esp, 0x18
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x5678e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.00655180
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 0x56794a
test edi, edi
je 0x56792a
lea edx, [esi + 0x30]
add edx, ecx
cmp ecx, 0x40
jae 0x56792a
mov al, byte [edx]
inc ecx
xor al, byte [ebx]
inc edx
mov byte [ebp], al
inc ebx
inc ebp
sub edi, 1
jne 0x567915
mov dword [esi + 0x70], ecx
test edi, edi
je 0x567a04
cmp ecx, 0x40
jne 0x56794a
mov dword [esi + 0x70], 0
add dword [esi + 0x20], 1
jne 0x56794a
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 0x5679bc
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 0x5679b1
inc dword [esi + 0x24]
mov edx, eax
cmp edi, 0x40
jae 0x567964
mov eax, dword [esp + 0x24]
test eax, eax
je 0x567a04
push 0x40
lea edi, [esi + 0x30]
push 0
push edi
call fcn.00656e20
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 0x567a01
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 0x5679f0
mov dword [esi + 0x70], edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret
Function at 0x56d5a0
Capabilities:
Hash data using sha1

Disassembly:
mov eax, 0x40
call fcn.00655180
mov eax, dword [0x716f80]
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 0x56d5dc
pop edi
mov eax, 0xfffffffe
pop esi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.0065469c
add esp, 0x40
ret
test esi, esi
je 0x56d6eb
cmp dword [esp + 0x54], 0x30
jne 0x56d6eb
push 0x30
push edi
push esi
call fcn.0056d4a0
add esp, 0xc
test eax, eax
jle 0x56d6eb
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.0056d4a0
add esp, 0xc
test eax, eax
je 0x56d6eb
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0056d300
add esp, 8
test eax, eax
je 0x56d6eb
push 0x4c
lea eax, [esi + 0x14]
push 0
push eax
call fcn.00656e20
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.0056d4a0
add esp, 0x18
test eax, eax
jle 0x56d6eb
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.0056d4a0
add esp, 0xc
test eax, eax
je 0x56d6eb
push 0x14
lea eax, [esp + 0x34]
push eax
push esi
call fcn.0056d4a0
add esp, 0xc
test eax, eax
je 0x56d6eb
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.0065469c
add esp, 0x40
ret
mov ecx, dword [esp + 0x44]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.0065469c
add esp, 0x40
ret
Function at 0x573940
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov eax, 4
call fcn.00655180
push edi
mov edi, dword [esp + 0xc]
mov dword [esp + 4], 1
cmp edi, 0xffffffff
jne 0x573988
call fcn.00514490
push str.BIO_connect
push 0x56
push str.crypto_bio_bio_sock2.c
call fcn.00514590
push 0
push 0x87
push 0x20
call fcn.005146a0
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.005424e0
add esp, 8
test eax, eax
je 0x573a17
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
test bl, 4
je 0x573a1e
push 4
lea eax, [esp + 0x10]
push eax
push 8
push 0xffff
push edi
call esi
test eax, eax
je 0x573a1e
call fcn.00514490
push str.BIO_connect
push 0x60
push str.crypto_bio_bio_sock2.c
call fcn.00514590
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.005146a0
call fcn.00514490
push str.BIO_connect
push 0x62
push str.crypto_bio_bio_sock2.c
call fcn.00514590
push 0
push 0x89
push 0x20
call fcn.005146a0
add esp, 0x24
pop esi
pop ebx
xor eax, eax
pop edi
pop ecx
ret
test bl, 0x10
je 0x573a8f
push 4
lea eax, [esp + 0x10]
push eax
push 1
push 6
push edi
call esi
test eax, eax
je 0x573a8f
call fcn.00514490
push str.BIO_connect
push 0x6a
push str.crypto_bio_bio_sock2.c
call fcn.00514590
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.005146a0
call fcn.00514490
push str.BIO_connect
push 0x6c
push str.crypto_bio_bio_sock2.c
call fcn.00514590
push 0
push 0x8a
push 0x20
call fcn.005146a0
add esp, 0x24
xor eax, eax
pop esi
pop ebx
pop edi
pop ecx
ret
mov esi, dword [esp + 0x18]
push esi
call fcn.00542810
add esp, 4
push eax
push esi
call fcn.00542800
add esp, 4
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x573b21
push eax
call fcn.00573850
add esp, 4
test eax, eax
jne 0x573a17
call fcn.00514490
push str.BIO_connect
push 0xb2
push str.crypto_bio_bio_sock2.c
call fcn.00514590
add esp, 0xc
push str.calling_connect__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.005146a0
call fcn.00514490
push str.BIO_connect
push 0xb4
push str.crypto_bio_bio_sock2.c
call fcn.00514590
push 0
push 0x67
push 0x20
call fcn.005146a0
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 0x574ef0
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 0x574f32
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 0x574f12
pop ebx
pop edi
pop esi
ret
Function at 0x580ed0
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 0x580fa9
mov esi, dword [esp + 0x10]
test esi, esi
je 0x580f5e
push esi
push 0
lea eax, [esp + 0x28]
push eax
push 0
call fcn.0057ea10
add esp, 0x10
cmp dword [esp + 0x20], 0xffffffff
je 0x580f32
call fcn.00514490
push str.ossl_ecx_key_op
push 0xa9
push str.cryptoececx_backend.c
call fcn.00514590
push 0
push 0x66
push 0x10
call fcn.005146a0
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.00511f80
add esp, 4
test esi, esi
jne 0x580f49
mov esi, eax
jmp 0x580f62
cmp esi, eax
je 0x580f62
call fcn.00514490
push str.ossl_ecx_key_op
push 0xaf
jmp 0x580f14
mov esi, dword [esp + 0x1c]
test edi, edi
je 0x580f95
test esi, esi
je 0x580f95
cmp esi, 0x40a
je 0x580f8a
cmp esi, 0x43f
je 0x580f8a
xor eax, eax
cmp esi, 0x40b
setne al
add eax, 0x38
jmp 0x580f8f
mov eax, 0x20
cmp dword [esp + 0x18], eax
je 0x580fad
call fcn.00514490
push str.ossl_ecx_key_op
push 0xb5
jmp 0x580f14
mov esi, dword [esp + 0x1c]
cmp esi, 0x40a
je 0x580fd1
cmp esi, 0x43f
je 0x580fd1
xor eax, eax
cmp esi, 0x40b
setne al
lea eax, [eax*2 + 1]
jmp 0x580fe1
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.00580b40
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x58102b
call fcn.00514490
push str.ossl_ecx_key_op
push 0xbc
push str.cryptoececx_backend.c
call fcn.00514590
push ebx
push 0x80010
push 0x10
call fcn.005146a0
add esp, 0x18
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
test ebp, ebp
jne 0x581047
push dword [esp + 0x1c]
lea eax, [ebx + 0xc]
push edi
push eax
call fcn.006568a0
add esp, 0xc
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
ret
push ebx
call fcn.00580ad0
mov edi, eax
add esp, 4
test edi, edi
jne 0x58107a
call fcn.00514490
push str.ossl_ecx_key_op
push 0xc6
push str.cryptoececx_backend.c
call fcn.00514590
push edi
push 0x80010
jmp 0x581150
cmp ebp, 2
jne 0x5810ec
test esi, esi
je 0x58111f
cmp esi, 0x40a
je 0x5810a7
cmp esi, 0x43f
je 0x5810a7
xor eax, eax
cmp esi, 0x40b
setne al
add eax, 0x38
jmp 0x5810ac
mov eax, 0x20
push 0
push eax
push edi
push dword [esp + 0x34]
call fcn.00514ed0
add esp, 0x10
test eax, eax
jle 0x58115a
cmp esi, 0x40a
jne 0x5810db
mov al, byte [edi + 0x1f]
and byte [edi], 0xf8
and al, 0x3f
or al, 0x40
mov byte [edi + 0x1f], al
jmp 0x58111f
cmp esi, 0x40b
jne 0x58111f
and byte [edi], 0xfc
or byte [edi + 0x37], 0x80
jmp 0x58111f
cmp esi, 0x40a
je 0x58110c
cmp esi, 0x43f
je 0x58110c
xor eax, eax
cmp esi, 0x40b
setne al
add eax, 0x38
jmp 0x581111
mov eax, 0x20
push eax
push dword [esp + 0x1c]
push edi
call fcn.006568a0
add esp, 0xc
push ebx
call fcn.00581170
add esp, 4
test eax, eax
jne 0x581040
call fcn.00514490
push str.ossl_ecx_key_op
push 0xda
push str.cryptoececx_backend.c
call fcn.00514590
push 0
push 0xa6
push 0x10
call fcn.005146a0
add esp, 0x18
push ebx
call fcn.00580af0
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x585c60
Capabilities:
Encrypt data using curve25519

Disassembly:
mov eax, 0xe4
call fcn.00655180
mov eax, dword [0x716f80]
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.00529270
mov edi, eax
add esp, 0xc
test edi, edi
je 0x585ce2
push 0
push edi
push 0
lea eax, [esp + 0xb8]
push eax
push 0x20
push esi
call fcn.00528600
push edi
mov esi, eax
call fcn.005292a0
add esp, 0x1c
test esi, esi
jne 0x585cfc
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.0065469c
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.005853b0
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.00585330
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.0065469c
add esp, 0xe4
ret
Function at 0x58def0
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 0x58df3f
cmp edx, esi
jb 0x58df3f
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 0x58df20
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 0x58df50
pop esi
pop ebx
ret
Function at 0x592fa0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x18], esi
jne 0x593069
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
cmp al, 0x6a
je 0x592fc1
cmp al, 0x6b
jne 0x593069
inc ecx
cmp al, 0x6b
jne 0x593022
add esi, 0xfffffffd
xor eax, eax
test esi, esi
jle 0x592fe2
nop
mov dl, byte [ecx]
inc ecx
cmp dl, 0xba
je 0x592fe2
cmp dl, 0xbb
jne 0x592ff6
inc eax
cmp eax, esi
jl 0x592fd0
sub esi, eax
test eax, eax
jne 0x593025
call fcn.00514490
push str.RSA_padding_check_X931
push 0x56
jmp 0x593002
call fcn.00514490
push str.RSA_padding_check_X931
push 0x4e
push str.crypto_rsa_rsa_x931.c
call fcn.00514590
push 0
push 0x8a
push 4
call fcn.005146a0
add esp, 0x18
or eax, 0xffffffff
pop esi
ret
add esi, 0xfffffffe
cmp byte [esi + ecx], 0xcc
je 0x593057
call fcn.00514490
push str.RSA_padding_check_X931
push 0x5f
push str.crypto_rsa_rsa_x931.c
call fcn.00514590
push 0
push 0x8b
push 4
call fcn.005146a0
add esp, 0x18
or eax, 0xffffffff
pop esi
ret
push esi
push ecx
push dword [esp + 0x10]
call fcn.006568a0
add esp, 0xc
mov eax, esi
pop esi
ret
call fcn.00514490
push str.RSA_padding_check_X931
push 0x43
push str.crypto_rsa_rsa_x931.c
call fcn.00514590
push 0
push 0x89
push 4
call fcn.005146a0
add esp, 0x18
or eax, 0xffffffff
pop esi
ret