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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x4838b4], 0
je 0x4511e3
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x482aac]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x4511e3
mov eax, dword [0x4838b8]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x4838b4]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4511b2
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x4838b4]
call fcn.004089e4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4511aa
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x4511aa
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x4511aa
mov eax, dword [ebp - 0x14]
call fcn.00459bb0
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x4511aa
push ebp
call fcn.00451050
pop ecx
test al, al
jne 0x4511aa
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x451166
mov eax, dword [ebp - 0x14]
call fcn.00458744
dec eax
jle 0x4511aa
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.00425c24
cmp byte [ebp - 1], 0
je 0x4511aa
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.USER32.DLL_PtInRect
test eax, eax
je 0x4511aa
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4838b8]
call fcn.00450818
inc edi
dec ebx
jne 0x4510f9
mov eax, dword [0x4838b8]
cmp dword [eax + 8], 0
jle 0x4511ca
mov eax, dword [0x4838b8]
call fcn.004508a8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4511e3
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00450eb8
pop ecx
test al, al
jne 0x4511e3
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4547a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x4547ec
mov eax, esi
call fcn.00441180
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4547ec
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x4547ec
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x45492b
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x45482c
cmp eax, 0x108
ja 0x45482c
mov eax, esi
call fcn.00441180
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x454922
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xec]
test al, al
jne 0x45492b
jmp 0x454922
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x45490b
cmp eax, 0x20a
ja 0x45490b
test byte [esi + 0x50], 0x80
jne 0x45485e
sub eax, 0x203
je 0x45485b
sub eax, 3
je 0x45485b
sub eax, 3
jne 0x45485e
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x454872
dec eax
je 0x454887
dec eax
je 0x4548a4
dec eax
je 0x454887
jmp 0x4548ab
mov ecx, ebx
mov eax, dword [0x482aac]
mov eax, dword [eax]
mov edx, esi
call fcn.0044ab8c
jmp 0x454922
cmp byte [esi + 0x5d], 1
jne 0x45489d
mov eax, esi
mov si, 0xffed
call fcn.00425c24
jmp 0x45492b
or word [esi + 0x54], 1
jmp 0x454922
and word [esi + 0x54], 0xfffe
jmp 0x454922
mov eax, dword [0x483870]
cmp byte [eax + 0x20], 0
je 0x454922
mov eax, dword [0x483870]
cmp dword [eax + 0x1c], 0
je 0x454922
mov eax, dword [ebx]
mov edx, dword [0x483870]
cmp eax, dword [edx + 0x1c]
jne 0x454922
lea eax, [ebp - 0x114]
push eax
call sub.USER32.DLL_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.004410c4
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.00425c24
jmp 0x45492b
cmp eax, 0xb00b
jne 0x454922
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.004530cc
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x457de0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x457dfc
cmp dword [esi + 4], 0
je 0x457e29
test byte [ebx + 0x55], 1
jne 0x457e1b
mov eax, ebx
call fcn.00456a38
test eax, eax
jne 0x457e1b
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x457f39
mov edx, esi
mov eax, ebx
call fcn.00457900
jmp 0x457f39
push 0
call sub.USER32.DLL_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.GDI32.DLL_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.USER32.DLL_ReleaseDC
push 0
call sub.GDI32.DLL_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x457f32
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00459bb0
push eax
call sub.USER32.DLL_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.004546d4
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00457de0
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.GDI32.DLL_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00459bb0
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457f39
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.GDI32.DLL_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45e3d4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x482a98]
cmp byte [eax + 0xc], 0
je 0x45e541
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45e53a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4838c4], 0
jne 0x45e428
push 0x45e548
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x45e550
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4838c4], eax
cmp dword [0x47eb14], 0
jne 0x45e523
push 0x45e560
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x47eb14], eax
cmp dword [0x47eb14], 0
je 0x45e523
push 0x45e56c
mov eax, dword [0x47eb14]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4838c8], eax
push 0x45e57c
mov eax, dword [0x47eb14]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4838cc], eax
push 0x45e590
mov eax, dword [0x47eb14]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4838d0], eax
push 0x45e5a8
mov eax, dword [0x47eb14]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4838d4], eax
push 0x45e5c0
mov eax, dword [0x47eb14]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4838d8], eax
push 0x45e5d4
mov eax, dword [0x47eb14]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4838dc], eax
push 0x45e5ec
mov eax, dword [0x47eb14]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4838e0], eax
push 0x45e604
mov eax, dword [0x47eb14]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4838e4], eax
push 0x45e620
mov eax, dword [0x47eb14]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4838e8], eax
push 0x45e62c
mov eax, dword [0x47eb14]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4838ec], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45e541
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x4636d4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x463736
call fcn.00463684
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.0045f9c4
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.0045f9c4
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4637b4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4806fc], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x46388e
cmp dword [0x4806f8], 0
jne 0x46388e
cmp dword [0x4808dc], 0
je 0x463848
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00463584
add esp, 8
mov ebx, eax
test eax, eax
jne 0x46382e
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00463584
add esp, 8
mov ebx, eax
test eax, eax
jne 0x46382e
lea ebx, [ebp - 0x84]
jmp 0x46382f
inc ebx
call fcn.00463770
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4638c9
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x480700
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0045f9c4
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x480703
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4638c9
cmp dword [0x4806f8], 0
je 0x4638a8
cmp dword [0x4806f8], 0xffffffff
je 0x4638c9
push esi
call dword [0x4806f8]
pop ecx
mov eax, dword [0x4806fc]
test eax, eax
je 0x4638c9
cmp dword [0x4806fc], 0xffffffff
je 0x4638c9
cmp byte [eax], 0
je 0x4638c9
push esi
push eax
call fcn.004636d4
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x464060
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x484150], 0
jne 0x4640e1
cmp dword [0x484170], 0
jne 0x464090
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x484170], eax
test eax, eax
jne 0x464090
push str.GetEnvironmentStrings_failed
call fcn.004638e0
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x484170]
jmp 0x4640a4
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.0045f9c4
pop ecx
mov edi, eax
test eax, eax
jne 0x46409c
lea edi, [ebp + 1]
push edi
call fcn.0045f2c8
pop ecx
mov ebx, eax
mov dword [0x484154], ebx
test ebx, ebx
jne 0x4640ce
xor eax, eax
jmp 0x4641a4
push edi
mov edx, dword [0x484170]
push edx
push ebx
call fcn.0045f874
add esp, 0xc
jmp 0x464101
xor esi, esi
mov ebx, dword [0x484150]
jmp 0x4640fb
push eax
call fcn.0045f9c4
pop ecx
test eax, eax
jne 0x4640f7
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4640eb
lea ebx, [esi + 4]
push 4
mov dword [0x484158], ebx
inc ebx
push ebx
call fcn.0045eda0
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x464124
xor eax, eax
jmp 0x4641a4
cmp dword [0x484150], 0
jne 0x464155
xor esi, esi
mov ebx, dword [0x484154]
mov eax, dword [esp]
mov ebp, eax
jmp 0x464146
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.0045f9c4
pop ecx
mov edi, eax
test eax, eax
jne 0x46413c
jmp 0x464186
xor esi, esi
mov ebx, dword [0x484150]
mov eax, dword [esp]
mov edi, eax
jmp 0x464180
push eax
call fcn.0045f9c4
pop ecx
test eax, eax
je 0x464175
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x464179
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x464164
mov eax, dword [0x484150]
test eax, eax
je 0x464196
push eax
call fcn.0045f2d8
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x484150], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x46a634
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x46a662
mov eax, ebx
call fcn.0046b0ec
cmp dword [ebx + 0x3c], 0
je 0x46a65b
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x46a6d3
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x46a6c5
cmp dword [ebx + 8], 0
je 0x46a684
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x46a696
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x46a6c5
cmp dword [ebx + 8], 0
je 0x46a677
cmp eax, 3
je 0x46a6a9
dec eax
jne 0x46a677
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 0x46a677
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x46a677
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x46a6f1
cmp dword [ebx + 0x10], 0xcc
je 0x46a6f1
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0046a6fc
pop ebx
ret
Function at 0x401360
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Send data
Send data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov eax, 0x149c
call fcn.00401edc
mov ebx, dword [ebp + 0xc]
lea esi, [ebp - 0x147d]
mov ecx, 0x1400
xor eax, eax
mov edi, esi
rep stosb byte es:[edi], al
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x64
lea edx, [ebp - 0x7d]
mov dword [esp + 4], edx
mov dword [esp], ebx
mov dword [ebp - 0x1494], edx
call sub.WS2_32.DLL_recv
sub esp, 0x10
mov edi, eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x404024
mov dword [esp], ebx
call sub.WS2_32.DLL_send
sub esp, 0x10
mov byte [ebp + edi - 0x7d], 0
mov edx, dword [ebp - 0x1494]
mov dword [esp], edx
call sub.msvcrt.dll_atoi
mov dword [ebp - 0x1490], eax
mov dword [esp + 4], eax
mov dword [esp], str.FLen:_d_n
call sub.msvcrt.dll_printf
mov eax, 1
mov dword [ebp - 0x148c], ebx
mov ebx, eax
jmp 0x401482
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
lea eax, [ebp - 0x19]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x148c]
mov dword [esp], eax
call sub.WS2_32.DLL_send
sub esp, 0x10
add ebx, edi
mov dword [esp + 0xc], edi
mov eax, dword [ebp - 0x1490]
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], str._____File_Recv_data:__d_d_____d_____r
call sub.msvcrt.dll_printf
cmp edi, 0xffffffff
jne 0x401467
cmp dword [ebp - 0x1490], ebx
je 0x4014c8
jl 0x4014fc
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], 1
mov dword [esp], esi
call sub.msvcrt.dll_fwrite
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x1400
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x148c]
mov dword [esp], eax
call sub.WS2_32.DLL_recv
sub esp, 0x10
mov edi, eax
test eax, eax
jne 0x40140c
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov eax, dword [ebp - 0x1490]
mov dword [esp + 8], eax
mov dword [esp + 4], eax
mov dword [esp], str._n__d___d_n
call sub.msvcrt.dll_printf
mov dword [esp], 0
call sub.USER32.dll_MessageBeep
push edx
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov dword [esp], str.ERR_l
call sub.msvcrt.dll_puts
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov dword [esp], 0xffffffff
call sub.USER32.dll_MessageBeep
push eax
call sub.msvcrt.dll__getch
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
Function at 0x401530
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x98
call fcn.00401cd0
mov dword [esp], str.Welcome...
call sub.msvcrt.dll_puts
mov dword [esp], str.IP:
call sub.msvcrt.dll_printf
lea esi, [ebp - 0x90]
mov dword [esp], esi
call sub.msvcrt.dll_gets
lea edi, [ebp - 0x19]
mov dword [esp], edi
call fcn.00401318
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 2
call sub.WS2_32.DLL_socket
sub esp, 0xc
mov ebx, eax
cmp eax, 0xffffffff
je 0x401630
mov word [ebp - 0x2c], 2
mov dword [esp], 0x3039
call sub.WS2_32.DLL_htons
push edx
mov word [ebp - 0x2a], ax
mov dword [esp], esi
call sub.WS2_32.DLL_inet_addr
push esi
mov dword [ebp - 0x28], eax
mov dword [esp + 8], 0x10
lea eax, [ebp - 0x2c]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.WS2_32.DLL_connect
sub esp, 0xc
inc eax
je 0x40165c
mov dword [esp + 4], 0x404098
mov dword [esp], str.recv.a
call sub.msvcrt.dll_fopen
test eax, eax
je 0x401620
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.00401360
mov dword [esp], str.OK...
call sub.msvcrt.dll_puts
call sub.msvcrt.dll__getch
xor eax, eax
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
leave
lea esp, [ecx - 4]
ret
mov dword [esp], str.ERR_SOCKET
call sub.msvcrt.dll_puts
mov dword [esp], 0xffffffff
call sub.USER32.dll_MessageBeep
push ecx
call sub.msvcrt.dll__getch
xor eax, eax
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
leave
lea esp, [ecx - 4]
ret
mov dword [esp], str.ERR_CONNECT
jmp 0x401637

Function at 0x4019c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x4019e6
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x401a7a
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x401a35
cmp eax, 0x40
je 0x401a35
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x4019d9
cmp eax, 0x40
je 0x4019d9
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x4019d9
mov dword [esp + 8], 0x34
mov dword [esp + 4], str..._.._runtime_pseudo_reloc.c
mov dword [esp], str.VirtualQuery__addr__b__sizeof_b__
call sub.msvcrt.dll__assert
lea esi, [esi]
lea edi, [edi]
Function at 0x401398
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x4013aa
mov eax, dword [0x46b08b]
shl eax, 2
mov dword [0x46b08f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.00460930
pop edx
call fcn.00460894
call fcn.00460970
push 0
call fcn.00461d7c
pop ecx
push 0x46b034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x46b093], eax
push 0
jmp fcn.00465bc0

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x404ce0
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x404cf8
mov dl, 4
mov eax, dword [ebp - 4]
call fcn.004062b0
mov eax, dword [ebp - 4]
call fcn.00405b40
xor edx, edx
push ebp
push 0x404cc3
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10090], 0
jne 0x404c62
test si, si
jne 0x404c14
mov eax, dword [ebp - 8]
call fcn.0041aed0
mov esi, eax
cmp esi, 0xffff
jbe 0x404c14
call fcn.0042b55c
movzx ebx, si
push 0
push ebx
movzx eax, si
sub eax, ebx
mov edx, dword [ebp - 8]
lea eax, [edx + eax]
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10290]
push eax
call sub.WSOCK32.DLL_send
test eax, eax
je 0x404c62
cmp eax, 0xffffffff
jle 0x404c43
sub ebx, eax
jmp 0x404c52
lea ecx, [ebp - 0xc]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call fcn.004061e4
test ebx, ebx
je 0x404c62
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10090], 0
je 0x404c17
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10090], 0
je 0x404cad
mov eax, dword [ebp - 4]
mov byte [eax + 0x10090], 0
mov ecx, 0x404d10
mov dl, 1
mov eax, dword [0x404340]
call fcn.0041e178
call fcn.0042bdb0
mov eax, dword [ebp - 4]
cmp word [eax + 0x1028a], 0
je 0x404cad
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x1028c]
call dword [ebx + 0x10288]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404cca
mov eax, dword [ebp - 4]
call fcn.00405b98
ret
Function at 0x405210
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.0042c5f0
xor eax, eax
push ebp
push 0x4053d8
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x4053f0
mov dl, 8
mov eax, dword [ebp - 4]
call fcn.004062b0
push 0
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x40c43c]
call fcn.00410c1c
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x405368
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10090], 0
jne 0x405323
mov eax, dword [ebp - 4]
lea edx, [eax + 0x30]
mov ecx, 0x10000
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 8]
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0x10]
push 0
push ebx
mov eax, dword [ebp - 0x10]
sub eax, ebx
cmp eax, 0x10000
jbe 0x4052a7
call fcn.0042b55c
mov edx, dword [ebp - 4]
lea eax, [edx + eax + 0x30]
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10290]
push eax
call sub.WSOCK32.DLL_send
test eax, eax
je 0x405323
cmp eax, 0xffffffff
jle 0x4052f4
sub ebx, eax
mov edx, dword [ebp - 4]
add dword [edx + 0x1008c], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0x100ca], 0
je 0x405303
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0x100cc]
call dword [esi + 0x100c8]
jmp 0x405303
lea ecx, [ebp - 0x14]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call fcn.004061e4
mov eax, dword [0x470d94]
mov eax, dword [eax]
call fcn.0044da80
test ebx, ebx
je 0x405323
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10090], 0
je 0x405293
mov eax, dword [ebp - 0xc]
call fcn.0041070c
push edx
push eax
mov eax, dword [ebp - 0xc]
call fcn.00410740
cmp edx, dword [esp + 4]
jne 0x40533e
cmp eax, dword [esp]
pop edx
pop eax
je 0x405352
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10090], 0
je 0x40526a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40536f
mov eax, dword [ebp - 0xc]
call fcn.0042b61c
ret