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

Disassembly:
mov eax, 0x230
call fcn.0057a390
mov eax, dword [0x5faea4]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x5fb4c4], 0
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x4779c0
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x477c90
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], fcn.00477970
jne 0x47805b
push 0x104
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x478051
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy_s
push str.ws2_32
lea eax, [esp + 0x38]
push 0x10c
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat_s
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 0x477fcf
push str.getaddrinfo
push edi
call ebx
test eax, eax
jne 0x478016
push edi
call ebp
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy_s
push str.wship6
lea eax, [esp + 0x38]
push 0x10c
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat_s
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call esi
mov edi, eax
test edi, edi
je 0x47804d
push str.getaddrinfo
push edi
call ebx
test eax, eax
je 0x47804a
xor esi, esi
push dword [esp + esi*8 + 0x10]
push edi
call ebx
mov dword [esp + esi*8 + 0x14], eax
test eax, eax
je 0x47804a
inc esi
cmp esi, 3
jl 0x478018
mov eax, dword [esp + 0x14]
mov dword [0x5f9308], eax
mov eax, dword [esp + 0x1c]
mov dword [0x5f9310], eax
mov eax, dword [esp + 0x24]
mov dword [fcn.00477970], eax
jmp 0x47804d
push edi
call ebp
pop edi
pop esi
pop ebp
pop ebx
mov dword [0x5fb4c4], 1
movzx eax, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
mov eax, dword [eax*8 + 0x5f9308]
call fcn.00579fe8
add esp, 0x230
ret 4
Function at 0x478310
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 0x14]
push ebx
push edi
mov edi, dword [esp + 0x20]
push dword [esp + 0xc]
mov dword [edi], 0
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x47839f
cmp word [ebx + 8], 2
push ebp
push esi
jne 0x478372
cmp word [ebx + 0xa], 4
jne 0x478372
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x478372
mov ebp, dword [esp + 0x1c]
push dword [eax]
push dword [esp + 0x24]
push ebp
push dword [esp + 0x24]
call fcn.00478230
mov dword [edi], eax
test eax, eax
je 0x478393
add esi, 4
lea edi, [eax + 0x1c]
mov eax, dword [esi]
test eax, eax
jne 0x478350
push 0x400
push dword [ebx]
push 0x401
push dword [esp + 0x30]
call sub.api_ms_win_crt_string_l1_1_0.dll_strncpy_s
add esp, 0x10
xor eax, eax
pop esi
pop ebp
pop edi
pop ebx
ret 0x18
pop esi
pop ebp
pop edi
mov eax, 8
pop ebx
ret 0x18
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x4783af.11001
jmp dword [eax*4 + 0x4783d4]
pop edi
mov eax, 0x2af9
pop ebx
ret 0x18
pop edi
mov eax, 0x2afa
pop ebx
ret 0x18
pop edi
mov eax, 0x2afb
pop ebx
ret 0x18

Function at 0x47a820
Capabilities:
Generate random numbers via winapi

Disassembly:
mov eax, 4
call fcn.0057a390
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push 1
push esi
xor edi, edi
call fcn.0047a500
mov ebx, eax
push ebx
push esi
call fcn.0047a410
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x47a8a9
push 0xf0000040
push 1
push edi
push edi
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x47a883
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.0047a4a0
push esi
call fcn.0047a5f0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x47a8a9
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 1
push esi
call fcn.0047a500
mov ebx, eax
push ebx
push esi
call fcn.0047a410
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x47a918
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 0x47a8fe
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.0047a4a0
push esi
call fcn.0047a5f0
add esp, 0x10
mov edi, eax
test edi, edi
jne 0x47a8a1
push esi
call fcn.0047a5f0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x47dc00
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.004c91b0
push 0x62
push esi
mov edi, eax
mov ebx, 1
call sub.VCRUNTIME140.dll_strchr
add esp, 0x10
mov ecx, 0x11
test eax, eax
cmove ebx, ecx
test edi, edi
jne 0x47dcd6
call fcn.004650f0
push str.BIO_new_file
push 0x43
push str.crypto_bio_bss_file.c
call fcn.00465140
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.00465170
add esp, 0x14
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
cmp dword [eax], 2
je 0x47dca9
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
cmp dword [eax], 6
je 0x47dca9
call fcn.004650f0
push str.BIO_new_file
push 0x4d
push str.crypto_bio_bss_file.c
call fcn.00465140
push edi
push 0x80002
push 0x20
call fcn.00465170
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
ret
call fcn.004650f0
push str.BIO_new_file
push 0x4b
push str.crypto_bio_bss_file.c
call fcn.00465140
push 0
push 0x80
push 0x20
call fcn.00465170
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x59a758
call fcn.00457740
mov esi, eax
add esp, 4
test esi, esi
jne 0x47dcf8
push edi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push esi
call fcn.00457070
push edi
push ebx
push 0x6a
push esi
call fcn.004570a0
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x494940
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x14
call fcn.0057a390
mov eax, dword [esp + 0x2c]
push esi
mov esi, dword [eax]
test esi, esi
jns 0x494960
mov dword [eax], 0xffffffff
pop esi
add esp, 0x14
ret
push ebx
mov ebx, dword [esp + 0x24]
push ebp
mov ebp, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x30]
test esi, esi
je 0x49498c
mov ecx, dword [esp + 0x38]
test edi, edi
je 0x49498c
mov al, byte [esi + ecx]
dec edi
xor al, byte [ebp]
inc esi
mov byte [ebx], al
inc ebp
inc ebx
and esi, 0xf
jne 0x494977
mov edx, dword [esp + 0x40]
cmp edi, 0x10
jb 0x494a25
mov ecx, dword [esp + 0x38]
mov eax, ebx
sub eax, ecx
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, ecx
mov dword [esp + 0x18], eax
mov eax, edi
shr eax, 4
mov dword [esp + 0x10], eax
shl eax, 4
add ebx, eax
add ebp, eax
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 0x18]
jmp 0x4949d4
mov ecx, dword [esp + 0x38]
push dword [esp + 0x34]
push ecx
push ecx
call edx
add esp, 0xc
cmp esi, 0x10
jae 0x494a07
mov eax, dword [esp + 0x38]
mov edx, 0xf
sub edx, esi
add eax, esi
shr edx, 2
inc edx
mov ecx, dword [eax + ebp]
lea eax, [eax + 4]
xor ecx, dword [eax - 4]
mov dword [ebx + eax - 4], ecx
sub edx, 1
jne 0x4949f5
mov edx, dword [esp + 0x40]
sub edi, 0x10
add ebx, 0x10
add ebp, 0x10
xor esi, esi
sub dword [esp + 0x10], 1
jne 0x4949d0
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
test edi, edi
je 0x494a57
push dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
push eax
push eax
call edx
mov eax, dword [esp + 0x44]
add esp, 0xc
sub ebp, eax
sub ebx, eax
lea ecx, [esi + eax]
add esi, edi
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ecx + ebx - 1], al
sub edi, 1
jne 0x494a45
mov eax, dword [esp + 0x3c]
pop edi
pop ebp
pop ebx
mov dword [eax], esi
pop esi
add esp, 0x14
ret
Function at 0x494f40
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 8]
mov eax, dword [edi + 0x38]
or eax, dword [edi + 0x3c]
je 0x494f54
mov eax, 0xfffffffe
pop edi
ret
push esi
mov esi, dword [esp + 0x14]
xor ecx, ecx
mov eax, esi
add eax, dword [edi + 0x30]
adc ecx, dword [edi + 0x34]
cmp ecx, 0x20000000
ja 0x495009
jb 0x494f79
test eax, eax
jne 0x495009
push ebx
mov ebx, dword [edi + 0x170]
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], ecx
push ebp
mov ebp, dword [esp + 0x18]
test ebx, ebx
je 0x494fbc
nop
test esi, esi
je 0x494fa5
mov al, byte [ebp]
dec esi
xor byte [ebx + edi + 0x40], al
inc ebp
inc ebx
and ebx, 0xf
jne 0x494f90
jmp 0x494fa9
test ebx, ebx
jne 0x494ffc
lea eax, [edi + 0x60]
push eax
lea eax, [edi + 0x40]
push eax
mov eax, dword [edi + 0x168]
call eax
add esp, 8
mov eax, esi
and eax, 0xfffffff0
mov dword [esp + 0x14], eax
je 0x494fe4
push eax
push ebp
lea eax, [edi + 0x60]
push eax
lea eax, [edi + 0x40]
push eax
mov eax, dword [edi + 0x164]
call eax
add ebp, dword [esp + 0x24]
add esp, 0x10
sub esi, dword [esp + 0x14]
test esi, esi
je 0x494ffc
xor ecx, ecx
mov ebx, esi
test esi, esi
je 0x494ffc
mov al, byte [ecx + ebp]
xor byte [edi + ecx + 0x40], al
inc ecx
cmp ecx, esi
jb 0x494ff0
pop ebp
mov dword [edi + 0x170], ebx
xor eax, eax
pop ebx
pop esi
pop edi
ret
pop esi
or eax, 0xffffffff
pop edi
ret
Function at 0x495de0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x14]
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x170], 0
mov dword [esi + 0x16c], 0
cmp edi, 0xc
jne 0x495e42
mov eax, dword [esp + 0x10]
mov edi, 1
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0x1000000
jmp 0x495f44
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esp + 0x14], edi
mov dword [esi + 0x4c], 0
push ebx
mov ebx, dword [esp + 0x14]
push ebp
lea ebp, [esi + 0x40]
cmp edi, 0x10
jb 0x495eda
mov eax, edi
lea ecx, [esi + 0x41]
shr eax, 4
mov dword [esp + 0x14], eax
nop dword [eax]
mov eax, ecx
lea edx, [ebx + 1]
mov ebp, 4
nop word [eax + eax]
movzx ecx, byte [edx - 1]
lea edx, [edx + 4]
xor byte [eax - 1], cl
lea eax, [eax + 4]
movzx ecx, byte [edx - 4]
xor byte [eax - 4], cl
movzx ecx, byte [edx - 3]
xor byte [eax - 3], cl
movzx ecx, byte [edx - 2]
xor byte [eax - 2], cl
sub ebp, 1
jne 0x495e90
lea eax, [esi + 0x60]
push eax
mov eax, dword [esi + 0x168]
lea ebp, [esi + 0x40]
push ebp
call eax
add esp, 8
lea ecx, [esi + 0x41]
add ebx, 0x10
sub edi, 0x10
sub dword [esp + 0x14], 1
jne 0x495e80
test edi, edi
je 0x495eff
xor ecx, ecx
test edi, edi
je 0x495eef
mov al, byte [ecx + ebx]
xor byte [ecx + ebp], al
inc ecx
cmp ecx, edi
jb 0x495ee4
lea eax, [esi + 0x60]
push eax
mov eax, dword [esi + 0x168]
push ebp
call eax
add esp, 8
mov eax, dword [esp + 0x1c]
xor ecx, ecx
shld ecx, eax, 3
shl eax, 3
bswap eax
xor dword [esi + 0x4c], eax
lea eax, [esi + 0x60]
push eax
mov eax, dword [esi + 0x168]
bswap ecx
xor dword [esi + 0x48], ecx
push ebp
call eax
mov eax, dword [ebp]
add esp, 8
mov edi, dword [esi + 0x4c]
mov dword [esi], eax
mov eax, dword [ebp + 4]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x48]
mov dword [esi + 8], eax
mov eax, dword [esi + 0x4c]
pop ebp
bswap edi
mov dword [esi + 0xc], eax
pop ebx
mov dword [esi + 0x40], 0
lea eax, [esi + 0x20]
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
push dword [esi + 0x178]
push eax
mov eax, dword [esi + 0x174]
push esi
call eax
add esp, 0xc
inc edi
bswap edi
mov dword [esi + 0xc], edi
pop edi
pop esi
ret

Function at 0x4963d0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc
call fcn.0057a390
lea eax, [esp]
push eax
call fcn.00495fc0
mov eax, dword [esp + 8]
add esp, 4
test eax, eax
je 0x4963f3
add esp, 0xc
jmp eax
push ebx
mov ebx, dword [esp + 0x20]
push esi
xor esi, esi
test ebx, ebx
je 0x496433
push ebp
mov ebp, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x20]
nop dword [eax]
movups xmm1, xmmword [esi + ebp]
movups xmm0, xmmword [edi]
push dword [esp + 0x24]
pxor xmm0, xmm1
push edi
movups xmmword [edi], xmm0
call dword [esp + 0x20]
add esi, 0x10
add esp, 8
cmp esi, ebx
jb 0x496410
pop edi
pop ebp
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x4994e0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 4
call fcn.0057a390
push edi
mov edi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
test edi, edi
je 0x499560
mov cl, byte [edi]
test cl, cl
je 0x499560
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 0x499510
mov ecx, eax
pop esi
shr ecx, 0x10
pop ebx
xor eax, ecx
pop edi
pop ecx
ret
xor eax, eax
pop edi
pop ecx
ret

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

Disassembly:
mov eax, 4
call fcn.0057a390
push edi
mov edi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
test edi, edi
je 0x499823
mov cl, byte [edi]
test cl, cl
je 0x499823
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 0x4997d0
mov ecx, eax
pop esi
shr ecx, 0x10
pop ebx
xor eax, ecx
pop edi
pop ecx
ret
xor eax, eax
pop edi
pop ecx
ret
Function at 0x4a1390
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa0
call fcn.0057a390
mov eax, dword [0x5faea4]
xor eax, esp
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0xa4]
push ebx
mov ebx, dword [esp + 0xb4]
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 + 0xd8]
push ecx
mov ebp, dword [eax]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], edi
call fcn.004bc680
push ebp
push 0
push edi
mov dword [esp + 0x2c], eax
call fcn.004e1ad0
add esp, 0x10
test eax, eax
je 0x4a1562
mov edi, dword [esp + 0xcc]
inc ebp
test edi, edi
mov edi, dword [esp + 0x10]
je 0x4a1444
push 0
push esi
push edi
push dword [esp + 0x28]
call fcn.00458350
add esp, 0x10
test eax, eax
jle 0x4a1563
push esi
push edi
push ebx
call sub.VCRUNTIME140.dll_memcpy
push esi
lea eax, [esp + 0x7c]
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
lea eax, [esi - 1]
add esp, 0x18
test eax, eax
js 0x4a146d
add byte [ebx + eax], 1
jne 0x4a146d
sub eax, 1
jns 0x4a1462
push 0
push dword [esp + 0x18]
lea eax, [esp + 0x34]
push 0
push eax
push esi
push edi
call fcn.0047ff50
add esp, 0x18
test eax, eax
je 0x4a1563
push 0
push dword [esp + 0x18]
lea eax, [esp + 0x74]
push 0
push eax
push esi
push ebx
call fcn.0047ff50
add esp, 0x18
test eax, eax
je 0x4a1563
xor eax, eax
test esi, esi
jle 0x4a150e
cmp esi, 0x20
jb 0x4a14fd
mov ecx, esi
and ecx, 0x8000001f
jns 0x4a14c5
dec ecx
or ecx, 0xffffffe0
inc ecx
mov edx, esi
sub edx, ecx
nop dword [eax]
movups xmm0, xmmword [esp + eax + 0x2c]
movups xmm1, xmmword [esp + eax + 0x6c]
pxor xmm1, xmm0
movups xmmword [esp + eax + 0x2c], xmm1
movups xmm0, xmmword [esp + eax + 0x3c]
movups xmm1, xmmword [esp + eax + 0x7c]
pxor xmm1, xmm0
movups xmmword [esp + eax + 0x3c], xmm1
add eax, 0x20
cmp eax, edx
jl 0x4a14d0
cmp eax, esi
jge 0x4a150e
mov cl, byte [esp + eax + 0x6c]
xor byte [esp + eax + 0x2c], cl
inc eax
cmp eax, esi
jl 0x4a1501
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x2c]
or byte [esp + 0x2c], 0x80
or byte [esp + esi + 0x2b], 1
push edi
push esi
push eax
call fcn.0046e710
add esp, 0xc
test eax, eax
je 0x4a1563
push dword [esp + 0x18]
push dword [esp + 0x28]
push edi
call fcn.004e1b20
add esp, 0xc
test eax, eax
jg 0x4a1584
jne 0x4a1563
push ebp
push 0
push dword [esp + 0x20]
mov edi, 1
call fcn.004e1ad0
add esp, 0xc
test eax, eax
jne 0x4a1423
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.00579fe8
add esp, 0xa0
ret
mov eax, 1
jmp 0x4a1565
Function at 0x4a6f90
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
cmp ebp, 2
je 0x4a7067
mov edi, dword [esp + 0x10]
test edi, edi
je 0x4a7019
push edi
push 0
lea eax, [esp + 0x28]
push eax
push 0
call fcn.004a5d90
add esp, 0x10
cmp dword [esp + 0x20], 0xffffffff
je 0x4a6fee
call fcn.004650f0
push str.ossl_ecx_key_op
push 0xa6
push str.cryptoececx_backend.c
call fcn.00465140
push 0
push 0x66
push 0x10
call fcn.00465170
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebp
ret
push dword [edi]
mov esi, dword [esp + 0x20]
call fcn.00462f10
add esp, 4
test esi, esi
jne 0x4a7004
mov esi, eax
jmp 0x4a701d
cmp esi, eax
je 0x4a701d
call fcn.004650f0
push str.ossl_ecx_key_op
push 0xac
jmp 0x4a6fd0
mov esi, dword [esp + 0x1c]
cmp dword [esp + 0x14], 0
je 0x4a7053
test esi, esi
je 0x4a7053
cmp esi, 0x40a
je 0x4a7048
cmp esi, 0x43f
je 0x4a7048
xor eax, eax
cmp esi, 0x40b
setne al
add eax, 0x38
jmp 0x4a704d
mov eax, 0x20
cmp dword [esp + 0x18], eax
je 0x4a706b
call fcn.004650f0
push str.ossl_ecx_key_op
push 0xb2
jmp 0x4a6fd0
mov esi, dword [esp + 0x1c]
cmp esi, 0x40a
je 0x4a708f
cmp esi, 0x43f
je 0x4a708f
xor eax, eax
cmp esi, 0x40b
setne al
lea eax, [eax*2 + 1]
jmp 0x4a709f
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.00488df0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x4a70e9
call fcn.004650f0
push str.ossl_ecx_key_op
push 0xb9
push str.cryptoececx_backend.c
call fcn.00465140
push ebx
push 0x80010
push 0x10
call fcn.00465170
add esp, 0x18
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
test ebp, ebp
jne 0x4a7109
push dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
push eax
lea eax, [ebx + 0xc]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
ret
push ebx
call fcn.00488d80
mov edi, eax
add esp, 4
test edi, edi
jne 0x4a713c
call fcn.004650f0
push str.ossl_ecx_key_op
push 0xc3
push str.cryptoececx_backend.c
call fcn.00465140
push edi
push 0x80010
jmp 0x4a7213
cmp ebp, 2
jne 0x4a71ae
test esi, esi
je 0x4a71e2
cmp esi, 0x40a
je 0x4a7169
cmp esi, 0x43f
je 0x4a7169
xor eax, eax
cmp esi, 0x40b
setne al
add eax, 0x38
jmp 0x4a716e
mov eax, 0x20
push 0
push eax
push edi
push dword [esp + 0x34]
call fcn.00458700
add esp, 0x10
test eax, eax
jle 0x4a721d
cmp esi, 0x40a
jne 0x4a719d
mov al, byte [edi + 0x1f]
and byte [edi], 0xf8
and al, 0x3f
or al, 0x40
mov byte [edi + 0x1f], al
jmp 0x4a71e2
cmp esi, 0x40b
jne 0x4a71e2
and byte [edi], 0xfc
or byte [edi + 0x37], 0x80
jmp 0x4a71e2
cmp esi, 0x40a
je 0x4a71ce
cmp esi, 0x43f
je 0x4a71ce
xor eax, eax
cmp esi, 0x40b
setne al
add eax, 0x38
jmp 0x4a71d3
mov eax, 0x20
push eax
mov eax, dword [esp + 0x1c]
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push ebx
call fcn.004a7230
add esp, 4
test eax, eax
jne 0x4a7102
call fcn.004650f0
push str.ossl_ecx_key_op
push 0xd7
push str.cryptoececx_backend.c
call fcn.00465140
push 0
push 0xa6
push 0x10
call fcn.00465170
add esp, 0x18
push ebx
call fcn.00488da0
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x4abb00
Capabilities:
Encrypt data using curve25519

Disassembly:
mov eax, 0xe4
call fcn.0057a390
mov eax, dword [0x5faea4]
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.00480a70
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4abb82
push 0
push edi
push 0
lea eax, [esp + 0xb8]
push eax
push 0x20
push esi
call fcn.0047ff50
push edi
mov esi, eax
call fcn.00480fe0
add esp, 0x1c
test esi, esi
jne 0x4abb9c
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.00579fe8
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.004ab240
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.004ab980
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.00579fe8
add esp, 0xe4
ret
Function at 0x4b92c0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x18], esi
jne 0x4b9389
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
cmp al, 0x6a
je 0x4b92e1
cmp al, 0x6b
jne 0x4b9389
inc ecx
cmp al, 0x6b
jne 0x4b9342
add esi, 0xfffffffd
xor eax, eax
test esi, esi
jle 0x4b9302
nop
mov dl, byte [ecx]
inc ecx
cmp dl, 0xba
je 0x4b9302
cmp dl, 0xbb
jne 0x4b9316
inc eax
cmp eax, esi
jl 0x4b92f0
sub esi, eax
test eax, eax
jne 0x4b9345
call fcn.004650f0
push str.RSA_padding_check_X931
push 0x56
jmp 0x4b9322
call fcn.004650f0
push str.RSA_padding_check_X931
push 0x4e
push str.crypto_rsa_rsa_x931.c
call fcn.00465140
push 0
push 0x8a
push 4
call fcn.00465170
add esp, 0x18
or eax, 0xffffffff
pop esi
ret
add esi, 0xfffffffe
cmp byte [esi + ecx], 0xcc
je 0x4b9377
call fcn.004650f0
push str.RSA_padding_check_X931
push 0x5f
push str.crypto_rsa_rsa_x931.c
call fcn.00465140
push 0
push 0x8b
push 4
call fcn.00465170
add esp, 0x18
or eax, 0xffffffff
pop esi
ret
push esi
push ecx
push dword [esp + 0x10]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, esi
pop esi
ret
call fcn.004650f0
push str.RSA_padding_check_X931
push 0x43
push str.crypto_rsa_rsa_x931.c
call fcn.00465140
push 0
push 0x89
push 4
call fcn.00465170
add esp, 0x18
or eax, 0xffffffff
pop esi
ret