joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4679fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x453002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00456dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x453002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.0044e6e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.0045720b
push 0x10
call fcn.004571d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x452fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.004431c0
jmp 0x452fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00452b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x452ff0
mov ecx, edi
call fcn.004432c0
push edi
call fcn.004571c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x453021
inc ebx
cmp ebx, 0x20
jb 0x452f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x454250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x468808
push 0x458288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x454329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x454329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004571d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x454329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x454329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x45432c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00454351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x454d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x454d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x454d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x454d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x454d94
push eax
push esi
call fcn.0045720b
add esp, 8
pop esi
ret 0x10

Function at 0x454da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x454e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x454e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x46d320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00456dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x454dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x454e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x454ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x454eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x46d320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00456dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x454eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x454e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x455000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x455131
push esi
call fcn.00458145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00447080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x455131
push 0
push ebp
call fcn.004473a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00447260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x45508b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.004472f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x455121
push 0x46d918
push edi
call fcn.004563f0
push eax
push ebx
push esi
call fcn.00454f60
push 0x46d8f8
push edi
call fcn.004563f0
push eax
push ebx
push esi
call fcn.00454f60
push 0x46d8d8
push edi
call fcn.004563f0
push eax
push ebx
push esi
call fcn.00454f60
push 0x46d8c0
push edi
call fcn.004563f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00454f60
push 0x46d8a0
push edi
call fcn.004563f0
push eax
push ebx
push esi
call fcn.00454f60
push 0x46d888
push edi
call fcn.004563f0
push eax
push ebx
push esi
call fcn.00454f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4561b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00456140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00456140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00456140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00456140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x456bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x456c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x46887c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x456c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x456c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x40d46c
Capabilities:
Write file on windows

Disassembly:
push 0x48
mov eax, 0x54135f
call fcn.00516dd0
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x3c], edi
je 0x40d57c
cmp byte [esi + 0x41], 0
je 0x40d57c
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x40d4a2
xor al, al
jmp 0x40d57e
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00406acc
mov dword [ebp - 4], edi
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00409674
mov ecx, eax
call fcn.00409321
mov edi, dword [ebp - 0x18]
mov ebx, eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00409674
mov ecx, eax
call fcn.00409321
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x30]
push eax
add edi, ebx
push edi
push dword [ebp - 0x34]
lea eax, [esi + 0x44]
push eax
call dword [edx + 0x18]
sub eax, 0
je 0x40d516
dec eax
je 0x40d51a
dec eax
dec eax
je 0x40d578
xor bl, bl
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402a53
mov al, bl
jmp 0x40d57e
mov byte [esi + 0x41], 0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00409674
mov ecx, eax
call fcn.00409321
mov edi, dword [ebp - 0x30]
sub edi, eax
je 0x40d55a
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00409674
mov ecx, eax
call fcn.00409321
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00517b3e
add esp, 0x10
cmp edi, eax
jne 0x40d500
cmp byte [esi + 0x41], 0
je 0x40d578
test edi, edi
jne 0x40d4b0
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.004056e4
jmp 0x40d4b0
mov bl, 1
jmp 0x40d502
mov al, 1
call fcn.00516e53
ret

Function at 0x40f3d8
Capabilities:
Set current directory

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x40f3ed
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
and dword [esi + 4], 0
cmp dword [esi + 0x38], 0
je 0x40f414
push edi
lea edi, [esi + 0x24]
cmp dword [edi + 0x18], 0x10
jb 0x40f402
mov eax, dword [edi + 4]
jmp 0x40f405
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, edi
call fcn.0040d266
pop edi
cmp dword [esi + 0x20], 0x10
jb 0x40f41f
mov esi, dword [esi + 0xc]
jmp 0x40f422
add esi, 0xc
push esi
call fcn.005179ac
pop ecx
pop esi
ret
Function at 0x40f4e5
Capabilities:
Extract resource via kernel32 functions
Get common file path
Set current directory
Write file on windows

Disassembly:
push ebp
sub esp, 0x104
lea ebp, [esp - 4]
mov eax, dword [0x5a1574]
xor eax, ebp
mov dword [ebp + 0x104], eax
push 0x64
mov eax, 0x5417f6
call fcn.00516d67
mov esi, ecx
xor edi, edi
cmp dword [esi + 4], edi
je 0x40f519
mov al, 1
jmp 0x40f6d9
mov dword [ebp - 0x1c], edi
call fcn.00503650
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x38]
push eax
call fcn.0043c588
pop ecx
push edi
push eax
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], edi
call fcn.00409839
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x54]
push eax
mov byte [ebp - 4], 1
call fcn.0040ed28
pop ecx
pop ecx
mov bl, al
neg bl
push edi
sbb bl, bl
push 1
lea ecx, [ebp - 0x54]
inc bl
mov byte [ebp - 4], 0
call fcn.004096fa
or dword [ebp - 4], 0xffffffff
push edi
push 1
lea ecx, [ebp - 0x38]
call fcn.00402a53
test bl, bl
je 0x40f57f
xor al, al
jmp 0x40f6d9
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x10], 0x73
call fcn.0043c965
pop ecx
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 4], 2
jb 0x40f5a2
mov eax, dword [eax + 4]
jmp 0x40f5a5
add eax, 4
push eax
call fcn.00516fc5
pop ecx
cmp eax, 0x16
push edi
setge bl
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x38]
call fcn.00402a53
test bl, bl
je 0x40f5cc
mov dword [ebp - 0x10], 0x74
push 0x55936c
push dword [ebp - 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
cmp ebx, edi
je 0x40f6d1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
cmp eax, edi
je 0x40f6d1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
cmp eax, edi
jbe 0x40f6d1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
cmp eax, edi
je 0x40f6d1
cmp dword [esi + 0x20], 0x10
jb 0x40f62a
mov eax, dword [esi + 0xc]
jmp 0x40f62d
lea eax, [esi + 0xc]
push 0x5596d4
push eax
call fcn.005180e3
mov ebx, eax
pop ecx
pop ecx
cmp ebx, edi
je 0x40f657
push ebx
push 1
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.00517b3e
push ebx
call fcn.00517df9
add esp, 0x14
mov ebx, 0x104
push ebx
lea eax, [ebp]
push edi
push eax
call fcn.00516fd0
add esp, 0xc
lea eax, [ebp]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp]
push eax
lea ecx, [esi + 0x24]
call fcn.00402a32
lea eax, [ebp - 0x70]
push eax
call fcn.0043c83a
pop ecx
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 4], 3
jb 0x40f69d
mov eax, dword [eax + 4]
jmp 0x40f6a0
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
or dword [ebp - 4], 0xffffffff
push edi
push 1
lea ecx, [ebp - 0x70]
call fcn.00402a53
cmp dword [esi + 0x20], 0x10
jb 0x40f6c1
mov eax, dword [esi + 0xc]
jmp 0x40f6c4
lea eax, [esi + 0xc]
push 8
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [esi + 4], eax
xor eax, eax
cmp dword [esi + 4], edi
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.00516d58
add ebp, 0x108
leave
ret
Function at 0x410bc6
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x541add
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x10ec
call fcn.00518570
mov eax, dword [0x5a1574]
xor eax, esp
mov dword [esp + 0x10e8], eax
push ebx
push esi
push edi
mov eax, dword [0x5a1574]
xor eax, esp
push eax
lea eax, [esp + 0x1100]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
and dword [esp + 0x1c], 0
push 0x10
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10ec]
push 0
push eax
mov dword [esp + 0x2c], ecx
call fcn.00516fd0
mov eax, dword [esi + 0x14]
add esp, 0xc
mov byte [esp + 0x10e8], 0x61
mov byte [esp + 0x10e9], 0x31
mov byte [esp + 0x10ea], 0x40
mov byte [esp + 0x10eb], 0x79
mov byte [esp + 0x10ec], 0x68
mov byte [esp + 0x10ed], 0x73
mov byte [esp + 0x10ee], 0x70
mov byte [esp + 0x10ef], 0x21
mov byte [esp + 0x10f0], 0x71
mov byte [esp + 0x10f1], 0x77
mov byte [esp + 0x10f2], 0x65
mov byte [esp + 0x10f3], 0x68
mov byte [esp + 0x10f4], 0x6a
mov byte [esp + 0x10f5], 0x6a
mov byte [esp + 0x10f6], 0x5f
mov byte [esp + 0x10f7], 0x32
test al, 7
jne 0x410cbd
xor ecx, ecx
jmp 0x410cc7
mov edx, eax
push 8
and edx, 7
pop ecx
sub ecx, edx
lea edi, [eax + ecx]
push edi
call fcn.005041a0
push edi
mov dword [esp + 0x18], eax
call fcn.005041a0
push edi
push 0x20
push dword [esp + 0x20]
mov dword [esp + 0x28], eax
call fcn.00516fd0
mov eax, dword [esi + 0x14]
add esp, 0x14
cmp dword [esi + 0x18], 0x10
jb 0x410cfb
mov esi, dword [esi + 4]
jmp 0x410cfe
add esi, 4
push eax
push esi
push dword [esp + 0x18]
call fcn.00518200
add esp, 0xc
push 0x10
lea eax, [esp + 0x10ec]
push eax
lea ecx, [esp + 0x34]
call fcn.0041092c
push edi
push dword [esp + 0x14]
xor ebx, ebx
push dword [esp + 0x1c]
inc ebx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x1114], ebx
call fcn.004d2680
lea ecx, [esp + 0x24]
call fcn.0046f5f0
push edi
push dword [esp + 0x18]
lea eax, [esp + 0x10d4]
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x1114], 2
call fcn.0046f620
push dword [esp + 0x10]
mov byte [esp + 0x110c], 3
call fcn.00517324
push dword [esp + 0x18]
call fcn.00517324
pop ecx
pop ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x10cc]
push eax
push dword [esp + 0x1c]
call fcn.0040fde6
push 0
push ebx
lea ecx, [esp + 0x10d4]
mov dword [esp + 0x24], ebx
mov byte [esp + 0x1110], 2
call fcn.00402a53
lea ecx, [esp + 0x24]
mov byte [esp + 0x1108], bl
call fcn.0046f600
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1108], 0
call fcn.00410536
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1100]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10e8]
xor ecx, esp
call fcn.00516d58
mov esp, ebp
pop ebp
ret 8
Function at 0x41236d
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x41237a
xor al, al
jmp 0x4123f9
push esi
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4123cd
push str.RegDeleteKeyExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4123c6
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x18], 0x10
jb 0x4123aa
mov ecx, dword [ecx + 4]
jmp 0x4123ad
add ecx, 4
movzx edx, byte [ebp + 0x10]
neg edx
push 0
sbb edx, edx
and edx, 0x100
push edx
push ecx
push dword [ebp + 8]
call eax
jmp 0x4123e8
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 0x10
jb 0x4123db
mov eax, dword [eax + 4]
jmp 0x4123de
add eax, 4
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x4123f5
cmp eax, 2
je 0x4123f5
xor eax, eax
jmp 0x4123f8
xor eax, eax
inc eax
pop esi
pop ebp
ret 0xc

Function at 0x412453
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x4124e9
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], ebx
je 0x4124e9
push 2
pop ecx
cmp byte [ebp + 0x18], bl
je 0x412477
mov ecx, 0x102
cmp dword [eax + 0x18], 0x10
mov dword [ebp + 0x18], ebx
jb 0x412485
mov eax, dword [eax + 4]
jmp 0x412488
add eax, 4
push ebx
lea edx, [ebp + 0x18]
push edx
push ebx
push ecx
push ebx
push ebx
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4124e9
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0x18], 0x10
mov edx, dword [eax + 0x14]
jb 0x4124b1
mov eax, dword [eax + 4]
jmp 0x4124b4
add eax, 4
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 0x18], 0x10
jb 0x4124c2
mov ecx, dword [ecx + 4]
jmp 0x4124c5
add ecx, 4
push edx
push eax
push 1
push ebx
push ecx
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x18]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
jmp 0x4124eb
xor al, al
pop ebx
pop ebp
ret 0x14

Function at 0x4124f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x412572
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], ebx
je 0x412572
push 2
pop ecx
cmp byte [ebp + 0x18], bl
je 0x412510
mov ecx, 0x102
cmp dword [eax + 0x18], 0x10
mov dword [ebp + 0x18], ebx
jb 0x41251e
mov eax, dword [eax + 4]
jmp 0x412521
add eax, 4
push ebx
lea edx, [ebp + 0x18]
push edx
push ebx
push ecx
push ebx
push ebx
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x412572
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], 0x10
jb 0x412547
mov eax, dword [eax + 4]
jmp 0x41254a
add eax, 4
push 4
lea ecx, [ebp + 0x14]
push ecx
push 4
push ebx
push eax
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x18]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
jmp 0x412574
xor al, al
pop ebx
pop ebp
ret 0x14
Function at 0x412579
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push esi
cmp dword [ebp + 8], ecx
je 0x412643
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], ecx
je 0x412643
push 2
pop edx
cmp byte [ebp + 0x18], cl
je 0x4125a1
mov edx, 0x102
cmp dword [eax + 0x18], 0x10
mov dword [ebp + 0xc], ecx
jb 0x4125af
mov eax, dword [eax + 4]
jmp 0x4125b2
add eax, 4
push ecx
lea esi, [ebp + 0xc]
push esi
push ecx
push edx
push ecx
push ecx
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x412643
push ebx
push edi
mov edi, dword [ebp + 0x14]
mov esi, dword [edi + 0x10]
sub esi, dword [edi + 0xc]
xor bl, bl
push esi
call fcn.005041a0
pop ecx
mov dword [ebp + 0x18], eax
test eax, eax
je 0x412634
xor ebx, ebx
test esi, esi
jbe 0x412600
push ebx
mov ecx, edi
call fcn.00434407
mov al, byte [eax]
mov ecx, dword [ebp + 0x18]
mov byte [ebx + ecx], al
inc ebx
cmp ebx, esi
jb 0x4125eb
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], 0x10
jb 0x41260e
mov eax, dword [eax + 4]
jmp 0x412611
add eax, 4
push esi
push dword [ebp + 0x18]
push 3
push 0
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x18]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
call fcn.00517324
pop ecx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, bl
pop ebx
jmp 0x412645
xor al, al
pop esi
pop ebp
ret 0x14

Function at 0x41264a
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x4126cb
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], ebx
je 0x4126cb
push 2
pop ecx
cmp byte [ebp + 0x14], bl
je 0x41266a
mov ecx, 0x102
cmp dword [eax + 0x18], 0x10
mov dword [ebp + 0x14], ebx
jb 0x412678
mov eax, dword [eax + 4]
jmp 0x41267b
add eax, 4
push esi
lea edx, [ebp + 0x14]
push edx
push ecx
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
cmp esi, ebx
jne 0x4126bc
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], 0x10
jb 0x4126a0
mov eax, dword [eax + 4]
jmp 0x4126a3
add eax, 4
push eax
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp + 0x14]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x4126c5
cmp esi, 2
je 0x4126c5
xor eax, eax
jmp 0x4126c8
xor eax, eax
inc eax
pop esi
jmp 0x4126cd
xor al, al
pop ebx
pop ebp
ret 0x10