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

Disassembly:
mov edi, edi
push ebx
push esi
push edi
push 0x4016ac
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x40a1cc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401718
push edi
call esi
push 0x40170c
push edi
mov dword [0x4172a4], eax
call esi
push 0x401700
push edi
mov dword [0x4172a8], eax
call esi
push 0x4016f8
push edi
mov dword [0x4172ac], eax
call esi
mov dword [0x4172b0], eax
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp dword [0x4172a4], ebx
je 0x40a1f2
cmp dword [0x4172a8], ebx
je 0x40a1f2
cmp dword [0x4172ac], ebx
je 0x40a1f2
cmp dword [0x4172b0], ebx
jne 0x40a216
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [0x4172a8], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x4172a4], 0x409dcb
mov dword [0x4172ac], esi
mov dword [0x4172b0], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x41616c], eax
cmp eax, 0xffffffff
je 0x40a289
push dword [0x4172a8]
push eax
call esi
test eax, eax
je 0x40a289
call fcn.00409c86
push dword [0x4172a4]
call fcn.00409ccd
push dword [0x4172a8]
mov dword [0x4172a4], eax
call fcn.00409ccd
push dword [0x4172ac]
mov dword [0x4172a8], eax
call fcn.00409ccd
push dword [0x4172b0]
mov dword [0x4172ac], eax
call fcn.00409ccd
add esp, 0x10
mov dword [0x4172b0], eax
call fcn.0040d8bc
test eax, eax
jne 0x40a28f
call fcn.00409e08
xor eax, eax
pop edi
pop esi
pop ebx
ret
push fcn.00409fb7
push dword [0x4172a4]
call fcn.00409d53
pop ecx
call eax
mov dword [0x416170], eax
cmp eax, 0xffffffff
je 0x40a284
push 0x214
push 1
call fcn.0040ef9d
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x40a284
push esi
push dword [0x416170]
push dword [0x4172ac]
call fcn.00409d53
pop ecx
call eax
test eax, eax
jne 0x40a2e2
push esi
call fcn.00408ab7
pop ecx
jmp 0x40a284
push ebx
push esi
call fcn.00409e4a
or dword [esi + 4], 0xffffffff
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x40a28b

Function at 0x40c52b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push esi
push dword [ebp + 8]
call fcn.0040c0e3
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [di - 0x27], 0x44
Function at 0x40c811
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x40c7f5
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x40c813
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
js 0x40c837
js 0x40c837
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x40c871
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
or byte gs:[eax], al
add byte [eax], al
inc eax
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x40c858
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x40c861
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x40c86b
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x40c84d
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x40c7d7
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
add bl, byte [ecx + 0xf]
mov dh, 4
pop es
sub eax, ecx
je 0x40c8be
dec eax
je 0x40c8b5
sub eax, 3
je 0x40c8ac
mov dword [ebp - 4], 0x40
jmp 0x40c8db
mov dword [ebp - 4], 4
jmp 0x40c8c1
mov dword [ebp - 4], 0x20
jmp 0x40c8c1
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x40c90d
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x40c88d
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.0040c11e
invalid
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40c94b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [eax]
mov byte [ebp - 0x350], 0x62
mov byte [ebp - 0x34f], 0x40
mov byte [ebp - 0x34e], 0x51
mov byte [ebp - 0x34d], 0x75
mov byte [ebp - 0x34c], 0x57
mov byte [ebp - 0x34b], 0x4a
mov byte [ebp - 0x34a], 0x46
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.0040c12e
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040c0e3
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
inc eax
Function at 0x41e5f0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0xed92a4]
test eax, eax
jne 0x41e617
push str.Server_quit_n
call fcn.00439d60
call fcn.0040ec80
call fcn.00421180
push 1
call fcn.004257b0
add esp, 8
jmp 0x444b30
push 1
call dword [sym.imp.WINMM.dll_timeEndPeriod]
call fcn.00443ad0
call fcn.00448d80
push 0
call fcn.004cd6f1
nop
nop
nop
nop
nop
nop
nop

Function at 0x427600
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x444500
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x20
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov edx, dword [esp + 8]
mov ecx, 0x6000000
cmp ecx, edx
sbb eax, eax
inc eax
add esp, 0x20
ret

Function at 0x444960
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x158
push esi
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x18], 0x44
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 8]
mov esi, dword [esp + 0x164]
lea edx, [esp + 0x18]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x7c]
push esi
push eax
push 0x4f20ac
call fcn.0042d410
add esp, 0xc
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4449e8
lea ecx, [esp + 0x5c]
push esi
push ecx
push str.Could_not_start_process:__s_s
push 1
call fcn.0041e420
add esp, 0x10
pop edi
pop esi
add esp, 0x158
ret
mov eax, dword [esp + 0x168]
test eax, eax
je 0x444a02
push str.quit_n
push 2
call fcn.0041d8f0
add esp, 8
pop edi
pop esi
add esp, 0x158
ret

Function at 0x444a10
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push 9
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
test eax, eax
jne 0x444a3f
push esi
push str.Could_not_open_url:__s
push 1
call fcn.0041e420
add esp, 0xc
pop esi
ret
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x444a52
push 3
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x444a69
push str.quit_n
push 2
call fcn.0041d8f0
add esp, 8
pop esi
ret

Function at 0x445190
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push edi
xor edi, edi
push edi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x445201
push ebx
push esi
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x4451f5
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x4451f5
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalSize]
push esi
call ebp
inc eax
push eax
call fcn.0041f000
add esp, 4
mov edi, eax
push esi
call ebp
push eax
push ebx
push edi
call fcn.0042d0d0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0x4f211c
push edi
call fcn.004cdba3
add esp, 8
pop ebp
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
mov eax, edi
pop ebx
pop edi
ret
mov eax, edi
pop edi
ret
Function at 0x4454f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [0xae6f60]
mov ecx, dword [0xae8784]
sub esp, 0x6c
cmp ecx, eax
push esi
push edi
jg 0x445642
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
push ebx
push 0
push 0
push 0
lea ecx, [esp + 0x44]
push 0
push ecx
call esi
test eax, eax
je 0x445576
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
lea edx, [esp + 0x44]
push 0
push edx
call ebp
test eax, eax
jne 0x44554b
call fcn.0041e5f0
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x3c]
push ecx
mov dword [0xadeecc], eax
call edi
lea edx, [esp + 0x3c]
push edx
call ebx
push 0
push 0
push 0
lea eax, [esp + 0x48]
push 0
push eax
call esi
test eax, eax
jne 0x445535
pop ebp
call fcn.00448e40
mov ebx, eax
test ebx, ebx
je 0x4455b5
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
inc esi
push esi
call fcn.0041f000
lea ecx, [esi - 1]
mov edi, eax
push ecx
push ebx
push edi
call fcn.0042d0d0
push edi
push esi
push 0
push 0
push 5
push 0
call fcn.00445460
add esp, 0x28
push 0x8000
lea edx, [esp + 0x58]
push 0xadef60
push edx
call fcn.00427f30
lea eax, [esp + 0x60]
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.00446220
add esp, 0x14
test eax, eax
je 0x445632
mov ebx, dword [esp + 0x68]
mov ecx, dword [esp + 0x70]
sub ebx, ecx
add ebx, 0x14
push ebx
call fcn.0041f000
mov ecx, 5
lea esi, [esp + 0x10]
mov edi, eax
push eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x78]
mov esi, dword [esp + 0x68]
sub ecx, edx
add esi, edx
mov edx, ecx
lea edi, [eax + 0x14]
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0
and ecx, 3
push 0
push 6
push 0
rep movsb byte es:[edi], byte [esi]
call fcn.00445460
add esp, 0x1c
mov eax, dword [0xae6f60]
mov ecx, dword [0xae8784]
cmp ecx, eax
pop ebx
jle 0x44566b
inc eax
mov ecx, 6
mov dword [0xae6f60], eax
dec eax
and eax, 0xff
lea eax, [eax + eax*2]
lea esi, [eax*8 + 0xae6f80]
mov eax, dword [esp + 0x78]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
add esp, 0x6c
ret
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x78]
mov ecx, 6
lea esi, [esp + 0x1c]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
add esp, 0x6c
ret
Function at 0x446220
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x24]
xor eax, eax
push esi
push edi
mov dword [esp + 0x10], eax
mov esi, dword [0xa1b9fc]
test eax, eax
je 0x446245
mov esi, dword [0xa1a840]
test esi, esi
je 0x4463aa
mov eax, dword [0xadef48]
lea ecx, [esp + 0x14]
inc eax
mov dword [esp + 0x28], 0x10
mov dword [0xadef48], eax
mov edx, dword [ebp + 0x10]
lea eax, [esp + 0x28]
push eax
mov eax, dword [ebp + 0xc]
push ecx
push 0
push edx
push eax
push esi
call sub.WSOCK32.dll_recvfrom
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x2c], edi
jne 0x4462b8
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4463aa
cmp eax, 0x2746
je 0x4463aa
call fcn.00445c20
push eax
push str.NET_GetPacket:__s_n
call fcn.0041e210
add esp, 8
jmp 0x4463aa
mov eax, dword [0xa1b9fc]
cmp esi, eax
jne 0x4462cb
xor ecx, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov ecx, dword [0xa1ba54]
test ecx, ecx
je 0x44636f
cmp esi, eax
jne 0x44636f
mov ecx, dword [esp + 0x28]
mov edi, 0xa1b9e0
lea esi, [esp + 0x14]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x44636b
mov eax, dword [esp + 0x2c]
mov ecx, 0xa
cmp eax, ecx
jl 0x4463aa
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
jne 0x4463aa
mov dl, byte [eax + 1]
test dl, dl
jne 0x4463aa
mov dl, byte [eax + 2]
test dl, dl
jne 0x4463aa
cmp byte [eax + 3], 1
jne 0x4463aa
mov dword [ebx], 4
mov eax, dword [ebp + 0xc]
mov edi, dword [esp + 0x2c]
mov dl, byte [eax + 4]
mov byte [ebx + 4], dl
mov eax, dword [ebp + 0xc]
mov dl, byte [eax + 5]
mov byte [ebx + 5], dl
mov eax, dword [ebp + 0xc]
mov dl, byte [eax + 6]
mov byte [ebx + 6], dl
mov eax, dword [ebp + 0xc]
mov dl, byte [eax + 7]
mov byte [ebx + 7], dl
mov eax, dword [ebp + 0xc]
mov dx, word [eax + 8]
mov word [ebx + 0x12], dx
mov dword [ebp + 0x1c], ecx
jmp 0x446384
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.00445f20
add esp, 8
mov dword [ebp + 0x1c], 0
cmp edi, dword [ebp + 0x10]
jne 0x4463c6
sub esp, 0x14
mov ecx, 5
mov esi, ebx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.0042a880
push eax
push str.Oversize_packet_from__s_n
call fcn.0041e210
add esp, 0x1c
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 2
mov dword [esp + 0x10], eax
jl 0x446235
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov dword [ebp + 0x14], edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret
Function at 0x4463e0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x10
cmp eax, 3
push ebp
jne 0x4463f5
mov ebp, dword [0xa1b9fc]
jmp 0x446416
cmp eax, 4
jne 0x446402
mov ebp, dword [0xa1b9fc]
jmp 0x446416
cmp eax, 5
je 0x446410
cmp eax, 6
jne 0x446503
mov ebp, dword [0xa1a840]
test ebp, ebp
je 0x446512
lea eax, [esp + 4]
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.00445e70
mov eax, dword [0xa1ba54]
add esp, 8
test eax, eax
je 0x4464ac
cmp dword [esp + 0x20], 4
jne 0x4464ac
mov ax, word [esp + 6]
mov edx, dword [esp + 8]
mov word [0xa1a9e4], ax
mov eax, dword [esp + 0x18]
mov ecx, eax
mov dword [0xa1a9e0], edx
push esi
mov esi, dword [esp + 0x20]
mov edx, ecx
push edi
mov edi, 0xa1a9e6
mov byte [0xa1a9dc], 0
shr ecx, 2
mov byte [0xa1a9dd], 0
mov byte [0xa1a9de], 0
mov byte [0xa1a9df], 1
push 0x10
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0xa1b9e0
add eax, 0xa
push 0
and ecx, 3
push eax
push 0xa1a9dc
push ebp
rep movsb byte es:[edi], byte [esi]
call sub.WSOCK32.dll_sendto
pop edi
pop esi
jmp 0x4464c5
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 4]
push 0x10
push eax
push 0
push ecx
push edx
push ebp
call sub.WSOCK32.dll_sendto
cmp eax, 0xffffffff
jne 0x446512
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x446512
cmp eax, 0x2741
jne 0x4464eb
mov eax, dword [esp + 0x20]
cmp eax, 3
je 0x446512
cmp eax, 6
je 0x446512
call fcn.00445c20
push eax
push str.NET_SendPacket:__s_n
call fcn.0041e210
add esp, 8
pop ebp
add esp, 0x10
ret
push str.Sys_SendPacket:_bad_address_type
push 0
call fcn.0041e420
add esp, 8
pop ebp
add esp, 0x10
ret
Function at 0x4466a0
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x18
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov edi, dword [esp + 0x28]
mov eax, 1
test edi, edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
push ebp
je 0x4466d0
push edi
push str.Opening_IP_socket:__s:_i_n
call fcn.0041e210
add esp, 0xc
jmp 0x4466dd
push str.Opening_IP_socket:_localhost:_i_n
call fcn.0041e210
add esp, 8
push 0x11
push 2
push 2
call sub.WSOCK32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x446717
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x273f
je 0x44670e
call fcn.00445c20
push eax
push str.WARNING:_UDP_OpenSocket:_socket:__s_n
call fcn.0041e210
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x18
ret
lea eax, [esp + 0xc]
push eax
push 0x8004667e
push esi
call sub.WSOCK32.dll_ioctlsocket
cmp eax, 0xffffffff
jne 0x446748
call fcn.00445c20
push eax
push str.WARNING:_UDP_OpenSocket:_ioctl_FIONBIO:__s_n
call fcn.0041e210
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x18
ret
lea ecx, [esp + 0x10]
push 4
push ecx
push 0x20
push 0xffff
push esi
call sub.WSOCK32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x44677d
call fcn.00445c20
push eax
push str.WARNING:_UDP_OpenSocket:_setsockopt_SO_BROADCAST:__s_n
call fcn.0041e210
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x18
ret
test edi, edi
je 0x4467a8
cmp byte [edi], 0
je 0x4467a8
push str.localhost
push edi
call fcn.0042d1e0
add esp, 8
test eax, eax
je 0x4467a8
lea edx, [esp + 0x14]
push edx
push edi
call fcn.00445f80
add esp, 8
jmp 0x4467b0
mov dword [esp + 0x18], 0
cmp ebp, 0xffffffff
jne 0x4467be
mov word [esp + 0x16], 0
jmp 0x4467c9
push ebp
call sub.WSOCK32.dll_htons
mov word [esp + 0x16], ax
lea eax, [esp + 0x14]
push 0x10
push eax
push esi
mov word [esp + 0x20], 2
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
jne 0x446804
call fcn.00445c20
push eax
push str.WARNING:_UDP_OpenSocket:_bind:__s_n
call fcn.0041e210
add esp, 8
push esi
call sub.WSOCK32.dll_closesocket
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x18
ret
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x18
ret
Function at 0x446c10
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x104
lea eax, [esp + 4]
push esi
push edi
push 0x100
push eax
call sub.WSOCK32.dll_gethostname
cmp eax, 0xffffffff
jne 0x446c3a
call sub.WSOCK32.dll_WSAGetLastError
pop edi
pop esi
add esp, 0x104
ret
lea ecx, [esp + 0xc]
push ecx
call sub.WSOCK32.dll_gethostbyname
mov edi, eax
test edi, edi
jne 0x446c58
call sub.WSOCK32.dll_WSAGetLastError
pop edi
pop esi
add esp, 0x104
ret
mov edx, dword [edi]
push edx
push str.Hostname:__s_n
call fcn.0041e210
mov eax, dword [edi + 4]
add esp, 8
mov eax, dword [eax]
test eax, eax
je 0x446c91
mov esi, 4
push eax
push str.Alias:__s_n
call fcn.0041e210
mov ecx, dword [edi + 4]
add esp, 8
mov eax, dword [esi + ecx]
add esi, 4
test eax, eax
jne 0x446c76
cmp word [edi + 8], 2
jne 0x446d28
xor eax, eax
mov dword [0xa1ba48], eax
mov edx, dword [edi + 0xc]
mov esi, dword [edx]
test esi, esi
je 0x446d28
cmp eax, 0x10
jge 0x446d28
mov eax, dword [esi]
push eax
call sub.WSOCK32.dll_ntohl
mov ecx, dword [0xa1ba48]
mov dl, byte [esi]
mov dword [esp + 8], eax
mov byte [ecx*4 + 0xa1ba04], dl
mov dl, byte [esi + 1]
mov byte [ecx*4 + 0xa1ba05], dl
mov dl, byte [esi + 2]
mov byte [ecx*4 + 0xa1ba06], dl
mov dl, byte [esi + 3]
mov byte [ecx*4 + 0xa1ba07], dl
mov ecx, eax
xor edx, edx
and ecx, 0xff
mov dl, ah
push ecx
xor eax, eax
xor ecx, ecx
mov al, byte [esp + 0xe]
mov cl, byte [esp + 0xf]
push edx
push eax
push ecx
push str.IP:__i._i._i._i_n
call fcn.0041e210
mov eax, dword [0xa1ba48]
add esp, 0x14
inc eax
mov dword [0xa1ba48], eax
mov edx, dword [edi + 0xc]
mov esi, dword [edx + eax*4]
test esi, esi
jne 0x446cac
pop edi
pop esi
add esp, 0x104
ret
Function at 0x446df0
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
sub esp, 0x14
push esi
push 0x3e8
push 2
push 6
mov dword [esp + 0x10], 1
call sub.WSOCK32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x446e37
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x273f
je 0x446e30
call fcn.00445c20
push eax
push str.WARNING:_IPX_Socket:_socket:__s_n
call fcn.0041e210
add esp, 8
xor eax, eax
pop esi
add esp, 0x14
ret
lea eax, [esp + 4]
push eax
push 0x8004667e
push esi
call sub.WSOCK32.dll_ioctlsocket
cmp eax, 0xffffffff
jne 0x446e66
call fcn.00445c20
push eax
push str.WARNING:_IPX_Socket:_ioctl_FIONBIO:__s_n
call fcn.0041e210
add esp, 8
xor eax, eax
pop esi
add esp, 0x14
ret
lea ecx, [esp + 4]
push 4
push ecx
push 0x20
push 0xffff
push esi
call sub.WSOCK32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x446e99
call fcn.00445c20
push eax
push str.WARNING:_IPX_Socket:_setsockopt_SO_BROADCAST:__s_n
call fcn.0041e210
add esp, 8
xor eax, eax
pop esi
add esp, 0x14
ret
mov eax, dword [esp + 0x1c]
xor edx, edx
xor ecx, ecx
mov dword [esp + 0xe], edx
cmp eax, 0xffffffff
mov word [esp + 8], 6
mov dword [esp + 0xa], ecx
mov word [esp + 0x12], dx
jne 0x446ec1
mov word [esp + 0x14], cx
jmp 0x446ecc
push eax
call sub.WSOCK32.dll_htons
mov word [esp + 0x14], ax
lea eax, [esp + 8]
push 0xe
push eax
push esi
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
jne 0x446efe
call fcn.00445c20
push eax
push str.WARNING:_IPX_Socket:_bind:__s_n
call fcn.0041e210
add esp, 8
push esi
call sub.WSOCK32.dll_closesocket
xor eax, eax
pop esi
add esp, 0x14
ret
mov eax, esi
pop esi
add esp, 0x14
ret

Function at 0x447190
Capabilities:
Initialize winsock library

Disassembly:
push 0xa1a848
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x4471b2
push eax
push str.WARNING:_Winsock_initialization_failed__returned__d_n
call fcn.0041e210
add esp, 8
ret
push str.Winsock_Initialized_n
mov dword [0xa1ba50], 1
call fcn.0041e210
call fcn.00447040
push 1
call fcn.00446f50
add esp, 8
ret
Function at 0x448d80
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0xa1be98]
test eax, eax
je 0x448db5
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0xa1be98]
push eax
call dword [sym.imp.USER32.dll_CloseWindow]
mov ecx, dword [0xa1be98]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0xa1be98], 0
ret

Function at 0x448dc0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [0xa1c324], eax
mov eax, dword [0xa1c320]
cmp ecx, eax
je 0x448e38
mov edx, dword [0xa1be98]
mov dword [0xa1c320], ecx
test edx, edx
je 0x448e38
mov eax, ecx
sub eax, 0
je 0x448e2f
dec eax
je 0x448e0c
dec eax
je 0x448e02
push ecx
push str.Invalid_visLevel__d_sent_to_Sys_ShowConsole_n
call fcn.00444a90
add esp, 8
ret
push 6
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
ret
push 1
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0xa1be9c]
push 0xffff
push 0
push 0xb6
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
ret
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
ret
Function at 0x453890
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4df299
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
xor ebx, ebx
push 1
push 1
mov dword [esp + 0x1c], esi
mov dword [esi], ebx
call fcn.00459080
mov eax, dword [esi]
mov ecx, dword [eax + 8]
mov byte [ecx], bl
lea edi, [esi + 4]
mov eax, 0x10
mov dword [esp + 0x20], ebx
mov dword [edi + 8], eax
mov dword [edi + 0xc], ebx
mov dword [edi], ebx
mov dword [edi + 4], ebx
lea ebp, [esi + 0x14]
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], ebx
mov dword [ebp], ebx
mov dword [ebp + 4], ebx
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov eax, dword [edi]
mov byte [esp + 0x20], 3
cmp eax, ebx
mov dword [esp + 0x10], ebx
jle 0x453929
mov edx, dword [esi + 0x10]
mov eax, dword [esp + 0x10]
mov ecx, dword [edx + eax*4]
push ecx
call fcn.004cdd45
mov eax, dword [esp + 0x14]
mov ecx, dword [edi]
add esp, 4
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x453907
mov ecx, edi
call fcn.004582a0
mov eax, dword [ebp]
xor edi, edi
cmp eax, ebx
jle 0x453950
mov edx, dword [esi + 0x20]
mov eax, dword [edx + edi*4]
push eax
call fcn.004cdd45
mov eax, dword [ebp]
add esp, 4
inc edi
cmp edi, eax
jl 0x453939
mov ecx, ebp
call fcn.004582a0
mov eax, dword [esi + 0x30]
cmp eax, ebx
je 0x453967
push eax
call fcn.004cdd45
add esp, 4
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x30], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov eax, 0x3f800000
mov dword [esi + 0x34], ebx
mov byte [esi + 0x6d], 1
mov dword [esi + 0x70], ebx
mov dword [esi + 0x68], 0x3ccccccd
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0x3f000000
mov dword [esi + 0x40], ebx
mov dword [esi + 0x50], 0x3f333333
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], eax
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], eax
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret