joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423c60
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c89b7
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2d8
mov eax, dword [0x6540c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x2c8], esi
mov dword [ebp - 0x2bc], esi
mov dword [ebp - 0x2d8], esi
lea eax, [ebp - 0x218]
push edi
mov dword [ebp - 0x2c0], 0
push 0x200
push 1
push eax
mov dword [ebp - 0x2a8], 0x67452301
mov dword [ebp - 0x2a4], 0xefcdab89
mov dword [ebp - 0x2a0], 0x98badcfe
mov dword [ebp - 0x29c], 0x10325476
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x2ac], 0
call fcn.004a2399
add esp, 0x10
test eax, eax
je 0x423d4d
nop dword [eax + eax]
push eax
lea edx, [ebp - 0x218]
lea ecx, [ebp - 0x2b0]
call fcn.00423a90
push edi
push 0x200
lea eax, [ebp - 0x218]
push 1
push eax
call fcn.004a2399
add esp, 0x14
test eax, eax
jne 0x423d20
lea edx, [ebp - 0x2b0]
lea ecx, [ebp - 0x2e8]
call fcn.00423b30
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [ebp - 4], 0
xor edi, edi
mov dword [ebp - 0x2c0], 1
nop word [eax + eax]
mov dl, byte [ebp + edi - 0x2e8]
mov al, dl
mov byte [ebp - 0x2b1], dl
shr al, 4
cmp al, 0xa
sbb cl, cl
add al, 0x57
and cl, 0xd9
add cl, al
mov eax, dword [esi + 0x10]
mov byte [ebp - 0x2cc], cl
mov dword [ebp - 0x2c4], eax
cmp eax, dword [esi + 0x14]
jae 0x423e05
inc eax
mov dword [ebp - 0x2b8], esi
cmp dword [esi + 0x14], 0xf
mov dword [esi + 0x10], eax
jbe 0x423de9
mov eax, dword [esi]
mov dword [ebp - 0x2b8], eax
mov esi, dword [ebp - 0x2b8]
mov eax, dword [ebp - 0x2c4]
mov byte [eax + esi], cl
mov byte [eax + esi + 1], 0
mov esi, dword [ebp - 0x2c8]
jmp 0x423e26
push dword [ebp - 0x2cc]
mov byte [ebp - 0x2d0], 0
push dword [ebp - 0x2d0]
push ecx
mov ecx, esi
call fcn.00420e90
mov dl, byte [ebp - 0x2b1]
and dl, 0xf
cmp dl, 0xa
sbb cl, cl
add dl, 0x57
and cl, 0xd9
add cl, dl
mov edx, dword [esi + 0x10]
mov byte [ebp - 0x2d4], cl
cmp edx, dword [esi + 0x14]
jae 0x423e5e
cmp dword [esi + 0x14], 0xf
lea eax, [edx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
jbe 0x423e54
mov eax, dword [esi]
mov byte [eax + edx], cl
mov byte [eax + edx + 1], 0
jmp 0x423e79
push dword [ebp - 0x2d4]
mov byte [ebp - 0x2bc], 0
push dword [ebp - 0x2bc]
push ecx
mov ecx, esi
call fcn.00420e90
inc edi
cmp edi, 0x10
jb 0x423da0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043928a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x4252b0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 8
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push str.MyContainer
push esi
mov dword [esi], 0
call edi
test eax, eax
jne 0x42543c
push eax
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push esi
call edi
test eax, eax
jne 0x42543c
push 0x20
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push esi
call edi
test eax, eax
jne 0x42543c
push 0x28
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push esi
call edi
test eax, eax
jne 0x42543c
push eax
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push str.MyContainer
push esi
call edi
test eax, eax
jne 0x42543c
push 0x10
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push str.MyContainer
push esi
call edi
push 8
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push str.MyContainer_bak
push esi
call edi
test eax, eax
jne 0x42543c
push eax
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push esi
call edi
test eax, eax
jne 0x42543c
push 0x20
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push esi
call edi
test eax, eax
jne 0x42543c
push 0x28
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push esi
call edi
test eax, eax
jne 0x42543c
push eax
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push str.MyContainer_bak
push esi
call edi
test eax, eax
jne 0x42543c
push 0x10
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push str.MyContainer_bak
push esi
call edi
push 8
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push str.MyContainer_bak
push esi
call edi
test eax, eax
jne 0x42543c
push eax
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push esi
call edi
test eax, eax
jne 0x42543c
push 0x20
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push esi
call edi
test eax, eax
jne 0x42543c
push 0x28
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push esi
call edi
test eax, eax
jne 0x42543c
push eax
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push str.MyContainer_bak
push esi
call edi
test eax, eax
jne 0x42543c
mov eax, dword [esi]
test eax, eax
je 0x42542e
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
mov dword [esi], 0
xor al, al
pop esi
pop ebp
ret 4
pop edi
mov al, 1
pop esi
pop ebp
ret 4
Function at 0x425630
Capabilities:
Encrypt data using rc4 via winapi
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi], 0
jne 0x425658
push esi
call fcn.004252b0
test al, al
je 0x4256f4
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
push 0
push 0
push 0x8003
push dword [esi]
mov dword [ebp - 4], 0
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4256c4
mov eax, dword [ebp + 0xc]
mov ecx, eax
cmp dword [eax + 0x14], 0xf
jbe 0x42568e
mov ecx, dword [eax]
push 0
push dword [eax + 0x10]
push ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4256c4
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp - 4]
push 0x6801
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
movzx ebx, bl
mov ecx, 1
cmovne ebx, ecx
mov eax, dword [ebp - 4]
test eax, eax
je 0x4256db
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
jne 0x4256db
mov dword [ebp - 4], eax
jmp 0x4256e6
mov dword [ebp - 4], 0
test bl, bl
jne 0x425708
mov eax, dword [ebp - 8]
test eax, eax
je 0x4256f4
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push edi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
call fcn.00425450
add esp, 4
mov bl, al
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x43a3cb
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43a40a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43a40a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43a40a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x43a40a
cmp dword [ecx + 0x74], 0xe
jbe 0x43a40a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x44d970
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x104
mov eax, dword [0x6540c0]
xor eax, esp
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x10c]
push ebx
mov ebx, dword [esp + 0x11c]
push ebp
mov ebp, dword [esp + 0x110]
push esi
push edi
mov edi, dword [esp + 0x120]
mov esi, dword [ebp + eax*4 + 0x420]
push eax
push ebp
call fcn.0044dec0
add esp, 8
push 0
push dword [esp + 0x128]
push edi
push esi
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
mov dword [ebx], 0
cmp esi, 0xffffffff
jne 0x44da1f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x44d9ed
mov dword [ebx], 0x51
xor eax, eax
jmp 0x44da1f
push 0x100
lea eax, [esp + 0x14]
push eax
push edi
call fcn.004788d0
push eax
push str.Send_failure:__s
push dword [ebp]
call fcn.0044d5d0
mov eax, dword [ebp]
add esp, 0x18
mov dword [eax + 0xd94], edi
mov eax, esi
mov dword [ebx], 0x37
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043928a
add esp, 0x104
ret

Function at 0x44dec0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [esp + 8]
mov eax, ecx
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
shl eax, 4
mov ebp, dword [ebx + ecx*4 + 0x420]
lea esi, [ebx + 0x448]
add esi, eax
mov eax, dword [ebx + 0x560]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x44df78
cmp dword [ebx + ecx*4 + 0x438], 0x44d890
jne 0x44df78
cmp dword [esi], 0
je 0x44df0c
test edi, edi
je 0x44df78
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.0045b5d0
add esp, 0x14
cmp eax, 0xffffffff
je 0x44df78
test al, 1
je 0x44df78
cmp dword [esi], 0
jne 0x44df61
mov eax, dword [ebx]
mov eax, dword [eax + 0x924]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x654130]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test eax, eax
jne 0x44df61
pop edi
mov dword [esi + 4], eax
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x44df78
add dword [esi + 8], eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x44e0f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 4]
cmp byte [eax + 0x474], 0
je 0x44e10d
push eax
call fcn.004474e0
add esp, 4
test eax, eax
jne 0x44e12f
xor al, al
ret
mov eax, dword [eax + 0x420]
cmp eax, 0xffffffff
je 0x44e10a
push 2
push 1
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x44e12f
xor al, al
ret
mov al, 1
ret
Function at 0x44ed50
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x20c
mov eax, dword [0x6540c0]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push esi
mov esi, dword [esp + 0x218]
push edi
cmp dword [esi + 0x2f8], 3
jne 0x44ef8a
cmp byte [esi + 0x516], 0
jne 0x44ef8a
cmp byte [esi + 0x529], 0
jne 0x44ef8a
mov edi, dword [esp + 0x220]
lea eax, [esp + 0xc]
mov ebx, dword [esi]
push eax
lea eax, [esp + 0x98]
mov dword [esp + 0x10], 0x80
push eax
push edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x44ee01
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x114]
push 0x100
push eax
push esi
call fcn.004788d0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.0044d5d0
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0043928a
add esp, 0x20c
ret
push 0x80
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x80
push 0
push eax
call fcn.0048fce0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x44ee75
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x114]
push 0x100
push eax
push esi
call fcn.004788d0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.0044d5d0
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0043928a
add esp, 0x20c
ret
lea eax, [esi + 0x3a0]
push eax
lea edi, [esi + 0x372]
push edi
push dword [esp + 0x14]
lea eax, [esp + 0xa0]
push eax
call fcn.0044df80
add esp, 0x10
test al, al
jne 0x44eee6
call fcn.00494618
mov esi, eax
call fcn.00494618
mov edi, eax
lea eax, [esp + 0x114]
push 0x100
push eax
push dword [esi]
call fcn.004788d0
push eax
push dword [edi]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0044d5d0
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0043928a
add esp, 0x20c
ret
movups xmm0, xmmword [edi]
mov eax, dword [edi + 0x28]
movups xmmword [esi + 0x2c4], xmm0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [esi + 0x2d4], xmm0
movq xmm0, qword [edi + 0x20]
movq qword [esi + 0x2e4], xmm0
mov dword [esi + 0x2ec], eax
mov ax, word [edi + 0x2c]
mov word [esi + 0x2f0], ax
lea eax, [esi + 0x3d4]
push eax
lea eax, [esi + 0x3a4]
push eax
push dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
call fcn.0044df80
add esp, 0x10
test al, al
jne 0x44ef8a
call fcn.00494618
mov esi, eax
call fcn.00494618
mov edi, eax
lea eax, [esp + 0x114]
push 0x100
push eax
push dword [esi]
call fcn.004788d0
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0044d5d0
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0043928a
add esp, 0x20c
ret
push esi
call fcn.0044e990
mov ecx, dword [esp + 0x218]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043928a
add esp, 0x20c
ret
Function at 0x44fe00
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x5ce144
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
jne 0x44fe1a
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push 0x5ce158
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x5ce168
push esi
call fcn.004a85dd
add esp, 8
test eax, eax
je 0x44fe62
test ebp, ebp
je 0x44fe53
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x44fe88
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x44fe88
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x44ff57
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44fea5
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [0x654130]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x44ff4d
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x44ff4d
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44fee6
sub ecx, edx
sar ecx, 1
mov dword [ebx + ecx*2], 0x5c
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44ff01
sub ecx, edx
sar ecx, 1
lea ecx, [ebx + ecx*2]
sub ecx, esi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x44ff15
test ebp, ebp
je 0x44ff44
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x654134]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
push ebx
call dword [0x654134]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x4543a0
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x568], 2
jne 0x4543b6
mov dword [esp + 4], eax
jmp fcn.00454350
mov al, 1
ret

Function at 0x454d90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 4]
cmp byte [eax + 0x52d], 0
je 0x454da6
mov dword [esp + 4], eax
jmp fcn.0047ab40
mov dword [esp + 4], eax
jmp fcn.00443600
Function at 0x459d80
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration
Start tcp server

Disassembly:
sub esp, 0x34
mov eax, dword [0x6540c0]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
mov ebx, dword [esp + 0x48]
push esi
mov esi, dword [sym.imp.WS2_32.dll_socket]
push edi
push 6
push 1
push 2
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x18], 1
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x459f65
xorps xmm0, xmm0
mov eax, 2
movups xmmword [esp + 0x14], xmm0
push 0x7f000001
mov word [esp + 0x18], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x18], eax
xor eax, eax
push 4
mov word [esp + 0x1a], ax
lea eax, [esp + 0x10]
push eax
push 4
push 0xffff
push edi
mov dword [ebx + 4], 0xffffffff
mov dword [ebx], 0xffffffff
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x459f53
push 0x10
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x459f53
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x459f53
push 1
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x459f53
push 0
push 1
push 2
call esi
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x459f53
push 0x10
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x459f53
push 0
push 0
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x459f53
push ebx
push 0x5cfa78
lea eax, [esp + 0x2c]
push 0xc
push eax
call fcn.0045cc70
lea esi, [esp + 0x34]
add esp, 0x10
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x459eb1
push 0
sub esi, ecx
lea eax, [esp + 0x28]
push esi
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, esi
jne 0x459f53
push 0
push 0xc
lea eax, [esp + 0x38]
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, esi
jne 0x459f53
lea ecx, [esp + 0x24]
lea edx, [esp + 0x30]
sub esi, 4
jb 0x459f06
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x459f0b
add ecx, 4
add edx, 4
sub esi, 4
jae 0x459ef5
cmp esi, 0xfffffffc
je 0x459f38
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x459f53
cmp esi, 0xfffffffd
je 0x459f38
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x459f53
cmp esi, 0xfffffffe
je 0x459f38
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x459f53
cmp esi, 0xffffffff
je 0x459f38
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x459f53
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0043928a
add esp, 0x34
ret
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
push edi
call esi
push dword [ebx]
call esi
push dword [ebx + 4]
call esi
mov ecx, dword [esp + 0x3c]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043928a
add esp, 0x34
ret
Function at 0x45f030
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x20]
push ebx
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov dword [eax], ebx
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 4], eax
test eax, eax
jne 0x45f1c1
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x45f1ac
push ebp
push edi
mov eax, dword [esi + 0x14]
test eax, eax
je 0x45f08e
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45f080
sub eax, edx
lea ecx, [eax + 1]
jmp 0x45f090
xor ecx, ecx
mov eax, dword [esi + 4]
mov dword [esp + 0x14], ecx
cmp eax, 2
jne 0x45f0a1
lea ebp, [eax + 0xe]
jmp 0x45f0ad
cmp eax, 0x17
jne 0x45f14e
lea ebp, [eax + 5]
cmp dword [esi + 0x18], 0
je 0x45f14e
mov eax, dword [esi + 0x10]
test eax, eax
je 0x45f14e
cmp eax, ebp
jb 0x45f14e
lea eax, [ecx + 0x20]
add eax, ebp
push eax
call dword [0x654130]
mov edi, eax
add esp, 4
test edi, edi
je 0x45f19d
mov ecx, dword [esi]
mov dword [edi], ecx
mov ecx, dword [esi + 4]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 8]
mov dword [edi + 8], ecx
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
lea eax, [edi + 0x20]
push ebp
mov dword [edi + 0x10], ebp
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], eax
push dword [esi + 0x18]
push eax
call fcn.0048f690
mov ecx, dword [esp + 0x20]
add esp, 0xc
test ecx, ecx
je 0x45f13a
mov eax, dword [edi + 0x18]
add eax, ebp
push ecx
mov dword [edi + 0x14], eax
push dword [esi + 0x14]
push eax
call fcn.0048f690
add esp, 0xc
mov eax, dword [esp + 0x18]
test ebx, ebx
cmove ebx, edi
test eax, eax
je 0x45f14a
mov dword [eax + 0x1c], edi
mov dword [esp + 0x18], edi
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x45f072
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
pop edi
pop ebp
test eax, eax
je 0x45f16e
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x45f1a8
test ebx, ebx
je 0x45f18d
mov esi, dword [ebx + 0x1c]
push ebx
call dword [0x654134]
add esp, 4
mov ebx, esi
test esi, esi
jne 0x45f176
mov esi, dword [esp + 8]
mov eax, dword [esp + 0x28]
xor ebx, ebx
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
add esp, 0x10
ret
mov esi, 8
mov dword [esp + 0x10], esi
jmp 0x45f15d
test ebx, ebx
jne 0x45f1b8
mov esi, 0x2af9
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x45fea0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1cc
mov eax, dword [0x6540c0]
xor eax, esp
mov dword [esp + 0x1c8], eax
cmp byte [0x65a438], 0
push ebx
mov ebx, dword [esp + 0x1d4]
mov dword [esp + 0x18], ebx
jne 0x45fed9
call fcn.005033b0
test eax, eax
je 0x45fef1
mov byte [0x65a438], 1
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c8]
xor ecx, esp
call fcn.0043928a
add esp, 0x1cc
ret
mov eax, dword [ebx + 0xa00]
test eax, eax
je 0x45ff12
push 0x400
push eax
call fcn.00503ea0
add esp, 8
call fcn.005033b0
test eax, eax
jne 0x45fed9
push ebp
push esi
push edi
nop word [eax + eax]
mov esi, 2
mov dword [esp + 0x18], 4
lea eax, [esp + 0x98]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
nop dword [eax]
lea eax, [esp + 0x48]
push eax
call fcn.00453b60
push 0
push 1
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x44], xmm0
movups xmmword [esp + 0x34], xmm0
call fcn.0045b810
movups xmm1, xmmword [esp + 0x44]
add esp, 0xc
lea ecx, [esi - 1]
movaps xmm0, xmm1
psrldq xmm0, 4
movd eax, xmm0
push eax
movd eax, xmm1
push eax
push 0
push ecx
call fcn.0043a110
imul esi, dword [esp + 0x30]
mov ebx, eax
lea eax, [esp + 0x58]
mov ebp, edx
push eax
mov dword [esp + 0x20], esi
call fcn.00453b60
mov eax, dword [eax + 8]
cdq
mov esi, eax
mov edi, edx
lea eax, [esp + 0x6c]
push eax
call fcn.00453b60
mov edx, dword [esp + 0x18]
add esp, 8
inc edx
mov dword [esp + 0x20], edx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
add ecx, esi
push 0
push edx
adc eax, edi
push eax
push ecx
call fcn.0043a110
shld edx, eax, 8
shl eax, 8
xor ebp, edx
xor ebx, eax
mov dword [esp + 0x2c], ebp
lea eax, [esp + 0x78]
mov dword [esp + 0x28], ebx
push eax
call fcn.00453b60
lea esi, [eax + 8]
lea eax, [esp + 0x8c]
push eax
call fcn.00453b60
add esp, 8
mov ecx, dword [eax]
add ecx, dword [esi]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x20]
add eax, 2
imul ecx, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], esi
shl ecx, 0x10
xor eax, ecx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
movups xmm0, xmmword [esp + 0x28]
movups xmmword [eax], xmm0
add eax, 0x10
sub dword [esp + 0x18], 1
mov dword [esp + 0x14], eax
jne 0x45ff40
movsd xmm0, qword [0x5d2280]
lea eax, [esp + 0x98]
sub esp, 8
movsd qword [esp], xmm0
push 0x40
push eax
call fcn.005031e0
add esp, 0x10
call fcn.005033b0
test eax, eax
je 0x45ff20
lea eax, [esp + 0xd8]
mov byte [esp + 0xd8], 0
push 0x100
push eax
call fcn.00503ce0
add esp, 8
cmp byte [esp + 0xd8], 0
pop edi
pop esi
pop ebp
je 0x4600b9
lea eax, [esp + 0xcc]
push 0x400
push eax
call fcn.00503ea0
add esp, 8
call fcn.005033b0
test eax, eax
jne 0x45fed9
push str.libcurl_is_now_using_a_weak_random_seed__n
push dword [esp + 0x1c]
call fcn.0044d6b0
add esp, 8
call fcn.005033b0
mov ecx, dword [esp + 0x1cc]
neg eax
pop ebx
sbb eax, eax
xor ecx, esp
and eax, 0xffffffdd
add eax, 0x23
call fcn.0043928a
add esp, 0x1cc
ret