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

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44900c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x448fed
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x448ffc
or bl, 4
test esi, 0x20000000
je 0x449007
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44f6d0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44f6e2
add esp, 0xfffffff0
call fcn.004037a8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041ad1c
mov eax, dword [0x45c4dc]
mov dword [eax + 4], ebx
mov dword [eax], 0x44fa74
mov eax, dword [0x45c4e8]
mov dword [eax + 4], ebx
mov dword [eax], 0x44fa80
mov eax, ebx
call fcn.0044fa8c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411e30]
call fcn.00403458
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411e30]
call fcn.00403458
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411e30]
call fcn.00403458
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411e30]
call fcn.00403458
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411e30]
call fcn.00403458
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, 0x44bea4
push eax
push 0
push 0
mov eax, dword [0x45c6a8]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41c748]
call fcn.0041dbb0
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41c748]
call fcn.0041dbb0
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41c748]
call fcn.0041dbb0
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044fedc
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44fda4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44fda4
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44fda4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44f81f
call fcn.00403800
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44fb88
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 0x44fd33
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44fd14
mov dl, 1
mov eax, dword [0x412494]
call fcn.00403458
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404280
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44fd03
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.0043dac8
test al, al
je 0x44fcf6
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, 0x44fd44
lea eax, [ebp - 0x254]
call fcn.0040916c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44fcf6
xor eax, eax
push ebp
push 0x44fcef
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 0x44fd7c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44fcd8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004044f0
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 0x44fcd8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004044f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44fcf6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44fbf9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00416868
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 0x44fd3a
lea eax, [ebp - 0x260]
call fcn.00404280
ret

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

Disassembly:
push ecx
mov eax, dword [0x45dbb4]
cmp byte [eax + 0xa5], 0
jne 0x4506ed
cmp dword [0x45dbcc], 0
jne 0x4506ae
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x450638
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45dbcc], eax
cmp dword [0x45dbc8], 0
jne 0x4506c9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x45dbc8], eax
cmp dword [0x45dbd0], 0
jne 0x4506ed
push esp
push 0
push 0
push 0x4505dc
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x45dbd0], eax
pop edx
ret
Function at 0x450d80
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45dbb4]
cmp dword [eax + 0x30], 0
je 0x450e2a
cmp dword [ebx + 0x94], 0
jne 0x450e24
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x450d10
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x450e24
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 0x450dea
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x450e24
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.004144e8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x450df9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x451988
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 0x4519bd
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.00404370
jmp 0x4519ca
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004042d4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x452adc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x452b1d
mov eax, esi
call fcn.004390f4
test al, al
je 0x452b1d
mov eax, dword [ebx + 0x84]
call fcn.00438df0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x452b1d
push 0
mov eax, dword [ebx + 0x84]
call fcn.00438df0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x405d34
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405d9a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004044e4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402fa8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405d84
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405da1
lea eax, [ebp - 0x10]
call fcn.00404274
ret

Function at 0x40789c
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00404734
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x4078be
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40a0e0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a119
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404364
jmp 0x40a122
mov eax, ebx
mov edx, esi
call fcn.004042c8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a12c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a14d
mov al, byte [esp]
jmp 0x40a14f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40a7e4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40a64c
mov eax, dword [0x41b5e0]
cmp byte [eax], 0
je 0x40a860
mov eax, dword [0x41b4e4]
call fcn.00402e98
call fcn.00402b08
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00407a20
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40a8a8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40a896
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x41b4c0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x41c660]
call fcn.004051dc
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40b5a8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40b60c
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004044e4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407594
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b613
lea eax, [ebp - 0xc]
call fcn.00404274
ret

Function at 0x417520
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push esi
push edi
push eax
push edx
mov eax, dword [eax]
mov edx, dword [edx]
mov ebx, 0
mov esi, 0
mov edi, dword [0x41d908]
shl edi, 2
xor edx, dword [esi + 0x41c880]
ror edx, 0x10
mov bl, dh
mov ecx, dword [ebx*4 + 0x41c908]
mov bl, dl
add ecx, dword [ebx*4 + 0x41cd08]
rol edx, 0x10
mov bl, dh
xor ecx, dword [ebx*4 + 0x41d108]
mov bl, dl
add ecx, dword [ebx*4 + 0x41d508]
xor eax, ecx
xchg edx, eax
add esi, 4
cmp esi, edi
jne 0x41753d
xchg edx, eax
xor eax, dword [esi + 0x41c880]
xor edx, dword [esi + 0x41c884]
mov ebx, edx
pop edx
mov dword [edx], ebx
mov ebx, eax
pop eax
mov dword [eax], ebx
pop edi
pop esi
pop ecx
pop ebx
ret

Function at 0x417598
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push esi
push eax
push edx
mov eax, dword [eax]
mov edx, dword [edx]
mov ebx, 0
mov esi, dword [0x41d908]
inc esi
shl esi, 2
xor edx, dword [esi + 0x41c880]
ror edx, 0x10
mov bl, dh
mov ecx, dword [ebx*4 + 0x41c908]
mov bl, dl
add ecx, dword [ebx*4 + 0x41cd08]
rol edx, 0x10
mov bl, dh
xor ecx, dword [ebx*4 + 0x41d108]
mov bl, dl
add ecx, dword [ebx*4 + 0x41d508]
xor eax, ecx
xchg edx, eax
sub esi, 4
cmp esi, 4
jne 0x4175b0
xchg edx, eax
xor eax, dword [0x41c884]
xor edx, dword [0x41c880]
mov ebx, edx
pop edx
mov dword [edx], ebx
mov ebx, eax
pop eax
mov dword [eax], ebx
pop esi
pop ecx
pop ebx
ret
Function at 0x417890
Capabilities:
Encrypt data using blowfish

Disassembly:
push esi
push edi
mov dword [0x41d908], 0x10
mov esi, 0x41a3cc
mov edi, 0x41c880
mov ecx, 0x422
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
ret

Function at 0x418a38
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x418a7e
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0041899c
mov eax, dword [ebp - 4]
call fcn.00404734
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 0x418a85
lea eax, [ebp - 4]
call fcn.00404274
ret

Function at 0x418af0
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.00407b34
add esp, 0x104
pop ebx
ret
Function at 0x433000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00431219
Function at 0x401c01
Capabilities:
Manipulate boot configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call fcn.00401dd3
call fcn.00401e3a
push 0x80000301
push 0
push 1
push closesocket
push 0
push 1
push getpeername
push 0
push str.cmd__c_attrib_c:_boot.ini__h__s__r__a
push 3
mov ebx, 0x402270
call fcn.0040212c
add esp, 0x28
push getpeername
push 0
push 0x468aef
push getpeername
push 0
push str.C:okldr
push getpeername
push 0
push str.operating_systems
push getpeername
push 0
push str.c:_boot.ini
push 4
mov ebx, 0x4032b0
call fcn.0040212c
add esp, 0x34
push getpeername
push 0
push str.C:okldr
push getpeername
push 0
push str.default
push getpeername
push 0
push str.boot_loader
push getpeername
push 0
push str.c:_boot.ini
push 4
mov ebx, 0x4032b0
call fcn.0040212c
add esp, 0x34
push 0x80000301
push 0
push 1
push closesocket
push 0
push 1
push getpeername
push 0
push str.cmd__c_attrib_c:_boot.ini_a
push 3
mov ebx, 0x402270
call fcn.0040212c
add esp, 0x28
push str.__sure__fro__rb__z1_r_nrestart
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.Ghost.exe__nousb__clone_modepdump_src1:1_dst
mov ecx, 3
call fcn.00401456
add esp, 0xc
mov dword [ebp - 4], eax
push getpeername
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x401d36
mov eax, 0x468a92
push eax
push 1
mov ebx, 0x402ac0
call fcn.0040212c
add esp, 0x10
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x401d5c
push ebx
call fcn.00402126
add esp, 4
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x401d6f
mov eax, 0x4689f6
push eax
push getpeername
push 0
push str.c:Ghost.bat
push 2
mov ebx, 0x402d50
call fcn.0040212c
add esp, 0x1c
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x401d9e
push ebx
call fcn.00402126
add esp, 4
push closesocket
push 0
push 1
push 0x80000301
push 0
push 2
push 2
mov eax, 2
mov ebx, 0x446c10
call fcn.00402120
add esp, 0x1c
mov esp, ebp
pop ebp
ret 4

Function at 0x401dd3
Capabilities:
Manipulate boot configuration

Disassembly:
push ebp
mov ebp, esp
push getpeername
push 0
push str.c:_boot.in_
push getpeername
push 0
push str.c:_boot.ini
push 2
mov ebx, 0x402d30
call fcn.0040212c
add esp, 0x1c
push 0x80000301
push 0
push 1
push closesocket
push 0
push 1
push getpeername
push 0
push str.cmd__c_attrib_c:_boot.in___a__r__s__h
push 3
mov ebx, 0x402270
call fcn.0040212c
add esp, 0x28
mov esp, ebp
pop ebp
ret
Function at 0x401f01
Capabilities:
Manipulate boot configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call fcn.00401dd3
call fcn.00401e3a
push 0x80000301
push 0
push 1
push closesocket
push 0
push 1
push getpeername
push 0
push str.cmd__c_attrib_c:_boot.ini__h__s__r__a
push 3
mov ebx, 0x402270
call fcn.0040212c
add esp, 0x28
push getpeername
push 0
push 0x765139
push getpeername
push 0
push str.C:okldr
push getpeername
push 0
push str.operating_systems
push getpeername
push 0
push str.c:_boot.ini
push 4
mov ebx, 0x4032b0
call fcn.0040212c
add esp, 0x34
push getpeername
push 0
push str.C:okldr
push getpeername
push 0
push str.default
push getpeername
push 0
push str.boot_loader
push getpeername
push 0
push str.c:_boot.ini
push 4
mov ebx, 0x4032b0
call fcn.0040212c
add esp, 0x34
push 0x80000301
push 0
push 1
push closesocket
push 0
push 1
push getpeername
push 0
push str.cmd__c_attrib_c:_boot.ini_a
push 3
mov ebx, 0x402270
call fcn.0040212c
add esp, 0x28
push str.:1_dst1:1__sure__rb_r_nrestart
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.Ghost.exe__nousb__clone_modepload_src
mov ecx, 3
call fcn.00401456
add esp, 0xc
mov dword [ebp - 4], eax
push getpeername
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x402036
mov eax, 0x468a92
push eax
push 1
mov ebx, 0x402ac0
call fcn.0040212c
add esp, 0x10
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40205c
push ebx
call fcn.00402126
add esp, 4
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x40206f
mov eax, 0x4689f6
push eax
push getpeername
push 0
push str.c:Ghost.bat
push 2
mov ebx, 0x402d50
call fcn.0040212c
add esp, 0x1c
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40209e
push ebx
call fcn.00402126
add esp, 4
push closesocket
push 0
push 1
push 0x80000301
push 0
push 2
push 2
mov eax, 2
mov ebx, 0x446c10
call fcn.00402120
add esp, 0x1c
mov esp, ebp
pop ebp
ret 4
Function at 0x407670
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x462dfb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00457ceb
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4076f2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00455c3a
mov eax, dword [eax]
push 0x7781f0
push eax
call fcn.00448904
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00457f76
test bl, bl
je 0x4076f2
push 0x7781f0
lea ecx, [esp + 0xc]
call fcn.00458306
push 0x77bd40
lea ecx, [esp + 0xc]
call fcn.00458306
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40772e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00457f76
jmp 0x4077f9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x4077b2
lea edx, [esp + 0x7c]
push 0x77bd3c
push edx
call fcn.00448904
add esp, 8
test eax, eax
je 0x4077b2
lea eax, [esp + 0x7c]
push 0x77bd38
push eax
call fcn.00448904
add esp, 8
test eax, eax
je 0x4077b2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x407742
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00457f76
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x407ff0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x408052
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x408060
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x462e7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x782274]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x408198
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4080c6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00457f76
xor eax, eax
jmp 0x40820f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004580b3
push esi
lea ecx, [esp + 0xc]
call fcn.00458342
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4081ed
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00407ff0
test eax, eax
jne 0x4081ed
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.00407ff0
test eax, eax
jne 0x4081ed
lea eax, [esp + 0x14]
push 0x77bd54
push eax
call fcn.00449940
mov esi, eax
add esp, 8
test esi, esi
jne 0x4081cc
lea ecx, [esp + 0x14]
push 0x77bd50
push ecx
call fcn.004498c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4081cc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4081cf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00458063
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4080de
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00457f76
xor eax, eax
jmp 0x40820f
mov byte [esi], 0
push 0x77bd4c
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.00457f76
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4