joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411a28
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
mov byte [ebp - 5], 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
push 0x40
push 5
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x411ad6
xor eax, eax
push ebp
push 0x411acf
push dword fs:[eax]
mov dword fs:[eax], esp
mov edi, ebx
mov esi, dword [ebp - 0x10]
sub edi, esi
sub edi, 5
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov ebx, eax
mov dword [ebx], esi
mov edx, ebx
add edx, 5
mov eax, dword [ebp - 0x10]
call fcn.004119b0
mov edx, ebx
add edx, 4
mov byte [edx], al
mov eax, dword [ebp - 0x10]
mov byte [eax], 0xe9
inc esi
mov dword [esi], edi
add ebx, 5
mov eax, dword [ebp - 4]
mov dword [eax], ebx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411ad6
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 5
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_VirtualProtect
ret
movzx eax, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x411ae4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffec
mov ebp, eax
mov byte [esp], 0
cmp dword [ebp], 0
je 0x411b9d
mov eax, dword [ebp]
mov edx, eax
sub edx, 5
mov ebx, dword [edx]
mov edx, eax
dec edx
movzx edx, byte [edx]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
mov dword [esp + 0x10], edx
lea eax, [esp + 4]
push eax
push 0x40
push 5
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x411b9d
mov eax, dword [ebp]
mov edx, ebx
mov ecx, dword [esp + 0xc]
call fcn.00402fdc
xor edi, edi
cmp edi, dword [esp + 0xc]
jae 0x411b6f
lea edx, [esp + 8]
mov eax, ebx
call fcn.004117dc
mov esi, eax
mov eax, dword [esp + 8]
call fcn.004117b4
test al, al
je 0x411b65
mov eax, dword [esp + 8]
inc eax
mov edx, dword [esp + 0x10]
sub dword [eax], edx
add ebx, esi
add edi, esi
cmp edi, dword [esp + 0xc]
jb 0x411b40
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 8]
push eax
push 5
push ebx
call sub.kernel32.dll_VirtualProtect
mov eax, dword [ebp]
sub eax, 5
push 0x8000
push 0
push eax
call sub.kernel32.dll_VirtualFree_1
xor eax, eax
mov dword [ebp], eax
mov byte [esp], 1
movzx eax, byte [esp]
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x415554
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x415629
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x415644
push ebx
push 0x415654
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00405390
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403270
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404f78
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x4155d4
mov al, 0x62
call fcn.004151cc
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.00415528
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x4155dd
call fcn.00415528
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415630
lea eax, [ebp - 4]
call fcn.00404edc
ret

Function at 0x415744
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x41580f
jmp 0x415803
cmp dword [esi + 0x10], 0x1000
jne 0x4157ef
test byte [esi + 0x15], 1
jne 0x4157ef
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4157a0
cmp ebp, 2
je 0x4157a0
cmp ebp, 0x10
je 0x4157a0
cmp ebp, 0x20
jne 0x4157bc
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4157bc
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4157cd
mov eax, dword [esi]
add eax, ebx
call fcn.0041573c
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4157c0
cmp byte [esp + 4], 0
je 0x4157ef
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x41580f
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x415775
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x401010
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
mov esi, dword [ebp + 0xc]
xor edx, edx
or eax, 0xffffffff
mov ecx, dword [ebp + 8]
lea esp, [esp]
lea esp, [esp]
nop
mov dl, byte [esi]
xor dl, al
shr eax, 8
xor eax, dword [edx*4 + 0x401050]
add esi, 1
sub ecx, 1
jne 0x401030
not eax
pop edx
pop ecx
pop esi
leave
ret 8

Function at 0x40148b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
pushal
mov dword [ebp - 4], 0
push 0xa
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.kernel32.dll_FindResourceA
or eax, eax
jne 0x4014ac
jmp 0x4014ce
push eax
push eax
push dword [ebp + 8]
call sub.kernel32.dll_SizeofResource
mov dword [0x4042a0], eax
pop eax
push eax
push dword [ebp + 8]
call sub.kernel32.dll_LoadResource
or eax, eax
jne 0x4014cb
jmp 0x4014ce
mov dword [ebp - 4], eax
popal
mov eax, dword [ebp - 4]
leave
ret 8

Function at 0x401535
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbfc
mov byte [ebp - 0x401], 0
pushal
mov esi, dword [ebp + 0xc]
lea ebx, [ebp - 0x400]
push esi
push ebx
call sub.kernel32.dll_lstrcpyA
xor ecx, ecx
jmp 0x40155b
inc ecx
cmp byte [ecx + ebx], 0x5c
jne 0x40155a
mov byte [ecx + ebx], 0
lea esi, [ecx + esi + 1]
push ebx
call fcn.00401647
or eax, eax
je 0x4015c2
mov byte [ebx], 0
test dword [ebp + 0x14], 8
je 0x401586
mov edx, 1
jmp 0x401588
xor edx, edx
push edx
push dword [ebp + 0x10]
push esi
push eax
push ebx
call fcn.00402aa0
push section..data
push ebx
call fcn.004015f7
test dword [ebp + 0x14], 1
je 0x4015ae
push ebx
call fcn.004015ce
cmp byte [ebx], 0
je 0x4015c2
push ebx
push dword [ebp + 8]
call sub.kernel32.dll_SetEnvironmentVariableA
mov byte [ebp - 0x401], al
popal
movzx eax, byte [ebp - 0x401]
leave
ret 0x10

Function at 0x401745
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
pushal
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call sub.kernel32.dll_CreateThread
push eax
call sub.kernel32.dll_CloseHandle
popal
leave
ret 8
Function at 0x401b51
Capabilities:
Create process on windows
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf8
push esi
push edi
push ebx
lea eax, [ebp - 0x400]
push eax
push 0x400
call sub.kernel32.dll_GetTempPathA
push str._regpatch.reg
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_lstrcatA
mov esi, dword [ebp + 8]
test dword [esi + 5], 1
je 0x401bcb
mov eax, dword [esi + 1]
add eax, 0x100000
mov dword [ebp - 0x408], eax
push 4
push 0x1000
push eax
push 0
call sub.kernel32.dll_VirtualAlloc
mov dword [ebp - 0x404], eax
lea eax, [esi + 9]
push dword [ebp - 0x408]
push dword [ebp - 0x404]
push eax
call fcn.00401c5d
mov ecx, dword [ebp - 0x404]
jmp 0x401bd1
mov eax, dword [esi + 1]
lea ecx, [esi + 9]
push eax
push ecx
lea eax, [ebp - 0x400]
push eax
call fcn.00402974
test eax, eax
je 0x401c21
mov edi, 0x404aac
push str._s__
push edi
call sub.kernel32.dll_lstrcpyA
lea eax, [ebp - 0x400]
push eax
push edi
call sub.kernel32.dll_lstrcatA
push 0x4040d8
push edi
call sub.kernel32.dll_lstrcatA
push 5
push 0
push edi
push str.regedit.exe
push str.open
push 0
call sub.shell32.dll_ShellExecuteA
push 0x1f4
call sub.kernel32.dll_Sleep
test dword [esi + 5], 1
je 0x401c4a
push 0x4000
push dword [ebp - 0x408]
push dword [ebp - 0x404]
call sub.kernel32.dll_VirtualFree
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_DeleteFileA
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x401c5d
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push esi
push edi
mov eax, dword [ebp + 0x10]
add eax, 0x100000
mov dword [ebp - 8], eax
push 4
push 0x1000
push eax
push 0
call sub.kernel32.dll_VirtualAlloc
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push dword [ebp - 8]
push dword [ebp - 4]
push esi
call sub.kernel32.dll_ExpandEnvironmentStringsA
mov esi, dword [ebp - 4]
or eax, eax
je 0x401ce9
push dword [ebp + 8]
push esi
call sub.kernel32.dll_lstrcmpA
or eax, eax
je 0x401cde
mov bl, 0
jmp 0x401cd4
lodsb al, byte [esi]
cmp word [esi], 0x5b0a
jne 0x401cb6
mov bl, 1
cmp al, 0x5c
jne 0x401cca
or bl, bl
jne 0x401cca
cmp byte [esi], 0x5c
je 0x401cca
cmp byte [esi - 2], 0x5c
je 0x401cca
stosb byte es:[edi], al
stosb byte es:[edi], al
cmp word [esi], 0xd5d
jne 0x401cd4
mov bl, 0
cmp byte [esi], 0
jne 0x401cac
mov byte [edi], 0
jmp 0x401ce9
push dword [ebp + 8]
push dword [ebp + 0xc]
call sub.kernel32.dll_lstrcpyA
push 0x4000
push dword [ebp - 8]
push dword [ebp - 4]
call sub.kernel32.dll_VirtualFree
push dword [ebp + 0xc]
call sub.kernel32.dll_lstrlenA
pop edi
pop esi
leave
ret 0xc
Function at 0x40216a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ecx
push edx
push esi
push edi
push dword [ebp + 8]
call fcn.00402940
cmp eax, 0xffffffff
je 0x4021ec
mov dword [ebp - 4], eax
push 0
push 0
push 3
push 0
push 0
push 0x80000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x4021e8
mov dword [ebp - 0xc], eax
push 4
push 0x1000
push dword [ebp - 4]
push 0
call sub.kernel32.dll_VirtualAlloc
mov esi, eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push esi
push dword [ebp - 0xc]
call sub.kernel32.dll_ReadFile
add esi, dword [esi + 0x3c]
mov eax, dword [esi + 0x50]
push eax
push dword [ebp - 0xc]
call sub.kernel32.dll_CloseHandle
push 0x4000
push dword [ebp - 4]
push esi
call sub.kernel32.dll_VirtualFree
pop eax
jmp 0x4021ee
xor eax, eax
jmp 0x4021ee
xor eax, eax
pop edi
pop esi
pop edx
pop ecx
leave
ret 4
Function at 0x40275e
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
pushal
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x4027de
mov dword [ebp - 4], eax
push 0
push 0
push 0
push 2
push 0
push eax
call sub.kernel32.dll_CreateFileMappingA
or eax, eax
je 0x4027d6
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 4
push eax
call sub.kernel32.dll_MapViewOfFile
or eax, eax
je 0x4027ce
mov dword [ebp - 0xc], eax
push 0
push dword [ebp - 4]
call sub.kernel32.dll_GetFileSize
push dword [ebp - 0xc]
push eax
call fcn.00401010
mov dword [ebp - 0x10], eax
push dword [ebp - 0xc]
call sub.kernel32.dll_UnmapViewOfFile
push dword [ebp - 8]
call sub.kernel32.dll_CloseHandle
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
popal
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x402974
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x40299f
xor eax, eax
leave
ret 0xc
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
push dword [ebp - 4]
call sub.kernel32.dll_FlushFileBuffers
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 8]
leave
ret 0xc

Function at 0x402aa0
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff60
cmp dword [ebp + 0x18], 1
jne 0x402ae5
mov dword [ebp - 0xa0], 0x94
lea eax, [ebp - 0xa0]
push eax
call sub.kernel32.dll_GetVersionExA
cmp dword [ebp - 0x9c], 5
jb 0x402ade
cmp dword [ebp - 0x98], 1
jb 0x402ade
mov ecx, 0x101
jmp 0x402aea
mov ecx, 1
jmp 0x402aea
mov ecx, 1
lea eax, [ebp - 4]
push eax
push ecx
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call sub.advapi32.dll_RegOpenKeyExA
or eax, eax
jne 0x402b31
mov eax, 1
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0x400
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0x14]
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA
push eax
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey
pop eax
leave
ret 0x14

Function at 0x402b40
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
pushal
cmp dword [ebp + 8], 0
jne 0x402b80
push 0
call sub.kernel32.dll_GetModuleHandleA
lea esi, [ebp - 0x200]
push 0x200
push esi
push eax
call sub.kernel32.dll_GetModuleFileNameA
push esi
call sub.kernel32.dll_lstrlenA
push esi
add esi, eax
jmp 0x402b75
dec esi
cmp byte [esi], 0x5c
jne 0x402b74
mov byte [esi], 0
pop esi
jmp 0x402b83
mov esi, dword [ebp + 8]
push esi
call sub.kernel32.dll_SetCurrentDirectoryA
popal
leave
ret 4
Function at 0x401cb0
Capabilities:
Connect pipe

Disassembly:
imul eax, eax, 0x2028
push esi
lea esi, [eax + ecx]
xor eax, eax
lea edx, [esi + 8]
mov dword [esi + 0x202c], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x401cf4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ConnectNamedPipe_failed_with__d._n
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
or eax, 0xffffffff
pop esi
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x217
je 0x401d31
cmp eax, 0x3e5
je 0x401d22
call edi
push eax
push str.ConnectNamedPipe_failed_with__d._n
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
pop edi
or eax, 0xffffffff
pop esi
ret
pop edi
mov dword [esi + 0x202c], 1
xor eax, eax
pop esi
ret
mov ecx, dword [esi + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
xor eax, eax
pop esi
ret
Function at 0x402ed0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x40532f
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x408018]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push edi
mov eax, dword [0x408018]
xor eax, esp
push eax
lea eax, [esp + 0x138]
mov dword fs:[0], eax
push 0x104
lea eax, [esp + 0x34]
xor ebx, ebx
push eax
mov dword [esp + 0x148], ebx
mov edi, ecx
push ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, edi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov dword [esp + 0x140], ebx
lea ecx, [esp + 0x30]
mov dword [esp + 0xc], 1
call fcn.004046f0
mov ecx, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edx, dword [ecx]
push edx
push 0x406594
mov ecx, edi
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_last_of_char_const___unsigned_int_const]
push eax
push ebx
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
push eax
mov ecx, edi
mov dword [esp + 0x144], 1
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x14]
mov byte [esp + 0x140], bl
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, edi
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.004048ea
add esp, 0x138
ret
Function at 0x4042e0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x94
mov eax, dword [0x408018]
xor eax, esp
mov dword [esp + 0x90], eax
push edi
push 0x80
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jne 0x404334
xor al, al
pop edi
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.004048ea
add esp, 0x94
ret
push esi
push edi
call sub.MSVCR90.dll_void____cdecl_operator_new___unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 8], 0
test esi, esi
jne 0x40434f
push eax
jmp 0x4043ce
push esi
push edi
push 0
lea eax, [esp + 0x20]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4043cd
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push edx
push 0x406594
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4043cd
mov eax, dword [esp + 8]
test eax, eax
je 0x4043cd
cmp dword [esp + 0xc], 0x34
jne 0x4043cd
movzx ecx, word [eax + 0xc]
movzx edx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
push edx
movzx edx, word [eax + 0xa]
push ecx
push edx
push str._d._d._d._d
push 0x40
push ebx
call dword [sym.imp.MSVCR90.dll_sprintf_s]
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 0x20
pop esi
mov al, 1
pop edi
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.004048ea
add esp, 0x94
ret
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
mov ecx, dword [esp + 0x9c]
add esp, 4
pop esi
pop edi
xor ecx, esp
xor al, al
call fcn.004048ea
add esp, 0x94
ret

Function at 0x4048ea
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x408018]
jne 0x4048f4
repz ret
jmp fcn.00404ccc
Function at 0x401180
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0xc
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, ecx
push 0x400
mov ecx, edi
mov dword [esp + 0xc], 0x400
call sub.MFC42.DLL_CString::GetBuffer
lea ecx, [esp + 0xc]
lea edx, [esp + 8]
push ecx
mov ecx, dword [esi + 4]
push 0
push 0
push 0
push edx
push eax
mov eax, dword [esp + 0x30]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push 0xffffffffffffffff
mov ecx, edi
mov esi, eax
call sub.MFC42.DLL_CString::ReleaseBuffer
xor eax, eax
pop edi
test esi, esi
sete al
pop esi
add esp, 0xc
ret 8

Function at 0x4011e0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x40273f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
push edi
lea ecx, [esp + 8]
mov dword [esp + 0x10], 0
call fcn.004024a4
mov edi, dword [esp + 0x28]
lea eax, [esp + 0xc]
push eax
push edi
mov ecx, esi
mov dword [esp + 0x24], 1
call fcn.00401150
cmp eax, 1
jne 0x40126a
mov ecx, dword [esp + 0xc]
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [edi]
lea edx, [esp + 0xc]
push edx
push eax
mov eax, dword [esi + 4]
push 0
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
mov esi, eax
call sub.MFC42.DLL_CString::ReleaseBuffer
test esi, esi
je 0x40126a
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::Empty
mov esi, dword [esp + 0x24]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x10], 1
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 8

Function at 0x4012b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
mov esi, ecx
push edi
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], 0
call fcn.00401150
cmp eax, 4
jne 0x401304
mov eax, dword [edi]
lea ecx, [esp + 0xc]
lea edx, [esp + 8]
push ecx
push edx
push 0
push 0
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x401304
pop edi
xor eax, eax
pop esi
add esp, 8
ret 4
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 8
ret 4
Function at 0x1000b8f0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x1006b36b
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.1005fcb2
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x1000b972
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.1005db9d
mov eax, dword [eax]
push 0x100821c0
push eax
call fcn.10050a54
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.1005ff3d
test bl, bl
je 0x1000b972
push 0x100821c0
lea ecx, [esp + 0xc]
call fcn.100602cd
push 0x10085d6c
lea ecx, [esp + 0xc]
call fcn.100602cd
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 0x1000b9ae
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.1005ff3d
jmp 0x1000ba79
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 0x1000ba32
lea edx, [esp + 0x7c]
push 0x10085d68
push edx
call fcn.10050a54
add esp, 8
test eax, eax
je 0x1000ba32
lea eax, [esp + 0x7c]
push 0x10085d64
push eax
call fcn.10050a54
add esp, 8
test eax, eax
je 0x1000ba32
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 0x1000b9c2
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.1005ff3d
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 0x1000c270
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 0x1000c2d2
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