joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6a306570
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lcall 0xc635, 0x9b45c633
inc ebp
pushfd
xor al, 0xc6
inc ebp
popfd
and dh, al
inc ebp
sahf
sub eax, 0x119f45c6
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.6a3061ab
push eax
push esi
push dword [ebp + 8]
call fcn.6a306160
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.6a3061ab
push eax
push esi
push dword [ebp + 8]
call fcn.6a306160
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.6a30619b
mov ah, 0x64
outsb dx, byte [esi]
inc ebx
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
mov byte [ebp - 0x82], 0xe9
mov byte [ebp - 0x81], bl
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.6a30619b
jne 0x6a3066e4
or ch, 0x8d
test dword [edi + edi*8 - 1], edi
call dword [eax - 0x18]
sbb al, 0xfb
invalid
rcl dword [eax], 0x8d
add al, 0xc1
Function at 0x6a306ea0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
mov byte [ebp - 0x6b0], 1
mov byte [ebp - 0x6af], 0x34
mov byte [ebp - 0x6ae], 0x16
mov byte [ebp - 0x6ad], 0xb
mov byte [ebp - 0x6ac], 7
mov byte [ebp - 0x6ab], 1
mov byte [ebp - 0x6aa], 0x17
mov byte [ebp - 0x6a9], 0x17
mov byte [ebp - 0x6a8], 0x29
mov byte [ebp - 0x6a7], 1
mov byte [ebp - 0x6a6], 9
mov byte [ebp - 0x6a5], 0xb
mov byte [ebp - 0x6a4], 0x16
mov byte [ebp - 0x6a3], 0x1d
mov byte [ebp - 0x6a2], 0x64
lea eax, [ebp - 0x6b8]
push eax
call fcn.6a3061ab
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.6a306160
add esp, 0xc
mov dword [ebp - 0x690], eax
mov byte [ebp - 0x6a0], 0x8b
or byte [ebp - 0x69f], 0xff
mov byte [ebp - 0x69e], 0x55
mov byte [ebp - 0x69d], 0x8b
mov byte [ebp - 0x69c], 0xec
lea eax, [ebp - 0x694]
push eax
push 5
lea eax, [ebp - 0x6a0]
push eax
push dword [ebp - 0x33c]
push 0xffffffffffffffff
call dword [ebp - 0x690]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x6bc], eax
push 0x1000
push 8
push dword [ebp - 0x674]
call dword [ebp - 0x67c]
mov dword [ebp - 0x698], eax
call fcn.6a30619b
imul esp, esi, 0xb5ff3066
push 0x8dfffff9
test dword [eax - 7], eax
invalid

Function at 0x6a307120
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [ecx + 0x11fffffc], esp
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
Function at 0x6a30e690
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
lea esi, [ebp + 0xc]
mov ebx, dword [sym.imp.msvcrt.dll__iob]
add ebx, 0x40
mov dword [esp + 8], 0x17
mov dword [esp + 0xc], ebx
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov eax, dword [ebp + 8]
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x6a30e6e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x44
mov ebx, eax
test ecx, ecx
jne 0x6a30e6f2
mov ebx, dword [ebp - 4]
leave
ret
lea eax, [ebp - 0x28]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], ecx
call sub.KERNEL32.dll_VirtualQuery
mov edx, dword [ebp - 0x2c]
sub esp, 0xc
mov ecx, dword [ebp - 0x30]
test eax, eax
je 0x6a30e7aa
mov eax, dword [ebp - 0x14]
cmp eax, 4
je 0x6a30e75d
cmp eax, 0x40
je 0x6a30e75d
lea eax, [ebp - 0xc]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], ecx
call sub.KERNEL32.dll_VirtualProtect
mov ecx, dword [ebp - 0x30]
sub esp, 0x10
mov edx, dword [ebp - 0x2c]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x14]
cmp eax, 4
je 0x6a30e6ed
cmp eax, 0x40
je 0x6a30e6ed
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
mov ebx, dword [ebp - 4]
sub esp, 0x10
leave
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.6a30e690
lea esi, [esi]
lea edi, [edi]
Function at 0x4016b0
Capabilities:
Create process on windows
Enumerate gui resources

Disassembly:
sub esp, 0x158
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x5d]
mov byte [esp + 0x5c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x164]
lea ecx, [esp + 0x5c]
push eax
push str.explorer
push str.__s____s_
push ecx
xor esi, esi
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x28]
add esp, 0x10
rep stosd dword es:[edi], eax
lea edx, [esp + 8]
lea eax, [esp + 0x18]
push edx
push eax
push esi
push esi
push 0x220
push esi
push esi
lea ecx, [esp + 0x78]
push esi
push ecx
push esi
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x6c], 1
mov word [esp + 0x70], 0xa
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401778
mov edx, dword [esp + 0x10]
push edx
push 0x401670
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 8]
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call esi
pop edi
mov eax, 1
pop esi
add esp, 0x158
ret 4
mov eax, esi
pop edi
pop esi
add esp, 0x158
ret 4
Function at 0x4071ac
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40f003
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1b0
push edi
mov dword [ebp - 0x1bc], ecx
mov dword [ebp - 0x1b8], 0
mov byte [ebp - 0x1a4], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x1a3]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0xa0], 0
mov ecx, 0x24
xor eax, eax
lea edi, [ebp - 0x9c]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x1a8]
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 4], 1
mov dword [ebp - 0xa0], 0x94
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 2
jne 0x4072cc
lea ecx, [ebp - 0x1b0]
push ecx
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4072ca
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x1ac], eax
cmp dword [ebp - 0x1ac], 0
je 0x4072ca
push str.SHGetFolderPathA
mov edx, dword [ebp - 0x1ac]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1b4], eax
cmp dword [ebp - 0x1b4], 0
je 0x4072bd
lea eax, [ebp - 0x1a4]
push eax
push 0
mov ecx, dword [ebp - 0x1b0]
push ecx
push 5
call fcn.00409500
mov ecx, eax
call fcn.00409540
push eax
call dword [ebp - 0x1b4]
mov edx, dword [ebp - 0x1ac]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4072ea
push 0
push 5
lea eax, [ebp - 0x1a4]
push eax
call fcn.00409500
mov ecx, eax
call fcn.00409540
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea ecx, [ebp - 0x1a4]
push ecx
lea ecx, [ebp - 0x1a8]
call sub.MFC42.DLL_CString::operator_1
lea edx, [ebp - 0x1a8]
push edx
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [ebp - 0x1b8]
or al, 1
mov dword [ebp - 0x1b8], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1a8]
call fcn.0040e48c
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x408f89
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40f393
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x23c
push edi
mov dword [ebp - 0x238], ecx
mov dword [ebp - 0x234], 0
lea ecx, [ebp - 0x120]
call sym.OpenScanf.exe_public:_void___thiscall_CMfsInfo::constructor_void_
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x118]
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 2
push str.PcMfsCfgInit.ini
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x120]
call sym.OpenScanf.exe_public:_class_CString___thiscall_CMfsInfo::GetInstPath_void_
mov dword [ebp - 0x23c], eax
mov ecx, dword [ebp - 0x23c]
mov dword [ebp - 0x240], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x240]
push edx
lea eax, [ebp - 0x230]
push eax
call sub.MFC42.DLL_operator
mov dword [ebp - 0x244], eax
mov ecx, dword [ebp - 0x244]
mov dword [ebp - 0x248], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x248]
push edx
lea ecx, [ebp - 0x118]
call fcn.0040e4a4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x230]
call fcn.0040e48c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x22c]
call fcn.0040e48c
mov byte [ebp - 0x224], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x223]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x10], 0x104
mov byte [ebp - 0x114], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x113]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea ecx, [ebp - 0x118]
call fcn.00404de0
push eax
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x114]
push edx
mov eax, dword [ebp + 0xc]
push eax
push str.DefaultData
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x228]
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x228]
call sub.MFC42.DLL_CString::Empty
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x228]
call sub.MFC42.DLL_CString::operator_1
lea edx, [ebp - 0x228]
push edx
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [ebp - 0x234]
or al, 1
mov dword [ebp - 0x234], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x228]
call fcn.0040e48c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x118]
call fcn.0040e48c
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x120]
call sym.OpenScanf.exe_public_virtual:_void___thiscall_CMfsInfo::destructor_void_
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x40920c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], 0
push 0
push 0
push 5
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40923d
xor eax, eax
jmp 0x4092d1
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4092c1
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
push 5
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x4092c1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCRT.dll_atol]
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 1
je 0x4092b4
cmp dword [ebp - 8], 2
je 0x4092b4
cmp dword [ebp - 8], 0x32
jl 0x409299
cmp dword [ebp - 8], 0x3c
jl 0x4092b4
cmp dword [ebp - 8], 0x1f4
jl 0x4092ab
cmp dword [ebp - 8], 0x258
jl 0x4092b4
mov dword [ebp - 0x18], 1
jmp 0x4092bb
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x4096e2
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push edi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 1
mov dword [ebp - 0x24], 0
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x24], 0x20
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
cmp dword [ebp + 8], 0
je 0x409725
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov dword [ecx], edx
cmp dword [ebp + 0xc], 0
je 0x409733
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
pop edi
mov esp, ebp
pop ebp
ret 8

Function at 0x40973d
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x409778
cmp dword [ebp + 0x10], 0
je 0x409778
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x409778
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40cb11
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xc]
cmp dword [eax + 8], 0
je 0x40cba9
cmp dword [ebp + 8], 0
je 0x40cb61
mov ecx, dword [ebp - 0xc]
call sym.OpenScanf.exe_private:_void___thiscall_CRegOpe::CloseKeyProc_void_
mov ecx, dword [ebp - 0xc]
add ecx, 4
push ecx
push 0x20019
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40cb9b
mov edx, dword [ebp - 0xc]
cmp dword [edx + 4], 0
je 0x40cb9b
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40cb9b
mov dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
je 0x40cba9
mov ecx, dword [ebp - 0xc]
call sym.OpenScanf.exe_private:_void___thiscall_CRegOpe::CloseKeyProc_void_
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40cbb2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xc]
cmp dword [eax + 8], 0
je 0x40cc58
cmp dword [ebp + 0x18], 0
je 0x40cc58
cmp dword [ebp + 8], 0
je 0x40cc0c
mov ecx, dword [ebp - 0xc]
call sym.OpenScanf.exe_private:_void___thiscall_CRegOpe::CloseKeyProc_void_
mov ecx, dword [ebp - 0xc]
add ecx, 4
push ecx
push 0x20019
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40cc4a
mov edx, dword [ebp - 0xc]
cmp dword [edx + 4], 0
je 0x40cc4a
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40cc4a
mov dword [ebp - 8], 1
cmp dword [ebp + 0x1c], 0
je 0x40cc58
mov ecx, dword [ebp - 0xc]
call sym.OpenScanf.exe_private:_void___thiscall_CRegOpe::CloseKeyProc_void_
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0x18
Function at 0x40cc61
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
cmp dword [eax + 8], 0
je 0x40cd1f
cmp dword [ebp + 0xc], 0
je 0x40cd1f
cmp dword [ebp + 0x14], 0
je 0x40cd1f
cmp dword [ebp + 8], 0
je 0x40ccd3
mov ecx, dword [ebp - 0x10]
call sym.OpenScanf.exe_private:_void___thiscall_CRegOpe::CloseKeyProc_void_
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
add edx, 4
push edx
push 0
push 0x20006
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40cd11
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 0
je 0x40cd11
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40cd11
mov dword [ebp - 8], 1
cmp dword [ebp + 0x1c], 0
je 0x40cd1f
mov ecx, dword [ebp - 0x10]
call sym.OpenScanf.exe_private:_void___thiscall_CRegOpe::CloseKeyProc_void_
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0x18

Function at 0x40cd28
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xc]
cmp dword [eax + 8], 0
je 0x40cdb4
cmp dword [ebp + 8], 0
je 0x40cdb4
mov ecx, dword [ebp - 0xc]
add ecx, 4
push ecx
push 0x20019
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40cdac
mov edx, dword [ebp - 0xc]
cmp dword [edx + 4], 0
je 0x40cdac
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.SHLWAPI.dll_SHQueryInfoKeyA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40cdac
mov dword [ebp - 8], 1
mov ecx, dword [ebp - 0xc]
call sym.OpenScanf.exe_private:_void___thiscall_CRegOpe::CloseKeyProc_void_
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0x14
Function at 0x40cdbd
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xc]
cmp dword [eax + 8], 0
je 0x40ce51
cmp dword [ebp + 8], 0
je 0x40ce51
cmp dword [ebp + 0x10], 0
je 0x40ce51
cmp dword [ebp + 0x14], 0
je 0x40ce51
mov ecx, dword [ebp - 0xc]
add ecx, 4
push ecx
push 0x20019
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40ce49
mov edx, dword [ebp - 0xc]
cmp dword [edx + 4], 0
je 0x40ce49
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.SHLWAPI.dll_SHEnumKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40ce49
mov dword [ebp - 8], 1
mov ecx, dword [ebp - 0xc]
call sym.OpenScanf.exe_private:_void___thiscall_CRegOpe::CloseKeyProc_void_
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40ce5a
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xc]
cmp dword [eax + 8], 0
je 0x40cee0
cmp dword [ebp + 8], 0
je 0x40cee0
cmp dword [ebp + 0xc], 0
je 0x40cee0
mov ecx, dword [ebp - 0xc]
add ecx, 4
push ecx
push 0xf003f
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40ced8
mov edx, dword [ebp - 0xc]
cmp dword [edx + 4], 0
je 0x40ced8
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40ced8
mov dword [ebp - 8], 1
mov ecx, dword [ebp - 0xc]
call sym.OpenScanf.exe_private:_void___thiscall_CRegOpe::CloseKeyProc_void_
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 8
Function at 0x40cee9
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xc]
cmp dword [eax + 8], 0
je 0x40cf6f
cmp dword [ebp + 8], 0
je 0x40cf6f
cmp dword [ebp + 0xc], 0
je 0x40cf6f
mov ecx, dword [ebp - 0xc]
add ecx, 4
push ecx
push 0xf003f
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40cf67
mov edx, dword [ebp - 0xc]
cmp dword [edx + 4], 0
je 0x40cf67
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40cf67
mov dword [ebp - 8], 1
mov ecx, dword [ebp - 0xc]
call sym.OpenScanf.exe_private:_void___thiscall_CRegOpe::CloseKeyProc_void_
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 8
Function at 0x40632d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x40633c
pop dword [ebp - 0x18]
mov eax, 0xffb76773
sub eax, 0xff770437
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x719adc3c
add dword [ebp - 0x28], 0xdcb7690f
mov dword [ebp - 0x24], 0xe2e15945
sub dword [ebp - 0x24], 0xb0ae0d00
mov dword [ebp - 0x20], 0xb229ab4d
sub dword [ebp - 0x20], 0x65dd671f
mov dword [ebp - 0x1c], 0x9ac19d3c
sub dword [ebp - 0x1c], 0x9ac19d3c
lea eax, [ebp - 0x28]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x4b436ef2
sub dword [ebp - 0x28], 0xd6d1059c
mov dword [ebp - 0x24], 0xcda13a92
add dword [ebp - 0x24], 0x73cb26e3
mov dword [ebp - 0x20], 0x24fd6f12
sub dword [ebp - 0x20], 0xc18e02a6
mov dword [ebp - 0x1c], 0x3cb7656b
sub dword [ebp - 0x1c], 0x3cb7656b
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0x5f2f5313
add eax, 0xa1111ded
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x361ed
push 0
call eax
mov ecx, 0x83ebfea8
sub ecx, 0x83ebb8a6
xor edi, edi
add edi, eax
mov ebx, 0x410000
add ebx, dword [ebp - 0x18]
mov edx, 0xac57cc0f
sub edx, 0x3104ea16
xor dword [ebp - 0x14], 0xba3db753
mov esi, dword [ebx]
add dword [ebp - 0xc], esi
add esi, edx
sub dword [ebp - 4], 0xcee7aa10
mov dword [edi], esi
add dword [ebp - 8], edx
add edi, 0xa91934af
add edi, 0x56e6cb55
add ebx, 4
loop 0x406455
add eax, 0x2d8b8238
sub eax, 0x2d8a775d
mov ebx, eax
add eax, 0xc1f8c26e
add eax, 0x3e073d97
mov ecx, 0x400000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941