joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402000
Capabilities:
Set registry value

Disassembly:
sub esp, 0x328
lea eax, [esp + 0x120]
push ebx
push esi
mov esi, dword [esp + 0x334]
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItemTextA]
push 0x104
push eax
push 0x3f3
push esi
call edi
lea ecx, [esp + 0x230]
push 0x104
push ecx
push 0x3f5
push esi
call edi
lea edx, [esp + 0x14]
push 0x14
push edx
push 0x402
push esi
call edi
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x40a488
push 0
push str.SoftwareGeekBoysSKPlayerSettings
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40208a
push str.Could_not_create_the_settings_registry_key
call fcn.00401090
add esp, 4
lea edi, [esp + 0x12c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x28]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 1
push eax
push str.Path
push edx
call ebx
test eax, eax
je 0x4020eb
push str.Could_not_set_the_path_key_value
call fcn.00401090
add esp, 4
lea edi, [esp + 0x230]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x28]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 1
push eax
push str.CommandLine
push edx
call ebx
test eax, eax
je 0x402146
push str.Could_not_set_the_commandline_key_value
call fcn.00401090
add esp, 4
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x28]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 1
push eax
push str.DemoSpeed
push edx
call ebx
pop edi
pop esi
test eax, eax
pop ebx
je 0x4021a1
push str.Could_not_set_the_speed_key_value
call fcn.00401090
add esp, 4
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x328
ret
Function at 0x4021c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
lea eax, [esp + 4]
push edi
push eax
push 1
push 0
push str.SoftwareGeekBoysSKPlayerSettings
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [esp + 0x218]
test eax, eax
jne 0x4022d0
mov eax, dword [esp + 8]
push ebx
lea ecx, [esp + 8]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push 0
push str.Path
push eax
mov dword [esp + 0x24], 0x104
call esi
mov ebx, dword [sym.imp.USER32.dll_SetDlgItemTextA]
test eax, eax
jne 0x402232
lea ecx, [esp + 0x14]
push ecx
push 0x3f3
push edi
call ebx
jmp 0x40223f
push str.Could_not_read_GBV1
call fcn.00401090
add esp, 4
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0xc]
lea eax, [esp + 0x14]
push edx
push eax
push 0
push 0
push str.CommandLine
push ecx
mov dword [esp + 0x24], 0x104
call esi
test eax, eax
jne 0x402274
lea edx, [esp + 0x14]
push edx
push 0x3f5
push edi
call ebx
jmp 0x402281
push str.Could_not_read_GBV2
call fcn.00401090
add esp, 4
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push 0
push str.DemoSpeed
push edx
mov dword [esp + 0x24], 0x104
call esi
test eax, eax
jne 0x4022b6
lea eax, [esp + 0x14]
push eax
push 0x402
push edi
call ebx
jmp 0x4022c3
push str.Could_not_read_GBV3
call fcn.00401090
add esp, 4
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
lea edx, [esp + 0x110]
push 0x104
push edx
push 0x3f3
push edi
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
pop edi
add esp, 0x210
ret
Function at 0x402300
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x244
or ecx, 0xffffffff
xor eax, eax
push ebx
push ebp
push esi
push edi
mov edi, 0x4094dc
mov ebp, dword [esp + 0x25c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40235b
push str.Could_not_read_dir
call fcn.00401090
add esp, 4
mov esi, dword [esp + 0x258]
mov ebx, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 0
push 0
push 0x184
push 0x404
push esi
call ebx
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 1
jne 0x4023ee
lea edx, [esp + 0x3c]
push 0x4094c0
push edx
call fcn.00404240
add esp, 8
test eax, eax
mov al, byte [esp + 0x10]
jne 0x4023a8
test al, 0x10
je 0x4023dd
test al, 0x10
lea eax, [esp + 0x3c]
push eax
je 0x4023ce
lea ecx, [esp + 0x154]
push str.__s_
push ecx
call fcn.00403fd9
add esp, 0xc
lea edx, [esp + 0x150]
push edx
push 0
push 0x180
push 0x404
push esi
call ebx
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 1
je 0x40238a
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
not ecx
push eax
dec ecx
push 0xc
push 0x407
push esi
mov byte [ecx + ebp - 1], al
call ebx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x244
ret
Function at 0x4062b1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x409bb0
cmp edx, dword [eax]
je 0x4062d3
add eax, 8
inc ecx
cmp eax, 0x409c40
jl 0x4062c4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x409bb0]
jne 0x406401
mov eax, dword [0x40a498]
cmp eax, 1
je 0x4063db
test eax, eax
jne 0x406304
cmp dword [0x4098e4], 1
je 0x4063db
cmp edx, 0xfc
je 0x406401
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40633b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004071f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00406ab0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40637e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00406ab0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4084f4
push edi
call fcn.00404070
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004071f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00407200
lea eax, [ebp - 0xa0]
push 0x4084d4
push eax
call fcn.00407200
push dword [esi + 0x409bb4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00407200
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00407615
add esp, 0x2c
pop edi
jmp 0x406401
lea eax, [ebp + 8]
lea esi, [esi + 0x409bb4]
push 0
push eax
push dword [esi]
call fcn.00406ab0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401a30
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._vfprintf
call sym._abort
jmp dbg.mark_section_writable

Function at 0x401a90
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x406054]
test esi, esi
jle 0x401b7d
mov edi, dword [0x406058]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x401ac4
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x401b76
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x401ab0
mov dword [esp], eax
mov ebx, eax
call dbg.__mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x401bba
lea ebx, [esi + esi*2]
mov esi, dword [0x406058]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call dbg._GetPEImageBase
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x406058]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401b9a
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x401b6f
sub eax, 0x40
and eax, 0xffffffbf
je 0x401b6f
mov eax, dword [esp + 0x20]
add ebx, dword [0x406058]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x401b84
add dword [0x406054], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x401ace
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
mov eax, dword [0x406058]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
Function at 0x402080
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x406408
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x406400]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x4020d5
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4020ce
test esi, esi
je 0x4020ce
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4020b0
mov dword [esp], 0x406408
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4022f0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x402328
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x40231e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40232a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x402310
xor eax, eax
pop ebx
pop esi
ret

Function at 0x402ae0
Capabilities:
Resume thread
Suspend thread

Disassembly:
push esi
push ebx
mov esi, eax
sub esp, 0x2e4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
sub esp, 4
cmp eax, 0xffffffff
jne 0x402b10
add esp, 0x2e4
mov eax, 0xffffffff
pop ebx
pop esi
ret
lea eax, [esp + 0x14]
mov dword [esp], esi
mov dword [esp + 0x14], 0x10003
mov ebx, 0xffffffff
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
sub esp, 8
test eax, eax
cmovne ebx, dword [esp + 0xcc]
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
sub esp, 4
add esp, 0x2e4
mov eax, ebx
pop ebx
pop esi
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x431072
nop
nop
nop
nop
mov ebx, 0x40915c
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
mov esi, 0x44805022
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x431060
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
je 0x4310d2
nop
nop
nop
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x7259161b
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
popal
nop
jmp 0x401219

Function at 0x43d0ad
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x43ce2e
mov esi, dword [esp]
add esp, 4
and edi, edi
add eax, 0xb39c434d
call fcn.0043d0ed
or edi, edi
sub edi, 0xf9ec9
xor dword [ecx], esi
add eax, 1
add ecx, 1
add edi, edi
sub edi, 0xa94ae29c
cmp ecx, edx
jne fcn.0043d0ad
ret

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x401000
Capabilities:
Create service
Persist via windows service

Disassembly:
mov eax, dword [esp + 0x10]
push 0
push 0
push 0x408164
mov ecx, dword [0x40b7f8]
push 0
push 0
push eax
mov eax, dword [esp + 0x1c]
push 1
push 2
push 0x10
push 0xf01ff
push eax
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
mov dword [0x40b954], eax
jne 0x4010c1
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 5
je 0x4010a3
cmp eax, 0x34
je 0x401078
cmp eax, 0x431
je 0x401078
push 0x408138
call fcn.00401d30
add esp, 4
call esi
push eax
push 0x408124
call fcn.00401d30
add esp, 8
xor eax, eax
pop esi
ret
push 0x4080f4
call fcn.00401d30
add esp, 4
push 0x4080b8
call fcn.00401d30
add esp, 4
push 0x408070
call fcn.00401d30
add esp, 4
xor eax, eax
pop esi
ret
push 0x408138
call fcn.00401d30
add esp, 4
push 0x408030
call fcn.00401d30
add esp, 4
xor eax, eax
pop esi
ret
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
ret

Function at 0x4010d0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x298
push ebx
push esi
push edi
mov edi, dword [esp + 0x2b0]
cmp byte [edi], 0
jne 0x4010f3
mov eax, dword [0x4081dc]
mov dword [esp + 0x1a8], eax
jmp 0x401117
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1a8]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ebx, dword [esp + 0x2b4]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xe0]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x5c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xe4]
push ecx
call fcn.00401de0
add esp, 8
mov byte [eax], 0
mov eax, dword [esp + 0x2ac]
lea edx, [esp + 0x1a8]
push edx
push eax
lea ecx, [esp + 0xe8]
push ebx
push ecx
lea edx, [esp + 0x28]
push 0x4081b4
push edx
call fcn.00401d70
add esp, 0x18
lea eax, [esp + 0xc]
push eax
push 1
push 0
push 0x4081a8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401231
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
push eax
push 0x20006
push eax
push 0x40b410
push eax
mov eax, dword [esp + 0x28]
push 0x408178
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40121a
lea edi, [esp + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x2a8]
not ecx
push ecx
lea ecx, [esp + 0x1c]
push ecx
push 1
push eax
mov eax, dword [esp + 0x20]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call esi
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x298
ret
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x298
ret
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x298
ret
Function at 0x401240
Capabilities:
Set registry value

Disassembly:
mov eax, dword [0x40b950]
sub esp, 0x80
cmp eax, 1
push ebx
push ebp
mov ebp, dword [esp + 0x94]
push esi
mov esi, dword [esp + 0x9c]
push edi
push esi
push ebp
jne 0x40127b
mov eax, dword [esp + 0xa0]
mov ebx, dword [esp + 0x9c]
push eax
push ebx
call fcn.00401000
jmp 0x401290
mov ecx, dword [esp + 0xa0]
mov ebx, dword [esp + 0x9c]
push ecx
push ebx
call fcn.004010d0
add esp, 0x10
test eax, eax
je 0x4013d0
push 0x40b95c
push 0x20006
push 0
push 0x4081a8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401397
push ebx
lea edx, [esp + 0x1c]
push 0x40856c
push edx
call fcn.00401d70
add esp, 0xc
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push eax
mov eax, dword [0x40b95c]
push ecx
push 0
push 0x20006
push 0
push 0x40b410
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40138b
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 0x14]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
push eax
push 0x408564
push ecx
call esi
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
push ecx
push ebp
push 1
push eax
push 0x408554
push edx
call esi
mov edx, dword [esp + 0x98]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 1
push eax
mov eax, dword [esp + 0x20]
push 0x40854c
push eax
call esi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 0x14]
push ebx
push 1
push eax
push 0x408544
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x40b95c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x40b950], 1
jne 0x4013b8
push 0x4083a8
call fcn.00401d30
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
push 0x408228
call fcn.00401d30
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
push 0x4081e0
call fcn.00401d30
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
Function at 0x4013f0
Capabilities:
Delete service

Disassembly:
mov eax, dword [0x40b7f8]
push esi
push edi
mov edi, dword [esp + 0xc]
push 0xf01ff
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
test eax, eax
mov dword [0x40b954], eax
jne 0x401452
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 5
je 0x401487
cmp eax, 0x7b
je 0x40143f
cmp eax, 0x424
je 0x40143f
call esi
push eax
push 0x408614
call fcn.00401d30
add esp, 8
xor eax, eax
pop edi
pop esi
ret
push edi
push 0x4085f4
call fcn.00401d30
add esp, 8
xor eax, eax
pop edi
pop esi
ret
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x401473
push edi
push 0x4085e0
call fcn.00401d30
add esp, 8
mov eax, 1
pop edi
pop esi
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x7b
ja 0x401499
je 0x4014ba
cmp eax, 5
jne 0x4014a5
push 0x408030
call fcn.00401d30
add esp, 4
xor eax, eax
pop edi
pop esi
ret
sub eax, 0x424
je 0x4014ba
sub eax, 0xc
je 0x4014ba
call esi
push eax
push 0x4085bc
call fcn.00401d30
add esp, 8
xor eax, eax
pop edi
pop esi
ret
push 0x408588
call fcn.00401d30
add esp, 4
xor eax, eax
pop edi
pop esi
ret

Function at 0x4014d0
Capabilities:
Delete registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
xor edi, edi
push eax
push 1
push edi
push 0x4081a8
push 0x80000002
call esi
test eax, eax
jne 0x401548
mov edx, dword [esp + 0xc]
lea ecx, [esp + 8]
push ecx
push 1
push eax
push 0x408178
push edx
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40153a
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x40153a
mov edx, dword [esp + 8]
push edx
call esi
mov eax, dword [esp + 0xc]
push eax
call esi
mov edi, 1
mov ecx, dword [esp + 8]
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call esi
cmp edi, 1
jne 0x401562
push 0x40865c
call fcn.00401d30
add esp, 4
mov eax, edi
pop edi
pop esi
add esp, 8
ret
push 0x408630
call fcn.00401d30
add esp, 4
mov eax, edi
pop edi
pop esi
add esp, 8
ret