joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44d800
Capabilities:
Delete file
Delete service
Stop service

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x678dc8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x44d899
mov dword [ebp - 0x20], 0xef58f72a
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], 0x875cab62
mov dword [ebp - 0x18], 0x51a004c0
mov dword [ebp - 0x14], 0x863b5edf
movaps xmm1, xmmword [ebp - 0x20]
push 0x10022
mov dword [ebp - 0x50], 0xad0fb86b
mov dword [ebp - 0x4c], 0x875c9a32
mov dword [ebp - 0x48], 0x51a004c0
mov dword [ebp - 0x44], 0x863b5edf
pxor xmm1, xmmword [ebp - 0x50]
push eax
push edi
movaps xmmword [ebp - 0x20], xmm1
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x44d8ae
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c77ea
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
lea eax, [ebp - 0x3c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
cmp dword [0x67ee1c], 8
mov eax, 0x67ee08
cmovae eax, dword [0x67ee08]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
test eax, eax
pop edi
setne al
xor ecx, ebp
pop esi
call fcn.005c77ea
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x44da70
Capabilities:
Get file size

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x44da78
mov ecx, dword [ecx]
push edi
push 0
push 0x80
push 3
push 0
push 0
push connect
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
test edi, edi
je 0x44dab5
cmp edi, 0xffffffff
je 0x44dab5
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
ret
Function at 0x4667d0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
mov eax, dword [edi]
cmp eax, 0x270
jne 0x46682e
lea edx, [edi + 8]
mov esi, eax
nop dword [eax]
mov ecx, dword [edx - 4]
lea edx, [edx + 4]
xor ecx, dword [edx - 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x4667f0
mov eax, dword [edi]
jmp 0x466919
cmp eax, 0x4e0
jb 0x466919
mov eax, dword [edi + 0x9c4]
push ebx
lea ebx, [edi + 0x9c4]
mov edi, 0xe3
nop dword [eax + eax]
mov ecx, dword [ebx + 4]
lea edx, [ebx + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x466850
mov ebx, dword [ebp - 4]
mov edi, 0x18c
add ebx, 0xd50
mov eax, dword [ebx]
nop dword [eax]
mov ecx, eax
lea edx, [ebx + 4]
xor ecx, dword [edx]
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx - 0xd4c]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x4668a0
mov edi, dword [ebp - 4]
pop ebx
mov ecx, dword [edi + 0x1380]
xor ecx, dword [edi + 4]
and ecx, 0x7fffffff
xor ecx, dword [edi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi + 0x9c0], eax
xor eax, eax
mov dword [edi], 0
mov edx, dword [edi + eax*4 + 4]
inc eax
mov dword [edi], eax
mov ecx, edx
mov eax, dword [edi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x468258
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x468279
jl 0x468270
test edi, edi
jne 0x468279
xor eax, eax
xor edx, edx
jmp 0x46833a
cmp dword [ebx + 0x38], 0
je 0x46828e
push eax
push edi
push dword [ebp + 8]
call fcn.00468340
jmp 0x46833a
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4682d5
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x4682d5
cmp eax, edi
jb 0x4682af
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.005c9000
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x4682db
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x46832f
mov ecx, ebx
call fcn.00467aef
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x46831a
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.005d7d17
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x46832f
jmp 0x4682ed
test edx, edx
je 0x46832f
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.005d7d17
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x4c6f10
Capabilities:
Get common file path

Disassembly:
mov eax, 0x230
call fcn.005c8080
mov eax, dword [0x678dc8]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x67d314], 0
mov dword [esp], 0x616d50
mov dword [esp + 4], 0x4c6910
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x4c6cc0
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], 0x4c68c0
jne 0x4c706b
push 0x104
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4c7061
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.005dbecf
push str.ws2_32
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.005dbf29
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 0x4c6fdf
push 0x616d50
push edi
call ebx
test eax, eax
jne 0x4c7026
push edi
call ebp
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.005dbecf
push str.wship6
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.005dbf29
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call esi
mov edi, eax
test edi, edi
je 0x4c705d
push 0x616d50
push edi
call ebx
test eax, eax
je 0x4c705a
xor esi, esi
push dword [esp + esi*8 + 0x10]
push edi
call ebx
mov dword [esp + esi*8 + 0x14], eax
test eax, eax
je 0x4c705a
inc esi
cmp esi, 3
jl 0x4c7028
mov eax, dword [esp + 0x14]
mov dword [0x677fd8], eax
mov eax, dword [esp + 0x1c]
mov dword [0x677fe0], eax
mov eax, dword [esp + 0x24]
mov dword [0x677fe8], eax
jmp 0x4c705d
push edi
call ebp
pop edi
pop esi
pop ebp
pop ebx
mov dword [0x67d314], 1
movzx eax, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
mov eax, dword [eax*8 + 0x677fd8]
call fcn.005c77ea
add esp, 0x230
ret 4
Function at 0x4c70a0
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x820
call fcn.005c8080
mov eax, dword [0x678dc8]
xor eax, esp
mov dword [esp + 0x81c], eax
push ebx
mov ebx, dword [esp + 0x83c]
lea eax, [esp + 0x18]
push ebp
push esi
mov esi, dword [esp + 0x830]
push edi
push 0x401
push 0
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], 0
call fcn.005c9580
push 0x401
lea eax, [esp + 0x438]
push 0
push eax
call fcn.005c9580
push 0x400
push esi
lea eax, [esp + 0x44]
push 0x401
push eax
mov dword [esp + 0x3c], eax
lea ebp, [esp + 0x450]
call fcn.005dc043
add esp, 0x28
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 0x4c726f
cmp word [ebx + 8], 2
jne 0x4c7192
cmp word [ebx + 0xa], 4
jne 0x4c7192
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x4c7192
nop word [eax + eax]
push dword [eax]
push dword [esp + 0x844]
push dword [esp + 0x844]
push dword [esp + 0x844]
call fcn.004c72c0
mov dword [edi], eax
test eax, eax
je 0x4c7268
add esi, 4
lea edi, [eax + 0x1c]
mov eax, dword [esi]
test eax, eax
jne 0x4c7160
push 0x400
push dword [ebx]
push 0x401
push ebp
call fcn.005dc043
mov ebx, dword [esp + 0x28]
xor esi, esi
add esp, 0x10
cmp dword [ebx], esi
jne 0x4c721f
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c71b6
sub ecx, edx
je case.0x4c727f.11003
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov eax, edi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4c71f0
test dl, dl
je 0x4c71ec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4c71f0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4c71d0
xor eax, eax
jmp 0x4c71f5
sbb eax, eax
or eax, 1
test eax, eax
je case.0x4c727f.11003
mov esi, dword [esp + 0x10]
inc esi
mov dword [esp + 0x10], esi
cmp esi, 0x10
je case.0x4c727f.11003
mov esi, dword [esp + 0x1c]
mov eax, edi
mov dword [esp + 0x14], ebp
mov ebp, eax
jmp 0x4c7122
mov esi, 0x2afb
jmp 0x4c7292
cmp dword [esp + 0x844], esi
je 0x4c7292
mov ecx, ebp
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c7230
sub ecx, edx
lea ebx, [ecx + 1]
push ebx
push 1
call fcn.005d1de7
mov edi, eax
add esp, 8
test edi, edi
je 0x4c7258
push ebp
push ebx
push edi
call fcn.005dbecf
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 0x4c7292
mov esi, 8
jmp 0x4c7292
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x4c727f.11001
jmp dword [eax*4 + 0x4c72b0]
mov esi, 0x2afa
jmp 0x4c7292
mov esi, 0x2af9
mov ecx, dword [esp + 0x82c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005c77ea
add esp, 0x820
ret 0x18
Function at 0x4ce150
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.00512030
push 0x62
push esi
mov edi, eax
mov ebx, 1
call fcn.005cae30
add esp, 0x10
mov ecx, 0x11
test eax, eax
cmove ebx, ecx
test edi, edi
jne 0x4ce1fb
call fcn.004a93e0
push str.BIO_new_file
push edi
push 0x66ed1f
call fcn.004a94e0
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.004a94f0
add esp, 0x14
call fcn.005ccb90
cmp dword [eax], 2
je 0x4ce1cd
call fcn.005ccb90
mov esi, 0x80002
cmp dword [eax], 6
jne 0x4ce1d2
mov esi, 0x80
call fcn.004a93e0
push str.BIO_new_file
push 0
push 0x66ed1f
call fcn.004a94e0
push 0
push esi
push 0x20
call fcn.004a94f0
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x6172c0
call fcn.004a73b0
mov esi, eax
add esp, 4
test esi, esi
jne 0x4ce21d
push edi
call fcn.005d77be
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x8000
push esi
call fcn.004a6c50
push edi
push ebx
push 0x6a
push esi
call fcn.004a6c80
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x4e0100
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x14
call fcn.005c8080
mov edx, dword [esp + 0x2c]
xor eax, eax
push ebx
mov ebx, dword [esp + 0x1c]
or ecx, 0xffffffff
cmp edx, 1
push esi
setne al
mov esi, dword [ebx]
push edi
mov edi, dword [esp + 0x3c]
add eax, edi
mov dword [esp + 0x1c], esi
cmp eax, esi
jbe 0x4e0139
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x14
ret
push ebp
cmp edx, 1
je 0x4e0220
mov ebp, dword [esp + 0x30]
dec ebp
add ebp, esi
cmp dword [esp + 0x44], 0
mov cl, byte [ebp]
movzx edx, cl
mov byte [esp + 0x13], cl
mov dword [esp + 0x14], edx
je 0x4e0187
mov eax, dword [esp + 0x34]
sub esi, edx
sub esi, edi
dec esi
mov dword [ebx], esi
mov dword [eax], 0
mov eax, dword [esp + 0x38]
pop ebp
pop edi
pop esi
mov dword [eax], 0
mov eax, 1
pop ebx
add esp, 0x14
ret
lea ecx, [edx + eax]
mov ebx, esi
sub ebx, ecx
mov eax, esi
xor ebx, ecx
xor eax, ecx
or ebx, eax
mov eax, 0x100
xor ebx, esi
shr ebx, 0x1f
dec ebx
cmp esi, eax
cmovb eax, esi
xor edi, edi
mov dword [esp + 0x18], eax
test eax, eax
je 0x4e0200
mov esi, edx
shr edx, 0x1f
mov dword [esp + 0x1c], edx
nop dword [eax]
mov ecx, esi
lea ebp, [ebp - 1]
sub ecx, edi
mov eax, edi
shr ecx, 0x1f
inc edi
shr eax, 0x1f
xor cl, al
xor al, dl
or cl, al
movzx eax, byte [ebp + 1]
xor cl, dl
dec cl
movzx edx, cl
movzx ecx, byte [esp + 0x13]
xor ecx, eax
and edx, ecx
not edx
and ebx, edx
mov edx, dword [esp + 0x1c]
cmp edi, dword [esp + 0x18]
jb 0x4e01c0
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x40]
lea eax, [edx + 1]
mov edx, dword [esp + 0x3c]
not ebx
movzx ecx, bl
mov ebx, dword [esp + 0x28]
dec ecx
shr ecx, 0x1f
neg ecx
and eax, ecx
sub esi, eax
mov dword [ebx], esi
push dword [esp + 0x48]
push ecx
push edi
push edx
push dword [esp + 0x48]
push dword [esp + 0x48]
push dword [esp + 0x48]
push dword [esp + 0x48]
push ebx
call fcn.004dfe00
add esp, 0x24
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x4e4a80
Capabilities:
Initialize winsock library

Disassembly:
cmp dword [0x67d4a8], 0
jne 0x4e4b13
push 0x190
push 0
push 0x67d4b0
mov dword [0x67d4a8], 1
call fcn.005c9580
add esp, 0xc
push 0x67d4b0
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4e4b13
call fcn.004a93e0
push str.BIO_sock_init
push 0
push 0x66ed1f
call fcn.004a94e0
add esp, 0xc
push str.calling_wsastartup__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.004a94f0
call fcn.004a93e0
push str.BIO_sock_init
push 0
push 0x66ed1f
call fcn.004a94e0
push 0
push 0x7a
push 0x20
call fcn.004a94f0
add esp, 0x24
or eax, 0xffffffff
ret
mov eax, 1
ret

Function at 0x4e4b20
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 0x4e4b72
call fcn.004a93e0
push str.BIO_socket_ioctl
push 0
push 0x66ed1f
call fcn.004a94e0
add esp, 0xc
push str.calling_ioctlsocket__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.004a94f0
add esp, 0xc
xor eax, eax
test esi, esi
pop esi
sete al
ret
Function at 0x4e4d80
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov eax, 4
call fcn.005c8080
push edi
mov edi, dword [esp + 0xc]
mov dword [esp + 4], 1
cmp edi, 0xffffffff
jne 0x4e4dc8
call fcn.004a93e0
push str.BIO_connect
push 0
push 0x66ed1f
call fcn.004a94e0
push 0
push 0x87
push 0x20
call fcn.004a94f0
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.004e4b20
add esp, 8
test eax, eax
je 0x4e4e57
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
test bl, 4
je 0x4e4e5e
push 4
lea eax, [esp + 0x10]
push eax
push 8
push 0xffff
push edi
call esi
test eax, eax
je 0x4e4e5e
call fcn.004a93e0
push str.BIO_connect
push 0
push 0x66ed1f
call fcn.004a94e0
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.004a94f0
call fcn.004a93e0
push str.BIO_connect
push 0
push 0x66ed1f
call fcn.004a94e0
push 0
push 0x89
push 0x20
call fcn.004a94f0
add esp, 0x24
pop esi
pop ebx
xor eax, eax
pop edi
pop ecx
ret
test bl, 0x10
je 0x4e4ecf
push 4
lea eax, [esp + 0x10]
push eax
push 1
push 6
push edi
call esi
test eax, eax
je 0x4e4ecf
call fcn.004a93e0
push str.BIO_connect
push 0
push 0x66ed1f
call fcn.004a94e0
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.004a94f0
call fcn.004a93e0
push str.BIO_connect
push 0
push 0x66ed1f
call fcn.004a94e0
push 0
push 0x8a
push 0x20
call fcn.004a94f0
add esp, 0x24
xor eax, eax
pop esi
pop ebx
pop edi
pop ecx
ret
mov esi, dword [esp + 0x18]
push esi
call fcn.004c6520
add esp, 4
push eax
push esi
call fcn.004c6510
add esp, 4
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4e4f5b
push eax
call fcn.004a7fa0
add esp, 4
test eax, eax
jne 0x4e4e57
call fcn.004a93e0
push str.BIO_connect
push 0
push 0x66ed1f
call fcn.004a94e0
add esp, 0xc
push str.calling_connect__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.004a94f0
call fcn.004a93e0
push str.BIO_connect
push 0
push 0x66ed1f
call fcn.004a94e0
push 0
push 0x67
push 0x20
call fcn.004a94f0
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 0x4ec2c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov eax, dword [eax + 8]
test eax, eax
je 0x4ec2d4
mov dword [esp + 4], eax
jmp fcn.004c01a0
or eax, 0xffffffff
ret
Function at 0x4f8870
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 0x4f88b2
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 0x4f8892
pop ebx
pop edi
pop esi
ret

Function at 0x50c980
Capabilities:
Encode data using base64

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
xor ebp, ebp
push esi
test eax, eax
je 0x50c998
test byte [eax + 0x5c], 2
mov ebx, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz._
jne 0x50c99d
mov ebx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov esi, dword [esp + 0x1c]
test esi, esi
jle 0x50ca75
mov edx, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
inc edi
movzx eax, byte [edi - 1]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
cmp esi, 3
jb 0x50ca09
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 0x50ca55
shl eax, 0x10
cmp esi, 2
jne 0x50ca19
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
and ecx, 0x3f
movzx ecx, byte [ecx + ebx]
mov byte [edx + 1], cl
cmp esi, 1
jne 0x50ca3c
mov al, 0x3d
jmp 0x50ca45
shr eax, 6
and eax, 0x3f
mov al, byte [eax + ebx]
mov ecx, dword [esp + 0x18]
mov byte [ecx + 2], al
mov cl, 0x3d
mov eax, dword [esp + 0x14]
add eax, 3
sub esi, 3
mov byte [eax], cl
add ebp, 4
lea edx, [eax + 1]
add edi, 3
test esi, esi
jg 0x50c9b3
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 0x511cc0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push ebp
call fcn.004a3e00
mov ebx, eax
add esp, 4
test ebx, ebx
jg 0x511cda
xor eax, eax
jmp 0x511cdd
lea eax, [ebx - 1]
push 0
lea eax, [eax + eax*2]
lea eax, [eax*8 + 0x20]
push 0x66ed1f
push eax
call fcn.004a4e80
mov esi, eax
add esp, 0xc
test esi, esi
je 0x511d4f
push ebp
call fcn.004a3f70
and dword [esi + 4], 0xfffffffe
add esp, 4
xor ebp, ebp
test ebx, ebx
jle 0x511d4d
push edi
lea edi, [esi + 0x14]
push ebp
push dword [esp + 0x18]
call fcn.004a3fb0
inc ebp
lea edi, [edi + 0x18]
add esp, 8
movups xmm0, xmmword [eax]
movups xmmword [edi - 0x24], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [edi - 0x14], xmm0
mov eax, dword [esi + 4]
mov ecx, dword [edi - 0x18]
or ecx, eax
xor ecx, eax
and ecx, 1
xor ecx, eax
mov dword [esi + 4], ecx
cmp ebp, ebx
jl 0x511d14
pop edi
mov dword [esi], ebx
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x525000
Capabilities:
Hash data using sha1

Disassembly:
mov eax, 0x40
call fcn.005c8080
mov eax, dword [0x678dc8]
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 0x52503c
pop edi
mov eax, 0xfffffffe
pop esi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.005c77ea
add esp, 0x40
ret
test esi, esi
je 0x52514b
cmp dword [esp + 0x54], 0x30
jne 0x52514b
push 0x30
push edi
push esi
call fcn.00524f20
add esp, 0xc
test eax, eax
jle 0x52514b
movaps xmm0, xmmword [str.666666666666666600]
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.00524f20
add esp, 0xc
test eax, eax
je 0x52514b
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00524d80
add esp, 8
test eax, eax
je 0x52514b
push 0x4c
lea eax, [esi + 0x14]
push 0
push eax
call fcn.005c9580
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.00524f20
add esp, 0x18
test eax, eax
jle 0x52514b
movaps xmm0, xmmword [0x618c00]
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.00524f20
add esp, 0xc
test eax, eax
je 0x52514b
push 0x14
lea eax, [esp + 0x34]
push eax
push esi
call fcn.00524f20
add esp, 0xc
test eax, eax
je 0x52514b
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.005c77ea
add esp, 0x40
ret
mov ecx, dword [esp + 0x44]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.005c77ea
add esp, 0x40
ret