joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4069d3
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
push esi
push edi
lea edi, [ebp - 0xac]
push 0x2b
pop ecx
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x43f004]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x20
pop ecx
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea edi, [ebp - 0x8c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
and dword [ebp - 0x94], 0
and dword [ebp - 0x98], 0
cmp dword [ebp - 0x98], 8
jae 0x406b8b
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x98]
movzx eax, byte [eax]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x98]
inc eax
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 8
jae 0x406a6e
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x98]
movzx eax, byte [eax]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0x98]
inc eax
mov dword [ebp - 0x98], eax
jmp 0x406a75
and dword [ebp - 0xa8], 0
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xa0], eax
cmp dword [ebp - 0x98], 8
jae 0x406aab
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x98]
movzx eax, byte [eax]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x98]
inc eax
mov dword [ebp - 0x98], eax
jmp 0x406ab2
and dword [ebp - 0xac], 0
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x9c]
shr eax, 2
mov ecx, dword [ebp - 0x94]
mov edx, dword [ebp + 0xc]
mov ax, word [ebp + eax*2 - 0x8c]
mov word [edx + ecx*2], ax
mov eax, dword [ebp - 0x94]
inc eax
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0xa0]
shr eax, 4
mov ecx, dword [ebp - 0x9c]
and ecx, 3
shl ecx, 4
or eax, ecx
mov ecx, dword [ebp - 0x94]
mov edx, dword [ebp + 0xc]
mov ax, word [ebp + eax*2 - 0x8c]
mov word [edx + ecx*2], ax
mov eax, dword [ebp - 0x94]
inc eax
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0xa4]
shr eax, 6
mov ecx, dword [ebp - 0xa0]
and ecx, 0xf
shl ecx, 2
or eax, ecx
mov ecx, dword [ebp - 0x94]
mov edx, dword [ebp + 0xc]
mov ax, word [ebp + eax*2 - 0x8c]
mov word [edx + ecx*2], ax
mov eax, dword [ebp - 0x94]
inc eax
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0xa4]
and eax, 0x3f
mov ecx, dword [ebp - 0x94]
mov edx, dword [ebp + 0xc]
mov ax, word [ebp + eax*2 - 0x8c]
mov word [edx + ecx*2], ax
mov eax, dword [ebp - 0x94]
inc eax
mov dword [ebp - 0x94], eax
jmp 0x406a18
mov eax, dword [ebp - 0x94]
dec eax
mov dword [ebp - 0x94], eax
push 0x3d
pop eax
mov ecx, dword [ebp - 0x94]
mov edx, dword [ebp + 0xc]
mov word [edx + ecx*2], ax
mov eax, dword [ebp - 0x94]
inc eax
mov dword [ebp - 0x94], eax
xor eax, eax
mov ecx, dword [ebp - 0x94]
mov edx, dword [ebp + 0xc]
mov word [edx + ecx*2], ax
mov al, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x406be7]
call fcn.00411ca2
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411d30
leave
ret
Function at 0x40803b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413c29
mov eax, dword fs:[0]
push eax
sub esp, 0xa3c
push esi
push edi
lea edi, [ebp - 0xa48]
mov ecx, 0x28f
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x43f004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
push 0
lea eax, [ebp - 0x21c]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
mov byte [ebp - 0xa29], 0
push 0x400
lea eax, [ebp - 0xa24]
push eax
call fcn.00407be8
pop ecx
pop ecx
mov dword [ebp - 0xa30], eax
cmp dword [ebp - 0xa30], 0
je 0x408103
mov esi, esp
push 0x426fe8
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
cmp esi, esp
call fcn.00411cf8
mov esi, esp
lea eax, [ebp - 0xa24]
push eax
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
cmp esi, esp
call fcn.00411cf8
jmp 0x408126
mov esi, esp
push 0x426eec
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
cmp esi, esp
call fcn.00411cf8
mov esi, esp
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
cmp esi, esp
call fcn.00411cf8
lea ecx, [ebp - 0xa40]
call fcn.00411152
and dword [ebp - 4], 0
push 0x105
push 0
push dword [ebp + 8]
push str.Local_AppData
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0xa40]
call fcn.0041162d
mov esi, esp
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
cmp esi, esp
call fcn.00411cf8
test eax, eax
jne 0x4081b5
mov esi, esp
push 0
push 0x1c
push dword [ebp + 8]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp esi, esp
call fcn.00411cf8
test eax, eax
je 0x4081b3
mov byte [ebp - 0xa29], 1
jmp 0x4081bc
mov byte [ebp - 0xa29], 1
mov al, byte [ebp - 0xa29]
mov byte [ebp - 0xa45], al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa40]
call fcn.0041117c
mov al, byte [ebp - 0xa45]
push edx
mov ecx, ebp
push eax
lea edx, [0x408217]
call fcn.00411ca2
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411d30
add esp, 0xa48
cmp ebp, esp
call fcn.00411cf8
leave
ret
Function at 0x408517
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
push esi
push edi
lea edi, [ebp - 0x284]
mov ecx, 0xa1
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x43f004]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
push 0
lea eax, [ebp - 0x210]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
and dword [ebp - 0x21c], 0
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0x43b8a0
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x40863b
mov esi, esp
push dword [ebp - 0x21c]
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
cmp esi, esp
call fcn.00411cf8
test eax, eax
jne 0x408626
mov esi, esp
push str.control.exe__name_Microsoft.DefaultPrograms__page_pageDefaultProgram
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
cmp esi, esp
call fcn.00411cf8
test eax, eax
jne 0x408626
push 0x44
push 0
lea eax, [ebp - 0x268]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
xor eax, eax
lea edi, [ebp - 0x280]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x268], 0x44
mov esi, esp
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x268]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp esi, esp
call fcn.00411cf8
mov esi, esp
push dword [ebp - 0x21c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp esi, esp
call fcn.00411cf8
push edx
mov ecx, ebp
push eax
lea edx, [0x408667]
call fcn.00411ca2
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411d30
add esp, 0x284
cmp ebp, esp
call fcn.00411cf8
leave
ret
Function at 0x40a783
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push edi
push ecx
lea edi, [ebp - 0x58]
push 0x16
pop ecx
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x43f004]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x40a7bb
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0x3d]
test eax, eax
jne 0x40a7c2
mov al, 1
jmp 0x40a8ca
call fcn.0040b606
mov esi, esp
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x50], eax
mov edi, esp
mov ecx, dword [ebp - 0x50]
call dword [0x414340]
cmp edi, esp
call fcn.00411cf8
mov ecx, dword [ebp - 8]
call dword [ebp - 0x50]
cmp esi, esp
call fcn.00411cf8
mov dword [ebp - 0x48], eax
call fcn.0040b606
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0040b60e
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x40a81c
xor al, al
jmp 0x40a8ca
mov dword [ebp - 0xc], 0x20
mov esi, esp
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 8]
add eax, 0x40
push eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x38]
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
cmp esi, esp
call fcn.00411cf8
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x40a862
cmp dword [ebp - 0x54], 1
je 0x40a869
cmp dword [ebp - 0x54], 3
je 0x40a8bd
jmp 0x40a8c8
mov eax, dword [ebp - 8]
mov byte [eax + 0x3d], 0
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x30]
sub eax, ecx
mov dword [ebp - 0x44], eax
je 0x40a8a0
mov esi, esp
mov eax, dword [ebp - 8]
push dword [eax + 0x4c]
push dword [ebp - 0x44]
push 1
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp esi, esp
call fcn.00411cf8
cmp dword [ebp - 0x44], eax
je 0x40a8a0
xor al, al
jmp 0x40a8ca
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0x3d]
test eax, eax
jne 0x40a8b4
mov dword [ebp - 0x58], 1
jmp 0x40a8b8
and dword [ebp - 0x58], 0
mov al, byte [ebp - 0x58]
jmp 0x40a8ca
mov eax, dword [ebp - 8]
mov byte [eax + 0x3d], 0
mov al, 1
jmp 0x40a8ca
xor al, al
push edx
mov ecx, ebp
push eax
lea edx, [0x40a8f3]
call fcn.00411ca2
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411d30
add esp, 0x58
cmp ebp, esp
call fcn.00411cf8
leave
ret
Function at 0x40cb20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
je 0x40cb67
mov esi, esp
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
cmp esi, esp
call fcn.00411cf8
jmp 0x40cc6f
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov esi, esp
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const]
cmp esi, esp
call fcn.00411cf8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
cmp dword [ebp + 0x10], 0
jl 0x40cc1a
jg 0x40cb9d
cmp dword [ebp + 0xc], 0
jbe 0x40cc1a
cmp dword [ebp - 0x10], 0
jl 0x40cc1a
jg 0x40cbab
cmp dword [ebp - 0x14], 0
jbe 0x40cc1a
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x10]
jg 0x40cbc9
jl 0x40cbbd
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x14]
jae 0x40cbc9
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x14]
push dword [ebp + 8]
mov esi, esp
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
cmp esi, esp
call fcn.00411cf8
push eax
call fcn.0040b577
add esp, 0xc
mov eax, dword [ebp - 0x14]
add eax, dword [ebp + 8]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x10]
sbb ecx, dword [ebp - 0x10]
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], ecx
mov esi, esp
push dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int_]
cmp esi, esp
call fcn.00411cf8
cmp dword [ebp + 0x10], 0
jl 0x40cc63
jg 0x40cc28
cmp dword [ebp + 0xc], 0
jbe 0x40cc63
mov eax, dword [ebp - 4]
cmp dword [eax + 0x4c], 0
je 0x40cc63
mov esi, esp
mov eax, dword [ebp - 4]
push dword [eax + 0x4c]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp esi, esp
call fcn.00411cf8
xor ecx, ecx
mov edx, dword [ebp + 0xc]
sub edx, eax
mov eax, dword [ebp + 0x10]
sbb eax, ecx
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
sbb edx, dword [ebp + 0x10]
pop esi
add esp, 0x14
cmp ebp, esp
call fcn.00411cf8
leave
ret 0xc
Function at 0x4104f2
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
push edi
lea edi, [ebp - 0x40]
push 0x10
pop ecx
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x43f004]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
and dword [ebp - 0x10], 0
mov esi, esp
lea eax, [ebp - 0x10]
push eax
push 0x20008
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp edi, esp
call fcn.00411cf8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp esi, esp
call fcn.00411cf8
test eax, eax
je 0x410666
and dword [ebp - 0x18], 0
and dword [ebp - 0x20], 0
mov esi, esp
lea eax, [ebp - 0x20]
push eax
push 0
push dword [ebp - 0x18]
push 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp esi, esp
call fcn.00411cf8
test eax, eax
jne 0x410654
mov esi, esp
push dword [ebp - 0x20]
push 8
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp edi, esp
call fcn.00411cf8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp esi, esp
call fcn.00411cf8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x410654
mov esi, esp
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x18]
push 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp esi, esp
call fcn.00411cf8
test eax, eax
je 0x410630
mov byte [ebp - 0x30], 0
mov byte [ebp - 0x2f], 0
mov byte [ebp - 0x2e], 0
mov byte [ebp - 0x2d], 0
mov byte [ebp - 0x2c], 0
mov byte [ebp - 0x2b], 5
mov esi, esp
lea eax, [ebp - 0x3c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x12
push 1
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp esi, esp
call fcn.00411cf8
test eax, eax
je 0x410630
mov esi, esp
mov eax, dword [ebp - 0x18]
push dword [eax]
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
cmp esi, esp
call fcn.00411cf8
test eax, eax
je 0x410630
mov dword [ebp - 8], 1
mov esi, esp
push dword [ebp - 0x18]
push 0
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp edi, esp
call fcn.00411cf8
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, esp
call fcn.00411cf8
mov esi, esp
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00411cf8
mov eax, dword [ebp - 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x410692]
call fcn.00411ca2
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411d30
add esp, 0x40
cmp ebp, esp
call fcn.00411cf8
leave
ret
Function at 0x4111db
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 4], ecx
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.004112a7
mov dword [ebp - 8], eax
push 0x208
call fcn.00411d5f
pop ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
push 0x208
push 0
push dword [ebp - 0xc]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
and dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0x200
cmp dword [ebp + 0xc], 0
je 0x41124e
mov dword [ebp - 0x18], 0x100
push dword [ebp - 0xc]
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.004117eb
mov esi, esp
push 0
push dword [ebp - 0x18]
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
cmp esi, esp
call fcn.00411cf8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x411286
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
call fcn.00411d68
pop ecx
mov eax, dword [ebp - 0x14]
pop esi
add esp, 0x20
cmp ebp, esp
call fcn.00411cf8
leave
ret 8

Function at 0x4114cf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
push edi
push ecx
lea edi, [ebp - 0x48]
push 0x12
pop ecx
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 4], ecx
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.004112a7
mov dword [ebp - 8], eax
push 0x208
call fcn.00411d5f
pop ecx
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0xc], eax
push 0x208
push 0
push dword [ebp - 0xc]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
and dword [ebp - 0x2c], 0
mov dword [ebp - 0x38], 4
mov dword [ebp - 0x40], 0x20019
cmp dword [ebp + 0x10], 0
je 0x411540
mov eax, dword [ebp - 0x40]
or eax, 0x100
mov dword [ebp - 0x40], eax
push dword [ebp - 0xc]
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.004117eb
mov esi, esp
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x40]
push 0
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp esi, esp
call fcn.00411cf8
test eax, eax
jne 0x41159b
mov esi, esp
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp esi, esp
call fcn.00411cf8
test eax, eax
je 0x41159b
and dword [ebp - 0x2c], 0
mov esi, esp
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, esp
call fcn.00411cf8
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x48], eax
push dword [ebp - 0x48]
call fcn.00411d68
pop ecx
mov eax, dword [ebp - 0x2c]
push edx
mov ecx, ebp
push eax
lea edx, [0x4115e3]
call fcn.00411ca2
pop eax
pop edx
pop edi
pop esi
add esp, 0x48
cmp ebp, esp
call fcn.00411cf8
leave
ret 0xc
Function at 0x41162d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
push edi
push ecx
lea edi, [ebp - 0x48]
push 0x12
pop ecx
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 4], ecx
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.004112a7
mov dword [ebp - 8], eax
push 0x208
call fcn.00411d5f
pop ecx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0xc], eax
push 0x208
push 0
push dword [ebp - 0xc]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
xor ecx, ecx
mov eax, dword [ebp + 0x18]
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00411d5f
pop ecx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x18]
shl eax, 1
push eax
push 0
push dword [ebp - 0x28]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
mov eax, dword [ebp + 0x18]
shl eax, 1
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], 0x20019
cmp dword [ebp + 0x14], 0
je 0x4116cf
mov eax, dword [ebp - 0x38]
or eax, 0x100
mov dword [ebp - 0x38], eax
push dword [ebp - 0xc]
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.004117eb
mov esi, esp
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x38]
push 0
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp esi, esp
call fcn.00411cf8
test eax, eax
jne 0x41175e
mov esi, esp
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x28]
lea eax, [ebp - 0x20]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp esi, esp
call fcn.00411cf8
test eax, eax
jne 0x411743
mov esi, esp
push dword [ebp - 0x28]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
cmp esi, esp
call fcn.00411cf8
mov ecx, dword [ebp + 0x18]
lea ecx, [ecx + ecx - 2]
cmp eax, ecx
jb 0x411749
and dword [ebp + 0x10], 0
jmp 0x41175e
mov esi, esp
push dword [ebp - 0x28]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp esi, esp
call fcn.00411cf8
mov esi, esp
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, esp
call fcn.00411cf8
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x44], eax
push dword [ebp - 0x44]
call fcn.00411d68
pop ecx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x48], eax
push dword [ebp - 0x48]
call fcn.00411d68
pop ecx
push edx
mov ecx, ebp
push eax
lea edx, [0x4117b1]
call fcn.00411ca2
pop eax
pop edx
pop edi
pop esi
add esp, 0x48
cmp ebp, esp
call fcn.00411cf8
leave
ret 0x14
Function at 0x4118e2
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
push edi
push ecx
lea edi, [ebp - 0x38]
push 0xe
pop ecx
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 4], ecx
and dword [ebp - 8], 0
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.004112a7
mov dword [ebp - 0xc], eax
push 0x208
call fcn.00411d5f
pop ecx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x10], eax
push 0x208
push 0
push dword [ebp - 0x10]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
mov dword [ebp - 0x24], 4
and dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 4
mov dword [ebp - 0x30], 0xf003f
cmp dword [ebp + 0x14], 0
je 0x41195e
mov eax, dword [ebp - 0x30]
or eax, 0x100
mov dword [ebp - 0x30], eax
push dword [ebp - 0x10]
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.004117eb
mov esi, esp
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp - 0x30]
push 0
push 0
push 0
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp esi, esp
call fcn.00411cf8
mov dword [ebp - 0x20], eax
mov esi, esp
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, esp
call fcn.00411cf8
mov esi, esp
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x30]
push 0
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp esi, esp
call fcn.00411cf8
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x411a09
mov esi, esp
push dword [ebp - 0x24]
lea eax, [ebp + 0x10]
push eax
push dword [ebp - 0x2c]
push dword [ebp - 0x28]
push dword [ebp + 0xc]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp esi, esp
call fcn.00411cf8
mov esi, esp
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, esp
call fcn.00411cf8
mov dword [ebp - 8], 1
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x38], eax
push dword [ebp - 0x38]
call fcn.00411d68
pop ecx
mov eax, dword [ebp - 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x411a3e]
call fcn.00411ca2
pop eax
pop edx
pop edi
pop esi
add esp, 0x38
cmp ebp, esp
call fcn.00411cf8
leave
ret 0x10