joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410f10
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
push edi
push str.CheckOS___n
call fcn.00403770
xor eax, eax
mov ecx, 0x25
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
add esp, 4
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea ecx, [esp + 4]
test ecx, ecx
mov ecx, dword [esp + 0x18]
jne 0x410f5a
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0xc]
lea edx, [esp + 4]
test edx, edx
jne 0x410f6a
mov eax, dword [esp + 4]
lea edx, [esp + 4]
test edx, edx
mov edx, dword [esp + 0x10]
jne 0x410f7a
mov edx, dword [esp + 4]
cmp ecx, 1
jne 0x410fb1
test edx, edx
jne 0x410f9a
push str.CheckOS___OS_:_Windows_95_n
call fcn.00403770
mov eax, 1
add esp, 4
pop edi
mov esp, ebp
pop ebp
ret
push str.CheckOS___OS_:_Windows_98_SE__Me_n
call fcn.00403770
mov eax, 1
add esp, 4
pop edi
mov esp, ebp
pop ebp
ret
cmp eax, 4
jne 0x410fcd
push str.CheckOS___OS_:_Windows_NT4.0_n
call fcn.00403770
mov eax, 2
add esp, 4
pop edi
mov esp, ebp
pop ebp
ret
cmp eax, 3
jne 0x410fe9
push str.CheckOS___OS_:_Windows_NT3.xx_n
call fcn.00403770
mov eax, 3
add esp, 4
pop edi
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x411020
test edx, edx
jne 0x411009
push str.CheckOS___OS_:_Windows_2000_n
call fcn.00403770
mov eax, 3
add esp, 4
pop edi
mov esp, ebp
pop ebp
ret
push str.CheckOS___OS_:_Windows_XP_or_Later_n
call fcn.00403770
mov eax, 3
add esp, 4
pop edi
mov esp, ebp
pop ebp
ret
push str.CheckOS___OS_:_Windows_Longhorn_or_Later_n
call fcn.00403770
add esp, 4
mov eax, 3
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x411040
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push str.CheckAdmin___n
call fcn.00403770
add esp, 4
lea eax, [ebp - 4]
push eax
push 0
push 8
mov byte [ebp - 0x1c], 0
mov byte [ebp - 0x1b], 0
mov byte [ebp - 0x1a], 0
mov byte [ebp - 0x19], 0
mov byte [ebp - 0x18], 0
mov byte [ebp - 0x17], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x4110b5
call esi
cmp eax, 0x3f0
jne 0x411158
lea ecx, [ebp - 4]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x411158
mov eax, dword [ebp - 4]
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea edx, [ebp - 0xc]
push edx
push 0
push 0
push 2
push eax
call ebx
test eax, eax
jne 0x411158
call esi
cmp eax, 0x7a
jne 0x411158
mov edi, dword [ebp - 0xc]
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.004162c0
mov esi, esp
test esi, esi
je 0x411158
mov edx, dword [ebp - 4]
lea ecx, [ebp - 0xc]
push ecx
push edi
push esi
push 2
push edx
call ebx
test eax, eax
je 0x411158
mov edi, dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0x1c]
push ecx
call edi
test eax, eax
je 0x411158
lea edx, [ebp - 0x14]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x223
push 0x20
push 2
lea eax, [ebp - 0x1c]
push eax
call edi
test eax, eax
jne 0x411164
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
xor eax, eax
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
xor edi, edi
test eax, eax
mov dword [ebp - 0x10], 0
jbe 0x41119a
lea ebx, [esi + 4]
mov edx, dword [ebp - 8]
mov eax, dword [ebx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x411193
mov eax, dword [esi]
inc edi
add ebx, 8
cmp edi, eax
jb 0x411176
jmp 0x41119a
mov dword [ebp - 0x10], 1
mov ecx, dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_FreeSid]
push ecx
call esi
mov edx, dword [ebp - 0x14]
push edx
call esi
mov eax, dword [ebp - 0x10]
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411230
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41fa98
push eax
mov dword fs:[0], esp
push esi
mov eax, dword [esp + 0x14]
push eax
xor esi, esi
push str.RemoveFile___file_name_:__s_n
mov dword [esp + 0x14], esi
call fcn.00403770
add esp, 8
lea ecx, [esp + 0x14]
call fcn.00402cb0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41129d
test al, 1
je 0x41128b
and eax, 0xfffffffe
push eax
lea ecx, [esp + 0x18]
call fcn.00402cb0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x14]
call fcn.00402cb0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 0xffffffff
call fcn.00401910
mov ecx, dword [esp + 4]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret

Function at 0x4112c0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x41fada
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
push str.GetTemporaryFileName___n
mov dword [esp + 8], 0
call fcn.00403770
add esp, 4
push 0x4202b4
lea ecx, [esp + 4]
call fcn.00402390
lea eax, [esp + 8]
push eax
push 0x104
mov dword [esp + 0x220], 1
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x41134c
lea ecx, [esp + 0x10c]
push ecx
push 0
push 0x423320
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x41134c
lea eax, [esp + 0x10c]
push eax
lea ecx, [esp + 4]
call fcn.004019c0
mov ecx, dword [esp]
push esi
push ecx
push str.GetTemporaryFileName___file_name_:__s_n
call fcn.00403770
mov esi, dword [esp + 0x22c]
add esp, 8
lea edx, [esp + 4]
push edx
mov ecx, esi
call fcn.00402330
lea ecx, [esp + 4]
mov dword [esp + 8], 1
mov byte [esp + 0x21c], 0
call fcn.00401910
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x21c
ret

Function at 0x4116a0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x41fb9a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push str.GetSpecialFolderLocation___n
mov dword [esp + 0xc], 0
call fcn.00403770
add esp, 4
lea ecx, [esp]
call fcn.004017b0
mov ecx, dword [esp + 0x128]
mov edx, dword [esp + 0x124]
lea eax, [esp + 4]
push eax
push ecx
push edx
mov dword [esp + 0x124], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x411726
mov ecx, dword [esp + 4]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x411726
lea edx, [esp + 0xc]
push edx
lea ecx, [esp + 4]
call fcn.004019c0
jmp 0x41172e
lea ecx, [esp]
call fcn.00402370
mov eax, dword [esp]
push esi
push eax
push str.GetSpecialFolderLocation___Path_:__s_n
call fcn.00403770
mov esi, dword [esp + 0x12c]
add esp, 8
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.00402330
lea ecx, [esp + 4]
mov dword [esp + 0xc], 1
mov byte [esp + 0x11c], 0
call fcn.00401910
mov ecx, dword [esp + 0x114]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x11c
ret
Function at 0x411790
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41fbd9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
xor ebx, ebx
push edi
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x30]
push eax
mov edi, 1
push str.GetDriverName___printer_name_:__s_n
mov dword [esp + 0x2c], edi
call fcn.00403770
add esp, 8
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], ebx
call fcn.004017b0
push 0x4202b4
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 2
call fcn.004019c0
push ebx
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x38]
call fcn.00402cb0
push eax
call sub.WINSPOOL.DRV_OpenPrinterA
cmp eax, ebx
jne 0x411841
push ebx
push edi
push 8
call fcn.00403950
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp eax, ebx
je 0x41181f
push eax
call sub.WINSPOOL.DRV_ClosePrinter
push str.GetDriverName___error1_n
call fcn.00403770
mov esi, dword [esp + 0x30]
add esp, 4
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.00402330
jmp 0x41193e
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ebx
push ebx
push 2
push ecx
mov dword [esp + 0x28], ebx
call sub.WINSPOOL.DRV_GetPrinterA
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x411898
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xa
push 7
call fcn.00403950
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp eax, ebx
je 0x411881
push eax
call sub.WINSPOOL.DRV_ClosePrinter
push str.GetDriverName___error2_n
call fcn.00403770
add esp, 4
lea edx, [esp + 0xc]
push edx
jmp 0x411933
push eax
call fcn.0041563f
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push eax
push ecx
push esi
push 2
push edx
call sub.WINSPOOL.DRV_GetPrinterA
cmp eax, ebx
jne 0x4118fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xa
push 7
call fcn.00403950
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp eax, ebx
je 0x4118df
push eax
call sub.WINSPOOL.DRV_ClosePrinter
cmp esi, ebx
je 0x4118ec
push esi
call fcn.0041563a
add esp, 4
push str.GetDriverName___error3_n
call fcn.00403770
add esp, 4
jmp 0x41192e
mov ecx, dword [esi + 0x10]
push ecx
lea ecx, [esp + 0x10]
call fcn.004019c0
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x411916
push eax
call sub.WINSPOOL.DRV_ClosePrinter
push esi
call fcn.0041563a
mov edx, dword [esp + 0x10]
push edx
push str.GetDriverName___success_:_driver_name_:__s_n
call fcn.00403770
add esp, 0xc
lea eax, [esp + 0xc]
push eax
mov esi, dword [esp + 0x30]
mov ecx, esi
call fcn.00402330
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 1
mov dword [esp + 0x18], edi
call fcn.00401910
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], bl
call fcn.00401910
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x411b60
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x41fc8d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
lea ebx, [esi + 0xc]
push edi
mov ecx, ebx
mov dword [esp + 0x10], esi
mov dword [esi], 0x423570
call fcn.004017b0
lea ebp, [esi + 0x10]
xor edi, edi
mov ecx, ebp
mov dword [esp + 0x1c], edi
call fcn.004017b0
lea ecx, [esi + 0x18]
mov byte [esp + 0x1c], 1
call fcn.004017b0
lea ecx, [esi + 0x2c]
mov byte [esp + 0x1c], 2
call fcn.004017b0
lea ecx, [esi + 0x30]
mov byte [esp + 0x1c], 3
call fcn.00402cf0
lea ecx, [esi + 0x34]
mov byte [esp + 0x1c], 4
call fcn.004017b0
lea ecx, [esi + 0x38]
mov byte [esp + 0x1c], 5
call fcn.004017b0
mov ecx, ebx
mov byte [esp + 0x1c], 6
mov dword [esi + 4], edi
mov dword [esi + 8], edi
call fcn.00402370
mov ecx, ebp
call fcn.00402370
lea ecx, [esi + 0x18]
mov dword [esi + 0x14], edi
call fcn.00402370
lea ecx, [esi + 0x2c]
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
call fcn.00402370
lea ecx, [esi + 0x30]
call fcn.004034a0
mov ecx, dword [esp + 0x14]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x411c40
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x41fce2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x423570
lea ecx, [esi + 0x38]
mov dword [esp + 0x10], 5
call fcn.00401910
lea ecx, [esi + 0x34]
mov byte [esp + 0x10], 4
call fcn.00401910
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 3
call fcn.00402cc0
lea ecx, [esi + 0x2c]
mov byte [esp + 0x10], 2
call fcn.00401910
lea ecx, [esi + 0x18]
mov byte [esp + 0x10], 1
call fcn.00401910
lea ecx, [esi + 0x10]
mov byte [esp + 0x10], 0
call fcn.00401910
lea ecx, [esi + 0xc]
mov dword [esp + 0x10], 0xffffffff
call fcn.00401910
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4131c0
Capabilities:
Delete file
Get file size
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push edi
mov edi, ecx
push eax
mov dword [esp + 8], edi
call fcn.00412ab0
test eax, eax
je 0x41338a
push ebx
push ebp
push esi
nop
lea esi, [edi + 0x34]
xor ebx, ebx
mov ecx, esi
mov dword [esp + 0x1c], ebx
call fcn.00401d50
test eax, eax
jne 0x4132a2
push eax
push 0x80
push 3
push eax
push 1
push 0x80000000
mov ecx, esi
call fcn.00402cb0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x413385
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x413293
lea edi, [ebp + 1]
push edi
call fcn.004164a2
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x41328f
mov ecx, edi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
push 0
rep stosb byte es:[edi], al
lea eax, [esp + 0x18]
push eax
push ebp
push ebx
push esi
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x413286
cmp dword [esp + 0x14], ebp
jne 0x413286
mov ecx, dword [esp + 0x10]
push ebx
call fcn.00412ab0
mov dword [esp + 0x1c], eax
push ebx
call fcn.0041649d
add esp, 4
mov edi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [edi + 0x34]
jmp 0x41335a
lea esi, [edi + 0x38]
mov ecx, esi
call fcn.00401d50
test eax, eax
jne 0x413385
push eax
push 0x80
push 3
push eax
push 1
push 0x80000000
mov ecx, esi
call fcn.00402cb0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x413385
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x413350
lea edi, [ebp + 2]
push edi
call fcn.004164a2
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x41334c
mov ecx, edi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
push 0
rep stosb byte es:[edi], al
lea eax, [esp + 0x18]
push eax
push ebp
push ebx
push esi
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x413343
cmp dword [esp + 0x14], ebp
jne 0x413343
mov ecx, dword [esp + 0x10]
push ebx
call fcn.00413080
mov dword [esp + 0x1c], eax
push ebx
call fcn.0041649d
add esp, 4
mov edi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [edi + 0x38]
mov ecx, esi
call fcn.00402cb0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, esi
call fcn.00402370
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4131e0
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 4
pop esi
pop ebp
mov eax, ebx
pop ebx
pop edi
add esp, 8
ret 4
Function at 0x4134c0
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x41fd71
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebp
mov ebp, ecx
mov dword [esp + 8], 0
mov eax, dword [ebp + 8]
test eax, eax
push esi
jne 0x413510
mov esi, dword [esp + 0x30]
push 0x4202b4
mov ecx, esi
call fcn.00402390
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
push edi
lea ecx, [esp + 0xc]
call fcn.004017b0
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 1
call fcn.00402370
push 0x100
call fcn.0041563f
push 0x100
mov esi, eax
call fcn.0041563f
add esp, 8
test esi, esi
mov edi, eax
je 0x4135b2
test edi, edi
je 0x4135b2
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [ebp + 4]
push edi
push 0
lea edx, [esp + 0x28]
push edx
push esi
push eax
push ecx
mov dword [esp + 0x38], 0x100
mov dword [esp + 0x34], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x41359c
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x413592
push edi
call fcn.004019c0
push esi
lea ecx, [esp + 0x10]
call fcn.004019c0
push esi
call fcn.0041563a
push edi
call fcn.0041563a
add esp, 8
lea edx, [esp + 0xc]
push edx
jmp 0x4135b7
lea eax, [esp + 0xc]
push eax
mov esi, dword [esp + 0x38]
mov ecx, esi
call fcn.00402330
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 1
call fcn.00401910
mov ecx, dword [esp + 0x24]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc

Function at 0x4135f0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x41fda1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], 0
mov eax, dword [edi + 8]
test eax, eax
jne 0x413640
mov esi, dword [esp + 0x24]
push 0x4202b4
mov ecx, esi
call fcn.00402390
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 8
lea ecx, [esp + 8]
call fcn.004017b0
lea ecx, [esp + 8]
mov dword [esp + 0x1c], 1
call fcn.00402370
push 0x100
mov dword [esp + 0x14], 0x100
call fcn.0041563f
mov esi, eax
add esp, 4
test esi, esi
jne 0x41367c
lea eax, [esp + 8]
push eax
jmp 0x4136b5
mov edx, dword [esp + 0x28]
mov eax, dword [edi + 4]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x4136a7
push esi
lea ecx, [esp + 0xc]
call fcn.004019c0
push esi
call fcn.0041563a
add esp, 4
lea ecx, [esp + 8]
push ecx
mov esi, dword [esp + 0x28]
mov ecx, esi
call fcn.00402330
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 0
mov dword [esp + 0xc], 1
call fcn.00401910
mov ecx, dword [esp + 0x14]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 8
Function at 0x413720
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x41fdd1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [esp + 8], 0
mov eax, dword [edi + 8]
test eax, eax
jne 0x41376e
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
push eax
mov ecx, esi
call fcn.00402330
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0x28]
call fcn.00402330
mov edx, dword [esp + 0x28]
push edx
mov dword [esp + 0x18], 1
call fcn.0041563f
mov esi, eax
add esp, 4
test esi, esi
jne 0x41379e
lea eax, [esp + 0x24]
push eax
jmp 0x4137d3
mov edx, dword [esp + 0x20]
mov eax, dword [edi + 4]
lea ecx, [esp + 0x28]
push ecx
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4137c5
push esi
lea ecx, [esp + 0x28]
call fcn.004019c0
push esi
call fcn.0041563a
add esp, 4
lea ecx, [esp + 0x24]
push ecx
mov esi, dword [esp + 0x20]
mov ecx, esi
call fcn.00402330
lea ecx, [esp + 0x24]
mov byte [esp + 0x14], 0
mov dword [esp + 8], 1
call fcn.00401910
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10

Function at 0x413810
Capabilities:
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41fde8
push eax
mov dword fs:[0], esp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 8]
test eax, eax
jne 0x413845
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret 8
mov esi, dword [esp + 0x1c]
push esi
lea ecx, [esp + 0x20]
call fcn.00402390
mov ecx, eax
mov dword [esp + 0x10], 0
call fcn.00402ca0
mov ecx, dword [edi + 4]
inc eax
push eax
mov eax, dword [esp + 0x1c]
push esi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
neg esi
sbb esi, esi
lea ecx, [esp + 0x1c]
inc esi
mov dword [esp + 0x10], 0xffffffff
call fcn.00401910
mov ecx, dword [esp + 8]
pop edi
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 8

Function at 0x4138b0
Capabilities:
Query or enumerate registry value

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

Function at 0x4138f0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [ecx + 8]
test eax, eax
jne 0x4138fc
xor eax, eax
ret 8
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx + 4]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
inc eax
ret 8
Function at 0x413920
Capabilities:
Set registry value

Disassembly:
mov eax, dword [ecx + 8]
test eax, eax
jne 0x41392c
xor eax, eax
ret 0xc
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov ecx, dword [ecx + 4]
push eax
mov eax, dword [esp + 8]
push edx
push 3
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
inc eax
ret 0xc

Function at 0x413a10
Capabilities:
Delete registry key

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41fe18
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebp
mov ebp, ecx
mov eax, dword [ebp + 8]
test eax, eax
jne 0x413a46
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 4
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 4]
push ebx
push esi
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xd0026
add esi, 0x20019
test eax, eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], 0x423578
mov dword [esp + 0x1c], 0
je 0x413a8a
push esi
push 0
push 0
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.004133c0
jmp 0x413aa7
lea edx, [esp + 0x18]
push edx
push esi
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0
call fcn.004017b0
push 0
push 0
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 1
call fcn.004134c0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 2
call fcn.00401940
lea edx, [esp + 0xc]
push 0x4202b4
push edx
call fcn.004016b0
add esp, 8
lea ecx, [esp + 0x10]
mov bl, al
mov byte [esp + 0x2c], 1
call fcn.00401910
test bl, bl
je 0x413b66
lea ecx, [esp + 0xc]
call fcn.00402cb0
push eax
lea ecx, [esp + 0x18]
call fcn.00413a10
test eax, eax
je 0x413bb7
push 0
push 0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
call fcn.004134c0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 2
call fcn.00401940
lea ecx, [esp + 0xc]
push 0x4202b4
push ecx
call fcn.004016b0
add esp, 8
lea ecx, [esp + 0x10]
mov bl, al
mov byte [esp + 0x2c], 1
call fcn.00401910
test bl, bl
jne 0x413b04
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call fcn.00401910
mov eax, dword [esp + 0x1c]
test eax, eax
mov dword [esp + 0x14], 0x423578
je 0x413b8f
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x34]
mov edx, dword [ebp + 4]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
neg eax
pop esi
sbb eax, eax
pop ebx
inc eax
pop ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 4
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call fcn.00401910
mov eax, dword [esp + 0x1c]
test eax, eax
mov dword [esp + 0x14], 0x423578
je 0x413be0
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x24]
pop esi
pop ebx
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret 4