joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4df2d0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x24
call fcn.005f62e0
push ebx
push esi
push edi
mov edi, dword [esp + 0x34]
xor ecx, ecx
push edi
mov dword [esp + 0x14], 0
xor ebx, ebx
mov dword [esp + 0x10], ecx
call fcn.004deb80
mov esi, eax
add esp, 4
lea eax, [esi + 7]
cdq
and edx, 7
lea ecx, [edx + eax]
sar ecx, 3
cmp dword [esp + 0x44], ebx
jne 0x4df341
mov ebx, dword [edi + 0xc]
mov eax, ebx
neg eax
sbb eax, eax
and eax, 0xff
mov dword [esp + 0x10], eax
lea eax, [ecx*8]
cmp eax, esi
jne 0x4df339
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 0xc], eax
jmp 0x4df343
mov eax, ebx
mov dword [esp + 0xc], eax
jmp 0x4df343
xor eax, eax
mov esi, dword [esp + 0x3c]
add eax, ecx
cmp esi, 0xffffffff
jne 0x4df381
mov esi, eax
mov dword [esp + 0x3c], esi
mov ecx, dword [edi + 8]
shl ecx, 2
test ecx, ecx
jne 0x4df400
test esi, esi
je 0x4df494
push esi
push ecx
push dword [esp + 0x40]
call fcn.005f77b0
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x24
ret
cmp esi, eax
jge 0x4df354
movups xmm0, xmmword [edi]
mov eax, dword [edi + 0x10]
mov dword [esp + 0x2c], eax
movups xmmword [esp + 0x1c], xmm0
psrldq xmm0, 4
movd ecx, xmm0
test ecx, ecx
jle 0x4df3c2
mov eax, dword [esp + 0x1c]
lea eax, [eax + ecx*4]
nop dword [eax + eax]
cmp dword [eax - 4], 0
lea eax, [eax - 4]
jne 0x4df3be
dec ecx
test ecx, ecx
jg 0x4df3b0
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x28]
xor edx, edx
test ecx, ecx
cmove eax, edx
mov dword [esp + 0x28], eax
lea eax, [esp + 0x1c]
push eax
call fcn.004deb80
add eax, 7
add esp, 4
cdq
and edx, 7
add eax, edx
sar eax, 3
add eax, dword [esp + 0xc]
cmp esi, eax
jge 0x4df354
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x24
ret
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
cmp edx, 1
je 0x4df410
dec eax
add eax, esi
mov edi, dword [edi + 4]
mov dword [esp + 0x44], eax
xor eax, eax
cmp edx, 1
push ebp
sete al
shl edi, 2
xor ebp, ebp
lea eax, [eax*2 - 1]
mov dword [esp + 0x18], eax
lea eax, [ecx - 1]
mov dword [esp + 0x1c], eax
test esi, esi
je 0x4df493
mov dword [esp + 0x10], esi
neg edi
mov esi, dword [esp + 0x38]
mov eax, dword [esi]
mov edx, ebp
shr edx, 2
mov ecx, ebp
and ecx, 3
shl ecx, 3
mov edx, dword [eax + edx*4]
mov eax, edi
shr edx, cl
mov ecx, ebp
shr eax, 0x1f
neg al
and dl, al
mov eax, dword [esp + 0x48]
xor dl, byte [esp + 0x14]
add bl, dl
cmp bl, dl
mov byte [eax], bl
sbb ebx, ebx
sub ecx, dword [esp + 0x1c]
add eax, dword [esp + 0x18]
neg ebx
shr ecx, 0x1f
inc edi
add ebp, ecx
mov dword [esp + 0x48], eax
sub dword [esp + 0x10], 1
jne 0x4df445
mov esi, dword [esp + 0x40]
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x24
ret
Function at 0x4f2ec0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov eax, 4
call fcn.005f62e0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push 1
push esi
call fcn.004f2b90
mov ebx, eax
push ebx
push esi
call fcn.004f2aa0
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x4f2f3f
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 0x4f2f23
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.004f2b30
push esi
call fcn.004f2c80
add esp, 0x10
test eax, eax
jne 0x4f2fb9
push 1
push esi
call fcn.004f2b90
mov ebx, eax
push ebx
push esi
call fcn.004f2aa0
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x4f2fb0
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 0x4f2f94
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.004f2b30
push esi
call fcn.004f2c80
add esp, 0x10
test eax, eax
jne 0x4f2fb9
push esi
call fcn.004f2c80
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4fb460
Capabilities:
Create thread

Disassembly:
push esi
push edi
push 0x27
push str.crypto_thread_arch_thread_win.c
push 4
call fcn.004c0bd0
mov edi, dword [esp + 0x18]
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4fb4a4
push 0
push 0
push edi
push 0x4fb4c0
push 0
push 0
call fcn.0060abca
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x4fb4a4
mov dword [edi + 0x10], esi
mov eax, 1
pop edi
pop esi
ret
push 0x34
push str.crypto_thread_arch_thread_win.c
push esi
mov dword [edi + 0x10], 0
call fcn.004c09d0
add esp, 0xc
xor eax, eax
pop edi
pop esi
ret

Function at 0x4ff0c0
Capabilities:
Initialize winsock library

Disassembly:
cmp dword [0x6c19f0], 0
jne 0x4ff159
push 0x190
push 0
push 0x6c19f8
mov dword [0x6c19f0], 1
call fcn.005f77b0
add esp, 0xc
push 0x6c19f8
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4ff159
call fcn.004c22a0
push str.BIO_sock_init
push 0x96
push str.crypto_bio_bio_sock.c
call fcn.004c23a0
add esp, 0xc
push str.calling_wsastartup__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.004c24b0
call fcn.004c22a0
push str.BIO_sock_init
push 0x98
push str.crypto_bio_bio_sock.c
call fcn.004c23a0
push 0
push 0x7a
push 0x20
call fcn.004c24b0
add esp, 0x24
or eax, 0xffffffff
ret
mov eax, 1
ret

Function at 0x4ff160
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 0x4ff1b5
call fcn.004c22a0
push str.BIO_socket_ioctl
push 0xf4
push str.crypto_bio_bio_sock.c
call fcn.004c23a0
add esp, 0xc
push str.calling_ioctlsocket__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.004c24b0
add esp, 0xc
xor eax, eax
test esi, esi
pop esi
sete al
ret

Function at 0x4ff1c0
Capabilities:
Get socket status

Disassembly:
mov eax, 0x110
call fcn.005f62e0
mov eax, dword [0x6c02d0]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebp
mov ebp, dword [esp + 0x11c]
push edi
mov edi, dword [esp + 0x11c]
cmp edi, 0xffffffff
jne 0x4ff206
or eax, edi
pop edi
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.005f5e48
add esp, 0x110
ret
push esi
mov esi, dword [esp + 0x128]
mov eax, esi
or eax, dword [esp + 0x12c]
jne 0x4ff236
pop esi
pop edi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.005f5e48
add esp, 0x110
ret
push 0
call fcn.00605c4e
add esp, 4
cmp dword [esp + 0x12c], edx
jg 0x4ff269
jl 0x4ff24f
cmp esi, eax
jae 0x4ff269
pop esi
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.005f5e48
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]
mov ecx, dword [esp + 0x118]
pop esi
pop edi
pop ebp
xor ecx, esp
call fcn.005f5e48
add esp, 0x110
ret
Function at 0x4ffe40
Capabilities:
Get common file path

Disassembly:
mov eax, 0x230
call fcn.005f62e0
mov eax, dword [0x6c02d0]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x6c1b90], 0
mov dword [esp], 0x6555bc
mov dword [esp + 4], 0x4ff840
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x4ffbf0
mov dword [esp + 0x10], 0x6555d4
mov dword [esp + 0x14], 0x4ff7f0
jne 0x4fff9b
push 0x104
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4fff91
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.0060bf27
push str.ws2_32
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.0060bf81
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 0x4fff0f
push 0x6555bc
push edi
call ebx
test eax, eax
jne 0x4fff56
push edi
call ebp
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.0060bf27
push str.wship6
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.0060bf81
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call esi
mov edi, eax
test edi, edi
je 0x4fff8d
push 0x6555bc
push edi
call ebx
test eax, eax
je 0x4fff8a
xor esi, esi
push dword [esp + esi*8 + 0x10]
push edi
call ebx
mov dword [esp + esi*8 + 0x14], eax
test eax, eax
je 0x4fff8a
inc esi
cmp esi, 3
jl 0x4fff58
mov eax, dword [esp + 0x14]
mov dword [0x6be8e8], eax
mov eax, dword [esp + 0x1c]
mov dword [0x6be8f0], eax
mov eax, dword [esp + 0x24]
mov dword [0x6be8f8], eax
jmp 0x4fff8d
push edi
call ebp
pop edi
pop esi
pop ebp
pop ebx
mov dword [0x6c1b90], 1
movzx eax, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
mov eax, dword [eax*8 + 0x6be8e8]
call fcn.005f5e48
add esp, 0x230
ret 4
Function at 0x4fffd0
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x820
call fcn.005f62e0
mov eax, dword [0x6c02d0]
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.005f77b0
push 0x400
lea eax, [esp + 0x439]
mov byte [esp + 0x438], 0
push 0
push eax
call fcn.005f77b0
push 0x400
push esi
lea eax, [esp + 0x44]
push 0x401
push eax
mov dword [esp + 0x3c], eax
lea ebp, [esp + 0x450]
call fcn.0060c09b
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 0x5001af
cmp word [ebx + 8], 2
jne 0x5000d2
cmp word [ebx + 0xa], 4
jne 0x5000d2
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x5000d2
nop dword [eax]
nop dword [eax + eax]
push dword [eax]
push dword [esp + 0x844]
push dword [esp + 0x844]
push dword [esp + 0x844]
call fcn.00500200
mov dword [edi], eax
test eax, eax
je 0x5001a8
add esi, 4
lea edi, [eax + 0x1c]
mov eax, dword [esi]
test eax, eax
jne 0x5000a0
push 0x400
push dword [ebx]
push 0x401
push ebp
call fcn.0060c09b
mov ebx, dword [esp + 0x28]
xor esi, esi
add esp, 0x10
cmp dword [ebx], esi
jne 0x50015f
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5000f6
sub ecx, edx
je case.0x5001bf.11003
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov eax, edi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x500130
test dl, dl
je 0x50012c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x500130
add eax, 2
add ecx, 2
test dl, dl
jne 0x500110
xor eax, eax
jmp 0x500135
sbb eax, eax
or eax, 1
test eax, eax
je case.0x5001bf.11003
mov esi, dword [esp + 0x10]
inc esi
mov dword [esp + 0x10], esi
cmp esi, 0x10
je case.0x5001bf.11003
mov esi, dword [esp + 0x1c]
mov eax, edi
mov dword [esp + 0x14], ebp
mov ebp, eax
jmp 0x500060
mov esi, 0x2afb
jmp 0x5001d2
cmp dword [esp + 0x844], esi
je 0x5001d2
mov ecx, ebp
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x500170
sub ecx, edx
lea ebx, [ecx + 1]
push ebx
push 1
call fcn.005fb704
mov edi, eax
add esp, 8
test edi, edi
je 0x500198
push ebp
push ebx
push edi
call fcn.0060bf27
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 0x5001d2
mov esi, 8
jmp 0x5001d2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x5001bf.11001
jmp dword [eax*4 + 0x5001f0]
mov esi, 0x2afa
jmp 0x5001d2
mov esi, 0x2af9
mov ecx, dword [esp + 0x82c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005f5e48
add esp, 0x820
ret 0x18
Function at 0x5048d0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.005f62e0
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 0x504939
test ebx, ebx
je 0x504919
lea edx, [ebp + 0x30]
add edx, ecx
cmp ecx, 0x40
jae 0x504919
mov al, byte [edx]
inc ecx
xor al, byte [esi]
inc edx
mov byte [edi], al
inc esi
inc edi
sub ebx, 1
jne 0x504905
mov dword [ebp + 0x70], ecx
test ebx, ebx
je 0x5049f4
cmp ecx, 0x40
jne 0x504939
mov dword [ebp + 0x70], 0
add dword [ebp + 0x20], 1
jne 0x504939
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 0x5049a7
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.00410f00
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 0x5049a0
inc dword [ebp + 0x24]
mov edx, eax
cmp ebx, 0x40
jae 0x504953
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x5049f4
push 0x40
lea eax, [ebp + 0x30]
push 0
push eax
call fcn.005f77b0
lea eax, [ebp + 0x20]
push eax
push ebp
lea eax, [ebp + 0x30]
push 0x40
push eax
push eax
call fcn.00410f00
add esp, 0x20
xor edx, edx
test ebx, ebx
je 0x5049f1
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 0x5049e0
mov dword [ebp + 0x70], ebx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret
Function at 0x507930
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.00565f40
push 0x62
push edi
mov ebx, eax
call fcn.005f7910
add esp, 0x10
neg eax
sbb esi, esi
and esi, 0xfffffff0
add esi, 0x11
test ebx, ebx
jne 0x5079e2
call fcn.004c22a0
push str.BIO_new_file
push 0x43
push str.crypto_bio_bss_file.c
call fcn.004c23a0
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.004c24b0
add esp, 0x14
call fcn.006046e0
cmp dword [eax], 2
je 0x5079b2
call fcn.006046e0
cmp dword [eax], 6
je 0x5079b2
mov esi, 0x80002
lea edi, [ebx + 0x4d]
jmp 0x5079ba
mov esi, 0x80
lea edi, [esi - 0x35]
call fcn.004c22a0
push str.BIO_new_file
push edi
push str.crypto_bio_bss_file.c
call fcn.004c23a0
push 0
push esi
push 0x20
call fcn.004c24b0
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x65974c
call fcn.004d1b50
mov edi, eax
add esp, 4
test edi, edi
jne 0x507a04
push ebx
call fcn.0060553d
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push edi
call fcn.004d1430
push ebx
push esi
push 0x6a
push edi
call fcn.004d1460
add esp, 0x18
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x50b180
Capabilities:
Hash data using sha1

Disassembly:
mov eax, 0x40
call fcn.005f62e0
mov eax, dword [0x6c02d0]
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 0x50b1bc
pop edi
mov eax, 0xfffffffe
pop esi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.005f5e48
add esp, 0x40
ret
test esi, esi
je 0x50b2cb
cmp dword [esp + 0x54], 0x30
jne 0x50b2cb
push 0x30
push edi
push esi
call fcn.0050b0a0
add esp, 0xc
test eax, eax
jle 0x50b2cb
movaps xmm0, xmmword [str.6666666666666666jjjjjjjjjjjjjjjj_]
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.0050b0a0
add esp, 0xc
test eax, eax
je 0x50b2cb
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0050af00
add esp, 8
test eax, eax
je 0x50b2cb
push 0x4c
lea eax, [esi + 0x14]
push 0
push eax
call fcn.005f77b0
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.0050b0a0
add esp, 0x18
test eax, eax
jle 0x50b2cb
movaps xmm0, xmmword [str.PEM]
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.0050b0a0
add esp, 0xc
test eax, eax
je 0x50b2cb
push 0x14
lea eax, [esp + 0x34]
push eax
push esi
call fcn.0050b0a0
add esp, 0xc
test eax, eax
je 0x50b2cb
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.005f5e48
add esp, 0x40
ret
mov ecx, dword [esp + 0x44]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.005f5e48
add esp, 0x40
ret
Function at 0x512ab0
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 0x512af2
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 0x512ad2
pop ebx
pop edi
pop esi
ret
Function at 0x529270
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 0x529349
mov esi, dword [esp + 0x10]
test esi, esi
je 0x5292fe
push esi
push 0
lea eax, [esp + 0x28]
push eax
push 0
call fcn.00517880
add esp, 0x10
cmp dword [esp + 0x20], 0xffffffff
je 0x5292d2
call fcn.004c22a0
push str.ossl_ecx_key_op
push 0xa9
push str.cryptoececx_backend.c
call fcn.004c23a0
push 0
push 0x66
push 0x10
call fcn.004c24b0
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.004bcc50
add esp, 4
test esi, esi
jne 0x5292e9
mov esi, eax
jmp 0x529302
cmp esi, eax
je 0x529302
call fcn.004c22a0
push str.ossl_ecx_key_op
push 0xaf
jmp 0x5292b4
mov esi, dword [esp + 0x1c]
test edi, edi
je 0x529335
test esi, esi
je 0x529335
cmp esi, 0x40a
je 0x52932a
cmp esi, 0x43f
je 0x52932a
xor eax, eax
cmp esi, 0x40b
setne al
add eax, 0x38
jmp 0x52932f
mov eax, 0x20
cmp dword [esp + 0x18], eax
je 0x52934d
call fcn.004c22a0
push str.ossl_ecx_key_op
push 0xb5
jmp 0x5292b4
mov esi, dword [esp + 0x1c]
cmp esi, 0x40a
je 0x529371
cmp esi, 0x43f
je 0x529371
xor eax, eax
cmp esi, 0x40b
setne al
lea eax, [eax*2 + 1]
jmp 0x529381
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.00528ee0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x5293cb
call fcn.004c22a0
push str.ossl_ecx_key_op
push 0xbc
push str.cryptoececx_backend.c
call fcn.004c23a0
push ebx
push 0x80010
push 0x10
call fcn.004c24b0
add esp, 0x18
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
test ebp, ebp
jne 0x5293e7
push dword [esp + 0x1c]
lea eax, [ebx + 0xc]
push edi
push eax
call fcn.005f7b80
add esp, 0xc
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
ret
push ebx
call fcn.00528e70
mov edi, eax
add esp, 4
test edi, edi
jne 0x52941a
call fcn.004c22a0
push str.ossl_ecx_key_op
push 0xc6
push str.cryptoececx_backend.c
call fcn.004c23a0
push edi
push 0x80010
jmp 0x5294f0
cmp ebp, 2
jne 0x52948c
test esi, esi
je 0x5294bf
cmp esi, 0x40a
je 0x529447
cmp esi, 0x43f
je 0x529447
xor eax, eax
cmp esi, 0x40b
setne al
add eax, 0x38
jmp 0x52944c
mov eax, 0x20
push 0
push eax
push edi
push dword [esp + 0x34]
call fcn.004c2ce0
add esp, 0x10
test eax, eax
jle 0x5294fa
cmp esi, 0x40a
jne 0x52947b
mov al, byte [edi + 0x1f]
and byte [edi], 0xf8
and al, 0x3f
or al, 0x40
mov byte [edi + 0x1f], al
jmp 0x5294bf
cmp esi, 0x40b
jne 0x5294bf
and byte [edi], 0xfc
or byte [edi + 0x37], 0x80
jmp 0x5294bf
cmp esi, 0x40a
je 0x5294ac
cmp esi, 0x43f
je 0x5294ac
xor eax, eax
cmp esi, 0x40b
setne al
add eax, 0x38
jmp 0x5294b1
mov eax, 0x20
push eax
push dword [esp + 0x1c]
push edi
call fcn.005f7b80
add esp, 0xc
push ebx
call fcn.00529510
add esp, 4
test eax, eax
jne 0x5293e0
call fcn.004c22a0
push str.ossl_ecx_key_op
push 0xda
push str.cryptoececx_backend.c
call fcn.004c23a0
push 0
push 0xa6
push 0x10
call fcn.004c24b0
add esp, 0x18
push ebx
call fcn.00528e90
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x52dfc0
Capabilities:
Encrypt data using curve25519

Disassembly:
mov eax, 0xe4
call fcn.005f62e0
mov eax, dword [0x6c02d0]
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.004e3bd0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x52e042
push 0
push edi
push 0
lea eax, [esp + 0xb8]
push eax
push 0x20
push esi
call fcn.004e2fa0
push edi
mov esi, eax
call fcn.004e3c00
add esp, 0x1c
test esi, esi
jne 0x52e05c
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.005f5e48
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.0052d710
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.0052d690
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.005f5e48
add esp, 0xe4
ret
Function at 0x536210
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 0x53625f
cmp edx, esi
jb 0x53625f
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 0x536240
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 0x536270
pop esi
pop ebx
ret
Function at 0x53ad40
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x18], esi
jne 0x53ae09
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
cmp al, 0x6a
je 0x53ad61
cmp al, 0x6b
jne 0x53ae09
inc ecx
cmp al, 0x6b
jne 0x53adc2
add esi, 0xfffffffd
xor eax, eax
test esi, esi
jle 0x53ad82
nop
mov dl, byte [ecx]
inc ecx
cmp dl, 0xba
je 0x53ad82
cmp dl, 0xbb
jne 0x53ad96
inc eax
cmp eax, esi
jl 0x53ad70
sub esi, eax
test eax, eax
jne 0x53adc5
call fcn.004c22a0
push str.RSA_padding_check_X931
push 0x56
jmp 0x53ada2
call fcn.004c22a0
push str.RSA_padding_check_X931
push 0x4e
push str.crypto_rsa_rsa_x931.c
call fcn.004c23a0
push 0
push 0x8a
push 4
call fcn.004c24b0
add esp, 0x18
or eax, 0xffffffff
pop esi
ret
add esi, 0xfffffffe
cmp byte [esi + ecx], 0xcc
je 0x53adf7
call fcn.004c22a0
push str.RSA_padding_check_X931
push 0x5f
push str.crypto_rsa_rsa_x931.c
call fcn.004c23a0
push 0
push 0x8b
push 4
call fcn.004c24b0
add esp, 0x18
or eax, 0xffffffff
pop esi
ret
push esi
push ecx
push dword [esp + 0x10]
call fcn.005f7b80
add esp, 0xc
mov eax, esi
pop esi
ret
call fcn.004c22a0
push str.RSA_padding_check_X931
push 0x43
push str.crypto_rsa_rsa_x931.c
call fcn.004c23a0
push 0
push 0x89
push 4
call fcn.004c24b0
add esp, 0x18
or eax, 0xffffffff
pop esi
ret