joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404454
Capabilities:
Copy file
Create directory
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x158
and dword [ebp + 0x64], 0
push ebx
mov ebx, dword [ebp + 0x74]
push esi
push edi
push ebx
call fcn.00402610
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, eax
push 0x43865c
push edi
mov dword [ebp + 0x58], edi
call esi
lea eax, [ebp - 0xec]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp + 0x68], eax
cmp eax, 0xffffffff
je 0x404607
test byte [ebp - 0xec], 0x10
lea eax, [ebp - 0xc0]
je 0x404585
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push 0x438658
push eax
call edi
test eax, eax
je 0x4045e3
push 0x438654
lea eax, [ebp - 0xc0]
push eax
call edi
test eax, eax
je 0x4045e3
push ebx
call fcn.00402610
lea ecx, [ebp - 0xc0]
push ecx
push eax
mov dword [ebp + 0x60], eax
call esi
cld
mov edi, dword [ebp + 0x74]
xor ecx, ecx
dec ecx
mov al, 0
repne scasb al, byte es:[edi]
dec edi
mov eax, edi
mov dword [ebp + 0x54], eax
cld
mov edi, dword [ebp + 0x74]
xor ecx, ecx
dec ecx
mov al, 0
repne scasb al, byte es:[edi]
dec edi
mov al, 0x5c
mov ah, 0
stosw word es:[edi], ax
cmp dword [ebp + 0x7c], 0
je 0x40451d
cmp dword [ebp + 0x7c], 1
jne 0x40454f
push dword [ebp + 0x78]
call fcn.00402610
lea ecx, [ebp - 0xc0]
push ecx
push eax
mov dword [ebp + 0x5c], eax
call esi
push 0
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cld
mov edi, dword [ebp + 0x78]
xor ecx, ecx
dec ecx
mov al, 0
repne scasb al, byte es:[edi]
dec edi
mov al, 0x5c
mov ah, 0
stosw word es:[edi], ax
mov edi, dword [ebp + 0x7c]
push edi
push dword [ebp + 0x78]
push ebx
call fcn.00404454
cmp edi, 2
jne 0x40456e
mov eax, dword [ebp + 0x54]
push ebx
mov byte [eax], 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov eax, dword [ebp + 0x60]
mov byte [eax], 0
test edi, edi
je 0x40457d
cmp edi, 1
jne 0x4045e3
mov eax, dword [ebp + 0x5c]
mov byte [eax], 0
jmp 0x4045e3
push eax
push ebx
call fcn.00402610
push eax
call esi
xor edi, edi
cmp dword [ebp + 0x7c], edi
je 0x40459c
cmp dword [ebp + 0x7c], 1
jne 0x4045ae
lea eax, [ebp - 0xc0]
push eax
push dword [ebp + 0x78]
call fcn.00402610
push eax
call esi
mov eax, dword [ebp + 0x7c]
sub eax, edi
je 0x4045d8
dec eax
je 0x4045cc
dec eax
jne 0x4045e3
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4045e3
push dword [ebp + 0x78]
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
jmp 0x4045e3
push edi
push dword [ebp + 0x78]
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [ebp - 0xec]
push eax
push dword [ebp + 0x68]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40449c
push dword [ebp + 0x68]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [ebp + 0x58]
cmp dword [ebp + 0x7c], 2
jne 0x404620
dec edi
cmp byte [edi], 0x5c
jne 0x404616
mov byte [edi], 0
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov dword [ebp + 0x64], eax
mov eax, dword [ebp + 0x64]
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret 0xc
Function at 0x40462d
Capabilities:
Delete file

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll__lopen]
push edi
xor ebx, ebx
push ebx
push dword [esp + 0x18]
call esi
mov edi, eax
push 2
cmp edi, 0xffffffff
jne 0x40464b
pop ebx
jmp 0x40468f
push dword [esp + 0x14]
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x404697
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll__llseek]
push esi
push edi
call fcn.004042d3
mov ebx, eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll__lclose]
call edi
cmp esi, 0xffffffff
je 0x40467c
push esi
call edi
test ebx, ebx
je 0x40468f
cmp ebx, 2
je 0x40468f
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
mov eax, ebx
pop ebx
ret 8
push ebx
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll__lcreat]
mov esi, eax
cmp esi, 0xffffffff
jne 0x404662
push 3
pop ebx
jmp 0x40466b

Function at 0x4047cd
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push esi
push dword [esp + 8]
xor esi, esi
call dword [sym.imp.USER32.dll_OpenClipboard]
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [esp + 8], eax
test eax, eax
je 0x40482f
push ebx
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call edi
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov esi, eax
test esi, esi
je 0x404826
push ebx
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call ebp
push dword [esp + 0x14]
call ebp
pop edi
pop ebp
pop ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, esi
pop esi
ret 4

Function at 0x404867
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4048c0
push dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esp + 8]
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
inc eax
pop esi
ret 8

Function at 0x405096
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4050d3
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x14]
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4050ca
inc esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
ret 0x14
Function at 0x405199
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push 0x208
xor edi, edi
call fcn.00401000
mov esi, eax
mov dword [ebp - 0xc], esi
cmp esi, edi
jne 0x4051bd
xor eax, eax
jmp 0x405251
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40522d
lea eax, [ebp - 8]
push eax
push esi
push edi
push dword [ebp - 4]
mov dword [ebp - 8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push dword [ebp + 0x14]
push 0x43875c
push esi
call fcn.0040239d
test eax, eax
jne 0x40521f
cld
mov edi, dword [ebp - 0xc]
xor ecx, ecx
dec ecx
mov al, 0
repne scasb al, byte es:[edi]
dec edi
mov al, 0x20
mov ah, 0
stosw word es:[edi], ax
push dword [ebp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 5
push esi
call dword [sym.imp.KERNEL32.dll_WinExec]
xor edi, edi
inc edi
jmp 0x405249
push dword [ebp + 0x18]
push 0x438734
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push edi
push esi
push dword [ebp + 8]
call fcn.0040258f
push esi
call fcn.00401019
mov eax, edi
pop edi
pop esi
leave
ret 0x14

Function at 0x4052da
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call fcn.004052cb
test eax, eax
jne 0x4052f5
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x40535e
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40535e
push esi
lea eax, [ebp - 0xc]
push eax
push str.SeShutdownPrivilege
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x40535d
mov eax, dword [ebp - 0xc]
push esi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push esi
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x40535d
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop esi
leave
ret 4

Function at 0x4058a3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x75fa98ed
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp + 0x10]
call fcn.00401ace
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
jmp 0x4058cd
xor dword [edx], eax
inc eax
ror eax, 1
add edx, 4
sub ecx, 4
jae 0x4058c5
add ecx, 4
je 0x4058df
xor byte [edx], al
inc eax
ror al, 1
inc edx
loop 0x4058d7
pop ebp
ret 0xc
Function at 0x406425
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 0xc]
push eax
movzx eax, word [ebp + 0x10]
push 0x4387fc
push eax
call fcn.00403066
mov esi, eax
test esi, esi
je 0x40646d
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x406466
push 0
lea eax, [ebp - 0xc]
push eax
push 2
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00402fcb
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop esi
leave
ret 0xc

Function at 0x407210
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
push edi
xor esi, esi
push esi
push esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 8], esi
call ebx
push esi
lea eax, [ebp - 4]
push eax
push 0xa
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [ebp + 8]
test eax, eax
je 0x4072a7
cmp dword [ebp - 4], 0xa
jne 0x4072a7
lea esi, [ebp - 0x14]
call fcn.004071de
test eax, eax
je 0x4072a5
mov ecx, dword [ebp - 0xe]
call fcn.004071b8
add eax, 0xa
push eax
mov dword [edi + 4], eax
call fcn.00401000
mov dword [edi], eax
test eax, eax
je 0x4072a5
xor esi, esi
push esi
push esi
push esi
push dword [ebp + 0xc]
call ebx
push esi
lea eax, [ebp - 4]
push eax
push dword [edi + 4]
push dword [edi]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4072a5
mov eax, dword [ebp - 4]
cmp eax, dword [edi + 4]
jne 0x4072a5
mov dword [ebp - 8], 1
jmp 0x4072b5
xor esi, esi
push edi
call fcn.004071a1
push esi
push esi
push esi
push dword [ebp + 0xc]
call ebx
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4076a4
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x81
push esi
call fcn.004024d6
xor ebx, ebx
push ebx
push dword [ebp + 8]
mov byte [esi + 0x80], 0xff
call dword [sym.imp.KERNEL32.dll__lopen]
mov edi, eax
mov dword [ebp + 0xc], edi
cmp edi, 0xffffffff
jne 0x4076e2
xor eax, eax
jmp 0x4077b5
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
add eax, 0xffffff80
push eax
push edi
call dword [sym.imp.KERNEL32.dll__llseek]
mov edi, 0x80
push edi
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll__lread]
push dword [ebp + 0xc]
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll__lclose]
cmp dword [ebp + 8], edi
jne 0x4076db
push 3
push 0x443068
lea eax, [ebp - 0x80]
push eax
call fcn.0040143c
test eax, eax
jne 0x4076db
push 0x1e
lea eax, [ebp - 0x7d]
push eax
push esi
call fcn.00402c5c
push esi
mov byte [esi + 0x1e], bl
call fcn.00402d69
push 0x1e
lea eax, [ebp - 0x5f]
push eax
lea edi, [esi + 0x1f]
push edi
call fcn.00402c5c
push edi
mov byte [edi + 0x1e], bl
call fcn.00402d69
push 0x1e
lea eax, [ebp - 0x41]
push eax
lea edi, [esi + 0x3e]
push edi
call fcn.00402c5c
push edi
mov byte [edi + 0x1e], bl
call fcn.00402d69
push 4
lea eax, [ebp - 0x23]
push eax
lea edi, [esi + 0x5d]
push edi
call fcn.00402c5c
push edi
mov byte [edi + 4], bl
call fcn.00402d69
push 0x1c
lea eax, [ebp - 0x1f]
push eax
lea edi, [esi + 0x62]
push edi
call fcn.00402c5c
push edi
mov byte [edi + 0x1c], bl
call fcn.00402d69
mov al, byte [ebp - 2]
mov byte [esi + 0x7f], al
mov al, byte [ebp - 1]
mov byte [esi + 0x80], al
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x409583
Capabilities:
Set socket configuration

Disassembly:
lea eax, [esp + 8]
push eax
push 0x8004667e
push dword [esp + 0xc]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
ret 8

Function at 0x4096fb
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x409719
mov eax, str.socket__
jmp 0x40976e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.004095c0
cmp eax, 0xffffffff
jne 0x409731
mov eax, str.bind__
jmp 0x40976e
push accept
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x409749
mov eax, str.listen__
jmp 0x40976e
cmp dword [ebp + 8], 0
je 0x409783
cmp dword [ebp + 0x14], 0
je 0x409783
push 8
push dword [ebp + 0x14]
push dword [ebp + 8]
push esi
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
cmp eax, 0xffffffff
jne 0x409783
mov eax, 0x438bb8
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.004096aa
push esi
call fcn.004096eb
or esi, 0xffffffff
mov eax, esi
pop esi
pop ebp
ret 0x10

Function at 0x40978a
Capabilities:
Resolve dns

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.WS2_32.dll_inet_addr]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4097b1
push dword [esp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4097b1
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov esi, dword [eax]
mov eax, esi
pop esi
ret 4

Function at 0x4097b7
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4097d8
mov eax, str.socket__
jmp 0x409835
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040978a
push eax
lea esi, [ebp - 0x10]
call fcn.0040959a
cmp dword [ebp - 0xc], 0xffffffff
pop esi
jne 0x4097f9
mov eax, dword [ebp + 0xc]
jmp 0x409831
push 0x10
lea eax, [ebp - 0x10]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x409812
mov eax, str.connect__
jmp 0x409835
cmp dword [ebp + 0x14], 0
je 0x40984a
push 0x21
push dword [ebp + 0x14]
push dword [ebp + 8]
push edi
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
cmp eax, 0xffffffff
jne 0x40984a
mov eax, 0x438bb8
test eax, eax
je 0x40984a
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.004096aa
push edi
call fcn.004096eb
or edi, 0xffffffff
mov eax, edi
pop edi
leave
ret 0x10
Function at 0x409851
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x409899
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040978a
push eax
lea esi, [ebp - 0x10]
call fcn.0040959a
cmp dword [ebp - 0xc], 0xffffffff
pop esi
je 0x409899
push 0x10
lea eax, [ebp - 0x10]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4098a2
push edi
call fcn.004096eb
or edi, 0xffffffff
mov eax, edi
pop edi
leave
ret 8

Function at 0x4098a9
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x4098e4
push esi
push dword [ebp + 0xc]
lea esi, [ebp - 0x10]
push dword [ebp + 8]
call fcn.0040959a
push 0x10
mov eax, esi
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
pop esi
cmp eax, 0xffffffff
jne 0x4098ed
push edi
call fcn.004096eb
or edi, 0xffffffff
mov eax, edi
pop edi
leave
ret 8

Function at 0x40998c
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x4099b3
xor eax, eax
jmp 0x4099c3
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4099c0
movzx ecx, word [ebp - 0x12]
mov dword [eax], ecx
mov eax, dword [ebp - 0x10]
leave
ret 8

Function at 0x4099c7
Capabilities:
Resolve dns

Disassembly:
push 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x4099d4
ret
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
ret

Function at 0x409b32
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
xor esi, esi
mov eax, dword [esp + 0xc]
push 0
push dword [esp + 0x14]
add eax, esi
push eax
push dword [esp + 0x14]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x409b5e
add esi, eax
sub dword [esp + 0x10], eax
jne 0x409b35
xor eax, eax
pop esi
ret 0xc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x409b5a
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x409b35

Function at 0x409b90
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
push esi
push edi
call ebx
mov edi, dword [sym.imp.WS2_32.dll_recv]
mov ebp, eax
jmp 0x409bc9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x409bb7
cmp eax, 0x2733
jne 0x409bdf
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
call ebx
sub eax, ebp
cmp eax, dword [esp + 0x20]
jae 0x409bdf
push 0
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call edi
mov esi, eax
test esi, esi
jle 0x409ba6
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 0x10
Function at 0x40a03f
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], esi
call fcn.00409ea8
cmp eax, 0xc8
jne 0x40a0cc
push ebx
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll__lopen]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40a0cb
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea eax, [ebp - 0x1c]
push eax
call fcn.00402335
mov esi, eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00402335
sub esi, eax
jns 0x40a0b4
neg esi
xor eax, eax
inc eax
cmp edi, dword [ebp + 8]
pop edi
jne 0x40a0c1
cmp esi, eax
jle 0x40a0c4
mov dword [ebp - 4], eax
push ebx
call dword [sym.imp.KERNEL32.dll__lclose]
pop ebx
mov eax, dword [ebp - 4]
pop esi
leave
ret 8

Function at 0x40b5dc
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x104
xor edi, edi
call fcn.00401000
mov esi, eax
mov dword [ebp - 4], esi
cmp esi, edi
je 0x40b6ad
cmp dword [ebp + 0x14], edi
jne 0x40b60b
push dword [ebp + 8]
push esi
call fcn.0041903b
jmp 0x40b632
cmp dword [ebp + 0x14], 1
jne 0x40b61f
push dword [ebp + 8]
push dword [ebp + 0x10]
push esi
call fcn.0040b4bf
jmp 0x40b632
push dword [ebp + 0x10]
push esi
call fcn.00418f6f
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll__lopen]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40b64a
push esi
push str._s_
jmp 0x40b68e
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jg 0x40b662
push dword [ebp - 4]
push 0x438e58
jmp 0x40b68e
lea eax, [esi + 1]
push eax
call fcn.00401000
mov edi, eax
test edi, edi
je 0x40b6a0
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll__lread]
cmp eax, esi
je 0x40b69c
push edi
call fcn.00401019
push dword [ebp - 4]
xor edi, edi
push 0x438e34
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x40b6a0
mov byte [esi + edi], 0
cmp ebx, 0xffffffff
je 0x40b6ac
push ebx
call dword [sym.imp.KERNEL32.dll__lclose]
pop ebx
push dword [ebp - 4]
call fcn.00401019
mov eax, edi
pop edi
pop esi
leave
ret 0x10
Function at 0x40bbed
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov edi, eax
push str.ARTIST_
push edi
call fcn.00418f6f
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.INFO.INI
push edi
call esi
push edi
push 0x104
push ebp
push 0x445f80
push dword [esp + 0x24]
push str.HomePage
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str._br__r_n
push edi
call ebx
cmp byte [ebp], 0
je 0x40bc53
push str._a_target_blank_href
push edi
call esi
push ebp
push edi
call esi
push 0x3e
push edi
call fcn.00401255
push str._img_src
push edi
call esi
push edi
call fcn.004019bf
mov edi, eax
push str.HOSTING_
push edi
call ebx
push str.ARTIST_
push edi
call esi
push 0x2f
push 0x5c
push edi
call fcn.0040199b
push 0
push dword [esp + 0x18]
push edi
call fcn.004019bf
push eax
call fcn.00401b04
cmp byte [ebp], 0
je 0x40bc9a
mov ebp, str.__a_
push ebp
push dword [esp + 0x18]
push str..jpg_title__s__border0__s_r_n
push edi
call fcn.004019bf
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret 8