joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4040b0
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411ce5
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x41b014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 1
lea eax, [ebp + 0xc]
cmp dword [ebp + 0x20], 0x10
mov ecx, 0x41b120
push dword [ebp + 0x1c]
cmovae eax, dword [ebp + 0xc]
push eax
call fcn.0040f0c0
cmp dword [ebp + 0x38], 0x10
lea eax, [ebp + 0x24]
push dword [ebp + 0x34]
cmovae eax, dword [ebp + 0x24]
mov ecx, 0x41b138
push eax
call fcn.0040f0c0
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404120
sub ecx, edx
push ecx
push esi
mov ecx, 0x41b150
call fcn.0040f0c0
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], 0x4146c4
push eax
mov dword [ebp - 0x224], 0x40b280
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x404253
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x230], eax
test eax, eax
je 0x404253
sub esp, 0x18
mov ecx, esp
push 0x41b120
call fcn.0040e880
call fcn.004044f0
sub esp, 0x18
mov ebx, eax
mov ecx, esp
push 0x41b138
call fcn.0040e880
call fcn.004044f0
sub esp, 0x18
mov edi, eax
mov ecx, esp
push 0x41b150
call fcn.0040e880
call fcn.004044f0
push 0
push 0
push str.Tcpip
push 0
push 0
mov esi, eax
push esi
push 1
push 2
push 0x110
push 0xf01ff
push edi
push ebx
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
push ebx
mov dword [ebp - 0x22c], eax
call fcn.00410a31
push edi
call fcn.00410a31
push esi
call fcn.00410a31
mov eax, dword [ebp - 0x22c]
add esp, 0xc
test eax, eax
jne 0x404242
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x404253
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call esi
push dword [ebp - 0x230]
call esi
mov edx, dword [ebp + 0x20]
cmp edx, 0x10
jb 0x404283
mov ecx, dword [ebp + 0xc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404279
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4042bb
push edx
push ecx
call fcn.00410dcc
add esp, 8
mov edx, dword [ebp + 0x38]
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x20], 0xf
mov byte [ebp + 0xc], 0
cmp edx, 0x10
jb 0x4042cb
mov ecx, dword [ebp + 0x24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4042c1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4042c1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00410dcc
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00410a23
mov esp, ebp
pop ebp
ret 0x34
Function at 0x4042f0
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [0x41b19c], eax
test eax, eax
jne 0x404310
mov eax, 1
ret 4
push 0xf01ff
push str.MaxthonUpdateSvc
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [0x41b1a0], eax
test eax, eax
jne 0x40433e
push dword [0x41b19c]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 2
ret 4
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
push 0x41b198
push 0x24
push 0x41b168
push 0
push eax
call edi
test eax, eax
jne 0x40437b
push dword [0x41b1a0]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [0x41b19c]
call esi
pop edi
mov eax, 3
pop esi
ret 4
mov eax, dword [0x41b16c]
cmp eax, 1
je 0x4043a7
cmp eax, 3
je 0x4043a7
push dword [0x41b1a0]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [0x41b19c]
call esi
pop edi
xor eax, eax
pop esi
ret 4
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebx
call esi
cmp dword [0x41b16c], 3
mov dword [0x41b190], eax
mov eax, dword [0x41b17c]
mov dword [0x41b18c], eax
jne 0x40446f
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x2710
nop word [eax + eax]
mov eax, 0xcccccccd
mul dword [0x41b180]
shr edx, 3
cmp edx, 0x3e8
jae 0x4043fd
mov edx, 0x3e8
jmp 0x404406
cmp edx, 0x2710
cmova edx, ecx
push edx
mov dword [0x41b194], edx
call ebx
push 0x41b198
push 0x24
push 0x41b168
push 0
push dword [0x41b1a0]
call edi
test eax, eax
je 0x4044c5
mov eax, dword [0x41b17c]
cmp eax, dword [0x41b18c]
jbe 0x40444d
call esi
mov dword [0x41b190], eax
mov eax, dword [0x41b17c]
mov dword [0x41b18c], eax
jmp 0x40445d
call esi
sub eax, dword [0x41b190]
cmp eax, dword [0x41b180]
ja 0x4044a4
cmp dword [0x41b16c], 3
mov ecx, 0x2710
je 0x4043e0
push 0
push 0
push dword [0x41b1a0]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4044e6
push dword [0x41b1a0]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [0x41b19c]
call esi
pop ebx
pop edi
mov eax, 6
pop esi
ret 4
push dword [0x41b1a0]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [0x41b19c]
call esi
pop ebx
pop edi
mov eax, 5
pop esi
ret 4
push dword [0x41b1a0]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [0x41b19c]
call esi
pop ebx
pop edi
mov eax, 4
pop esi
ret 4
pop ebx
pop edi
xor eax, eax
pop esi
ret 4
Function at 0x4055d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x41b014]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x20], 0x10
lea ecx, [ebp - 8]
push esi
push ecx
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0xf003f
push 0
push 0
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x405624
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x40566b
push dword [ebp + 0x4c]
cmp dword [ebp + 0x50], 0x10
lea ecx, [ebp + 0x3c]
lea eax, [ebp + 0x24]
cmovae ecx, dword [ebp + 0x3c]
cmp dword [ebp + 0x38], 0x10
push ecx
cmovae eax, dword [ebp + 0x24]
push 1
push 0
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0xc]
test eax, eax
je 0x405663
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x40566b
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov edx, dword [ebp + 0x20]
cmp edx, 0x10
jb 0x40569f
mov ecx, dword [ebp + 0xc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405695
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405719
push edx
push ecx
call fcn.00410dcc
add esp, 8
mov edx, dword [ebp + 0x38]
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x20], 0xf
mov byte [ebp + 0xc], 0
cmp edx, 0x10
jb 0x4056e1
mov ecx, dword [ebp + 0x24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4056d7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405719
push edx
push ecx
call fcn.00410dcc
add esp, 8
mov edx, dword [ebp + 0x50]
mov dword [ebp + 0x34], 0
mov dword [ebp + 0x38], 0xf
mov byte [ebp + 0x24], 0
cmp edx, 0x10
jb 0x405729
mov ecx, dword [ebp + 0x3c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40571f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40571f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00410dcc
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00410a23
mov esp, ebp
pop ebp
ret 0x4c
Function at 0x405740
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412015
mov eax, dword fs:[0]
push eax
sub esp, 0x410
mov eax, dword [0x41b014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x3c]
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x41c]
cmp dword [ebp + 0x20], 0x10
lea eax, [ebp + 0xc]
push ecx
cmovae eax, dword [ebp + 0xc]
push 0xf023f
push 0
push eax
push 0x80000002
mov dword [ebp - 0x418], 1
mov dword [ebp - 0x414], 0x400
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405824
cmp dword [ebp + 0x38], 0x10
lea ecx, [ebp - 0x414]
push ecx
lea ecx, [ebp - 0x410]
push ecx
lea ecx, [ebp - 0x418]
push ecx
lea eax, [ebp + 0x24]
cmovae eax, dword [ebp + 0x24]
push 0
push eax
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405818
lea edx, [ebp - 0x410]
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4057f0
sub edx, esi
lea eax, [ebp - 0x410]
push edx
push eax
mov ecx, edi
call fcn.0040f0c0
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
jmp 0x40582c
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov edx, dword [ebp + 0x20]
cmp edx, 0x10
jb 0x40585c
mov ecx, dword [ebp + 0xc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405852
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405894
push edx
push ecx
call fcn.00410dcc
add esp, 8
mov edx, dword [ebp + 0x38]
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x20], 0xf
mov byte [ebp + 0xc], 0
cmp edx, 0x10
jb 0x4058a4
mov ecx, dword [ebp + 0x24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40589a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40589a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00410dcc
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00410a23
mov esp, ebp
pop ebp
ret 0x38
Function at 0x405f40
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41218f
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x41b014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov edx, dword [edi + 4]
mov ecx, edx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
lea esi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405f90
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x24]
call fcn.0040f0c0
mov dword [ebp - 4], 0
cmp dword [0x41ba6c], 0
jne 0x405fe2
push 0x600
call fcn.00410a36
mov esi, eax
mov dword [ebp - 0x28], esi
push 0x600
push 0
push esi
mov byte [ebp - 4], 1
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov ecx, esi
call fcn.00401d40
mov dword [0x41ba6c], eax
cmp dword [ebp - 0x10], 0x10
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x406058
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x406058
mov edx, dword [ebp - 0x10]
cmp edx, 0x10
jb 0x406034
mov ecx, dword [ebp - 0x24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40602a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40607e
push edx
push ecx
call fcn.00410dcc
add esp, 8
push 0
push dword [edi + 4]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x10]
cmp edx, 0x10
jb 0x40608e
mov ecx, dword [ebp - 0x24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406084
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x406084
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00410dcc
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x408d40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412799
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x41b014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi]
mov edx, esi
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
lea ecx, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x408d90
sub edx, ecx
lea ecx, [ebp - 0x24]
push edx
push esi
call fcn.0040f0c0
mov dword [ebp - 4], 0
cmp dword [0x41ba6c], 0
jne 0x408de2
push 0x600
call fcn.00410a36
mov esi, eax
mov dword [ebp - 0x28], esi
push 0x600
push 0
push esi
mov byte [ebp - 4], 1
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov ecx, esi
call fcn.00401d40
mov dword [0x41ba6c], eax
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x24]
cmp dword [ebp - 0x10], 0x10
cmovae eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x408ef4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x408ef4
mov edx, dword [ebp - 0x10]
cmp edx, 0x10
jb 0x408e47
mov ecx, dword [ebp - 0x24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408e3d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408f1a
push edx
push ecx
call fcn.00410dcc
add esp, 8
mov esi, dword [edi + 8]
sub esp, 0x18
mov edx, esp
mov dword [ebp - 0x14], 0
mov ecx, esi
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x28], esp
mov dword [edx], 0
mov dword [edx + 0x10], 0
lea edi, [ecx + 1]
mov dword [edx + 0x14], 0xf
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408e80
sub ecx, edi
push ecx
push esi
mov ecx, edx
call fcn.0040f0c0
mov dword [ebp - 4], 2
mov eax, dword [0x41ba6c]
test eax, eax
jne 0x408ed5
push 0x600
call fcn.00410a36
mov esi, eax
mov dword [ebp - 0x2c], esi
push 0x600
push 0
push esi
mov byte [ebp - 4], 3
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov ecx, esi
call fcn.00401d40
mov byte [ebp - 4], 2
mov dword [0x41ba6c], eax
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
call fcn.00402450
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x10]
cmp edx, 0x10
jb 0x408f2a
mov ecx, dword [ebp - 0x24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408f20
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x408f20
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00410dcc
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40a270
Capabilities:
Acquire debug privileges
Disable system features via registry on windows
Hide graphical window
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412aeb
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x41b014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp ecx, 1
jne 0x40a409
mov esi, dword [0x41ba6c]
test esi, esi
jne 0x40a2ea
push 0x600
call fcn.00410a36
mov esi, eax
mov dword [ebp - 0x14], esi
push 0x600
push 0
push esi
mov dword [ebp - 4], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov ecx, esi
call fcn.00401d40
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x41ba6c], esi
lea edi, [esi + 0x40]
push edi
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40a30c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x24], eax
jmp 0x40a389
lea ebx, [esi + 0x68]
push ebx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x40a32c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x24], eax
jmp 0x40a389
mov eax, dword [ebx]
lea edx, [esi + 0x148]
mov ecx, dword [ebx + 4]
push 0
push 0
push 0x10
mov dword [edx], 1
push edx
mov dword [esi + 0x14c], eax
mov dword [esi + 0x150], ecx
mov dword [esi + 0x24], 2
push 0
mov dword [esi + 0x154], 2
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x40a37a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x24], eax
jmp 0x40a389
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.004034e0
cmp dword [0x41ba6c], 0
jne 0x40a3c4
push 0x600
call fcn.00410a36
mov esi, eax
mov dword [ebp - 0x14], esi
push 0x600
push 0
push esi
mov dword [ebp - 4], 1
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov ecx, esi
call fcn.00401d40
mov dword [0x41ba6c], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem_
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 4
lea eax, [ebp - 0x14]
push eax
push 4
push 0
push str.EnableLUA
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40a45e
test ecx, ecx
jne 0x40a45e
mov esi, dword [0x41ba6c]
test esi, esi
jne 0x40a44c
push 0x600
call fcn.00410a36
mov esi, eax
mov dword [ebp - 0x14], esi
push 0x600
push 0
push esi
mov dword [ebp - 4], 2
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov ecx, esi
call fcn.00401d40
mov esi, eax
mov dword [0x41ba6c], esi
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 0
push eax
mov dword [esi + 0x54], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00410a23
mov esp, ebp
pop ebp
ret
Function at 0x40e050
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x40e07c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x40e09e
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x40e0a0
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x40e125
jg 0x40e0b5
test esi, esi
je 0x40e125
test ecx, ecx
jl 0x40e108
jg 0x40e0bf
test eax, eax
je 0x40e108
cmp edi, ecx
jg 0x40e0d3
jl 0x40e0c9
cmp esi, eax
jae 0x40e0d3
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [ebx + 0x30]
sub esi, ecx
mov edx, dword [ebp + 8]
sbb edi, dword [esp + 0x10]
add edx, ecx
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
test edi, edi
jl 0x40e125
jg 0x40e10b
test esi, esi
je 0x40e125
jmp 0x40e10b
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x40e125
push eax
push esi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40e140
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
push esi
mov esi, dword [ebp + 0xc]
test eax, eax
jg 0x40e16c
jl 0x40e160
test esi, esi
jne 0x40e16c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x40e185
push eax
push esi
push ecx
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, esi
mov edx, dword [eax]
test edx, edx
je 0x40e1bf
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x40e1bf
mov edi, dword [ebp + 0xc]
cmp eax, edi
cmovb esi, eax
push esi
push edx
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [ebp - 4], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0xc]
cmp dword [ebx + 0x4c], 0
mov edx, edi
je 0x40e240
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x40e1e8
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edx, edi
mov ecx, dword [ebp - 4]
cmp edi, 0xfff
jbe 0x40e22c
nop word [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push ecx
call eax
mov ecx, dword [ebp - 4]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x40e253
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x40e200
test edx, edx
je 0x40e240
push dword [ebx + 0x4c]
push edi
push 1
push ecx
call eax
mov edx, edi
add esp, 0x10
sub edx, eax
sub esi, edx
mov edx, dword [ebp + 0x10]
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
sub esi, edi
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc