joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43a5b0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x466e43
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0045a53d
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0045fbd5
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004610f1
test eax, eax
je 0x43a6cc
mov ecx, dword [esp + 0x3c]
call fcn.0045fc02
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43a690
push edi
mov ecx, esi
call fcn.0045d26c
mov ecx, esi
call fcn.0043a870
cmp dword [esp + 0x38], 1
jne 0x43a6c5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0045d3a7
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43c8c0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43c8f3
push esi
call fcn.0043fa10
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43c8ec
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43c979
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43c962
mov eax, dword [esi + 8]
test eax, eax
je 0x43c917
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43c95e
cmp eax, 2
je 0x43c962
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43c90a
cmp eax, 3
je 0x43c93d
cmp eax, 1
jne 0x43c90a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43c90a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43c90a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043c9a0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43c988
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043c9a0
add esp, 4
pop esi
ret

Function at 0x45b332
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45b36a
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004593e9
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004593c1
jmp 0x45b376
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x45ca29
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x45ca6b
call fcn.004624e1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45ca6b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45ca62
xor eax, eax
jmp 0x45ca73
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045ca79
pop edi
pop esi
pop ebx
ret 4

Function at 0x462a11
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x462a3f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x462a5d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00462977
jmp 0x462a5d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x462a5d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00462977
test edi, edi
mov eax, edi
jne 0x462a47
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401040
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x403fc9
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x407004]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x407004]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, dword [esp + 0x40]
call fcn.00401130
push esi
lea ecx, [esp + 0xc]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov dword [esp + 0x30], 0
mov ecx, str._RegMD5
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4010b8
test dx, dx
je 0x4010b4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4010b8
add eax, 4
add ecx, 4
test dx, dx
jne 0x401092
xor eax, eax
jmp 0x4010bd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4010c8
call fcn.00402360
jmp 0x4010d4
mov ecx, esi
call fcn.004020d0
call fcn.00401230
mov eax, dword [0x409408]
test eax, eax
je 0x4010e2
cmp eax, 0xffffffff
jne 0x4010f3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x409408], 0
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0040342c
add esp, 0x2c
ret 0x10
Function at 0x401130
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x403d4c
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x407004]
xor eax, esp
mov dword [esp + 0x224], eax
push esi
mov eax, dword [0x407004]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
lea ecx, [esp + 8]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
push 0
push 0x23
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x244], 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4011f0
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0xc]
call dword [0x4050fc]
push str.XT_Common_Files_
lea ecx, [esp + 0xc]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
cmp dword [esp + 0x20], 8
mov esi, dword [esp + 0xc]
jae 0x4011c4
lea esi, [esp + 0xc]
push esi
mov ecx, 0x4093b0
call dword [0x4050fc]
push esi
mov ecx, 0x4093b0
call fcn.004031a0
push str.xt_.log
mov ecx, 0x4093cc
call dword [0x4050fc]
call fcn.00402ee0
lea ecx, [esp + 8]
mov dword [esp + 0x238], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.0040342c
add esp, 0x234
ret
Function at 0x4015e0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x248
mov eax, dword [0x407004]
xor eax, esp
mov dword [esp + 0x244], eax
push ebx
push esi
push 0x1000
push 0
push str..KDT_.cpp_257_:_Windows_Version:_d._d._d
call sub.MSVCR80.dll_memset
push str.Set_install_runonce_service_as_admin
push 0xe1
push 0x40533c
push str._s__d_:__s
push 0x1000
push str..KDT_.cpp_257_:_Windows_Version:_d._d._d
call dword [sym.imp.MSVCR80.dll_swprintf_s]
push str..KDT_.cpp_257_:_Windows_Version:_d._d._d
mov ecx, 3
mov ebx, 0x4093b0
call fcn.00403090
lea esi, [esp + 0x6c]
call fcn.004014c0
push str.XTService.exe
mov eax, esi
push 0x104
push eax
call dword [sym.imp.MSVCR80.dll_wcscat_s]
add esp, 0x34
mov dword [esp + 8], 0x3c
mov dword [esp + 0xc], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea edx, [esp + 8]
mov ecx, esi
push edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], str.runas
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], str._runonce
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [esp + 0x24c]
pop esi
pop ebx
xor ecx, esp
call fcn.0040342c
add esp, 0x248
ret
Function at 0x401f10
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x403cbc
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x407004]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [0x407004]
xor eax, esp
push eax
lea eax, [esp + 0x22c]
mov dword fs:[0], eax
lea ecx, [esp + 4]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
push 0
push 0x23
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x240], 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x401f8f
lea ecx, [esp + 4]
mov dword [esp + 0x234], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor eax, eax
jmp 0x402000
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 8]
call dword [0x4050fc]
push str.XT_Common_Files_
lea ecx, [esp + 8]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
push str.Flag.dat
lea ecx, [esp + 8]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
cmp dword [esp + 0x1c], 8
mov eax, dword [esp + 8]
jae 0x401fcb
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x401fe6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x401fe6
cmp eax, 3
jne 0x401f76
lea ecx, [esp + 4]
mov dword [esp + 0x234], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, 1
mov ecx, dword [esp + 0x22c]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.0040342c
add esp, 0x234
ret

Function at 0x402030
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x248
mov eax, dword [0x407004]
xor eax, esp
mov dword [esp + 0x244], eax
push esi
lea esi, [esp + 0x40]
call fcn.004014c0
push str.XT.exe
mov eax, esi
push 0x104
push eax
call dword [sym.imp.MSVCR80.dll_wcscat_s]
xor esi, esi
add esp, 0xc
mov dword [esp + 4], 0x3c
mov dword [esp + 8], esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea edx, [esp + 4]
lea ecx, [esp + 0x40]
push edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], str.open
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], 5
mov dword [esp + 0x28], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [esp + 0x248]
lea eax, [esi + 1]
pop esi
xor ecx, esp
call fcn.0040342c
add esp, 0x248
ret
Function at 0x4029f0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x238
mov eax, dword [0x407004]
xor eax, esp
mov dword [esp + 0x234], eax
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push str.kernel32.dll
mov dword [esp + 0x18], ebp
mov dword [0x409390], ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebp
je 0x402a4a
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WTSGetActiveConsoleSessionId
push edi
call ebx
push str.ProcessIdToSessionId
push edi
mov esi, eax
call ebx
cmp esi, ebp
mov dword [0x409390], eax
je 0x402a4a
call esi
mov ebp, eax
push 0x1000
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x402a80
cmp dword [0x409390], 0
je 0x402a80
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [esp + 0x10]
push ecx
push eax
mov dword [esp + 0x18], 0xffffffff
call dword [0x409390]
mov ebp, dword [esp + 0x10]
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x402aae
lea edx, [esp + 0x18]
push edx
push esi
mov dword [esp + 0x20], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x402abd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x402ab9
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x402b2e
mov ebx, dword [sym.imp.MSVCR80.dll__wcsicmp]
lea eax, [esp + 0x3c]
push str.explorer.exe
push eax
call ebx
add esp, 8
test eax, eax
jne 0x402b07
mov dword [esp + 0x10], eax
mov eax, dword [0x409390]
test eax, eax
je 0x402aff
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push ecx
push edx
call eax
test eax, eax
je 0x402b07
cmp dword [esp + 0x10], ebp
jne 0x402b07
mov ebx, dword [esp + 0x20]
jmp 0x402b1a
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x18]
push ecx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x402ac3
mov ebx, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x402b2c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
mov ecx, dword [esp + 0x244]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040342c
add esp, 0x238
ret
Function at 0x402be0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [0x407004]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x23c]
push esi
push edi
or edi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 2
mov ebx, eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x228
mov esi, eax
lea eax, [esp + 0x18]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push esi
mov dword [esp + 0x18], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x402cb4
cmp dword [esp + 0x18], ebx
je 0x402c57
lea edx, [esp + 0x10]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x402c40
jmp 0x402cb4
mov edi, dword [esp + 0x28]
cmp edi, 0xffffffff
je 0x402cb4
push 0x22c
lea eax, [esp + 0x14]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push esi
mov dword [esp + 0x18], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x402cb4
jmp 0x402c90
cmp dword [esp + 0x18], edi
je 0x402ca7
lea edx, [esp + 0x10]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x402c90
jmp 0x402cb4
lea eax, [esp + 0x34]
push eax
mov ecx, ebp
call dword [0x4050fc]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x23c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040342c
add esp, 0x230
ret

Function at 0x4031a0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
test edi, edi
mov ebx, ecx
je 0x40323d
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4031b5
sub eax, edx
sar eax, 1
je 0x40323d
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4031e2
and al, 0x10
xor ecx, ecx
cmp al, 0x10
sete cl
pop edi
mov al, cl
pop ebx
ret 4
push esi
push edi
call dword [sym.imp.MSVCR80.dll__wcsdup]
mov esi, eax
push 0x5c
push esi
call dword [sym.imp.MSVCR80.dll_wcsrchr]
add esp, 0xc
test eax, eax
je 0x403235
push esi
mov ecx, ebx
mov word [eax], 0
call fcn.004031a0
test al, al
push esi
jne 0x40321f
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
pop esi
pop edi
xor al, al
pop ebx
ret 4
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x403217
pop esi
pop edi
mov al, 1
pop ebx
ret 4
pop edi
xor al, al
pop ebx
ret 4
Function at 0x403250
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x403d92
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x407004]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
mov eax, dword [0x407004]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov esi, ecx
push edi
lea ecx, [esp + 0x38]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
xor ebx, ebx
lea edx, [esp + 0x34]
lea ecx, [esp + 0x18]
mov dword [esp + 0x5c], ebx
call fcn.00402ce0
mov eax, dword [esi + 0x58]
cmp eax, ebx
je 0x40331e
cmp dword [esp + 0x30], 0x10
mov ecx, dword [esp + 0x1c]
jae 0x4032b7
lea ecx, [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x34]
push edx
push ecx
push eax
call ebp
test eax, eax
je 0x40331e
cmp word [edi + 2], 0xa
je 0x4032f6
mov ecx, dword [esi + 0x58]
push ebx
lea eax, [esp + 0x18]
push eax
push 1
push 0x4058d8
push ecx
mov dword [esp + 0x28], ebx
call ebp
mov edx, dword [esp + 0x14]
add dword [esp + 0x10], edx
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x18]
mov byte [esp + 0x5c], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x34]
mov dword [esp + 0x5c], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, esi
jmp 0x403340
lea ecx, [esp + 0x18]
mov byte [esp + 0x5c], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x34]
mov dword [esp + 0x5c], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor eax, eax
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0040342c
add esp, 0x50
ret

Function at 0x40342c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x407004]
jne 0x403436
repz ret
jmp fcn.004037e8
Function at 0x406df0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x461d8b
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.00456b68
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x406e72
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00454ab7
mov eax, dword [eax]
push 0x4791c0
push eax
call fcn.004479b4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00456df3
test bl, bl
je 0x406e72
push 0x4791c0
lea ecx, [esp + 0xc]
call fcn.00457183
push 0x47cd10
lea ecx, [esp + 0xc]
call fcn.00457183
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 0x406eae
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00456df3
jmp 0x406f79
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 0x406f32
lea edx, [esp + 0x7c]
push 0x47cd0c
push edx
call fcn.004479b4
add esp, 8
test eax, eax
je 0x406f32
lea eax, [esp + 0x7c]
push 0x47cd08
push eax
call fcn.004479b4
add esp, 8
test eax, eax
je 0x406f32
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 0x406ec2
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.00456df3
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 0x407770
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 0x4077d2
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