joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410b3a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
push 1
mov ecx, dword [esi + 0x654]
add ecx, 0x24
call fcn.00403451
mov edi, eax
xor ebx, ebx
mov eax, dword [edi]
mov dword [ebp - 4], eax
mov eax, dword [edi + 4]
mov dword [ebp - 8], eax
mov edx, dword [edi + 4]
mov ecx, dword [edi]
xor eax, eax
or eax, edx
or ecx, ebx
mov dword [esi + 0x80], eax
mov dword [esi + 0x84], ecx
mov ecx, esi
call fcn.0041061c
mov eax, dword [esi + 0x80]
cmp eax, dword [esi + 0x78]
jne 0x410b9c
mov eax, dword [esi + 0x84]
cmp eax, dword [esi + 0x7c]
je 0x410c68
cmp dword [edi + 4], 0xffffffff
je 0x410c68
xor ebx, ebx
cmp byte [esi + 0x5c], bl
jne 0x410c68
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push ebx
lea ecx, [esi + 0x70]
call fcn.004982e4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x410c6f
lea ecx, [ebp - 4]
push ebx
push ecx
push dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x2000
push 0x40
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
lea eax, [ebp - 4]
push 4
push eax
lea eax, [edi + 1]
mov byte [edi], 5
push eax
call fcn.0047c5c0
lea eax, [ebp - 8]
push 4
push eax
lea eax, [edi + 5]
push eax
call fcn.0047c5c0
add esp, 0x18
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [edi + 9]
push 0x1ff7
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
cmp eax, ebx
jbe 0x410c5f
mov ecx, dword [esi + 0x658]
add eax, 9
push eax
push edi
push dword [esi + 0x654]
call fcn.00416984
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x410c6f
mov ecx, esi
call fcn.004104f0
pop edi
pop esi
pop ebx
leave
ret

Function at 0x410c74
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push ebx
lea eax, [ebp - 0x450]
push str._s.
mov dword [ebp - 4], ecx
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x450]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x410cc0
xor al, al
jmp 0x410d41
push edi
mov edi, str._s_s
cmp byte [ebp - 0x118], 0x2e
je 0x410d17
test byte [ebp - 0x144], 0x10
lea eax, [ebp - 0x118]
push eax
push ebx
push edi
je 0x410cfe
lea eax, [ebp - 0x248]
push eax
call esi
mov ecx, dword [ebp - 4]
add esp, 0x10
lea eax, [ebp - 0x248]
push eax
call fcn.00410c74
jmp 0x410d17
lea eax, [ebp - 0x34c]
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x34c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x144]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x410cc6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
setne al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41192f
Capabilities:
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8d78
push 0x47debc
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
and dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call fcn.0047d400
pop ecx
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x411a6f
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp byte [edi], 0x5c
jne 0x4119d6
lea eax, [edi + 1]
cmp byte [eax], 0x5c
jne 0x4119d6
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x4119b1
cmp al, 0x5c
je 0x4119b1
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x411999
cmp byte [esi], 0
je 0x4119ba
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x4119cf
cmp al, 0x5c
je 0x4119cf
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x4119b7
cmp byte [esi], 0
je 0x4119f5
jmp 0x4119f1
lea eax, [edi + 1]
cmp byte [eax], 0x3a
jne 0x4119f5
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x4119f5
cmp al, 0x5c
jne 0x4119f5
inc esi
mov dword [ebp - 0x1c], esi
or ebx, 0xffffffff
mov al, byte [esi]
test al, al
je 0x411a51
cmp al, 0x5c
jne 0x411a43
and byte [esi], 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x411a2d
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x411a40
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jmp 0x411a32
and eax, 0x10
cmp al, 0x10
je 0x411a40
push edi
call fcn.0047d53a
pop ecx
mov dword [ebp - 4], ebx
jmp 0x411a73
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x4119f8
mov dword [ebp - 4], ebx
push edi
call fcn.0047d53a
pop ecx
mov al, 1
jmp 0x411a75
or dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x415c2e
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4b0323
call fcn.0047cccc
sub esp, 0x104
and dword [ebp - 0x10], 0
push dword [ecx + 4]
lea eax, [ebp - 0x110]
mov dword [ebp - 4], 3
push 0x100
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x110]
push eax
call fcn.00497f22
mov dword [ebp - 0x10], 1
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.00497eb4
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.00497eb4
and byte [ebp - 4], 0
lea ecx, [ebp + 0x14]
call fcn.00497eb4
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov dword fs:[0], ecx
leave
ret 0x10

Function at 0x4161a7
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x4b03a8
call fcn.0047cccc
sub esp, 0x19c
push ebx
push esi
mov esi, ecx
push 0xa
mov eax, 0x4b9688
xor ebx, ebx
pop ecx
mov dword [ebp - 0x18], esi
mov dword [esi + 0x34], eax
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], ecx
mov dword [ebp - 4], ebx
mov dword [esi + 0x50], eax
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], ecx
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 1
call fcn.004050b1
lea eax, [ebp - 0x1a8]
mov dword [esi], 0x4b9684
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x4dfbd0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x74], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x70], eax
lea eax, [ebp - 0x14]
push 5
push eax
lea eax, [esi + 0x2e]
mov dword [esi + 0x14], ebx
push eax
mov byte [esi + 0x7c], bl
mov byte [esi + 0x2d], bl
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x78], ebx
mov byte [esi + 0x2c], bl
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], 0x2328
mov dword [esi + 0x8c], 0x278d0
mov byte [ebp - 0x14], 0x41
mov byte [ebp - 0x13], 0x4c
mov byte [ebp - 0x12], 0x50
mov byte [ebp - 0x11], 0x48
mov byte [ebp - 0x10], 0x41
call fcn.0047c5c0
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov eax, esi
mov dword fs:[0], ecx
pop esi
pop ebx
leave
ret
Function at 0x416340
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push edi
xor edi, edi
push 1
mov dword [esi + 4], eax
mov eax, dword [ebp + 0xc]
push edi
push edi
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10]
push edi
push 1
push 2
mov dword [esi + 0x20], eax
call dword [sym.imp.WS2_32.dll_WSASocketA]
cmp eax, 0xffffffff
mov dword [esi + 0x14], eax
je 0x4163d9
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
cmp eax, edi
mov dword [esi + 0x6c], eax
je 0x4163d0
push 8
push eax
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x4163d0
push dword [ebp + 0x14]
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x10]
push 0x10
push eax
push dword [esi + 0x14]
mov word [ebp - 0x10], 2
mov dword [ebp - 0xc], edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x4163d0
push SysReAllocString
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x4163e1
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
pop edi
pop esi
leave
ret 0x10
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
push eax
push edi
push esi
push 0x416410
push edi
push edi
call fcn.0047e00f
add esp, 0x18
cmp eax, 0xffffffff
mov dword [esi + 0x74], eax
je 0x4163d9
mov ecx, esi
call fcn.00416697
mov byte [esi + 0x2c], 1
mov al, 1
jmp 0x4163db
Function at 0x416474
Capabilities:
Set socket configuration

Disassembly:
mov eax, 0x4b041c
call fcn.0047cccc
sub esp, 0x34
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp byte [esi + 0x7c], bl
jne 0x416637
cmp byte [esi + 0x2d], bl
jne 0x416637
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x10
push eax
lea eax, [ebp - 0x40]
push eax
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_accept]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
jne 0x4164cb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x416637
mov ecx, esi
call fcn.00417185
mov edi, eax
cmp edi, ebx
je 0x416637
mov eax, dword [ebp - 0x14]
lea ecx, [edi + 0x58]
push edi
mov dword [edi], eax
mov dword [edi + 0x54], ecx
mov dword [edi + 0x50], 0x2000
push dword [esi + 0x78]
mov ecx, esi
push eax
call fcn.00416f43
test eax, eax
jne 0x416521
mov ecx, edi
call fcn.00416646
push edi
call fcn.00493659
mov edi, dword [sym.imp.WS2_32.dll_closesocket]
pop ecx
push dword [ebp - 0x14]
call edi
push dword [esi + 0x14]
call edi
jmp 0x416637
lea eax, [ebp - 0xd]
push 1
push eax
push 8
push 0xffff
mov byte [ebp - 0xd], 1
push dword [edi]
call dword [sym.imp.WS2_32.dll_setsockopt]
push ebx
lea eax, [ebp - 0xd]
push ebx
push eax
push ebx
push ebx
lea eax, [ebp - 0x30]
push 0xc
push eax
push 0x98000004
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], 0x34bc
mov dword [ebp - 0x28], 0x1194
push dword [edi]
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push str.OnAccept
lea ecx, [ebp - 0x14]
call fcn.00497f22
mov eax, dword [0x4d95e4]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x20]
push eax
mov byte [ebp - 4], 1
call fcn.00497fed
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0x4dfbd0
call fcn.0041752a
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00497eb4
push edi
lea ecx, [esi + 0x34]
call fcn.004172f0
push 0x18
call fcn.00493630
cmp eax, ebx
pop ecx
mov dword [ebp - 0x1c], eax
je 0x4165d9
push 0x18
push ebx
push eax
call fcn.0047c560
mov eax, dword [ebp - 0x1c]
add esp, 0xc
mov dword [eax + 0x14], ebx
jmp 0x4165db
xor eax, eax
push eax
push edi
push ebx
push dword [esi + 0x78]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
cmp eax, ebx
jne 0x41660b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x41660b
push 1
push edi
mov ecx, esi
call fcn.00416f63
mov dword [ebp - 4], 4
jmp 0x416623
push 1
push edi
push dword [esi + 8]
call dword [esi + 4]
push edi
mov ecx, esi
call fcn.0041690f
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x24]
call fcn.0041750a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00497eb4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x416697
Capabilities:
Create thread
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push 1
mov esi, ecx
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x416762
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
cmp eax, ebx
mov dword [esi + 0x78], eax
push edi
jne 0x4166d7
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x416762
call dword [sym.imp.WS2_32.dll_closesocket]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x18]
lea ecx, [esi + 0x80]
add eax, eax
mov dword [esi + 0x98], 0xa
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], eax
mov dword [esi + 0x9c], 0x4b
call fcn.004050fa
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x24], ebx
mov dword [ebp - 4], ebx
lea edi, [eax + eax]
cmp edi, ebx
jbe 0x416752
lea eax, [ebp - 8]
push eax
push ebx
push esi
push 0x416766
push ebx
push ebx
call fcn.0047e00f
add esp, 0x18
cmp eax, ebx
je 0x416759
inc dword [esi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 4]
cmp dword [ebp - 4], edi
jb 0x416727
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
push dword [esi + 0x78]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x416754

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov dword [ebp - 8], ecx
push 0x18
call fcn.00493630
mov esi, eax
pop ecx
test esi, esi
je 0x41693d
push 0x18
push 0
push esi
call fcn.0047c560
add esp, 0xc
mov dword [esi + 0x14], 1
jmp 0x41693f
xor esi, esi
push 0
lea eax, [ebp - 4]
push esi
mov esi, dword [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [esi + 0x50]
push 1
push eax
push dword [esi]
mov dword [ebp - 4], 0x8000
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x41697f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x41697f
mov ecx, dword [ebp - 8]
push 0
push esi
call fcn.00416f63
pop esi
leave
ret 4
Function at 0x416db2
Capabilities:
Check for time delay via gettickcount
Send data
Send data on socket

Disassembly:
mov eax, 0x4b04a0
call fcn.0047cccc
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
test byte [0x4dfbec], 1
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
jne 0x416de8
or byte [0x4dfbec], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4dfbf0], eax
mov edi, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
add dword [0x4dfc00], edi
call ebx
sub eax, dword [0x4dfbf0]
cmp eax, 0x3e8
jb 0x416e24
call ebx
push dword [0x4dfc00]
add esi, 0x18
mov dword [0x4dfbf0], eax
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
and dword [0x4dfc00], 0
mov esi, dword [ebp + 8]
push edi
lea ebx, [esi + 4]
mov ecx, ebx
call fcn.0040345b
mov ecx, ebx
call fcn.00403300
test eax, eax
jne 0x416e57
mov ecx, ebx
call fcn.00403440
push dword [esi + 0x2060]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov al, 1
jmp 0x416ee0
push 0x18
call fcn.00493630
mov edi, eax
pop ecx
test edi, edi
je 0x416e7e
push 0x18
push 0
push edi
call fcn.0047c560
add esp, 0xc
mov dword [edi + 0x14], 2
mov dword [ebp + 0xc], edi
jmp 0x416e82
and dword [ebp + 0xc], 0
mov eax, dword [ebp - 0x14]
push 3
push esi
push dword [eax + 8]
call dword [eax + 4]
xor edi, edi
mov ecx, ebx
push edi
call fcn.00403451
mov ecx, ebx
mov dword [esi + 0x205c], eax
call fcn.00403300
push edi
lea ecx, [esi + 0x2058]
push dword [ebp + 0xc]
mov dword [ecx], eax
push 0x8000
push ecx
push 1
push ecx
push dword [esi]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x416ede
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x416ede
mov ecx, dword [ebp - 0x14]
push edi
push esi
call fcn.00416f63
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
Function at 0x416f63
Capabilities:
Set socket configuration

Disassembly:
mov eax, 0x4b04cc
call fcn.0047cccc
sub esp, 0x10
push esi
push edi
mov edi, ecx
push str.RemoveStaleClient
lea ecx, [ebp - 0x10]
call fcn.00497f22
mov eax, dword [0x4d95e4]
and dword [ebp - 4], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.00497fed
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x4dfbd0
call fcn.0041752a
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00497eb4
cmp dword [ebp + 0xc], 0
mov esi, dword [ebp + 8]
jne 0x416fe4
and word [ebp - 0x12], 0
lea eax, [ebp - 0x14]
push 4
push eax
push 0x80
push 0xffff
push dword [esi]
mov word [ebp - 0x14], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [edi + 0x38]
test eax, eax
je 0x416ff4
cmp dword [eax + 8], esi
je 0x416ff6
mov eax, dword [eax]
jmp 0x416fe7
xor eax, eax
test eax, eax
je 0x41701e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CancelIo]
push dword [esi]
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [esi], 0xffffffff
push 2
push esi
push dword [edi + 8]
call dword [edi + 4]
push esi
mov ecx, edi
call fcn.004170b3
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 4
call fcn.0041750a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00497eb4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x418327
Capabilities:
Get hostname
Resolve dns

Disassembly:
mov eax, 0x4b071e
call fcn.0047cccc
sub esp, 0x10c
mov eax, dword [0x4d95e4]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], eax
mov ecx, dword [0x4dfc14]
and dword [ebp - 4], 0
test ecx, ecx
je 0x418369
call fcn.00417049
mov ecx, dword [0x4dfc14]
test ecx, ecx
je 0x418369
mov eax, dword [ecx]
push 1
call dword [eax]
push 0xa0
call fcn.00493630
pop ecx
mov dword [ebp - 0x18], eax
test eax, eax
mov byte [ebp - 4], 1
je 0x418388
mov ecx, eax
call fcn.004161a7
jmp 0x41838a
xor eax, eax
push dword [ebp + 8]
and byte [ebp - 4], 0
mov ecx, eax
mov dword [0x4dfc14], eax
push 0x186a0
push edi
push 0x41820c
call fcn.00416340
test al, al
je 0x41846e
push ebx
lea eax, [ebp - 0x118]
push 0x100
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x418435
mov eax, dword [esi + 0xc]
mov ebx, dword [sym.imp.WS2_32.dll_inet_ntoa]
mov eax, dword [eax]
push dword [eax]
call ebx
push eax
lea ecx, [ebp - 0x10]
call fcn.00498290
mov eax, dword [esi + 0xc]
movsx ecx, word [esi + 0xa]
mov eax, dword [eax]
add eax, ecx
cmp eax, dword [esi]
jae 0x418435
xor edi, edi
push 0x4d86d4
lea ecx, [ebp - 0x10]
call fcn.00498290
mov eax, dword [esi + 0xc]
add edi, 4
mov eax, dword [eax + edi]
push dword [eax]
call ebx
push eax
lea ecx, [ebp - 0x10]
call fcn.00498290
mov eax, dword [esi + 0xc]
movsx ecx, word [esi + 0xa]
mov eax, dword [eax + edi]
add eax, ecx
cmp eax, dword [esi]
jb 0x4183ff
mov edi, dword [ebp - 0x14]
push 1
lea esi, [edi + 0x33c]
push dword [ebp - 0x10]
mov ecx, esi
push 0
call fcn.0049fe12
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push 0x4d86c8
push eax
call fcn.00490e97
add esp, 0xc
mov ecx, esi
push 1
push dword [ebp - 0x10]
push 2
call fcn.0049fe12
pop ebx
jmp 0x4184a6
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push 0x4d86b8
push eax
call fcn.00490e97
add esp, 0xc
lea esi, [edi + 0x33c]
mov ecx, esi
push 1
push dword [ebp - 0x10]
push 0
call fcn.0049fe12
push 1
push 0x4d86ac
push 2
mov ecx, esi
call fcn.0049fe12
push 1
push 0x4d86a0
push 3
mov ecx, esi
call fcn.0049fe12
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00497eb4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 8

Function at 0x41c825
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x41c880
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
push dword [esp + 0xc]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x41c879
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [esp + 0xc]
push dword [esp + 0xc]
push eax
call fcn.0047c5c0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
ret 8
Function at 0x41c883
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ecx
push ebx
push ebp
mov ebx, ecx
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x41c909
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebp, eax
test ebp, ebp
jne 0x41c8aa
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x41c909
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov esi, eax
push ebp
inc esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
mov dword [esp + 0x14], eax
call fcn.00493630
mov edi, eax
lea eax, [esi - 1]
push eax
push dword [esp + 0x18]
lea eax, [edi + 1]
mov byte [edi], 0x1c
push eax
call fcn.0047c5c0
add esp, 0x10
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebx + 0x158]
push esi
push edi
push dword [ebx + 0x154]
call fcn.00416984
push edi
call fcn.00493659
pop ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x422a1e
Capabilities:
Create udp socket

Disassembly:
mov eax, 0x4b18cd
call fcn.0047cccc
push ecx
push esi
push 0
push dword [ebp + 8]
mov esi, ecx
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
pop esi
jne 0x422a7a
push 0x10
call fcn.00493630
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
and dword [ebp - 4], 0
test ecx, ecx
je 0x422a63
push 0x4d90f4
call fcn.00422908
jmp 0x422a65
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push 0x4cf6b8
push eax
call fcn.0047e22c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4
Function at 0x48bfe0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4b3788
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x64]
test eax, eax
jne 0x48c08a
mov eax, dword [0x4d95e4]
push esi
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.004982e4
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.00498333
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.00498290
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x48c071
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x48c071
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x64], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.00497eb4
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x48c0a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push ebx
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
test ebx, ebx
jne 0x48c125
mov edx, dword [esp + 4]
push esi
lea eax, [esp + 0xc]
push edi
lea ecx, [esp + 0x14]
push eax
push ecx
push ebx
push edx
mov dword [esp + 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x124]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x10c
ret 0xc
mov eax, ebx
pop ebx
add esp, 0x10c
ret 0xc