joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457960
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1b4
mov eax, dword [0x6a7d40]
xor eax, esp
mov dword [esp + 0x1b0], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, 1
lock xadd dword [0x6ac098], eax
inc eax
mov ebx, 0x6ac09c
cmp eax, 1
jne 0x4579a6
lea eax, [esp + 0x28]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [ebx], eax
cmp byte [ebp + 8], 0
je 0x457a31
xor esi, esi
lock xadd dword [ebx], esi
test esi, esi
je 0x457a31
mov ecx, dword [0x6a89a0]
mov eax, dword [0x6a89a4]
cmp ecx, 0x257edfd1
jne 0x4579d4
cmp eax, 0xb2ab117a
je 0x4579e3
cmp ecx, 0x257edfd0
jne 0x4579e7
cmp eax, 0xb2ab117a
jne 0x4579e7
mov al, 1
jmp 0x4579f7
mov eax, dword [0x6a8998]
mov ecx, 0x6a8998
push esi
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
add eax, 2
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 0x6a8998
mov dword [esp + 0xc], str.F:huanjing_vcpkg_2023.08.09installedx86_windows_staticinclude_boost_asiodetailimplwinsock_init.ipp
mov dword [esp + 0x10], str.throw_on_error
mov dword [esp + 0x14], 0x48
mov dword [esp + 0x18], 0x1a
test al, 1
jne 0x457a4a
mov ecx, dword [esp + 0x1bc]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005df387
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 0xc]
mov edx, str.winsock
push eax
lea ecx, [esp + 0x20]
call fcn.0044e5c0
int3

Function at 0x45f100
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60e5f8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6a7d40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.boost::exception_detail::clone_base.0
mov ebx, dword [ebp + 8]
lea eax, [edi + 8]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [edi + 4], vtable.std::exception.0
push eax
movq qword [eax], xmm0
lea eax, [ebx + 8]
push eax
call fcn.005e0b9e
mov dword [edi + 4], vtable.boost::system::system_error.0
add esp, 8
movq xmm0, qword [ebx + 0x10]
movq qword [edi + 0x10], xmm0
mov eax, dword [ebx + 0x18]
mov dword [edi + 0x18], eax
lea esi, [edi + 0x1c]
mov byte [ebp - 4], 1
mov dword [esi], vtable.boost::exception.0
mov ecx, dword [ebx + 0x20]
mov dword [ebp + 8], esi
mov dword [esi + 4], ecx
test ecx, ecx
je 0x45f18f
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [ebx + 0x24]
mov dword [esi + 8], eax
mov eax, dword [ebx + 0x28]
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 0x2c]
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 0x30]
mov dword [esi + 0x14], eax
mov eax, edi
mov dword [edi], vtable.boost::wrapexcept_class_boost::system::system_error_.2.0
mov dword [edi + 4], vtable.boost::wrapexcept_class_boost::system::system_error_.0
mov dword [esi], vtable.boost::wrapexcept_class_boost::system::system_error_.1.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4600d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60e675
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x6a7d40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ecx + 0xc]
xorps xmm0, xmm0
movq qword [ebp - 0x5c], xmm0
xor edx, edx
mov dword [ebp - 0x54], 0
lea eax, [esi + 0x18]
lock xadd dword [eax], edx
test edx, edx
jne 0x460124
mov ecx, esi
call fcn.0044f990
jmp 0x460208
lea eax, [ebp - 0x24]
mov dword [ebp - 0x28], 0
push eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
call fcn.005de582
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
add esp, 4
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x50], xmm0
movups xmmword [ebp - 0x40], xmm0
mov ecx, esi
mov dword [ebp - 4], 0
push dword [0x6ac130]
neg ecx
movq qword [ebp - 0x1c], xmm0
lea eax, [esi + 0x14]
mov dword [ebp - 0x14], 0
sbb ecx, ecx
and ecx, eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push dword [0x6ac130]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x50]
push eax
push ecx
mov ecx, esi
call fcn.0044fa90
test eax, eax
je 0x4601d4
nop dword [eax]
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x50]
push eax
push ecx
mov ecx, esi
call fcn.0044fa90
test eax, eax
jne 0x4601c0
push dword [ebp - 0x14]
push dword [0x6ac130]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xor esi, esi
mov eax, dword [ebp + esi*4 - 0x50]
test eax, eax
je 0x4601f6
push eax
call fcn.005dfa0d
add esp, 4
inc esi
cmp esi, 0xa
jl 0x4601e5
lea eax, [ebp - 0x24]
push eax
call fcn.005de66d
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005df387
mov esp, ebp
pop ebp
ret
Function at 0x461d20
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
push ebx
mov ebx, ecx
mov ecx, closesocket
push esi
mov eax, ecx
mov esi, dword [ebx + 0x10]
sub eax, esi
mov dword [ebp - 8], esi
cmp eax, edx
jb 0x461e52
lea eax, [esi + edx]
mov esi, dword [ebx + 0x14]
push edi
mov edi, eax
mov dword [ebp - 4], eax
or edi, 0xf
mov dword [ebp - 0xc], esi
cmp edi, ecx
jbe 0x461d80
mov edi, ecx
mov eax, connect
add eax, 0x23
push eax
call fcn.005df677
add esp, 4
test eax, eax
je 0x461e5c
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x461dc3
mov eax, esi
shr eax, 1
sub ecx, eax
cmp esi, ecx
jbe 0x461d91
mov edi, closesocket
jmp 0x461d5c
add eax, esi
cmp edi, eax
cmovb edi, eax
lea ecx, [edi + 1]
cmp ecx, 0x1000
jb 0x461db0
lea eax, [ecx + 0x23]
cmp eax, ecx
jbe 0x461e57
jmp 0x461d64
test ecx, ecx
je 0x461dc1
push ecx
call fcn.005df677
add esp, 4
mov esi, eax
jmp 0x461dc3
xor esi, esi
mov eax, dword [ebp - 4]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [ebx + 0x14], edi
mov edi, dword [ebp - 8]
push eax
inc edi
lea ecx, [esi + eax]
cmp dword [ebp - 0xc], 0xf
push str.POST__add_HTTP_1.1_r_nHost:_www.excic.cn_r_nContent_Type:_application_json_r_nUser_Agent:_Mozilla_5.0__Windows_NT_6.1__WOW64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_69.0.3497.100_Safari_537.36_r_nContent_Length:
mov dword [ebp - 4], ecx
push esi
jbe 0x461e33
mov edi, dword [ebx]
call fcn.005e1090
mov eax, dword [ebp - 8]
inc eax
push eax
push edi
push dword [ebp - 4]
call fcn.005e1090
mov ecx, dword [ebp - 0xc]
add esp, 0x18
inc ecx
cmp ecx, 0x1000
jb 0x461e1c
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x461e5c
mov edi, edx
push ecx
push edi
call fcn.005dfa12
add esp, 8
mov dword [ebx], esi
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
call fcn.005e1090
push edi
push ebx
push dword [ebp - 4]
call fcn.005e1090
add esp, 0x18
mov dword [ebx], esi
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
call fcn.0044c1a0
call fcn.0044c100
call fcn.005ea200
int3
Function at 0x4638c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60eb15
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x6a7d40]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov eax, dword [edi + 4]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x1c], edi
test al, 1
jne 0x46392b
push dword [0x6ac130]
and eax, 0xfffffffc
mov esi, dword [eax + 8]
lea eax, [esi + 0x14]
neg esi
sbb esi, esi
and esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46392b
nop dword [eax]
cmp dword [eax], esi
je 0x46394d
mov eax, dword [eax + 8]
test eax, eax
jne 0x463920
push dword [0x6ac130]
lea eax, [edi + 1]
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4639cd
mov ecx, dword [eax + 4]
jmp 0x4639cf
cmp dword [eax + 4], 0
je 0x46392b
mov eax, dword [ebx]
mov dword [ebp - 0x18], eax
mov dword [ebx], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
push eax
call fcn.00462980
add esp, 8
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x463a94
push 0
push eax
mov eax, dword [eax]
call eax
add esp, 8
jmp 0x463a94
xor ecx, ecx
push ecx
push dword [ebp - 0x1c]
mov edx, 0x28
call fcn.0045c5f0
mov esi, eax
add esp, 8
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0x463ce0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x1c], 0
mov eax, dword [ebx]
mov dword [esi + 0x20], eax
mov dword [ebx], 0
mov eax, dword [edi + 4]
and eax, 0xfffffffc
mov edi, dword [eax + 8]
lock inc dword [edi + 0x18]
push esi
push 0
push 0
mov dword [esi + 0x1c], 1
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x463a7e
lea ebx, [edi + 0x38]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esi + 0x14], 0
mov eax, dword [edi + 0x58]
test eax, eax
je 0x463a67
mov dword [eax + 0x14], esi
jmp 0x463a6a
mov dword [edi + 0x54], esi
mov dword [edi + 0x58], esi
lea eax, [edi + 0x34]
mov ecx, 1
xchg dword [eax], ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
call fcn.00463ad0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005df387
mov esp, ebp
pop ebp
ret 4
Function at 0x463ad0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60eb40
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x6a7d40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 8]
test eax, eax
je 0x463b1c
mov dword [ebp - 4], 0
mov eax, dword [eax + 0x20]
test eax, eax
je 0x463b15
push 0
push eax
mov eax, dword [eax]
call eax
add esp, 8
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x463b5f
push dword [0x6ac130]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x463b4f
mov edx, dword [eax + 4]
test edx, edx
je 0x463b4f
xor eax, eax
nop dword [eax]
cmp dword [edx + eax*4], 0
lea ecx, [edx + eax*4]
je 0x463b70
inc eax
cmp eax, 2
jl 0x463b40
push esi
call fcn.005dfa0d
add esp, 4
mov dword [edi + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov al, byte [esi + 0x28]
mov byte [esi], al
mov dword [ecx], esi
jmp 0x463b58

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

Disassembly:
mov eax, 4
call fcn.005dfc90
push edi
mov edi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
test edi, edi
je 0x46a030
mov cl, byte [edi]
test cl, cl
je 0x46a030
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 0x469fe0
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 0x46a0b0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 4
call fcn.005dfc90
push edi
mov edi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
test edi, edi
je 0x46a133
mov cl, byte [edi]
test cl, cl
je 0x46a133
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 0x46a0e0
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 0x46b220
Capabilities:
Initialize winsock library

Disassembly:
cmp dword [0x6aa360], 0
jne 0x46b2b9
push 0x190
push 0
push 0x6aa368
mov dword [0x6aa360], 1
call fcn.005e1610
add esp, 0xc
push 0x6aa368
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x46b2b9
call fcn.0046b450
push str.BIO_sock_init
push 0x94
push str.crypto_bio_bio_sock.c
call fcn.0046b550
add esp, 0xc
push str.calling_wsastartup__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.0046b600
call fcn.0046b450
push str.BIO_sock_init
push 0x96
push str.crypto_bio_bio_sock.c
call fcn.0046b550
push 0
push 0x7a
push 0x20
call fcn.0046b600
add esp, 0x24
or eax, 0xffffffff
ret
mov eax, 1
ret

Function at 0x46b2c0
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 0x46b315
call fcn.0046b450
push str.BIO_socket_ioctl
push 0xd1
push str.crypto_bio_bio_sock.c
call fcn.0046b550
add esp, 0xc
push str.calling_ioctlsocket__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.0046b600
add esp, 0xc
xor eax, eax
test esi, esi
pop esi
sete al
ret

Function at 0x46b320
Capabilities:
Get socket status

Disassembly:
mov eax, 0x110
call fcn.005dfc90
mov eax, dword [0x6a7d40]
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 0x46b40d
push esi
mov esi, dword [esp + 0x128]
mov eax, esi
or eax, dword [esp + 0x12c]
jne 0x46b381
pop esi
pop edi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.005df387
add esp, 0x110
ret
push 0
call fcn.005ea4ef
add esp, 4
cmp dword [esp + 0x12c], edx
jg 0x46b3b4
jl 0x46b39a
cmp esi, eax
jae 0x46b3b4
pop esi
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.005df387
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.005df387
add esp, 0x110
ret
mov ecx, dword [esp + 0x114]
or eax, 0xffffffff
pop edi
pop ebp
xor ecx, esp
call fcn.005df387
add esp, 0x110
ret
Function at 0x46c300
Capabilities:
Get common file path

Disassembly:
mov eax, 0x230
call fcn.005dfc90
mov eax, dword [0x6a7d40]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x6aa500], 0
mov dword [esp], 0x610e60
mov dword [esp + 4], 0x46bd00
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x46c0b0
mov dword [esp + 0x10], 0x610e78
mov dword [esp + 0x14], 0x46bcb0
jne 0x46c466
push 0x104
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x46c45c
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.005eabae
push str.ws2_32
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.005eac08
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 0x46c3cf
push 0x610e60
push edi
call ebx
test eax, eax
jne 0x46c416
push edi
call ebp
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.005eabae
push str.wship6
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.005eac08
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call esi
mov edi, eax
test edi, edi
je 0x46c458
push 0x610e60
push edi
call ebx
test eax, eax
je 0x46c455
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 0x46c455
inc esi
lea eax, [esp + 0x10]
cmp esi, 3
jl 0x46c420
mov eax, dword [esp + 0x14]
mov dword [0x6a32c4], eax
mov eax, dword [esp + 0x1c]
mov dword [0x6a32cc], eax
mov eax, dword [esp + 0x24]
mov dword [0x6a32d4], eax
jmp 0x46c458
push edi
call ebp
pop edi
pop esi
pop ebp
pop ebx
mov dword [0x6aa500], 1
movzx eax, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
mov eax, dword [eax*8 + 0x6a32c4]
call fcn.005df387
add esp, 0x230
ret 4
Function at 0x46c490
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x820
call fcn.005dfc90
mov eax, dword [0x6a7d40]
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.005e1610
push 0x400
lea eax, [esp + 0x439]
mov byte [esp + 0x438], 0
push 0
push eax
call fcn.005e1610
push 0x400
push esi
lea eax, [esp + 0x44]
push 0x401
push eax
mov dword [esp + 0x3c], eax
lea ebp, [esp + 0x450]
call fcn.005ead22
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 0x46c66f
cmp word [ebx + 8], 2
jne 0x46c592
cmp word [ebx + 0xa], 4
jne 0x46c592
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x46c592
nop dword [eax]
nop dword [eax + eax]
push dword [eax]
push dword [esp + 0x844]
push dword [esp + 0x844]
push dword [esp + 0x844]
call fcn.0046c6c0
mov dword [edi], eax
test eax, eax
je 0x46c668
add esi, 4
lea edi, [eax + 0x1c]
mov eax, dword [esi]
test eax, eax
jne 0x46c560
push 0x400
push dword [ebx]
push 0x401
push ebp
call fcn.005ead22
mov ebx, dword [esp + 0x28]
xor esi, esi
add esp, 0x10
cmp dword [ebx], esi
jne 0x46c61f
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46c5b6
sub ecx, edx
je case.0x46c67f.11003
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov eax, edi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x46c5f0
test dl, dl
je 0x46c5ec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x46c5f0
add eax, 2
add ecx, 2
test dl, dl
jne 0x46c5d0
xor eax, eax
jmp 0x46c5f5
sbb eax, eax
or eax, 1
test eax, eax
je case.0x46c67f.11003
mov esi, dword [esp + 0x10]
inc esi
mov dword [esp + 0x10], esi
cmp esi, 0x10
je case.0x46c67f.11003
mov esi, dword [esp + 0x1c]
mov eax, edi
mov dword [esp + 0x14], ebp
mov ebp, eax
jmp 0x46c520
mov esi, 0x2afb
jmp 0x46c692
cmp dword [esp + 0x844], esi
je 0x46c692
mov ecx, ebp
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46c630
sub ecx, edx
lea ebx, [ecx + 1]
push ebx
push 1
call fcn.005e4733
mov edi, eax
add esp, 8
test edi, edi
je 0x46c658
push ebp
push ebx
push edi
call fcn.005eabae
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 0x46c692
mov esi, 8
jmp 0x46c692
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x46c67f.11001
jmp dword [eax*4 + 0x46c6b0]
mov esi, 0x2afa
jmp 0x46c692
mov esi, 0x2af9
mov ecx, dword [esp + 0x82c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005df387
add esp, 0x820
ret 0x18
Function at 0x479f80
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov eax, 4
call fcn.005dfc90
push edi
mov edi, dword [esp + 0xc]
mov dword [esp + 4], 1
cmp edi, 0xffffffff
jne 0x479fc8
call fcn.0046b450
push str.BIO_connect
push 0x54
push str.crypto_bio_bio_sock2.c
call fcn.0046b550
push 0
push 0x87
push 0x20
call fcn.0046b600
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.0046b2c0
add esp, 8
test eax, eax
je 0x47a057
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
test bl, 4
je 0x47a05e
push 4
lea eax, [esp + 0x10]
push eax
push 8
push 0xffff
push edi
call esi
test eax, eax
je 0x47a05e
call fcn.0046b450
push str.BIO_connect
push 0x5e
push str.crypto_bio_bio_sock2.c
call fcn.0046b550
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.0046b600
call fcn.0046b450
push str.BIO_connect
push 0x60
push str.crypto_bio_bio_sock2.c
call fcn.0046b550
push 0
push 0x89
push 0x20
call fcn.0046b600
add esp, 0x24
pop esi
pop ebx
xor eax, eax
pop edi
pop ecx
ret
test bl, 0x10
je 0x47a0cf
push 4
lea eax, [esp + 0x10]
push eax
push 1
push 6
push edi
call esi
test eax, eax
je 0x47a0cf
call fcn.0046b450
push str.BIO_connect
push 0x68
push str.crypto_bio_bio_sock2.c
call fcn.0046b550
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.0046b600
call fcn.0046b450
push str.BIO_connect
push 0x6a
push str.crypto_bio_bio_sock2.c
call fcn.0046b550
push 0
push 0x8a
push 0x20
call fcn.0046b600
add esp, 0x24
xor eax, eax
pop esi
pop ebx
pop edi
pop ecx
ret
mov esi, dword [esp + 0x18]
push esi
call fcn.0046b8f0
add esp, 4
push eax
push esi
call fcn.0046b8e0
add esp, 4
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x47a15b
push eax
call fcn.00479e90
add esp, 4
test eax, eax
jne 0x47a057
call fcn.0046b450
push str.BIO_connect
push 0x72
push str.crypto_bio_bio_sock2.c
call fcn.0046b550
add esp, 0xc
push str.calling_connect__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.0046b600
call fcn.0046b450
push str.BIO_connect
push 0x74
push str.crypto_bio_bio_sock2.c
call fcn.0046b550
push 0
push 0x67
push 0x20
call fcn.0046b600
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 0x48dd40
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.005dfc90
mov eax, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x24]
push ebp
mov ebp, dword [eax + 0x64]
push esi
mov esi, dword [esp + 0x28]
push edi
mov ecx, dword [ebp + 0x70]
mov edi, dword [esp + 0x28]
mov dword [esp + 0x10], ebp
test ecx, ecx
je 0x48dda9
test ebx, ebx
je 0x48dd89
lea edx, [ebp + 0x30]
add edx, ecx
cmp ecx, 0x40
jae 0x48dd89
mov al, byte [edx]
inc ecx
xor al, byte [esi]
inc edx
mov byte [edi], al
inc esi
inc edi
sub ebx, 1
jne 0x48dd75
mov dword [ebp + 0x70], ecx
test ebx, ebx
je 0x48de64
cmp ecx, 0x40
jne 0x48dda9
mov dword [ebp + 0x70], 0
add dword [ebp + 0x20], 1
jne 0x48dda9
inc dword [ebp + 0x24]
mov edx, dword [ebp + 0x20]
mov eax, ebx
and eax, 0x3f
sub ebx, eax
mov dword [esp + 0x1c], eax
lea eax, [ebp + 0x20]
mov dword [esp + 0x24], eax
cmp ebx, 0x40
jb 0x48de17
push dword [esp + 0x24]
mov ecx, ebx
xor ebp, ebp
shr ecx, 6
lea eax, [ecx + edx]
cmp eax, ecx
cmovae ebp, eax
neg edx
cmp eax, ecx
mov dword [esp + 0x1c], ebp
mov ebp, dword [esp + 0x14]
cmovae edx, ecx
shl edx, 6
push ebp
push edx
push esi
push edi
mov dword [esp + 0x28], edx
call fcn.0040ea80
mov eax, dword [esp + 0x28]
add esp, 0x14
sub ebx, eax
add esi, eax
add edi, eax
mov eax, dword [esp + 0x18]
mov dword [ebp + 0x20], eax
test eax, eax
jne 0x48de10
inc dword [ebp + 0x24]
mov edx, eax
cmp ebx, 0x40
jae 0x48ddc3
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x48de64
push 0x40
lea eax, [ebp + 0x30]
push 0
push eax
call fcn.005e1610
lea eax, [ebp + 0x20]
push eax
push ebp
lea eax, [ebp + 0x30]
push 0x40
push eax
push eax
call fcn.0040ea80
add esp, 0x20
xor edx, edx
test ebx, ebx
je 0x48de61
sub esi, edi
nop dword [eax + eax]
mov al, byte [edx + ebp + 0x30]
lea ecx, [edx + edi]
xor al, byte [esi + ecx]
inc edx
mov byte [ecx], al
cmp edx, ebx
jb 0x48de50
mov dword [ebp + 0x70], ebx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret