joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53e220
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, 0x10
call fcn.0067c7e0
push ebx
push ebp
or ebp, 0xffffffff
push esi
mov dword [esp + 0x10], ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [0x75cad0]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
push esi
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
jne 0x53e29b
push 0xde
push str.crypto_threads_win.c
push 0x78
call fcn.0052b720
mov ebx, eax
add esp, 0xc
mov dword [esp + 0x14], ebx
test ebx, ebx
jne 0x53e28e
push 0xdf
push str.crypto_threads_win.c
push str.assertion_failed:_data___NULL
call fcn.0052b7d0
add esp, 0xc
push ebx
push dword [0x75cad0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edx, dword [esp + 0x20]
xor ecx, ecx
mov eax, ebx
cmp dword [eax], 0
jne 0x53e2b2
cmp ebp, 0xffffffff
cmove ebp, ecx
mov dword [esp + 0x10], ebp
cmp dword [eax + 8], edx
je 0x53e381
inc ecx
add eax, 0xc
cmp ecx, 0xa
jl 0x53e2a3
lea ebx, [edx + 0x14]
mov dword [esp + 0xc], ebx
push edi
nop dword [eax]
xor esi, esi
mov eax, dword [ebx]
mov ecx, eax
or ecx, esi
lock cmpxchg dword [ebx], ecx
jne 0x53e2d4
mov ebp, dword [edx + 8]
mov dword [esp + 0x1c], eax
shl eax, 3
add ebp, eax
nop word [eax + eax]
mov esi, dword [ebp]
mov ebx, esi
mov edi, dword [ebp + 4]
add ebx, 1
mov ecx, edi
mov eax, esi
adc ecx, 0
mov edx, edi
lock cmpxchg8b qword [ebp]
cmp eax, esi
jne 0x53e2f0
cmp edx, edi
jne 0x53e2f0
mov edx, dword [esp + 0x10]
xor esi, esi
mov eax, dword [edx]
mov ecx, eax
or ecx, esi
lock cmpxchg dword [edx], ecx
jne 0x53e319
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
mov edx, dword [esi + 8]
cmp edi, eax
je 0x53e363
lea ebp, [edx + edi*8]
mov edi, dword [ebp]
mov ebx, edi
mov esi, dword [ebp + 4]
sub ebx, 1
mov ecx, esi
mov eax, edi
sbb ecx, 0
mov edx, esi
lock cmpxchg8b qword [ebp]
cmp eax, edi
jne 0x53e335
cmp edx, esi
jne 0x53e335
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x10]
jmp 0x53e2d0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
lea eax, [eax + eax*2]
lea ecx, [ecx + eax*4]
lea eax, [edx + edi*8]
mov dword [ecx + 4], 1
mov dword [ecx], eax
mov dword [ecx + 8], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x53e390
Capabilities:
Get thread local storage value

Disassembly:
mov eax, 8
call fcn.0067c7e0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [0x75cad0]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [esp + 0x14]
lea edx, [edi + 8]
xor ecx, ecx
cmp dword [edx], esi
je 0x53e3d5
inc ecx
add edx, 0xc
cmp ecx, 0xa
jl 0x53e3c2
pop edi
pop esi
add esp, 8
ret
lea eax, [ecx + ecx*2]
add dword [edi + eax*4 + 4], 0xffffffff
push ebx
lea ebx, [edi + eax*4]
jne 0x53e454
mov eax, dword [ebx]
mov dword [esp + 0xc], eax
push ebp
nop word [eax + eax]
mov esi, dword [eax]
mov ebp, esi
mov edi, dword [eax + 4]
sub ebp, 1
mov ecx, edi
mov dword [esp + 0x14], edi
mov edx, edi
sbb ecx, 0
mov edi, dword [esp + 0x10]
mov eax, esi
push ebx
mov ebx, ebp
lock cmpxchg8b qword [edi]
mov ebp, ebx
pop ebx
mov edi, dword [esp + 0x14]
cmp eax, esi
mov eax, dword [esp + 0x10]
jne 0x53e3f0
cmp edx, edi
jne 0x53e3f0
test ecx, ecx
jg 0x53e446
jl 0x53e42f
test ebp, ebp
jae 0x53e446
push 0x10c
push str.crypto_threads_win.c
push str.assertion_failed:_ret___0
call fcn.0052b7d0
add esp, 0xc
mov dword [ebx], 0
mov dword [ebx + 8], 0
pop ebp
pop ebx
pop edi
pop esi
add esp, 8
ret

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

Disassembly:
mov eax, 4
call fcn.0067c7e0
push edi
mov edi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
test edi, edi
je 0x53ebe0
mov cl, byte [edi]
test cl, cl
je 0x53ebe0
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 0x53eb90
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 0x53ec90
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 4
call fcn.0067c7e0
push edi
mov edi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
test edi, edi
je 0x53ed13
mov cl, byte [edi]
test cl, cl
je 0x53ed13
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 0x53ecc0
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 0x549290
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x168
call fcn.0067c7e0
mov eax, dword [0x75a1c0]
xor eax, esp
mov dword [esp + 0x164], eax
mov eax, dword [esp + 0x170]
push ebp
mov ebp, dword [esp + 0x17c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x178]
mov dword [esp + 0x10], eax
push edi
mov edi, dword [esp + 0x174]
test ebp, ebp
je 0x5494a9
push ebx
mov ebx, edi
mov eax, edi
push esi
shr ebx, 0x17
mov esi, 2
test edi, edi
push 0x548b60
cmovs ebx, esi
shr eax, 0x17
push 0x75cb7c
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], eax
call fcn.0053ded0
add esp, 8
neg eax
sbb eax, eax
test dword [0x75cb88], eax
je 0x549366
mov eax, dword [esp + 0x10]
test edi, edi
push dword [0x75cb80]
cmovs eax, esi
movzx eax, al
shl eax, 0x17
mov dword [esp + 0x30], eax
call fcn.0053dec0
add esp, 4
test eax, eax
je 0x549366
lea eax, [esp + 0x2c]
push eax
push dword [0x75cb84]
call fcn.0053eaf0
push dword [0x75cb80]
mov esi, eax
call fcn.0053df40
add esp, 0xc
test esi, esi
je 0x549366
mov eax, dword [esi + 4]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x549383
push ebx
push str.lib__lu_
lea eax, [esp + 0x3c]
push 0x40
push eax
call fcn.00540b40
lea eax, [esp + 0x44]
add esp, 0x10
mov dword [esp + 0x14], eax
mov esi, edi
test edi, edi
jns 0x5493b1
push 0x100
lea eax, [esp + 0x78]
and esi, 0x7fffffff
push eax
push esi
call fcn.0053b5f0
add esp, 0xc
lea ecx, [esp + 0x74]
neg eax
sbb eax, eax
and eax, ecx
jmp 0x549435
push 0x548b60
push 0x75cb7c
and esi, 0x7fffff
call fcn.0053ded0
add esp, 8
neg eax
sbb eax, eax
test dword [0x75cb88], eax
je 0x549439
mov eax, dword [esp + 0x10]
push dword [0x75cb80]
movzx eax, al
shl eax, 0x17
or eax, esi
mov dword [esp + 0x28], eax
call fcn.0053dec0
add esp, 4
test eax, eax
je 0x54941b
lea eax, [esp + 0x24]
push eax
push dword [0x75cb84]
call fcn.0053eaf0
push dword [0x75cb80]
mov ebx, eax
call fcn.0053df40
add esp, 0xc
test ebx, ebx
jne 0x549432
lea eax, [esp + 0x24]
mov dword [esp + 0x24], esi
push eax
call fcn.00549120
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x549439
mov eax, dword [ebx + 4]
test eax, eax
jne 0x54945c
mov eax, esi
and eax, 0xff83ffff
push eax
push str.reason__lu_
lea eax, [esp + 0x7c]
push 0x100
push eax
call fcn.00540b40
add esp, 0x10
lea eax, [esp + 0x74]
mov ebx, dword [esp + 0x1c]
push eax
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push edi
push str.error:_08lX:_s:_s:_s
push ebp
push ebx
call fcn.00540b40
mov ecx, ebx
add esp, 0x1c
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x549480
sub ecx, edx
lea eax, [ebp - 1]
cmp ecx, eax
jne 0x5494a7
push esi
push 0
push dword [esp + 0x28]
push edi
push str.err:_lx:_lx:_lx:_lx
push ebp
push ebx
call fcn.00540b40
add esp, 0x1c
pop esi
pop ebx
mov ecx, dword [esp + 0x16c]
pop edi
pop ebp
xor ecx, esp
call fcn.0067bc9f
add esp, 0x168
ret
Function at 0x55e8e0
Capabilities:
Initialize winsock library

Disassembly:
cmp dword [0x75cee0], 0
jne 0x55e979
push 0x190
push 0
push 0x75cee8
mov dword [0x75cee0], 1
call fcn.0067ddd0
add esp, 0xc
push 0x75cee8
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x55e979
call fcn.00530ec0
push str.BIO_sock_init
push 0x99
push str.crypto_bio_bio_sock.c
call fcn.00530fc0
add esp, 0xc
push str.calling_wsastartup__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.005310d0
call fcn.00530ec0
push str.BIO_sock_init
push 0x9b
push str.crypto_bio_bio_sock.c
call fcn.00530fc0
push 0
push 0x7a
push 0x20
call fcn.005310d0
add esp, 0x24
or eax, 0xffffffff
ret
mov eax, 1
ret

Function at 0x55e980
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 0x55e9d5
call fcn.00530ec0
push str.BIO_socket_ioctl
push 0xf7
push str.crypto_bio_bio_sock.c
call fcn.00530fc0
add esp, 0xc
push str.calling_ioctlsocket__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.005310d0
add esp, 0xc
xor eax, eax
test esi, esi
pop esi
sete al
ret

Function at 0x55e9e0
Capabilities:
Get socket status

Disassembly:
mov eax, 0x110
call fcn.0067c7e0
mov eax, dword [0x75a1c0]
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 0x55eacd
push esi
mov esi, dword [esp + 0x128]
mov eax, esi
or eax, dword [esp + 0x12c]
jne 0x55ea41
pop esi
pop edi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0067bc9f
add esp, 0x110
ret
push 0
call fcn.0068d0da
add esp, 4
cmp dword [esp + 0x12c], edx
jg 0x55ea74
jl 0x55ea5a
cmp esi, eax
jae 0x55ea74
pop esi
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0067bc9f
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.0067bc9f
add esp, 0x110
ret
mov ecx, dword [esp + 0x114]
or eax, 0xffffffff
pop edi
pop ebp
xor ecx, esp
call fcn.0067bc9f
add esp, 0x110
ret
Function at 0x55f670
Capabilities:
Get common file path

Disassembly:
mov eax, 0x230
call fcn.0067c7e0
mov eax, dword [0x75a1c0]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x75d080], 0
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x55f070
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x55f420
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], 0x55f020
jne 0x55f7d6
push 0x104
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x55f7cc
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.0068fddc
push str.ws2_32
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.0068fe36
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 0x55f73f
push str.getaddrinfo
push edi
call ebx
test eax, eax
jne 0x55f786
push edi
call ebp
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.0068fddc
push str.wship6
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.0068fe36
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call esi
mov edi, eax
test edi, edi
je 0x55f7c8
push str.getaddrinfo
push edi
call ebx
test eax, eax
je 0x55f7c5
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 0x55f7c5
inc esi
lea eax, [esp + 0x10]
cmp esi, 3
jl 0x55f790
mov eax, dword [esp + 0x14]
mov dword [0x75871c], eax
mov eax, dword [esp + 0x1c]
mov dword [0x758724], eax
mov eax, dword [esp + 0x24]
mov dword [0x75872c], eax
jmp 0x55f7c8
push edi
call ebp
pop edi
pop esi
pop ebp
pop ebx
mov dword [0x75d080], 1
movzx eax, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
mov eax, dword [eax*8 + 0x75871c]
call fcn.0067bc9f
add esp, 0x230
ret 4
Function at 0x55f800
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x820
call fcn.0067c7e0
mov eax, dword [0x75a1c0]
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.0067ddd0
push 0x400
lea eax, [esp + 0x439]
mov byte [esp + 0x438], 0
push 0
push eax
call fcn.0067ddd0
push 0x400
push esi
lea eax, [esp + 0x44]
push 0x401
push eax
mov dword [esp + 0x3c], eax
lea ebp, [esp + 0x450]
call fcn.0068ff50
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 0x55f9df
cmp word [ebx + 8], 2
jne 0x55f902
cmp word [ebx + 0xa], 4
jne 0x55f902
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x55f902
nop dword [eax]
nop dword [eax + eax]
push dword [eax]
push dword [esp + 0x844]
push dword [esp + 0x844]
push dword [esp + 0x844]
call fcn.0055fa30
mov dword [edi], eax
test eax, eax
je 0x55f9d8
add esi, 4
lea edi, [eax + 0x1c]
mov eax, dword [esi]
test eax, eax
jne 0x55f8d0
push 0x400
push dword [ebx]
push 0x401
push ebp
call fcn.0068ff50
mov ebx, dword [esp + 0x28]
xor esi, esi
add esp, 0x10
cmp dword [ebx], esi
jne 0x55f98f
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x55f926
sub ecx, edx
je case.0x55f9ef.11003
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov eax, edi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x55f960
test dl, dl
je 0x55f95c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x55f960
add eax, 2
add ecx, 2
test dl, dl
jne 0x55f940
xor eax, eax
jmp 0x55f965
sbb eax, eax
or eax, 1
test eax, eax
je case.0x55f9ef.11003
mov esi, dword [esp + 0x10]
inc esi
mov dword [esp + 0x10], esi
cmp esi, 0x10
je case.0x55f9ef.11003
mov esi, dword [esp + 0x1c]
mov eax, edi
mov dword [esp + 0x14], ebp
mov ebp, eax
jmp 0x55f890
mov esi, 0x2afb
jmp 0x55fa02
cmp dword [esp + 0x844], esi
je 0x55fa02
mov ecx, ebp
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x55f9a0
sub ecx, edx
lea ebx, [ecx + 1]
push ebx
push 1
call fcn.00681a00
mov edi, eax
add esp, 8
test edi, edi
je 0x55f9c8
push ebp
push ebx
push edi
call fcn.0068fddc
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 0x55fa02
mov esi, 8
jmp 0x55fa02
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x55f9ef.11001
jmp dword [eax*4 + 0x55fa20]
mov esi, 0x2afa
jmp 0x55fa02
mov esi, 0x2af9
mov ecx, dword [esp + 0x82c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0067bc9f
add esp, 0x820
ret 0x18
Function at 0x575db0
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.005b65b0
push 0x62
push edi
mov ebx, eax
call fcn.0067dfd0
add esp, 0x10
neg eax
sbb esi, esi
and esi, 0xfffffff0
add esi, 0x11
test ebx, ebx
jne 0x575e62
call fcn.00530ec0
push str.BIO_new_file
push 0x43
push str.crypto_bio_bss_file.c
call fcn.00530fc0
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.005310d0
add esp, 0x14
call fcn.00688468
cmp dword [eax], 2
je 0x575e32
call fcn.00688468
cmp dword [eax], 6
je 0x575e32
mov esi, 0x80002
lea edi, [ebx + 0x4d]
jmp 0x575e3a
mov esi, 0x80
lea edi, [esi - 0x35]
call fcn.00530ec0
push str.BIO_new_file
push edi
push str.crypto_bio_bss_file.c
call fcn.00530fc0
push 0
push esi
push 0x20
call fcn.005310d0
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x6decc4
call fcn.0053fe20
mov edi, eax
add esp, 4
test edi, edi
jne 0x575e84
push ebx
call fcn.00681e93
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push edi
call fcn.0053f6d0
push ebx
push esi
push 0x6a
push edi
call fcn.0053f700
add esp, 0x18
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x58fcf0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov eax, 4
call fcn.0067c7e0
push edi
mov edi, dword [esp + 0xc]
mov dword [esp + 4], 1
cmp edi, 0xffffffff
jne 0x58fd38
call fcn.00530ec0
push str.BIO_connect
push 0x56
push str.crypto_bio_bio_sock2.c
call fcn.00530fc0
push 0
push 0x87
push 0x20
call fcn.005310d0
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.0055e980
add esp, 8
test eax, eax
je 0x58fdc7
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
test bl, 4
je 0x58fdce
push 4
lea eax, [esp + 0x10]
push eax
push 8
push 0xffff
push edi
call esi
test eax, eax
je 0x58fdce
call fcn.00530ec0
push str.BIO_connect
push 0x60
push str.crypto_bio_bio_sock2.c
call fcn.00530fc0
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.005310d0
call fcn.00530ec0
push str.BIO_connect
push 0x62
push str.crypto_bio_bio_sock2.c
call fcn.00530fc0
push 0
push 0x89
push 0x20
call fcn.005310d0
add esp, 0x24
pop esi
pop ebx
xor eax, eax
pop edi
pop ecx
ret
test bl, 0x10
je 0x58fe3f
push 4
lea eax, [esp + 0x10]
push eax
push 1
push 6
push edi
call esi
test eax, eax
je 0x58fe3f
call fcn.00530ec0
push str.BIO_connect
push 0x6a
push str.crypto_bio_bio_sock2.c
call fcn.00530fc0
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.005310d0
call fcn.00530ec0
push str.BIO_connect
push 0x6c
push str.crypto_bio_bio_sock2.c
call fcn.00530fc0
push 0
push 0x8a
push 0x20
call fcn.005310d0
add esp, 0x24
xor eax, eax
pop esi
pop ebx
pop edi
pop ecx
ret
mov esi, dword [esp + 0x18]
push esi
call fcn.0055ecb0
add esp, 4
push eax
push esi
call fcn.0055eca0
add esp, 4
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x58fed1
push eax
call fcn.0058fc00
add esp, 4
test eax, eax
jne 0x58fdc7
call fcn.00530ec0
push str.BIO_connect
push 0xb2
push str.crypto_bio_bio_sock2.c
call fcn.00530fc0
add esp, 0xc
push str.calling_connect__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.005310d0
call fcn.00530ec0
push str.BIO_connect
push 0xb4
push str.crypto_bio_bio_sock2.c
call fcn.00530fc0
push 0
push 0x67
push 0x20
call fcn.005310d0
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 0x5912a0
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 0x5912e2
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 0x5912c2
pop ebx
pop edi
pop esi
ret
Function at 0x5de8b0
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 0x5de8eb
cmp esi, edx
jb 0x5de8eb
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 0x5de8d4
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 0x5de900
pop esi
ret
Function at 0x64b020
Capabilities:
Encode data using base64

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
xor ebp, ebp
push esi
test eax, eax
je 0x64b038
test byte [eax + 0x5c], 2
mov ebx, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz._
jne 0x64b03d
mov ebx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov esi, dword [esp + 0x1c]
test esi, esi
jle 0x64b10d
mov edx, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
inc edi
movzx eax, byte [edi - 1]
cmp esi, 3
jb 0x64b0a1
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 0x64b0ed
shl eax, 0x10
cmp esi, 2
jne 0x64b0b1
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 0x64b0d8
mov al, 0x3d
jmp 0x64b0e1
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 0x64b053
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 0x665b30
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 8]
not eax
push esi
mov esi, dword [esp + 0x10]
push edi
cmp esi, 8
jbe 0x665c06
test bl, 7
je 0x665b69
nop
movzx ecx, byte [ebx]
dec esi
movzx edx, al
inc ebx
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x7358d8]
test bl, 7
jne 0x665b50
mov edi, esi
and esi, 7
and edi, 0xfffffff8
add edi, ebx
cmp ebx, edi
jae 0x665c06
nop dword [eax + eax]
xor eax, dword [ebx]
add ebx, 4
mov dword [esp + 0x18], ebx
add dword [esp + 0x18], 4
mov ebx, dword [ebx]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x735cd8]
xor edx, dword [ecx*4 + 0x7360d8]
mov ecx, eax
shr ecx, 0x10
movzx ecx, cl
xor edx, dword [ecx*4 + 0x736cd8]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x7370d8]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x7358d8]
mov ecx, eax
shr ecx, 0x18
movzx eax, al
xor edx, dword [ecx*4 + 0x7368d8]
movzx ecx, bl
mov ebx, dword [esp + 0x18]
xor edx, dword [ecx*4 + 0x7364d8]
xor edx, dword [eax*4 + 0x7374d8]
mov eax, edx
cmp ebx, edi
jb 0x665b80
test esi, esi
je 0x665c2a
nop word [eax + eax]
movzx ecx, byte [ebx]
lea ebx, [ebx + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x7358d8]
sub esi, 1
jne 0x665c10
pop edi
pop esi
not eax
pop ebx
ret