joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5c38b0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x2c
call fcn.006dbb70
mov eax, dword [0x790f00]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x38]
push ebx
push ebp
mov ebp, dword [esp + 0x3c]
push esi
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x1c], eax
mov bl, byte [esi]
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
mov byte [esp + 0xf], bl
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], eax
push edi
test bl, 0x40
jne 0x5c3905
push eax
lea eax, [esi + 0x10]
push eax
push esi
call ecx
add esp, 0xc
movzx eax, bl
mov ecx, 0xf
and eax, 7
xor edx, edx
sub ecx, eax
mov dword [esp + 0x24], eax
mov byte [esi], al
cmp ecx, 0xf
jae 0x5c3933
nop
movzx eax, byte [esi + ecx]
or edx, eax
mov byte [esi + ecx], 0
inc ecx
shl edx, 8
cmp ecx, 0xf
jb 0x5c3920
movzx eax, byte [esi + 0xf]
mov edi, dword [esp + 0x4c]
or edx, eax
mov byte [esi + 0xf], 1
cmp edx, edi
je 0x5c395b
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.006daf70
add esp, 0x2c
ret
mov ebx, edi
shr ebx, 4
test ebx, ebx
je 0x5c3996
lea eax, [esi + 0x10]
push eax
push esi
push dword [esp + 0x1c]
push ebx
push dword [esp + 0x28]
push ebp
call dword [esp + 0x38]
shl ebx, 4
add esp, 0x18
add dword [esp + 0x18], ebx
add ebp, ebx
sub edi, ebx
je 0x5c39ee
shr ebx, 4
push ebx
push esi
call fcn.005c4210
add esp, 8
jmp 0x5c399a
test edi, edi
je 0x5c39ee
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x28]
push ebx
push eax
push esi
call dword [esp + 0x28]
add esp, 0xc
test edi, edi
je 0x5c39dd
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x28]
mov eax, ecx
lea edx, [esi + 0x10]
sub ebp, eax
sub ebx, eax
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
lea edx, [edx + 1]
mov byte [ebx + ecx - 1], al
xor byte [edx - 1], al
sub edi, 1
jne 0x5c39c1
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
lea eax, [esi + 0x10]
push ebx
push eax
push eax
call ebp
add esp, 0xc
jmp 0x5c39f6
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
mov ecx, 0xf
sub ecx, dword [esp + 0x24]
cmp ecx, 0x10
jae 0x5c3a1a
mov eax, 0x10
sub eax, ecx
push eax
lea eax, [ecx + esi]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push ebx
lea eax, [esp + 0x2c]
push eax
push esi
call ebp
mov eax, dword [esp + 0x34]
add esp, 0xc
xor dword [esi + 0x10], eax
mov eax, dword [esp + 0x2c]
xor dword [esi + 0x14], eax
mov eax, dword [esp + 0x30]
xor dword [esi + 0x18], eax
mov eax, dword [esp + 0x34]
xor dword [esi + 0x1c], eax
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x38]
pop edi
mov byte [esi], al
xor eax, eax
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.006daf70
add esp, 0x2c
ret
Function at 0x5c5860
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.006dbb70
mov edx, dword [esp + 0x1c]
xor ecx, ecx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x1c]
test edx, edx
je 0x5c59b4
push ebx
push edi
mov edi, dword [esp + 0x30]
cmp edx, 8
jb 0x5c5997
lea eax, [ebp - 1]
lea ebx, [edi - 1]
add eax, edx
add ebx, edx
cmp edi, eax
ja 0x5c58a7
cmp ebx, ebp
jae 0x5c5997
lea eax, [edx - 1]
add eax, esi
cmp edi, eax
ja 0x5c58b8
cmp ebx, esi
jae 0x5c5997
cmp edx, 0x40
jb 0x5c5958
mov ebx, edx
mov eax, edx
and ebx, 0x3f
mov edx, edi
sub edx, ebp
mov dword [esp + 0x1c], ebx
sub eax, ebx
mov dword [esp + 0x10], edx
mov ebx, esi
mov dword [esp + 0x18], eax
sub ebx, ebp
lea eax, [ebp + 0x10]
mov ebp, dword [esp + 0x10]
mov edx, esi
sub edx, edi
mov dword [esp + 0x14], edx
lea edx, [edi + 0x20]
movups xmm0, xmmword [eax - 0x10]
mov edi, dword [esp + 0x14]
lea eax, [eax + 0x40]
movups xmm1, xmmword [ecx + esi]
lea edx, [edx + 0x40]
xorps xmm1, xmm0
movups xmmword [edx - 0x60], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [ebx + eax - 0x40]
xorps xmm1, xmm0
movups xmmword [eax + ebp - 0x40], xmm1
movups xmm1, xmmword [edi + edx - 0x40]
mov edi, dword [esp + 0x30]
movups xmm0, xmmword [eax - 0x30]
xorps xmm1, xmm0
movups xmmword [edx - 0x40], xmm1
movups xmm1, xmmword [esi + ecx + 0x30]
add ecx, 0x40
movups xmm0, xmmword [eax - 0x20]
xorps xmm1, xmm0
movups xmmword [edx - 0x30], xmm1
cmp ecx, dword [esp + 0x18]
jb 0x5c58f0
cmp dword [esp + 0x1c], 8
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
jb 0x5c5993
jmp 0x5c595c
mov ebx, esi
sub ebx, ebp
mov eax, edx
and eax, 0xfffffff8
sub edi, ebp
mov dword [esp + 0x1c], eax
lea eax, [ecx + ebp]
mov dword [esp + 0x2c], edi
nop
movq xmm1, qword [eax + ebx]
lea eax, [eax + 8]
movq xmm0, qword [eax - 8]
add ecx, 8
xorps xmm1, xmm0
movq qword [eax + edi - 8], xmm1
cmp ecx, dword [esp + 0x1c]
jb 0x5c5970
mov edi, dword [esp + 0x30]
cmp ecx, edx
jae 0x5c59b2
sub esi, ebp
lea eax, [ecx + ebp]
sub edi, ebp
sub edx, ecx
mov cl, byte [esi + eax]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
mov byte [edi + eax - 1], cl
sub edx, 1
jne 0x5c59a0
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x10
ret
Function at 0x5c5ad0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 8
call fcn.006dbb70
mov ecx, dword [esp + 0xc]
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
lea ebp, [ecx + 0x40]
mov esi, dword [ecx + 0x14]
cmp edi, esi
ja 0x5c5afe
shl edi, 4
add edi, dword [ebp]
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 8
ret
mov edx, dword [ecx + 0x18]
cmp edi, edx
jb 0x5c5b38
mov eax, edi
sub eax, edx
add eax, 4
and eax, 0xfffffffc
add eax, edx
push 0x71
mov dword [ecx + 0x18], eax
push str.cryptomodesocb128.c
shl eax, 4
push eax
push dword [ebp]
call fcn.005b6dc0
add esp, 0x10
test eax, eax
jne 0x5c5b35
pop edi
pop esi
pop ebp
add esp, 8
ret
mov dword [ebp], eax
mov eax, esi
shl eax, 4
mov dword [esp + 0x10], eax
mov eax, edi
mov edi, dword [esp + 0x10]
sub eax, esi
mov dword [esp + 0xc], eax
push ebx
nop
mov eax, dword [ebp]
add eax, edi
mov bl, byte [eax]
lea esi, [eax + 0x10]
push esi
shr bl, 7
push 1
neg bl
push eax
and bl, 0x87
call fcn.005c57d0
xor byte [esi + 0xf], bl
add esp, 0xc
add edi, 0x10
sub dword [esp + 0x10], 1
jne 0x5c5b50
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
pop ebx
mov dword [eax + 0x14], edi
shl edi, 4
add edi, dword [eax + 0x40]
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 8
ret
Function at 0x5c6a50
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
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 + 0x10], 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 esi, dword [esp + 0x1c]
test esi, esi
jle 0x5c6b66
push edi
cmp esi, 4
jb 0x5c6b41
mov ecx, dword [ebp]
lea edi, [esi - 1]
mov edx, dword [ebx]
lea ebp, [esi - 1]
lea ebp, [ecx + ebp*4]
cmp edx, ebp
lea edi, [edx + edi*4]
mov ebp, dword [esp + 0x18]
ja 0x5c6ae4
cmp edi, ecx
jae 0x5c6b41
cmp edx, ebx
ja 0x5c6aec
cmp edi, ebx
jae 0x5c6b41
cmp edx, ebp
ja 0x5c6af4
cmp edi, ebp
jae 0x5c6b41
lea edi, [esi - 1]
lea edi, [ecx + edi*4]
cmp ecx, ebx
ja 0x5c6b02
cmp edi, ebx
jae 0x5c6b41
cmp ecx, ebp
ja 0x5c6b0a
cmp edi, ebp
jae 0x5c6b41
mov edi, esi
and edi, 0xfffffffc
nop
movups xmm3, xmmword [edx + eax*4]
movups xmm2, xmmword [ecx + eax*4]
movaps xmm1, xmm3
xorps xmm1, xmm2
andps xmm1, xmm4
movaps xmm0, xmm1
xorps xmm1, xmm3
xorps xmm0, xmm2
movups xmmword [ecx + eax*4], xmm0
movups xmmword [edx + eax*4], xmm1
add eax, 4
cmp eax, edi
jl 0x5c6b10
mov dword [esp + 0x18], eax
cmp eax, esi
jge 0x5c6b65
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 0x5c6b41
pop edi
pop esi
pop ebp
pop ebx
ret

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

Disassembly:
mov eax, 4
call fcn.006dbb70
push edi
mov edi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
test edi, edi
je 0x5c9890
mov cl, byte [edi]
test cl, cl
je 0x5c9890
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 0x5c9840
pop esi
mov ecx, eax
pop ebx
shr ecx, 0x10
xor eax, ecx
pop edi
pop ecx
ret
xor eax, eax
pop edi
pop ecx
ret
Function at 0x5c9910
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 4
call fcn.006dbb70
push edi
mov edi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
test edi, edi
je 0x5c9993
mov cl, byte [edi]
test cl, cl
je 0x5c9993
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 0x5c9940
pop esi
mov ecx, eax
pop ebx
shr ecx, 0x10
xor eax, ecx
pop edi
pop ecx
ret
xor eax, eax
pop edi
pop ecx
ret
Function at 0x5e63c0
Capabilities:
Initialize winsock library

Disassembly:
cmp dword [0x793da8], 0
jne 0x5e6459
push 0x190
push 0
push 0x793db0
mov dword [0x793da8], 1
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x793db0
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x5e6459
call fcn.005bc180
push str.BIO_sock_init
push 0x94
push str.crypto_bio_bio_sock.c
call fcn.005bc280
add esp, 0xc
push str.calling_wsastartup__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.005bc330
call fcn.005bc180
push str.BIO_sock_init
push 0x96
push str.crypto_bio_bio_sock.c
call fcn.005bc280
push 0
push 0x7a
push 0x20
call fcn.005bc330
add esp, 0x24
or eax, 0xffffffff
ret
mov eax, 1
ret

Function at 0x5e6460
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 0x5e64b5
call fcn.005bc180
push str.BIO_socket_ioctl
push 0xd1
push str.crypto_bio_bio_sock.c
call fcn.005bc280
add esp, 0xc
push str.calling_ioctlsocket__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.005bc330
add esp, 0xc
xor eax, eax
test esi, esi
pop esi
sete al
ret

Function at 0x5e64c0
Capabilities:
Get socket status

Disassembly:
mov eax, 0x110
call fcn.006dbb70
mov eax, dword [0x790f00]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebp
mov ebp, dword [esp + 0x11c]
push edi
mov edi, dword [esp + 0x11c]
cmp edi, 0x3f
ja 0x5e65ad
push esi
mov esi, dword [esp + 0x128]
mov eax, esi
or eax, dword [esp + 0x12c]
jne 0x5e6521
pop esi
pop edi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.006daf70
add esp, 0x110
ret
push 0
call sub.api_ms_win_crt_time_l1_1_0.dll__time64
add esp, 4
cmp dword [esp + 0x12c], edx
jg 0x5e6554
jl 0x5e653a
cmp esi, eax
jae 0x5e6554
pop esi
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.006daf70
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]
pop esi
pop edi
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.006daf70
add esp, 0x110
ret
mov ecx, dword [esp + 0x114]
or eax, 0xffffffff
pop edi
pop ebp
xor ecx, esp
call fcn.006daf70
add esp, 0x110
ret
Function at 0x5e7110
Capabilities:
Get common file path

Disassembly:
mov eax, 0x230
call fcn.006dbb70
mov eax, dword [0x790f00]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x793f48], 0
mov dword [esp], 0x71cd48
mov dword [esp + 4], 0x5e6b10
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x5e6ec0
mov dword [esp + 0x10], 0x71cd60
mov dword [esp + 0x14], 0x5e6ac0
jne 0x5e7276
push 0x104
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x5e726c
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 0x5e71df
push 0x71cd48
push edi
call ebx
test eax, eax
jne 0x5e7226
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 0x5e7268
push 0x71cd48
push edi
call ebx
test eax, eax
je 0x5e7265
xor esi, esi
lea eax, [esp + 0x10]
nop dword [eax]
push dword [eax + esi*8]
push edi
call ebx
mov dword [esp + esi*8 + 0x14], eax
test eax, eax
je 0x5e7265
inc esi
lea eax, [esp + 0x10]
cmp esi, 3
jl 0x5e7230
mov eax, dword [esp + 0x14]
mov dword [0x78f534], eax
mov eax, dword [esp + 0x1c]
mov dword [0x78f53c], eax
mov eax, dword [esp + 0x24]
mov dword [0x78f544], eax
jmp 0x5e7268
push edi
call ebp
pop edi
pop esi
pop ebp
pop ebx
mov dword [0x793f48], 1
movzx eax, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
mov eax, dword [eax*8 + 0x78f534]
call fcn.006daf70
add esp, 0x230
ret 4
Function at 0x5e72a0
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x820
call fcn.006dbb70
mov eax, dword [0x790f00]
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 sub.VCRUNTIME140.dll_memset
push 0x400
lea eax, [esp + 0x439]
mov byte [esp + 0x438], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x400
push esi
lea eax, [esp + 0x44]
push 0x401
push eax
mov dword [esp + 0x3c], eax
lea ebp, [esp + 0x450]
call sub.api_ms_win_crt_string_l1_1_0.dll_strncpy_s
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 0x5e747f
cmp word [ebx + 8], 2
jne 0x5e73a2
cmp word [ebx + 0xa], 4
jne 0x5e73a2
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x5e73a2
nop dword [eax]
nop dword [eax + eax]
push dword [eax]
push dword [esp + 0x844]
push dword [esp + 0x844]
push dword [esp + 0x844]
call fcn.005e74d0
mov dword [edi], eax
test eax, eax
je 0x5e7478
add esi, 4
lea edi, [eax + 0x1c]
mov eax, dword [esi]
test eax, eax
jne 0x5e7370
push 0x400
push dword [ebx]
push 0x401
push ebp
call sub.api_ms_win_crt_string_l1_1_0.dll_strncpy_s
mov ebx, dword [esp + 0x28]
xor esi, esi
add esp, 0x10
cmp dword [ebx], esi
jne 0x5e742f
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5e73c6
sub ecx, edx
je case.0x5e748f.11003
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov eax, edi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x5e7400
test dl, dl
je 0x5e73fc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x5e7400
add eax, 2
add ecx, 2
test dl, dl
jne 0x5e73e0
xor eax, eax
jmp 0x5e7405
sbb eax, eax
or eax, 1
test eax, eax
je case.0x5e748f.11003
mov esi, dword [esp + 0x10]
inc esi
mov dword [esp + 0x10], esi
cmp esi, 0x10
je case.0x5e748f.11003
mov esi, dword [esp + 0x1c]
mov eax, edi
mov dword [esp + 0x14], ebp
mov ebp, eax
jmp 0x5e7330
mov esi, 0x2afb
jmp 0x5e74a2
cmp dword [esp + 0x844], esi
je 0x5e74a2
mov ecx, ebp
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5e7440
sub ecx, edx
lea ebx, [ecx + 1]
push ebx
push 1
call sub.api_ms_win_crt_heap_l1_1_0.dll_calloc
mov edi, eax
add esp, 8
test edi, edi
je 0x5e7468
push ebp
push ebx
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy_s
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 0x5e74a2
mov esi, 8
jmp 0x5e74a2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x5e748f.11001
jmp dword [eax*4 + 0x5e74c0]
mov esi, 0x2afa
jmp 0x5e74a2
mov esi, 0x2af9
mov ecx, dword [esp + 0x82c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.006daf70
add esp, 0x820
ret 0x18
Function at 0x5fd1e0
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.0063c5b0
push 0x62
push edi
mov ebx, eax
call sub.VCRUNTIME140.dll_strchr
add esp, 0x10
neg eax
sbb esi, esi
and esi, 0xfffffff0
add esi, 0x11
test ebx, ebx
jne 0x5fd292
call fcn.005bc180
push str.BIO_new_file
push 0x43
push str.crypto_bio_bss_file.c
call fcn.005bc280
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.005bc330
add esp, 0x14
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
cmp dword [eax], 2
je 0x5fd262
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
cmp dword [eax], 6
je 0x5fd262
mov esi, 0x80002
lea edi, [ebx + 0x4d]
jmp 0x5fd26a
mov esi, 0x80
lea edi, [esi - 0x35]
call fcn.005bc180
push str.BIO_new_file
push edi
push str.crypto_bio_bss_file.c
call fcn.005bc280
push 0
push esi
push 0x20
call fcn.005bc330
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x72022c
call fcn.005caa80
mov edi, eax
add esp, 4
test edi, edi
jne 0x5fd2b4
push ebx
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 edi
call fcn.005ca310
push ebx
push esi
push 0x6a
push edi
call fcn.005ca340
add esp, 0x18
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x60b2b0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.006dbb70
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 0x60b319
test ebx, ebx
je 0x60b2f9
lea edx, [ebp + 0x30]
add edx, ecx
cmp ecx, 0x40
jae 0x60b2f9
mov al, byte [edx]
inc ecx
xor al, byte [esi]
inc edx
mov byte [edi], al
inc esi
inc edi
sub ebx, 1
jne 0x60b2e5
mov dword [ebp + 0x70], ecx
test ebx, ebx
je 0x60b3d4
cmp ecx, 0x40
jne 0x60b319
mov dword [ebp + 0x70], 0
add dword [ebp + 0x20], 1
jne 0x60b319
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 0x60b387
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.00411f00
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 0x60b380
inc dword [ebp + 0x24]
mov edx, eax
cmp ebx, 0x40
jae 0x60b333
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x60b3d4
push 0x40
lea eax, [ebp + 0x30]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp + 0x20]
push eax
push ebp
lea eax, [ebp + 0x30]
push 0x40
push eax
push eax
call fcn.00411f00
add esp, 0x20
xor edx, edx
test ebx, ebx
je 0x60b3d1
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 0x60b3c0
mov dword [ebp + 0x70], ebx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret
Function at 0x6109e0
Capabilities:
Hash data using sha1

Disassembly:
mov eax, 0x40
call fcn.006dbb70
mov eax, dword [0x790f00]
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 0x610a1c
pop edi
mov eax, 0xfffffffe
pop esi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.006daf70
add esp, 0x40
ret
test esi, esi
je 0x610b2b
cmp dword [esp + 0x54], 0x30
jne 0x610b2b
push 0x30
push edi
push esi
call fcn.006108e0
add esp, 0xc
test eax, eax
jle 0x610b2b
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.006108e0
add esp, 0xc
test eax, eax
je 0x610b2b
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00610740
add esp, 8
test eax, eax
je 0x610b2b
push 0x4c
lea eax, [esi + 0x14]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
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.006108e0
add esp, 0x18
test eax, eax
jle 0x610b2b
movaps xmm0, xmmword [str.pem_read_bio_key_decoder]
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.006108e0
add esp, 0xc
test eax, eax
je 0x610b2b
push 0x14
lea eax, [esp + 0x34]
push eax
push esi
call fcn.006108e0
add esp, 0xc
test eax, eax
je 0x610b2b
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.006daf70
add esp, 0x40
ret
mov ecx, dword [esp + 0x44]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.006daf70
add esp, 0x40
ret