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

Disassembly:
mov eax, 8
call fcn.006d75c0
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x20]
push edi
mov ebp, dword [ebp]
mov edi, dword [esp + 0x20]
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x519668
mov ecx, dword [esp + 0x30]
nop dword [eax]
test esi, esi
je 0x519668
mov al, byte [ecx + ebp]
dec esi
xor al, byte [ebx]
inc ebp
mov byte [edi], al
inc ebx
inc edi
and ebp, 0xf
mov dword [esp + 0x14], ebp
jne 0x519650
mov eax, dword [esp + 0x2c]
mov edx, dword [eax + 0xc]
bswap edx
mov dword [esp + 0x24], edx
cmp esi, 0x10
jb 0x519704
mov ebp, eax
mov ecx, esi
shr ecx, 4
push ebp
push dword [esp + 0x2c]
lea eax, [ecx + edx]
neg edx
cmp eax, ecx
cmovae edx, ecx
mov dword [esp + 0x18], edx
xor edx, edx
push dword [esp + 0x18]
cmp eax, ecx
push edi
cmovae edx, eax
push ebx
mov dword [esp + 0x38], edx
call dword [esp + 0x4c]
mov edx, dword [esp + 0x38]
add esp, 0x14
mov eax, edx
bswap eax
mov dword [ebp + 0xc], eax
test edx, edx
jne 0x5196e6
mov edx, 0xc
mov eax, 1
nop dword [eax]
movzx ecx, byte [edx + ebp - 1]
dec edx
add eax, ecx
mov byte [edx + ebp], al
shr eax, 8
test edx, edx
jne 0x5196d0
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
shl eax, 4
sub esi, eax
add edi, eax
add ebx, eax
cmp esi, 0x10
jae 0x519680
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x24], edx
test esi, esi
je 0x519762
mov ecx, dword [esp + 0x30]
xorps xmm0, xmm0
push eax
push dword [esp + 0x2c]
push 1
push ecx
push ecx
movups xmmword [ecx], xmm0
call dword [esp + 0x4c]
mov edx, dword [esp + 0x38]
add esp, 0x14
mov eax, dword [esp + 0x2c]
add edx, 1
bswap edx
mov dword [eax + 0xc], edx
jne 0x51973d
push eax
call fcn.005197a0
add esp, 4
mov eax, dword [esp + 0x30]
sub ebx, eax
sub edi, eax
lea ecx, [eax + ebp]
add ebp, esi
nop word [eax + eax]
mov al, byte [ecx + ebx]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [edi + ecx - 1], al
sub esi, 1
jne 0x519750
mov eax, dword [esp + 0x34]
pop edi
pop esi
mov dword [eax], ebp
pop ebp
pop ebx
add esp, 8
ret
Function at 0x529f90
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 0x52a0a6
push edi
cmp esi, 4
jb 0x52a081
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 0x52a024
cmp edi, ecx
jae 0x52a081
cmp edx, ebx
ja 0x52a02c
cmp edi, ebx
jae 0x52a081
cmp edx, ebp
ja 0x52a034
cmp edi, ebp
jae 0x52a081
lea edi, [esi - 1]
lea edi, [ecx + edi*4]
cmp ecx, ebx
ja 0x52a042
cmp edi, ebx
jae 0x52a081
cmp ecx, ebp
ja 0x52a04a
cmp edi, ebp
jae 0x52a081
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 0x52a050
mov dword [esp + 0x18], eax
cmp eax, esi
jge 0x52a0a5
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 0x52a081
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x52a3e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc
call fcn.006d75c0
mov eax, dword [esp + 0x10]
push ebx
push esi
test byte [eax + 0x10], 4
mov esi, dword [eax + 4]
lea ebx, [esi - 1]
je 0x52a487
mov ecx, dword [eax + 8]
xor edx, edx
push ebp
xor ebp, ebp
mov dword [esp + 0xc], 0
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], ecx
test ecx, ecx
jle 0x52a470
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
push edi
push dword [ecx]
mov eax, ebp
xor eax, ebx
lea edi, [eax - 1]
not eax
shr edi, 0x1f
shr eax, 0x1f
and edi, eax
neg edi
mov esi, edi
or esi, dword [esp + 0x14]
call fcn.0052a4b0
mov ecx, dword [esp + 0x18]
mov edx, esi
not edx
mov dword [esp + 0x14], esi
and edx, 0x20
and eax, edi
add edx, dword [esp + 0x24]
inc ebp
add edx, eax
add ecx, 4
add esp, 4
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], ecx
cmp ebp, dword [esp + 0x18]
jl 0x52a423
pop edi
mov eax, ebx
shr ebx, 0x1f
not eax
dec eax
shr eax, 0x1f
and eax, ebx
pop ebp
dec eax
pop esi
and eax, edx
pop ebx
add esp, 0xc
ret
test esi, esi
jne 0x52a493
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret
mov eax, dword [eax]
push dword [eax + esi*4 - 4]
call fcn.0052a4b0
add esp, 4
shl esi, 5
add esi, 0xffffffe0
add eax, esi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x52aa70
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x24
call fcn.006d75c0
push ebx
push esi
push edi
mov edi, dword [esp + 0x34]
xor ecx, ecx
push edi
mov dword [esp + 0x14], 0
xor ebx, ebx
mov dword [esp + 0x10], ecx
call fcn.0052a3e0
mov esi, eax
add esp, 4
lea eax, [esi + 7]
cdq
and edx, 7
lea ecx, [edx + eax]
sar ecx, 3
cmp dword [esp + 0x44], ebx
jne 0x52aae1
mov ebx, dword [edi + 0xc]
mov eax, ebx
neg eax
sbb eax, eax
and eax, 0xff
mov dword [esp + 0x10], eax
lea eax, [ecx*8]
cmp eax, esi
jne 0x52aad9
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 0xc], eax
jmp 0x52aae3
mov eax, ebx
mov dword [esp + 0xc], eax
jmp 0x52aae3
xor eax, eax
mov esi, dword [esp + 0x3c]
add eax, ecx
cmp esi, 0xffffffff
jne 0x52ab21
mov esi, eax
mov dword [esp + 0x3c], esi
mov ecx, dword [edi + 8]
shl ecx, 2
test ecx, ecx
jne 0x52aba0
test esi, esi
je 0x52ac34
push esi
push ecx
push dword [esp + 0x40]
call fcn.006d8cf0
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x24
ret
cmp esi, eax
jge 0x52aaf4
movups xmm0, xmmword [edi]
mov eax, dword [edi + 0x10]
mov dword [esp + 0x2c], eax
movups xmmword [esp + 0x1c], xmm0
psrldq xmm0, 4
movd ecx, xmm0
test ecx, ecx
jle 0x52ab62
mov eax, dword [esp + 0x1c]
lea eax, [eax + ecx*4]
nop dword [eax + eax]
cmp dword [eax - 4], 0
lea eax, [eax - 4]
jne 0x52ab5e
dec ecx
test ecx, ecx
jg 0x52ab50
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x28]
xor edx, edx
test ecx, ecx
cmove eax, edx
mov dword [esp + 0x28], eax
lea eax, [esp + 0x1c]
push eax
call fcn.0052a3e0
add eax, 7
add esp, 4
cdq
and edx, 7
add eax, edx
sar eax, 3
add eax, dword [esp + 0xc]
cmp esi, eax
jge 0x52aaf4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x24
ret
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
cmp edx, 1
je 0x52abb0
dec eax
add eax, esi
mov edi, dword [edi + 4]
mov dword [esp + 0x44], eax
xor eax, eax
cmp edx, 1
push ebp
sete al
shl edi, 2
xor ebp, ebp
lea eax, [eax*2 - 1]
mov dword [esp + 0x18], eax
lea eax, [ecx - 1]
mov dword [esp + 0x1c], eax
test esi, esi
je 0x52ac33
mov dword [esp + 0x10], esi
neg edi
mov esi, dword [esp + 0x38]
mov eax, dword [esi]
mov edx, ebp
shr edx, 2
mov ecx, ebp
and ecx, 3
shl ecx, 3
mov edx, dword [eax + edx*4]
mov eax, edi
shr edx, cl
mov ecx, ebp
shr eax, 0x1f
neg al
and dl, al
mov eax, dword [esp + 0x48]
xor dl, byte [esp + 0x14]
add bl, dl
cmp bl, dl
mov byte [eax], bl
sbb ebx, ebx
sub ecx, dword [esp + 0x1c]
add eax, dword [esp + 0x18]
neg ebx
shr ecx, 0x1f
inc edi
add ebp, ecx
mov dword [esp + 0x48], eax
sub dword [esp + 0x10], 1
jne 0x52abe5
mov esi, dword [esp + 0x40]
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x24
ret
Function at 0x53f0e0
Capabilities:
Initialize winsock library

Disassembly:
cmp dword [0x7c6398], 0
jne 0x53f179
push 0x190
push 0
push 0x7c63a0
mov dword [0x7c6398], 1
call fcn.006d8cf0
add esp, 0xc
push 0x7c63a0
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x53f179
call fcn.00514040
push str.BIO_sock_init
push 0x99
push str.crypto_bio_bio_sock.c
call fcn.00514140
add esp, 0xc
push str.calling_wsastartup__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00514250
call fcn.00514040
push str.BIO_sock_init
push 0x9b
push str.crypto_bio_bio_sock.c
call fcn.00514140
push 0
push 0x7a
push 0x20
call fcn.00514250
add esp, 0x24
or eax, 0xffffffff
ret
mov eax, 1
ret

Function at 0x53f180
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 0x53f1d5
call fcn.00514040
push str.BIO_socket_ioctl
push 0xf7
push str.crypto_bio_bio_sock.c
call fcn.00514140
add esp, 0xc
push str.calling_ioctlsocket__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00514250
add esp, 0xc
xor eax, eax
test esi, esi
pop esi
sete al
ret

Function at 0x53f1e0
Capabilities:
Get socket status

Disassembly:
mov eax, 0x110
call fcn.006d75c0
mov eax, dword [0x7c2580]
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 0x53f2cd
push esi
mov esi, dword [esp + 0x128]
mov eax, esi
or eax, dword [esp + 0x12c]
jne 0x53f241
pop esi
pop edi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.006d66cb
add esp, 0x110
ret
push 0
call fcn.006e8e2e
add esp, 4
cmp dword [esp + 0x12c], edx
jg 0x53f274
jl 0x53f25a
cmp esi, eax
jae 0x53f274
pop esi
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.006d66cb
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.006d66cb
add esp, 0x110
ret
mov ecx, dword [esp + 0x114]
or eax, 0xffffffff
pop edi
pop ebp
xor ecx, esp
call fcn.006d66cb
add esp, 0x110
ret
Function at 0x53fe70
Capabilities:
Get common file path

Disassembly:
mov eax, 0x230
call fcn.006d75c0
mov eax, dword [0x7c2580]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x7c6538], 0
mov dword [esp], 0x737994
mov dword [esp + 4], 0x53f870
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x53fc20
mov dword [esp + 0x10], 0x7379ac
mov dword [esp + 0x14], 0x53f820
jne 0x53ffd6
push 0x104
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x53ffcc
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.006e9129
push 0x7379bc
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.006e9183
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 0x53ff3f
push 0x737994
push edi
call ebx
test eax, eax
jne 0x53ff86
push edi
call ebp
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.006e9129
push str.wship6
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.006e9183
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call esi
mov edi, eax
test edi, edi
je 0x53ffc8
push 0x737994
push edi
call ebx
test eax, eax
je 0x53ffc5
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 0x53ffc5
inc esi
lea eax, [esp + 0x10]
cmp esi, 3
jl 0x53ff90
mov eax, dword [esp + 0x14]
mov dword [0x7c05d0], eax
mov eax, dword [esp + 0x1c]
mov dword [0x7c05d8], eax
mov eax, dword [esp + 0x24]
mov dword [0x7c05e0], eax
jmp 0x53ffc8
push edi
call ebp
pop edi
pop esi
pop ebp
pop ebx
mov dword [0x7c6538], 1
movzx eax, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
mov eax, dword [eax*8 + 0x7c05d0]
call fcn.006d66cb
add esp, 0x230
ret 4
Function at 0x540000
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x820
call fcn.006d75c0
mov eax, dword [0x7c2580]
xor eax, esp
mov dword [esp + 0x81c], eax
push ebx
mov ebx, dword [esp + 0x83c]
lea eax, [esp + 0x19]
push ebp
push esi
mov esi, dword [esp + 0x830]
push edi
push 0x400
push 0
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], 0
mov byte [esp + 0x30], 0
call fcn.006d8cf0
push 0x400
lea eax, [esp + 0x439]
mov byte [esp + 0x438], 0
push 0
push eax
call fcn.006d8cf0
push 0x400
push esi
lea eax, [esp + 0x44]
push 0x401
push eax
mov dword [esp + 0x3c], eax
lea ebp, [esp + 0x450]
call fcn.006e929d
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 0x5401df
cmp word [ebx + 8], 2
jne 0x540102
cmp word [ebx + 0xa], 4
jne 0x540102
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x540102
nop dword [eax]
nop dword [eax + eax]
push dword [eax]
push dword [esp + 0x844]
push dword [esp + 0x844]
push dword [esp + 0x844]
call fcn.00540230
mov dword [edi], eax
test eax, eax
je 0x5401d8
add esi, 4
lea edi, [eax + 0x1c]
mov eax, dword [esi]
test eax, eax
jne 0x5400d0
push 0x400
push dword [ebx]
push 0x401
push ebp
call fcn.006e929d
mov ebx, dword [esp + 0x28]
xor esi, esi
add esp, 0x10
cmp dword [ebx], esi
jne 0x54018f
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x540126
sub ecx, edx
je case.0x5401ef.11003
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov eax, edi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x540160
test dl, dl
je 0x54015c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x540160
add eax, 2
add ecx, 2
test dl, dl
jne 0x540140
xor eax, eax
jmp 0x540165
sbb eax, eax
or eax, 1
test eax, eax
je case.0x5401ef.11003
mov esi, dword [esp + 0x10]
inc esi
mov dword [esp + 0x10], esi
cmp esi, 0x10
je case.0x5401ef.11003
mov esi, dword [esp + 0x1c]
mov eax, edi
mov dword [esp + 0x14], ebp
mov ebp, eax
jmp 0x540090
mov esi, 0x2afb
jmp 0x540202
cmp dword [esp + 0x844], esi
je 0x540202
mov ecx, ebp
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5401a0
sub ecx, edx
lea ebx, [ecx + 1]
push ebx
push 1
call fcn.006dc77f
mov edi, eax
add esp, 8
test edi, edi
je 0x5401c8
push ebp
push ebx
push edi
call fcn.006e9129
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 0x540202
mov esi, 8
jmp 0x540202
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x5401ef.11001
jmp dword [eax*4 + 0x540220]
mov esi, 0x2afa
jmp 0x540202
mov esi, 0x2af9
mov ecx, dword [esp + 0x82c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.006d66cb
add esp, 0x820
ret 0x18
Function at 0x547fa0
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.0058a990
push 0x62
push edi
mov ebx, eax
call fcn.006d8ef0
add esp, 0x10
neg eax
sbb esi, esi
and esi, 0xfffffff0
add esi, 0x11
test ebx, ebx
jne 0x548052
call fcn.00514040
push str.BIO_new_file
push 0x43
push str.crypto_bio_bss_file.c
call fcn.00514140
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.00514250
add esp, 0x14
call fcn.006e39b1
cmp dword [eax], 2
je 0x548022
call fcn.006e39b1
cmp dword [eax], 6
je 0x548022
mov esi, 0x80002
lea edi, [ebx + 0x4d]
jmp 0x54802a
mov esi, 0x80
lea edi, [esi - 0x35]
call fcn.00514040
push str.BIO_new_file
push edi
push str.crypto_bio_bss_file.c
call fcn.00514140
push 0
push esi
push 0x20
call fcn.00514250
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x73bed0
call fcn.005207c0
mov edi, eax
add esp, 4
test edi, edi
jne 0x548074
push ebx
call fcn.006dcc12
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push edi
call fcn.00520070
push ebx
push esi
push 0x6a
push edi
call fcn.005200a0
add esp, 0x18
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x56bf00
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov eax, 4
call fcn.006d75c0
push edi
mov edi, dword [esp + 0xc]
mov dword [esp + 4], 1
cmp edi, 0xffffffff
jne 0x56bf48
call fcn.00514040
push str.BIO_connect
push 0x56
push str.crypto_bio_bio_sock2.c
call fcn.00514140
push 0
push 0x87
push 0x20
call fcn.00514250
add esp, 0x18
xor eax, eax
pop edi
pop ecx
ret
push ebx
mov ebx, dword [esp + 0x18]
mov eax, ebx
shr eax, 3
push esi
and eax, 1
push eax
push edi
call fcn.0053f180
add esp, 8
test eax, eax
je 0x56bfd7
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
test bl, 4
je 0x56bfde
push 4
lea eax, [esp + 0x10]
push eax
push 8
push 0xffff
push edi
call esi
test eax, eax
je 0x56bfde
call fcn.00514040
push str.BIO_connect
push 0x60
push str.crypto_bio_bio_sock2.c
call fcn.00514140
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00514250
call fcn.00514040
push str.BIO_connect
push 0x62
push str.crypto_bio_bio_sock2.c
call fcn.00514140
push 0
push 0x89
push 0x20
call fcn.00514250
add esp, 0x24
pop esi
pop ebx
xor eax, eax
pop edi
pop ecx
ret
test bl, 0x10
je 0x56c04f
push 4
lea eax, [esp + 0x10]
push eax
push 1
push 6
push edi
call esi
test eax, eax
je 0x56c04f
call fcn.00514040
push str.BIO_connect
push 0x6a
push str.crypto_bio_bio_sock2.c
call fcn.00514140
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00514250
call fcn.00514040
push str.BIO_connect
push 0x6c
push str.crypto_bio_bio_sock2.c
call fcn.00514140
push 0
push 0x8a
push 0x20
call fcn.00514250
add esp, 0x24
xor eax, eax
pop esi
pop ebx
pop edi
pop ecx
ret
mov esi, dword [esp + 0x18]
push esi
call fcn.0053f4b0
add esp, 4
push eax
push esi
call fcn.0053f4a0
add esp, 4
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x56c0e1
push eax
call fcn.0056be00
add esp, 4
test eax, eax
jne 0x56bfd7
call fcn.00514040
push str.BIO_connect
push 0xb2
push str.crypto_bio_bio_sock2.c
call fcn.00514140
add esp, 0xc
push str.calling_connect__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00514250
call fcn.00514040
push str.BIO_connect
push 0xb4
push str.crypto_bio_bio_sock2.c
call fcn.00514140
push 0
push 0x67
push 0x20
call fcn.00514250
add esp, 0x24
xor eax, eax
pop esi
pop ebx
pop edi
pop ecx
ret
pop esi
pop ebx
mov eax, 1
pop edi
pop ecx
ret
Function at 0x5a8fd0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov cl, byte [esp + 0x10]
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
movzx eax, cl
and eax, 1
push edi
mov edi, dword [esp + 0x10]
test esi, esi
je 0x5a9012
push ebx
add edi, esi
lea ebx, [edx + esi]
movzx edx, byte [edi - 1]
lea edi, [edi - 1]
movzx ecx, cl
lea ebx, [ebx - 1]
xor edx, ecx
mov cl, byte [esp + 0x1c]
add eax, edx
mov byte [ebx], al
shr eax, 8
sub esi, 1
jne 0x5a8ff2
pop ebx
pop edi
pop esi
ret
Function at 0x5eebc0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
lea ecx, [edx + 0x3f8]
lea esi, [eax + 0x3f8]
cmp eax, ecx
ja 0x5eebfb
cmp esi, edx
jb 0x5eebfb
sub edx, eax
mov esi, 0x80
mov ecx, dword [eax + edx]
lea eax, [eax + 8]
xor dword [eax - 8], ecx
mov ecx, dword [eax + edx - 4]
xor dword [eax - 4], ecx
sub esi, 1
jne 0x5eebe4
pop esi
ret
lea esi, [edx + 0x30]
sub edx, eax
lea ecx, [eax + 0x10]
mov eax, 0x10
nop dword [eax + eax]
lea ecx, [ecx + 0x40]
lea esi, [esi + 0x40]
movups xmm0, xmmword [ecx - 0x50]
movups xmm1, xmmword [esi - 0x70]
xorps xmm1, xmm0
movups xmmword [ecx - 0x50], xmm1
movups xmm0, xmmword [ecx - 0x40]
movups xmm1, xmmword [edx + ecx - 0x40]
xorps xmm1, xmm0
movups xmmword [ecx - 0x40], xmm1
movups xmm0, xmmword [ecx - 0x30]
movups xmm1, xmmword [esi - 0x50]
xorps xmm1, xmm0
movups xmmword [ecx - 0x30], xmm1
movups xmm1, xmmword [esi - 0x40]
movups xmm0, xmmword [ecx - 0x20]
xorps xmm1, xmm0
movups xmmword [ecx - 0x20], xmm1
sub eax, 1
jne 0x5eec10
pop esi
ret

Function at 0x60e1d0
Capabilities:
Encode data using base64

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
xor ebp, ebp
push esi
test eax, eax
je 0x60e1e8
test byte [eax + 0x5c], 2
mov ebx, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz._
jne 0x60e1ed
mov ebx, 0x781438
mov esi, dword [esp + 0x1c]
test esi, esi
jle 0x60e2bd
mov edx, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
inc edi
movzx eax, byte [edi - 1]
cmp esi, 3
jb 0x60e251
movzx ecx, byte [edi]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 1]
shl eax, 8
or eax, ecx
mov ecx, eax
shr ecx, 0x12
movzx ecx, byte [ecx + ebx]
mov byte [edx], cl
mov ecx, eax
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + ebx]
mov byte [edx + 1], cl
mov ecx, eax
shr ecx, 6
and ecx, 0x3f
and eax, 0x3f
movzx ecx, byte [ecx + ebx]
mov byte [edx + 2], cl
mov cl, byte [eax + ebx]
lea eax, [edx + 3]
jmp 0x60e29d
shl eax, 0x10
cmp esi, 2
jne 0x60e261
movzx ecx, byte [edi]
shl ecx, 8
or eax, ecx
mov ecx, eax
shr ecx, 0x12
movzx ecx, byte [ecx + ebx]
mov byte [edx], cl
mov ecx, eax
shr ecx, 0xc
inc edx
and ecx, 0x3f
mov dword [esp + 0x18], edx
movzx ecx, byte [ecx + ebx]
mov byte [edx], cl
cmp esi, 1
jne 0x60e288
mov al, 0x3d
jmp 0x60e291
shr eax, 6
and eax, 0x3f
mov al, byte [eax + ebx]
mov byte [edx + 1], al
mov cl, 0x3d
mov eax, dword [esp + 0x18]
add eax, 2
sub esi, 3
mov byte [eax], cl
add ebp, 4
lea edx, [eax + 1]
add edi, 3
test esi, esi
jg 0x60e203
pop edi
pop esi
mov eax, ebp
mov byte [edx], 0
pop ebp
pop ebx
ret
mov eax, dword [esp + 0x14]
pop esi
mov byte [eax], 0
mov eax, ebp
pop ebp
pop ebx
ret
Function at 0x64a780
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x64a82f
push esi
call fcn.00660940
add esp, 4
test al, al
jne 0x64a82f
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x64a7a7
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.00669d20
add esp, 0xc
test eax, eax
je 0x64a7db
sub eax, esi
push eax
push 0x2e
push esi
call fcn.00669d20
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x64a7dd
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
lea ebx, [esi + edi]
mov edi, 0x1505
cmp esi, ebx
jae 0x64a80e
nop dword [eax]
mov al, byte [esi]
push eax
call fcn.0065d7b0
movsx ecx, al
inc esi
mov eax, edi
add esp, 4
shl eax, 5
add eax, edi
xor ecx, eax
mov edi, ecx
cmp esi, ebx
jb 0x64a7f0
mov eax, 0x4104105
mov esi, edi
mul edi
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 5
mov ecx, esi
shl ecx, 6
sub ecx, esi
sub edi, ecx
mov eax, edi
pop edi
pop ebx
pop esi
ret
xor eax, eax
pop esi
ret