joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10030f80
Capabilities:
Get common file path

Disassembly:
mov eax, 0x230
call fcn.10022920
mov eax, dword [0x101fd024]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x101ffb58], 0
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x10030990
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x10030d30
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], fcn.10030940
jne 0x100310db
push 0x104
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x100310d1
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.1015754f
push str.ws2_32
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.101575a9
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 0x1003104f
push str.getaddrinfo
push edi
call ebx
test eax, eax
jne 0x10031096
push edi
call ebp
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.1015754f
push str.wship6
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.101575a9
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call esi
mov edi, eax
test edi, edi
je 0x100310cd
push str.getaddrinfo
push edi
call ebx
test eax, eax
je 0x100310ca
xor esi, esi
push dword [esp + esi*8 + 0x10]
push edi
call ebx
mov dword [esp + esi*8 + 0x14], eax
test eax, eax
je 0x100310ca
inc esi
cmp esi, 3
jl 0x10031098
mov eax, dword [esp + 0x14]
mov dword [0x101fd318], eax
mov eax, dword [esp + 0x1c]
mov dword [0x101fd320], eax
mov eax, dword [esp + 0x24]
mov dword [fcn.10030940], eax
jmp 0x100310cd
push edi
call ebp
pop edi
pop esi
pop ebp
pop ebx
mov dword [0x101ffb58], 1
movzx eax, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
mov eax, dword [eax*8 + 0x101fd318]
call fcn.10021a20
add esp, 0x230
ret 4
Function at 0x10031110
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x820
call fcn.10022920
mov eax, dword [0x101fd024]
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.10146e60
push 0x401
lea eax, [esp + 0x438]
push 0
push eax
call fcn.10146e60
push 0x400
push esi
lea eax, [esp + 0x44]
push 0x401
push eax
mov dword [esp + 0x3c], eax
lea ebp, [esp + 0x450]
call fcn.10157b57
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 0x100312e5
cmp word [ebx + 8], 2
jne 0x10031202
cmp word [ebx + 0xa], 4
jne 0x10031202
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x10031202
nop word [eax + eax]
push dword [eax]
push dword [esp + 0x844]
push dword [esp + 0x844]
push dword [esp + 0x844]
call fcn.10031340
mov dword [edi], eax
test eax, eax
je 0x10031290
add esi, 4
lea edi, [eax + 0x1c]
mov eax, dword [esi]
test eax, eax
jne 0x100311d0
push 0x400
push dword [ebx]
push 0x401
push ebp
call fcn.10157b57
mov ebx, dword [esp + 0x28]
xor esi, esi
add esp, 0x10
cmp dword [ebx], esi
jne 0x10031297
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10031226
sub ecx, edx
je case.0x100312f5.11003
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov eax, edi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10031260
test dl, dl
je 0x1003125c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10031260
add eax, 2
add ecx, 2
test dl, dl
jne 0x10031240
xor eax, eax
jmp 0x10031265
sbb eax, eax
or eax, 1
test eax, eax
je case.0x100312f5.11003
mov esi, dword [esp + 0x10]
inc esi
mov dword [esp + 0x10], esi
cmp esi, 0x10
je case.0x100312f5.11003
mov esi, dword [esp + 0x1c]
mov eax, edi
mov dword [esp + 0x14], ebp
mov ebp, eax
jmp 0x10031192
mov esi, 8
jmp 0x1003130f
cmp dword [esp + 0x844], esi
je 0x1003130f
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100312a5
sub ecx, edx
lea ebx, [ecx + 1]
push ebx
push 1
call fcn.1014d3c2
mov edi, eax
add esp, 8
test edi, edi
je 0x100312cd
push ebp
push ebx
push edi
call fcn.1015754f
add esp, 0xc
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov dword [eax + 0x14], edi
mov eax, dword [ecx]
mov ecx, 8
cmp dword [eax + 0x14], esi
cmove esi, ecx
jmp 0x1003130f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x100312f5.11001
jmp dword [eax*4 + 0x1003132c]
mov esi, 0x2afa
jmp 0x1003130f
mov esi, 0x2afb
jmp 0x1003130f
mov esi, 0x2af9
mov ecx, dword [esp + 0x82c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10021a20
add esp, 0x820
ret 0x18
Function at 0x10043550
Capabilities:
Hash data using sha1

Disassembly:
mov eax, 0x40
call fcn.10022920
mov eax, dword [0x101fd024]
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 0x1004358c
pop edi
mov eax, 0xfffffffe
pop esi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.10021a20
add esp, 0x40
ret
test esi, esi
je 0x1004369b
cmp dword [esp + 0x54], 0x30
jne 0x1004369b
push 0x30
push edi
push esi
call fcn.10043470
add esp, 0xc
test eax, eax
jle 0x1004369b
movaps xmm0, xmmword [str.6666666666666666_]
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.10043470
add esp, 0xc
test eax, eax
je 0x1004369b
lea eax, [esp + 0x30]
push esi
push eax
call fcn.100432d0
add esp, 8
test eax, eax
je 0x1004369b
push 0x4c
lea eax, [esi + 0x14]
push 0
push eax
call fcn.10146e60
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.10043470
add esp, 0x18
test eax, eax
jle 0x1004369b
movaps xmm0, xmmword [0x1018bb20]
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.10043470
add esp, 0xc
test eax, eax
je 0x1004369b
push 0x14
lea eax, [esp + 0x34]
push eax
push esi
call fcn.10043470
add esp, 0xc
test eax, eax
je 0x1004369b
lea eax, [esp + 0x30]
push 0x14
push eax
call fcn.1003ac40
add esp, 8
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.10021a20
add esp, 0x40
ret
mov ecx, dword [esp + 0x44]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.10021a20
add esp, 0x40
ret
Function at 0x10048190
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
push dword [esp + 0x14]
call fcn.1007b700
push 0x62
push esi
mov edi, eax
mov ebx, 1
call fcn.10146fc0
add esp, 0x10
mov ecx, 0x11
test eax, eax
cmove ebx, ecx
test edi, edi
jne 0x10048249
call fcn.1002efd0
push str.BIO_new_file
push 0x43
push str.crypto_bio_bss_file.c
call fcn.1002f0d0
add esp, 0xc
push esi
push dword [esp + 0x14]
push str.calling_fopen__s___s_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
call fcn.1002f180
add esp, 0x14
call fcn.1014d4d6
cmp dword [eax], 2
je 0x10048219
call fcn.1014d4d6
cmp dword [eax], 6
je 0x10048219
mov esi, 0x80002
mov edi, 0x4d
jmp 0x10048221
mov esi, 0x80
lea edi, [esi - 0x35]
call fcn.1002efd0
push str.BIO_new_file
push edi
push str.crypto_bio_bss_file.c
call fcn.1002f0d0
push 0
push esi
push 0x20
call fcn.1002f180
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x1018bf7c
call fcn.10024130
mov esi, eax
add esp, 4
test esi, esi
jne 0x1004826b
push edi
call fcn.101510f3
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push esi
call fcn.10023a00
push edi
push ebx
push 0x6a
push esi
call fcn.10023a30
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x1005d2d0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov eax, 4
call fcn.10022920
push edi
mov edi, dword [esp + 0xc]
mov dword [esp + 4], 1
cmp edi, 0xffffffff
jne 0x1005d318
call fcn.1002efd0
push str.BIO_connect
push 0x54
push str.crypto_bio_bio_sock2.c
call fcn.1002f0d0
push 0
push 0x87
push 0x20
call fcn.1002f180
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.1002ee40
add esp, 8
test eax, eax
je 0x1005d3a7
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
test bl, 4
je 0x1005d3ae
push 4
lea eax, [esp + 0x10]
push eax
push 8
push 0xffff
push edi
call esi
test eax, eax
je 0x1005d3ae
call fcn.1002efd0
push str.BIO_connect
push 0x5e
push str.crypto_bio_bio_sock2.c
call fcn.1002f0d0
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.1002f180
call fcn.1002efd0
push str.BIO_connect
push 0x60
push str.crypto_bio_bio_sock2.c
call fcn.1002f0d0
push 0
push 0x89
push 0x20
call fcn.1002f180
add esp, 0x24
pop esi
pop ebx
xor eax, eax
pop edi
pop ecx
ret
test bl, 0x10
je 0x1005d41f
push 4
lea eax, [esp + 0x10]
push eax
push 1
push 6
push edi
call esi
test eax, eax
je 0x1005d41f
call fcn.1002efd0
push str.BIO_connect
push 0x68
push str.crypto_bio_bio_sock2.c
call fcn.1002f0d0
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.1002f180
call fcn.1002efd0
push str.BIO_connect
push 0x6a
push str.crypto_bio_bio_sock2.c
call fcn.1002f0d0
push 0
push 0x8a
push 0x20
call fcn.1002f180
add esp, 0x24
xor eax, eax
pop esi
pop ebx
pop edi
pop ecx
ret
mov esi, dword [esp + 0x18]
push esi
call fcn.10030580
add esp, 4
push eax
push esi
call fcn.10030570
add esp, 4
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1005d4ab
push eax
call fcn.1005d1e0
add esp, 4
test eax, eax
jne 0x1005d3a7
call fcn.1002efd0
push str.BIO_connect
push 0x72
push str.crypto_bio_bio_sock2.c
call fcn.1002f0d0
add esp, 0xc
push str.calling_connect__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.1002f180
call fcn.1002efd0
push str.BIO_connect
push 0x74
push str.crypto_bio_bio_sock2.c
call fcn.1002f0d0
push 0
push 0x67
push 0x20
call fcn.1002f180
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 0x1005e1a0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 4
call fcn.10022920
push edi
mov edi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
test edi, edi
je 0x1005e220
mov cl, byte [edi]
test cl, cl
je 0x1005e220
push ebx
push esi
mov ebx, 0x100
nop word [eax + eax]
movd xmm1, dword [esp + 0xc]
lea edi, [edi + 1]
movsx esi, cl
mov edx, 0x20
or esi, ebx
add ebx, 0x100
mov ecx, esi
shr ecx, 2
xor ecx, esi
imul esi, esi
and ecx, 0xf
sub edx, ecx
shl eax, cl
mov cl, byte [edi]
movd xmm0, edx
psrlq xmm1, xmm0
movd edx, xmm1
or eax, edx
xor eax, esi
mov dword [esp + 0xc], eax
test cl, cl
jne 0x1005e1d0
mov ecx, eax
pop esi
shr ecx, 0x10
pop ebx
xor eax, ecx
pop edi
pop ecx
ret
xor eax, eax
pop edi
pop ecx
ret

Function at 0x1005e310
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.10022920
push ebx
mov ebx, dword [esp + 0xc]
push esi
xor esi, esi
mov dword [esp + 8], esi
test ebx, ebx
je 0x1005e395
mov al, byte [ebx]
test al, al
je 0x1005e395
push ebp
push edi
mov ebp, 0x100
movsx eax, al
push eax
call fcn.10070b20
movd xmm1, dword [esp + 0x14]
lea ebx, [ebx + 1]
mov edi, eax
mov edx, 0x20
or edi, ebp
add esp, 4
mov ecx, edi
add ebp, 0x100
shr ecx, 2
xor ecx, edi
imul edi, edi
and ecx, 0xf
sub edx, ecx
shl esi, cl
movd xmm0, edx
psrlq xmm1, xmm0
movd eax, xmm1
or eax, esi
xor eax, edi
mov esi, eax
mov al, byte [ebx]
mov dword [esp + 0x10], esi
test al, al
jne 0x1005e337
mov eax, esi
pop edi
shr eax, 0x10
pop ebp
xor eax, esi
pop esi
pop ebx
pop ecx
ret
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x10066640
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x18], esi
jne 0x10066709
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
cmp al, 0x6a
je 0x10066661
cmp al, 0x6b
jne 0x10066709
inc ecx
cmp al, 0x6b
jne 0x100666c2
add esi, 0xfffffffd
xor eax, eax
test esi, esi
jle 0x10066682
nop
mov dl, byte [ecx]
inc ecx
cmp dl, 0xba
je 0x10066682
cmp dl, 0xbb
jne 0x10066696
inc eax
cmp eax, esi
jl 0x10066670
sub esi, eax
test eax, eax
jne 0x100666c5
call fcn.1002efd0
push str.RSA_padding_check_X931
push 0x56
jmp 0x100666a2
call fcn.1002efd0
push str.RSA_padding_check_X931
push 0x4e
push str.crypto_rsa_rsa_x931.c
call fcn.1002f0d0
push 0
push 0x8a
push 4
call fcn.1002f180
add esp, 0x18
or eax, 0xffffffff
pop esi
ret
add esi, 0xfffffffe
cmp byte [esi + ecx], 0xcc
je 0x100666f7
call fcn.1002efd0
push str.RSA_padding_check_X931
push 0x5f
push str.crypto_rsa_rsa_x931.c
call fcn.1002f0d0
push 0
push 0x8b
push 4
call fcn.1002f180
add esp, 0x18
or eax, 0xffffffff
pop esi
ret
push esi
push ecx
push dword [esp + 0x10]
call fcn.10146360
add esp, 0xc
mov eax, esi
pop esi
ret
call fcn.1002efd0
push str.RSA_padding_check_X931
push 0x43
push str.crypto_rsa_rsa_x931.c
call fcn.1002f0d0
push 0
push 0x89
push 4
call fcn.1002f180
add esp, 0x18
or eax, 0xffffffff
pop esi
ret
Function at 0x100874d0
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 0x10087512
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 0x100874f1
pop edi
pop ebx
pop esi
ret
Function at 0x10092580
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
xor dl, dl
test esi, esi
je 0x100925a7
mov eax, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
sub edi, eax
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
or dl, cl
sub esi, 1
jne 0x10092596
pop edi
movzx eax, dl
pop esi
ret
Function at 0x100994a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa0
call fcn.10022920
mov eax, dword [0x101fd024]
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.10033390
push ebp
push 0
push ebx
mov dword [esp + 0x2c], eax
call fcn.100cebd0
add esp, 0x10
test eax, eax
je 0x100996a1
mov ebx, dword [esp + 0xcc]
inc ebp
test ebx, ebx
mov ebx, dword [esp + 0x10]
je 0x10099554
push 0
push esi
push ebx
push dword [esp + 0x28]
call fcn.100900f0
add esp, 0x10
test eax, eax
jle 0x100996a2
push esi
push ebx
push edi
call fcn.10146360
push esi
lea eax, [esp + 0x7c]
push ebx
push eax
call fcn.10146360
lea eax, [esi - 1]
add esp, 0x18
test eax, eax
js 0x1009957d
add byte [edi + eax], 1
jne 0x1009957d
sub eax, 1
jns 0x10099572
push 0
push dword [esp + 0x18]
lea eax, [esp + 0x34]
push 0
push eax
push esi
push ebx
call fcn.100268e0
add esp, 0x18
test eax, eax
je 0x100996a2
push 0
push dword [esp + 0x18]
lea eax, [esp + 0x74]
push 0
push eax
push esi
push edi
call fcn.100268e0
add esp, 0x18
test eax, eax
je 0x100996a2
xor eax, eax
test esi, esi
jle 0x1009964d
cmp esi, 0x40
jb 0x10099639
mov ecx, esi
and ecx, 0x8000003f
jns 0x100995d9
dec ecx
or ecx, 0xffffffc0
inc ecx
mov edx, esi
sub edx, ecx
nop dword [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, edx
jl 0x100995e0
cmp eax, esi
jge 0x1009964d
nop dword [eax]
mov cl, byte [esp + eax + 0x6c]
xor byte [esp + eax + 0x2c], cl
inc eax
cmp eax, esi
jl 0x10099640
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.10031d10
add esp, 0xc
test eax, eax
je 0x100996a2
push dword [esp + 0x18]
push dword [esp + 0x28]
push ebx
call fcn.100cec20
add esp, 0xc
test eax, eax
jg 0x100996c3
jne 0x100996a2
push ebp
push 0
push dword [esp + 0x20]
mov ebx, 1
call fcn.100cebd0
add esp, 0xc
test eax, eax
jne 0x10099533
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.10021a20
add esp, 0xa0
ret
mov eax, 1
jmp 0x100996a4
Function at 0x1009c470
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 0x1009c548
mov esi, dword [esp + 0x10]
test esi, esi
je 0x1009c4fd
push esi
push 0
lea eax, [esp + 0x28]
push eax
push 0
call fcn.10067180
add esp, 0x10
cmp dword [esp + 0x20], 0xffffffff
je 0x1009c4d2
call fcn.1002efd0
push str.ossl_ecx_key_op
push 0xaa
push str.cryptoececx_backend.c
call fcn.1002f0d0
push 0
push 0x66
push 0x10
call fcn.1002f180
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebp
ret
push dword [esi]
call fcn.1003bbc0
mov esi, dword [esp + 0x20]
add esp, 4
test esi, esi
jne 0x1009c4e8
mov esi, eax
jmp 0x1009c501
cmp esi, eax
je 0x1009c501
call fcn.1002efd0
push str.ossl_ecx_key_op
push 0xb0
jmp 0x1009c4b4
mov esi, dword [esp + 0x1c]
test edi, edi
je 0x1009c534
test esi, esi
je 0x1009c534
cmp esi, 0x40a
je 0x1009c529
cmp esi, 0x43f
je 0x1009c529
xor eax, eax
cmp esi, 0x40b
setne al
add eax, 0x38
jmp 0x1009c52e
mov eax, 0x20
cmp dword [esp + 0x18], eax
je 0x1009c54c
call fcn.1002efd0
push str.ossl_ecx_key_op
push 0xb6
jmp 0x1009c4b4
mov esi, dword [esp + 0x1c]
cmp esi, 0x40a
je 0x1009c570
cmp esi, 0x43f
je 0x1009c570
xor eax, eax
cmp esi, 0x40b
setne al
lea eax, [eax*2 + 1]
jmp 0x1009c580
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.1004fda0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x1009c5ca
call fcn.1002efd0
push str.ossl_ecx_key_op
push 0xbd
push str.cryptoececx_backend.c
call fcn.1002f0d0
push ebx
push 0xc0100
push 0x10
call fcn.1002f180
add esp, 0x18
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
test ebp, ebp
jne 0x1009c5e6
push dword [esp + 0x1c]
lea eax, [ebx + 0xc]
push edi
push eax
call fcn.10146360
add esp, 0xc
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
ret
push ebx
call fcn.1004fd20
mov edi, eax
add esp, 4
test edi, edi
jne 0x1009c619
call fcn.1002efd0
push str.ossl_ecx_key_op
push 0xc7
push str.cryptoececx_backend.c
call fcn.1002f0d0
push edi
push 0xc0100
jmp 0x1009c6ef
cmp ebp, 2
jne 0x1009c68b
test esi, esi
je 0x1009c6be
cmp esi, 0x40a
je 0x1009c646
cmp esi, 0x43f
je 0x1009c646
xor eax, eax
cmp esi, 0x40b
setne al
add eax, 0x38
jmp 0x1009c64b
mov eax, 0x20
push 0
push eax
push edi
push dword [esp + 0x34]
call fcn.100906e0
add esp, 0x10
test eax, eax
jle 0x1009c6f9
cmp esi, 0x40a
jne 0x1009c67a
mov al, byte [edi + 0x1f]
and byte [edi], 0xf8
and al, 0x3f
or al, 0x40
mov byte [edi + 0x1f], al
jmp 0x1009c6be
cmp esi, 0x40b
jne 0x1009c6be
and byte [edi], 0xfc
or byte [edi + 0x37], 0x80
jmp 0x1009c6be
cmp esi, 0x40a
je 0x1009c6ab
cmp esi, 0x43f
je 0x1009c6ab
xor eax, eax
cmp esi, 0x40b
setne al
add eax, 0x38
jmp 0x1009c6b0
mov eax, 0x20
push eax
push dword [esp + 0x1c]
push edi
call fcn.10146360
add esp, 0xc
push ebx
call fcn.1009c710
add esp, 4
test eax, eax
jne 0x1009c5df
call fcn.1002efd0
push str.ossl_ecx_key_op
push 0xdb
push str.cryptoececx_backend.c
call fcn.1002f0d0
push 0
push 0xa6
push 0x10
call fcn.1002f180
add esp, 0x18
push ebx
call fcn.1004fd40
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x100a0f60
Capabilities:
Encrypt data using curve25519

Disassembly:
mov eax, 0xe4
call fcn.10022920
mov eax, dword [0x101fd024]
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.100272e0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x100a0fe2
push 0
push edi
push 0
lea eax, [esp + 0xb8]
push eax
push 0x20
push esi
call fcn.100268e0
push edi
mov esi, eax
call fcn.10027310
add esp, 0x1c
test esi, esi
jne 0x100a0ffc
lea eax, [esp + 0xac]
push 0x40
push eax
call fcn.1003ac40
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xe0]
xor ecx, esp
call fcn.10021a20
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.100a0820
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.100a07a0
lea eax, [esp + 0xbc]
push 0x40
push eax
call fcn.1003ac40
mov ecx, dword [esp + 0x104]
add esp, 0x18
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10021a20
add esp, 0xe4
ret