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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x54a6fb
push eax
mov dword fs:[0], esp
sub esp, 0x354
xor eax, eax
push ebx
mov ebx, dword [esp + 0x368]
push ebp
push esi
push edi
mov esi, ecx
mov ecx, 0x41
lea edi, [esp + 0x15c]
rep stosd dword es:[edi], eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + ebx - 1], 0x5c
je 0x407931
mov edi, 0x596b48
mov dword [esp + 0x14], edi
jmp 0x40793d
mov dword [esp + 0x14], 0x5acc80
mov edi, dword [esp + 0x14]
push edi
push ebx
lea eax, [esp + 0x164]
push str._s_s.
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x15c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
jne 0x40797a
xor al, al
jmp 0x407ac4
cmp byte [esp + 0x48], 0x2e
je 0x407aa7
test byte [esp + 0x1c], 0x10
je 0x4079bd
lea eax, [esp + 0x48]
lea ecx, [esp + 0x260]
push eax
push edi
push ebx
push str._s_s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea edx, [esp + 0x260]
mov ecx, esi
push edx
call fcn.004078e0
jmp 0x407aa7
mov eax, dword [0x59a094]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x48]
lea edx, [esp + 0x10]
push ecx
push edi
push ebx
push str._s_s_s
push edx
mov dword [esp + 0x380], 0
call fcn.00528c17
mov eax, dword [esi + 0xb4]
mov ebp, dword [esi + 0xac]
add esp, 0x14
test eax, eax
jne 0x407a36
mov eax, dword [esi + 0xbc]
push 0xc
lea ecx, [esi + 0xb8]
push eax
push ecx
call fcn.0052a9c4
mov ecx, dword [esi + 0xbc]
lea edx, [ecx + ecx*2]
dec ecx
test ecx, ecx
lea eax, [eax + edx*4 - 8]
jl 0x407a36
inc ecx
mov edx, dword [esi + 0xb4]
mov dword [eax], edx
mov dword [esi + 0xb4], eax
sub eax, 0xc
dec ecx
jne 0x407a22
mov edi, dword [esi + 0xb4]
push 1
mov eax, dword [edi]
mov dword [esi + 0xb4], eax
mov dword [edi + 4], ebp
mov dword [edi], 0
mov edx, dword [esi + 0xb0]
lea ebp, [edi + 8]
inc edx
push ebp
mov dword [esi + 0xb0], edx
call fcn.00528cc8
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebp
call fcn.00530020
mov eax, dword [esi + 0xac]
test eax, eax
je 0x407a7f
mov dword [eax], edi
jmp 0x407a85
mov dword [esi + 0xa8], edi
lea ecx, [esp + 0x10]
mov dword [esi + 0xac], edi
mov dword [esp + 0x36c], 0xffffffff
call fcn.0052fee7
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40797a
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
mov ecx, dword [esp + 0x364]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x360
ret 4
Function at 0x408be0
Capabilities:
Get file size

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
push 0x5acc80
lea ecx, [esi + 0x70]
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
call fcn.00530070
mov eax, dword [esi + 0xb0]
mov dword [esi + 0x78], ebx
cmp eax, ebx
mov dword [esi + 0x7c], ebx
je 0x408c2b
cmp byte [esi + 0x5c], bl
jne 0x408c2b
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
pop edi
pop esi
pop ebx
add esp, 4
jmp fcn.004080d0
mov edi, dword [esi + 0xa8]
cmp edi, ebx
je 0x408c46
lea eax, [edi + 8]
push 1
push eax
call fcn.00528cf6
mov edi, dword [edi]
cmp edi, ebx
jne 0x408c35
mov ecx, dword [esi + 0xb8]
mov dword [esi + 0xb0], ebx
mov dword [esi + 0xb4], ebx
mov dword [esi + 0xac], ebx
mov dword [esi + 0xa8], ebx
call fcn.0052a9e4
mov dword [esi + 0xb8], ebx
push 1
mov ecx, esi
mov byte [esi + 0x5c], bl
call fcn.00407ae0
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push 0x596b4c
call fcn.0052ff55
mov ecx, esi
call fcn.00406e20
mov ecx, dword [esi + 0x244]
push ecx
push 0x596c14
push esi
call fcn.004074c0
add esp, 0xc
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x408e70
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x54a890
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov byte [edi + 0x9ec], 1
mov eax, dword [0x59a094]
mov dword [esp + 0x10], eax
mov ecx, dword [edi + 0x8b8]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x1032
push ecx
mov dword [esp + 0x38], 0
call ebx
push 0
cmp eax, 1
push 0
jbe 0x408eea
mov edx, dword [edi + 0x8b8]
push 0x1032
push edx
call ebx
push eax
lea eax, [esp + 0x14]
push 0x596cac
push eax
call fcn.00528c17
add esp, 0xc
jmp 0x408f67
mov ecx, dword [edi + 0x8b8]
push 0
push 0x1042
push ecx
lea esi, [edi + 0x89c]
call ebx
lea edx, [esp + 0x18]
push eax
push edx
mov ecx, esi
call fcn.00529a95
mov eax, dword [edi + 0x8b8]
push 0
push 0
push 0x1042
push eax
mov byte [esp + 0x38], 1
call ebx
push eax
mov ecx, esi
call fcn.00529b7f
cmp eax, 1
jne 0x408f42
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push 0x596c80
push edx
jmp 0x408f51
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push 0x596c68
push ecx
call fcn.00528c17
add esp, 0xc
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 0
call fcn.0052fee7
mov edx, dword [esp + 0x10]
mov eax, dword [edi + 0x1c]
push 0x24
push 0x596c5c
push edx
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
je 0x409064
push 0
mov ecx, edi
call fcn.00407ae0
mov ecx, dword [edi + 0x8b8]
push 2
push 0xffffffffffffffff
push 0x100c
push ecx
call ebx
mov ebp, eax
inc ebp
je 0x409043
mov edx, dword [edi + 0x8b8]
lea esi, [ebp - 1]
push 2
push esi
push 0x100c
push edx
call ebx
inc eax
push 0
mov ebp, eax
lea eax, [esp + 0x1c]
push esi
push eax
lea ecx, [edi + 0x89c]
call fcn.00529a95
push eax
lea eax, [edi + 0x668]
lea ecx, [esp + 0x18]
push eax
push ecx
mov byte [esp + 0x34], 2
call fcn.00530116
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 4
call fcn.0052fee7
push esi
lea ecx, [edi + 0x89c]
call fcn.00529b7f
test eax, eax
je 0x409022
push 0x5c
lea ecx, [esp + 0x18]
call fcn.005302ea
mov edx, dword [esp + 0x14]
mov ecx, edi
push edx
call fcn.004095c0
jmp 0x40902d
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 0
call fcn.0052fee7
test ebp, ebp
jne 0x408faa
push 1
mov ecx, edi
call fcn.00407ae0
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x596b4c
call fcn.0052ff55
mov ecx, edi
call fcn.00405d40
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.0052fee7
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret
Function at 0x4095c0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x44c
lea eax, [esp + 0x348]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x45c]
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push esi
push str._s.
push eax
mov ebp, ecx
call edi
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x358]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x409615
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x44c
ret 4
cmp byte [esp + 0x3c], 0x2e
je 0x409667
test byte [esp + 0x10], 0x10
lea eax, [esp + 0x3c]
push eax
push esi
push 0x596cc4
je 0x40964c
lea ecx, [esp + 0x15c]
push ecx
call edi
add esp, 0x10
lea edx, [esp + 0x150]
mov ecx, ebp
push edx
call fcn.004095c0
jmp 0x409667
lea ecx, [esp + 0x260]
push ecx
call edi
add esp, 0x10
lea edx, [esp + 0x254]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x409615
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
test eax, eax
pop ebp
pop ebx
setne al
add esp, 0x44c
ret 4
Function at 0x40a630
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55c700
push 0x432b08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call fcn.004329c3
add esp, 4
mov edi, eax
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x40a78a
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, edi
mov dword [ebp - 0x20], esi
cmp byte [edi], 0x5c
jne 0x40a6db
lea eax, [edi + 1]
cmp byte [eax], 0x5c
jne 0x40a6db
mov esi, eax
mov dword [ebp - 0x20], esi
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
test al, al
je 0x40a6b6
cmp al, 0x5c
je 0x40a6b6
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x40a69e
cmp byte [esi], 0
je 0x40a6bf
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
test al, al
je 0x40a6d4
cmp al, 0x5c
je 0x40a6d4
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x40a6bc
cmp byte [esi], 0
je 0x40a6fa
jmp 0x40a6f6
lea eax, [edi + 1]
cmp byte [eax], 0x3a
jne 0x40a6fa
mov esi, eax
mov dword [ebp - 0x20], esi
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
test al, al
je 0x40a6fa
cmp al, 0x5c
jne 0x40a6fa
inc esi
mov dword [ebp - 0x20], esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov al, byte [esi]
test al, al
je 0x40a750
cmp al, 0x5c
jne 0x40a742
mov byte [esi], 0
push edi
call ebx
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
jne 0x40a735
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40a73f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40a73f
push edi
jmp 0x40a782
and eax, 0x10
cmp al, 0x10
je 0x40a73f
push edi
jmp 0x40a782
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov dword [ebp - 0x20], esi
jmp 0x40a700
mov dword [ebp - 4], 0xffffffff
push edi
call fcn.004328da
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.004328da
add esp, 4
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40de90
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x54ada2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x104
push esi
mov dword [esp + 4], 0
mov ecx, dword [ecx + 4]
mov edx, dword [esp + 0x120]
push ecx
mov ecx, dword [esp + 0x128]
lea eax, [esp + 0xc]
push 0x100
push eax
mov eax, dword [esp + 0x128]
push ecx
push edx
push eax
mov dword [esp + 0x128], 3
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, dword [esp + 0x118]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.0052ff55
mov dword [esp + 4], 1
lea ecx, [esp + 0x11c]
mov byte [esp + 0x110], 2
call fcn.0052fee7
lea ecx, [esp + 0x120]
mov byte [esp + 0x110], 1
call fcn.0052fee7
lea ecx, [esp + 0x124]
mov byte [esp + 0x110], 0
call fcn.0052fee7
mov ecx, dword [esp + 0x108]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x110
ret 0x10

Function at 0x40df60
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x54adb8
push eax
mov dword fs:[0], esp
push esi
mov ecx, dword [ecx + 4]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push edx
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.0052fee7
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], 0xffffffff
call fcn.0052fee7
mov ecx, dword [esp + 4]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 0xc
Function at 0x40e760
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x54ae4d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1a0
push ebx
push esi
mov esi, ecx
mov ecx, 0x55cca0
xor ebx, ebx
mov eax, 0xa
mov dword [esp + 0x14], esi
mov dword [esi + 0x34], ecx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], eax
mov dword [esp + 0x1b0], ebx
mov dword [esi + 0x50], ecx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], eax
lea ecx, [esi + 0x84]
mov byte [esp + 0x1b0], 1
call fcn.00402140
lea eax, [esp + 0x18]
mov dword [esi], 0x55cc9c
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x5b0b58
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x78], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x74], eax
mov cl, 0x31
mov al, 0x51
mov byte [esp + 0xb], cl
mov byte [esp + 0x10], cl
mov byte [esp + 0x12], cl
mov byte [esp + 8], al
mov byte [esp + 9], al
mov byte [esp + 0xa], 0x3a
mov edx, dword [esp + 8]
lea ecx, [esi + 0x26]
mov al, 0x39
mov byte [esp + 0xc], 0x32
mov byte [esp + 0xd], 0x34
mov byte [esp + 0xe], al
mov byte [esp + 0xf], 0x37
mov byte [esp + 0x11], al
mov byte [esp + 0x13], al
mov eax, dword [esp + 0xc]
mov dword [ecx], edx
mov edx, dword [esp + 0x10]
mov dword [esi + 0x70], ebx
mov dword [ecx + 4], eax
mov byte [esi + 0x80], bl
mov byte [esi + 0x25], bl
mov dword [esi + 0x6c], ebx
mov dword [ecx + 8], edx
mov ecx, dword [esp + 0x1a8]
mov dword [esi + 0x7c], ebx
mov byte [esi + 0x24], bl
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], 0x2710
mov dword [esi + 0x90], 0x2bf20
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1ac
ret
Function at 0x40e9b0
Capabilities:
Create tcp socket
Create thread
Create udp socket

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
push esi
push 1
push 0
push 0
mov esi, ecx
mov ecx, dword [esp + 0x28]
push 0
push 1
push 2
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0x1c], edx
call dword [sym.imp.WS2_32.dll_WSASocketA]
cmp eax, 0xffffffff
mov dword [esi + 0x70], eax
je 0x40eac2
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
test eax, eax
mov dword [esi + 0x6c], eax
jne 0x40ea09
mov eax, dword [esi + 0x70]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
pop esi
add esp, 0x10
ret 0x10
mov ecx, dword [esi + 0x70]
push 8
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x40eab8
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esi + 0x70]
lea ecx, [esp + 4]
push 0x10
push ecx
push edx
mov word [esp + 0x12], ax
mov word [esp + 0x10], 2
mov dword [esp + 0x14], 0
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x40ea67
mov eax, dword [esi + 0x70]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
pop esi
add esp, 0x10
ret 0x10
mov ecx, dword [esi + 0x70]
push OleUIAddVerbMenuA
push ecx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x40eab8
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push 0
push esi
push 0x40ead0
push 0
push 0
call fcn.00432d91
add esp, 0x18
cmp eax, 0xffffffff
mov dword [esi + 0x78], eax
je 0x40eac2
mov ecx, esi
call fcn.0040edc0
mov byte [esi + 0x24], 1
mov al, 1
pop esi
add esp, 0x10
ret 0x10
mov edx, dword [esi + 0x70]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
pop esi
add esp, 0x10
ret 0x10
Function at 0x40edc0
Capabilities:
Create tcp socket
Create thread
Create udp socket
Get system information on windows

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
push 0
push 1
push 2
mov esi, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40ede6
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x28
ret
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
mov dword [esi + 0x7c], eax
push edi
jne 0x40ee0b
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x28
ret
call dword [sym.imp.WS2_32.dll_closesocket]
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x9c], 0xa
mov dword [esi + 0xa0], 0x4b
lea eax, [ecx + ecx]
lea ecx, [esi + 0x84]
mov dword [esi + 0x94], eax
mov dword [esi + 0x98], eax
call fcn.004021a0
mov edx, dword [esp + 0x28]
xor edi, edi
mov dword [esi + 0x20], 0
lea ebx, [edx + edx]
test ebx, ebx
jbe 0x40ee94
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x10]
push eax
push 0
push esi
push 0x40eeb0
push 0
push 0
call fcn.00432d91
add esp, 0x18
test eax, eax
je 0x40ee9e
mov ecx, dword [esi + 0x20]
push eax
inc ecx
mov dword [esi + 0x20], ecx
call ebp
inc edi
cmp edi, ebx
jb 0x40ee68
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x28
ret
mov ecx, dword [esi + 0x7c]
push ecx
call ebp
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x28
ret

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

Disassembly:
sub esp, 8
push ebx
push esi
push 0x18
mov ebx, ecx
call fcn.0052b69e
mov edx, eax
add esp, 4
test edx, edx
je 0x40f0dd
push edi
mov ecx, 6
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [edx + 0x14], 1
pop edi
jmp 0x40f0df
xor edx, edx
mov esi, dword [esp + 0x14]
push 0
lea eax, [esp + 0xc]
push edx
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esi]
push ecx
lea edx, [esi + 0x50]
push 1
push edx
push eax
mov dword [esp + 0x24], 0x8000
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x40f123
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x40f123
push 0
push esi
mov ecx, ebx
call fcn.0040f8a0
pop esi
pop ebx
add esp, 8
ret 4
Function at 0x40f680
Capabilities:
Check for time delay via gettickcount
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54af60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov al, byte [0x5b0b8c]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
mov ebx, ecx
test al, 1
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0
jne 0x40f6ca
or al, 1
mov byte [0x5b0b8c], al
call esi
mov dword [0x5b0b84], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [0x5b0b94]
add eax, edi
mov dword [0x5b0b94], eax
call esi
sub eax, dword [0x5b0b84]
cmp eax, 0x3e8
jb 0x40f709
call esi
mov dword [0x5b0b84], eax
mov eax, dword [0x5b0b94]
add ebx, 0x14
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [0x5b0b94], 0
mov esi, dword [ebp + 8]
push edi
lea ebx, [esi + 4]
mov ecx, ebx
call fcn.00401fe0
mov ecx, ebx
call fcn.00401e10
test eax, eax
jne 0x40f74b
mov ecx, ebx
call fcn.00401fb0
mov ecx, dword [esi + 0x2060]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x18
call fcn.0052b69e
mov edx, eax
add esp, 4
test edx, edx
je 0x40f771
mov ecx, 6
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [edx + 0x14], 2
mov edi, edx
jmp 0x40f773
xor edi, edi
mov eax, dword [ebp - 0x14]
push 3
push esi
mov edx, dword [eax + 8]
push edx
call dword [eax + 4]
push 0
mov ecx, ebx
call fcn.00401fd0
mov ecx, ebx
mov dword [esi + 0x205c], eax
call fcn.00401e10
lea ecx, [esi + 0x2058]
push 0
push edi
push 0x8000
mov dword [ecx], eax
mov eax, dword [esi]
push ecx
push 1
push ecx
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x40f7d0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x40f7d0
mov ecx, dword [ebp - 0x14]
push 0
push esi
call fcn.0040f8a0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40f8a0
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x54af90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
push edi
mov edi, ecx
push str.RemoveStaleClient
lea ecx, [esp + 0xc]
call fcn.0052ff55
mov eax, dword [0x59a094]
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], eax
lea ecx, [esp + 8]
mov byte [esp + 0x20], 1
push ecx
lea ecx, [esp + 0x18]
call fcn.00530020
push 0x5b0b58
mov dword [esp + 0x14], 0x5b0b58
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [esp + 8]
mov byte [esp + 0x20], 3
call fcn.0052fee7
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
test eax, eax
jne 0x40f943
mov eax, dword [esi]
lea edx, [esp + 0xc]
push 4
push edx
push 0x80
push 0xffff
push eax
mov word [esp + 0x20], 1
mov word [esp + 0x22], 0
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [edi + 0x38]
test eax, eax
je 0x40f981
cmp dword [eax + 8], esi
je 0x40f957
mov eax, dword [eax]
test eax, eax
jne 0x40f94a
jmp 0x40f981
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov edx, dword [esi]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi], 0xffffffff
mov eax, dword [edi + 8]
push 2
push esi
push eax
call dword [edi + 4]
push esi
mov ecx, edi
call fcn.0040fae0
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
call fcn.0052fee7
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x411080
Capabilities:
Get hostname
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x54b299
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
mov eax, dword [0x59a094]
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edi
mov ecx, dword [0x5b0bec]
mov dword [esp + 0x120], 0
test ecx, ecx
je 0x4110d7
call fcn.0040f9b0
mov ecx, dword [0x5b0bec]
test ecx, ecx
je 0x4110d7
mov edx, dword [ecx]
push 1
call dword [edx]
push 0xa4
call fcn.0052b69e
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0x120], 1
je 0x4110fd
mov ecx, eax
call fcn.0040e760
jmp 0x4110ff
xor eax, eax
mov ebx, dword [esp + 0x128]
mov ecx, eax
push ebx
push 0x186a0
push edi
push 0x410fb0
mov byte [esp + 0x130], 0
mov dword [0x5b0bec], eax
call fcn.0040e9b0
test al, al
je 0x4111f1
push ebp
lea eax, [esp + 0x1c]
push 0x100
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x4111b9
mov edx, dword [esi + 0xc]
mov ebp, dword [sym.imp.WS2_32.dll_inet_ntoa]
mov eax, dword [edx]
mov ecx, dword [eax]
push ecx
call ebp
push eax
lea ecx, [esp + 0x14]
call fcn.005302c3
mov edx, dword [esi + 0xc]
movsx eax, word [esi + 0xa]
mov ecx, dword [edx]
add eax, ecx
mov ecx, dword [esi]
cmp eax, ecx
jae 0x4111b9
xor edi, edi
push 0x596d40
lea ecx, [esp + 0x14]
call fcn.005302c3
mov ecx, dword [esi + 0xc]
add edi, 4
mov edx, dword [edi + ecx]
mov eax, dword [edx]
push eax
call ebp
push eax
lea ecx, [esp + 0x14]
call fcn.005302c3
mov ecx, dword [esi + 0xc]
movsx edx, word [esi + 0xa]
mov eax, dword [ecx + edi]
add edx, eax
mov eax, dword [esi]
cmp edx, eax
jb 0x41117d
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
lea esi, [edi + 0x1b0]
push eax
push 0
mov ecx, esi
call fcn.004443c0
push ebx
lea ecx, [esp + 0x14]
push str.Port:__d
push ecx
call fcn.00528c17
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov ecx, esi
push edx
push 2
call fcn.004443c0
pop ebp
jmp 0x411226
push ebx
lea eax, [esp + 0x10]
push str.Listen_Port___d__Failed
push eax
call fcn.00528c17
mov ecx, dword [esp + 0x18]
add esp, 0xc
lea esi, [edi + 0x1b0]
push ecx
push 0
mov ecx, esi
call fcn.004443c0
push str.Port:_0
push 2
mov ecx, esi
call fcn.004443c0
push str.Connection:_0
push 3
mov ecx, esi
call fcn.004443c0
lea ecx, [esp + 0xc]
mov dword [esp + 0x120], 0xffffffff
call fcn.0052fee7
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x118
ret 8