joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4833a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
push edi
push eax
call fcn.00487c60
mov esi, dword [esp + 0x38]
mov ebx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 4
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], ebp
test ebx, ebx
je 0x4834f0
test ecx, ecx
je 0x4834f0
inc ecx
push ecx
call fcn.0049537d
mov ebp, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov edx, ecx
mov esi, edi
mov edi, ebp
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00489470
mov edi, eax
add esp, 0xc
test edi, edi
je 0x483419
mov byte [edi], 0
inc edi
lea eax, [esp + 0x1c]
push eax
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4834dd
push 0x400
mov dword [esp + 0x18], 0x400
mov dword [esp + 0x1c], 1
call fcn.0049537d
add esp, 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push esi
push edx
push 0
push edi
push eax
call ebx
test eax, eax
je 0x4834a1
cmp eax, 0xea
jne 0x4834c9
push esi
call fcn.004953a6
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0049537d
mov ecx, dword [esp + 0x24]
add esp, 8
lea edx, [esp + 0x14]
mov esi, eax
push edx
lea eax, [esp + 0x1c]
push esi
push eax
push 0
push edi
push ecx
call ebx
test eax, eax
jne 0x48346c
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x4834af
cmp eax, 2
jne 0x4834c9
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
call fcn.00487bd0
add esp, 8
mov dword [esp + 0x10], eax
push esi
call fcn.004953a6
mov edx, dword [esp + 0x20]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.004953a6
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
jne 0x48351e
mov ebp, eax
mov eax, dword [esp + 0x48]
test eax, eax
je 0x48352a
mov edx, dword [esp + 0x40]
test edx, edx
je 0x48352a
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
call fcn.00487bd0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x483c90
Capabilities:
Create directory

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
lea eax, [esp]
mov dword [esp], 0xc
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 0xc
ret

Function at 0x483d20
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x483d3e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x483d33
pop esi
ret
Function at 0x4840e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x4840f3
xor eax, eax
pop esi
add esp, 8
ret
push esi
call fcn.00487fb0
add esp, 4
test eax, eax
jne 0x484105
pop esi
add esp, 8
ret
mov eax, dword [esi]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push edi
mov dword [esp + 0x10], 0
jne 0x48417c
mov eax, dword [esp + 0x1c]
mov edi, dword [esi + 4]
cmp eax, ebx
mov dword [esp + 0x10], ebx
jle 0x4841ae
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x484168
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x484138
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
pop edi
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0xc]
pop ebp
pop ebx
pop esi
add esp, 8
ret
cmp eax, 2
jne 0x4841ae
mov eax, dword [esp + 0x1c]
mov esi, dword [esi + 4]
cmp eax, ebx
mov dword [esp + 0x10], ebx
jle 0x4841ae
lea edi, [esp + 0x2c]
lea ebx, [eax - 1]
mov eax, dword [edi]
mov edx, dword [esi]
mov ecx, dword [eax + 4]
add eax, 8
push ecx
push eax
mov ecx, esi
call dword [edx + 0x24]
add edi, 0xc
dec ebx
jne 0x484197
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret

Function at 0x4846b0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], 1
je case.0x4846f1.2
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 1]
cmp eax, 5
ja case.0x4846f1.2
jmp dword [eax*4 + 0x48477c]
mov word [esp + 0x48], di
jmp 0x48472a
mov word [esp + 0x48], 2
jmp 0x48472a
mov word [esp + 0x48], 3
jmp 0x48472a
mov word [esp + 0x48], 4
jmp 0x48472a
mov word [esp + 0x48], 7
jmp 0x48472a
mov word [esp + 0x48], 5
lea edx, [esp + 8]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp esi, edi
je 0x484774
cmp dword [esp + 0x70], edi
je 0x484760
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret
Function at 0x485cf0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x485d59
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.00482dc0
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x497d4c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x497d8e
call fcn.0049b09e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x497d8e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x497d85
xor eax, eax
jmp 0x497d96
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00497d9c
pop edi
pop esi
pop ebx
ret 4
Function at 0x498d2a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x49c968
call fcn.0048a82c
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0049b09e
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x498d69
call fcn.0049b09e
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x498d77
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x498d85
or eax, 0xffffffff
jmp 0x498e6d
mov ecx, esi
call fcn.00498ca0
mov dword [ebp - 0x14], eax
call fcn.00496392
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x498dbc
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x498dbc
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.00496346
push dword [ebp - 0x14]
call fcn.00495e78
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00498a38
cmp eax, edi
je 0x498e2f
test byte [esi + 0x24], 0x10
je 0x498dfd
push 4
mov ecx, esi
pop ebx
call fcn.00495878
test ah, 1
je 0x498df5
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.00497e9e
cmp dword [esi + 0x1c], edi
je 0x498e2f
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.004958ac
jmp 0x498e2f
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x498e43
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x498e5c
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x498e5c
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.00498cda
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x49ac10
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x49ac3e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49ac5c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049ab76
jmp 0x49ac5c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49ac5c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049ab76
test edi, edi
mov eax, edi
jne 0x49ac46
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
mov ecx, 0x1e604e8d
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
mov ecx, 0x6c9006be
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x4073c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a3c98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x4d93ac]
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0
call fcn.00490da4
lea ecx, [esp + 0xc]
mov bl, 1
push ecx
lea ecx, [esi + 0x98]
mov byte [esp + 0x30], bl
call fcn.0048cc57
push str.CollectorText.txt
lea edx, [esp + 0x14]
push 0x4ddfc8
push edx
call fcn.0048fe06
mov eax, dword [eax]
push 0
push 0x1041
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 2
call fcn.00490eb6
lea ecx, [esp + 0x10]
mov edi, eax
mov byte [esp + 0x2c], bl
call fcn.0048fb71
test edi, edi
je 0x407467
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.0049100d
lea ecx, [esp + 0x14]
call fcn.004910d1
lea eax, [esp + 0xc]
lea ecx, [esi + 0xd4]
push eax
call fcn.0048cc57
push str.CollectorOutput.txt
lea ecx, [esp + 0x14]
push 0x4ddfc8
push ecx
call fcn.0048fe06
mov eax, dword [eax]
push 0
push 0x1041
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 3
call fcn.00490eb6
lea ecx, [esp + 0x10]
mov edi, eax
mov byte [esp + 0x2c], bl
call fcn.0048fb71
test edi, edi
je 0x4074d1
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.0049100d
lea ecx, [esp + 0x14]
call fcn.004910d1
lea edx, [esp + 0xc]
lea ecx, [esi + 0x110]
push edx
call fcn.0048cc57
push str.CollectorScript.txt
lea eax, [esp + 0x14]
push 0x4ddfc8
push eax
call fcn.0048fe06
mov eax, dword [eax]
push 0
push 0x1041
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 4
call fcn.00490eb6
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0x2c], bl
call fcn.0048fb71
pop edi
test esi, esi
pop esi
pop ebx
je 0x40753e
mov eax, dword [esp]
mov ecx, dword [eax - 8]
push ecx
push eax
lea ecx, [esp + 0x10]
call fcn.0049100d
lea ecx, [esp + 8]
call fcn.004910d1
lea ecx, [esp + 8]
mov byte [esp + 0x20], 0
call fcn.00490df9
lea ecx, [esp]
mov dword [esp + 0x20], 0xffffffff
call fcn.0048fb71
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x40b230
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4a41a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 0x4db730
lea ecx, [esp + 0x14]
call fcn.0048fbdf
mov eax, dword [0x4de004]
xor ebx, ebx
push eax
push 0x104
push 0x104
lea ecx, [esp + 0x1c]
mov dword [esp + 0x50], ebx
call fcn.0048ffa1
push eax
push 0x4d56b8
push str.HelpTip
push str.Settings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.0048fff0
lea ebp, [esi + 0x64]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov edi, 5
push 0x4db730
lea ecx, [esp + 0x30]
mov word [esp + 0x30], bx
call fcn.00471ffb
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 1
push ecx
lea ecx, [esp + 0x20]
mov word [esp + 0x20], bx
call fcn.00472069
lea edx, [esp + 0x2c]
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, ebp
mov byte [esp + 0x50], 2
call fcn.00404230
lea ecx, [esp + 0x14]
call fcn.004a245c
lea edx, [esp + 0x1c]
push edx
call esi
lea eax, [esp + 0x2c]
mov byte [esp + 0x44], bl
push eax
call esi
dec edi
jne 0x40b2aa
lea ecx, [esp + 0x10]
mov dword [esp + 0x44], 0xffffffff
call fcn.0048fb71
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x40b24a
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4a41a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 0x4db730
lea ecx, [esp + 0x14]
call fcn.0048fbdf
mov eax, dword [0x4de004]
xor ebx, ebx
push eax
push 0x104
push 0x104
lea ecx, [esp + 0x1c]
mov dword [esp + 0x50], ebx
call fcn.0048ffa1
push eax
push 0x4d56b8
push str.HelpTip
push str.Settings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.0048fff0
lea ebp, [esi + 0x64]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov edi, 5
push 0x4db730
lea ecx, [esp + 0x30]
mov word [esp + 0x30], bx
call fcn.00471ffb
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 1
push ecx
lea ecx, [esp + 0x20]
mov word [esp + 0x20], bx
call fcn.00472069
lea edx, [esp + 0x2c]
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, ebp
mov byte [esp + 0x50], 2
call fcn.00404230
lea ecx, [esp + 0x14]
call fcn.004a245c
lea edx, [esp + 0x1c]
push edx
call esi
lea eax, [esp + 0x2c]
mov byte [esp + 0x44], bl
push eax
call esi
dec edi
jne 0x40b2aa
lea ecx, [esp + 0x10]
mov dword [esp + 0x44], 0xffffffff
call fcn.0048fb71
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x40f530
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4a4915
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x808
mov dword [esp + 4], 0
mov dword [esp + 0x810], 1
mov eax, dword [0x4d93ac]
mov dword [esp], eax
lea ecx, [esp]
mov byte [esp + 0x810], 3
call fcn.0048fafc
mov ecx, dword [esp + 0x81c]
mov eax, dword [esp + 0x820]
push ecx
lea edx, [esp + 0xc]
push 0x800
push edx
push 0
push eax
push 0x4d5804
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x40f5b1
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 4]
call fcn.0048fcfa
push esi
mov esi, dword [esp + 0x81c]
lea edx, [esp + 4]
mov ecx, esi
push edx
call fcn.0048f8e6
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x814], 2
call fcn.0048fb71
lea ecx, [esp + 0x820]
mov byte [esp + 0x814], 1
call fcn.0048fb71
lea ecx, [esp + 0x824]
mov byte [esp + 0x814], 0
call fcn.0048fb71
mov ecx, dword [esp + 0x80c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x814
ret
Function at 0x40f910
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4a49a3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x810
push ebx
push esi
mov dword [esp + 0xc], 0
mov eax, dword [0x4d93ac]
mov ebx, 1
mov dword [esp + 0x820], ebx
mov dword [esp + 8], eax
lea ecx, [esp + 8]
mov byte [esp + 0x820], 2
call fcn.0048fafc
mov ecx, dword [esp + 0x82c]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ecx
lea edx, [esp + 0x1c]
push 0x800
push edx
push 0
push str.HotIcon
push 0x4d5804
call esi
test eax, eax
jne 0x40f9c5
mov eax, dword [esp + 0x82c]
lea ecx, [esp + 0x18]
push eax
push 0x800
push ecx
push 0
push str.Icon
push 0x4d5804
call esi
test eax, eax
jne 0x40f9c5
mov esi, dword [esp + 0x828]
lea edx, [esp + 8]
push edx
mov ecx, esi
call fcn.0048f8e6
mov dword [esp + 0xc], ebx
jmp 0x40fa49
push 0x5c
lea ecx, [esp + 0x830]
call fcn.00488097
inc eax
lea ecx, [esp + 0x82c]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0048801f
lea ecx, [esp + 0x18]
lea edx, [esp + 0x10]
push ecx
push eax
push edx
mov byte [esp + 0x82c], 3
call fcn.0048fe06
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x824], 4
call fcn.0048fcaa
lea ecx, [esp + 0x10]
mov byte [esp + 0x820], 3
call fcn.0048fb71
lea ecx, [esp + 0x14]
mov byte [esp + 0x820], 2
call fcn.0048fb71
mov esi, dword [esp + 0x828]
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.0048f8e6
mov dword [esp + 0xc], ebx
lea ecx, [esp + 8]
mov byte [esp + 0x820], bl
call fcn.0048fb71
lea ecx, [esp + 0x82c]
mov byte [esp + 0x820], 0
call fcn.0048fb71
mov ecx, dword [esp + 0x818]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x81c
ret
Function at 0x411080
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
mov dword [esp], 4
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4110a6
xor eax, eax
pop ecx
ret
mov edx, dword [esp + 0x10]
lea eax, [esp]
lea ecx, [esp + 8]
push eax
mov eax, dword [esp + 0x10]
push ecx
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4110d0
mov dword [esp + 8], 0
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 8]
pop ecx
ret

Function at 0x4110f0
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
push eax
push esi
push edi
xor ebx, ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x411125
lea ecx, [esp + 0x14]
push ecx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x411125
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push 4
push edx
push 4
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x411149
mov ebx, 1
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x411160
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4a4c15
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
mov eax, dword [0x4d93ac]
push esi
push edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
lea ecx, [esp + 8]
mov dword [esp + 0x124], 1
mov dword [esp + 0x14], 0x104
call fcn.0048fafc
mov edx, dword [esp + 0x134]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x130]
lea ecx, [esp + 0x10]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4111f3
mov esi, dword [esp + 0x12c]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.0048f8e6
mov dword [esp + 0xc], 1
jmp 0x41124c
mov ecx, dword [esp + 0x138]
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
push eax
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x411226
lea eax, [esp + 0x18]
lea ecx, [esp + 8]
push eax
call fcn.0048fcfa
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x12c]
lea edx, [esp + 8]
push edx
mov ecx, esi
call fcn.0048f8e6
mov dword [esp + 0xc], 1
lea ecx, [esp + 8]
mov byte [esp + 0x124], 0
call fcn.0048fb71
mov ecx, dword [esp + 0x11c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x120
ret
Function at 0x411280
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4112b1
lea ecx, [esp + 0x10]
push ecx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x4112b1
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x18]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov edx, dword [esp + 0x1c]
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]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
ret

Function at 0x4112f0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x4a4c28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push ebx
push esi
push edi
mov ecx, dword [esp + 0x12c]
mov ebx, dword [esp + 0x128]
lea eax, [esp + 0xc]
mov dword [esp + 0x120], 0
push eax
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4113b5
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea edx, [esp + 0x14]
push 0x104
push edx
push eax
mov eax, dword [esp + 0x18]
push eax
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x41139f
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push ecx
push edx
call edi
test eax, eax
je 0x411388
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call fcn.0048fbdf
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004112f0
add esp, 8
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push 0x104
push edx
push 0
push eax
call esi
test eax, eax
je 0x41135a
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x12c]
push edx
push ebx
call edi
lea ecx, [esp + 0x12c]
mov dword [esp + 0x120], 0xffffffff
call fcn.0048fb71
mov ecx, dword [esp + 0x118]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x118
ret