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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [ebp + 0xc], 0
mov eax, dword [0x4b8484]
push esi
push edi
push 8
pop ecx
mov esi, str.__43k_0l_:_nklsj_902mlkn__l
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
jne 0x48298f
lea eax, [ebp + 0xc]
push eax
push esi
call fcn.00482777
pop ecx
pop ecx
mov edi, dword [ebp + 0xc]
xor ecx, ecx
test edi, edi
jle 0x4829ae
push ebx
mov eax, ecx
cdq
push 0x20
pop ebx
idiv ebx
mov al, byte [ebp + edx - 0x24]
xor byte [ecx + esi], al
inc ecx
cmp ecx, edi
jl 0x482999
pop ebx
mov ecx, dword [ebp - 4]
mov byte [esi + edi], 0
pop edi
mov eax, esi
pop esi
call fcn.00497c9c
leave
ret

Function at 0x482bb3
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1fc
mov eax, dword [0x4b8484]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp ebx, edi
mov dword [ebp - 4], eax
je 0x482c67
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x482c67
lea eax, [ebp - 0x1fc]
push eax
push 0x10008
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
cmp esi, edi
jne 0x482c6c
push edi
push edi
push edi
push edi
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x1f8]
push eax
push edi
push dword [ebp - 0x1fc]
mov dword [ebp + 0xc], 0x1f4
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
cmp esi, 0x103
je 0x482c4d
cmp esi, edi
jne 0x482c59
lea eax, [ebp - 0x1f8]
push eax
push dword [ebp - 0x1fc]
call fcn.00482bb3
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x482c00
jmp 0x482c59
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x1fc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x482c6c
mov esi, 0x3f2
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.00497c9c
leave
ret

Function at 0x482cb2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp + 0x18], esi
je 0x482cf0
lea eax, [ebp + 0x18]
push eax
push edi
lea eax, [ebp + 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x482cf0
cmp dword [ebp + 8], 1
jne 0x482cf0
push edi
call sub.MSVCR71.dll_strlen
pop ecx
jmp 0x482d09
push esi
push dword [ebp + 0x10]
push edi
call dword [sym.imp.MSVCR71.dll_strncpy]
push edi
mov byte [edi + esi - 1], 0
call sub.MSVCR71.dll_strlen
add esp, 0x10
pop edi
pop esi
pop ebp
ret
Function at 0x482d0d
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp byte [0x4b9568], 0
jne 0x482d43
push str.KERNEL32.DLL
mov byte [0x4b9568], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x482d43
push str.GetDiskFreeSpaceExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4b9564], eax
mov eax, dword [0x4b9564]
push esi
push edi
xor esi, esi
xor edi, edi
test eax, eax
je 0x482d6c
push edi
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp + 8]
call eax
test al, al
je 0x482d9f
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
jmp 0x482d9f
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x482d9f
mov eax, dword [ebp - 4]
mul dword [ebp - 8]
push 0
push dword [ebp - 0xc]
push edx
push eax
call fcn.00497d80
mov esi, eax
mov edi, edx
mov edx, edi
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x482da7
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, dword [esp + 0xc]
test edi, edi
jle 0x482dd4
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [ecx]
xor edx, edx
mov dl, byte [esi]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4a26c0]
inc esi
dec edi
mov dword [ecx], eax
jne 0x482db5
pop esi
pop edi
ret 8
Function at 0x4859fe
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [0x4b8484]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
xor edi, edi
xor ebx, ebx
test eax, eax
je 0x485a23
mov edi, dword [eax + 0x20]
mov ebx, dword [eax + 0x24]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_connect]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea ecx, [ebp - 0x20]
push ecx
push eax
mov dword [0x4b9748], eax
call fcn.00484f0d
lea eax, [ebp - 0x20]
push eax
push esi
push dword [ebp + 0x14]
lea eax, [ebp - 0xc0]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
push str.Sock_ID_lu_connect__u_0x_p__d_______d___s_
push eax
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0x28
lea eax, [ebp - 0xc0]
push eax
push ebx
push dword [0x4b9768]
push dword [0x4b9764]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.00497c9c
leave
ret 0x10

Function at 0x485a98
Capabilities:
Set socket configuration

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0xdc
mov eax, dword [0x4b8484]
and dword [ebp - 0x70], 0
and dword [ebp - 0x74], 0
mov dword [ebp + 0x64], eax
mov eax, dword [ebp + 0x70]
test eax, eax
je 0x485ac6
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], eax
push ebx
push esi
push edi
push dword [ebp + 0x7c]
mov edi, dword [ebp + 0x78]
push edi
push dword [ebp + 0x74]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea ecx, [ebp + 0x34]
push ecx
push eax
mov dword [0x4b9748], eax
call fcn.00484f0d
cmp edi, 0x8004667e
mov esi, dword [sym.imp.MSVCR71.dll_sprintf]
pop ecx
pop ecx
je 0x485b2f
cmp edi, 0x4004667f
je 0x485b28
cmp edi, 0x40047307
lea eax, [ebp + 0x50]
je 0x485b21
push edi
push 0x4a4dbc
push eax
call esi
add esp, 0xc
jmp 0x485b3f
push str.SIOCATMARK
jmp 0x485b37
push str.FIONREAD
jmp 0x485b34
push str.FIONBIO
lea eax, [ebp + 0x50]
push eax
call sub.MSVCR71.dll_strcpy
pop ecx
pop ecx
lea eax, [ebp + 0x34]
push eax
push ebx
push dword [ebp + 0x7c]
lea eax, [ebp + 0x50]
push eax
push dword [ebp + 0x74]
lea eax, [ebp - 0x6c]
push dword [ebp - 0x70]
push str.Sock_ID_lu_ioctlsocket__u__s_0x_p_______d___s_
push eax
call esi
add esp, 0x20
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x74]
push dword [0x4b9768]
push dword [0x4b9764]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp + 0x64]
pop edi
pop esi
mov eax, ebx
pop ebx
call fcn.00497c9c
add ebp, 0x68
leave
ret 0x10
Function at 0x485c26
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [0x4b8484]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
xor edi, edi
xor ebx, ebx
test eax, eax
je 0x485c4b
mov edi, dword [eax + 0x20]
mov ebx, dword [eax + 0x24]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_getsockname]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea ecx, [ebp - 0x20]
push ecx
push eax
mov dword [0x4b9748], eax
call fcn.00484f0d
lea eax, [ebp - 0x20]
push eax
push esi
push dword [ebp + 0x14]
lea eax, [ebp - 0xc0]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
push str.Sock_ID_lu_getsockname__u_0x_p_0x_p_______d___s_
push eax
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0x28
lea eax, [ebp - 0xc0]
push eax
push ebx
push dword [0x4b9768]
push dword [0x4b9764]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.00497c9c
leave
ret 0x10

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [0x4b8484]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
xor edi, edi
xor ebx, ebx
test eax, eax
je 0x485d79
mov edi, dword [eax + 0x20]
mov ebx, dword [eax + 0x24]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea ecx, [ebp - 0x20]
push ecx
push eax
mov dword [0x4b9748], eax
call fcn.00484f0d
lea eax, [ebp - 0x20]
push eax
push esi
push dword [ebp + 0x18]
lea eax, [ebp - 0xc0]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
push str.Sock_ID_lu_recv__u_0x_p__d__d_______d___s_
push eax
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0x2c
lea eax, [ebp - 0xc0]
push eax
push ebx
push dword [0x4b9768]
push dword [0x4b9764]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.00497c9c
leave
ret 0x14
Function at 0x485df4
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [0x4b8484]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
xor edi, edi
xor ebx, ebx
test eax, eax
je 0x485e19
mov edi, dword [eax + 0x20]
mov ebx, dword [eax + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea ecx, [ebp - 0x20]
push ecx
push eax
mov dword [0x4b9748], eax
call fcn.00484f0d
lea eax, [ebp - 0x20]
push eax
push esi
push dword [ebp + 0x20]
lea eax, [ebp - 0xc0]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
push str.Sock_ID_lu_recvfrom__u_0x_p__d__d_0x_p_0x_p_______d___s_
push eax
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0x34
lea eax, [ebp - 0xc0]
push eax
push ebx
push dword [0x4b9768]
push dword [0x4b9764]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.00497c9c
leave
ret 0x1c

Function at 0x485ea0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [0x4b8484]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
xor edi, edi
xor ebx, ebx
test eax, eax
je 0x485ec5
mov edi, dword [eax + 0x20]
mov ebx, dword [eax + 0x24]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea ecx, [ebp - 0x20]
push ecx
push eax
mov dword [0x4b9748], eax
call fcn.00484f0d
lea eax, [ebp - 0x20]
push eax
push esi
push dword [ebp + 0x18]
lea eax, [ebp - 0xc0]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
push str.Sock_ID_lu_send__u_0x_p__d__d_______d___s_
push eax
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0x2c
lea eax, [ebp - 0xc0]
push eax
push ebx
push dword [0x4b9768]
push dword [0x4b9764]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.00497c9c
leave
ret 0x14
Function at 0x485f40
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [0x4b8484]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
xor edi, edi
xor ebx, ebx
test eax, eax
je 0x485f65
mov edi, dword [eax + 0x20]
mov ebx, dword [eax + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_sendto]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea ecx, [ebp - 0x20]
push ecx
push eax
mov dword [0x4b9748], eax
call fcn.00484f0d
lea eax, [ebp - 0x20]
push eax
push esi
push dword [ebp + 0x20]
lea eax, [ebp - 0xc0]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
push str.Sock_ID_lu_sendto__u_0x_p__d__d_0x_p__d_______d___s_
push eax
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0x34
lea eax, [ebp - 0xc0]
push eax
push ebx
push dword [0x4b9768]
push dword [0x4b9764]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.00497c9c
leave
ret 0x1c
Function at 0x485fec
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xec
mov eax, dword [0x4b8484]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
push esi
push edi
mov dword [ebp - 0xec], ebx
je 0x48601b
mov ebx, dword [eax + 0x20]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0xec], eax
push dword [ebp + 0x1c]
mov esi, dword [ebp + 0x14]
push dword [ebp + 0x18]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea ecx, [ebp - 0x48]
push ecx
push eax
mov dword [0x4b9748], eax
call fcn.00484f0d
cmp dword [ebp + 0x10], 0xffff
pop ecx
pop ecx
lea eax, [ebp - 0x2c]
jne 0x486114
push str.SOL_SOCKET
push eax
call sub.MSVCR71.dll_strcpy
cmp esi, 0x20
pop ecx
pop ecx
jg 0x4860c0
je 0x4860b9
cmp esi, 0xffffff7f
je 0x4860b2
cmp esi, 1
je 0x4860ab
cmp esi, 2
je 0x4860a4
cmp esi, 4
je 0x48609d
cmp esi, 8
je 0x486096
cmp esi, 0x10
jne 0x4860e0
push str.SO_DONTROUTE
jmp 0x48610f
push str.SO_KEEPALIVE
jmp 0x48610f
push str.SO_REUSEADDR
jmp 0x48610f
push str.SO_ACCEPTCONN
jmp 0x48610f
push str.SO_DEBUG
jmp 0x48610f
push str.SO_DONTLINGER
jmp 0x48610f
push str.SO_BROADCAST
jmp 0x48610f
mov eax, 0x80
sub esi, eax
je 0x48610a
sub esi, eax
je 0x486103
sub esi, 0xf01
je 0x4860fc
dec esi
je 0x4860f5
sub esi, 5
je 0x4860ee
dec esi
je 0x4860e7
push str.__INVALID__
jmp 0x48610f
push str.SO_TYPE
jmp 0x48610f
push str.SO_ERROR
jmp 0x48610f
push str.SO_RCVBUF
jmp 0x48610f
push str.SO_SNDBUF
jmp 0x48610f
push str.SO_OOBINLINE
jmp 0x48610f
push str.SO_LINGER
lea eax, [ebp - 0x18]
jmp 0x486134
cmp dword [ebp + 0x10], 6
jne 0x486145
push str.IPPROTO_TCP
push eax
call sub.MSVCR71.dll_strcpy
cmp esi, 1
pop ecx
pop ecx
lea eax, [ebp - 0x18]
jne 0x48613e
push str.TCP_NODELAY
push eax
call sub.MSVCR71.dll_strcpy
pop ecx
pop ecx
jmp 0x48615e
push str.__INVALID__
jmp 0x486134
mov esi, str.__INVALID__
push esi
push eax
call sub.MSVCR71.dll_strcpy
lea eax, [ebp - 0x18]
push esi
push eax
call sub.MSVCR71.dll_strcpy
add esp, 0x10
lea eax, [ebp - 0x48]
push eax
push edi
push dword [ebp + 0x1c]
lea eax, [ebp - 0x18]
push dword [ebp + 0x18]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0xe8]
push ebx
push str.Sock_ID_lu_setsockopt__u__s__s_0x_p__d_______d___s_
push eax
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0x28
lea eax, [ebp - 0xe8]
push eax
push dword [ebp - 0xec]
push dword [0x4b9768]
push dword [0x4b9764]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.00497c9c
leave
ret 0x18
Function at 0x486333
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [0x4b8484]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
xor esi, esi
xor edi, edi
test eax, eax
je 0x486358
mov esi, dword [eax + 0x20]
mov edi, dword [eax + 0x24]
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea ecx, [ebp - 0x20]
push ecx
push eax
mov dword [0x4b9748], eax
call fcn.00484f0d
lea eax, [ebp - 0x20]
push eax
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0xc0]
push esi
push str.Sock_ID_lu_gethostbyname__s______0x_p___s_
push eax
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0x20
lea eax, [ebp - 0xc0]
push eax
push edi
push dword [0x4b9768]
push dword [0x4b9764]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
pop ebx
call fcn.00497c9c
leave
ret 8

Function at 0x4863c1
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [0x4b8484]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
xor esi, esi
xor edi, edi
test eax, eax
je 0x4863e6
mov esi, dword [eax + 0x20]
mov edi, dword [eax + 0x24]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_gethostname]
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea ecx, [ebp - 0x20]
push ecx
push eax
mov dword [0x4b9748], eax
call fcn.00484f0d
lea eax, [ebp - 0x20]
push eax
push ebx
push dword [ebp + 0x10]
lea eax, [ebp - 0xc0]
push dword [ebp + 0xc]
push esi
push str.Sock_ID_lu_gethostname__s__d_______d___s_
push eax
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0x24
lea eax, [ebp - 0xc0]
push eax
push edi
push dword [0x4b9768]
push dword [0x4b9764]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
pop ebx
call fcn.00497c9c
leave
ret 0xc

Function at 0x486455
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [0x4b8484]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
xor esi, esi
xor edi, edi
test eax, eax
je 0x48647a
mov esi, dword [eax + 0x20]
mov edi, dword [eax + 0x24]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea ecx, [ebp - 0x20]
push ecx
push eax
mov dword [0x4b9748], eax
call fcn.00484f0d
lea eax, [ebp - 0x20]
push eax
movzx eax, word [ebp + 0xc]
push ebx
push dword [ebp + 0x10]
push eax
push esi
lea eax, [ebp - 0xc0]
push str.Sock_ID_lu_WSAStartup_0x_X_0x_p_______d___s_
push eax
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0x24
push dword [0x4b9764]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4864ee
mov eax, dword [0x4b9768]
test eax, eax
je 0x4864ee
lea ecx, [ebp - 0xc0]
push ecx
push edi
push eax
push dword [0x4b9764]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
pop ebx
call fcn.00497c9c
leave
ret 0xc
Function at 0x4866ed
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x14]
mov eax, dword [ebp + 8]
cmp byte [eax + 0x28], 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
jne 0x48670a
call dword [sym.imp.WS2_32.dll_connect]
jmp 0x486710
push eax
call fcn.004859fe
pop ebp
ret 0x10
Function at 0x48d383
Capabilities:
Create thread

Disassembly:
mov eax, 0x49823e
call fcn.00497cb0
sub esp, 0x5c
cmp byte [0x4b99a0], 0
mov eax, dword [0x4b8484]
mov dword [ebp - 0x10], eax
je 0x48d3a8
xor eax, eax
jmp 0x48d54a
call fcn.0048b54f
test al, al
jne 0x48d3be
call fcn.0048a84c
xor eax, eax
inc eax
jmp 0x48d54a
push ebx
mov bl, byte [ebp + 8]
push esi
mov byte [0x4b99a2], bl
call dword [0x4b99b4]
call dword [0x4b99b8]
call dword [0x4b99bc]
push eax
call dword [0x4b99c0]
xor esi, esi
push esi
push 0x400000
push 0x20
push eax
mov dword [0x4b99ac], eax
call dword [0x4b9a10]
add esp, 0x14
call fcn.0048a8de
push 0x4b9978
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push esi
push 0x400
push 0x48d34a
call dword [sym.imp.MSVCR71.dll__beginthread]
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push 4
push eax
call dword [0x4b9aa8]
test bl, bl
pop ecx
pop ecx
je 0x48d52f
lea ecx, [ebp - 0x64]
call fcn.00483344
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], esi
call fcn.00483344
lea eax, [ebp - 0x64]
push str.ServUCert.crt
push eax
mov byte [ebp - 4], 1
call fcn.00482f7b
lea eax, [ebp - 0x40]
push str.ServUCert.key
push eax
call fcn.00482f7b
add esp, 0x10
push 1
lea ecx, [ebp - 0x60]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
push dword [0x4b99ac]
call dword [0x4b99c8]
add esp, 0xc
test eax, eax
jne 0x48d497
push 2
jmp 0x48d4d9
push esi
push dword [0x4b99ac]
call dword [0x4b99d0]
push 0x48a8b6
push dword [0x4b99ac]
call dword [0x4b99cc]
add esp, 0x10
push 1
lea ecx, [ebp - 0x3c]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
push dword [0x4b99ac]
call dword [0x4b99d4]
add esp, 0xc
test eax, eax
jne 0x48d4f6
push 3
pop esi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.004835c3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.004835c3
mov eax, esi
jmp 0x48d548
lea eax, [ebp - 0x1c]
push 0xa
push eax
call dword [0x4b9ab4]
push 0xa
lea eax, [ebp - 0x1c]
push eax
push dword [0x4b99ac]
call dword [0x4b99e0]
add esp, 0x14
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.004835c3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.004835c3
push 1
push dword [0x4b99ac]
call dword [0x4b99dc]
pop ecx
pop ecx
mov byte [0x4b99a0], 1
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.00497c9c
leave
ret

Function at 0x48d64f
Capabilities:
Read .ini file

Disassembly:
push dword [esp + 8]
push 0x3e8
push dword [esp + 0xc]
push 0x4a4630
push str.RegistrationKey
push str.GLOBAL
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push dword [esp + 4]
call fcn.004822e0
pop ecx
ret 8
Function at 0x48d9a7
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x48f289
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
push 0x4b9be8
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4b9c28]
cmp eax, 0x186a0
jae 0x48f343
push ebx
xor ebx, ebx
xor edi, edi
cmp dword [0x4b9c0c], eax
mov byte [ebp - 1], bl
jg 0x48f308
mov eax, dword [esi + 0xc]
cmp eax, ebx
jle 0x48f2ca
cmp dword [esi + 0x10], eax
jge 0x48f308
lea eax, [ebp - 8]
push eax
push ebx
push dword [esi + 4]
mov byte [ebp - 1], 1
push 0x48f021
push 0x1000
push ebx
call dword [sym.imp.MSVCR71.dll__beginthreadex]
add esp, 0x18
cmp eax, ebx
jbe 0x48f305
inc dword [0x4b9c08]
inc dword [0x4b9c0c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
jmp 0x48f308
xor edi, edi
inc edi
cmp byte [ebp - 1], bl
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], esi
mov ecx, 0x4b9c18
push eax
je 0x48f32c
call fcn.0048f180
jmp 0x48f331
call fcn.0048f1d6
push ebx
push 1
push dword [0x4b9c14]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
pop ebx
jmp 0x48f346
push 2
pop edi
push 0x4b9be8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
leave
ret 8