joyce8/EMBER2024-capa huggingface dataset:
Function at 0x473150
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.004b6260
push 0x62
push edi
mov ebx, eax
call fcn.005b5990
add esp, 0x10
neg eax
sbb esi, esi
and esi, 0xfffffff0
add esi, 0x11
test ebx, ebx
jne 0x473202
call fcn.00471c50
push str.BIO_new_file
push 0x43
push str.crypto_bio_bss_file.c
call fcn.00471d50
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.00471e60
add esp, 0x14
call fcn.005bf31b
cmp dword [eax], 2
je 0x4731d2
call fcn.005bf31b
cmp dword [eax], 6
je 0x4731d2
mov esi, 0x80002
lea edi, [ebx + 0x4d]
jmp 0x4731da
mov esi, 0x80
lea edi, [esi - 0x35]
call fcn.00471c50
push str.BIO_new_file
push edi
push str.crypto_bio_bss_file.c
call fcn.00471d50
push 0
push esi
push 0x20
call fcn.00471e60
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x5e2964
call fcn.00464d90
mov edi, eax
add esp, 4
test edi, edi
jne 0x473224
push ebx
call fcn.005bd2ac
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x8000
push edi
call fcn.00464640
push ebx
push esi
push 0x6a
push edi
call fcn.00464670
add esp, 0x18
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x489830
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 4
call fcn.0059eec0
push edi
mov edi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
test edi, edi
je 0x4898b0
mov cl, byte [edi]
test cl, cl
je 0x4898b0
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 0x489860
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 0x489930
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 4
call fcn.0059eec0
push edi
mov edi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
test edi, edi
je 0x4899b3
mov cl, byte [edi]
test cl, cl
je 0x4899b3
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 0x489960
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 0x48a000
Capabilities:
Initialize winsock library

Disassembly:
cmp dword [0x6723b8], 0
jne 0x48a099
push 0x190
push 0
push 0x6723c0
mov dword [0x6723b8], 1
call fcn.005b6630
add esp, 0xc
push 0x6723c0
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x48a099
call fcn.00471c50
push str.BIO_sock_init
push 0x99
push str.crypto_bio_bio_sock.c
call fcn.00471d50
add esp, 0xc
push str.calling_wsastartup__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00471e60
call fcn.00471c50
push str.BIO_sock_init
push 0x9b
push str.crypto_bio_bio_sock.c
call fcn.00471d50
push 0
push 0x7a
push 0x20
call fcn.00471e60
add esp, 0x24
or eax, 0xffffffff
ret
mov eax, 1
ret

Function at 0x48a0a0
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 0x48a0f5
call fcn.00471c50
push str.BIO_socket_ioctl
push 0xf7
push str.crypto_bio_bio_sock.c
call fcn.00471d50
add esp, 0xc
push str.calling_ioctlsocket__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00471e60
add esp, 0xc
xor eax, eax
test esi, esi
pop esi
sete al
ret
Function at 0x48a100
Capabilities:
Get socket status

Disassembly:
mov eax, 0x110
call fcn.0059eec0
mov eax, dword [0x66ea60]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
mov ebx, dword [esp + 0x11c]
push edi
mov edi, dword [esp + 0x11c]
cmp edi, 0xffffffff
jne 0x48a146
or eax, edi
pop edi
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0059e5bd
add esp, 0x110
ret
push esi
mov esi, dword [esp + 0x128]
test esi, esi
jne 0x48a16d
lea eax, [esi + 1]
pop esi
pop edi
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0059e5bd
add esp, 0x110
ret
push 0
call fcn.005c2994
add esp, 4
cmp esi, eax
jge 0x48a195
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0059e5bd
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 ebx, ebx
mov dword [esp + 0x10], esi
push 0
lea eax, [esp + 0x1c]
cmovne eax, ecx
test ebx, ebx
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 ebx
xor ecx, esp
call fcn.0059e5bd
add esp, 0x110
ret
Function at 0x48ad70
Capabilities:
Get common file path

Disassembly:
mov eax, 0x230
call fcn.0059eec0
mov eax, dword [0x66ea60]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x672558], 0
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x48a770
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x48ab20
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], 0x48a720
jne 0x48aed6
push 0x104
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x48aecc
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.005c39ac
push str.ws2_32
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.005bdd46
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 0x48ae3f
push str.getaddrinfo
push edi
call ebx
test eax, eax
jne 0x48ae86
push edi
call ebp
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.005c39ac
push str.wship6
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.005bdd46
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call esi
mov edi, eax
test edi, edi
je 0x48aec8
push str.getaddrinfo
push edi
call ebx
test eax, eax
je 0x48aec5
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 0x48aec5
inc esi
lea eax, [esp + 0x10]
cmp esi, 3
jl 0x48ae90
mov eax, dword [esp + 0x14]
mov dword [0x66c410], eax
mov eax, dword [esp + 0x1c]
mov dword [0x66c418], eax
mov eax, dword [esp + 0x24]
mov dword [0x66c420], eax
jmp 0x48aec8
push edi
call ebp
pop edi
pop esi
pop ebp
pop ebx
mov dword [0x672558], 1
movzx eax, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
mov eax, dword [eax*8 + 0x66c410]
call fcn.0059e5bd
add esp, 0x230
ret 4
Function at 0x48af00
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x820
call fcn.0059eec0
mov eax, dword [0x66ea60]
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.005b6630
push 0x400
lea eax, [esp + 0x439]
mov byte [esp + 0x438], 0
push 0
push eax
call fcn.005b6630
push 0x400
push esi
lea eax, [esp + 0x44]
push 0x401
push eax
mov dword [esp + 0x3c], eax
lea ebp, [esp + 0x450]
call fcn.005c3ab7
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 0x48b0df
cmp word [ebx + 8], 2
jne 0x48b002
cmp word [ebx + 0xa], 4
jne 0x48b002
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x48b002
nop dword [eax]
nop dword [eax + eax]
push dword [eax]
push dword [esp + 0x844]
push dword [esp + 0x844]
push dword [esp + 0x844]
call fcn.0048b130
mov dword [edi], eax
test eax, eax
je 0x48b0d8
add esi, 4
lea edi, [eax + 0x1c]
mov eax, dword [esi]
test eax, eax
jne 0x48afd0
push 0x400
push dword [ebx]
push 0x401
push ebp
call fcn.005c3ab7
mov ebx, dword [esp + 0x28]
xor esi, esi
add esp, 0x10
cmp dword [ebx], esi
jne 0x48b08f
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x48b026
sub ecx, edx
je case.0x48b0ef.11003
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov eax, edi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x48b060
test dl, dl
je 0x48b05c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x48b060
add eax, 2
add ecx, 2
test dl, dl
jne 0x48b040
xor eax, eax
jmp 0x48b065
sbb eax, eax
or eax, 1
test eax, eax
je case.0x48b0ef.11003
mov esi, dword [esp + 0x10]
inc esi
mov dword [esp + 0x10], esi
cmp esi, 0x10
je case.0x48b0ef.11003
mov esi, dword [esp + 0x1c]
mov eax, edi
mov dword [esp + 0x14], ebp
mov ebp, eax
jmp 0x48af90
mov esi, 0x2afb
jmp 0x48b102
cmp dword [esp + 0x844], esi
je 0x48b102
mov ecx, ebp
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x48b0a0
sub ecx, edx
lea ebx, [ecx + 1]
push ebx
push 1
call fcn.005be683
mov edi, eax
add esp, 8
test edi, edi
je 0x48b0c8
push ebp
push ebx
push edi
call fcn.005c39ac
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 0x48b102
mov esi, 8
jmp 0x48b102
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x48b0ef.11001
jmp dword [eax*4 + 0x48b120]
mov esi, 0x2afa
jmp 0x48b102
mov esi, 0x2af9
mov ecx, dword [esp + 0x82c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0059e5bd
add esp, 0x820
ret 0x18
Function at 0x48ce00
Capabilities:
Generate random numbers via winapi

Disassembly:
mov eax, 4
call fcn.0059eec0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push 1
push esi
call fcn.0048cad0
mov ebx, eax
push ebx
push esi
call fcn.0048c9e0
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x48ce7f
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 0x48ce63
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.0048ca70
push esi
call fcn.0048cbc0
add esp, 0x10
test eax, eax
jne 0x48cef9
push 1
push esi
call fcn.0048cad0
mov ebx, eax
push ebx
push esi
call fcn.0048c9e0
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x48cef0
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 0x48ced4
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.0048ca70
push esi
call fcn.0048cbc0
add esp, 0x10
test eax, eax
jne 0x48cef9
push esi
call fcn.0048cbc0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4a5600
Capabilities:
Encode data using base64

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
xor ebp, ebp
push esi
test eax, eax
je 0x4a5618
test byte [eax + 0x5c], 2
mov ebx, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz._
jne 0x4a561d
mov ebx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov esi, dword [esp + 0x1c]
test esi, esi
jle 0x4a56f5
mov edx, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
inc edi
movzx eax, byte [edi - 1]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
cmp esi, 3
jb 0x4a5689
movzx ecx, byte [edi]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 1]
shl eax, 8
or eax, ecx
mov ecx, eax
shr ecx, 0x12
movzx ecx, byte [ecx + ebx]
mov byte [edx], cl
mov ecx, eax
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + ebx]
mov byte [edx + 1], cl
mov ecx, eax
shr ecx, 6
and ecx, 0x3f
and eax, 0x3f
movzx ecx, byte [ecx + ebx]
mov byte [edx + 2], cl
mov cl, byte [eax + ebx]
lea eax, [edx + 3]
jmp 0x4a56d5
shl eax, 0x10
cmp esi, 2
jne 0x4a5699
movzx ecx, byte [edi]
shl ecx, 8
or eax, ecx
mov ecx, eax
shr ecx, 0x12
movzx ecx, byte [ecx + ebx]
mov byte [edx], cl
mov ecx, eax
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + ebx]
mov byte [edx + 1], cl
cmp esi, 1
jne 0x4a56bc
mov al, 0x3d
jmp 0x4a56c5
shr eax, 6
and eax, 0x3f
mov al, byte [eax + ebx]
mov ecx, dword [esp + 0x18]
mov byte [ecx + 2], al
mov cl, 0x3d
mov eax, dword [esp + 0x14]
add eax, 3
sub esi, 3
mov byte [eax], cl
add ebp, 4
lea edx, [eax + 1]
add edi, 3
test esi, esi
jg 0x4a5633
pop edi
pop esi
mov eax, ebp
mov byte [edx], 0
pop ebp
pop ebx
ret
mov eax, dword [esp + 0x14]
pop esi
mov byte [eax], 0
mov eax, ebp
pop ebp
pop ebx
ret
Function at 0x4afc10
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x18], esi
jne 0x4afcd9
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
cmp al, 0x6a
je 0x4afc31
cmp al, 0x6b
jne 0x4afcd9
inc ecx
cmp al, 0x6b
jne 0x4afc92
add esi, 0xfffffffd
xor eax, eax
test esi, esi
jle 0x4afc52
nop
mov dl, byte [ecx]
inc ecx
cmp dl, 0xba
je 0x4afc52
cmp dl, 0xbb
jne 0x4afc66
inc eax
cmp eax, esi
jl 0x4afc40
sub esi, eax
test eax, eax
jne 0x4afc95
call fcn.00471c50
push str.RSA_padding_check_X931
push 0x56
jmp 0x4afc72
call fcn.00471c50
push str.RSA_padding_check_X931
push 0x4e
push str.crypto_rsa_rsa_x931.c
call fcn.00471d50
push 0
push 0x8a
push 4
call fcn.00471e60
add esp, 0x18
or eax, 0xffffffff
pop esi
ret
add esi, 0xfffffffe
cmp byte [esi + ecx], 0xcc
je 0x4afcc7
call fcn.00471c50
push str.RSA_padding_check_X931
push 0x5f
push str.crypto_rsa_rsa_x931.c
call fcn.00471d50
push 0
push 0x8b
push 4
call fcn.00471e60
add esp, 0x18
or eax, 0xffffffff
pop esi
ret
push esi
push ecx
push dword [esp + 0x10]
call fcn.005b5b30
add esp, 0xc
mov eax, esi
pop esi
ret
call fcn.00471c50
push str.RSA_padding_check_X931
push 0x43
push str.crypto_rsa_rsa_x931.c
call fcn.00471d50
push 0
push 0x89
push 4
call fcn.00471e60
add esp, 0x18
or eax, 0xffffffff
pop esi
ret
Function at 0x4b8a80
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 0x4b8ac2
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 0x4b8aa2
pop ebx
pop edi
pop esi
ret
Function at 0x4ce610
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov eax, 4
call fcn.0059eec0
push edi
mov edi, dword [esp + 0xc]
mov dword [esp + 4], 1
cmp edi, 0xffffffff
jne 0x4ce658
call fcn.00471c50
push str.BIO_connect
push 0x56
push str.crypto_bio_bio_sock2.c
call fcn.00471d50
push 0
push 0x87
push 0x20
call fcn.00471e60
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.0048a0a0
add esp, 8
test eax, eax
je 0x4ce6e7
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
test bl, 4
je 0x4ce6ee
push 4
lea eax, [esp + 0x10]
push eax
push 8
push 0xffff
push edi
call esi
test eax, eax
je 0x4ce6ee
call fcn.00471c50
push str.BIO_connect
push 0x60
push str.crypto_bio_bio_sock2.c
call fcn.00471d50
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00471e60
call fcn.00471c50
push str.BIO_connect
push 0x62
push str.crypto_bio_bio_sock2.c
call fcn.00471d50
push 0
push 0x89
push 0x20
call fcn.00471e60
add esp, 0x24
pop esi
pop ebx
xor eax, eax
pop edi
pop ecx
ret
test bl, 0x10
je 0x4ce75f
push 4
lea eax, [esp + 0x10]
push eax
push 1
push 6
push edi
call esi
test eax, eax
je 0x4ce75f
call fcn.00471c50
push str.BIO_connect
push 0x6a
push str.crypto_bio_bio_sock2.c
call fcn.00471d50
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00471e60
call fcn.00471c50
push str.BIO_connect
push 0x6c
push str.crypto_bio_bio_sock2.c
call fcn.00471d50
push 0
push 0x8a
push 0x20
call fcn.00471e60
add esp, 0x24
xor eax, eax
pop esi
pop ebx
pop edi
pop ecx
ret
mov esi, dword [esp + 0x18]
push esi
call fcn.0048a3b0
add esp, 4
push eax
push esi
call fcn.0048a3a0
add esp, 4
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4ce7f1
push eax
call fcn.004ce520
add esp, 4
test eax, eax
jne 0x4ce6e7
call fcn.00471c50
push str.BIO_connect
push 0xb2
push str.crypto_bio_bio_sock2.c
call fcn.00471d50
add esp, 0xc
push str.calling_connect__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00471e60
call fcn.00471c50
push str.BIO_connect
push 0xb4
push str.crypto_bio_bio_sock2.c
call fcn.00471d50
push 0
push 0x67
push 0x20
call fcn.00471e60
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 0x4e03d0
Capabilities:
Encrypt data using curve25519

Disassembly:
mov eax, 0xe4
call fcn.0059eec0
mov eax, dword [0x66ea60]
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.00492690
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4e0452
push 0
push edi
push 0
lea eax, [esp + 0xb8]
push eax
push 0x20
push esi
call fcn.00491a20
push edi
mov esi, eax
call fcn.004926c0
add esp, 0x1c
test esi, esi
jne 0x4e046c
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.0059e5bd
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.004dfb20
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.004dfaa0
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.0059e5bd
add esp, 0xe4
ret
Function at 0x4e7d40
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 0x4e7d8f
cmp edx, esi
jb 0x4e7d8f
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 0x4e7d70
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 0x4e7da0
pop esi
pop ebx
ret
Function at 0x4f2ca0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.0059eec0
mov eax, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x24]
push ebp
mov ebp, dword [eax + 0x64]
push esi
mov esi, dword [esp + 0x28]
push edi
mov ecx, dword [ebp + 0x70]
mov edi, dword [esp + 0x28]
mov dword [esp + 0x10], ebp
test ecx, ecx
je 0x4f2d09
test ebx, ebx
je 0x4f2ce9
lea edx, [ebp + 0x30]
add edx, ecx
cmp ecx, 0x40
jae 0x4f2ce9
mov al, byte [edx]
inc ecx
xor al, byte [esi]
inc edx
mov byte [edi], al
inc esi
inc edi
sub ebx, 1
jne 0x4f2cd5
mov dword [ebp + 0x70], ecx
test ebx, ebx
je 0x4f2dc4
cmp ecx, 0x40
jne 0x4f2d09
mov dword [ebp + 0x70], 0
add dword [ebp + 0x20], 1
jne 0x4f2d09
inc dword [ebp + 0x24]
mov edx, dword [ebp + 0x20]
mov eax, ebx
and eax, 0x3f
sub ebx, eax
mov dword [esp + 0x1c], eax
lea eax, [ebp + 0x20]
mov dword [esp + 0x24], eax
cmp ebx, 0x40
jb 0x4f2d77
push dword [esp + 0x24]
mov ecx, ebx
xor ebp, ebp
shr ecx, 6
lea eax, [ecx + edx]
cmp eax, ecx
cmovae ebp, eax
neg edx
cmp eax, ecx
mov dword [esp + 0x1c], ebp
mov ebp, dword [esp + 0x14]
cmovae edx, ecx
shl edx, 6
push ebp
push edx
push esi
push edi
mov dword [esp + 0x28], edx
call fcn.004378c0
mov eax, dword [esp + 0x28]
add esp, 0x14
sub ebx, eax
add esi, eax
add edi, eax
mov eax, dword [esp + 0x18]
mov dword [ebp + 0x20], eax
test eax, eax
jne 0x4f2d70
inc dword [ebp + 0x24]
mov edx, eax
cmp ebx, 0x40
jae 0x4f2d23
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x4f2dc4
push 0x40
lea eax, [ebp + 0x30]
push 0
push eax
call fcn.005b6630
lea eax, [ebp + 0x20]
push eax
push ebp
lea eax, [ebp + 0x30]
push 0x40
push eax
push eax
call fcn.004378c0
add esp, 0x20
xor edx, edx
test ebx, ebx
je 0x4f2dc1
sub esi, edi
nop dword [eax + eax]
mov al, byte [edx + ebp + 0x30]
lea ecx, [edx + edi]
xor al, byte [esi + ecx]
inc edx
mov byte [ecx], al
cmp edx, ebx
jb 0x4f2db0
mov dword [ebp + 0x70], ebx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret
Function at 0x4f50d0
Capabilities:
Hash data using sha1

Disassembly:
mov eax, 0x40
call fcn.0059eec0
mov eax, dword [0x66ea60]
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 0x4f510c
pop edi
mov eax, 0xfffffffe
pop esi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.0059e5bd
add esp, 0x40
ret
test esi, esi
je 0x4f521b
cmp dword [esp + 0x54], 0x30
jne 0x4f521b
push 0x30
push edi
push esi
call fcn.004f4fd0
add esp, 0xc
test eax, eax
jle 0x4f521b
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.004f4fd0
add esp, 0xc
test eax, eax
je 0x4f521b
lea eax, [esp + 0x30]
push esi
push eax
call fcn.004f4e30
add esp, 8
test eax, eax
je 0x4f521b
push 0x4c
lea eax, [esi + 0x14]
push 0
push eax
call fcn.005b6630
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.004f4fd0
add esp, 0x18
test eax, eax
jle 0x4f521b
movaps xmm0, xmmword [0x6000f0]
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.004f4fd0
add esp, 0xc
test eax, eax
je 0x4f521b
push 0x14
lea eax, [esp + 0x34]
push eax
push esi
call fcn.004f4fd0
add esp, 0xc
test eax, eax
je 0x4f521b
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.0059e5bd
add esp, 0x40
ret
mov ecx, dword [esp + 0x44]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.0059e5bd
add esp, 0x40
ret