joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4115b0
Capabilities:
Create process on windows
Resolve function by parsing pe exports
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x418ba8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push ebp
mov ebx, ecx
push esi
push edi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
mov ebp, dword [esp + 0x78]
lea eax, [esp + 0x10]
push ebp
xor esi, esi
push str.ntsd__c_q__p__d
push eax
mov dword [esp + 0x7c], esi
call sub.MFC42.DLL_CString::Format
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x30]
add esp, 0xc
rep stosd dword es:[edi], eax
lea edx, [esp + 0x14]
xor ecx, ecx
lea eax, [esp + 0x24]
push edx
mov dword [esp + 0x18], ecx
push eax
push esi
mov dword [esp + 0x24], ecx
push esi
push 0x30
mov dword [esp + 0x30], ecx
push esi
push esi
mov dword [esp + 0x3c], ecx
push esi
push esi
lea ecx, [esp + 0x34]
mov dword [esp + 0x48], 0x44
mov word [esp + 0x78], si
mov dword [esp + 0x74], 1
call sub.MFC42.DLL_CString::GetBuffer
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4116c0
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x14
push ecx
call esi
test eax, eax
je 0x41167b
push ebp
mov ecx, ebx
call fcn.0040cfa0
test eax, eax
je 0x41167b
mov edx, dword [esp + 0x14]
push 0x14
push edx
call esi
test eax, eax
jne 0x411662
mov eax, dword [esp + 0x14]
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push ecx
call esi
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x18]
push eax
call esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x70], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x4116d3
lea ecx, [esp + 0x10]
mov dword [esp + 0x70], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret 4
Function at 0x414570
Capabilities:
Create process on windows
Terminate process

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x419130
push eax
mov eax, 0x1b44
mov dword fs:[0], esp
call fcn.004164b0
push edi
mov eax, dword [esp + 0x1b5c]
mov ecx, dword [esp + 0x1b58]
push eax
push ecx
lea edx, [esp + 0x64]
mov edi, 1
push str.__s___s
push edx
mov dword [esp + 0x1b60], edi
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x1b60]
lea ecx, [esp + 8]
lea edx, [esp + 0x18]
push ecx
push edx
push eax
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x78]
push 0
push ecx
push 0
mov dword [esp + 0x6c], edi
mov word [esp + 0x70], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x41469a
mov edx, dword [esp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x64
push edx
call esi
test eax, eax
je 0x41464d
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [0x422d04]
test eax, eax
je 0x41463f
mov eax, dword [esp + 0x10]
push 0x3e8
push eax
call ebp
mov ecx, dword [esp + 0x10]
push 0xffffffffffffffff
push ecx
call esi
mov edx, dword [esp + 0x10]
push 0x64
push edx
call esi
test eax, eax
jne 0x414621
pop ebp
mov ecx, dword [esp + 0xc]
lea eax, [esp + 8]
push eax
push ecx
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
mov eax, dword [esp + 8]
pop esi
test eax, eax
je 0x41469f
mov edi, dword [0x422d04]
neg edi
sbb edi, edi
and edi, 0xffffdcf7
add edi, 0xfffffbf9
jmp 0x41469f
mov edi, 0xfffffbf8
lea ecx, [esp + 0x1b58]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1b5c]
mov byte [esp + 0x1b50], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1b60]
mov dword [esp + 0x1b50], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1b48]
mov eax, edi
pop edi
mov dword fs:[0], ecx
add esp, 0x1b50
ret 0xc
Function at 0x4146f0
Capabilities:
Create process on windows
Create process suspended
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x41915b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x25c
push ebx
push edi
mov edi, 1
lea ecx, [esp + 8]
mov dword [esp + 0x26c], edi
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [0x422cc0]
lea ecx, [esp + 8]
push eax
push str._srar.exe
push ecx
mov byte [esp + 0x278], 2
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x280]
mov eax, dword [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x78]
push str.__s___s
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x1c
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov edx, dword [esp + 0x278]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
xor ebx, ebx
push ecx
push edx
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x80]
push ebx
push eax
push ebx
mov dword [esp + 0x74], edi
mov word [esp + 0x78], bx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, ebx
je 0x414839
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x64
push ecx
call esi
test eax, eax
je 0x4147f0
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [0x422d04]
mov dword [0x422cb4], ebx
cmp eax, ebx
je 0x4147e2
mov edx, dword [esp + 0x18]
push 0x3e8
push edx
call ebp
mov eax, dword [esp + 0x18]
push 0xffffffffffffffff
push eax
call esi
mov ecx, dword [esp + 0x18]
push 0x64
push ecx
call esi
test eax, eax
jne 0x4147be
pop ebp
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x18]
push edx
call esi
mov eax, dword [esp + 0x10]
pop esi
cmp eax, ebx
je 0x41483e
mov edi, dword [0x422d04]
neg edi
sbb edi, edi
and edi, 0xffffdcf7
add edi, 0xfffffbf9
jmp 0x41483e
mov edi, 0xfffffbf8
lea ecx, [esp + 8]
mov byte [esp + 0x26c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x274]
mov byte [esp + 0x26c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x278]
mov dword [esp + 0x26c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x264]
mov eax, edi
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x268
ret 8

Function at 0x414f90
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x414fec
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp]
push 0
push 0
lea edx, [esp + 0xc]
push 0
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov eax, 1
add esp, 0x14
ret
Function at 0x416794
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d5c8
push 0x4168f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x422e88], 0xffffffff
or dword [0x422e8c], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x422e5c]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x422e58]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x422e84], eax
call fcn.0041692b
cmp dword [0x422c40], ebx
jne 0x416817
push 0x416928
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00416916
push 0x42102c
push 0x421028
call sub.MSVCRT.dll__initterm
mov eax, dword [0x422e54]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
push eax
push dword [0x422e50]
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x421024
push section..data
call sub.MSVCRT.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.MSVCRT.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x4168aa
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
cmp al, bl
je 0x41687e
cmp al, 0x22
jne 0x416870
cmp byte [esi], 0x22
jne 0x416887
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
cmp al, bl
je 0x416891
cmp al, 0x20
jbe 0x416883
mov dword [ebp - 0x30], ebx
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x4168b5
movzx eax, word [ebp - 0x2c]
jmp 0x4168b8
cmp byte [esi], 0x20
jbe 0x416887
inc esi
mov dword [ebp - 0x74], esi
jmp 0x4168aa
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x78], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x405679
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, 0x42d600
call fcn.004072f7
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4056d9
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x30]
mov dword [edx], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0xc]
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
mov dword [eax + 4], edx
jmp 0x4057f0
push 2
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4057f0
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.004057f7
add esp, 8
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x405740
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x34], edx
jmp 0x405748
mov eax, dword [0x42d9b0]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x34]
mov dword [ecx], edx
push 1
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.GDI32.dll_SelectPalette]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.GDI32.dll_RealizePalette]
push 0
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 8]
add eax, dword [edx]
mov ecx, dword [ebp - 0x14]
lea edx, [eax + ecx*4]
push edx
push 4
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
mov dword [edx], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
mov dword [edx + 4], ecx
push 1
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.GDI32.dll_SelectPalette]
mov ecx, dword [ebp - 0xc]
push ecx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, 0x42d600
call fcn.004071d9
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x409874
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x35c
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x40], 0
push 0xa
mov eax, dword [ebp + 0x10]
and eax, 0xffff
push eax
mov ecx, dword [0x4304fc]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x250], eax
cmp dword [ebp - 0x250], 0
je 0x4098fb
mov edx, dword [ebp - 0x250]
push edx
mov eax, dword [0x4304fc]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x258], 0
je 0x4098fb
mov ecx, dword [ebp - 0x258]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x25c], 0
push 0x100
lea edx, [ebp - 0x14c]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [0x4304fc]
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
mov byte [ebp - 0x35c], 0
mov dword [ebp - 0x4c], 0x4c
call fcn.0040c476
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 1
lea edx, [ebp - 0x35c]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], 0x100
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0x100
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], 0x804
cmp dword [ebp + 0x14], 0
je 0x409995
mov edx, dword [ebp - 0x18]
or dh, 0x20
mov dword [ebp - 0x18], edx
jmp 0x40999e
mov eax, dword [ebp - 0x18]
or ah, 0x10
mov dword [ebp - 0x18], eax
mov word [ebp - 0x14], 0
mov word [ebp - 0x12], 0
push 4
lea ecx, [ebp - 0x254]
push ecx
mov edx, dword [ebp + 0x10]
add edx, 1
push edx
mov eax, dword [0x4304fc]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x10], ecx
lea edx, [ebp - 0x4c]
push edx
call dword [sym.imp.comdlg32.dll_GetOpenFileNameA]
test eax, eax
je 0x409a07
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [ebp - 0x30]
push edx
call fcn.00407542
add esp, 4
test eax, eax
jne 0x409a05
mov dword [ebp - 0x25c], 1
jmp 0x409a11
mov dword [0x430810], 1
cmp dword [ebp - 0x250], 0
je 0x409a30
cmp dword [ebp - 0x258], 0
je 0x409a30
mov eax, dword [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0x25c]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x409a3c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x368
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x360], 0
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x35c], 0
push 0xa
mov eax, dword [ebp + 0x14]
and eax, 0xffff
push eax
mov ecx, dword [0x4304fc]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x258], 0
je 0x409aad
mov edx, dword [ebp - 0x258]
push edx
mov eax, dword [0x4304fc]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x360], eax
cmp dword [ebp - 0x360], 0
je 0x409ac9
mov ecx, dword [ebp - 0x360]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x254], eax
mov byte [ebp - 0x250], 0
push 0x100
lea edx, [ebp - 0x250]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [0x4304fc]
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
mov byte [ebp - 0x358], 0
push 0x100
lea edx, [ebp - 0x358]
push edx
mov eax, dword [ebp + 0x14]
add eax, 1
push eax
mov ecx, dword [0x4304fc]
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x104
lea edx, [ebp - 0x150]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.00418e40
add esp, 0xc
push 0x4c
push 0
lea ecx, [ebp - 0x4c]
push ecx
call fcn.00420a60
add esp, 0xc
mov dword [ebp - 0x4c], 0x4c
call fcn.0040c476
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x254]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x34], 1
lea eax, [ebp - 0x150]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0x104
movsx ecx, byte [ebp - 0x250]
test ecx, ecx
je 0x409b7f
lea edx, [ebp - 0x250]
mov dword [ebp - 0x1c], edx
lea eax, [ebp - 0x358]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], 0x804
cmp dword [ebp + 0x18], 0
je 0x409b9e
mov ecx, dword [ebp - 0x18]
or ecx, 2
mov dword [ebp - 0x18], ecx
lea edx, [ebp - 0x4c]
push edx
call dword [sym.imp.comdlg32.dll_GetSaveFileNameA]
test eax, eax
je 0x409bec
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00404e7b
lea ecx, [ebp - 0x364]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0x30]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathA]
mov dword [ebp - 0x368], eax
cmp dword [ebp - 0x368], 0
ja 0x409bea
mov dword [ebp - 0x35c], 1
jmp 0x409bf6
mov dword [0x430810], 1
cmp dword [ebp - 0x360], 0
je 0x409c0c
mov eax, dword [ebp - 0x360]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0x35c]
mov esp, ebp
pop ebp
ret
Function at 0x40af3f
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push 0x17
call dword [sym.imp.USER32.dll_GetSystemMetrics]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0xc], eax
xor eax, eax
cmp dword [ebp - 0xc], 0
setne al
inc eax
mov dword [ebp - 4], eax
push 0
push 0x202
push 0x202
push 0
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x40af9e
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx eax, ax
and eax, 0x8000
test eax, eax
je 0x40af9e
mov dword [ebp - 0x2c], 1
jmp 0x40afa5
mov dword [ebp - 0x2c], 0
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x40c256
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
cmp dword [ebp + 0xc], 0
je 0x40c26b
mov byte [ebp - 4], 0x7e
jmp 0x40c26f
mov byte [ebp - 4], 0x26
mov dword [ebp - 8], 0
push 0xff
lea eax, [ebp - 0x10c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov dword [ebp - 0xc], 0
jmp 0x40c29e
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
lea eax, [ebp - 0x10c]
push eax
call fcn.00420540
add esp, 4
cmp dword [ebp - 0xc], eax
jge 0x40c2ec
movsx ecx, byte [ebp - 4]
mov edx, dword [ebp - 0xc]
movsx eax, byte [ebp + edx - 0x10c]
cmp ecx, eax
jne 0x40c2ea
mov dword [ebp - 8], 1
cmp dword [ebp + 0xc], 0
je 0x40c2df
mov ecx, dword [ebp - 0xc]
mov byte [ebp + ecx - 0x10c], 0x26
jmp 0x40c2ea
mov edx, dword [ebp - 0xc]
mov byte [ebp + edx - 0x10c], 0x7e
jmp 0x40c295
cmp dword [ebp - 8], 0
je 0x40c303
lea eax, [ebp - 0x10c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov esp, ebp
pop ebp
ret

Function at 0x40c307
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
neg eax
sbb eax, eax
neg eax
cmp dword [ebp + 0xc], eax
je 0x40c35f
cmp dword [ebp + 0xc], 0
je 0x40c343
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040c256
add esp, 8
push 5
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40c35f
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040c256
add esp, 8
pop ebp
ret
Function at 0x40d445
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax]
test ecx, ecx
je 0x40d651
mov edx, dword [ebp + 0xc]
push edx
push 0x42c1c4
lea eax, [ebp - 0x110]
push eax
call fcn.00421437
add esp, 0xc
movsx ecx, byte [ebp - 0x110]
cmp ecx, 0x5c
jne 0x40d4d8
movsx edx, byte [ebp - 0x10f]
cmp edx, 0x5c
jne 0x40d4d8
lea eax, [ebp - 0x10e]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
movsx edx, byte [ecx]
test edx, edx
je 0x40d4c3
mov eax, dword [ebp - 0xc]
movsx ecx, byte [eax]
cmp ecx, 0x5c
je 0x40d4c3
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
jmp 0x40d4a3
mov eax, dword [ebp - 0xc]
movsx ecx, byte [eax]
test ecx, ecx
je 0x40d4d6
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
jmp 0x40d4e1
lea eax, [ebp - 0x110]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
movsx edx, byte [ecx]
test edx, edx
je 0x40d501
mov eax, dword [ebp - 0xc]
movsx ecx, byte [eax]
cmp ecx, 0x5c
je 0x40d501
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
jmp 0x40d4e1
mov eax, dword [ebp - 0xc]
movsx ecx, byte [eax]
test ecx, ecx
je 0x40d51a
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov byte [eax], 0
movsx ecx, byte [ebp - 0x110]
test ecx, ecx
je 0x40d651
mov dword [ebp - 0x114], 0
push str.GetDiskFreeSpaceExA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
je 0x40d5a1
lea edx, [ebp - 0x130]
push edx
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x128]
push ecx
lea edx, [ebp - 0x110]
push edx
call dword [ebp - 0x118]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
je 0x40d59c
mov eax, dword [ebp - 0x128]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 4], ecx
jmp 0x40d651
lea edx, [ebp - 0x134]
push edx
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x140]
push ecx
lea edx, [ebp - 0x138]
push edx
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
je 0x40d651
mov ecx, dword [ebp - 0x138]
xor edx, edx
mov dword [ebp - 0x158], ecx
mov dword [ebp - 0x154], edx
mov eax, dword [ebp - 0x140]
xor ecx, ecx
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x14c], ecx
mov edx, dword [ebp - 0x13c]
xor eax, eax
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], eax
mov ecx, dword [ebp - 0x14c]
push ecx
mov edx, dword [ebp - 0x150]
push edx
mov eax, dword [ebp - 0x154]
push eax
mov ecx, dword [ebp - 0x158]
push ecx
call fcn.004216b0
mov ecx, dword [ebp - 0x144]
push ecx
mov ecx, dword [ebp - 0x148]
push ecx
push edx
push eax
call fcn.004216b0
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret