joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cdb0
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
test eax, eax
mov eax, dword [0x5b07a0]
je 0x40cdf1
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je 0x40cdd4
push eax
call esi
xor eax, eax
mov dword [0x5b07a0], eax
mov ecx, dword [0x5b07a4]
test ecx, ecx
je 0x40cdeb
push eax
call esi
mov dword [0x5b07a4], 0
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40ce68
push str.advpack.dll
call ebx
mov esi, eax
test esi, esi
jne 0x40ce17
pop edi
pop esi
mov eax, 0x10cd
pop ebx
ret
push str.OpenINFEngine
push esi
mov dword [0x5b07a0], esi
call edi
push str.TranslateInfString
push esi
mov dword [0x5b07a8], eax
call edi
push str.CloseINFEngine
push esi
mov dword [0x5b07ac], eax
call edi
mov ecx, dword [0x5b07a8]
mov dword [0x5b07b0], eax
test ecx, ecx
je 0x40cf27
mov ecx, dword [0x5b07ac]
test ecx, ecx
je 0x40cf27
test eax, eax
je 0x40cf27
mov eax, dword [0x5b07a4]
test eax, eax
je 0x40ce77
pop edi
pop esi
xor eax, eax
pop ebx
ret
push str.setupapi.dll
call ebx
mov esi, eax
test esi, esi
jne 0x40ce97
push 1
call fcn.0040cdb0
add esp, 4
mov eax, 0x10cd
pop edi
pop esi
pop ebx
ret
push str.SetupCloseInfFile
push esi
mov dword [0x5b07a4], esi
call edi
push str.SetupFindNextLine
push esi
mov dword [0x5b07b4], eax
call edi
push str.SetupOpenInfFileA
push esi
mov dword [0x5b07c0], eax
call edi
push str.SetupFindFirstLineA
push esi
mov dword [0x5b07bc], eax
call edi
push str.SetupGetLineTextA
push esi
mov dword [0x5b07c4], eax
call edi
push str.SetupGetTargetPathA
push esi
mov dword [0x5b07b8], eax
call edi
mov ecx, dword [0x5b07b4]
mov dword [0x5b07c8], eax
test ecx, ecx
je 0x40cf27
mov ecx, dword [0x5b07b8]
test ecx, ecx
je 0x40cf27
mov ecx, dword [0x5b07bc]
test ecx, ecx
je 0x40cf27
mov ecx, dword [0x5b07c0]
test ecx, ecx
je 0x40cf27
mov ecx, dword [0x5b07c4]
test ecx, ecx
je 0x40cf27
test eax, eax
je 0x40cf27
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 1
call fcn.0040cdb0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
ret
Function at 0x40f740
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x537cb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x5ab980]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x2c]
push eax
mov byte [esp + 0x28], 2
call fcn.00512952
mov edi, dword [esp + 0x30]
mov bl, 3
mov byte [esp + 0x24], bl
lea ecx, [edi + 1]
push ecx
push 0x5966bc
lea ecx, [esp + 0x34]
call fcn.0050e34f
mov esi, eax
cmp esi, 0xffffffff
je 0x40f821
push esi
push 0x598168
lea ecx, [esp + 0x34]
call fcn.0050e34f
cmp eax, 0xffffffff
je 0x40f7f4
sub eax, esi
lea edx, [esp + 0x30]
push eax
push esi
push edx
lea ecx, [esp + 0x38]
call fcn.0050e195
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 4
call fcn.00512a1d
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], bl
call fcn.005128e4
jmp 0x40f88d
lea eax, [esp + 0x30]
push esi
push eax
lea ecx, [esp + 0x34]
call fcn.0050e172
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 5
call fcn.00512a1d
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], bl
call fcn.005128e4
jmp 0x40f88d
push edi
push 0x598168
lea ecx, [esp + 0x34]
call fcn.0050e34f
cmp eax, 0xffffffff
je 0x40f860
sub eax, edi
lea ecx, [esp + 0x30]
push eax
push edi
push ecx
lea ecx, [esp + 0x38]
call fcn.0050e195
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 6
call fcn.00512a1d
mov byte [esp + 0x24], bl
lea ecx, [esp + 0x30]
jmp 0x40f886
lea edx, [esp + 0x30]
push edi
push edx
lea ecx, [esp + 0x34]
call fcn.0050e172
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 7
call fcn.00512a1d
mov byte [esp + 0x24], bl
lea ecx, [esp + 0x30]
call fcn.005128e4
mov esi, edi
dec esi
push 1
lea eax, [esp + 0x34]
push esi
push eax
lea ecx, [esp + 0x38]
call fcn.0050e195
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 8
call fcn.00512a1d
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], bl
call fcn.005128e4
mov ecx, dword [esp + 0x14]
push ecx
push 0
lea ecx, [esp + 0x18]
call fcn.0050df1d
push 0x5b0738
push 0x5981d8
lea ecx, [esp + 0x18]
call fcn.0050e00f
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40f8ff
test al, 0x10
jne 0x40f8ff
mov ecx, dword [ebp + 0x18]
lea eax, [esp + 0x10]
push eax
call fcn.00407e10
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], 2
call fcn.005128e4
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 1
call fcn.005128e4
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 0
call fcn.005128e4
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.005128e4
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 8
Function at 0x410fb0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x537eeb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x804
mov eax, dword [0x5ab980]
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esi + 4]
lea edx, [esp + 0x10]
xor ebx, ebx
mov dword [esp + 0x818], 0
mov eax, dword [ecx + 0xa8]
push eax
push 0x800
push edx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0x10]
lea edi, [esp + 0x10]
test al, al
je 0x4110c3
push edi
lea ecx, [esp + 0x10]
call fcn.00512a6d
lea ecx, [esp + 0xc]
call fcn.00512e18
push 0
push str.directories
lea ecx, [esp + 0x14]
call fcn.0050e34f
cmp eax, 0xffffffff
je 0x41103f
push 1
jmp 0x41109d
push 0
push 0x5982ac
lea ecx, [esp + 0x14]
call fcn.0050e34f
cmp eax, 0xffffffff
jne 0x41109b
push 0
push str.SelfRegisteringFiles
lea ecx, [esp + 0x14]
call fcn.0050e34f
cmp eax, 0xffffffff
jne 0x41109b
push 0
push str.regkeys
lea ecx, [esp + 0x14]
call fcn.0050e34f
cmp eax, 0xffffffff
je 0x411082
push 3
jmp 0x41109d
push 0
push str.regnames
lea ecx, [esp + 0x14]
call fcn.0050e34f
cmp eax, 0xffffffff
je 0x4110a5
push 4
jmp 0x41109d
push 0
push edi
mov ecx, esi
call fcn.00411100
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebx, [ebx + ecx + 1]
mov al, byte [esp + ebx + 0x10]
lea edi, [esp + ebx + 0x10]
test al, al
jne 0x411013
lea ecx, [esp + 0xc]
mov dword [esp + 0x818], 0xffffffff
call fcn.005128e4
mov ecx, dword [esp + 0x810]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x810
ret
Function at 0x413140
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x5382a2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x530
mov eax, dword [0x5ab980]
push ebp
push esi
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x544], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov ecx, dword [ecx + 0xc]
lea eax, [esp + 0x12c]
push ecx
xor ebp, ebp
push 0x410
push eax
push ebp
push ebp
push ebp
mov byte [esp + 0x55c], 5
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x12c]
push ecx
lea ecx, [esp + 0x10]
call fcn.00512a6d
mov edx, dword [esp + 0xc]
mov eax, dword [edx - 8]
test eax, eax
jle 0x413237
lea edi, [esp + ebp + 0x12c]
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
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 + 0x28]
push ecx
lea ecx, [esp + 0x10]
call fcn.00512a6d
mov edx, dword [esp + 0xc]
mov eax, dword [edx - 8]
test eax, eax
je 0x413228
push 0
push 0
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.00512659
mov ecx, dword [esp + 0x558]
call fcn.00407760
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 8]
test eax, eax
lea ebp, [eax + ebp + 1]
jg 0x4131c6
lea ecx, [esp + 0x1c]
mov byte [esp + 0x544], 4
call fcn.005128e4
lea ecx, [esp + 0x18]
mov byte [esp + 0x544], 3
call fcn.005128e4
lea ecx, [esp + 0x20]
mov byte [esp + 0x544], 2
call fcn.005128e4
lea ecx, [esp + 0xc]
mov byte [esp + 0x544], 1
call fcn.005128e4
lea ecx, [esp + 0x10]
mov byte [esp + 0x544], 0
call fcn.005128e4
lea ecx, [esp + 0x14]
mov dword [esp + 0x544], 0xffffffff
call fcn.005128e4
mov ecx, dword [esp + 0x53c]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebp
add esp, 0x53c
ret 4
Function at 0x413d10
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x53860f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x5ab980]
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x24], 0
mov dword [esp + 0x10], eax
lea ecx, [esi + 0xd0]
lea edx, [esp + 0x20]
push ecx
push edx
mov dword [esp + 0x38], 1
call fcn.00423090
add esp, 8
mov edi, eax
mov ecx, dword [esi + 0x5c]
mov eax, dword [esi + 0x94]
mov ebp, dword [esi + 0x40]
mov ebx, dword [esi + 0x24]
lea edx, [esp + 0x1c]
mov dword [esp + 0x18], ecx
push edx
mov ecx, esi
mov byte [esp + 0x34], 2
mov dword [esp + 0x18], eax
call fcn.00413b10
mov ecx, dword [esi + 0x174]
mov edx, dword [edi]
push ecx
mov ecx, dword [esi + 0x170]
push edx
mov edx, dword [esi + 0x16c]
push ecx
mov ecx, dword [esi + 0x190]
push edx
mov edx, dword [esi + 0x18c]
push ecx
mov ecx, dword [esi + 0x188]
push edx
mov edx, dword [esi + 0x184]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x38]
push ebp
push ebx
push ecx
mov ecx, dword [esi + 0x10]
push edx
mov edx, dword [esi + 0xac]
push ecx
mov ecx, dword [esi + 0xa8]
push edx
mov edx, dword [esi + 0xb0]
push ecx
mov ecx, dword [esi + 0x14]
push edx
mov edx, dword [esi + 8]
push ecx
mov ecx, dword [esi + 0x194]
push edx
mov edx, dword [eax]
mov eax, dword [esi + 0xc]
push ecx
push edx
push eax
lea ecx, [esp + 0x64]
push str._s_t_s_t_i_t_i_t_s_t_s_t_s_t_s_t_s_t_i_t_i_t_i_t_i_t_s_t_s_t_s_t_s_t_s_t_s_t_s_t_s
push ecx
mov byte [esp + 0x8c], 3
call fcn.0050e6c7
add esp, 0x5c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 2
call fcn.005128e4
mov byte [esp + 0x30], 1
lea ecx, [esp + 0x20]
call fcn.005128e4
mov esi, dword [esp + 0x38]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.00512659
mov dword [esp + 0x24], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 0
call fcn.005128e4
mov ecx, dword [esp + 0x28]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x413e70
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5387bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb4
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov eax, dword [0x5ab980]
mov dword [esp + 0xc0], 0
mov dword [esi + 0xc], eax
mov ecx, dword [0x5ab980]
mov dword [esi + 0x10], ecx
mov edx, dword [0x5ab980]
mov dword [esi + 0x14], edx
lea ecx, [esi + 0x18]
mov byte [esp + 0xc0], 3
call fcn.00406590
lea ecx, [esi + 0x34]
mov byte [esp + 0xc0], 4
call fcn.00406590
lea ecx, [esi + 0x50]
mov byte [esp + 0xc0], 5
call fcn.004056f0
lea ecx, [esi + 0x6c]
mov byte [esp + 0xc0], 6
call fcn.004056f0
lea ecx, [esi + 0x88]
mov byte [esp + 0xc0], 7
call fcn.00404840
mov eax, dword [0x5ab980]
mov dword [esi + 0xa8], eax
mov ecx, dword [0x5ab980]
mov dword [esi + 0xac], ecx
mov edx, dword [0x5ab980]
mov dword [esi + 0xb0], edx
mov eax, dword [0x5ab980]
mov dword [esi + 0xb4], eax
mov ecx, dword [0x5ab980]
mov dword [esi + 0xb8], ecx
mov edx, dword [0x5ab980]
mov dword [esi + 0xbc], edx
mov eax, dword [0x5ab980]
mov dword [esi + 0xc0], eax
mov ecx, dword [0x5ab980]
mov dword [esi + 0xc4], ecx
mov edx, dword [0x5ab980]
mov dword [esi + 0x16c], edx
mov eax, dword [0x5ab980]
mov dword [esi + 0x170], eax
mov ecx, dword [0x5ab980]
mov dword [esi + 0x174], ecx
mov edx, dword [0x5ab980]
mov dword [esi + 0x180], edx
mov eax, dword [0x5ab980]
mov dword [esi + 0x184], eax
mov ecx, dword [0x5ab980]
mov dword [esi + 0x188], ecx
mov edx, dword [0x5ab980]
mov dword [esi + 0x18c], edx
mov eax, dword [0x5ab980]
mov dword [esi + 0x190], eax
mov ecx, dword [0x5ab980]
mov dword [esi + 0x198], ecx
push 0x8000
lea ecx, [esp + 0xc]
mov byte [esp + 0xc4], 0x17
mov dword [esi], 0x559c04
call fcn.0051c058
push 0
push 0x8000
lea edx, [esp + 0x10]
push 0
push edx
lea ecx, [esp + 0x40]
mov byte [esp + 0xd0], 0x18
call fcn.0051af01
mov ecx, dword [esp + 0xc8]
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0xc4], 0x19
mov eax, dword [ecx]
call dword [eax + 8]
lea ecx, [esp + 0x30]
call fcn.0051b065
lea ecx, [esp + 0x30]
mov byte [esp + 0xc0], 0x18
call fcn.0051afdd
mov eax, dword [esp + 8]
push 0
push 0
lea ecx, [esp + 0x10]
call dword [eax + 0x28]
push 0
push 0x8000
lea ecx, [esp + 0x10]
push 1
push ecx
lea ecx, [esp + 0x84]
call fcn.0051af01
lea edx, [esp + 0x74]
mov ecx, esi
push edx
mov byte [esp + 0xc4], 0x1a
call fcn.004137e0
lea ecx, [esp + 0x74]
mov byte [esp + 0xc0], 0x18
call fcn.0051afdd
lea ecx, [esp + 8]
mov byte [esp + 0xc0], 0x17
call fcn.0051c11d
mov ecx, dword [esp + 0xb8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0xc0
ret 4
Function at 0x41cdfb
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x539a90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x5ab980]
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi + 0xc], eax
mov ecx, dword [0x5ab980]
mov dword [esp + 0x14], 0
mov dword [esi + 0x10], ecx
lea edi, [esi + 0x14]
push 0xa
mov ecx, edi
mov byte [esp + 0x18], 1
call fcn.00510deb
mov dword [edi], method.CStringList.virtual_0
lea edi, [esi + 0x30]
push 0xa
mov ecx, edi
mov byte [esp + 0x18], 2
call fcn.00510deb
mov dword [edi], method.CStringList.virtual_0
lea edi, [esi + 0x54]
push 0xa
mov ecx, edi
mov byte [esp + 0x18], 3
call fcn.00510deb
mov dword [edi], method.CStringList.virtual_0
lea edi, [esi + 0x70]
push 0xa
mov ecx, edi
mov byte [esp + 0x18], 4
call fcn.00510deb
mov dword [edi], method.CStringList.virtual_0
lea edi, [esi + 0x8c]
push 0xa
mov ecx, edi
mov byte [esp + 0x18], 5
call fcn.00510deb
mov dword [edi], method.CStringList.virtual_0
lea edi, [esi + 0xac]
push 0xa
mov ecx, edi
mov byte [esp + 0x18], 6
call fcn.00510deb
mov dword [edi], method.CStringList.virtual_0
lea edi, [esi + 0xcc]
push 0xa
mov ecx, edi
mov byte [esp + 0x18], 7
call fcn.00510deb
mov dword [edi], method.CStringList.virtual_0
lea edi, [esi + 0xe8]
push 0xa
mov ecx, edi
mov byte [esp + 0x18], 8
call fcn.00510deb
mov dword [edi], method.CStringList.virtual_0
lea edi, [esi + 0x10c]
push 0xa
mov ecx, edi
mov byte [esp + 0x18], 9
call fcn.00510deb
mov dword [edi], method.CStringList.virtual_0
lea edi, [esi + 0x128]
push 0xa
mov ecx, edi
mov byte [esp + 0x18], 0xa
call fcn.00510deb
mov dword [edi], method.CStringList.virtual_0
mov edx, dword [0x5ab980]
mov dword [esi + 0x144], edx
lea ecx, [esi + 0x148]
mov byte [esp + 0x14], 0xc
call fcn.004975d0
lea ecx, [esi + 0x164]
mov byte [esp + 0x14], 0xd
call fcn.0041dd90
mov ecx, esi
mov byte [esp + 0x14], 0xe
mov dword [esi], 0x559f8c
call fcn.0041d0b0
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x41cf90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x539b52
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], 0x559f8c
lea ecx, [esi + 0x164]
mov dword [esp + 0x10], 0xd
call fcn.0041de00
lea ecx, [esi + 0x148]
mov byte [esp + 0x10], 0xc
call fcn.00497610
lea ecx, [esi + 0x144]
mov byte [esp + 0x10], 0xb
call fcn.005128e4
lea ecx, [esi + 0x128]
mov byte [esp + 0x10], 0xa
call fcn.00510e5f
lea ecx, [esi + 0x10c]
mov byte [esp + 0x10], 9
call fcn.00510e5f
lea ecx, [esi + 0xe8]
mov byte [esp + 0x10], 8
call fcn.00510e5f
lea ecx, [esi + 0xcc]
mov byte [esp + 0x10], 7
call fcn.00510e5f
lea ecx, [esi + 0xac]
mov byte [esp + 0x10], 6
call fcn.00510e5f
lea ecx, [esi + 0x8c]
mov byte [esp + 0x10], 5
call fcn.00510e5f
lea ecx, [esi + 0x70]
mov byte [esp + 0x10], 4
call fcn.00510e5f
lea ecx, [esi + 0x54]
mov byte [esp + 0x10], 3
call fcn.00510e5f
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 2
call fcn.00510e5f
lea ecx, [esi + 0x14]
mov byte [esp + 0x10], 1
call fcn.00510e5f
lea ecx, [esi + 0x10]
mov byte [esp + 0x10], 0
call fcn.005128e4
lea ecx, [esi + 0xc]
mov dword [esp + 0x10], 0xffffffff
call fcn.005128e4
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x41dd90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x539c77
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x5ab980]
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi + 0xc], eax
mov ecx, dword [0x5ab980]
mov dword [esp + 0x10], 0
mov dword [esi + 0x18], ecx
mov edx, dword [0x5ab980]
mov dword [esi + 0x2c], edx
mov eax, dword [0x5ab980]
mov dword [esi + 0x30], eax
mov ecx, dword [0x5ab980]
mov dword [esi + 0x34], ecx
mov ecx, esi
mov byte [esp + 0x10], 4
call fcn.0041de80
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x41de00
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x539cbc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
lea ecx, [esi + 0x34]
mov dword [esp + 0x10], 3
call fcn.005128e4
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 2
call fcn.005128e4
lea ecx, [esi + 0x2c]
mov byte [esp + 0x10], 1
call fcn.005128e4
lea ecx, [esi + 0x18]
mov byte [esp + 0x10], 0
call fcn.005128e4
lea ecx, [esi + 0xc]
mov dword [esp + 0x10], 0xffffffff
call fcn.005128e4
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x41e010
Capabilities:
Shutdown system

Disassembly:
push ecx
lea eax, [esp]
push eax
push str.SeShutdownPrivilege
call fcn.0041e070
add esp, 8
test eax, eax
jne 0x41e032
cmp dword [esp], 0x78
je 0x41e032
xor eax, eax
pop ecx
ret
mov eax, dword [esp + 8]
cmp eax, 2
jne 0x41e047
push 0
push 0
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop ecx
ret
cmp eax, 1
push 0
jne 0x41e058
push 1
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop ecx
ret
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop ecx
ret
Function at 0x41e450
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x539cf8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x5ab980]
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp]
lea edx, [esp + 0x1c]
push ecx
push edx
push eax
mov dword [esp + 0x20], 0
call fcn.0041f330
add esp, 0xc
test eax, eax
jg 0x41e4bf
lea ecx, [esp]
mov dword [esp + 0x14], 0xffffffff
call fcn.005128e4
or eax, 0xffffffff
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov eax, dword [esp]
lea ecx, [esp + 8]
lea edx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x41e50f
lea ecx, [esp]
mov dword [esp + 0x14], 0xffffffff
call fcn.005128e4
mov eax, 0xfffffffe
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov edx, dword [esp + 0x24]
test edx, edx
je 0x41e526
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
pop edi
jmp 0x41e528
xor ecx, ecx
mov eax, dword [esp + 0x20]
push esi
push ecx
mov ecx, dword [esp + 0xc]
push edx
mov edx, dword [esp + 0x34]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 8]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esp]
je 0x41e579
call fcn.005128e4
mov eax, 0xfffffffe
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
call fcn.005128e4
mov ecx, dword [esp + 0xc]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x41e5a0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x539d18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x5ab980]
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp]
lea edx, [esp + 0x1c]
push ecx
push edx
push eax
mov dword [esp + 0x20], 0
call fcn.0041f330
add esp, 0xc
test eax, eax
jg 0x41e60f
lea ecx, [esp]
mov dword [esp + 0x14], 0xffffffff
call fcn.005128e4
or eax, 0xffffffff
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov eax, dword [esp]
lea ecx, [esp + 8]
lea edx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x41e65f
lea ecx, [esp]
mov dword [esp + 0x14], 0xffffffff
call fcn.005128e4
mov eax, 0xfffffffe
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 4]
push esi
lea edx, [esp + 0x28]
push 4
push edx
push 4
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 8]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esp]
je 0x41e6b2
call fcn.005128e4
mov eax, 0xfffffffe
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
call fcn.005128e4
mov ecx, dword [esp + 0xc]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x18
ret

Function at 0x41e6f0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x539d38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x5ab980]
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp]
lea edx, [esp + 0x1c]
push ecx
push edx
push eax
mov dword [esp + 0x20], 0
call fcn.0041f330
add esp, 0xc
test eax, eax
jg 0x41e75f
lea ecx, [esp]
mov dword [esp + 0x14], 0xffffffff
call fcn.005128e4
or eax, 0xffffffff
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov eax, dword [esp]
lea ecx, [esp + 8]
lea edx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x41e7af
lea ecx, [esp]
mov dword [esp + 0x14], 0xffffffff
call fcn.005128e4
mov eax, 0xfffffffe
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push esi
push edx
mov edx, dword [esp + 0xc]
push eax
push 3
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esp]
je 0x41e805
call fcn.005128e4
mov eax, 0xfffffffe
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
call fcn.005128e4
mov ecx, dword [esp + 0xc]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x18
ret