joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100bf120
Capabilities:
Terminate process

Disassembly:
mov eax, 8
call fcn.1005b330
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
push edi
push ebx
xor edi, edi
call fcn.100a4cc0
add esp, 4
test eax, eax
jle 0x100bf2fa
push edi
push ebx
call fcn.100a4ef0
mov esi, eax
mov dword [esp + 0x18], 0
push 0x9c
push esi
xor ebp, ebp
call fcn.10111bd0
add esp, 0x10
test eax, eax
je 0x100bf171
mov eax, dword [eax + 4]
mov dword [esp + 0x10], eax
push 0x9d
push esi
call fcn.10111bd0
add esp, 8
test eax, eax
je 0x100bf186
mov ebp, dword [eax + 4]
push esi
call fcn.10111cc0
add eax, 0xffffff6a
add esp, 4
cmp eax, 5
ja case.0x100bf19d.153
jmp dword [eax*4 + 0x100bf31c]
mov ebp, dword [esp + 0x28]
test ebp, ebp
je case.0x100bf19d.153
cmp dword [ebp], 0
jne case.0x100bf19d.153
push esi
call fcn.10111bf0
push eax
call fcn.100ff0e0
add esp, 8
mov dword [ebp], eax
jmp 0x100bf2e4
mov ebp, dword [esp + 0x28]
test ebp, ebp
je case.0x100bf19d.153
cmp dword [ebp], 0
jne case.0x100bf19d.153
push dword [esp + 0x24]
push dword [esp + 0x24]
push esi
call fcn.10111cd0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x100bf310
push esi
call fcn.100ff0e0
push esi
mov dword [ebp], eax
call fcn.100fefb0
add esp, 8
cmp dword [ebp], 0
jmp 0x100bf2e6
cmp dword [esp + 0x2c], 0
je case.0x100bf19d.153
push esi
call fcn.10111c80
add esp, 4
cmp eax, 0x9e
jne case.0x100bf19d.153
push esi
call fcn.10111c30
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x100bf310
test ebp, ebp
je 0x100bf26a
push dword [ebp]
push dword [ebp + 8]
push ebx
call fcn.10107380
add esp, 0xc
test eax, eax
je 0x100bf307
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100bf2ab
push eax
lea eax, [esp + 0x18]
push eax
call fcn.100abd60
add esp, 8
test eax, eax
js 0x100bf2ab
push eax
push dword [esp + 0x18]
push ebx
call fcn.10107270
push 0xec
push str.cryptopkcs12p12_kiss.c
push dword [esp + 0x28]
mov esi, eax
call fcn.100a5c60
add esp, 0x18
test esi, esi
je 0x100bf307
push ebx
push dword [esp + 0x30]
call fcn.100a4d50
add esp, 8
test eax, eax
je 0x100bf307
mov ebx, dword [esp + 0x1c]
jmp case.0x100bf19d.153
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push esi
call fcn.10111c10
add esp, 4
push eax
call fcn.100bf120
add esp, 0x14
test eax, eax
je 0x100bf310
push ebx
inc edi
call fcn.100a4cc0
add esp, 4
cmp edi, eax
jl 0x100bf145
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
push ebx
call fcn.100b9ff0
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x100c4940
Capabilities:
Initialize winsock library

Disassembly:
cmp dword [0x102e0d38], 0
jne 0x100c49d9
push 0x190
push 0
push 0x102e0d40
mov dword [0x102e0d38], 1
call fcn.10215950
add esp, 0xc
push 0x102e0d40
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x100c49d9
call fcn.100c3120
push str.BIO_sock_init
push 0x92
push str.crypto_bio_bio_sock.c
call fcn.100c3220
add esp, 0xc
push str.calling_wsastartup__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.100c32d0
call fcn.100c3120
push str.BIO_sock_init
push 0x94
push str.crypto_bio_bio_sock.c
call fcn.100c3220
push 0
push 0x7a
push 0x20
call fcn.100c32d0
add esp, 0x24
or eax, 0xffffffff
ret
mov eax, 1
ret

Function at 0x100c49e0
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 0x100c4a35
call fcn.100c3120
push str.BIO_socket_ioctl
push 0xcf
push str.crypto_bio_bio_sock.c
call fcn.100c3220
add esp, 0xc
push str.calling_ioctlsocket__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.100c32d0
add esp, 0xc
xor eax, eax
test esi, esi
pop esi
sete al
ret
Function at 0x100c5580
Capabilities:
Get common file path

Disassembly:
mov eax, 0x230
call fcn.1005b330
mov eax, dword [0x102db074]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x102e0ed8], 0
mov dword [esp], 0x10252088
mov dword [esp + 4], 0x100c4f70
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x100c5330
mov dword [esp + 0x10], 0x102520a0
mov dword [esp + 0x14], 0x100c4f20
jne 0x100c56db
push 0x104
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x100c56d1
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.102290bf
push str.ws2_32
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.10229119
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 0x100c564f
push 0x10252088
push edi
call ebx
test eax, eax
jne 0x100c5696
push edi
call ebp
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.102290bf
push str.wship6
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.10229119
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call esi
mov edi, eax
test edi, edi
je 0x100c56cd
push 0x10252088
push edi
call ebx
test eax, eax
je 0x100c56ca
xor esi, esi
push dword [esp + esi*8 + 0x10]
push edi
call ebx
mov dword [esp + esi*8 + 0x14], eax
test eax, eax
je 0x100c56ca
inc esi
cmp esi, 3
jl 0x100c5698
mov eax, dword [esp + 0x14]
mov dword [0x102db50c], eax
mov eax, dword [esp + 0x1c]
mov dword [0x102db514], eax
mov eax, dword [esp + 0x24]
mov dword [0x102db51c], eax
jmp 0x100c56cd
push edi
call ebp
pop edi
pop esi
pop ebp
pop ebx
mov dword [0x102e0ed8], 1
movzx eax, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
mov eax, dword [eax*8 + 0x102db50c]
call fcn.1005a1f2
add esp, 0x230
ret 4
Function at 0x100c5710
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x820
call fcn.1005b330
mov eax, dword [0x102db074]
xor eax, esp
mov dword [esp + 0x81c], eax
push ebx
mov ebx, dword [esp + 0x83c]
lea eax, [esp + 0x18]
push ebp
push esi
mov esi, dword [esp + 0x830]
push edi
push 0x401
push 0
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], 0
call fcn.10215950
push 0x401
lea eax, [esp + 0x438]
push 0
push eax
call fcn.10215950
push 0x400
push esi
lea eax, [esp + 0x44]
push 0x401
push eax
mov dword [esp + 0x3c], eax
lea ebp, [esp + 0x450]
call fcn.10229235
add esp, 0x28
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 0x100c58df
cmp word [ebx + 8], 2
jne 0x100c5802
cmp word [ebx + 0xa], 4
jne 0x100c5802
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x100c5802
nop word [eax + eax]
push dword [eax]
push dword [esp + 0x844]
push dword [esp + 0x844]
push dword [esp + 0x844]
call fcn.100c5940
mov dword [edi], eax
test eax, eax
je 0x100c58d8
add esi, 4
lea edi, [eax + 0x1c]
mov eax, dword [esi]
test eax, eax
jne 0x100c57d0
push 0x400
push dword [ebx]
push 0x401
push ebp
call fcn.10229235
mov ebx, dword [esp + 0x28]
xor esi, esi
add esp, 0x10
cmp dword [ebx], esi
jne 0x100c5890
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100c5826
sub ecx, edx
je case.0x100c58ef.11003
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov eax, edi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100c5860
test dl, dl
je 0x100c585c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100c5860
add eax, 2
add ecx, 2
test dl, dl
jne 0x100c5840
xor eax, eax
jmp 0x100c5865
sbb eax, eax
or eax, 1
test eax, eax
je case.0x100c58ef.11003
mov esi, dword [esp + 0x10]
inc esi
mov dword [esp + 0x10], esi
cmp esi, 0x10
je case.0x100c58ef.11003
mov esi, dword [esp + 0x1c]
mov eax, edi
mov dword [esp + 0x14], ebp
mov ebp, eax
jmp 0x100c5792
cmp dword [esp + 0x844], esi
je 0x100c5909
mov ecx, ebp
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100c58a0
sub ecx, edx
lea ebx, [ecx + 1]
push ebx
push 1
call fcn.1021bcbc
mov edi, eax
add esp, 8
test edi, edi
je 0x100c58c8
push ebp
push ebx
push edi
call fcn.102290bf
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 0x100c5909
mov esi, 8
jmp 0x100c5909
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x100c58ef.11001
jmp dword [eax*4 + 0x100c5928]
mov esi, 0x2afa
jmp 0x100c5909
mov esi, 0x2afb
jmp 0x100c5909
mov esi, 0x2af9
mov ecx, dword [esp + 0x82c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1005a1f2
add esp, 0x820
ret 0x18
Function at 0x100d8950
Capabilities:
Hash data using sha1

Disassembly:
mov eax, 0x40
call fcn.1005b330
mov eax, dword [0x102db074]
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 0x100d898c
pop edi
mov eax, 0xfffffffe
pop esi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.1005a1f2
add esp, 0x40
ret
test esi, esi
je 0x100d8a9b
cmp dword [esp + 0x54], 0x30
jne 0x100d8a9b
push 0x30
push edi
push esi
call fcn.100d8870
add esp, 0xc
test eax, eax
jle 0x100d8a9b
movaps xmm0, xmmword [str.6666666666666666_t]
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.100d8870
add esp, 0xc
test eax, eax
je 0x100d8a9b
lea eax, [esp + 0x30]
push esi
push eax
call fcn.100d86d0
add esp, 8
test eax, eax
je 0x100d8a9b
push 0x4c
lea eax, [esi + 0x14]
push 0
push eax
call fcn.10215950
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.100d8870
add esp, 0x18
test eax, eax
jle 0x100d8a9b
movaps xmm0, xmmword [0x102683f0]
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.100d8870
add esp, 0xc
test eax, eax
je 0x100d8a9b
push 0x14
lea eax, [esp + 0x34]
push eax
push esi
call fcn.100d8870
add esp, 0xc
test eax, eax
je 0x100d8a9b
lea eax, [esp + 0x30]
push 0x14
push eax
call fcn.10001320
add esp, 8
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.1005a1f2
add esp, 0x40
ret
mov ecx, dword [esp + 0x44]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.1005a1f2
add esp, 0x40
ret
Function at 0x100f79e0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov cl, byte [esp + 0x10]
movzx eax, cl
push esi
mov esi, dword [esp + 0x10]
and eax, 1
test esi, esi
je 0x100f7a22
push ebx
mov ebx, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
add edi, esi
add ebx, 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 0x100f7a01
pop edi
pop ebx
pop esi
ret
Function at 0x1010ca90
Capabilities:
Generate random numbers via winapi

Disassembly:
mov eax, 4
call fcn.1005b330
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push 1
push esi
call fcn.1010c6f0
mov ebx, eax
push ebx
push esi
call fcn.1010c600
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x1010cb0f
push 0xf0000040
push 1
xor edi, edi
lea eax, [esp + 0x18]
push edi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1010caf3
push ebp
push ebx
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 0x14]
test eax, eax
cmovne edi, ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [edi*8]
push eax
push edi
push esi
call fcn.1010c690
push esi
call fcn.1010c7d0
add esp, 0x10
test eax, eax
jne 0x1010cb89
push 1
push esi
call fcn.1010c6f0
mov ebx, eax
push ebx
push esi
call fcn.1010c600
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x1010cb80
push 0xf0000040
push 0x16
push str.Intel_Hardware_Cryptographic_Service_Provider
xor edi, edi
lea eax, [esp + 0x1c]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1010cb64
push ebp
push ebx
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 0x14]
test eax, eax
cmovne edi, ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [edi*8]
push eax
push edi
push esi
call fcn.1010c690
push esi
call fcn.1010c7d0
add esp, 0x10
test eax, eax
jne 0x1010cb89
push esi
call fcn.1010c7d0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x10114300
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov eax, 4
call fcn.1005b330
push edi
mov edi, dword [esp + 0xc]
mov dword [esp + 4], 1
cmp edi, 0xffffffff
jne 0x10114348
call fcn.100c3120
push str.BIO_connect
push 0x5f
push str.crypto_bio_bio_sock2.c
call fcn.100c3220
push 0
push 0x87
push 0x20
call fcn.100c32d0
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.100c49e0
add esp, 8
test eax, eax
je 0x101143d7
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
test bl, 4
je 0x101143de
push 4
lea eax, [esp + 0x10]
push eax
push 8
push 0xffff
push edi
call esi
test eax, eax
je 0x101143de
call fcn.100c3120
push str.BIO_connect
push 0x69
push str.crypto_bio_bio_sock2.c
call fcn.100c3220
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.100c32d0
call fcn.100c3120
push str.BIO_connect
push 0x6b
push str.crypto_bio_bio_sock2.c
call fcn.100c3220
push 0
push 0x89
push 0x20
call fcn.100c32d0
add esp, 0x24
pop esi
pop ebx
xor eax, eax
pop edi
pop ecx
ret
test bl, 0x10
je 0x1011444f
push 4
lea eax, [esp + 0x10]
push eax
push 1
push 6
push edi
call esi
test eax, eax
je 0x1011444f
call fcn.100c3120
push str.BIO_connect
push 0x73
push str.crypto_bio_bio_sock2.c
call fcn.100c3220
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.100c32d0
call fcn.100c3120
push str.BIO_connect
push 0x75
push str.crypto_bio_bio_sock2.c
call fcn.100c3220
push 0
push 0x8a
push 0x20
call fcn.100c32d0
add esp, 0x24
xor eax, eax
pop esi
pop ebx
pop edi
pop ecx
ret
mov esi, dword [esp + 0x18]
push esi
call fcn.100c4b60
add esp, 4
push eax
push esi
call fcn.100c4b50
add esp, 4
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x101144db
push eax
call fcn.10114210
add esp, 4
test eax, eax
jne 0x101143d7
call fcn.100c3120
push str.BIO_connect
push 0x7d
push str.crypto_bio_bio_sock2.c
call fcn.100c3220
add esp, 0xc
push str.calling_connect__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.100c32d0
call fcn.100c3120
push str.BIO_connect
push 0x7f
push str.crypto_bio_bio_sock2.c
call fcn.100c3220
push 0
push 0x67
push 0x20
call fcn.100c32d0
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 0x1012fc20
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x18], esi
jne 0x1012fce9
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
cmp al, 0x6a
je 0x1012fc41
cmp al, 0x6b
jne 0x1012fce9
inc ecx
cmp al, 0x6b
jne 0x1012fca2
add esi, 0xfffffffd
xor eax, eax
test esi, esi
jle 0x1012fc62
nop
mov dl, byte [ecx]
inc ecx
cmp dl, 0xba
je 0x1012fc62
cmp dl, 0xbb
jne 0x1012fc76
inc eax
cmp eax, esi
jl 0x1012fc50
sub esi, eax
test eax, eax
jne 0x1012fca5
call fcn.100c3120
push str.RSA_padding_check_X931
push 0x56
jmp 0x1012fc82
call fcn.100c3120
push str.RSA_padding_check_X931
push 0x4e
push str.crypto_rsa_rsa_x931.c
call fcn.100c3220
push 0
push 0x8a
push 4
call fcn.100c32d0
add esp, 0x18
or eax, 0xffffffff
pop esi
ret
add esi, 0xfffffffe
cmp byte [esi + ecx], 0xcc
je 0x1012fcd7
call fcn.100c3120
push str.RSA_padding_check_X931
push 0x5f
push str.crypto_rsa_rsa_x931.c
call fcn.100c3220
push 0
push 0x8b
push 4
call fcn.100c32d0
add esp, 0x18
or eax, 0xffffffff
pop esi
ret
push esi
push ecx
push dword [esp + 0x10]
call fcn.10213e00
add esp, 0xc
mov eax, esi
pop esi
ret
call fcn.100c3120
push str.RSA_padding_check_X931
push 0x43
push str.crypto_rsa_rsa_x931.c
call fcn.100c3220
push 0
push 0x89
push 4
call fcn.100c32d0
add esp, 0x18
or eax, 0xffffffff
pop esi
ret
Function at 0x10148cf0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa0
call fcn.1005b330
mov eax, dword [0x102db074]
xor eax, esp
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0xa4]
push ebx
mov ebx, dword [esp + 0xcc]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xb0]
push ebp
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xbc]
push esi
mov esi, dword [esp + 0xc4]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xcc]
push edi
mov edi, dword [esp + 0xc0]
push ecx
mov ebp, dword [eax]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], ebx
call fcn.100ec0c0
push ebp
push 0
push ebx
mov dword [esp + 0x2c], eax
call fcn.10162d00
add esp, 0x10
test eax, eax
je 0x10148ee1
mov ebx, dword [esp + 0xcc]
inc ebp
test ebx, ebx
mov ebx, dword [esp + 0x10]
je 0x10148da4
push 0
push esi
push ebx
push dword [esp + 0x28]
call fcn.100bc950
add esp, 0x10
test eax, eax
jle 0x10148ee2
push esi
push ebx
push edi
call fcn.10213e00
push esi
lea eax, [esp + 0x7c]
push ebx
push eax
call fcn.10213e00
lea eax, [esi - 1]
add esp, 0x18
test eax, eax
js 0x10148dcd
add byte [edi + eax], 1
jne 0x10148dcd
sub eax, 1
jns 0x10148dc2
push 0
push dword [esp + 0x18]
lea eax, [esp + 0x34]
push 0
push eax
push esi
push ebx
call fcn.100ad5c0
add esp, 0x18
test eax, eax
je 0x10148ee2
push 0
push dword [esp + 0x18]
lea eax, [esp + 0x74]
push 0
push eax
push esi
push edi
call fcn.100ad5c0
add esp, 0x18
test eax, eax
je 0x10148ee2
xor eax, eax
test esi, esi
jle 0x10148e8d
cmp esi, 0x40
jb 0x10148e80
mov ecx, esi
and ecx, 0xffffffc0
nop dword [eax + eax]
movups xmm0, xmmword [esp + eax + 0x2c]
movups xmm1, xmmword [esp + eax + 0x6c]
pxor xmm1, xmm0
movups xmmword [esp + eax + 0x2c], xmm1
movups xmm0, xmmword [esp + eax + 0x3c]
movups xmm1, xmmword [esp + eax + 0x7c]
pxor xmm1, xmm0
movups xmmword [esp + eax + 0x3c], xmm1
movups xmm0, xmmword [esp + eax + 0x4c]
movups xmm1, xmmword [esp + eax + 0x8c]
pxor xmm1, xmm0
movups xmmword [esp + eax + 0x4c], xmm1
movups xmm0, xmmword [esp + eax + 0x5c]
movups xmm1, xmmword [esp + eax + 0x9c]
pxor xmm1, xmm0
movups xmmword [esp + eax + 0x5c], xmm1
add eax, 0x40
cmp eax, ecx
jl 0x10148e20
cmp eax, esi
jge 0x10148e8d
nop dword [eax]
mov cl, byte [esp + eax + 0x6c]
xor byte [esp + eax + 0x2c], cl
inc eax
cmp eax, esi
jl 0x10148e80
mov ebx, dword [esp + 0x20]
lea eax, [esp + 0x2c]
or byte [esp + 0x2c], 0x80
or byte [esp + esi + 0x2b], 1
push ebx
push esi
push eax
call fcn.100a9810
add esp, 0xc
test eax, eax
je 0x10148ee2
push dword [esp + 0x18]
push dword [esp + 0x28]
push ebx
call fcn.10162d50
add esp, 0xc
test eax, eax
jg 0x10148f03
jne 0x10148ee2
push ebp
push 0
push dword [esp + 0x20]
mov ebx, 1
call fcn.10162d00
add esp, 0xc
test eax, eax
jne 0x10148d83
inc ebp
xor eax, eax
mov ecx, dword [esp + 0x28]
pop edi
pop esi
mov dword [ecx], ebp
mov ecx, dword [esp + 0xa4]
pop ebp
pop ebx
xor ecx, esp
call fcn.1005a1f2
add esp, 0xa0
ret
mov eax, 1
jmp 0x10148ee4
Function at 0x1014b330
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 0x1014b409
mov esi, dword [esp + 0x10]
test esi, esi
je 0x1014b3be
push esi
push 0
lea eax, [esp + 0x28]
push eax
push 0
call fcn.100f9180
add esp, 0x10
cmp dword [esp + 0x20], 0xffffffff
je 0x1014b392
call fcn.100c3120
push str.ossl_ecx_key_op
push 0xaa
push str.cryptoececx_backend.c
call fcn.100c3220
push 0
push 0x66
push 0x10
call fcn.100c32d0
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.100c87d0
add esp, 4
test esi, esi
jne 0x1014b3a9
mov esi, eax
jmp 0x1014b3c2
cmp esi, eax
je 0x1014b3c2
call fcn.100c3120
push str.ossl_ecx_key_op
push 0xb0
jmp 0x1014b374
mov esi, dword [esp + 0x1c]
test edi, edi
je 0x1014b3f5
test esi, esi
je 0x1014b3f5
cmp esi, 0x40a
je 0x1014b3ea
cmp esi, 0x43f
je 0x1014b3ea
xor eax, eax
cmp esi, 0x40b
setne al
add eax, 0x38
jmp 0x1014b3ef
mov eax, 0x20
cmp dword [esp + 0x18], eax
je 0x1014b40d
call fcn.100c3120
push str.ossl_ecx_key_op
push 0xb6
jmp 0x1014b374
mov esi, dword [esp + 0x1c]
cmp esi, 0x40a
je 0x1014b431
cmp esi, 0x43f
je 0x1014b431
xor eax, eax
cmp esi, 0x40b
setne al
lea eax, [eax*2 + 1]
jmp 0x1014b441
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.100e2860
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x1014b48b
call fcn.100c3120
push str.ossl_ecx_key_op
push 0xbd
push str.cryptoececx_backend.c
call fcn.100c3220
push ebx
push 0xc0100
push 0x10
call fcn.100c32d0
add esp, 0x18
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
test ebp, ebp
jne 0x1014b4a7
push dword [esp + 0x1c]
lea eax, [ebx + 0xc]
push edi
push eax
call fcn.10213e00
add esp, 0xc
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
ret
push ebx
call fcn.100e27e0
mov edi, eax
add esp, 4
test edi, edi
jne 0x1014b4da
call fcn.100c3120
push str.ossl_ecx_key_op
push 0xc7
push str.cryptoececx_backend.c
call fcn.100c3220
push edi
push 0xc0100
jmp 0x1014b5b0
cmp ebp, 2
jne 0x1014b54c
test esi, esi
je 0x1014b57f
cmp esi, 0x40a
je 0x1014b507
cmp esi, 0x43f
je 0x1014b507
xor eax, eax
cmp esi, 0x40b
setne al
add eax, 0x38
jmp 0x1014b50c
mov eax, 0x20
push 0
push eax
push edi
push dword [esp + 0x34]
call fcn.100bcf30
add esp, 0x10
test eax, eax
jle 0x1014b5ba
cmp esi, 0x40a
jne 0x1014b53b
mov al, byte [edi + 0x1f]
and byte [edi], 0xf8
and al, 0x3f
or al, 0x40
mov byte [edi + 0x1f], al
jmp 0x1014b57f
cmp esi, 0x40b
jne 0x1014b57f
and byte [edi], 0xfc
or byte [edi + 0x37], 0x80
jmp 0x1014b57f
cmp esi, 0x40a
je 0x1014b56c
cmp esi, 0x43f
je 0x1014b56c
xor eax, eax
cmp esi, 0x40b
setne al
add eax, 0x38
jmp 0x1014b571
mov eax, 0x20
push eax
push dword [esp + 0x1c]
push edi
call fcn.10213e00
add esp, 0xc
push ebx
call fcn.1014b5d0
add esp, 4
test eax, eax
jne 0x1014b4a0
call fcn.100c3120
push str.ossl_ecx_key_op
push 0xdb
push str.cryptoececx_backend.c
call fcn.100c3220
push 0
push 0xa6
push 0x10
call fcn.100c32d0
add esp, 0x18
push ebx
call fcn.100e2800
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x1014ffc0
Capabilities:
Encrypt data using curve25519

Disassembly:
mov eax, 0xe4
call fcn.1005b330
mov eax, dword [0x102db074]
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.100ae2b0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x10150042
push 0
push edi
push 0
lea eax, [esp + 0xb8]
push eax
push 0x20
push esi
call fcn.100ad5c0
push edi
mov esi, eax
call fcn.100ae2e0
add esp, 0x1c
test esi, esi
jne 0x1015005c
lea eax, [esp + 0xac]
push 0x40
push eax
call fcn.10001320
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xe0]
xor ecx, esp
call fcn.1005a1f2
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.1014f800
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.1014f780
lea eax, [esp + 0xbc]
push 0x40
push eax
call fcn.10001320
mov ecx, dword [esp + 0x104]
add esp, 0x18
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1005a1f2
add esp, 0xe4
ret