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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x98
mov eax, dword [0x1024ee80]
xor eax, esp
mov dword [esp + 0x94], eax
push esi
push edi
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
push ecx
push 0x1000
push dword [esp + 0x14]
xorps xmm0, xmm0
mov dword [esp + 0x4c], 0
xor eax, eax
movaps xmmword [esp + 0x3c], xmm0
push 0x1000
lea ecx, [esp + 0x40]
mov dword [esp + 0x54], 7
mov word [esp + 0x40], ax
call fcn.1004baa0
cmp dword [esp + 0x44], 7
lea eax, [esp + 0x30]
cmova eax, dword [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xorps xmm0, xmm0
mov dword [esp + 0x20], 1
movaps xmmword [esp + 0x10], xmm0
mov dword [esp + 0x24], 0xf
mov word [esp + 0x10], 0x2d
mov dword [esp + 0xc], 0
call fcn.1004c850
push 0
mov esi, eax
call fcn.1004dab0
push eax
push esi
call fcn.1004c220
cmp dword [esp + 0x30], 0xf
lea ecx, [esp + 0x1c]
push dword [esp + 0x2c]
cmova ecx, dword [esp + 0x20]
push ecx
push esi
call fcn.1004c260
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x74]
push eax
push esi
call fcn.1004c0f0
push esi
call fcn.1004c7c0
mov ecx, dword [esp + 0x4c]
add esp, 0x28
cmp ecx, 0xf
jbe 0x1004b94b
mov edx, dword [esp + 0x10]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1004b941
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004b9e9
push ecx
push edx
call fcn.10175c33
add esp, 8
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 0x514
mov dword [esp + 0xc], esi
nop word [eax + eax]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call fcn.1004b780
test al, al
je 0x1004b990
mov esi, 0x320
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call fcn.1004b780
push 0x1e
call edi
sub esi, 1
jne 0x1004b976
mov esi, dword [esp + 0xc]
push 0x32
call edi
sub esi, 1
mov dword [esp + 0xc], esi
jne 0x1004b960
mov ecx, dword [esp + 0x44]
cmp ecx, 7
jbe 0x1004b9d5
mov edx, dword [esp + 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1004b9cb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004b9ee
push ecx
push edx
call fcn.10175c33
add esp, 8
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
xor ecx, esp
call fcn.10175bf0
mov esp, ebp
pop ebp
ret
call fcn.10179b2f
call fcn.10179b2f
int3

Function at 0x1004ba10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x1004ba2e
push 0
push 0
push 0
push 0x1004ba00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc
Function at 0x10059d60
Capabilities:
Hash data using sha1

Disassembly:
mov eax, 0x40
call fcn.10175fd0
mov eax, dword [0x1024ee80]
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 0x10059d9c
pop edi
mov eax, 0xfffffffe
pop esi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.10175bf0
add esp, 0x40
ret
test esi, esi
je 0x10059eab
cmp dword [esp + 0x54], 0x30
jne 0x10059eab
push 0x30
push edi
push esi
call fcn.10059c80
add esp, 0xc
test eax, eax
jle 0x10059eab
movaps xmm0, xmmword [str.6666666666666666O]
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.10059c80
add esp, 0xc
test eax, eax
je 0x10059eab
lea eax, [esp + 0x30]
push esi
push eax
call fcn.10059ae0
add esp, 8
test eax, eax
je 0x10059eab
push 0x4c
lea eax, [esi + 0x14]
push 0
push eax
call fcn.101778a0
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.10059c80
add esp, 0x18
test eax, eax
jle 0x10059eab
movaps xmm0, xmmword [0x101adf30]
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.10059c80
add esp, 0xc
test eax, eax
je 0x10059eab
push 0x14
lea eax, [esp + 0x34]
push eax
push esi
call fcn.10059c80
add esp, 0xc
test eax, eax
je 0x10059eab
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.10175bf0
add esp, 0x40
ret
mov ecx, dword [esp + 0x44]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.10175bf0
add esp, 0x40
ret

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

Disassembly:
mov eax, 4
call fcn.10175fd0
push edi
mov edi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
test edi, edi
je 0x1005cad0
mov cl, byte [edi]
test cl, cl
je 0x1005cad0
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 0x1005ca80
pop esi
mov ecx, eax
pop ebx
shr ecx, 0x10
xor eax, ecx
pop edi
pop ecx
ret
xor eax, eax
pop edi
pop ecx
ret
Function at 0x1005cb50
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 4
call fcn.10175fd0
push edi
mov edi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
test edi, edi
je 0x1005cbd3
mov cl, byte [edi]
test cl, cl
je 0x1005cbd3
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
and esi, 0xffffffdf
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 0x1005cb80
pop esi
mov ecx, eax
pop ebx
shr ecx, 0x10
xor eax, ecx
pop edi
pop ecx
ret
xor eax, eax
pop edi
pop ecx
ret
Function at 0x1005ff70
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
lea edx, [eax - 1]
not eax
shr edx, 0x1f
shr eax, 0x1f
and edx, eax
mov eax, dword [ebx + 4]
mov ecx, dword [ebp + 4]
dec edx
xor eax, ecx
mov dword [esp + 0x10], edx
and eax, edx
xor ecx, eax
mov dword [ebp + 4], ecx
xor dword [ebx + 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebx + 0xc]
xor eax, ecx
movd xmm0, edx
and eax, edx
pshufd xmm4, xmm0, 0
xor ecx, eax
mov dword [ebp + 0xc], ecx
xor dword [ebx + 0xc], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebx + 0x10]
xor eax, ecx
and eax, edx
and eax, 4
xor ecx, eax
mov dword [ebp + 0x10], ecx
xor dword [ebx + 0x10], eax
xor eax, eax
mov esi, dword [esp + 0x1c]
test esi, esi
jle 0x10060086
push edi
cmp esi, 4
jb 0x10060061
mov ecx, dword [ebp]
lea edi, [esi - 1]
mov edx, dword [ebx]
lea ebp, [esi - 1]
lea ebp, [ecx + ebp*4]
cmp edx, ebp
lea edi, [edx + edi*4]
mov ebp, dword [esp + 0x18]
ja 0x10060004
cmp edi, ecx
jae 0x10060061
cmp edx, ebx
ja 0x1006000c
cmp edi, ebx
jae 0x10060061
cmp edx, ebp
ja 0x10060014
cmp edi, ebp
jae 0x10060061
lea edi, [esi - 1]
lea edi, [ecx + edi*4]
cmp ecx, ebx
ja 0x10060022
cmp edi, ebx
jae 0x10060061
cmp ecx, ebp
ja 0x1006002a
cmp edi, ebp
jae 0x10060061
mov edi, esi
and edi, 0xfffffffc
nop
movups xmm3, xmmword [edx + eax*4]
movups xmm2, xmmword [ecx + eax*4]
movaps xmm1, xmm3
xorps xmm1, xmm2
andps xmm1, xmm4
movaps xmm0, xmm1
xorps xmm1, xmm3
xorps xmm0, xmm2
movups xmmword [ecx + eax*4], xmm0
movups xmmword [edx + eax*4], xmm1
add eax, 4
cmp eax, edi
jl 0x10060030
mov dword [esp + 0x18], eax
cmp eax, esi
jge 0x10060085
mov ecx, dword [ebp]
mov edx, dword [ecx + eax*4]
lea esi, [ecx + eax*4]
mov ecx, dword [ebx]
mov edi, dword [ecx + eax*4]
xor edi, edx
and edi, dword [esp + 0x14]
xor edx, edi
mov dword [esi], edx
mov ecx, dword [ebx]
xor dword [ecx + eax*4], edi
inc eax
cmp eax, dword [esp + 0x20]
jl 0x10060061
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x1007eaf0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x14
call fcn.10175fd0
mov ecx, dword [esp + 0x24]
push esi
mov esi, dword [esp + 0x24]
shr ecx, 3
mov dword [esp + 8], ecx
cmp esi, dword [esp + 0x28]
jb 0x1007ed08
push ebx
push ebp
push edi
nop word [eax + eax]
mov dword [esp + 0x10], 0
test ecx, ecx
je 0x1007ece2
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
movzx eax, byte [ecx + 7]
cdq
mov ebp, eax
mov ebx, edx
movzx eax, byte [ecx + 6]
shld ebx, ebp, 8
cdq
or ebx, edx
shl ebp, 8
or ebp, eax
movzx eax, byte [ecx + 5]
shld ebx, ebp, 8
cdq
or ebx, edx
shl ebp, 8
or ebp, eax
movzx eax, byte [ecx + 4]
shld ebx, ebp, 8
cdq
or ebx, edx
shl ebp, 8
or ebp, eax
movzx eax, byte [ecx + 3]
cdq
mov ecx, ebp
shld ebx, ecx, 8
mov edi, edx
mov dword [esp + 0x20], ebp
shl ecx, 8
or edi, ebx
or eax, ecx
and ebp, 0x55555555
mov ecx, dword [esp + 0x2c]
mov ebx, eax
mov dword [esp + 0x18], eax
shld edi, ebx, 8
movzx eax, byte [ecx + 2]
cdq
shl ebx, 8
or edi, edx
or ebx, eax
movzx eax, byte [ecx + 1]
cdq
shld edi, ebx, 8
shl ebx, 8
or edi, edx
or ebx, eax
movzx eax, byte [ecx]
cdq
add ecx, 8
shld edi, ebx, 8
mov dword [esp + 0x2c], ecx
shl ebx, 8
or ebx, eax
mov eax, ebx
and eax, 0x55555555
mov ecx, eax
shr ecx, 1
or ecx, eax
and ecx, 0x33333333
mov eax, ecx
shr eax, 2
or eax, ecx
and eax, 0xf0f0f0f
mov ecx, eax
shr ecx, 4
or ecx, eax
and ecx, 0xff00ff
mov dword [esp + 0x18], ecx
mov ecx, ebp
shr ecx, 1
or ecx, ebp
and ecx, 0x33333333
mov eax, ecx
shr eax, 2
or eax, ecx
and eax, 0xf0f0f0f
mov ebp, eax
shr ebp, 4
or ebp, eax
and ebx, 0xaaaaaaaa
and ebp, 0xff00ff
lea eax, [ebx + ebx]
or eax, ebx
and eax, 0xcccccccc
lea ecx, [eax*4]
or ecx, eax
and ecx, 0xf0f0f0f0
mov edi, ecx
shl edi, 4
or edi, ecx
mov ecx, dword [esp + 0x20]
and ecx, 0xaaaaaaaa
and edi, 0xff00ff00
mov ebx, edi
and edi, 0xffff00
shr ebx, 8
or ebx, edi
lea eax, [ecx + ecx]
shr ebx, 8
or eax, ecx
and eax, 0xcccccccc
lea ecx, [eax*4]
or ecx, eax
and ecx, 0xf0f0f0f0
mov edx, ecx
shl edx, 4
or edx, ecx
mov ecx, ebp
and edx, 0xff00ff00
shl ebp, 8
mov eax, edx
and ecx, 0xffffff00
shl eax, 8
or ecx, ebp
or eax, edx
shl ecx, 8
and eax, 0xffff0000
xor edx, edx
or ebx, eax
mov eax, dword [esp + 0x18]
shr eax, 8
or eax, dword [esp + 0x18]
movzx eax, ax
or ecx, eax
mov eax, dword [esp + 0x10]
or edx, ecx
mov ecx, dword [esp + 0x28]
xor dword [ecx + eax*8], edx
xor dword [ecx + eax*8 + 4], ebx
inc eax
mov dword [esp + 0x10], eax
cmp eax, esi
jb 0x1007eb34
mov esi, dword [esp + 0x30]
jmp 0x1007ece6
mov ecx, dword [esp + 0x28]
push ecx
call fcn.1007e230
sub esi, dword [esp + 0x38]
add esp, 4
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x30], esi
cmp esi, dword [esp + 0x34]
jae 0x1007eb20
pop edi
pop ebp
pop ebx
mov eax, esi
pop esi
add esp, 0x14
ret
Function at 0x10088390
Capabilities:
Initialize winsock library

Disassembly:
cmp dword [0x1024fed8], 0
jne 0x10088429
push 0x190
push 0
push 0x1024fee0
mov dword [0x1024fed8], 1
call fcn.101778a0
add esp, 0xc
push 0x1024fee0
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10088429
call fcn.10055e90
push str.BIO_sock_init
push 0x94
push str.crypto_bio_bio_sock.c
call fcn.10055f90
add esp, 0xc
push str.calling_wsastartup__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.10056040
call fcn.10055e90
push str.BIO_sock_init
push 0x96
push str.crypto_bio_bio_sock.c
call fcn.10055f90
push 0
push 0x7a
push 0x20
call fcn.10056040
add esp, 0x24
or eax, 0xffffffff
ret
mov eax, 1
ret

Function at 0x10088430
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 0x10088485
call fcn.10055e90
push str.BIO_socket_ioctl
push 0xd1
push str.crypto_bio_bio_sock.c
call fcn.10055f90
add esp, 0xc
push str.calling_ioctlsocket__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.10056040
add esp, 0xc
xor eax, eax
test esi, esi
pop esi
sete al
ret

Function at 0x10088490
Capabilities:
Get socket status

Disassembly:
mov eax, 0x110
call fcn.10175fd0
mov eax, dword [0x1024ee80]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebp
mov ebp, dword [esp + 0x11c]
push edi
mov edi, dword [esp + 0x11c]
cmp edi, 0x3f
ja 0x1008857d
push esi
mov esi, dword [esp + 0x128]
mov eax, esi
or eax, dword [esp + 0x12c]
jne 0x100884f1
pop esi
pop edi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.10175bf0
add esp, 0x110
ret
push 0
call fcn.1017f49c
add esp, 4
cmp dword [esp + 0x12c], edx
jg 0x10088524
jl 0x1008850a
cmp esi, eax
jae 0x10088524
pop esi
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.10175bf0
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]
pop esi
pop edi
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.10175bf0
add esp, 0x110
ret
mov ecx, dword [esp + 0x114]
or eax, 0xffffffff
pop edi
pop ebp
xor ecx, esp
call fcn.10175bf0
add esp, 0x110
ret
Function at 0x100890f0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x230
call fcn.10175fd0
mov eax, dword [0x1024ee80]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x10250078], 0
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x10088af0
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x10088ea0
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], 0x10088aa0
jne 0x1008924b
push 0x104
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10089241
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.101808be
push str.ws2_32
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.10180918
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 0x100891bf
push str.getaddrinfo
push edi
call ebx
test eax, eax
jne 0x10089206
push edi
call ebp
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.101808be
push str.wship6
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.10180918
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call esi
mov edi, eax
test edi, edi
je 0x1008923d
push str.getaddrinfo
push edi
call ebx
test eax, eax
je 0x1008923a
xor esi, esi
push dword [esp + esi*8 + 0x10]
push edi
call ebx
mov dword [esp + esi*8 + 0x14], eax
test eax, eax
je 0x1008923a
inc esi
cmp esi, 3
jl 0x10089208
mov eax, dword [esp + 0x14]
mov dword [0x1024d48c], eax
mov eax, dword [esp + 0x1c]
mov dword [0x1024d494], eax
mov eax, dword [esp + 0x24]
mov dword [0x1024d49c], eax
jmp 0x1008923d
push edi
call ebp
pop edi
pop esi
pop ebp
pop ebx
mov dword [0x10250078], 1
movzx eax, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
mov eax, dword [eax*8 + 0x1024d48c]
call fcn.10175bf0
add esp, 0x230
ret 4
Function at 0x10089280
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x820
call fcn.10175fd0
mov eax, dword [0x1024ee80]
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.101778a0
push 0x400
lea eax, [esp + 0x439]
mov byte [esp + 0x438], 0
push 0
push eax
call fcn.101778a0
push 0x400
push esi
lea eax, [esp + 0x44]
push 0x401
push eax
mov dword [esp + 0x3c], eax
lea ebp, [esp + 0x450]
call fcn.10180a32
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 0x1008945f
cmp word [ebx + 8], 2
jne 0x10089382
cmp word [ebx + 0xa], 4
jne 0x10089382
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x10089382
nop dword [eax]
nop dword [eax + eax]
push dword [eax]
push dword [esp + 0x844]
push dword [esp + 0x844]
push dword [esp + 0x844]
call fcn.100894b0
mov dword [edi], eax
test eax, eax
je 0x10089458
add esi, 4
lea edi, [eax + 0x1c]
mov eax, dword [esi]
test eax, eax
jne 0x10089350
push 0x400
push dword [ebx]
push 0x401
push ebp
call fcn.10180a32
mov ebx, dword [esp + 0x28]
xor esi, esi
add esp, 0x10
cmp dword [ebx], esi
jne 0x1008940f
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100893a6
sub ecx, edx
je case.0x1008946f.11003
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov eax, edi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100893e0
test dl, dl
je 0x100893dc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100893e0
add eax, 2
add ecx, 2
test dl, dl
jne 0x100893c0
xor eax, eax
jmp 0x100893e5
sbb eax, eax
or eax, 1
test eax, eax
je case.0x1008946f.11003
mov esi, dword [esp + 0x10]
inc esi
mov dword [esp + 0x10], esi
cmp esi, 0x10
je case.0x1008946f.11003
mov esi, dword [esp + 0x1c]
mov eax, edi
mov dword [esp + 0x14], ebp
mov ebp, eax
jmp 0x10089310
mov esi, 0x2afb
jmp 0x10089482
cmp dword [esp + 0x844], esi
je 0x10089482
mov ecx, ebp
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10089420
sub ecx, edx
lea ebx, [ecx + 1]
push ebx
push 1
call fcn.10180a3d
mov edi, eax
add esp, 8
test edi, edi
je 0x10089448
push ebp
push ebx
push edi
call fcn.101808be
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 0x10089482
mov esi, 8
jmp 0x10089482
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x1008946f.11001
jmp dword [eax*4 + 0x100894a0]
mov esi, 0x2afa
jmp 0x10089482
mov esi, 0x2af9
mov ecx, dword [esp + 0x82c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10175bf0
add esp, 0x820
ret 0x18
Function at 0x1008f4b0
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.100d44d0
push 0x62
push edi
mov ebx, eax
call fcn.10177c60
add esp, 0x10
neg eax
sbb esi, esi
and esi, 0xfffffff0
add esi, 0x11
test ebx, ebx
jne 0x1008f562
call fcn.10055e90
push str.BIO_new_file
push 0x43
push str.crypto_bio_bss_file.c
call fcn.10055f90
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.10056040
add esp, 0x14
call fcn.10182282
cmp dword [eax], 2
je 0x1008f532
call fcn.10182282
cmp dword [eax], 6
je 0x1008f532
mov esi, 0x80002
lea edi, [ebx + 0x4d]
jmp 0x1008f53a
mov esi, 0x80
lea edi, [esi - 0x35]
call fcn.10055e90
push str.BIO_new_file
push edi
push str.crypto_bio_bss_file.c
call fcn.10055f90
push 0
push esi
push 0x20
call fcn.10056040
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x101b52a8
call fcn.1005dc70
mov edi, eax
add esp, 4
test edi, edi
jne 0x1008f584
push ebx
call fcn.10180e6c
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push edi
call fcn.1005d540
push ebx
push esi
push 0x6a
push edi
call fcn.1005d570
add esp, 0x18
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x100a1840
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 0x100a1919
mov esi, dword [esp + 0x10]
test esi, esi
je 0x100a18ce
push esi
push 0
lea eax, [esp + 0x28]
push eax
push 0
call fcn.1009f660
add esp, 0x10
cmp dword [esp + 0x20], 0xffffffff
je 0x100a18a2
call fcn.10055e90
push str.ossl_ecx_key_op
push 0xaa
push str.cryptoececx_backend.c
call fcn.10055f90
push 0
push 0x66
push 0x10
call fcn.10056040
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.1004eed0
add esp, 4
test esi, esi
jne 0x100a18b9
mov esi, eax
jmp 0x100a18d2
cmp esi, eax
je 0x100a18d2
call fcn.10055e90
push str.ossl_ecx_key_op
push 0xb0
jmp 0x100a1884
mov esi, dword [esp + 0x1c]
test edi, edi
je 0x100a1905
test esi, esi
je 0x100a1905
cmp esi, 0x40a
je 0x100a18fa
cmp esi, 0x43f
je 0x100a18fa
xor eax, eax
cmp esi, 0x40b
setne al
add eax, 0x38
jmp 0x100a18ff
mov eax, 0x20
cmp dword [esp + 0x18], eax
je 0x100a191d
call fcn.10055e90
push str.ossl_ecx_key_op
push 0xb6
jmp 0x100a1884
mov esi, dword [esp + 0x1c]
cmp esi, 0x40a
je 0x100a1941
cmp esi, 0x43f
je 0x100a1941
xor eax, eax
cmp esi, 0x40b
setne al
lea eax, [eax*2 + 1]
jmp 0x100a1951
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.10095760
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x100a199b
call fcn.10055e90
push str.ossl_ecx_key_op
push 0xbd
push str.cryptoececx_backend.c
call fcn.10055f90
push ebx
push 0xc0100
push 0x10
call fcn.10056040
add esp, 0x18
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
test ebp, ebp
jne 0x100a19b7
push dword [esp + 0x1c]
lea eax, [ebx + 0xc]
push edi
push eax
call fcn.10177320
add esp, 0xc
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
ret
push ebx
call fcn.100956e0
mov edi, eax
add esp, 4
test edi, edi
jne 0x100a19ea
call fcn.10055e90
push str.ossl_ecx_key_op
push 0xc7
push str.cryptoececx_backend.c
call fcn.10055f90
push edi
push 0xc0100
jmp 0x100a1ac0
cmp ebp, 2
jne 0x100a1a5c
test esi, esi
je 0x100a1a8f
cmp esi, 0x40a
je 0x100a1a17
cmp esi, 0x43f
je 0x100a1a17
xor eax, eax
cmp esi, 0x40b
setne al
add eax, 0x38
jmp 0x100a1a1c
mov eax, 0x20
push 0
push eax
push edi
push dword [esp + 0x34]
call fcn.1007f550
add esp, 0x10
test eax, eax
jle 0x100a1aca
cmp esi, 0x40a
jne 0x100a1a4b
mov al, byte [edi + 0x1f]
and byte [edi], 0xf8
and al, 0x3f
or al, 0x40
mov byte [edi + 0x1f], al
jmp 0x100a1a8f
cmp esi, 0x40b
jne 0x100a1a8f
and byte [edi], 0xfc
or byte [edi + 0x37], 0x80
jmp 0x100a1a8f
cmp esi, 0x40a
je 0x100a1a7c
cmp esi, 0x43f
je 0x100a1a7c
xor eax, eax
cmp esi, 0x40b
setne al
add eax, 0x38
jmp 0x100a1a81
mov eax, 0x20
push eax
push dword [esp + 0x1c]
push edi
call fcn.10177320
add esp, 0xc
push ebx
call fcn.100a1ae0
add esp, 4
test eax, eax
jne 0x100a19b0
call fcn.10055e90
push str.ossl_ecx_key_op
push 0xdb
push str.cryptoececx_backend.c
call fcn.10055f90
push 0
push 0xa6
push 0x10
call fcn.10056040
add esp, 0x18
push ebx
call fcn.10095700
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x100a64a0
Capabilities:
Encrypt data using curve25519

Disassembly:
mov eax, 0xe4
call fcn.10175fd0
mov eax, dword [0x1024ee80]
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.1004c8e0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x100a6522
push 0
push edi
push 0
lea eax, [esp + 0xb8]
push eax
push 0x20
push esi
call fcn.1004bdb0
push edi
mov esi, eax
call fcn.1004c910
add esp, 0x1c
test esi, esi
jne 0x100a653c
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.10175bf0
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.100a5ce0
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.100a5c60
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.10175bf0
add esp, 0xe4
ret