joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ad0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
lea eax, [esp]
push ebx
push esi
push eax
mov esi, 1
push str.SoftwareMicrosoftDirectDraw
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401b35
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push eax
mov eax, dword [esp + 0xc]
push ecx
mov dword [esp + 0x14], 4
push edx
push 0
push str.EmulationOnly
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401b2a
mov eax, dword [esp + 0x10]
cmp eax, esi
jne 0x401b2a
xor esi, esi
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x401b40
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push ebx
push eax
push str.SoftwareMicrosoftDirectDraw
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401b92
mov eax, dword [esp + 0x10]
push 4
cmp eax, 1
sbb eax, eax
neg eax
mov ecx, dword [esp + 8]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 4
push 0
push str.EmulationOnly
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
add esp, 8
ret

Function at 0x401e10
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x114
lea ecx, [esp + 8]
push ebx
mov dword [esp + 8], eax
push esi
push ecx
push 0xd
push eax
call fcn.00402de0
lea ecx, [esp + 0x24]
add esp, 0xc
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x18]
push 0x407224
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x401eb7
push str.DirectInputCreateA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401eb0
lea ecx, [esp + 8]
push 0
push ecx
mov edx, dword [0x407370]
push 0x500
push edx
call eax
test eax, eax
jl 0x401eb0
mov eax, dword [esp + 8]
push 0
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], eax
push ecx
mov ebx, dword [eax]
push 0x401ba0
push 0
push eax
call dword [ebx + 0x10]
mov ecx, dword [esp + 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
pop ebx
add esp, 0x114
ret
Function at 0x402ac0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x54
test eax, eax
nop
push ebx
push esi
push edi
push ebp
je 0x402adc
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x54
ret 0x10
xor edi, edi
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov esi, dword [esp + 0x68]
mov dword [esp + 0x20], edi
mov dword [0x407370], esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
push 0x1f4
mov dword [esp + 0x34], esi
push esi
mov dword [esp + 0x2c], sym.dxtool.exe_AppWndProc
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esp + 0x34], eax
push 0x7f00
push edi
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edi
lea eax, [esp + 0x20]
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], str.DxTool
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
jne 0x402b52
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x54
ret 0x10
push 0
push esi
push 0
push 0
push 0
push 0
push 0x80000000
push 0x80000000
push 0xca0000
push str.DirectX_Driver_Tool
push str.DxTool
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
je 0x402c4b
push 0
mov eax, dword [0x407370]
push 0x402c60
push esi
push 0x65
push eax
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov edi, eax
test edi, edi
je 0x402c4b
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x10]
push 0
push 0xca0000
push ecx
call dword [sym.imp.USER32.dll_AdjustWindowRect]
mov eax, dword [esp + 0x1c]
push 0x42
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
sub eax, ecx
push eax
mov eax, dword [esp + 0x20]
sub eax, edx
push eax
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ebp, dword [esp + 0x74]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push ebp
push edi
call ebx
push edi
mov edi, dword [sym.imp.USER32.dll_UpdateWindow]
call edi
push ebp
push esi
call ebx
push esi
call edi
lea eax, [esp + 0x48]
push 0
push 0
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push eax
call esi
test eax, eax
je 0x402c4b
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [esp + 0x48]
push eax
call edi
lea eax, [esp + 0x48]
push eax
call ebx
lea eax, [esp + 0x48]
push 0
push 0
push 0
push eax
call esi
test eax, eax
jne 0x402c2c
mov eax, dword [esp + 0x50]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x54
ret 0x10
Function at 0x402f80
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
push ebx
push esi
mov ebx, dword [esp + 0x1c]
push edi
push ebp
xor edi, edi
push 8
push ebx
call dword [sym.imp.KERNEL32.dll_RtlZeroMemory]
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x20]
push eax
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, edi
mov ebp, eax
je 0x403032
push ebp
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, edi
mov esi, eax
je 0x403032
mov eax, dword [esp + 0x20]
push esi
push ebp
push edi
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x403018
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], edi
push eax
push ecx
push 0x407288
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x403018
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x403018
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [ebx + 4], ecx
mov dword [ebx], edx
mov ecx, dword [esp + 0x28]
cmp ecx, edi
je 0x403013
mov edx, dword [eax + 0x1c]
mov dword [ecx], edx
mov edi, 1
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalHandle]
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret

Function at 0x403150
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push ebx
push esi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 8]
push 0x407288
push ecx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
call esi
mov ecx, dword [esp + 0x114]
lea eax, [esp + 8]
push ecx
push eax
call esi
mov ecx, dword [esp + 0x11c]
lea edx, [esp + 8]
push ecx
push edx
lea edx, [esp + 0x10]
push edx
call fcn.00403040
lea ecx, [esp + 0x14]
mov edx, dword [esp + 0x11c]
add esp, 0xc
mov esi, eax
mov eax, dword [esp + 0x118]
push ecx
push eax
push edx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov eax, esi
pop esi
pop ebx
add esp, 0x104
ret
Function at 0x4031d0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x200
lea eax, [esp + 0x100]
push ebx
push esi
mov ecx, dword [0x407370]
push edi
push ebp
push 0xff
push eax
push 2
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
jne 0x403205
push str.Could_not_find_string_IDS_DXREL2_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
push 0x407374
mov dword [0x407374], eax
mov dword [0x407378], eax
mov esi, dword [esp + 0x218]
push 0x3ec
push str.D3DIM.DLL
mov dword [0x40737c], eax
push esi
mov dword [0x407380], eax
mov dword [0x407384], eax
call fcn.00403150
add esp, 0x10
mov ebx, eax
cmp ebx, 0xffffffff
je 0x403273
lea eax, [esp + 0x110]
push ebx
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x1c]
add esp, 0xc
mov edi, dword [sym.imp.USER32.dll_SetDlgItemTextA]
nop
push ecx
push 0x3f1
push esi
call edi
jmp 0x403279
mov edi, dword [sym.imp.USER32.dll_SetDlgItemTextA]
push 0x407378
push 0x3ed
push str.DDRAW.DLL
push esi
call fcn.00403150
add esp, 0x10
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4032bc
lea eax, [esp + 0x110]
push ebp
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x1c]
add esp, 0xc
push ecx
push 0x3f2
push esi
call edi
cmp ebx, ebp
jge 0x4032c2
mov ebx, ebp
push 0x40737c
push 0x3ee
push str.DINPUT.DLL
push esi
call fcn.00403150
add esp, 0x10
mov ebp, eax
cmp ebp, 0xffffffff
je 0x403305
lea eax, [esp + 0x110]
push ebp
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x1c]
add esp, 0xc
push ecx
push 0x3f3
push esi
call edi
cmp ebx, ebp
jge 0x40330b
mov ebx, ebp
push 0x407380
push 0x3ef
push str.DPLAYX.DLL
push esi
call fcn.00403150
add esp, 0x10
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x403349
push 0x407380
push 0x3ef
push str.DPLAY.DLL
push esi
call fcn.00403150
add esp, 0x10
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40336d
lea eax, [esp + 0x110]
push ebp
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x1c]
add esp, 0xc
push ecx
push 0x3f4
push esi
call edi
cmp ebx, ebp
jge 0x403373
mov ebx, ebp
push 0x407384
push 0x3f0
push str.DSOUND.DLL
push esi
call fcn.00403150
add esp, 0x10
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4033b6
lea eax, [esp + 0x110]
push ebp
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x1c]
add esp, 0xc
push ecx
push 0x3f5
push esi
call edi
cmp ebx, ebp
jge 0x4033bc
mov ebx, ebp
lea eax, [esp + 0x110]
push 0xff
push eax
mov ecx, dword [0x407370]
push 1
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
je 0x403400
lea eax, [esp + 0x110]
push ebx
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x1c]
add esp, 0xc
push ecx
push 0x3f6
push esi
call edi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x200
ret
Function at 0x403680
Capabilities:
Terminate process

Disassembly:
mov dword [0x407470], 1
cmp dword [esp + 8], 0
push ebx
push esi
mov ebx, dword [esp + 0x14]
mov byte [0x40746c], bl
jne 0x4036dc
cmp dword [0x4093d8], 0
je 0x4036ca
mov esi, dword [0x4093d0]
sub esi, 4
cmp esi, dword [0x4093d8]
jb 0x4036ca
mov eax, dword [esi]
test eax, eax
je 0x4036bf
call eax
sub esi, 4
cmp esi, dword [0x4093d8]
jae 0x4036b7
push 0x40701c
push 0x407014
call fcn.00403700
add esp, 8
push 0x407024
push 0x407020
call fcn.00403700
add esp, 8
test ebx, ebx
jne 0x4036fd
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebx
ret
Function at 0x403d60
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
cmp dword [0x407518], 0
push ebx
push esi
push edi
push ebp
jne 0x403db0
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
call esi
mov edi, eax
test edi, edi
je 0x403d8e
mov dword [0x407518], 1
mov ebx, dword [esp + 0x10]
jmp 0x403dbe
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x403da6
mov dword [0x407518], 2
jmp 0x403dbe
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x407518], 1
jne 0x403e6d
test edi, edi
jne 0x403de1
call esi
mov edi, eax
test edi, edi
jne 0x403de1
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x403dfb
add esi, 2
cmp word [esi], 0
jne 0x403de9
add esi, 2
cmp word [esi], 0
jne 0x403de9
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x403e5c
push ebp
call fcn.00404700
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x403e5c
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x403e4b
push ebx
call fcn.004046e0
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x407518], 2
jne 0x403ef1
test ebx, ebx
jne 0x403e90
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x403e90
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x403ea5
inc ebp
cmp byte [ebp], 0
jne 0x403e97
inc ebp
cmp byte [ebp], 0
jne 0x403e97
sub ebp, ebx
inc ebp
push ebp
call fcn.00404700
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x403eca
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x4044f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor eax, eax
mov ecx, 0x4079a8
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [ecx], edx
je 0x404518
add ecx, 8
inc eax
cmp ecx, 0x407a30
jb 0x404508
cmp dword [eax*8 + 0x4079a8], edx
lea ebx, [eax*8]
jne 0x4046d3
cmp dword [0x407424], 1
je 0x404698
cmp dword [0x407424], 0
jne 0x40454f
cmp dword [0x407428], 1
je 0x404698
cmp edx, 0xfc
je 0x4046d3
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x40458c
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x4045d0
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x407a7c
push ebp
call fcn.00403420
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x407a5c
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x4079ac]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.00404780
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x4092d0]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x4046af
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x4079ac]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x404b30
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x418
cmp dword [0x4092c4], edx
push ebx
push esi
push edi
push ebp
jbe 0x404d37
mov eax, edx
and eax, 0xffffffe7
sar eax, 3
add eax, 0x4092d0
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0x1f
mov ecx, dword [esp + 0x18]
shl eax, 3
mov ebx, dword [ecx]
mov ebp, eax
mov dword [esp + 0x1c], eax
mov al, byte [ebx + ebp + 4]
test al, 1
je 0x404d37
xor esi, esi
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x20], esi
cmp ebp, esi
jne 0x404b99
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
test al, 0x20
je 0x404baa
push 2
push 0
push edx
call fcn.00404fd0
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x404c46
mov dword [esp + 0x10], 0
mov edi, dword [esp + 0x430]
mov eax, edi
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x404c7f
lea ebx, [esp + 0x24]
mov eax, edi
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x404c0d
mov al, byte [edi]
inc edi
cmp al, 0xa
jne 0x404bfb
mov byte [ebx], 0xd
inc esi
inc ebx
mov byte [ebx], al
inc ebx
mov eax, ebx
lea ecx, [esp + 0x24]
sub eax, ecx
cmp eax, 0x400
jl 0x404be2
lea eax, [esp + 0x24]
push 0
sub ebx, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push ebx
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404c75
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp eax, ebx
jge 0x404bcd
jmp 0x404c7f
lea eax, [esp + 0x14]
push 0
mov edx, dword [esp + 0x434]
push eax
push ebp
mov ecx, dword [ecx]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404c75
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x404c7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x404d26
cmp dword [esp + 0x10], 0
je 0x404cd8
cmp dword [esp + 0x10], 5
jne 0x404cbb
mov dword [0x40742c], 9
mov eax, dword [esp + 0x10]
pop ebp
pop edi
mov dword [0x407430], eax
mov eax, 0xffffffff
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x10]
push eax
call fcn.00404f60
add esp, 4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
test byte [edx + ecx + 4], 0x40
je 0x404d02
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x404d02
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x40742c], 0x1c
mov dword [0x407430], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x20]
pop ebp
sub eax, esi
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x40742c], 9
mov dword [0x407430], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
Function at 0x407f20
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x467b7b
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.0045c78e
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x407fa2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045a50d
mov eax, dword [eax]
push 0x4fc1c0
push eax
call fcn.0044d374
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045ca19
test bl, bl
je 0x407fa2
push 0x4fc1c0
lea ecx, [esp + 0xc]
call fcn.0045cda9
push 0x4ffd24
lea ecx, [esp + 0xc]
call fcn.0045cda9
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 0x407fde
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045ca19
jmp 0x4080a9
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 0x408062
lea edx, [esp + 0x7c]
push 0x4ffd20
push edx
call fcn.0044d374
add esp, 8
test eax, eax
je 0x408062
lea eax, [esp + 0x7c]
push 0x4ffd1c
push eax
call fcn.0044d374
add esp, 8
test eax, eax
je 0x408062
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 0x407ff2
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.0045ca19
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 0x4088a0
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 0x408902
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 0x408910
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x467bfb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x506200]
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 0x408a48
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x408976
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045ca19
xor eax, eax
jmp 0x408abf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045cb56
push esi
lea ecx, [esp + 0xc]
call fcn.0045cde5
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 0x408a9d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.004088a0
test eax, eax
jne 0x408a9d
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 accept
mov ecx, edi
call fcn.004088a0
test eax, eax
jne 0x408a9d
lea eax, [esp + 0x14]
push 0x4ffd38
push eax
call fcn.0044e3b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x408a7c
lea ecx, [esp + 0x14]
push 0x4ffd34
push ecx
call fcn.0044e330
mov esi, eax
add esp, 8
test esi, esi
jne 0x408a7c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x408a7f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045cb06
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40898e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045ca19
xor eax, eax
jmp 0x408abf
mov byte [esi], 0
push 0x4ffd30
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.0045ca19
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