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

Disassembly:
mov eax, 0x230
call fcn.0057a200
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], 0x4777f0
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x477ac0
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], fcn.004777a0
jne 0x477e8b
push 0x104
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x477e81
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 0x477dff
push str.getaddrinfo
push edi
call ebx
test eax, eax
jne 0x477e46
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 0x477e7d
push str.getaddrinfo
push edi
call ebx
test eax, eax
je 0x477e7a
xor esi, esi
push dword [esp + esi*8 + 0x10]
push edi
call ebx
mov dword [esp + esi*8 + 0x14], eax
test eax, eax
je 0x477e7a
inc esi
cmp esi, 3
jl 0x477e48
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.004777a0], eax
jmp 0x477e7d
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.00579e58
add esp, 0x230
ret 4
Function at 0x478140
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 0x4781cf
cmp word [ebx + 8], 2
push ebp
push esi
jne 0x4781a2
cmp word [ebx + 0xa], 4
jne 0x4781a2
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x4781a2
mov ebp, dword [esp + 0x1c]
push dword [eax]
push dword [esp + 0x24]
push ebp
push dword [esp + 0x24]
call fcn.00478060
mov dword [edi], eax
test eax, eax
je 0x4781c3
add esi, 4
lea edi, [eax + 0x1c]
mov eax, dword [esi]
test eax, eax
jne 0x478180
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.0x4781df.11001
jmp dword [eax*4 + 0x478204]
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 0x47a650
Capabilities:
Generate random numbers via winapi

Disassembly:
mov eax, 4
call fcn.0057a200
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push 1
push esi
xor edi, edi
call fcn.0047a330
mov ebx, eax
push ebx
push esi
call fcn.0047a240
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x47a6d9
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 0x47a6b3
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.0047a2d0
push esi
call fcn.0047a420
mov edi, eax
add esp, 0x10
test edi, edi
je 0x47a6d9
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 1
push esi
call fcn.0047a330
mov ebx, eax
push ebx
push esi
call fcn.0047a240
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x47a748
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 0x47a72e
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.0047a2d0
push esi
call fcn.0047a420
add esp, 0x10
mov edi, eax
test edi, edi
jne 0x47a6d1
push esi
call fcn.0047a420
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x47da50
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.004c9030
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 0x47db26
call fcn.00464f60
push str.BIO_new_file
push 0x43
push str.crypto_bio_bss_file.c
call fcn.00464fb0
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.00464fe0
add esp, 0x14
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
cmp dword [eax], 2
je 0x47daf9
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
cmp dword [eax], 6
je 0x47daf9
call fcn.00464f60
push str.BIO_new_file
push 0x4d
push str.crypto_bio_bss_file.c
call fcn.00464fb0
push edi
push 0x80002
push 0x20
call fcn.00464fe0
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
ret
call fcn.00464f60
push str.BIO_new_file
push 0x4b
push str.crypto_bio_bss_file.c
call fcn.00464fb0
push 0
push 0x80
push 0x20
call fcn.00464fe0
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x59a758
call fcn.004575c0
mov esi, eax
add esp, 4
test esi, esi
jne 0x47db48
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.00456ee0
push edi
push ebx
push 0x6a
push esi
call fcn.00456f10
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x494760
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x14
call fcn.0057a200
mov eax, dword [esp + 0x2c]
push esi
mov esi, dword [eax]
test esi, esi
jns 0x494780
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 0x4947ac
mov ecx, dword [esp + 0x38]
test edi, edi
je 0x4947ac
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 0x494797
mov edx, dword [esp + 0x40]
cmp edi, 0x10
jb 0x494845
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 0x4947f4
mov ecx, dword [esp + 0x38]
push dword [esp + 0x34]
push ecx
push ecx
call edx
add esp, 0xc
cmp esi, 0x10
jae 0x494827
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 0x494815
mov edx, dword [esp + 0x40]
sub edi, 0x10
add ebx, 0x10
add ebp, 0x10
xor esi, esi
sub dword [esp + 0x10], 1
jne 0x4947f0
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
test edi, edi
je 0x494877
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 0x494865
mov eax, dword [esp + 0x3c]
pop edi
pop ebp
pop ebx
mov dword [eax], esi
pop esi
add esp, 0x14
ret
Function at 0x494d60
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 8]
mov eax, dword [edi + 0x38]
or eax, dword [edi + 0x3c]
je 0x494d74
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 0x494e29
jb 0x494d99
test eax, eax
jne 0x494e29
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 0x494ddc
nop
test esi, esi
je 0x494dc5
mov al, byte [ebp]
dec esi
xor byte [ebx + edi + 0x40], al
inc ebp
inc ebx
and ebx, 0xf
jne 0x494db0
jmp 0x494dc9
test ebx, ebx
jne 0x494e1c
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 0x494e04
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 0x494e1c
xor ecx, ecx
mov ebx, esi
test esi, esi
je 0x494e1c
mov al, byte [ecx + ebp]
xor byte [edi + ecx + 0x40], al
inc ecx
cmp ecx, esi
jb 0x494e10
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 0x495c00
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 0x495c62
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 0x495d64
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 0x495cfa
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 0x495cb0
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 0x495ca0
test edi, edi
je 0x495d1f
xor ecx, ecx
test edi, edi
je 0x495d0f
mov al, byte [ecx + ebx]
xor byte [ecx + ebp], al
inc ecx
cmp ecx, edi
jb 0x495d04
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 0x4961e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc
call fcn.0057a200
lea eax, [esp]
push eax
call fcn.00495dd0
mov eax, dword [esp + 8]
add esp, 4
test eax, eax
je 0x496203
add esp, 0xc
jmp eax
push ebx
mov ebx, dword [esp + 0x20]
push esi
xor esi, esi
test ebx, ebx
je 0x496243
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 0x496220
pop edi
pop ebp
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x499300
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 4
call fcn.0057a200
push edi
mov edi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
test edi, edi
je 0x499380
mov cl, byte [edi]
test cl, cl
je 0x499380
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 0x499330
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 0x4995c0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 4
call fcn.0057a200
push edi
mov edi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
test edi, edi
je 0x499643
mov cl, byte [edi]
test cl, cl
je 0x499643
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 0x4995f0
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 0x4a11a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa0
call fcn.0057a200
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.004bc520
push ebp
push 0
push edi
mov dword [esp + 0x2c], eax
call fcn.004e1910
add esp, 0x10
test eax, eax
je 0x4a1372
mov edi, dword [esp + 0xcc]
inc ebp
test edi, edi
mov edi, dword [esp + 0x10]
je 0x4a1254
push 0
push esi
push edi
push dword [esp + 0x28]
call fcn.004581e0
add esp, 0x10
test eax, eax
jle 0x4a1373
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 0x4a127d
add byte [ebx + eax], 1
jne 0x4a127d
sub eax, 1
jns 0x4a1272
push 0
push dword [esp + 0x18]
lea eax, [esp + 0x34]
push 0
push eax
push esi
push edi
call fcn.0047fda0
add esp, 0x18
test eax, eax
je 0x4a1373
push 0
push dword [esp + 0x18]
lea eax, [esp + 0x74]
push 0
push eax
push esi
push ebx
call fcn.0047fda0
add esp, 0x18
test eax, eax
je 0x4a1373
xor eax, eax
test esi, esi
jle 0x4a131e
cmp esi, 0x20
jb 0x4a130d
mov ecx, esi
and ecx, 0x8000001f
jns 0x4a12d5
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 0x4a12e0
cmp eax, esi
jge 0x4a131e
mov cl, byte [esp + eax + 0x6c]
xor byte [esp + eax + 0x2c], cl
inc eax
cmp eax, esi
jl 0x4a1311
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.0046e5e0
add esp, 0xc
test eax, eax
je 0x4a1373
push dword [esp + 0x18]
push dword [esp + 0x28]
push edi
call fcn.004e1960
add esp, 0xc
test eax, eax
jg 0x4a1394
jne 0x4a1373
push ebp
push 0
push dword [esp + 0x20]
mov edi, 1
call fcn.004e1910
add esp, 0xc
test eax, eax
jne 0x4a1233
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.00579e58
add esp, 0xa0
ret
mov eax, 1
jmp 0x4a1375
Function at 0x4a6d80
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
cmp ebp, 2
je 0x4a6e57
mov edi, dword [esp + 0x10]
test edi, edi
je 0x4a6e09
push edi
push 0
lea eax, [esp + 0x28]
push eax
push 0
call fcn.004a5b80
add esp, 0x10
cmp dword [esp + 0x20], 0xffffffff
je 0x4a6dde
call fcn.00464f60
push str.ossl_ecx_key_op
push 0xa6
push str.cryptoececx_backend.c
call fcn.00464fb0
push 0
push 0x66
push 0x10
call fcn.00464fe0
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebp
ret
push dword [edi]
mov esi, dword [esp + 0x20]
call fcn.00462da0
add esp, 4
test esi, esi
jne 0x4a6df4
mov esi, eax
jmp 0x4a6e0d
cmp esi, eax
je 0x4a6e0d
call fcn.00464f60
push str.ossl_ecx_key_op
push 0xac
jmp 0x4a6dc0
mov esi, dword [esp + 0x1c]
cmp dword [esp + 0x14], 0
je 0x4a6e43
test esi, esi
je 0x4a6e43
cmp esi, 0x40a
je 0x4a6e38
cmp esi, 0x43f
je 0x4a6e38
xor eax, eax
cmp esi, 0x40b
setne al
add eax, 0x38
jmp 0x4a6e3d
mov eax, 0x20
cmp dword [esp + 0x18], eax
je 0x4a6e5b
call fcn.00464f60
push str.ossl_ecx_key_op
push 0xb2
jmp 0x4a6dc0
mov esi, dword [esp + 0x1c]
cmp esi, 0x40a
je 0x4a6e7f
cmp esi, 0x43f
je 0x4a6e7f
xor eax, eax
cmp esi, 0x40b
setne al
lea eax, [eax*2 + 1]
jmp 0x4a6e8f
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.00488bf0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x4a6ed9
call fcn.00464f60
push str.ossl_ecx_key_op
push 0xb9
push str.cryptoececx_backend.c
call fcn.00464fb0
push ebx
push 0x80010
push 0x10
call fcn.00464fe0
add esp, 0x18
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
test ebp, ebp
jne 0x4a6ef9
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.00488b80
mov edi, eax
add esp, 4
test edi, edi
jne 0x4a6f2c
call fcn.00464f60
push str.ossl_ecx_key_op
push 0xc3
push str.cryptoececx_backend.c
call fcn.00464fb0
push edi
push 0x80010
jmp 0x4a7003
cmp ebp, 2
jne 0x4a6f9e
test esi, esi
je 0x4a6fd2
cmp esi, 0x40a
je 0x4a6f59
cmp esi, 0x43f
je 0x4a6f59
xor eax, eax
cmp esi, 0x40b
setne al
add eax, 0x38
jmp 0x4a6f5e
mov eax, 0x20
push 0
push eax
push edi
push dword [esp + 0x34]
call fcn.00458590
add esp, 0x10
test eax, eax
jle 0x4a700d
cmp esi, 0x40a
jne 0x4a6f8d
mov al, byte [edi + 0x1f]
and byte [edi], 0xf8
and al, 0x3f
or al, 0x40
mov byte [edi + 0x1f], al
jmp 0x4a6fd2
cmp esi, 0x40b
jne 0x4a6fd2
and byte [edi], 0xfc
or byte [edi + 0x37], 0x80
jmp 0x4a6fd2
cmp esi, 0x40a
je 0x4a6fbe
cmp esi, 0x43f
je 0x4a6fbe
xor eax, eax
cmp esi, 0x40b
setne al
add eax, 0x38
jmp 0x4a6fc3
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.004a7020
add esp, 4
test eax, eax
jne 0x4a6ef2
call fcn.00464f60
push str.ossl_ecx_key_op
push 0xd7
push str.cryptoececx_backend.c
call fcn.00464fb0
push 0
push 0xa6
push 0x10
call fcn.00464fe0
add esp, 0x18
push ebx
call fcn.00488ba0
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x4ab8f0
Capabilities:
Encrypt data using curve25519

Disassembly:
mov eax, 0xe4
call fcn.0057a200
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.004808c0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4ab972
push 0
push edi
push 0
lea eax, [esp + 0xb8]
push eax
push 0x20
push esi
call fcn.0047fda0
push edi
mov esi, eax
call fcn.004808f0
add esp, 0x1c
test esi, esi
jne 0x4ab98c
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.00579e58
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.004ab0b0
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.004ab030
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.00579e58
add esp, 0xe4
ret
Function at 0x4b9160
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x18], esi
jne 0x4b9229
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
cmp al, 0x6a
je 0x4b9181
cmp al, 0x6b
jne 0x4b9229
inc ecx
cmp al, 0x6b
jne 0x4b91e2
add esi, 0xfffffffd
xor eax, eax
test esi, esi
jle 0x4b91a2
nop
mov dl, byte [ecx]
inc ecx
cmp dl, 0xba
je 0x4b91a2
cmp dl, 0xbb
jne 0x4b91b6
inc eax
cmp eax, esi
jl 0x4b9190
sub esi, eax
test eax, eax
jne 0x4b91e5
call fcn.00464f60
push str.RSA_padding_check_X931
push 0x56
jmp 0x4b91c2
call fcn.00464f60
push str.RSA_padding_check_X931
push 0x4e
push str.crypto_rsa_rsa_x931.c
call fcn.00464fb0
push 0
push 0x8a
push 4
call fcn.00464fe0
add esp, 0x18
or eax, 0xffffffff
pop esi
ret
add esi, 0xfffffffe
cmp byte [esi + ecx], 0xcc
je 0x4b9217
call fcn.00464f60
push str.RSA_padding_check_X931
push 0x5f
push str.crypto_rsa_rsa_x931.c
call fcn.00464fb0
push 0
push 0x8b
push 4
call fcn.00464fe0
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.00464f60
push str.RSA_padding_check_X931
push 0x43
push str.crypto_rsa_rsa_x931.c
call fcn.00464fb0
push 0
push 0x89
push 4
call fcn.00464fe0
add esp, 0x18
or eax, 0xffffffff
pop esi
ret