joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4046c0
Capabilities:
Delete file
Get common file path
Move file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x40ff81
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
push ebx
push ebp
push esi
xor ebx, ebx
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], ebx
call sub.MFC42.DLL_CString::CString_1
push 0x84
lea eax, [esp + 0x20]
push str.RES:__ZIP__d
push eax
mov dword [esp + 0x240], ebx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x24]
push ecx
push edx
call fcn.00405820
mov ebp, eax
add esp, 0x14
cmp ebp, ebx
je 0x4048af
cmp dword [esp + 0x18], ebx
jbe 0x4048af
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x25]
mov byte [esp + 0x24], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x129]
mov byte [esp + 0x128], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x128]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jbe 0x4048af
lea ecx, [esp + 0x24]
lea edx, [esp + 0x128]
push ecx
push ebx
push 0x415c04
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jbe 0x4048af
push ebx
push 0x80
push 2
push ebx
push ebx
lea eax, [esp + 0x38]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor esi, esi
cmp edi, 0xffffffff
mov dword [esp + 0x14], ebx
je 0x4048af
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ebx
push ecx
push edx
push ebp
push edi
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404809
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add esi, edx
cmp esi, eax
jae 0x404809
lea ecx, [esp + 0x14]
push ebx
sub eax, esi
push ecx
lea edx, [esi + ebp]
push eax
push edx
push edi
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4047df
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x24]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::CString_2
push 0x5c
lea ecx, [esp + 0x14]
mov byte [esp + 0x238], 1
call sub.MFC42.DLL_CString::ReverseFind
lea ecx, [esp + 0x20]
push eax
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x238], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x20]
mov byte [esp + 0x234], 1
call sub.MFC42.DLL_CString::CString
push str.QQCar.zip
lea ecx, [esp + 0x14]
call fcn.0040eeec
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x23c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x10]
mov byte [esp + 0x234], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x234], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x228
ret 4
Function at 0x405820
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x208
push esi
mov esi, dword [esp + 0x210]
test esi, esi
push edi
je 0x4058bd
lea eax, [esp + 8]
push eax
push 1
push esi
call fcn.00405760
add esp, 0xc
test eax, eax
je 0x4058bd
lea ecx, [esp + 0x10c]
push ecx
push 2
push esi
call fcn.00405760
add esp, 0xc
test eax, eax
je 0x4058bd
lea edx, [esp + 8]
lea eax, [esp + 0x10c]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
and eax, 0xffff
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x4058bd
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4058bd
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x218]
push edi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
pop edi
pop esi
add esp, 0x208
ret
pop edi
xor eax, eax
pop esi
add esp, 0x208
ret
Function at 0x405e00
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xd40
push ebp
mov ebp, ecx
push esi
push edi
mov eax, dword [ebp + 4]
test eax, eax
jne 0x405e20
pop edi
pop esi
xor al, al
pop ebp
add esp, 0xd40
ret 8
mov edi, dword [esp + 0xd50]
test edi, edi
jne 0x405e2e
lea edi, [ebp + 8]
push edi
call fcn.00406170
add esp, 4
test al, al
jne 0x405e47
pop edi
pop esi
pop ebp
add esp, 0xd40
ret 8
lea eax, [esp + 0x218]
mov ecx, ebp
push eax
call fcn.00405cf0
mov al, byte [esp + 0x448]
test al, al
je 0x405e95
lea ecx, [esp + 0x218]
push 0
add ebp, 8
push ecx
push ebp
lea edx, [esp + 0x1c]
push 0
push edx
call dword [sym.imp.MSVCRT.dll__makepath]
lea eax, [esp + 0x24]
push eax
call fcn.00406170
add esp, 0x18
pop edi
pop esi
pop ebp
add esp, 0xd40
ret 8
mov al, byte [esp + 0xd54]
mov esi, dword [sym.imp.MSVCRT.dll__makepath]
test al, al
je 0x405ee3
lea ecx, [esp + 0x44c]
lea edx, [esp + 0x10]
push ecx
push edx
push 0
lea eax, [esp + 0x224]
push 0
push eax
call dword [sym.imp.MSVCRT.dll__splitpath]
lea ecx, [esp + 0x460]
lea edx, [esp + 0x24]
push ecx
push edx
push 0
lea eax, [esp + 0x238]
push 0
push eax
call esi
add esp, 0x28
lea ecx, [esp + 0x218]
push 0
push ecx
push edi
lea edx, [esp + 0x120]
push 0
push edx
call esi
lea eax, [esp + 0x128]
push eax
call fcn.00406200
add esp, 0x18
test al, al
jne 0x405f1a
pop edi
pop esi
pop ebp
add esp, 0xd40
ret 8
push 0
push 0x80
push 2
push 0
push 0
lea ecx, [esp + 0x128]
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x405f4f
pop edi
pop esi
xor al, al
pop ebp
add esp, 0xd40
ret 8
mov edx, dword [ebp + 4]
push edx
call fcn.00408310
test eax, eax
je 0x405f6a
pop edi
pop esi
xor al, al
pop ebp
add esp, 0xd40
ret 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 4]
lea eax, [esp + 0x550]
push 0x800
push eax
push ecx
call fcn.00407c80
mov esi, eax
test esi, esi
jle 0x405fb5
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x558]
push esi
push eax
push edi
mov dword [esp + 0x24], 0
call ebx
test eax, eax
je 0x405fb2
cmp dword [esp + 0x10], esi
je 0x405f71
or esi, 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 4]
push ecx
call fcn.00407e80
test esi, esi
pop ebx
jne 0x405fe2
mov edx, dword [esp + 0x430]
lea eax, [esp + 0x114]
push edx
push eax
call fcn.00406240
add esp, 8
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebp
sete al
add esp, 0xd40
ret 8
Function at 0x406170
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x4061d3
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x4061d3
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4061a0
and eax, 0x10
xor ecx, ecx
cmp al, 0x10
pop edi
sete cl
mov al, cl
pop esi
ret
push edi
call dword [sym.imp.MSVCRT.dll__strdup]
mov esi, eax
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 0xc
test eax, eax
je 0x4061ee
push esi
mov byte [eax], 0
call fcn.00406170
add esp, 4
test al, al
push esi
jne 0x4061d8
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
pop edi
xor al, al
pop esi
ret
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4061d3
pop edi
mov al, 1
pop esi
ret

Function at 0x406240
Capabilities:
Timestomp file

Disassembly:
sub esp, 0x28
mov eax, dword [esp + 0x2c]
push esi
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
jne 0x40626b
xor al, al
pop esi
add esp, 0x28
ret
lea ecx, [esp + 0x1c]
push ebx
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
cmp eax, 1
sete bl
test bl, bl
je 0x4062e0
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x10]
push ecx
push eax
shr eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
cmp eax, 1
sete bl
test bl, bl
je 0x4062e0
lea edx, [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
cmp eax, 1
sete bl
test bl, bl
je 0x4062e0
lea ecx, [esp + 8]
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0xc]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp eax, 1
sete bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
pop esi
add esp, 0x28
ret
Function at 0x4065e8
Capabilities:
Create process on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x410260
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
call sub.MFC42.DLL_CWnd::IsWindowEnabled
test eax, eax
je 0x4066e6
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42.DLL_CCmdTarget::BeginWaitCursor
lea eax, [esi + 0x5c]
lea ecx, [esp + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0040f270
mov ecx, dword [esp + 4]
mov byte [esp + 0x14], 1
mov eax, dword [ecx - 8]
test eax, eax
jne 0x406636
lea edx, [esp + 4]
mov ecx, esi
push edx
call sub.MFC42.DLL_CWnd::GetWindowTextA
push ebx
lea eax, [esp + 8]
push edi
lea ecx, [esi + 0x60]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
push 0
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
lea ecx, [esp + 0x10]
setb bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x4066a5
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
mov edi, eax
test edi, edi
je 0x4066a5
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgCtrlID
mov ecx, dword [0x4171f8]
mov edx, dword [edi + 0x20]
push 0
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi + 0x20]
push 1
push 0
push eax
mov dword [esi + 0x58], 1
mov dword [esi + 0x50], 0
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42.DLL_CCmdTarget::EndWaitCursor
pop edi
pop ebx
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4071b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x20c
push ebp
push esi
push edi
mov esi, ecx
call fcn.00406c20
mov edi, dword [esp + 0x21c]
test edi, edi
je 0x4072be
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
call ebp
test eax, eax
je 0x4072be
lea eax, [esp + 0x10]
push 0
push eax
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x4072be
push ebx
mov bl, byte [esp + 0x228]
test bl, bl
je 0x407219
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x407219
xor bl, bl
xor edx, edx
lea eax, [esp + 0x14]
test bl, bl
setne dl
push edx
push eax
call fcn.004085c0
test eax, eax
mov dword [esi + 4], eax
pop ebx
je 0x4072a8
mov edi, dword [esp + 0x220]
test edi, edi
jne 0x40728a
push edi
lea ecx, [esp + 0x118]
push edi
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__splitpath]
push edi
lea ecx, [esp + 0x12c]
push edi
lea edx, [esp + 0x28]
push ecx
lea eax, [esi + 8]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__makepath]
mov ecx, dword [esi + 4]
add esp, 0x28
xor eax, eax
test ecx, ecx
pop edi
pop esi
setne al
pop ebp
add esp, 0x20c
ret 0xc
push edi
call ebp
test eax, eax
je 0x4072a8
push 0
push 0x417114
push edi
lea ecx, [esi + 8]
push 0
push ecx
call dword [sym.imp.MSVCRT.dll__makepath]
add esp, 0x14
mov ecx, dword [esi + 4]
xor eax, eax
test ecx, ecx
pop edi
pop esi
setne al
pop ebp
add esp, 0x20c
ret 0xc
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x20c
ret 0xc
Function at 0x409150
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x40915f
xor eax, eax
pop esi
ret 0xc
mov eax, dword [0x415ef4]
test eax, eax
je 0x40916d
call fcn.00409000
mov edx, dword [esp + 0x10]
cmp edx, 8
mov eax, dword [esp + 8]
not eax
jb 0x409261
push ebx
push edi
mov edi, edx
shr edi, 3
xor ecx, ecx
mov cl, byte [esi]
mov ebx, eax
shr ebx, 8
sub edx, 8
xor ecx, eax
and ecx, 0xff
mov eax, dword [ecx*4 + 0x417200]
xor eax, ebx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x417200]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x417200]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x417200]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x417200]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x417200]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x417200]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x417200]
shr eax, 8
xor eax, ecx
inc esi
dec edi
jne 0x409187
pop edi
pop ebx
test edx, edx
je 0x409281
xor ecx, ecx
mov cl, byte [esi]
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x417200]
shr eax, 8
xor eax, ecx
inc esi
dec edx
jne 0x409265
not eax
pop esi
ret 0xc
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x5a5d59ab
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x433060
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x900e34b5
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x401000
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x54
push esi
mov esi, dword [esp + 0x5c]
push edi
push 0x7f00
push esi
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x58], 1
call dword [sym.imp.USER32.dll_LoadCursorA]
push 0x65
push esi
mov dword [esp + 0x54], eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esp + 0x44], esi
mov dword [esp + 0x38], 0x4011c0
mov dword [esp + 0x48], eax
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x5c], str.Myclass
mov dword [esp + 0x58], 0
mov dword [esp + 0x38], 3
call dword [sym.imp.USER32.dll_RegisterClassA]
push 0
push esi
push 0
push 0
mov edi, dword [sym.imp.USER32.dll_CreateWindowExA]
push 0x3c
push 0x238
push 0x1f4
push 0x1f4
push 0xc80000
push 0x407080
push str.Myclass
push 0
call edi
test eax, eax
mov dword [0x4095c0], eax
je 0x4011b3
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [0x4095c0]
push 0
push esi
push 0
push edx
push 0x1e
push 0x190
push 2
push 0
push 0x50010000
push str.http:__173.252.194.240_web_000000_mail.asp
push str.Edit
push 0x200
call edi
mov dword [0x4095bc], eax
mov eax, dword [0x4095c0]
push 0
push esi
push 0
push eax
push 0x1e
push 0x50
push 2
push 0x192
push 0x50010000
push 0x407040
push str.button
push 0x200
call edi
mov ecx, dword [0x4095c0]
push 0
push esi
push 1
push ecx
push 0x1e
push 0x50
push 2
push 0x1e3
push 0x50010000
push 0x407030
push str.button
push 0x200
mov dword [0x4095b8], eax
call edi
mov edx, dword [0x4095c0]
push 1
push edx
mov dword [0x4095b4], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4095c0]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
lea ecx, [esp + 0x20]
push 0
push ecx
call esi
test eax, eax
je 0x4011b3
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebp
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageA]
lea edx, [esp + 0x1c]
push edx
call edi
lea eax, [esp + 0x1c]
push eax
call ebp
push 0
push 0
lea ecx, [esp + 0x24]
push 0
push ecx
call esi
test eax, eax
jne 0x40118b
pop ebp
pop edi
pop esi
add esp, 0x54
ret 0x10
pop edi
xor eax, eax
pop esi
add esp, 0x54
ret 0x10
Function at 0x401e90
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 4]
push edi
mov edi, dword [esp + 0xc]
push edi
push 0x104
push 0xd
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
mov eax, ecx
ret
Function at 0x401647
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
call sub.kernel32.dll_GetCommandLineA
mov dword [0x405120], eax
mov ecx, ebp
add ecx, 8
mov dword [0x40508e], ecx
mov dword [0x405124], 0x30
mov dword [0x405128], 3
mov dword [0x405130], 0
mov dword [0x405134], 0
mov dword [0x40512c], 0x403148
mov eax, 0xffff0000
mov ebx, section..text
and ebx, eax
mov dword [0x405086], ebx
mov dword [0x405138], ebx
mov dword [0x405144], 0xf
mov dword [0x40514c], 0x405067
push 0x7f00
push 0
call sub.user32.dll_LoadIconA
mov dword [0x40513c], eax
mov dword [0x405150], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [0x405140], eax
push 0x405124
call sub.user32.dll_RegisterClassExA
push 0
push dword [0x405086]
push 0
push 0
push 0x2bc
push 0x1f4
push 0xa0
push 0x12c
push 0x40000
push str.Hello_word
push str.2class
push 0
call sub.user32.dll_CreateWindowExA
mov dword [0x405118], eax
push 0
push dword [0x405118]
call sub.user32.dll_ShowWindow
push dword [0x405118]
call sub.user32.dll_UpdateWindow
push 0
push 0
push 0
push 0x405154
call sub.user32.dll_GetMessageA
or eax, eax
je 0x40176b
push 0x405154
call sub.user32.dll_TranslateMessage
push 0x405154
call sub.user32.dll_DispatchMessageA
jmp 0x401741
mov eax, dword [0x40515c]
mov esi, dword [0x4051b4]
lea ecx, [0x405086]
add esi, eax
call esi
ret

Function at 0x40109a
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
push ebx
push esi
push edi
call section..text
xor edi, edi
xor ebx, ebx
lea esi, [ebx + 0x403044]
push 3
push dword [esi]
mov dword [0x40302c], 1
mov word [0x403030], 1
call fcn.0040106e
test al, al
pop ecx
pop ecx
je 0x401110
push dword [esi]
lea eax, [ebp - 0x168]
push str._s__c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x40304c
push section..data
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x168]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40111a
add ebx, 4
cmp ebx, 8
jb 0x4010af
jmp 0x401130
push dword [0x403050]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [0x40304c]
call esi
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40bbc0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x479e5b
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.0046e726
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40bc42
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046bf8d
mov eax, dword [eax]
push 0x4931e0
push eax
call fcn.0045ee04
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046e9b1
test bl, bl
je 0x40bc42
push 0x4931e0
lea ecx, [esp + 0xc]
call fcn.0046ed41
push 0x496d5c
lea ecx, [esp + 0xc]
call fcn.0046ed41
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 0x40bc7e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046e9b1
jmp 0x40bd49
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 0x40bd02
lea edx, [esp + 0x7c]
push 0x496d58
push edx
call fcn.0045ee04
add esp, 8
test eax, eax
je 0x40bd02
lea eax, [esp + 0x7c]
push 0x496d54
push eax
call fcn.0045ee04
add esp, 8
test eax, eax
je 0x40bd02
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 0x40bc92
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.0046e9b1
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 0x40c540
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 0x40c5a2
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