joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443c60
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x57f290
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov byte [esi + 0x7f4], 1
mov eax, dword [0x412074]
mov dword [esp + 0x10], eax
mov ecx, dword [esi + 0x7bc]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x1032
push ecx
mov dword [esp + 0x38], 0
call ebx
cmp eax, 1
push 0
push 0
jbe 0x443cda
mov edx, dword [esi + 0x7bc]
push 0x1032
push edx
call ebx
push eax
lea eax, [esp + 0x14]
push 0x4024cc
push eax
call fcn.0055e243
add esp, 0xc
jmp 0x443d57
mov ecx, dword [esi + 0x7bc]
push 0x1042
push ecx
call ebx
lea edi, [esi + 0x7a0]
push 0
lea edx, [esp + 0x18]
push eax
push edx
mov ecx, edi
call fcn.0055f8f4
mov eax, dword [esi + 0x7bc]
push 0
push 0
push 0x1042
push eax
mov byte [esp + 0x38], 1
call ebx
push eax
mov ecx, edi
call fcn.0055f999
cmp eax, 1
jne 0x443d32
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push 0x4024a0
push edx
jmp 0x443d41
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push 0x402488
push ecx
call fcn.0055e243
add esp, 0xc
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 0
call fcn.00564d6e
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x1c]
push 0x24
push 0x40247c
push edx
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
je 0x443e56
push 0
mov ecx, esi
call fcn.00442950
mov ecx, dword [esi + 0x7bc]
push 2
push 0xffffffffffffffff
push 0x100c
push ecx
call ebx
lea ebp, [eax + 1]
test ebp, ebp
je 0x443e35
mov edx, dword [esi + 0x7bc]
lea edi, [ebp - 1]
push 2
push edi
push 0x100c
push edx
call ebx
lea ebp, [eax + 1]
push 0
lea eax, [esp + 0x1c]
push edi
push eax
lea ecx, [esi + 0x7a0]
call fcn.0055f8f4
push eax
lea eax, [esi + 0x668]
lea ecx, [esp + 0x18]
push eax
push ecx
mov byte [esp + 0x34], 2
call fcn.00564f9d
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 4
call fcn.00564d6e
push edi
lea ecx, [esi + 0x7a0]
call fcn.0055f999
test eax, eax
je 0x443e14
push 0x5c
lea ecx, [esp + 0x18]
call fcn.00565171
mov edx, dword [esp + 0x14]
mov ecx, esi
push edx
call fcn.004443d0
jmp 0x443e1f
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.00564d6e
test ebp, ebp
jne 0x443d9c
push 1
mov ecx, esi
call fcn.00442950
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x402378
call fcn.00564ddc
mov ecx, esi
call fcn.00440bb0
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.00564d6e
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret
Function at 0x4442a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 1
mov ecx, dword [esi + 0x654]
add ecx, 0x24
call fcn.00437b70
mov edi, eax
xor ecx, ecx
mov eax, dword [edi]
mov dword [esp + 0x10], eax
mov ebp, dword [edi + 4]
mov edx, dword [edi]
xor eax, eax
or ecx, ebp
or edx, eax
mov dword [esi + 0x80], ecx
mov ecx, esi
mov dword [esi + 0x84], edx
call fcn.00443b70
mov ecx, dword [esi + 0x80]
mov eax, dword [esi + 0x78]
cmp ecx, eax
jne 0x4442ff
mov edx, dword [esi + 0x84]
mov eax, dword [esi + 0x7c]
cmp edx, eax
je 0x4443c1
cmp dword [edi + 4], 0xffffffff
je 0x4443c1
mov al, byte [esi + 0x5c]
test al, al
jne 0x4443c1
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push 0
lea ecx, [esi + 0x70]
call fcn.0056519e
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4443c8
lea eax, [esp + 0x10]
push 0
push eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x2000
push 0x40
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
lea edx, [esp + 0x14]
push 0
push edx
lea eax, [edi + 9]
mov byte [edi], 5
mov ecx, dword [esp + 0x18]
push 0x1ff7
push eax
push ebx
mov dword [edi + 1], ecx
mov dword [edi + 5], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x4443b2
mov ecx, dword [esi + 0x654]
add eax, 9
push eax
push edi
push ecx
mov ecx, dword [esi + 0x658]
call fcn.00449660
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ecx, esi
call fcn.004439d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x4443d0
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 0x4024ec
mov ebp, ecx
push eax
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 0x444425
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x44c
ret 4
cmp byte [esp + 0x3c], 0x2e
je 0x444477
test byte [esp + 0x10], 0x10
lea eax, [esp + 0x3c]
push eax
push esi
push 0x4024e4
je 0x44445c
lea ecx, [esp + 0x15c]
push ecx
call edi
add esp, 0x10
lea edx, [esp + 0x150]
mov ecx, ebp
push edx
call fcn.004443d0
jmp 0x444477
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 0x444425
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 0x445430
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416f78
push 0x54daec
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 dword [0x4349f4]
add esp, 4
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x44558d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp byte [edi], 0x5c
jne 0x4454dc
lea eax, [edi + 1]
cmp byte [eax], 0x5c
jne 0x4454dc
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x4454b7
cmp al, 0x5c
je 0x4454b7
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x44549f
cmp byte [esi], 0
je 0x4454c0
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x4454d5
cmp al, 0x5c
je 0x4454d5
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x4454bd
cmp byte [esi], 0
je 0x4454fb
jmp 0x4454f7
lea eax, [edi + 1]
cmp byte [eax], 0x3a
jne 0x4454fb
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x4454fb
cmp al, 0x5c
jne 0x4454fb
inc esi
mov dword [ebp - 0x1c], esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov al, byte [esi]
test al, al
je 0x445551
cmp al, 0x5c
jne 0x445543
mov byte [esi], 0
push edi
call ebx
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
jne 0x445536
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x445540
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x445540
push edi
jmp 0x445584
and eax, 0x10
cmp al, 0x10
je 0x445540
push edi
jmp 0x445584
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x445501
mov dword [ebp - 4], 0xffffffff
push edi
call dword [0x4349f8]
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 dword [0x4349f8]
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 0x448460
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x57fa02
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.00564ddc
mov dword [esp + 4], 1
lea ecx, [esp + 0x11c]
mov byte [esp + 0x110], 2
call fcn.00564d6e
lea ecx, [esp + 0x120]
mov byte [esp + 0x110], 1
call fcn.00564d6e
lea ecx, [esp + 0x124]
mov byte [esp + 0x110], 0
call fcn.00564d6e
mov ecx, dword [esp + 0x108]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x110
ret 0x10

Function at 0x448530
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x57fa18
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.00564d6e
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], 0xffffffff
call fcn.00564d6e
mov ecx, dword [esp + 4]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 0xc

Function at 0x448cb0
Capabilities:
Access peb ldr_data
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x57fa8d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x194
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov ecx, 0x4177ac
mov eax, 0xa
mov dword [esp + 8], esi
mov dword [esi + 0x44], ecx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], eax
mov dword [esp + 0x1a4], ebx
mov dword [esi + 0x60], ecx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], eax
lea ecx, [esi + 0x90]
mov byte [esp + 0x1a4], 1
call fcn.004389f0
lea eax, [esp + 0xc]
mov dword [esi], 0x4177a4
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea ecx, [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x84], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [esp + 0x19c]
mov dword [esi + 0x80], eax
mov dword [esi + 0x38], ebx
mov byte [esi + 0x8c], bl
mov byte [esi + 0x41], bl
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x88], ebx
mov byte [esi + 0x40], bl
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0xb0], ebx
mov dword [esi + 0x34], 0x2710
mov dword [esi + 0x9c], 0x2bf20
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1a0
ret
Function at 0x448eb0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
push esi
push 1
push 0
mov esi, ecx
mov ecx, dword [esp + 0x24]
push 0
push 0
push 1
push 2
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0x34], edx
call dword [sym.imp.WS2_32.dll_WSASocketA]
cmp eax, 0xffffffff
mov dword [esi + 0x38], eax
je 0x448fc6
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
test eax, eax
mov dword [esi + 0x7c], eax
jne 0x448f09
mov eax, dword [esi + 0x38]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
pop esi
add esp, 0x10
ret 0x10
mov ecx, dword [esi + 0x38]
push 8
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x448fbc
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esi + 0x38]
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 0x448f67
mov eax, dword [esi + 0x38]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
pop esi
add esp, 0x10
ret 0x10
mov ecx, dword [esi + 0x38]
push OleUIAddVerbMenuA
push ecx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x448fbc
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push 0
push esi
push 0x448fd0
push 0
push 0
call dword [fcn.00434a18]
add esp, 0x18
cmp eax, 0xffffffff
mov dword [esi + 0x84], eax
je 0x448fc6
mov ecx, esi
call fcn.004492c0
mov byte [esi + 0x40], 1
mov al, 1
pop esi
add esp, 0x10
ret 0x10
mov edx, dword [esi + 0x38]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
pop esi
add esp, 0x10
ret 0x10
Function at 0x4492c0
Capabilities:
Create tcp socket
Create udp socket
Get system information on windows

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
push 0
push 1
mov esi, ecx
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4492e6
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 + 0x88], eax
push edi
jne 0x44930e
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 + 0xa8], 0xa
mov dword [esi + 0xac], 0x4b
lea eax, [ecx + ecx]
lea ecx, [esi + 0x90]
mov dword [esi + 0xa0], eax
mov dword [esi + 0xa4], eax
call fcn.00438a50
mov edx, dword [esp + 0x28]
xor edi, edi
mov dword [esi + 0x3c], 0
lea ebx, [edx + edx]
test ebx, ebx
jbe 0x449398
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x10]
push eax
push 0
push esi
push 0x4493c0
push 0
push 0
call dword [fcn.00434a18]
add esp, 0x18
test eax, eax
je 0x4493a2
mov ecx, dword [esi + 0x3c]
push eax
inc ecx
mov dword [esi + 0x3c], ecx
call ebp
inc edi
cmp edi, ebx
jb 0x44936b
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x28
ret
mov ecx, dword [esi + 0x88]
push ecx
call ebp
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x28
ret

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

Disassembly:
sub esp, 8
push ebx
push esi
mov ebx, ecx
push 0x18
call fcn.00560d03
mov edx, eax
add esp, 4
test edx, edx
je 0x44960d
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 0x44960f
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 0x449653
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x449653
push 0
push esi
mov ecx, ebx
call fcn.00449d00
pop esi
pop ebx
add esp, 8
ret 4
Function at 0x449ad0
Capabilities:
Check for time delay via gettickcount
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57fba0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov al, byte [0x5a39cc]
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
test al, 1
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0
jne 0x449b1c
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
or al, 1
mov byte [0x5a39cc], al
call esi
mov dword [0x5a39d4], eax
jmp 0x449b22
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [ebp + 0xc]
mov eax, dword [0x5a39e8]
add eax, edi
mov dword [0x5a39e8], eax
call esi
sub eax, dword [0x5a39d4]
cmp eax, 0x3e8
jb 0x449b61
call esi
mov dword [0x5a39d4], eax
mov eax, dword [0x5a39e8]
add ebx, 0x2c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [0x5a39e8], 0
mov esi, dword [ebp + 8]
push edi
lea ebx, [esi + 4]
mov ecx, ebx
call fcn.00437b80
mov ecx, ebx
call fcn.004379b0
test eax, eax
jne 0x449ba3
mov ecx, ebx
call fcn.00437b50
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.00560d03
mov edx, eax
add esp, 4
test edx, edx
je 0x449bc9
mov ecx, 6
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [edx + 0x14], 2
mov edi, edx
jmp 0x449bcb
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.00437b70
mov ecx, ebx
mov dword [esi + 0x205c], eax
call fcn.004379b0
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 0x449c28
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x449c28
mov ecx, dword [ebp - 0x14]
push 0
push esi
call fcn.00449d00
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 0x449d00
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x57fbd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
push edi
mov edi, ecx
push 0x40299c
lea ecx, [esp + 0xc]
call fcn.00564ddc
mov eax, dword [0x412074]
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.00564ea7
lea eax, [edi + 0xc]
push eax
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [esp + 8]
mov byte [esp + 0x20], 3
call fcn.00564d6e
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
test eax, eax
jne 0x449d9e
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 + 0x48]
test eax, eax
je 0x449de0
cmp dword [eax + 8], esi
je 0x449db2
mov eax, dword [eax]
test eax, eax
jne 0x449da5
jmp 0x449de0
test eax, eax
je 0x449de0
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.00449f40
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.00564d6e
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x44a860
Capabilities:
Get hostname
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x57fdd9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
mov eax, dword [0x412074]
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edi
mov ecx, dword [0x5a3a2c]
mov dword [esp + 0x120], 0
test ecx, ecx
je 0x44a8b7
call fcn.00449e10
mov ecx, dword [0x5a3a2c]
test ecx, ecx
je 0x44a8b7
mov edx, dword [ecx]
push 1
call dword [edx]
push 0xb4
call fcn.00560d03
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0x120], 1
je 0x44a8dd
mov ecx, eax
call fcn.00448cb0
jmp 0x44a8df
xor eax, eax
mov ebx, dword [esp + 0x128]
mov ecx, eax
push ebx
push 0x186a0
push edi
push 0x44a720
mov byte [esp + 0x130], 0
mov dword [0x5a3a2c], eax
call fcn.00448eb0
test al, al
je 0x44a9d5
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 0x44a999
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.0056514a
mov edx, dword [esi + 0xc]
movsx eax, word [esi + 0xa]
mov ecx, dword [edx]
add ecx, eax
mov eax, dword [esi]
cmp ecx, eax
jae 0x44a999
xor edi, edi
push 0x402a78
lea ecx, [esp + 0x14]
call fcn.0056514a
mov edx, dword [esi + 0xc]
add edi, 4
mov eax, dword [edx + edi]
mov ecx, dword [eax]
push ecx
call ebp
push eax
lea ecx, [esp + 0x14]
call fcn.0056514a
mov edx, dword [esi + 0xc]
movsx eax, word [esi + 0xa]
mov ecx, dword [edx + edi]
add ecx, eax
mov eax, dword [esi]
cmp ecx, eax
jb 0x44a95d
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
lea esi, [edi + 0x2cc]
push 1
push edx
push 0
mov ecx, esi
call fcn.0056c732
push ebx
lea eax, [esp + 0x14]
push 0x402a6c
push eax
call fcn.0055e243
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push 1
push ecx
push 2
mov ecx, esi
call fcn.0056c732
pop ebp
jmp 0x44aa0e
push ebx
lea edx, [esp + 0x10]
push 0x402a5c
push edx
call fcn.0055e243
mov eax, dword [esp + 0x18]
add esp, 0xc
lea esi, [edi + 0x2cc]
push 1
push eax
push 0
mov ecx, esi
call fcn.0056c732
push 1
push 0x402a54
push 2
mov ecx, esi
call fcn.0056c732
push 1
push 0x402a4c
push 3
mov ecx, esi
call fcn.0056c732
lea ecx, [esp + 0xc]
mov dword [esp + 0x120], 0xffffffff
call fcn.00564d6e
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x118
ret 8
Function at 0x44e6a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 1
mov ecx, dword [esi + 0xb1c]
add ecx, 0x24
call fcn.00437b70
mov edi, eax
xor ecx, ecx
mov eax, dword [edi]
mov dword [esp + 0x10], eax
mov ebp, dword [edi + 4]
mov edx, dword [edi]
xor eax, eax
or ecx, ebp
or edx, eax
mov dword [esi + 0x78], ecx
mov ecx, esi
mov dword [esi + 0x7c], edx
call fcn.0044e7c0
mov ecx, dword [esi + 0x78]
mov eax, dword [esi + 0x70]
cmp ecx, eax
jne 0x44e6f3
mov edx, dword [esi + 0x7c]
mov eax, dword [esi + 0x74]
cmp edx, eax
je 0x44e7aa
cmp dword [edi + 4], 0xffffffff
je 0x44e7aa
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push 0
lea ecx, [esi + 0x6c]
call fcn.0056519e
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x44e7b1
lea eax, [esp + 0x10]
push 0
push eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x2000
push 0x40
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
lea edx, [esp + 0x14]
push 0
push edx
lea eax, [edi + 9]
mov byte [edi], 5
mov ecx, dword [esp + 0x18]
push 0x1ff7
push eax
push ebx
mov dword [edi + 1], ecx
mov dword [edi + 5], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x44e79b
mov ecx, dword [esi + 0xb1c]
add eax, 9
push eax
push edi
push ecx
mov ecx, dword [esi + 0xb20]
call fcn.00449660
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ecx, esi
call fcn.0044e840
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret