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

Disassembly:
push ebx
push edi
push esi
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
test edi, edi
je 0x4cd471
mov ecx, dword [esp + 0x10]
mov edx, edi
and edx, 3
cmp edi, 4
jae 0x4cd405
xor esi, esi
jmp 0x4cd44a
and edi, 0xfffffffc
xor esi, esi
nop word [eax + eax]
movzx ebx, byte [ecx + esi]
xor ebx, eax
imul eax, ebx, 0x1000193
movzx ebx, byte [ecx + esi + 1]
xor ebx, eax
imul eax, ebx, 0x1000193
movzx ebx, byte [ecx + esi + 2]
xor ebx, eax
imul eax, ebx, 0x1000193
movzx ebx, byte [ecx + esi + 3]
xor ebx, eax
imul eax, ebx, 0x1000193
add esi, 4
cmp edi, esi
jne 0x4cd410
test edx, edx
je 0x4cd471
add ecx, esi
xor esi, esi
nop word cs:[eax + eax]
movzx edi, byte [ecx + esi]
xor edi, eax
imul eax, edi, 0x1000193
inc esi
cmp edx, esi
jne 0x4cd460
pop esi
pop edi
pop ebx
ret

Function at 0x4cd480
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
push ebx
push edi
push esi
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4cd4bd
mov ebx, dword [esp + 0x14]
xor ebp, ebp
nop word cs:[eax + eax]
movzx eax, byte [ebx + ebp]
push eax
call fcn.004c7ac0
add esp, 4
movzx eax, al
xor eax, esi
imul esi, eax, 0x1000193
inc ebp
cmp edi, ebp
jne 0x4cd4a0
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4d0c50
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push edi
push esi
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov esi, ecx
and esi, 0xff
je 0x4d0c81
test dl, 3
je 0x4d0ce3
movzx eax, byte [edx]
test al, al
sete ah
cmp al, cl
sete al
or al, ah
je 0x4d0c90
mov eax, edx
pop esi
pop edi
pop ebx
ret
push 0
push edx
call fcn.004d1990
add esp, 8
pop esi
pop edi
pop ebx
ret
lea eax, [edx + 1]
test al, 3
je 0x4d0ce1
movzx ebx, byte [eax]
test bl, bl
sete bh
cmp bl, cl
sete bl
or bl, bh
jne 0x4d0d2d
lea eax, [edx + 2]
test al, 3
je 0x4d0ce1
movzx ebx, byte [eax]
test bl, bl
sete bh
cmp bl, cl
sete bl
or bl, bh
jne 0x4d0d2d
lea eax, [edx + 3]
test al, 3
je 0x4d0ce1
movzx ebx, byte [eax]
test bl, bl
sete bh
cmp bl, cl
sete bl
or bl, bh
jne 0x4d0d2d
add edx, 4
jmp 0x4d0ce3
mov edx, eax
imul esi, esi, 0x1010101
add edx, 0xfffffffb
mov eax, edx
nop
mov edi, dword [eax + 5]
mov edx, 0x1010100
sub edx, edi
or edx, edi
xor edi, esi
mov ebx, 0x1010100
sub ebx, edi
or ebx, edi
and edx, ebx
not edx
add eax, 4
test edx, 0x80808080
je 0x4d0cf0
jmp 0x4d0d24
cmp dl, cl
je 0x4d0d2d
movzx edx, byte [eax + 1]
inc eax
test dl, dl
jne 0x4d0d20
pop esi
pop edi
pop ebx
ret

Function at 0x4d1990
Capabilities:
Encode data using xor

Disassembly:
push edi
push esi
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
test dl, 3
je 0x4d19d0
cmp byte [edx], cl
jne 0x4d19a8
mov eax, edx
pop esi
pop edi
ret
lea eax, [edx + 1]
test al, 3
je 0x4d19ce
cmp byte [eax], cl
je 0x4d1a0a
lea eax, [edx + 2]
test al, 3
je 0x4d19ce
cmp byte [eax], cl
je 0x4d1a0a
lea eax, [edx + 3]
test al, 3
je 0x4d19ce
cmp byte [eax], cl
je 0x4d1a0a
add edx, 4
jmp 0x4d19d0
mov edx, eax
movzx eax, cl
imul eax, eax, 0x1010101
add edx, 0xfffffffb
nop dword [eax]
mov esi, dword [edx + 5]
xor esi, eax
mov edi, 0x1010100
sub edi, esi
or edi, esi
not edi
add edx, 4
test edi, 0x80808080
je 0x4d19e0
nop dword [eax + eax]
lea eax, [edx + 1]
cmp byte [edx + 1], cl
mov edx, eax
jne 0x4d1a00
pop esi
pop edi
ret
Function at 0x4e3df0
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, 0x1004
call fcn.00789f40
mov esi, dword [esp + 0x1018]
cmp dword [esp + 0x1020], 1
jne 0x4e3ea3
push 0x9d57a4
push dword [esp + 0x1020]
call fcn.00788c60
add esp, 8
mov dword [esp], eax
test eax, eax
je 0x4e3eac
lea eax, [esi + 4]
push eax
call fcn.004e4ab0
add esp, 4
xor edi, edi
test eax, eax
je 0x4e3ed5
mov ebp, eax
lea ebx, [esp + 8]
nop
mov dword [esp + 4], 0
mov ecx, esi
mov edx, ebp
push 1
lea eax, [esp + 8]
push eax
push 0xffc
push ebx
call fcn.004e3b20
add esp, 0x10
test eax, eax
jne 0x4e3ed3
mov edi, esi
mov esi, dword [esp + 4]
push dword [esp]
push esi
push 1
push ebx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
cmp eax, esi
jne 0x4e3ec2
push ebp
call fcn.004e4ac0
add esp, 4
mov ebp, eax
test eax, eax
mov esi, edi
jne 0x4e3e50
xor edi, edi
jmp 0x4e3ed5
push str.Unsupported_type_of_known_host_information_store
push 0xffffffffffffffdf
jmp 0x4e3eb3
push str.Failed_to_open_file
push 0xfffffffffffffff0
push dword [esi]
call fcn.004e44a0
add esp, 0x1010
jmp 0x4e3ee8
push str.Write_failed
push 0xfffffffffffffff0
push dword [edi]
call fcn.004e44a0
add esp, 0xc
mov edi, eax
push dword [esp]
call fcn.00788c38
add esp, 4
mov eax, edi
add esp, 0x1004
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4e48b0
Capabilities:
Encode data using base64

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
mov dword [eax], 0
test ebx, ebx
jne 0x4e48dc
push ebp
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov ebx, eax
lea eax, [ebx*4]
mov ecx, 0xaaaaaaab
mul ecx
shr edx, 1
add edx, 4
push edi
push edx
call dword [edi + 4]
add esp, 8
test eax, eax
je 0x4e49a9
mov dword [esp], eax
mov esi, eax
mov dword [esp + 4], ebx
test ebx, ebx
je 0x4e4a0f
mov eax, dword [esp + 4]
lea ecx, [eax - 2]
mov dword [esp + 8], ecx
dec eax
mov dword [esp + 0xc], eax
xor ebx, ebx
mov esi, dword [esp]
nop word cs:[eax + eax]
movzx edx, byte [ebp + ebx]
cmp dword [esp + 0xc], ebx
je 0x4e49b0
movzx ecx, byte [ebp + ebx + 1]
cmp dword [esp + 8], ebx
je 0x4e49d2
mov eax, dword [esp + 0x28]
movzx ebp, byte [eax + ebx + 2]
mov edi, edx
shr edi, 2
shl edx, 4
and edx, 0x30
movzx eax, byte [edi + 0x9d5fcf]
mov byte [esi], al
mov eax, ecx
shr eax, 4
movzx eax, byte [eax + edx + 0x9d5fcf]
and ecx, 0xf
mov byte [esi + 1], al
mov eax, ebp
shr eax, 6
movzx eax, byte [eax + ecx*4 + 0x9d5fcf]
mov byte [esi + 2], al
and ebp, 0x3f
movzx eax, byte [ebp + 0x9d5fcf]
mov ebp, dword [esp + 0x28]
mov byte [esi + 3], al
add esi, 4
add ebx, 3
cmp dword [esp + 4], ebx
jne 0x4e4930
jmp 0x4e4a0f
xor eax, eax
add esp, 0x10
jmp 0x4e4a24
mov ecx, edx
shr ecx, 2
shl edx, 4
and edx, 0x30
movzx ecx, byte [ecx + 0x9d5fcf]
mov byte [esi], cl
movzx ecx, byte [edx + 0x9d5fcf]
mov byte [esi + 1], cl
mov cl, 0x3d
jmp 0x4e4a05
mov eax, edx
shr eax, 2
mov ebx, ecx
shr bl, 4
shl dl, 4
or dl, bl
and dl, 0x3f
and ecx, 0xf
movzx ebx, byte [eax + 0x9d5fcf]
mov byte [esi], bl
movzx edx, dl
movzx edx, byte [edx + 0x9d5fcf]
mov byte [esi + 1], dl
movzx ecx, byte [ecx*4 + 0x9d5fcf]
mov byte [esi + 2], cl
mov byte [esi + 3], 0x3d
add esi, 4
mov byte [esi], 0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp]
mov dword [eax], ecx
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4e9f60
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x228
mov esi, dword [ebp + 8]
mov dword [esi + 0x170], 0
lea eax, [esp + 4]
push eax
push esi
call fcn.004f5e00
add esp, 8
test eax, eax
jne 0x4ea0c2
mov eax, dword [esp + 4]
imul edx, eax, 0x3e8
mov ebx, dword [esi + 0x164]
test ebx, ebx
mov ecx, 0x3e8
cmovne ecx, edx
mov edx, dword [esi + 0x64]
test edx, edx
jle 0x4ea00e
test eax, eax
sete al
cmp ecx, edx
setg dl
or dl, al
cmp dl, 1
jne 0x4ea00e
mov edi, dword [ebp + 0x10]
push 0
call sub.api_ms_win_crt_time_l1_1_0.dll__time64
add esp, 4
push edi
push dword [ebp + 0xc]
push edx
push eax
call sub.api_ms_win_crt_time_l1_1_0.dll__difftime64
add esp, 0x10
fstp qword [esp + 0x10]
movsd xmm0, qword [esp + 0x10]
mulsd xmm0, qword [0x9d6ff8]
cvttsd2si edx, xmm0
mov ecx, dword [esi + 0x64]
mov eax, str.API_timeout_expired
sub ecx, edx
jl 0x4ea0b6
mov dword [esp], 0
jmp 0x4ea016
test ecx, ecx
setle al
mov dword [esp], eax
mov edx, 0x10624dd3
mov eax, ecx
imul edx
mov eax, edx
shr eax, 0x1f
sar edx, 6
add edx, eax
mov dword [esp + 8], edx
imul eax, edx, 0xfffffc18
add eax, ecx
imul eax, eax, 0x3e8
mov dword [esp + 0xc], eax
xor eax, eax
mov ecx, 0
test bl, 1
je 0x4ea06a
mov ecx, dword [esi + 0x15c]
mov dword [esp + 0x124], ecx
mov dword [esp + 0x120], 1
lea ecx, [esp + 0x120]
mov edx, dword [esi + 0x15c]
test bl, 2
je 0x4ea085
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], 1
lea eax, [esp + 0x1c]
inc edx
xor edi, edi
cmp byte [esp], 0
lea ebx, [esp + 8]
cmovne ebx, edi
push ebx
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
je 0x4ea0b1
mov eax, 0
jns 0x4ea0c2
mov eax, str.Error_waiting_on_socket
jmp 0x4ea0b6
mov eax, str.Timed_out_waiting_on_socket
push eax
push 0xfffffffffffffff7
push esi
call fcn.004e44a0
add esp, 0xc
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4f4080
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov edi, edx
mov esi, ecx
push 0x9d8735
push dword [esp + 0x38]
call fcn.00788c60
add esp, 8
test eax, eax
je 0x4f40ba
mov ebp, eax
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_feof
add esp, 4
test eax, eax
je 0x4f40c1
push ebp
call sub.api_ms_win_crt_stdio_l1_1_0.dll_rewind
add esp, 4
jmp 0x4f410e
push str.Unable_to_open_public_key_file
jmp 0x4f411c
mov dword [esp + 8], edi
xor edi, edi
lea ebx, [esp + 3]
nop dword [eax + eax]
push ebp
push 1
push 1
push ebx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
add esp, 0x10
cmp eax, 1
jne 0x4f4100
movzx eax, byte [esp + 3]
cmp eax, 0xa
je 0x4f4100
cmp eax, 0xd
je 0x4f4100
inc edi
push ebp
call sub.api_ms_win_crt_stdio_l1_1_0.dll_feof
add esp, 4
test eax, eax
je 0x4f40d0
push ebp
call sub.api_ms_win_crt_stdio_l1_1_0.dll_rewind
add esp, 4
cmp edi, 1
ja 0x4f412c
push ebp
call fcn.00788c38
add esp, 4
push str.Invalid_data_in_public_key_file
push 0xfffffffffffffff0
push esi
call fcn.004e44a0
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
push esi
push edi
call dword [esi + 4]
add esp, 8
test eax, eax
je 0x4f4185
mov ebx, eax
push ebp
push edi
push 1
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
add esp, 0x10
cmp eax, edi
jne 0x4f4197
push ebp
call fcn.00788c38
add esp, 4
mov ebp, edi
neg ebp
dec edi
nop dword [eax]
movzx eax, byte [ebx + edi]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
add esp, 4
test eax, eax
je 0x4f41b2
dec edi
inc ebp
jne 0x4f4160
push esi
push ebx
call dword [esi + 0xc]
add esp, 8
push str.Missing_public_key_data
jmp 0x4f411c
push ebp
call fcn.00788c38
add esp, 4
push str.Unable_to_allocate_memory_for_public_key_data
push 0xfffffffffffffffa
jmp 0x4f411e
push esi
push ebx
call dword [esi + 0xc]
add esp, 8
push ebp
call fcn.00788c38
add esp, 4
push str.Unable_to_read_public_key_from_file
jmp 0x4f411c
mov eax, ebp
neg eax
push eax
push 0x20
push ebx
call sub.api_ms_win_crt_private_l1_1_0.dll_memchr
add esp, 0xc
test eax, eax
je 0x4f4226
mov edi, ebx
sub edi, ebp
inc eax
mov ecx, ebx
sub ecx, eax
mov dword [esp + 4], ecx
mov ecx, eax
cmova ecx, ebx
mov edx, ebx
sub edx, ecx
sub edx, ebp
push edx
push 0x20
push eax
mov ebp, eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memchr
add esp, 0xc
test eax, eax
cmovne edi, eax
sub edi, ebp
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push edi
push ebp
push eax
push ecx
push esi
call fcn.004e4730
add esp, 0x14
test eax, eax
je 0x4f4238
push esi
push ebx
call dword [esi + 0xc]
add esp, 8
push str.Invalid_key_data__not_base64_encoded
push 0xfffffffffffffff0
push esi
call fcn.004e44a0
add esp, 0xc
jmp 0x4f4261
push esi
push ebx
call dword [esi + 0xc]
add esp, 8
push str.Invalid_public_key_data
jmp 0x4f411c
mov ecx, dword [esp + 4]
neg ecx
mov eax, dword [esp + 8]
mov dword [eax], ebx
dec ecx
mov eax, dword [esp + 0x28]
mov dword [eax], ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
mov dword [ecx], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x30]
mov dword [ecx], eax
xor eax, eax
add esp, 0x14
jmp 0x4f4127
Function at 0x566d60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov ecx, dword [esp + 0x1c]
mov edi, dword [ecx + 4]
xor eax, eax
test edi, edi
je 0x566d87
mov ebx, dword [ecx]
movzx ecx, byte [ebx]
shr ecx, 6
mov esi, 1
shl esi, cl
cmp edi, esi
jae 0x566d8f
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
push ebx
call fcn.005e8ac0
add esp, 4
sub edi, esi
je 0x566e7b
and eax, 0xfffffffe
xor eax, 2
or eax, edx
mov eax, 0
jne 0x566d87
add ebx, esi
movzx ecx, byte [ebx]
shr ecx, 6
mov edx, 1
shl edx, cl
cmp edi, edx
jb 0x566d87
sub edi, edx
je 0x566d87
add ebx, edx
movzx ecx, byte [ebx]
shr ecx, 6
mov edx, 1
shl edx, cl
cmp edi, edx
jb 0x566d87
sub edi, edx
je 0x566d87
add ebx, edx
movzx ecx, byte [ebx]
shr ecx, 6
mov esi, 1
shl esi, cl
sub edi, esi
jb 0x566d87
push ebx
call fcn.005e8ac0
add esp, 4
mov dword [esp + 4], eax
mov dword [esp], edx
or eax, edx
je 0x566e5b
add ebx, esi
xor eax, eax
xor edx, edx
xor esi, esi
test edi, edi
je 0x566d87
movzx ecx, byte [ebx]
shr ecx, 6
mov ebp, 1
shl ebp, cl
cmp edi, ebp
jb 0x566d87
sub edi, ebp
je 0x566d87
add ebx, ebp
movzx ecx, byte [ebx]
shr ecx, 6
mov ebp, 1
shl ebp, cl
sub edi, ebp
jb 0x566d87
add ebx, ebp
add edx, 1
adc esi, 0
cmp edx, dword [esp + 4]
mov ecx, esi
sbb ecx, dword [esp]
jb 0x566e0c
mov ecx, dword [esp + 4]
add ecx, 1
mov edx, dword [esp]
adc edx, 0
mov eax, dword [esp + 0x20]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, 1
jmp 0x566d87
xor eax, eax
jmp 0x566d87
Function at 0x581610
Capabilities:
Initialize winsock library

Disassembly:
push esi
mov esi, 1
cmp byte [0xae436c], 0
jne 0x5816b3
mov byte [0xae436c], 1
push 0x190
push 0
push 0xae41dc
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
push 0xae41dc
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x5816b3
call fcn.005b7120
push str.BIO_sock_init
push 0x96
push str.crypto_bio_bio_sock.c
call fcn.005b7220
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push str.calling_wsastartup__
push eax
push 2
call fcn.005b7310
add esp, 0xc
call fcn.005b7120
push str.BIO_sock_init
push 0x98
push str.crypto_bio_bio_sock.c
call fcn.005b7220
add esp, 0xc
push 0
push 0x7a
push 0x20
call fcn.005b7310
add esp, 0xc
mov esi, 0xffffffff
mov eax, esi
pop esi
ret

Function at 0x581bb0
Capabilities:
Set socket configuration

Disassembly:
push esi
push eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp], ecx
mov ecx, esp
push ecx
push 0x8004667e
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
test eax, eax
jns 0x581c04
call fcn.005b7120
push str.BIO_socket_ioctl
push 0xf4
push str.crypto_bio_bio_sock.c
call fcn.005b7220
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push str.calling_ioctlsocket__
push eax
push 2
call fcn.005b7310
add esp, 0xc
xor eax, eax
test esi, esi
sete al
add esp, 4
pop esi
ret

Function at 0x581d00
Capabilities:
Get socket status

Disassembly:
push ebx
push edi
push esi
sub esp, 0x10c
mov esi, dword [esp + 0x11c]
cmp esi, 0xffffffff
je 0x581d7a
mov ebx, dword [esp + 0x128]
mov edi, dword [esp + 0x124]
mov eax, edi
or eax, ebx
je 0x581d81
push 0
call sub.api_ms_win_crt_time_l1_1_0.dll__time64
add esp, 4
mov ecx, eax
xor eax, eax
sub edi, ecx
sbb ebx, edx
jl 0x581d86
mov eax, dword [esp + 0x120]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], edi
inc esi
xor ecx, ecx
test eax, eax
lea edx, [esp + 8]
cmovne eax, edx
cmove ecx, edx
mov edx, esp
push edx
push 0
push ecx
push eax
push esi
call dword [sym.imp.WS2_32.dll_select]
jmp 0x581d86
mov eax, 0xffffffff
jmp 0x581d86
mov eax, 1
add esp, 0x10c
pop esi
pop edi
pop ebx
ret
Function at 0x581e20
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebx
push edi
push esi
push eax
mov edi, dword [esp + 0x14]
mov dword [esp], 1
cmp edi, 0xffffffff
je 0x581ecb
mov ebx, dword [esp + 0x1c]
mov eax, ebx
shr eax, 3
and eax, 1
push eax
push edi
call fcn.00581bb0
add esp, 8
test eax, eax
je 0x581ef5
test bl, 4
je 0x581efe
mov eax, esp
push 4
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x581efe
call fcn.005b7120
push str.BIO_connect
push 0x60
push str.crypto_bio_bio_sock2.c
call fcn.005b7220
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x9f24e2
push eax
push 2
call fcn.005b7310
add esp, 0xc
call fcn.005b7120
push str.BIO_connect
push 0x62
push str.crypto_bio_bio_sock2.c
call fcn.005b7220
add esp, 0xc
push 0
push 0x89
jmp 0x581eeb
call fcn.005b7120
push str.BIO_connect
push 0x56
push str.crypto_bio_bio_sock2.c
call fcn.005b7220
add esp, 0xc
push 0
push 0x87
push 0x20
call fcn.005b7310
add esp, 0xc
xor eax, eax
add esp, 4
pop esi
pop edi
pop ebx
ret
test bl, 0x10
je 0x581f68
mov eax, esp
push 4
push eax
push 1
push 6
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x581f68
call fcn.005b7120
push str.BIO_connect
push 0x6a
push str.crypto_bio_bio_sock2.c
call fcn.005b7220
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x9f24e2
push eax
push 2
call fcn.005b7310
add esp, 0xc
call fcn.005b7120
push str.BIO_connect
push 0x6c
push str.crypto_bio_bio_sock2.c
call fcn.005b7220
add esp, 0xc
push 0
push 0x8a
jmp 0x581eeb
mov ebx, dword [esp + 0x18]
push ebx
call fcn.0057ca40
add esp, 4
mov esi, eax
push ebx
call fcn.0057ca60
add esp, 4
push eax
push esi
push edi
call dword [sym.imp.WS2_32.dll_connect]
mov ecx, eax
mov eax, 1
cmp ecx, 0xffffffff
jne 0x581ef7
push 0xffffffffffffffff
call fcn.00585550
add esp, 4
test eax, eax
jne 0x581ef5
call fcn.005b7120
push str.BIO_connect
push 0xb2
push str.crypto_bio_bio_sock2.c
call fcn.005b7220
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push str.calling_connect__
push eax
push 2
call fcn.005b7310
add esp, 0xc
call fcn.005b7120
push str.BIO_connect
push 0xb4
push str.crypto_bio_bio_sock2.c
call fcn.005b7220
add esp, 0xc
push 0
push 0x67
jmp 0x581eeb
Function at 0x582550
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
push ebx
push edi
push esi
mov ebx, dword [esp + 0x14]
mov edi, dword [ebx + 0x28]
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
cmp dword [edi + 0x38], 0
je 0x58257e
push 0
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [ebx + 0x24]
call dword [sym.imp.WS2_32.dll_send]
jmp 0x5825a8
push edi
call fcn.0057ca60
add esp, 4
mov esi, eax
mov ebp, dword [ebx + 0x24]
push edi
call fcn.0057ca40
add esp, 4
push esi
push eax
push 0
push dword [esp + 0x28]
push dword [esp + 0x28]
push ebp
call dword [sym.imp.WS2_32.dll_sendto]
mov esi, eax
push 0xf
push ebx
call fcn.0057d690
add esp, 8
lea eax, [esi + 1]
cmp eax, 1
ja case.0x5825d0.104
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x66
jle 0x5825f2
lea ecx, [eax - 0x67]
cmp ecx, 0x25
ja case.default.0x5825d0
jmp dword [ecx*4 + 0x9f260c]
push 0xa
push ebx
call fcn.0057d6b0
add esp, 8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi + 0x3c], eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
cmp eax, 4
je case.0x5825d0.103
cmp eax, 0xb
je case.0x5825d0.103
jmp case.0x5825d0.104
cmp eax, 0x2733
je case.0x5825d0.103
jmp case.0x5825d0.104

Function at 0x5847b0
Capabilities:
Check if file exists

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
push ebp
push edi
call fcn.005de5d0
add esp, 8
mov esi, eax
push 0x62
push ebp
call sub.api_ms_win_crt_private_l1_1_0.dll_strchr
add esp, 8
xor ebx, ebx
test eax, eax
sete al
test esi, esi
je 0x584824
mov byte [esp + 3], al
push 0x9f2e7c
call fcn.0057d520
add esp, 4
test eax, eax
je 0x58488d
movzx ecx, byte [esp + 3]
mov bl, cl
shl ebx, 4
inc ebx
push 0
push eax
mov edi, eax
call fcn.0057d690
add esp, 8
push esi
push ebx
push 0x6a
push edi
call fcn.0057df50
mov eax, edi
add esp, 0x10
jmp 0x5848c4
call fcn.005b7120
push str.BIO_new_file
push 0x43
push str.crypto_bio_bss_file.c
call fcn.005b7220
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
push edi
push str.calling_fopen__s___s_
push eax
push 2
call fcn.005b7310
add esp, 0x14
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 2
je 0x58486b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 6
jne 0x584898
call fcn.005b7120
push str.BIO_new_file
push 0x4b
push str.crypto_bio_bss_file.c
call fcn.005b7220
add esp, 0xc
push 0
push pe_nt_image_headers32
jmp 0x5848b8
push esi
call fcn.00788c38
add esp, 4
jmp 0x5848c2
call fcn.005b7120
push str.BIO_new_file
push 0x4d
push str.crypto_bio_bss_file.c
call fcn.005b7220
add esp, 0xc
push 0
push 0x80002
push 0x20
call fcn.005b7310
add esp, 0xc
xor eax, eax
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x5855e0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push edi
push esi
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push ebx
push esi
push dword [edi + 0x24]
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
push 0xf
push edi
call fcn.0057d690
add esp, 8
mov eax, esi
inc eax
cmp eax, 1
ja case.0x58562c.104
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x66
jle 0x585644
lea ecx, [eax - 0x67]
cmp ecx, 0x25
ja case.default.0x58562c
jmp dword [ecx*4 + 0x9f3380]
push 0xa
push edi
call fcn.0057d6b0
add esp, 8
mov eax, esi
pop esi
pop edi
pop ebx
ret
cmp eax, 4
je case.0x58562c.103
cmp eax, 0xb
je case.0x58562c.103
jmp case.0x58562c.104
cmp eax, 0x2733
je case.0x58562c.103
jmp case.0x58562c.104
Function at 0x58a170
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov dword [esp + 4], edx
mov edi, ecx
mov ebp, dword [esp + 0x40]
push ecx
call fcn.00589790
add esp, 4
lea edx, [eax + 7]
lea ecx, [eax + 0xe]
test edx, edx
cmovns ecx, edx
sar ecx, 3
xor esi, esi
cmp dword [esp + 0x48], 0
mov ebx, 0
mov edx, 0
je 0x58a2f1
add ecx, edx
cmp ebp, 0xffffffff
je 0x58a320
cmp ecx, ebp
jle 0x58a230
movups xmm0, xmmword [edi]
movups xmmword [esp + 0x18], xmm0
mov eax, dword [edi + 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
test eax, eax
mov dword [esp], edx
jle 0x58a1f7
mov ecx, dword [esp + 0x18]
nop dword [eax]
cmp dword [ecx + eax*4 - 4], 0
jne 0x58a1f3
lea edx, [eax - 1]
cmp eax, 1
mov eax, edx
jg 0x58a1e0
xor eax, eax
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x58a203
mov dword [esp + 0x24], 0
lea eax, [esp + 0x18]
push eax
call fcn.00589790
add esp, 4
mov ecx, eax
add eax, 7
add ecx, 0xe
test eax, eax
cmovns ecx, eax
sar ecx, 3
add ecx, dword [esp]
mov eax, 0xffffffff
cmp ecx, ebp
jg 0x58a346
mov eax, dword [edi + 8]
test eax, eax
je 0x58a32d
mov dword [esp], esi
mov esi, dword [esp + 0x44]
xor edx, edx
cmp esi, 1
sete cl
test ebp, ebp
je 0x58a344
mov dl, cl
lea ecx, [edx*2 - 1]
mov dword [esp + 0x10], ecx
cmp esi, 1
mov ecx, dword [esp + 4]
lea esi, [ecx + ebp - 1]
cmove esi, ecx
mov ecx, dword [edi + 4]
shl eax, 2
mov edx, 1
sub edx, eax
mov dword [esp + 0xc], edx
shl ecx, 2
neg ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], edi
xor edi, edi
xor eax, eax
mov dword [esp + 0x14], ebp
nop word cs:[eax + eax]
mov ecx, dword [esp + 8]
mov ecx, dword [ecx]
mov edx, eax
and edx, 0xfffffffc
mov ebp, dword [ecx + edx]
mov ecx, dword [esp + 4]
lea edx, [ecx + edi]
lea ecx, [eax*8]
shr ebp, cl
sar edx, 0x1f
and edx, ebp
mov ebp, dword [esp + 0x14]
movzx ecx, dl
xor ecx, dword [esp]
add ebx, ecx
mov byte [esi], bl
movzx edx, bl
xor ebx, ebx
cmp ecx, edx
seta bl
mov ecx, dword [esp + 0xc]
add ecx, eax
shr ecx, 0x1f
add eax, ecx
add esi, dword [esp + 0x10]
inc edi
cmp ebp, edi
jne 0x58a2a0
jmp 0x58a340
mov ebx, dword [edi + 0xc]
xor edx, edx
test ebx, ebx
sete dl
mov dword [esp], edx
mov esi, 0xff
cmove esi, ebx
lea edx, [ecx*8]
cmp edx, eax
mov edx, dword [esp]
cmovne edx, ebx
add ecx, edx
cmp ebp, 0xffffffff
jne 0x58a1ba
mov ebp, ecx
mov eax, dword [edi + 8]
test eax, eax
jne 0x58a23b
test ebp, ebp
je 0x58a344
push ebp
push 0
push dword [esp + 0xc]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
mov eax, ebp
jmp 0x58a346
xor eax, eax
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret