joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408f05
Capabilities:
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a3940
push 0x556cac
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 dword [0x5c6764]
pop ecx
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x409049
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 0x408fad
lea eax, [edi + 1]
cmp byte [eax], 0x5c
jne 0x408fad
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x408f88
cmp al, 0x5c
je 0x408f88
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x408f70
cmp byte [esi], 0
je 0x408f91
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x408fa6
cmp al, 0x5c
je 0x408fa6
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x408f8e
cmp byte [esi], 0
je 0x408fcc
jmp 0x408fc8
lea eax, [edi + 1]
cmp byte [eax], 0x3a
jne 0x408fcc
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x408fcc
cmp al, 0x5c
jne 0x408fcc
inc esi
mov dword [ebp - 0x1c], esi
or ebx, 0xffffffff
mov al, byte [esi]
test al, al
je 0x409029
cmp al, 0x5c
jne 0x40901b
and byte [esi], 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x409004
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x409018
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jmp 0x409009
and eax, 0x10
cmp al, 0x10
je 0x409018
push edi
call dword [0x5c6768]
pop ecx
mov dword [ebp - 4], ebx
jmp 0x40904d
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x408fcf
mov dword [ebp - 4], ebx
push edi
call dword [0x5c6768]
pop ecx
mov al, 1
jmp 0x40904f
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 0x40a301
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x58ea57
call fcn.0055690c
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.005726ca
mov dword [ebp - 0x10], 1
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.0057265c
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.0057265c
and byte [ebp - 4], 0
lea ecx, [ebp + 0x14]
call fcn.0057265c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x40a978
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors
Initialize winsock library

Disassembly:
mov eax, 0x58ead9
call fcn.0055690c
sub esp, 0x19c
push ebx
push esi
mov esi, ecx
push 0xa
mov eax, 0x5a3f48
xor ebx, ebx
pop ecx
mov dword [ebp - 0x18], esi
mov dword [esi + 0x2c], eax
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ecx
mov dword [ebp - 4], ebx
mov dword [esi + 0x48], eax
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ecx
lea ecx, [esi + 0x7c]
mov byte [ebp - 4], 1
call fcn.004047b3
lea eax, [ebp - 0x1a8]
mov dword [esi], 0x5a3f44
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x600dd8
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x70], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x6c], eax
lea eax, [ebp - 0x14]
push 5
push eax
lea eax, [esi + 0x26]
mov dword [esi + 0x68], ebx
push eax
mov byte [esi + 0x78], bl
mov byte [esi + 0x25], bl
mov dword [esi + 0x64], ebx
mov dword [esi + 0x74], 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 + 0x88], 0x1d4c0
mov byte [ebp - 0x14], 0x57
mov byte [ebp - 0x13], 0x69
mov byte [ebp - 0x12], 0x6e
mov byte [ebp - 0x11], 0x64
mov byte [ebp - 0x10], 0x73
call fcn.00556200
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov eax, esi
mov dword fs:[0], ecx
pop esi
pop ebx
leave
ret
Function at 0x40ac40
Capabilities:
Set socket configuration

Disassembly:
mov eax, 0x58eb48
call fcn.0055690c
sub esp, 0x34
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp byte [esi + 0x78], bl
jne 0x40ae05
cmp byte [esi + 0x25], bl
jne 0x40ae05
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x10
push eax
lea eax, [ebp - 0x40]
push eax
push dword [esi + 0x68]
call dword [sym.imp.WS2_32.dll_accept]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
jne 0x40ac97
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x40ae05
mov ecx, esi
call fcn.0040b9d2
mov edi, eax
cmp edi, ebx
je 0x40ae05
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 + 0x74]
mov ecx, esi
push eax
call fcn.0040b790
test eax, eax
jne 0x40aced
mov ecx, edi
call fcn.0040ae14
push edi
call fcn.0056dc10
mov edi, dword [sym.imp.WS2_32.dll_closesocket]
pop ecx
push dword [ebp - 0x14]
call edi
push dword [esi + 0x68]
call edi
jmp 0x40ae05
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]
mov eax, dword [esi + 0x88]
push ebx
mov dword [ebp - 0x2c], eax
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 - 0x28], 0x2710
push dword [edi]
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push str.OnAccept
lea ecx, [ebp - 0x14]
call fcn.005726ca
mov eax, dword [0x5eb854]
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.00572795
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0x600dd8
call fcn.0040bdde
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.0057265c
push edi
lea ecx, [esi + 0x2c]
call fcn.0040bb54
push 0x18
call fcn.0056dbe7
cmp eax, ebx
pop ecx
mov dword [ebp - 0x1c], eax
je 0x40ada7
push 0x18
push ebx
push eax
call fcn.005561a0
mov eax, dword [ebp - 0x1c]
add esp, 0xc
mov dword [eax + 0x14], ebx
jmp 0x40ada9
xor eax, eax
push eax
push edi
push ebx
push dword [esi + 0x74]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
cmp eax, ebx
jne 0x40add9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x40add9
push 1
push edi
mov ecx, esi
call fcn.0040b7b0
mov dword [ebp - 4], 4
jmp 0x40adf1
push 1
push edi
push dword [esi + 8]
call dword [esi + 4]
push edi
mov ecx, esi
call fcn.0040b0d5
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x24]
call fcn.0040bdd5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0057265c
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40ae65
Capabilities:
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 0x40af2e
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
cmp eax, ebx
mov dword [esi + 0x74], eax
push edi
jne 0x40aea5
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x40af2e
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 + 0x7c]
add eax, eax
mov dword [esi + 0x94], 0xa
mov dword [esi + 0x8c], eax
mov dword [esi + 0x90], eax
mov dword [esi + 0x98], 0x4b
call fcn.004047fc
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x20], ebx
mov dword [ebp - 4], ebx
lea edi, [eax + eax]
cmp edi, ebx
jbe 0x40af1e
lea eax, [ebp - 8]
push eax
push ebx
push esi
push 0x40af32
push ebx
push ebx
call dword [0x5c6784]
add esp, 0x18
cmp eax, ebx
je 0x40af25
inc dword [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 4]
cmp dword [ebp - 4], edi
jb 0x40aef2
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
push dword [esi + 0x74]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x40af20

Function at 0x40b0d5
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.0056dbe7
mov esi, eax
pop ecx
test esi, esi
je 0x40b103
push 0x18
push 0
push esi
call fcn.005561a0
add esp, 0xc
mov dword [esi + 0x14], 1
jmp 0x40b105
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 0x40b145
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x40b145
mov ecx, dword [ebp - 8]
push 0
push esi
call fcn.0040b7b0
pop esi
leave
ret 4
Function at 0x40b5ff
Capabilities:
Check for time delay via gettickcount
Send data
Send data on socket

Disassembly:
mov eax, 0x58ebd4
call fcn.0055690c
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
test byte [0x600dc4], 1
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
jne 0x40b635
or byte [0x600dc4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x600e00], eax
mov edi, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
add dword [0x600e10], edi
call ebx
sub eax, dword [0x600e00]
cmp eax, 0x3e8
jb 0x40b671
call ebx
push dword [0x600e10]
add esi, 0x14
mov dword [0x600e00], eax
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
and dword [0x600e10], 0
mov esi, dword [ebp + 8]
push edi
lea ebx, [esi + 4]
mov ecx, ebx
call fcn.0040230e
mov ecx, ebx
call fcn.004021b1
test eax, eax
jne 0x40b6a4
mov ecx, ebx
call fcn.004022f3
push dword [esi + 0x2060]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov al, 1
jmp 0x40b72d
push 0x18
call fcn.0056dbe7
mov edi, eax
pop ecx
test edi, edi
je 0x40b6cb
push 0x18
push 0
push edi
call fcn.005561a0
add esp, 0xc
mov dword [edi + 0x14], 2
mov dword [ebp + 0xc], edi
jmp 0x40b6cf
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.00402304
mov ecx, ebx
mov dword [esi + 0x205c], eax
call fcn.004021b1
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 0x40b72b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x40b72b
mov ecx, dword [ebp - 0x14]
push edi
push esi
call fcn.0040b7b0
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
Function at 0x40b7b0
Capabilities:
Set socket configuration

Disassembly:
mov eax, 0x58ec00
call fcn.0055690c
sub esp, 0x10
push esi
push edi
mov edi, ecx
push str.RemoveStaleClient
lea ecx, [ebp - 0x10]
call fcn.005726ca
mov eax, dword [0x5eb854]
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.00572795
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x600dd8
call fcn.0040bdde
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.0057265c
cmp dword [ebp + 0xc], 0
mov esi, dword [ebp + 8]
jne 0x40b831
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 + 0x30]
test eax, eax
je 0x40b841
cmp dword [eax + 8], esi
je 0x40b843
mov eax, dword [eax]
jmp 0x40b834
xor eax, eax
test eax, eax
je 0x40b86b
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.0040b900
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 4
call fcn.0040bdd5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0057265c
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x40d1bd
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov eax, 0x58f014
call fcn.0055690c
push ecx
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 4], ebx
push ebx
push 0x80
push 2
push ebx
push 2
push 0x40000000
push dword [ebp + 8]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d1f6
xor esi, esi
jmp 0x40d236
movzx eax, word [ebp + 0xc]
push edi
push dword [ebp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push ebx
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [ebp - 0x10]
push ebx
push ecx
push eax
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop esi
pop edi
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.0057265c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.0057265c
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40dcc9
Capabilities:
Get hostname
Resolve dns

Disassembly:
mov eax, 0x58f0e2
call fcn.0055690c
sub esp, 0x118
mov eax, dword [0x5eb854]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x24], edi
mov ecx, dword [0x600ebc]
xor ebx, ebx
cmp ecx, ebx
mov dword [ebp - 4], ebx
je 0x40dd0d
call fcn.0040b896
mov ecx, dword [0x600ebc]
cmp ecx, ebx
je 0x40dd0d
mov eax, dword [ecx]
push 1
call dword [eax]
push 0x9c
call fcn.0056dbe7
pop ecx
mov dword [ebp - 0x20], eax
cmp eax, ebx
mov byte [ebp - 4], 1
je 0x40dd2c
mov ecx, eax
call fcn.0040a978
jmp 0x40dd2e
xor eax, eax
push dword [ebp + 8]
mov ecx, eax
mov byte [ebp - 4], bl
mov dword [0x600ebc], eax
push 0x186a0
push edi
push 0x40dbb3
call fcn.0040ab0b
test al, al
je 0x40de84
lea eax, [ebp - 0x124]
push 0x100
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
cmp esi, ebx
je 0x40ddd9
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [ebp - 0x10]
call fcn.00572a38
mov eax, dword [esi + 0xc]
movsx ecx, word [esi + 0xa]
mov eax, dword [eax]
add eax, ecx
cmp eax, dword [esi]
jae 0x40ddd9
xor edi, edi
push 0x5e9574
lea ecx, [ebp - 0x10]
call fcn.00572a38
mov eax, dword [esi + 0xc]
add edi, 4
mov eax, dword [eax + edi]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [ebp - 0x10]
call fcn.00572a38
mov eax, dword [esi + 0xc]
movsx ecx, word [esi + 0xa]
mov eax, dword [eax + edi]
add eax, ecx
cmp eax, dword [esi]
jb 0x40dd9f
mov edi, dword [ebp - 0x24]
lea eax, [ebp - 0x24]
push eax
call fcn.0056bbd0
mov eax, dword [eax]
push 0x5e954c
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x20]
call fcn.0056bc12
mov eax, dword [0x5eb854]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
push dword [ebp - 0x1c]
lea esi, [edi + 0x520]
mov ecx, esi
mov byte [ebp - 4], 4
push ebx
call fcn.00446090
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push 0x5e953c
push eax
call fcn.0056b3b3
add esp, 0xc
mov ecx, esi
push dword [ebp - 0x18]
push 2
call fcn.00446090
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push dword [ebp - 0x10]
push 0x5e9520
push eax
call fcn.0056b3b3
mov ecx, dword [0x600e6c]
add esp, 0x10
push ebx
push ebx
push dword [ebp - 0x14]
call fcn.0040c7aa
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.0057265c
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0057265c
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.0057265c
jmp 0x40dec8
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push 0x5e94e0
push eax
call fcn.0056b3b3
add esp, 0xc
lea esi, [edi + 0x520]
mov ecx, esi
push dword [ebp - 0x10]
push ebx
call fcn.00446090
push 0x5e94d4
push 2
mov ecx, esi
call fcn.00446090
mov ecx, dword [0x600e6c]
push 1
push ebx
push dword [ebp - 0x10]
call fcn.0040c7aa
push 0x5e94c8
push 3
mov ecx, esi
call fcn.00446090
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0057265c
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x410a03
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x410a21
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x410a21
test al, 0x10
jne 0x410a21
push 1
pop eax
ret
xor eax, eax
ret

Function at 0x411618
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x600eb8], ebx
push esi
push edi
mov edi, ecx
je 0x4116fb
mov ecx, dword [edi + 0x48]
call fcn.004090e5
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x41165c
mov ecx, dword [edi + 0x48]
lea eax, [ebp - 0xc]
push eax
call fcn.004090f9
mov ecx, dword [edi + 0x48]
push 1
push eax
call fcn.0056c00f
cmp dword [ebp - 0xc], ebx
jne 0x411640
mov eax, dword [0x600d50]
mov ecx, dword [eax + 0x80]
call fcn.004e7030
push eax
call fcn.0056eb00
push eax
push 0x5a4938
call fcn.0057370a
pop ecx
mov esi, eax
pop ecx
mov eax, dword [esi + 0x48]
push ebx
push ebx
push 0x1004
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
jle 0x4116fb
push dword [ebp - 4]
mov ecx, dword [esi + 0x48]
call fcn.0056bff1
cmp eax, 1
jne 0x4116b4
inc dword [ebp - 8]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x10]
jl 0x4116a1
cmp dword [ebp - 8], ebx
je 0x4116fb
mov ecx, dword [esi + 0x48]
push ebx
call fcn.0056bff1
cmp eax, 1
jne 0x4116f5
push str.send
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esi + 0x48]
push ebx
call fcn.0056c2be
push dword [ebp + 0xc]
mov ecx, dword [edi + 0x54]
push dword [ebp + 8]
push eax
call fcn.0040b14a
inc ebx
cmp ebx, dword [ebp - 0x10]
jl 0x4116c4
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x412c43
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x412cae
push esi
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
mov eax, dword [eax - 8]
inc eax
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x412ca6
mov eax, dword [edi]
mov ecx, edi
push dword [eax - 8]
push 0
call fcn.00572a8c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call fcn.00556200
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 edi
pop esi
ret
Function at 0x41338f
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x10]
push eax
push 0x8004667e
push dword [ebp + 8]
xor esi, esi
mov dword [ebp + 0x10], esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test edi, edi
jle 0x4133ce
mov eax, dword [ebp + 0xc]
push 0
add eax, esi
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x4133ce
add esi, eax
sub edi, eax
jmp 0x4133ae
mov eax, esi
pop edi
pop esi
pop ebp
ret

Function at 0x4133d4
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x210c
call fcn.00556e50
mov eax, dword [ebp + 8]
and byte [ebp - 0x210c], 0
push ebx
push esi
mov ebx, dword [eax]
mov eax, dword [eax + 4]
push edi
mov dword [ebp - 4], eax
mov ecx, 0x7ff
xor eax, eax
lea edi, [ebp - 0x210b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.WS2_32.dll_recv]
mov esi, dword [ebp - 4]
push 1
pop edx
mov dword [ebp - 0x108], ebx
mov dword [ebp - 0x10c], edx
xor ecx, ecx
lea eax, [ebp - 0x108]
cmp dword [eax], esi
je 0x413434
inc ecx
add eax, 4
cmp ecx, edx
jb 0x413428
cmp ecx, edx
jne 0x413448
mov dword [ebp - 0x104], esi
mov dword [ebp - 0x10c], 2
xor esi, esi
lea eax, [ebp - 0x10c]
push esi
push esi
push esi
push eax
push esi
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x4134f3
lea eax, [ebp - 0x10c]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4134a7
push esi
lea eax, [ebp - 0x210c]
push 0x2000
push eax
push ebx
call edi
mov esi, eax
test esi, esi
jle 0x4134f3
lea eax, [ebp - 0x210c]
push esi
push eax
push dword [ebp - 4]
call fcn.0041338f
add esp, 0xc
test eax, eax
je 0x4134f3
cmp eax, esi
jne 0x4134f3
xor esi, esi
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x41340e
push esi
lea eax, [ebp - 0x210c]
push 0x2000
push eax
push dword [ebp - 4]
call edi
mov esi, eax
test esi, esi
jle 0x4134f3
lea eax, [ebp - 0x210c]
push esi
push eax
push ebx
call fcn.0041338f
add esp, 0xc
test eax, eax
je 0x4134f3
cmp eax, esi
je 0x41340e
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
push ebx
call esi
push dword [ebp - 4]
call esi
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4