joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ca70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48aca0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4b185c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
cmp dword [edi + 4], 0
jne 0x40cac1
mov eax, dword [edi + 0xc]
add eax, eax
cmp dword [edi + 0x10], 0x4b8
jne 0x40cab5
add eax, eax
push eax
call fcn.0046b442
add esp, 4
mov dword [edi + 4], eax
mov eax, dword [edi + 0x10]
mov esi, dword [edi + 8]
mov ebx, dword [edi + 4]
cmp eax, 0xfde7
jne 0x40caf2
mov al, byte [esi]
mov byte [ebx], al
inc ebx
add esi, 2
test al, al
jne 0x40cad1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 0x4b8
jne 0x40cbb1
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40cb02
sub eax, edx
sar eax, 1
lea edi, [eax + 1]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
cmp edi, eax
je 0x40cb37
lea ecx, [edi + edi]
push ecx
push eax
call fcn.0046df68
add esp, 8
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x14]
lea edx, [edi + edi]
push edx
push esi
push eax
call fcn.0046b000
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov byte [esp + 0x3c], 1
lea edi, [esp + 0x28]
lea eax, [esp + 0x20]
call fcn.00406460
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
mov esi, dword [esp + 0x28]
add edx, edx
push esi
add edx, edx
push edx
push ebx
call fcn.0046ea87
mov byte [esp + 0x48], 0
push esi
call fcn.0046b365
mov dword [esp + 0x4c], 0xffffffff
mov eax, dword [esp + 0x30]
push eax
call fcn.0046b365
add esp, 0x20
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [edi + 0xc]
push 0
push 0
add ecx, ecx
push ecx
push ebx
push 0xffffffffffffffff
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40d8e0
Capabilities:
Create process on windows
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48056a
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x4b185c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x60], ecx
lea ecx, [ebp - 0x48]
call fcn.00401000
mov dword [ebp - 4], 0
lea eax, [ebp - 0x54]
push eax
call fcn.0040fcb0
add esp, 4
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x68], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x68]
push edx
lea ecx, [ebp - 0x48]
call fcn.004018c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.00402630
lea eax, [ebp - 0x50]
push eax
call fcn.00410550
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x4c]
call fcn.00402320
mov byte [ebp - 4], 3
push str.DriverWizard_CommandLine.html
mov ecx, dword [ebp - 0x10]
call fcn.0040e550
push eax
lea ecx, [ebp - 0x4c]
call fcn.00405270
mov ecx, eax
call fcn.00405270
push str.CommandLine_enu_.html
lea ecx, [ebp - 0x5c]
call fcn.00402350
mov byte [ebp - 4], 4
push 4
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x48]
call fcn.004016f0
mov byte [ebp - 0x55], al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x5c]
call fcn.00402630
movzx ecx, byte [ebp - 0x55]
test ecx, ecx
je 0x40d9f5
push 4
push 0
lea ecx, [ebp - 0x4c]
call fcn.00402260
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 1
push 0
push 0
lea ecx, [ebp - 0x4c]
call fcn.00402260
push eax
push str.open
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c]
call fcn.00402630
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.0040e4c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.004012a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x40da30
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x4b185c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xb8], ecx
mov dword [ebp - 0xa0], 0x94
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 2
jne 0x40dad9
lea ecx, [ebp - 0xa4]
push ecx
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40da87
xor al, al
jmp 0x40daf0
lea edx, [ebp - 0xb0]
push edx
push 0x48c840
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov dword [ebp - 0xb4], 1
mov dword [ebp - 0xa8], 2
push 0
push 0
push 0
lea eax, [ebp - 0xb4]
push eax
push 0
mov ecx, dword [ebp - 0xa4]
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40dad9
xor al, al
jmp 0x40daf0
push 0x80040001
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x40daee
xor al, al
jmp 0x40daf0
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046a0d3
mov esp, ebp
pop ebp
ret
Function at 0x40ff80
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4808af
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4b185c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x20]
call fcn.0040fe10
mov dword [ebp - 4], 0
push 0
push 0
push 1
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x14]
call fcn.0040e550
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x41002c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xb7
je 0x40fffa
cmp dword [ebp - 0x18], 0x50
jne 0x410012
mov byte [ebp - 0x19], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040e4c0
mov al, byte [ebp - 0x19]
jmp 0x41006c
mov byte [ebp - 0x1a], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040e4c0
mov al, byte [ebp - 0x1a]
jmp 0x41006c
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x14]
call fcn.0040e550
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 0x1b], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040e4c0
mov al, byte [ebp - 0x1b]
jmp 0x41006c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x410080
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4808f4
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4b185c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x21c], 0
mov eax, dword [ebp - 0x220]
movzx ecx, byte [eax + 0xac]
test ecx, ecx
je 0x410180
lea edx, [ebp - 0x218]
push edx
mov ecx, dword [ebp - 0x220]
call fcn.0040fe10
mov dword [ebp - 4], 1
mov byte [ebp - 0x214], 0
push 0x1ff
push 0
lea eax, [ebp - 0x213]
push eax
call fcn.0046ac10
add esp, 0xc
lea ecx, [ebp - 0x218]
call fcn.0040e550
push eax
push 0x200
lea ecx, [ebp - 0x214]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.0040e550
push eax
mov ecx, dword [ebp + 0xc]
call fcn.0040e550
push eax
push 0x48c8bc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jbe 0x410171
lea edx, [ebp - 0x214]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040e440
mov eax, dword [ebp - 0x21c]
or eax, 1
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x218]
call fcn.0040e4c0
mov eax, dword [ebp + 8]
jmp 0x4101bf
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x218]
call fcn.0040e4c0
mov ecx, dword [ebp + 0x10]
call fcn.0040e550
push eax
mov ecx, dword [ebp + 0xc]
call fcn.0040e550
push eax
push 0x48c8c8
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x220]
call fcn.00459f40
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x21c]
or edx, 1
mov dword [ebp - 0x21c], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046a0d3
mov esp, ebp
pop ebp
ret 0xc
Function at 0x410840
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x480aca
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x4b185c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x21c], 0
push 0x66
lea eax, [ebp - 0x10]
push eax
call fcn.00415aa0
add esp, 8
mov dword [ebp - 4], 1
movzx ecx, byte [0x4b328c]
test ecx, ecx
je 0x41091e
lea edx, [ebp - 0x218]
push edx
mov ecx, 0x4b31e0
call fcn.0040fe10
mov byte [ebp - 4], 2
mov byte [ebp - 0x214], 0
push 0x1ff
push 0
lea eax, [ebp - 0x213]
push eax
call fcn.0046ac10
add esp, 0xc
lea ecx, [ebp - 0x218]
call fcn.0040e550
push eax
push 0x200
lea ecx, [ebp - 0x214]
push ecx
lea ecx, [ebp - 0x10]
call fcn.0040e550
push eax
push str.WizardTitle
push 0x48c9bc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jbe 0x41090f
lea edx, [ebp - 0x214]
push edx
lea ecx, [ebp - 0x10]
call fcn.0040e530
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x218]
call fcn.0040e4c0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040e3e0
mov ecx, dword [ebp - 0x21c]
or ecx, 1
mov dword [ebp - 0x21c], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0040e4c0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046a0d3
mov esp, ebp
pop ebp
ret

Function at 0x410970
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x480b24
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x4b185c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x21c], 0
push 0x48c9c0
lea ecx, [ebp - 0x10]
call fcn.0040e440
mov dword [ebp - 4], 1
movzx eax, byte [0x4b328c]
test eax, eax
je 0x410a4d
lea ecx, [ebp - 0x218]
push ecx
mov ecx, 0x4b31e0
call fcn.0040fe10
mov byte [ebp - 4], 2
mov byte [ebp - 0x214], 0
push 0x1ff
push 0
lea edx, [ebp - 0x213]
push edx
call fcn.0046ac10
add esp, 0xc
lea ecx, [ebp - 0x218]
call fcn.0040e550
push eax
push 0x200
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040e550
push eax
push str.DriversName
push 0x48c9e0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jbe 0x410a3e
lea ecx, [ebp - 0x214]
push ecx
lea ecx, [ebp - 0x10]
call fcn.0040e530
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x218]
call fcn.0040e4c0
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040e3e0
mov eax, dword [ebp - 0x21c]
or eax, 1
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0040e4c0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046a0d3
mov esp, ebp
pop ebp
ret
Function at 0x410a90
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x480b7e
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x4b185c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x21c], 0
push 0x48c9e4
lea ecx, [ebp - 0x10]
call fcn.0040e440
mov dword [ebp - 4], 1
movzx eax, byte [0x4b328c]
test eax, eax
je 0x410b6d
lea ecx, [ebp - 0x218]
push ecx
mov ecx, 0x4b31e0
call fcn.0040fe10
mov byte [ebp - 4], 2
mov byte [ebp - 0x214], 0
push 0x1ff
push 0
lea edx, [ebp - 0x213]
push edx
call fcn.0046ac10
add esp, 0xc
lea ecx, [ebp - 0x218]
call fcn.0040e550
push eax
push 0x200
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040e550
push eax
push 0x48c9ec
push 0x48c9f8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jbe 0x410b5e
lea ecx, [ebp - 0x214]
push ecx
lea ecx, [ebp - 0x10]
call fcn.0040e530
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x218]
call fcn.0040e4c0
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040e3e0
mov eax, dword [ebp - 0x21c]
or eax, 1
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0040e4c0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046a0d3
mov esp, ebp
pop ebp
ret
Function at 0x411e60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x24]
call fcn.00411f60
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0xc], eax
push str.BINARYDATA
movzx eax, word [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x411ea0
xor al, al
jmp 0x411f53
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x411ebe
xor al, al
jmp 0x411f53
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.0046b000
add esp, 0xc
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [ebp - 8], 0
lea ecx, [ebp - 8]
push ecx
push 1
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x411f51
push 0
mov eax, dword [ebp - 8]
push eax
call fcn.00412670
add esp, 8
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x54], eax
mov ecx, dword [ebp - 0x24]
call fcn.00411fe0
mov al, 1
jmp 0x411f53
xor al, al
mov esp, ebp
pop ebp
ret 4
Function at 0x413960
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x481018
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4b185c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x24]
call fcn.0045544a
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00413810
mov byte [ebp - 4], 1
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00413c70
lea ecx, [ebp - 0x2c]
call fcn.00413930
mov dword [ebp - 0x30], 0
jmp 0x4139d2
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x24]
call fcn.0043fec0
cmp dword [ebp - 0x30], eax
jge 0x413a33
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x34]
call fcn.0040e3e0
mov byte [ebp - 4], 2
push 0x48d27c
lea ecx, [ebp - 0x34]
call fcn.00411310
mov eax, dword [ebp - 0x30]
push eax
lea ecx, [ebp - 0x24]
call fcn.0040e330
push eax
lea ecx, [ebp - 0x34]
call fcn.00414600
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00413960
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.0040e4c0
jmp 0x4139c9
mov byte [ebp - 0xd], 0
cmp dword [ebp + 0x10], 0
jne 0x413a5c
mov ecx, dword [ebp + 0xc]
call fcn.0040e550
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0xd], al
jmp 0x413ab2
cmp dword [ebp + 0x10], 2
jne 0x413a6b
mov dword [ebp - 0x38], pe_nt_image_headers32
jmp 0x413a72
mov dword [ebp - 0x38], 0x200
push 0x48d280
push 0x48d290
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x413ab2
push 0
mov edx, dword [ebp - 0x38]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.0040e550
push eax
mov eax, dword [ebp + 8]
push eax
call dword [ebp - 0x3c]
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0xd], al
mov cl, byte [ebp - 0xd]
mov byte [ebp - 0x3d], cl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00413850
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00455806
mov al, byte [ebp - 0x3d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x413c70
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0046ab70
mov eax, dword [0x4b185c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x101c], ecx
mov dword [ebp - 0x1018], 0x1000
mov dword [ebp - 0x1014], 0
lea eax, [ebp - 0x1010]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x1018]
push ecx
lea edx, [ebp - 0x1008]
push edx
mov eax, dword [ebp - 0x1014]
push eax
mov ecx, dword [ebp - 0x101c]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x413d00
lea eax, [ebp - 0x1008]
push eax
mov ecx, dword [ebp + 8]
call fcn.00413320
mov ecx, dword [ebp - 0x1014]
add ecx, 1
mov dword [ebp - 0x1014], ecx
mov dword [ebp - 0x1018], 0x1000
jmp 0x413ca1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046a0d3
mov esp, ebp
pop ebp
ret 4

Function at 0x413d10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.0046ab70
mov eax, dword [0x4b185c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1014], ecx
mov dword [ebp - 0x1010], 0x1000
mov dword [ebp - 0x100c], 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x1008]
push ecx
mov edx, dword [ebp - 0x100c]
push edx
mov eax, dword [ebp - 0x1014]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x413d9b
lea edx, [ebp - 0x1008]
push edx
mov ecx, dword [ebp + 8]
call fcn.00413320
mov eax, dword [ebp - 0x100c]
add eax, 1
mov dword [ebp - 0x100c], eax
mov dword [ebp - 0x1010], 0x1000
jmp 0x413d41
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046a0d3
mov esp, ebp
pop ebp
ret 4

Function at 0x413ea0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 4
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.0040e550
push eax
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x413ee5
cmp dword [ebp - 4], 4
jne 0x413ee5
mov eax, dword [ebp - 0xc]
jmp 0x413ee8
mov eax, dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret 8

Function at 0x413f30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 0xc]
call fcn.0040e550
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
call fcn.0040e560
add eax, 1
push eax
mov eax, dword [ebp - 4]
push eax
push 1
push 0
mov ecx, dword [ebp + 8]
call fcn.0040e550
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x413f75
xor al, al
jmp 0x413f77
mov al, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x414040
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4810d0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4b185c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x34]
call fcn.00413ff0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x34]
call fcn.00413870
movzx eax, al
test eax, eax
je 0x41417e
lea ecx, [ebp - 0x20]
call fcn.0045544a
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x34]
call fcn.00413c70
lea ecx, [ebp - 0x20]
call fcn.0043fec0
test eax, eax
jne 0x414155
mov byte [ebp - 0x21], 0
cmp dword [ebp + 0x10], 0
jne 0x4140e3
mov ecx, dword [ebp + 0xc]
call fcn.0040e550
push eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x21], al
jmp 0x414139
cmp dword [ebp + 0x10], 2
jne 0x4140f2
mov dword [ebp - 0x28], pe_nt_image_headers32
jmp 0x4140f9
mov dword [ebp - 0x28], 0x200
push str.RegDeleteKeyExA
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x414139
push 0
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.0040e550
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp - 0x2c]
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x21], al
mov dl, byte [ebp - 0x21]
mov byte [ebp - 0x2d], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00455806
mov al, byte [ebp - 0x2d]
jmp 0x414180
mov byte [ebp - 0x2e], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00455806
mov al, byte [ebp - 0x2e]
jmp 0x414180
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc