joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48e010
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0048df80

Function at 0x4966f0
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0xf0000040
push 1
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x496722
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x8003
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop esi
pop ebp
ret

Function at 0x496890
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x4968c3
push 0x2e
push edi
call fcn.005bb820
add esp, 8
test eax, eax
je 0x4968c1
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x497cb0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x673010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push edi
mov edi, dword [ebp + 0x10]
push 0xf0000040
push 1
push 0
push 0
push eax
mov dword [ebp - 0x20], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x497d42
lea eax, [ebp - 0xc]
mov dword [ebp - 0x18], 0x208
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0x6601
push edi
movlpd qword [ebp - 0xc], xmm0
mov dword [ebp - 0x10], 8
call fcn.00497da0
lea eax, [ebp - 0xc]
push 8
push eax
call fcn.00499290
add esp, 0x10
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0x14
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x497d54
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045bfb6
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push dword [ebp - 0x20]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push eax
push esi
push 0
push 0
push 0
push dword [ebp - 0x24]
mov dword [esi], ecx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0045bfb6
mov esp, ebp
pop ebp
ret

Function at 0x498370
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0xf0000040
push 0x18
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4983a2
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x800c
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop esi
pop ebp
ret
Function at 0x499120
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x673064]
mov esi, eax
add esp, 4
test esi, esi
jne 0x49914d
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esi + 0xc]
mov dword [esi], ebx
mov dword [esi + 4], ecx
mov eax, dword [ebx + 0xc]
add eax, ecx
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10]
push edi
lea edi, [ebx + 4]
cmp eax, dword [ebx + 0x10]
jbe 0x499198
mov eax, dword [ebx]
push ecx
call eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push dword [ebp + 0xc]
push dword [esi + 4]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebx + 0xc]
push dword [esi + 4]
mov dword [ebp - 8], eax
push eax
mov eax, dword [ebx + 8]
call eax
mov eax, dword [ebx + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], eax
jmp 0x49919e
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
push dword [esi + 4]
mov eax, dword [ebx]
call eax
push dword [esi + 8]
mov eax, dword [ebx]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4991f9
mov ebx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
nop
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x4991c0
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
cmp ebx, dword [eax + 0x10]
jae 0x499229
mov eax, dword [edi]
push 1
push 0x5f19fd
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x5f19fe
push dword [esi + 8]
call eax
mov eax, dword [ebp + 8]
inc ebx
add esp, 0x18
cmp ebx, dword [eax + 0x10]
jb 0x499201
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x499290
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
je 0x4992dd
push ebx
mov ebx, dword [ebp + 8]
mov cl, byte [esi + ebx]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [esi + ebx], cl
inc esi
cmp esi, edi
jb 0x4992a2
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x499330
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf0000040
push 1
push 0
push 0
lea edi, [esi + 4]
mov dword [esi], 0
push esi
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x49936f
push edi
push 0
push 0
push 0x8002
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop edi
pop esi
pop ebp
ret
Function at 0x4a75c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
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 + 0xc], 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 ecx, dword [esp + 0x18]
test ecx, ecx
jle 0x4a76e6
push esi
push edi
cmp ecx, 4
jb 0x4a76c0
mov edx, dword [ebp]
lea edi, [ecx - 1]
mov esi, dword [ebx]
lea ebp, [ecx - 1]
lea ebp, [edx + ebp*4]
cmp esi, ebp
lea edi, [esi + edi*4]
mov ebp, dword [esp + 0x18]
ja 0x4a7658
cmp edi, edx
jae 0x4a76c0
cmp esi, ebx
ja 0x4a7660
cmp edi, ebx
jae 0x4a76c0
cmp esi, ebp
ja 0x4a7668
cmp edi, ebp
jae 0x4a76c0
lea edi, [ecx - 1]
lea edi, [edx + edi*4]
cmp edx, ebx
ja 0x4a7676
cmp edi, ebx
jae 0x4a76c0
cmp edx, ebp
ja 0x4a767e
cmp edi, ebp
jae 0x4a76c0
mov edi, ecx
and edi, 0xfffffffc
movups xmm3, xmmword [esi + eax*4]
movups xmm2, xmmword [edx + eax*4]
movaps xmm1, xmm3
pxor xmm1, xmm2
pand xmm1, xmm4
movaps xmm0, xmm1
pxor xmm1, xmm3
pxor xmm0, xmm2
movups xmmword [edx + eax*4], xmm0
movups xmmword [esi + eax*4], xmm1
add eax, 4
cmp eax, edi
jl 0x4a7683
mov dword [esp + 0x18], eax
cmp eax, ecx
jge 0x4a76e4
nop dword [eax + eax]
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 0x4a76c0
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4b6a40
Capabilities:
Initialize winsock library

Disassembly:
cmp dword [0x723cd0], 0
jne 0x4b6ad9
push 0x190
push 0
push 0x723cd8
mov dword [0x723cd0], 1
call fcn.005bbf50
add esp, 0xc
push 0x723cd8
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4b6ad9
call fcn.004ade90
push str.BIO_sock_init
push 0x94
push str.crypto_bio_bio_sock.c
call fcn.004adf90
add esp, 0xc
push str.calling_wsastartup__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.004ae040
call fcn.004ade90
push str.BIO_sock_init
push 0x96
push str.crypto_bio_bio_sock.c
call fcn.004adf90
push 0
push 0x7a
push 0x20
call fcn.004ae040
add esp, 0x24
or eax, 0xffffffff
ret
mov eax, 1
ret
Function at 0x4b6ae0
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 0x4b6b35
call fcn.004ade90
push str.BIO_socket_ioctl
push 0xd1
push str.crypto_bio_bio_sock.c
call fcn.004adf90
add esp, 0xc
push str.calling_ioctlsocket__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.004ae040
add esp, 0xc
xor eax, eax
test esi, esi
pop esi
sete al
ret

Function at 0x4b6b40
Capabilities:
Get socket status

Disassembly:
mov eax, 0x110
call fcn.0045cf80
mov eax, dword [0x673010]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
mov ebx, dword [esp + 0x11c]
push edi
mov edi, dword [esp + 0x11c]
cmp edi, 0x3f
ja 0x4b6c19
push esi
mov esi, dword [esp + 0x128]
test esi, esi
jne 0x4b6b98
lea eax, [esi + 1]
pop esi
pop edi
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0045bfb6
add esp, 0x110
ret
push 0
call fcn.005ceac9
add esp, 4
cmp esi, eax
jge 0x4b6bc0
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0045bfb6
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]
pop esi
pop edi
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0045bfb6
add esp, 0x110
ret
mov ecx, dword [esp + 0x114]
or eax, 0xffffffff
pop edi
pop ebx
xor ecx, esp
call fcn.0045bfb6
add esp, 0x110
ret
Function at 0x4b77a0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x230
call fcn.0045cf80
mov eax, dword [0x673010]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x723e70], 0
mov dword [esp], 0x60a3f8
mov dword [esp + 4], 0x4b7190
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x4b7550
mov dword [esp + 0x10], 0x60a410
mov dword [esp + 0x14], 0x4b7140
jne 0x4b78fb
push 0x104
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4b78f1
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.005d1892
push str.ws2_32
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.005d18ec
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 0x4b786f
push 0x60a3f8
push edi
call ebx
test eax, eax
jne 0x4b78b6
push edi
call ebp
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.005d1892
push str.wship6
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.005d18ec
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call esi
mov edi, eax
test edi, edi
je 0x4b78ed
push 0x60a3f8
push edi
call ebx
test eax, eax
je 0x4b78ea
xor esi, esi
push dword [esp + esi*8 + 0x10]
push edi
call ebx
mov dword [esp + esi*8 + 0x14], eax
test eax, eax
je 0x4b78ea
inc esi
cmp esi, 3
jl 0x4b78b8
mov eax, dword [esp + 0x14]
mov dword [0x673388], eax
mov eax, dword [esp + 0x1c]
mov dword [0x673390], eax
mov eax, dword [esp + 0x24]
mov dword [0x673398], eax
jmp 0x4b78ed
push edi
call ebp
pop edi
pop esi
pop ebp
pop ebx
mov dword [0x723e70], 1
movzx eax, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
mov eax, dword [eax*8 + 0x673388]
call fcn.0045bfb6
add esp, 0x230
ret 4
Function at 0x4b7930
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x820
call fcn.0045cf80
mov eax, dword [0x673010]
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.005bbf50
push 0x401
lea eax, [esp + 0x438]
push 0
push eax
call fcn.005bbf50
push 0x400
push esi
lea eax, [esp + 0x44]
push 0x401
push eax
mov dword [esp + 0x3c], eax
lea ebp, [esp + 0x450]
call fcn.005d1a06
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 0x4b7aff
cmp word [ebx + 8], 2
jne 0x4b7a22
cmp word [ebx + 0xa], 4
jne 0x4b7a22
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x4b7a22
nop word [eax + eax]
push dword [eax]
push dword [esp + 0x844]
push dword [esp + 0x844]
push dword [esp + 0x844]
call fcn.004b7b60
mov dword [edi], eax
test eax, eax
je 0x4b7af8
add esi, 4
lea edi, [eax + 0x1c]
mov eax, dword [esi]
test eax, eax
jne 0x4b79f0
push 0x400
push dword [ebx]
push 0x401
push ebp
call fcn.005d1a06
mov ebx, dword [esp + 0x28]
xor esi, esi
add esp, 0x10
cmp dword [ebx], esi
jne 0x4b7ab0
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b7a46
sub ecx, edx
je case.0x4b7b0f.11003
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov eax, edi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4b7a80
test dl, dl
je 0x4b7a7c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4b7a80
add eax, 2
add ecx, 2
test dl, dl
jne 0x4b7a60
xor eax, eax
jmp 0x4b7a85
sbb eax, eax
or eax, 1
test eax, eax
je case.0x4b7b0f.11003
mov esi, dword [esp + 0x10]
inc esi
mov dword [esp + 0x10], esi
cmp esi, 0x10
je case.0x4b7b0f.11003
mov esi, dword [esp + 0x1c]
mov eax, edi
mov dword [esp + 0x14], ebp
mov ebp, eax
jmp 0x4b79b2
cmp dword [esp + 0x844], esi
je 0x4b7b29
mov ecx, ebp
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b7ac0
sub ecx, edx
lea ebx, [ecx + 1]
push ebx
push 1
call fcn.005c6574
mov edi, eax
add esp, 8
test edi, edi
je 0x4b7ae8
push ebp
push ebx
push edi
call fcn.005d1892
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 0x4b7b29
mov esi, 8
jmp 0x4b7b29
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x4b7b0f.11001
jmp dword [eax*4 + 0x4b7b48]
mov esi, 0x2afa
jmp 0x4b7b29
mov esi, 0x2afb
jmp 0x4b7b29
mov esi, 0x2af9
mov ecx, dword [esp + 0x82c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045bfb6
add esp, 0x820
ret 0x18
Function at 0x4b8420
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.00502270
push 0x62
push esi
mov edi, eax
mov ebx, 1
call fcn.005bb820
add esp, 0x10
mov ecx, 0x11
test eax, eax
cmove ebx, ecx
test edi, edi
jne 0x4b84d9
call fcn.004ade90
push str.BIO_new_file
push 0x43
push str.crypto_bio_bss_file.c
call fcn.004adf90
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.004ae040
add esp, 0x14
call fcn.005c667b
cmp dword [eax], 2
je 0x4b84a9
call fcn.005c667b
cmp dword [eax], 6
je 0x4b84a9
mov esi, 0x80002
mov edi, 0x4d
jmp 0x4b84b1
mov esi, 0x80
lea edi, [esi - 0x35]
call fcn.004ade90
push str.BIO_new_file
push edi
push str.crypto_bio_bss_file.c
call fcn.004adf90
push 0
push esi
push 0x20
call fcn.004ae040
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x60a47c
call fcn.0049c0c0
mov esi, eax
add esp, 4
test esi, esi
jne 0x4b84fb
push edi
call fcn.005c4c8c
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push esi
call fcn.0049b990
push edi
push ebx
push 0x6a
push esi
call fcn.0049b9c0
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x4dce30
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa0
call fcn.0045cf80
mov eax, dword [0x673010]
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.004fffb0
push ebp
push 0
push ebx
mov dword [esp + 0x2c], eax
call fcn.0052b4d0
add esp, 0x10
test eax, eax
je 0x4dd021
mov ebx, dword [esp + 0xcc]
inc ebp
test ebx, ebx
mov ebx, dword [esp + 0x10]
je 0x4dcee4
push 0
push esi
push ebx
push dword [esp + 0x28]
call fcn.004d00a0
add esp, 0x10
test eax, eax
jle 0x4dd022
push esi
push ebx
push edi
call fcn.005bb9c0
push esi
lea eax, [esp + 0x7c]
push ebx
push eax
call fcn.005bb9c0
lea eax, [esi - 1]
add esp, 0x18
test eax, eax
js 0x4dcf0d
add byte [edi + eax], 1
jne 0x4dcf0d
sub eax, 1
jns 0x4dcf02
push 0
push dword [esp + 0x18]
lea eax, [esp + 0x34]
push 0
push eax
push esi
push ebx
call fcn.004bab40
add esp, 0x18
test eax, eax
je 0x4dd022
push 0
push dword [esp + 0x18]
lea eax, [esp + 0x74]
push 0
push eax
push esi
push edi
call fcn.004bab40
add esp, 0x18
test eax, eax
je 0x4dd022
xor eax, eax
test esi, esi
jle 0x4dcfcd
cmp esi, 0x40
jb 0x4dcfc0
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 0x4dcf60
cmp eax, esi
jge 0x4dcfcd
nop dword [eax]
mov cl, byte [esp + eax + 0x6c]
xor byte [esp + eax + 0x2c], cl
inc eax
cmp eax, esi
jl 0x4dcfc0
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.004a7260
add esp, 0xc
test eax, eax
je 0x4dd022
push dword [esp + 0x18]
push dword [esp + 0x28]
push ebx
call fcn.0052b520
add esp, 0xc
test eax, eax
jg 0x4dd043
jne 0x4dd022
push ebp
push 0
push dword [esp + 0x20]
mov ebx, 1
call fcn.0052b4d0
add esp, 0xc
test eax, eax
jne 0x4dcec3
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.0045bfb6
add esp, 0xa0
ret
mov eax, 1
jmp 0x4dd024
Function at 0x4e32f0
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 0x4e33c9
mov esi, dword [esp + 0x10]
test esi, esi
je 0x4e337e
push esi
push 0
lea eax, [esp + 0x28]
push eax
push 0
call fcn.004e2210
add esp, 0x10
cmp dword [esp + 0x20], 0xffffffff
je 0x4e3352
call fcn.004ade90
push str.ossl_ecx_key_op
push 0xaa
push str.cryptoececx_backend.c
call fcn.004adf90
push 0
push 0x66
push 0x10
call fcn.004ae040
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.004aa270
add esp, 4
test esi, esi
jne 0x4e3369
mov esi, eax
jmp 0x4e3382
cmp esi, eax
je 0x4e3382
call fcn.004ade90
push str.ossl_ecx_key_op
push 0xb0
jmp 0x4e3334
mov esi, dword [esp + 0x1c]
test edi, edi
je 0x4e33b5
test esi, esi
je 0x4e33b5
cmp esi, 0x40a
je 0x4e33aa
cmp esi, 0x43f
je 0x4e33aa
xor eax, eax
cmp esi, 0x40b
setne al
add eax, 0x38
jmp 0x4e33af
mov eax, 0x20
cmp dword [esp + 0x18], eax
je 0x4e33cd
call fcn.004ade90
push str.ossl_ecx_key_op
push 0xb6
jmp 0x4e3334
mov esi, dword [esp + 0x1c]
cmp esi, 0x40a
je 0x4e33f1
cmp esi, 0x43f
je 0x4e33f1
xor eax, eax
cmp esi, 0x40b
setne al
lea eax, [eax*2 + 1]
jmp 0x4e3401
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.004c4310
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x4e344b
call fcn.004ade90
push str.ossl_ecx_key_op
push 0xbd
push str.cryptoececx_backend.c
call fcn.004adf90
push ebx
push 0xc0100
push 0x10
call fcn.004ae040
add esp, 0x18
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
test ebp, ebp
jne 0x4e3467
push dword [esp + 0x1c]
lea eax, [ebx + 0xc]
push edi
push eax
call fcn.005bb9c0
add esp, 0xc
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
ret
push ebx
call fcn.004c4290
mov edi, eax
add esp, 4
test edi, edi
jne 0x4e349a
call fcn.004ade90
push str.ossl_ecx_key_op
push 0xc7
push str.cryptoececx_backend.c
call fcn.004adf90
push edi
push 0xc0100
jmp 0x4e3570
cmp ebp, 2
jne 0x4e350c
test esi, esi
je 0x4e353f
cmp esi, 0x40a
je 0x4e34c7
cmp esi, 0x43f
je 0x4e34c7
xor eax, eax
cmp esi, 0x40b
setne al
add eax, 0x38
jmp 0x4e34cc
mov eax, 0x20
push 0
push eax
push edi
push dword [esp + 0x34]
call fcn.004d0580
add esp, 0x10
test eax, eax
jle 0x4e357a
cmp esi, 0x40a
jne 0x4e34fb
mov al, byte [edi + 0x1f]
and byte [edi], 0xf8
and al, 0x3f
or al, 0x40
mov byte [edi + 0x1f], al
jmp 0x4e353f
cmp esi, 0x40b
jne 0x4e353f
and byte [edi], 0xfc
or byte [edi + 0x37], 0x80
jmp 0x4e353f
cmp esi, 0x40a
je 0x4e352c
cmp esi, 0x43f
je 0x4e352c
xor eax, eax
cmp esi, 0x40b
setne al
add eax, 0x38
jmp 0x4e3531
mov eax, 0x20
push eax
push dword [esp + 0x1c]
push edi
call fcn.005bb9c0
add esp, 0xc
push ebx
call fcn.004e3590
add esp, 4
test eax, eax
jne 0x4e3460
call fcn.004ade90
push str.ossl_ecx_key_op
push 0xdb
push str.cryptoececx_backend.c
call fcn.004adf90
push 0
push 0xa6
push 0x10
call fcn.004ae040
add esp, 0x18
push ebx
call fcn.004c42b0
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x4e7f50
Capabilities:
Encrypt data using curve25519

Disassembly:
mov eax, 0xe4
call fcn.0045cf80
mov eax, dword [0x673010]
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.004bb660
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4e7fd2
push 0
push edi
push 0
lea eax, [esp + 0xb8]
push eax
push 0x20
push esi
call fcn.004bab40
push edi
mov esi, eax
call fcn.004bb690
add esp, 0x1c
test esi, esi
jne 0x4e7fec
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.0045bfb6
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.004e7790
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.004e7710
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.0045bfb6
add esp, 0xe4
ret