joyce8/EMBER2024-capa huggingface dataset:
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 [0x43b004]
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 [0x414344]
cmp edi, esp
call fcn.00411bb8
mov ecx, dword [ebp - 8]
call dword [ebp - 0x50]
cmp esi, esp
call fcn.00411bb8
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.00411bb8
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.00411bb8
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.00411b62
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411bf0
add esp, 0x58
cmp ebp, esp
call fcn.00411bb8
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.00411bb8
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.00411bb8
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.00411bb8
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.00411bb8
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.00411bb8
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.00411bb8
leave
ret 0xc
Function at 0x4103b6
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 [0x43b004]
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.00411bb8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp esi, esp
call fcn.00411bb8
test eax, eax
je 0x41052a
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.00411bb8
test eax, eax
jne 0x410518
mov esi, esp
push dword [ebp - 0x20]
push 8
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp edi, esp
call fcn.00411bb8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp esi, esp
call fcn.00411bb8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x410518
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.00411bb8
test eax, eax
je 0x4104f4
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.00411bb8
test eax, eax
je 0x4104f4
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.00411bb8
test eax, eax
je 0x4104f4
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.00411bb8
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, esp
call fcn.00411bb8
mov esi, esp
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00411bb8
mov eax, dword [ebp - 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x410556]
call fcn.00411b62
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411bf0
add esp, 0x40
cmp ebp, esp
call fcn.00411bb8
leave
ret
Function at 0x41109b
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.00411167
mov dword [ebp - 8], eax
push 0x208
call fcn.00411c1f
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 0x41110e
mov dword [ebp - 0x18], 0x100
push dword [ebp - 0xc]
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.004116ab
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.00411bb8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x411146
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
call fcn.00411c28
pop ecx
mov eax, dword [ebp - 0x14]
pop esi
add esp, 0x20
cmp ebp, esp
call fcn.00411bb8
leave
ret 8

Function at 0x41138f
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.00411167
mov dword [ebp - 8], eax
push 0x208
call fcn.00411c1f
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 0x411400
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.004116ab
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.00411bb8
test eax, eax
jne 0x41145b
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.00411bb8
test eax, eax
je 0x41145b
and dword [ebp - 0x2c], 0
mov esi, esp
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, esp
call fcn.00411bb8
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x48], eax
push dword [ebp - 0x48]
call fcn.00411c28
pop ecx
mov eax, dword [ebp - 0x2c]
push edx
mov ecx, ebp
push eax
lea edx, [0x4114a3]
call fcn.00411b62
pop eax
pop edx
pop edi
pop esi
add esp, 0x48
cmp ebp, esp
call fcn.00411bb8
leave
ret 0xc
Function at 0x4114ed
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.00411167
mov dword [ebp - 8], eax
push 0x208
call fcn.00411c1f
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.00411c1f
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 0x41158f
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.004116ab
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.00411bb8
test eax, eax
jne 0x41161e
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.00411bb8
test eax, eax
jne 0x411603
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.00411bb8
mov ecx, dword [ebp + 0x18]
lea ecx, [ecx + ecx - 2]
cmp eax, ecx
jb 0x411609
and dword [ebp + 0x10], 0
jmp 0x41161e
mov esi, esp
push dword [ebp - 0x28]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp esi, esp
call fcn.00411bb8
mov esi, esp
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, esp
call fcn.00411bb8
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x44], eax
push dword [ebp - 0x44]
call fcn.00411c28
pop ecx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x48], eax
push dword [ebp - 0x48]
call fcn.00411c28
pop ecx
push edx
mov ecx, ebp
push eax
lea edx, [0x411671]
call fcn.00411b62
pop eax
pop edx
pop edi
pop esi
add esp, 0x48
cmp ebp, esp
call fcn.00411bb8
leave
ret 0x14
Function at 0x4117a2
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.00411167
mov dword [ebp - 0xc], eax
push 0x208
call fcn.00411c1f
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 0x41181e
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.004116ab
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.00411bb8
mov dword [ebp - 0x20], eax
mov esi, esp
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, esp
call fcn.00411bb8
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.00411bb8
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4118c9
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.00411bb8
mov esi, esp
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, esp
call fcn.00411bb8
mov dword [ebp - 8], 1
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x38], eax
push dword [ebp - 0x38]
call fcn.00411c28
pop ecx
mov eax, dword [ebp - 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x4118fe]
call fcn.00411b62
pop eax
pop edx
pop edi
pop esi
add esp, 0x38
cmp ebp, esp
call fcn.00411bb8
leave
ret 0x10
Function at 0x411917
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.00411167
mov dword [ebp - 0xc], eax
push 0x208
call fcn.00411c1f
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], 0x104
and dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x30], 0xf003f
cmp dword [ebp + 0x14], 0
je 0x411993
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.004116ab
mov esi, esp
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, esp
call fcn.00411bb8
mov dword [ebp - 0x24], eax
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.00411bb8
mov dword [ebp - 0x20], eax
mov esi, esp
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, esp
call fcn.00411bb8
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.00411bb8
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x411a55
mov eax, dword [ebp - 0x24]
shl eax, 1
mov esi, esp
push eax
push dword [ebp + 0x10]
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.00411bb8
mov esi, esp
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, esp
call fcn.00411bb8
mov dword [ebp - 8], 1
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x38], eax
push dword [ebp - 0x38]
call fcn.00411c28
pop ecx
mov eax, dword [ebp - 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x411a8b]
call fcn.00411b62
pop eax
pop edx
pop edi
pop esi
add esp, 0x38
cmp ebp, esp
call fcn.00411bb8
leave
ret 0x10
Function at 0x40141d
Capabilities:
Get file size

Disassembly:
push esi
xor esi, esi
push edi
push esi
push 0x80
push 3
push esi
push 1
push 0xc0000000
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40149f
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push esi
push esi
push 4
push esi
push edi
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
cmp ebx, esi
je 0x401497
push ebp
push esi
push esi
push esi
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, eax
cmp ebp, esi
je 0x40148f
push dword [esp + 0x18]
push dword [esp + 0x18]
push ebp
call fcn.004013bf
add esp, 0xc
mov esi, eax
push ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, esi
pop edi
pop esi
ret

Function at 0x4014a4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov byte [ebp - 4], 0x13
mov byte [ebp - 3], 0x35
mov byte [ebp - 2], 0x86
mov byte [ebp - 1], 7
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
push ebx
call fcn.00417cc8
mov esi, eax
pop ecx
test esi, esi
je 0x4014f2
xor edx, edx
test ebx, ebx
jbe 0x4014f2
sub edi, esi
mov eax, edx
lea ecx, [edx + esi]
and eax, 3
mov al, byte [ebp + eax - 4]
xor al, byte [edi + ecx]
inc edx
cmp edx, ebx
mov byte [ecx], al
jb 0x4014dc
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40155e
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc00
push ebx
push esi
push edi
mov esi, 0x42db84
push 0x42db80
mov ebx, ecx
push esi
call fcn.00417d40
pop ecx
test eax, eax
pop ecx
je 0x401600
push dword [0x424464]
lea eax, [ebp - 0x400]
push esi
push eax
call fcn.00412568
lea eax, [ebp - 0x400]
push eax
call fcn.004126ca
test eax, eax
jne 0x4015ad
push esi
call fcn.00412704
jmp 0x401600
cmp dword [ebx + 8], 0x1f4
jae 0x401600
mov edi, 0x400
lea eax, [ebp - 0x800]
push edi
push 0
push eax
call fcn.00417ce0
add esp, 0xc
lea eax, [ebp - 0x800]
mov ecx, ebx
push eax
lea eax, [ebp - 0x400]
push eax
call fcn.00401852
test eax, eax
jne 0x401605
lea eax, [ebp - 0x400]
push eax
call fcn.0041273e
test eax, eax
je 0x401605
push esi
call fcn.00412704
test eax, eax
je 0x401605
push 1
pop eax
jmp 0x401670
cmp byte [ebp - 0x800], 0
lea esi, [ebp - 0x800]
je 0x40166e
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0xc00]
push edi
push eax
push dword [0x424474]
push esi
push dword [0x424468]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0xc00]
push eax
call fcn.0041273e
test eax, eax
je 0x401659
push 0
lea eax, [ebp - 0x400]
push esi
push eax
mov ecx, ebx
call fcn.00401885
jmp 0x40165c
inc dword [ebx + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esi + eax + 1], 0
lea esi, [esi + eax + 1]
jne 0x401614
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401907
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push ebx
push esi
push edi
mov ebx, ecx
call fcn.00401046
mov esi, eax
mov ecx, esi
call fcn.0040fa70
push 1
mov ecx, esi
mov edi, eax
call fcn.0040fa55
mov ecx, esi
call fcn.0040fa4e
push eax
mov ecx, esi
call fcn.0040f9d5
mov ecx, edi
call fcn.00411495
push eax
mov ecx, esi
call fcn.0040fa10
lea eax, [ebp - 0x800]
push 0x400
push eax
mov ecx, ebx
call fcn.00401ab4
test eax, eax
jne 0x401986
mov edi, 0x47f
mov ecx, esi
mov dword [0x430b2c], edi
call fcn.0040fa1d
shr eax, 0xa
push eax
push edi
call fcn.00411c72
pop ecx
pop ecx
jmp 0x401aa8
lea eax, [ebp - 0x400]
push eax
push 0
lea eax, [ebp - 0x800]
push 0x42919c
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x400]
push eax
call fcn.0041273e
lea eax, [ebp - 0x400]
push 0x2e
push eax
call fcn.00417ec0
and byte [eax], 0
pop ecx
pop ecx
lea eax, [ebp - 0x400]
push eax
call fcn.004126e7
test eax, eax
jne 0x4019dc
lea eax, [ebp - 0x400]
push eax
call fcn.0041263d
lea eax, [ebp - 0x400]
mov edi, 0x42db84
push eax
push edi
call fcn.00417dd0
pop ecx
pop ecx
push dword [0x42a1fc]
mov ecx, ebx
call fcn.00401046
mov ecx, eax
call fcn.0041042e
test eax, eax
jne 0x401a2b
push 2
mov ecx, esi
call fcn.0040fa55
push dword [0x42a1fc]
mov ecx, esi
call fcn.0040fa09
push eax
push 0x42fc58
call fcn.00412568
jmp 0x401a47
push dword [0x42a1fc]
push edi
push 0x42fc58
call fcn.00412568
mov ecx, esi
call fcn.00410442
test eax, eax
je 0x401aa8
push dword [0x42a210]
mov ecx, ebx
call fcn.00401046
mov ecx, eax
call fcn.0041042e
test eax, eax
je 0x401a77
push 0
push 1
push dword [0x42a210]
mov ecx, ebx
call fcn.00401046
mov ecx, eax
call fcn.0041062b
mov ecx, ebx
call fcn.00401b75
test eax, eax
jne 0x401a94
mov eax, 0x481
push 0
mov dword [0x430b2c], eax
push eax
jmp 0x40197a
cmp dword [esi + 0x14bc], 5
jne 0x401aac
mov ecx, esi
call fcn.0041058a
test eax, eax
jne 0x401aac
xor eax, eax
jmp 0x401aaf
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401ab4
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
call fcn.00401046
mov ecx, eax
call fcn.0040fa1d
mov edi, dword [esp + 0x10]
mov esi, eax
push edi
push dword [esp + 0x18]
shr esi, 0xa
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x401af5
push 0x8003
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push edi
mov ecx, ebx
call fcn.00401b4a
test eax, eax
jne 0x401b41
push dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jle 0x401b11
push esi
push edi
mov ecx, ebx
call fcn.00401b4a
test eax, eax
jne 0x401b41
push 0x42db80
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push esi
push 3
call fcn.004122bd
add esp, 0xc
test eax, eax
jge 0x401b41
push edi
push esi
push 4
call fcn.004122bd
add esp, 0xc
test eax, eax
jge 0x401b41
xor eax, eax
jmp 0x401b44
push 1
pop eax
pop edi
pop esi
pop ebx
ret 8