joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424788
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x4247d0
call fcn.0041ff68
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4247d0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x424813
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x4247fc
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4247fc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x424810
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x425b68
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x425b8c
cmp dword [edi + 0x54], 0
jne 0x425b8c
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0041ff68
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00425b29
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x42c336
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x42c37d
call fcn.0041ff68
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x42c37d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x42c399
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0042beb0
mov esi, eax
test edi, edi
je 0x42c397
test ebx, ebx
je 0x42c397
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x42d826
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x42d851
call fcn.0041ff68
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 8], eax
test eax, eax
jne 0x42d874
push eax
push dword [esi + 4]
call fcn.0042d7ac
push esi
push eax
mov ecx, 0x48f67c
call fcn.0042d420
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x42e0bc
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x462913
call fcn.00441f36
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.0042e07c
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.004036f3
push dword [esi + 8]
mov edi, dword [edi + 8]
push 0
push 3
push dword [ebp + 0x18]
mov byte [ebp - 4], 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esi + 4], eax
test eax, eax
jne 0x42e122
push eax
push dword [esi + 8]
call fcn.0042d7ac
push dword [esi + 0xc]
mov ecx, 0x48f67c
push eax
call fcn.0042d420
mov eax, esi
call fcn.0044200e
ret 0x18
Function at 0x441f27
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x480150]
jne 0x441f31
repz ret
jmp fcn.0044c3ac
Function at 0x458236
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0044a384
and dword [ebp - 4], 0
cmp dword [0x49044c], 0
mov ebx, eax
jne 0x4582e7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x458398
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x46ea0c
push edi
call esi
test eax, eax
je 0x458398
push eax
call fcn.0044a312
mov dword [esp], 0x46e9fc
push edi
mov dword [0x49044c], eax
call esi
push eax
call fcn.0044a312
mov dword [esp], 0x46e9e8
push edi
mov dword [0x490450], eax
call esi
push eax
call fcn.0044a312
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x490454], eax
call esi
push eax
call fcn.0044a312
pop ecx
mov dword [0x49045c], eax
test eax, eax
je 0x4582e7
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0044a312
pop ecx
mov dword [0x490458], eax
mov eax, dword [0x490458]
cmp eax, ebx
je 0x45833f
cmp dword [0x49045c], ebx
je 0x45833f
push eax
call fcn.0044a38d
push dword [0x49045c]
mov esi, eax
call fcn.0044a38d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x45833f
test edi, edi
je 0x45833f
call esi
test eax, eax
je 0x458336
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x458336
test byte [ebp - 0xc], 1
jne 0x45833f
or dword [ebp + 0x10], 0x200000
jmp 0x458378
mov eax, dword [0x490450]
cmp eax, ebx
je 0x458378
push eax
call fcn.0044a38d
pop ecx
test eax, eax
je 0x458378
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x458378
mov eax, dword [0x490454]
cmp eax, ebx
je 0x458378
push eax
call fcn.0044a38d
pop ecx
test eax, eax
je 0x458378
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x49044c]
call fcn.0044a38d
pop ecx
test eax, eax
je 0x458398
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x45839a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ea40
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40eb15
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40eb30
push ebx
push 0x40eb40
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040513c
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403250
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404d24
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x40eac0
mov al, 0x6a
call fcn.0040e660
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040ea14
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x40eac9
call fcn.0040ea14
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40eb1c
lea eax, [ebp - 4]
call fcn.00404c88
ret

Function at 0x40ec30
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x40ecfb
jmp 0x40ecef
cmp dword [esi + 0x10], 0x1000
jne 0x40ecdb
test byte [esi + 0x15], 1
jne 0x40ecdb
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x40ec8c
cmp ebp, 2
je 0x40ec8c
cmp ebp, 0x10
je 0x40ec8c
cmp ebp, 0x20
jne 0x40eca8
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x40eca8
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x40ecb9
mov eax, dword [esi]
add eax, ebx
call fcn.0040ec28
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x40ecac
cmp byte [esp + 4], 0
je 0x40ecdb
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x40ecfb
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x40ec61
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x438c7f
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x438a14
add eax, 0x71d37abb
or ecx, ecx
dec ecx
call fcn.00438cc2
add eax, 1
add eax, eax
sub ecx, ecx
xor dword [ebx], esi
inc eax
add ebx, 1
dec eax
add ecx, 0x98634507
cmp ebx, edx
jne fcn.00438c7f
mov ecx, ecx
mov eax, 0x9510ed67
ret
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
jmp int.00401219

Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408f6c
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x287d4683
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e3d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0xfd27581
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40c02c], 0x8088405
inc edx
mov dword [0x40c02c], edx
mul edx
mov eax, edx
ret

Function at 0x4069dc
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x406a24
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00406978
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406a2b
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x406c2c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406cba
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x406c77
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, esi
call fcn.00403278
jmp 0x406ca4
call sub.kernel32.dll_GetCommandLineA_1
cmp byte [eax], 0
jne 0x406c8b
lea eax, [ebp - 4]
call fcn.00403198
jmp 0x406c9a
lea edx, [ebp - 4]
call fcn.00406af0
test ebx, ebx
je 0x406c9a
dec ebx
jmp 0x406c7c
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040322c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406cc1
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x406cc8
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00404de0
add esp, 0x104
pop ebx
ret
Function at 0x4077b0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov al, byte [esi + 0x698]
test al, al
push edi
mov edi, dword [esp + 0xc]
je 0x4077ce
cmp dword [esi + 0x6b8], edi
je 0x407883
test al, al
je 0x407806
mov al, byte [esi + 0x6bc]
test al, al
je 0x4077e3
mov byte [esi + 0x6bd], 1
mov eax, dword [esi + 0x6c0]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x6c0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esi + 0x698], 0
mov ecx, dword [esi]
mov edx, dword [ecx]
push edi
call dword [edx + 0x1c]
test eax, eax
je 0x407883
mov ecx, dword [esi]
mov eax, dword [ecx]
push edi
call dword [eax + 0x1c]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x210]
test eax, eax
je 0x407883
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push 0
push 0
lea eax, [esi + 0x6ac]
push eax
push 0x401b10
push 0
push 0
mov dword [eax], esi
mov dword [esi + 0x6b0], ecx
mov dword [esi + 0x6b4], edx
mov dword [esi + 0x6b8], edi
mov byte [esi + 0x6bd], 0
call fcn.004a9473
add esp, 0x18
test eax, eax
mov dword [esi + 0x6c0], eax
je 0x407883
mov ecx, esi
call fcn.00408ca0
mov ecx, esi
call fcn.00408c70
mov byte [esi + 0x698], 1
pop edi
pop esi
ret 4

Function at 0x409ea0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push esi
lea eax, [esp + 4]
push eax
mov esi, ecx
mov dword [esp + 8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x14], 2
jne 0x409ed5
mov eax, dword [esp + 8]
cmp eax, 6
ja 0x409ece
jne 0x409ed5
mov eax, 1
jmp 0x409ed7
xor eax, eax
push 0
lea ecx, [esi + 0x65c]
push ecx
lea edx, [esi + 0x66c]
push edx
mov byte [esi + 0x944], al
call sub.gdiplus.dll_GdiplusStartup
mov ecx, esi
call fcn.0040a170
mov ecx, esi
call fcn.0040ae90
mov ecx, esi
call fcn.0040c320
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x9c]
push eax
push ecx
mov ecx, esi
call fcn.00410bf0
pop esi
add esp, 0x94
ret 8
Function at 0x40a200
Capabilities:
Set console window title

Disassembly:
sub esp, 0x20
push ebp
mov ebp, dword [esp + 0x28]
test ebp, ebp
push esi
mov esi, ecx
jg 0x40a214
mov ebp, 0x78
mov eax, dword [esp + 0x30]
test eax, eax
mov dword [esp + 0x2c], eax
jg 0x40a228
mov dword [esp + 0x2c], 0x1e
mov eax, dword [esi + 0xc]
test eax, eax
lea ecx, [eax + 1]
mov dword [esi + 0xc], ecx
jne 0x40a38d
mov al, byte [esi + 0x10]
test al, al
je 0x40a254
mov edx, dword [esp + 0x34]
push edx
mov ecx, esi
call fcn.0040a750
pop esi
pop ebp
add esp, 0x20
ret 0xc
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_AllocConsole]
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
push 1
push 0x40a1f0
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov ebx, dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 0
push 0xf060
push 0
call ebx
push eax
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call dword [sym.imp.USER32.dll_RemoveMenu]
call ebx
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff6
call edi
push 0xfffffffffffffff5
mov dword [esi + 4], eax
call edi
lea ecx, [esp + 0x18]
push ecx
push eax
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movsx edx, word [esp + 0x22]
movsx eax, word [esp + 0x26]
sub eax, edx
inc eax
cmp eax, ebp
mov edx, eax
jl 0x40a2d1
mov edx, ebp
mov eax, dword [esp + 0x24]
movsx edi, word [esp + 0x28]
movsx ecx, ax
sub edi, ecx
lea ecx, [edi + 1]
mov edi, dword [esp + 0x34]
cmp ecx, edi
jl 0x40a2ec
mov ecx, edi
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
dec edx
mov word [esp + 0x14], dx
lea edx, [ecx + eax - 1]
mov ecx, dword [esi + 8]
mov word [esp + 0x12], ax
lea eax, [esp + 0x10]
push eax
push 1
push ecx
mov word [esp + 0x1c], 0
mov word [esp + 0x22], dx
call edi
mov eax, dword [esi + 8]
mov word [esp + 0x3c], bp
mov word [esp + 0x3e], 0x2329
mov edx, dword [esp + 0x3c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
mov ecx, dword [esp + 0x34]
xor eax, eax
lea edx, [esp + 0x10]
push edx
mov word [esp + 0x14], ax
mov word [esp + 0x16], ax
mov eax, dword [esi + 8]
dec ebp
push 1
dec ecx
push eax
mov word [esp + 0x20], bp
mov word [esp + 0x22], cx
call edi
test eax, eax
jne 0x40a37f
push 5
push eax
push eax
push eax
push eax
push eax
call ebx
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [esi + 8]
lea ecx, [esp + 0x10]
push ecx
push 1
push edx
call edi
mov eax, dword [esi + 8]
push 0xf
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x20
ret 0xc
Function at 0x40a4c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x244
push esi
push edi
mov edi, ecx
mov al, byte [edi + 0x10]
test al, al
je 0x40a53e
mov eax, dword [edi + 0x18]
cmp eax, 0xffffffff
je 0x40a52d
mov ecx, dword [esp + 0x254]
push 0
push ecx
lea edx, [esp + 0x14]
push edx
push eax
call sub.WSOCK32.dll_recv
mov esi, eax
test esi, esi
jle 0x40a52b
lea eax, [esp + 0xc]
push eax
mov byte [esp + esi + 0x10], 0
call fcn.0049cbb0
add esp, 4
test esi, esi
jle 0x40a51e
mov ecx, dword [esp + 0x250]
sub eax, ecx
mov edi, esi
mov dl, byte [eax + ecx]
mov byte [ecx], dl
inc ecx
dec edi
jne 0x40a515
pop edi
mov eax, esi
pop esi
add esp, 0x244
ret 8
jne 0x40a531
mov byte [edi + 0x11], 1
pop edi
xor eax, eax
pop esi
add esp, 0x244
ret 8
push ebx
mov ebx, dword [esp + 0x258]
xor esi, esi
cmp ebx, 0x10
mov eax, 0x10
ja 0x40a554
mov eax, ebx
lea ecx, [esp + 0xc]
push ecx
push eax
mov eax, dword [edi + 4]
lea edx, [esp + 0x118]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
test eax, eax
je 0x40a608
mov eax, dword [esp + 0xc]
test eax, eax
jbe 0x40a608
push ebp
mov ebp, dword [esp + 0x258]
mov ecx, 1
lea edx, [esp + 0x122]
mov dword [esp + 0x10], eax
jmp 0x40a5a1
mov ebx, dword [esp + 0x25c]
test byte [edx - 0xe], 1
je case.0x40a5d8.35
mov eax, dword [edx - 0xa]
test eax, eax
je case.0x40a5d8.35
mov al, byte [edx]
test al, al
je 0x40a5ba
cmp esi, ebx
jae case.0x40a5d8.35
jmp 0x40a5f4
xor eax, eax
mov ax, word [edx - 4]
mov edi, eax
and edi, 0xffff
add edi, 0xffffffdf
cmp edi, 0x55
ja case.0x40a5d8.35
xor ebx, ebx
mov bl, byte [edi + 0x40a624]
jmp dword [ebx*4 + 0x40a618]
test al, 3
je case.0x40a5d8.35
cmp ecx, dword [esp + 0x25c]
jae case.0x40a5d8.35
mov byte [esi + ebp], 0x82
inc esi
inc ecx
add al, 0x70
mov byte [esi + ebp], al
inc esi
inc ecx
mov eax, dword [esp + 0x10]
add edx, 0x14
dec eax
mov dword [esp + 0x10], eax
jne 0x40a59a
pop ebp
pop ebx
pop edi
mov eax, esi
pop esi
add esp, 0x244
ret 8

Function at 0x40a680
Capabilities:
Log keystrokes via polling
Receive data
Receive data on socket

Disassembly:
sub esp, 0x100
push esi
mov esi, ecx
mov al, byte [esi + 0x10]
test al, al
push edi
je 0x40a6eb
mov eax, dword [esi + 0x18]
cmp eax, 0xffffffff
je 0x40a6ce
push 0
push pe_nt_image_headers32
lea ecx, [esp + 0x10]
push ecx
push eax
call sub.WSOCK32.dll_recv
test eax, eax
jle 0x40a6cc
xor ecx, ecx
test eax, eax
jle 0x40a6cc
mov edx, dword [esp + 0x10c]
movsx edi, byte [esp + ecx + 8]
cmp edi, edx
je 0x40a6de
inc ecx
cmp ecx, eax
jl 0x40a6bc
test eax, eax
jne 0x40a727
mov al, 1
pop edi
mov byte [esi + 0x11], al
pop esi
add esp, 0x100
ret 4
pop edi
mov al, 1
pop esi
add esp, 0x100
ret 4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x40a727
push 0
push str.ConsoleWindowClass
call dword [sym.imp.USER32.dll_FindWindowA]
cmp esi, eax
jne 0x40a727
mov edx, dword [esp + 0x10c]
push edx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
pop edi
pop esi
shr eax, 0xf
and eax, 1
add esp, 0x100
ret 4
pop edi
xor al, al
pop esi
add esp, 0x100
ret 4
Function at 0x40ae00
Capabilities:
Manipulate console buffer

Disassembly:
sub esp, 0x20
push esi
push edi
mov esi, ecx
mov ecx, dword [esi + 8]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movsx ecx, word [esp + 0x10]
xor eax, eax
mov word [esp + 8], ax
mov word [esp + 0xa], ax
movsx eax, word [esp + 0x12]
mov edi, dword [esp + 8]
imul eax, ecx
lea edx, [esp + 0xc]
push edx
mov edx, dword [esi + 8]
push edi
push eax
push 7
push edx
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
movsx ecx, word [esp + 0x12]
movsx edx, word [esp + 0x10]
imul ecx, edx
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 8]
push edi
push ecx
push 0x20
push eax
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
mov edx, dword [esi + 8]
mov word [esp + 0xa], 1
mov ecx, dword [esp + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
pop edi
pop esi
add esp, 0x20
ret
Function at 0x410410
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x934]
mov eax, dword [ecx]
push edi
xor edi, edi
call dword [eax + 0x14]
mov ecx, dword [esi + 0x788]
cmp dword [0x4e9138], ecx
jne 0x41043e
fld qword [0x4e9140]
fcomp st(1)
fnstsw ax
test ah, 0x40
jne 0x410458
fst qword [0x4e9140]
mov dword [0x4e9138], ecx
fild dword [esi + 0x788]
fdivr st(1)
fstp qword [0x512fc0]
fstp st(0)
fld qword [esi + 0x790]
fcomp qword [0x4be970]
fnstsw ax
test ah, 0x41
jne 0x410586
fld qword [esi + 0x790]
inc edi
fsub qword [0x512fc0]
fstp qword [esi + 0x790]
fld qword [0x512fc0]
fadd qword [esi + 0x798]
fstp qword [esi + 0x798]
fld qword [esi + 0x790]
fcomp qword [0x4be970]
fnstsw ax
test ah, 0x41
je 0x410471
test edi, edi
je 0x410586
mov eax, dword [esi + 0x7e4]
test eax, eax
je 0x41050d
mov ecx, dword [esi + 0x800]
test ecx, ecx
jne 0x4104ce
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x800]
cmp eax, 2
mov dword [esi + 0x7e4], 0
jne 0x4104fc
mov ecx, esi
call fcn.00410230
push 0xffffffffffffffff
mov ecx, esi
call fcn.0040ffd0
test al, al
jne 0x41050d
pop edi
xor eax, eax
pop esi
ret
cmp eax, 3
jne 0x41050d
mov ecx, esi
call fcn.00410230
pop edi
xor eax, eax
pop esi
ret
mov ecx, dword [esi + 0x534]
mov edx, dword [esi + 0x530]
mov eax, dword [esi + 0x52c]
push 0xcc0020
push 0
push 0
push ecx
mov ecx, dword [esi + 0x614]
push edx
push eax
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x7fc]
push 0
push 0
lea edx, [esi + 0x7e8]
push edx
push 0x410360
add eax, edi
push 0
push 0
mov dword [esi + 0x7fc], eax
mov dword [esi + 0x800], 0
call fcn.004a9473
add esp, 0x18
test eax, eax
mov dword [esi + 0x7e4], eax
jne 0x410586
mov ecx, esi
call fcn.00410230
pop edi
xor eax, eax
pop esi
ret
mov eax, edi
pop edi
pop esi
ret