joyce8/EMBER2024-capa huggingface dataset:
Function at 0x478c83
Capabilities:
Check if file exists

Disassembly:
push 4
mov eax, 0x4f7a4c
call fcn.004d1298
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x1c], ebx
jne 0x478db2
mov eax, dword [esi + 8]
mov dword [esi + 0x1c], 1
cmp dword [eax - 0xc], ebx
je 0x478db2
mov eax, dword [esi + 4]
cmp dword [eax - 0xc], ebx
je 0x478db2
lea edi, [esi + 0x20]
mov eax, edi
call fcn.0045d08b
test eax, eax
je 0x478db2
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
je 0x478db2
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x478db2
mov eax, edi
call fcn.0045d08b
test eax, eax
jle 0x478d3d
mov eax, edi
call fcn.0045d08b
cmp ebx, eax
jb 0x478d03
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [edi + 4]
lea eax, [eax + ebx*8]
mov ecx, dword [eax + 4]
cmp dword [ecx - 0xc], 0
je 0x478db2
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x478db2
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x478db2
mov eax, edi
inc ebx
call fcn.0045d08b
cmp ebx, eax
jl 0x478cf2
push dword [esi + 0x18]
lea eax, [ebp - 0x10]
push eax
mov dword [esi + 0x1c], 2
call fcn.00478dba
xor esi, esi
mov dword [ebp - 4], esi
mov ebx, dword [eax]
call fcn.004bfb56
cmp ebx, esi
jne 0x478d64
xor edi, edi
jmp 0x478d74
mov esi, str.lastshowtime
mov edx, eax
call fcn.00492f8b
mov edi, eax
mov esi, edx
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004012f9
test esi, esi
jl 0x478dad
jg 0x478d89
test edi, edi
jbe 0x478dad
push 0
call dword [sym.imp.MSVCR80.dll__time64]
cmp edx, esi
pop ecx
jl 0x478dad
jg 0x478d9c
cmp eax, edi
jbe 0x478dad
sub eax, edi
sbb edx, esi
test edx, edx
jg 0x478dad
jl 0x478db2
cmp eax, 0x2a30
jb 0x478db2
xor eax, eax
inc eax
jmp 0x478db4
xor eax, eax
call fcn.004d1370
ret
Function at 0x479105
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f6311
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x54b0c4]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push esi
mov eax, dword [0x54b0c4]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
cmp dword [esi + 0xc], 0
mov dword [esp + 0x1c], eax
je 0x479233
mov ebx, dword [esi + 8]
test ebx, ebx
je 0x479233
and word [esp + 0x2c], 0
push 0x1fe
lea eax, [esp + 0x32]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push ebx
lea eax, [esi + 0x14]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004c05cf
add esp, 0xc
and dword [esp + 0x240], 0
push dword [esp + 0x10]
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
push 0x200
lea edx, [esp + 0x34]
push edx
push 0x5031a8
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x479227
mov esi, dword [esi + 0x10]
test esi, esi
je 0x479227
push esi
lea eax, [esp + 0x18]
push eax
call fcn.004782e5
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x248], 1
call fcn.00402d09
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x20]
lea ebx, [esp + 0x28]
mov byte [esp + 0x248], 2
call fcn.0047a65b
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.004012f9
xor eax, eax
inc eax
jmp 0x479235
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.004012f9
xor eax, eax
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.004d0736
mov esp, ebp
pop ebp
ret 4
Function at 0x479eab
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ed763
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x54b0c4]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
lea eax, [edi + 0x3c]
mov dword [esp + 0x78], esi
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add edi, 0x58
mov eax, edi
mov byte [esp + 0x78], 1
call fcn.0045d08b
push 2
pop ecx
cmp eax, ecx
jae 0x479f3b
xor edi, edi
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea esi, [esp + 0x5c]
call fcn.004bb363
mov eax, edi
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [esp + 0x14], 0xfffffffe
mov dword [esp + 0x18], ecx
mov eax, edi
call fcn.0045d08b
mov ebx, dword [esp + 0x14]
mov esi, eax
mov eax, edi
add esi, ebx
call fcn.0045d08b
cmp esi, eax
jb 0x479f67
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [edi + 4]
lea eax, [eax + esi*8]
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x24], esp
mov esi, esp
call fcn.00401311
add eax, 0x10
mov dword [esi], eax
add ebx, 4
push ebx
lea esi, [esp + 0x3c]
call fcn.0047acf7
pop ecx
pop ecx
lea ecx, [esp + 0x24]
push ecx
mov esi, eax
mov byte [esp + 0x7c], 2
call fcn.0047ad32
lea eax, [esp + 0x24]
push eax
push dword [ebp + 8]
lea ebx, [esp + 0x4c]
mov byte [esp + 0x80], 3
call fcn.0047a65b
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
call fcn.004012f9
mov byte [esp + 0x78], 1
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, edi
call fcn.0045d08b
mov esi, eax
add esi, dword [esp + 0x14]
mov eax, edi
call fcn.0045d08b
cmp esi, eax
jb 0x47a003
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [edi + 4]
lea esi, [eax + esi*8]
mov eax, dword [esi + 4]
push ecx
sub eax, 0x10
mov dword [esp + 0x24], esp
mov ebx, esp
call fcn.00401311
add eax, 0x10
mov dword [ebx], eax
mov eax, dword [esp + 0x18]
add eax, 0x186a3
push eax
lea esi, [esp + 0x44]
call fcn.0047acf7
pop ecx
pop ecx
lea ecx, [esp + 0x2c]
push ecx
mov esi, eax
mov byte [esp + 0x7c], 4
call fcn.0047ad32
lea eax, [esp + 0x2c]
push eax
push dword [ebp + 8]
lea ebx, [esp + 0x58]
mov byte [esp + 0x80], 5
call fcn.0047a65b
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
call fcn.004012f9
mov byte [esp + 0x78], 1
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
call fcn.004012f9
inc dword [esp + 0x14]
dec dword [esp + 0x18]
jne 0x479f47
xor edi, edi
inc edi
jmp 0x479f11
Function at 0x47af92
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
test edi, edi
je 0x47afa4
cmp dword [esi], 2
jae 0x47afa4
push 0x7a
pop eax
jmp 0x47b005
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47b005
cmp dword [ebp + 0xc], 7
je 0x47afd5
push 0xd
jmp 0x47afa1
test edi, edi
mov ecx, dword [ebp - 4]
je 0x47afff
test cl, 1
jne 0x47afd1
mov eax, ecx
shr eax, 1
cmp eax, 1
jb 0x47afd1
cmp word [edi + eax*2 - 2], 0
jne 0x47afd1
cmp eax, 1
jbe 0x47afff
cmp word [edi + eax*2 - 4], 0
jne 0x47afd1
shr ecx, 1
mov dword [esi], ecx
xor eax, eax
leave
ret 8

Function at 0x483382
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x54b0c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
jne 0x4833a0
xor eax, eax
jmp 0x48344d
push 0x28
push 0
push edi
call sub.MSVCR80.dll_memset
add esp, 0xc
push esi
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
cmp dword [ebp - 8], 0x10
mov ecx, dword [ebp - 0x1c]
jae 0x4833c3
lea ecx, [ebp - 0x1c]
test ecx, ecx
je 0x4833dd
jmp 0x4833d8
mov al, byte [ecx]
cmp al, 0x41
jl 0x4833d7
cmp al, 0x5a
jg 0x4833d7
add al, 0x20
mov byte [ecx], al
inc ecx
cmp byte [ecx], 0
jne 0x4833c9
cmp dword [ebp - 8], 0x10
mov eax, dword [ebp - 0x1c]
jae 0x4833e9
lea eax, [ebp - 0x1c]
push ebx
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.0042a1de
cmp ebx, 0x25
movzx eax, ax
pop ecx
mov dword [ebp - 0x24], eax
jbe 0x483402
push 0x25
pop ebx
cmp dword [ebp - 8], 0x10
mov eax, dword [ebp - 0x1c]
jae 0x48340e
lea eax, [ebp - 0x1c]
push ebx
push eax
lea esi, [edi + 3]
push esi
call sub.MSVCR80.dll_memcpy
lea eax, [ebx + 2]
mov byte [edi], al
mov ax, word [ebp - 0x24]
add esp, 0xc
test esi, esi
mov word [edi + 1], ax
je 0x483440
test ebx, ebx
je 0x483440
xor eax, eax
test ebx, ebx
jbe 0x483440
xor byte [eax + esi], 0x5a
inc eax
cmp eax, ebx
jb 0x483437
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor eax, eax
inc eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004d0736
leave
ret
Function at 0x483598
Capabilities:
Read file via mapping

Disassembly:
push 0x20
mov eax, 0x4e80e9
call fcn.004d1301
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
xor edi, edi
push str.Global_
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
call dword [0x4fe438]
cmp dword [0x5510fc], 8
mov eax, dword [0x5510e8]
jae 0x4835d3
mov eax, 0x5510e8
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x4835e9
lea eax, [ebp - 0x28]
cmp dword [esi + 4], edi
jne 0x483621
push eax
push edi
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
cmp eax, edi
mov dword [esi], eax
je 0x483624
push 0x3fe0
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
jne 0x48361e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], edi
jmp 0x483624
mov dword [esi + 4], eax
xor edi, edi
inc edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, edi
call fcn.004d1384
ret

Function at 0x483639
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x54b0c4]
xor eax, ebp
mov dword [ebp - 8], eax
mov ecx, dword [ecx + 4]
test ecx, ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x3c], edx
jne 0x48365d
xor eax, eax
jmp 0x4836b8
and dword [ebp - 0x34], 0
and dword [ebp - 0x38], 0
test eax, eax
lea esi, [ecx + 0x20]
je 0x4836b5
test esi, esi
je 0x4836b5
lea ecx, [ebp - 0x30]
push ecx
call fcn.0048345a
pop ecx
lea edi, [ebp - 0x38]
lea ebx, [ebp - 0x34]
mov ecx, esi
lea edx, [ebp - 0x30]
call fcn.004834a4
cmp dword [ebp - 0x34], 0
je 0x4836b5
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp - 0x3c]
push 0x10
add eax, 0x2c
push eax
push esi
call sub.MSVCR80.dll_memcpy
add esp, 0xc
test esi, esi
je 0x4836b5
xor eax, eax
xor byte [eax + esi], 0x7a
inc eax
cmp eax, 0x10
jb 0x4836ab
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d0736
leave
ret 4
Function at 0x48372b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x298]
sub esp, 0x318
mov eax, dword [0x54b0c4]
xor eax, ebp
mov dword [ebp + 0x294], eax
push esi
push edi
xor edi, edi
push 0x206
lea eax, [ebp - 0x72]
push edi
push eax
mov esi, ecx
mov word [ebp - 0x74], di
call sub.MSVCR80.dll_memset
add esp, 0xc
cmp dword [esi + 0x18], 8
jb 0x48376d
mov esi, dword [esi + 4]
jmp 0x483770
add esi, 4
cmp dword [0x551134], 8
mov eax, dword [0x551120]
jae 0x483783
mov eax, 0x551120
push esi
push eax
push 0x502f98
lea eax, [ebp - 0x74]
push 0x104
push eax
call fcn.00488fa3
add esp, 0x14
lea eax, [ebp - 0x78]
push eax
push 0x20219
push edi
lea eax, [ebp - 0x74]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x78], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4837c2
mov eax, 0xe00c0012
jmp 0x48383d
mov esi, 0xfe
push esi
lea eax, [ebp + 0x196]
push edi
push eax
mov dword [ebp - 0x7c], edi
mov word [ebp + 0x194], di
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x194]
push eax
lea eax, [ebp - 0x7c]
push eax
push edi
push str.Name
push dword [ebp - 0x78]
mov dword [ebp - 0x80], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, edi
jne 0x48382d
cmp dword [ebp - 0x7c], 1
jne 0x48382d
push str..Pipe_
mov ecx, ebx
call dword [0x4fe438]
lea eax, [ebp + 0x194]
push eax
mov ecx, ebx
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
jmp 0x483832
mov esi, 0xe00c001f
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp + 0x294]
pop edi
xor ecx, ebp
pop esi
call fcn.004d0736
add ebp, 0x298
leave
ret

Function at 0x483bee
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
jmp 0x483c20
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x10]
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x483c2c
add esi, dword [ebp - 4]
cmp dword [ebp + 0x10], esi
jne 0x483bf7
xor eax, eax
pop esi
leave
ret 0xc
mov eax, 0xe00c0009
jmp 0x483c27

Function at 0x483c33
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
jmp 0x483c65
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x10]
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x483c71
add esi, dword [ebp - 4]
cmp dword [ebp + 0x10], esi
jne 0x483c3c
xor eax, eax
pop esi
leave
ret 0xc
mov eax, 0xe00c000b
jmp 0x483c6c
Function at 0x485036
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ecfd6
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x54b0c4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x18]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x48519e
xor ebx, ebx
lea ecx, [esp + 0x1c]
call fcn.0048ae26
mov dword [esp + 0x38], ebx
mov eax, dword [0x550310]
mov ecx, 0x550310
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x38], 1
push dword [esi + 0x18]
lea eax, [esp + 0x1c]
push str._url:__s_
call fcn.00401a57
mov edx, dword [esp + 0x20]
pop ecx
pop ecx
mov ecx, dword [esp + 0x1c]
call fcn.0048dab4
test eax, eax
je 0x48517d
mov eax, dword [esi + 0x18]
push 1
push ebx
push ebx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [0x550bdc], ebx
cdq
mov dword [esp + 0x24], eax
mov edi, edx
je 0x485170
cmp edi, ebx
jl 0x4850fb
jg 0x4850f4
cmp eax, 0x20
jbe 0x4850fb
mov byte [esp + 0x17], 1
jmp 0x4850ff
mov byte [esp + 0x17], bl
mov esi, dword [esi + 0x18]
lea eax, [esp + 0x17]
push eax
push str.___result:
push esi
push str.ShellExecute_
push 0x509228
push str.OpenUrl2Task::Run
push 0x5091f4
lea eax, [esp + 0x3c]
push eax
push 0x5091f0
push ecx
mov dword [esp + 0x48], 0x12e
call fcn.004022f5
add esp, 4
call fcn.0040233d
call fcn.00423894
call fcn.0040233d
call fcn.0040233d
call fcn.0040233d
call fcn.0040233d
call fcn.0040233d
call fcn.0040233d
call fcn.00432440
mov esi, eax
call fcn.00402366
cmp edi, ebx
jl 0x485182
jg 0x48517d
cmp dword [esp + 0x24], 0x20
jbe 0x485182
xor esi, esi
inc esi
jmp 0x485184
xor esi, esi
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4856ac
Capabilities:
Set registry value

Disassembly:
push 0xc
mov eax, 0x4ecf67
call fcn.004d1298
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov ecx, dword [esi + 0x30]
mov eax, dword [esi + 0x1c]
or ecx, 0x20006
push ecx
push eax
push dword [esi + 0x18]
lea eax, [ebp - 0x10]
call fcn.00406f1f
test eax, eax
je 0x4856f4
cmp dword [ebp - 0x10], ebx
je 0x4856ed
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x485833
mov eax, dword [esi + 0x2c]
dec eax
je 0x485805
dec eax
je 0x485801
dec eax
je 0x4857c5
dec eax
je 0x4857aa
dec eax
je 0x485790
dec eax
dec eax
je 0x48574f
sub eax, 4
jne 0x4857fc
mov eax, dword [esi + 0x24]
mov esi, dword [esi + 0x20]
push eax
call dword [sym.imp.MSVCR80.dll__wtoi64]
pop ecx
mov dword [ebp - 0x18], eax
push 8
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x14], edx
push 0xb
push ebx
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x485818
mov eax, dword [esi + 0x3c]
cmp eax, ebx
je 0x4857fc
mov ecx, dword [esi + 0x40]
sub ecx, eax
sar ecx, 1
je 0x4857fc
cmp eax, ebx
je 0x485774
mov ecx, dword [esi + 0x40]
sub ecx, eax
sar ecx, 1
jne 0x48577a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 0x3c]
mov esi, dword [esi + 0x20]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
call fcn.00434b90
jmp 0x485818
push dword [esi + 0x24]
call dword [sym.imp.MSVCR80.dll__wtoi]
mov esi, dword [esi + 0x20]
pop ecx
mov dword [ebp - 0x14], eax
push 4
lea eax, [ebp - 0x14]
push eax
push 5
jmp 0x48573f
mov eax, dword [esi + 0x24]
mov esi, dword [esi + 0x20]
push eax
call dword [sym.imp.MSVCR80.dll__wtoi]
pop ecx
push eax
push esi
lea eax, [ebp - 0x10]
push eax
call fcn.00434bda
jmp 0x485818
lea eax, [ebp - 0x14]
push eax
lea eax, [esi + 0x24]
push eax
mov dword [ebp - 0x14], ebx
call fcn.00423f18
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
je 0x4857fc
push dword [ebp - 0x14]
mov esi, dword [esi + 0x20]
push edi
push 3
push ebx
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
mov esi, eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x48581a
push 0xd
pop esi
jmp 0x48581a
push 2
jmp 0x485807
push 1
mov eax, dword [esi + 0x24]
mov esi, dword [esi + 0x20]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
call fcn.0043538a
mov esi, eax
xor eax, eax
cmp esi, ebx
sete al
cmp dword [ebp - 0x10], ebx
mov esi, eax
je 0x485831
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
call fcn.004d1370
ret
Function at 0x4858a4
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, eax
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
lea ebx, [ebp - 4]
push ebx
or eax, 0x20006
push eax
xor edi, edi
push edi
push ecx
push edx
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4858e7
test eax, eax
mov edi, dword [ebp - 4]
jne 0x4858e7
push dword [esi + 0x20]
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x4858f0
cmp eax, 2
je 0x4858f0
xor esi, esi
jmp 0x4858f3
xor esi, esi
inc esi
test edi, edi
je 0x4858fe
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x485d79
Capabilities:
Read .ini file

Disassembly:
push 0x20
mov eax, 0x4ea397
call fcn.004d1301
mov esi, ecx
push dword [esi + 0x24]
call dword [sym.imp.MSVCR80.dll__wtoi64]
and word [ebp - 0x28], 0
mov ebx, eax
xor eax, eax
mov edx, dword [esi + 0x1c]
lea edi, [ebp - 0x26]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop ecx
mov ecx, dword [esi + 0x20]
stosd dword es:[edi], eax
mov eax, dword [esi + 0x18]
push eax
push 0xa
lea eax, [ebp - 0x28]
push eax
push 0x5031a8
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jbe 0x485dd7
push 0xa
lea eax, [ebp - 0x28]
push 0
push eax
call dword [sym.imp.MSVCR80.dll_wcstoul]
mov ebx, eax
add esp, 0xc
inc ebx
mov eax, dword [0x550310]
mov ecx, 0x550310
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2c], eax
and dword [ebp - 4], 0
push ebx
push 0x5061a4
lea eax, [ebp - 0x2c]
call fcn.00401a57
mov eax, dword [esi + 0x18]
mov edi, dword [ebp - 0x2c]
pop ecx
pop ecx
mov ecx, dword [esi + 0x20]
mov esi, dword [esi + 0x1c]
push eax
push edi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov esi, eax
lea eax, [edi - 0x10]
call fcn.004012f9
mov eax, esi
call fcn.004d1384
ret
Function at 0x486ccb
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f9ecc
mov eax, dword fs:[0]
push eax
sub esp, 0x3e0
push ebx
push esi
push edi
mov eax, dword [0x54b0c4]
xor eax, esp
push eax
lea eax, [esp + 0x3f0]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0x44]
push eax
call fcn.0044c185
xor ebx, ebx
lea eax, [esi + 0x18]
lea edi, [esp + 0x48]
mov dword [esp + 0x3f8], ebx
call fcn.00402a90
lea eax, [esi + 0x20]
lea edi, [esp + 0x4c]
call fcn.00402a90
lea eax, [esi + 0x24]
lea edi, [esp + 0x50]
call fcn.00402a90
lea eax, [esi + 0x28]
lea edi, [esp + 0x54]
call fcn.00402a90
lea eax, [esi + 0x2c]
lea edi, [esp + 0x58]
call fcn.00402a90
lea eax, [esi + 0x30]
lea edi, [esp + 0x5c]
call fcn.00402a90
mov eax, dword [esi + 0x1c]
mov edi, dword [sym.imp.MSVCR80.dll__wcsicmp]
push str.common
push eax
call edi
test eax, eax
pop ecx
pop ecx
jne 0x486d7b
mov dword [esp + 0x44], 1
jmp 0x486d94
mov esi, dword [esi + 0x1c]
push str.user
push esi
call edi
neg eax
sbb eax, eax
neg eax
inc eax
pop ecx
inc eax
pop ecx
mov dword [esp + 0x44], eax
lea eax, [esp + 0x44]
call fcn.0044c234
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
lea edi, [esp + 0x20]
mov byte [esp + 0x3f8], 1
call fcn.0044b0d7
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x48]
push eax
mov byte [esp + 0x400], 2
call fcn.0044b985
xor esi, esi
cmp eax, ebx
jne 0x486e13
lea eax, [esp + 0x20]
call fcn.0047426c
lea edi, [esp + 0x10]
call fcn.0044c28b
or dword [esp + 0x3f8], 0xffffffff
lea eax, [esp + 0x44]
push eax
call fcn.004741dc
mov eax, esi
mov ecx, dword [esp + 0x3f0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
inc ebx
xor edi, edi
cmp dword [esp + 0x14], 0
je 0x486e51
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x14]
sar eax, 5
cmp esi, eax
jae 0x486e51
mov eax, dword [esp + 0x14]
push dword [edi + eax + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x486e49
test ebx, ebx
je 0x486e49
xor ebx, ebx
inc ebx
jmp 0x486e4b
xor ebx, ebx
inc esi
add edi, 0x20
jmp 0x486e18
mov esi, ebx
jmp 0x486dd7