joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401750
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x474
mov eax, dword [0x42a95c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x474], ecx
lea eax, [ebp - 0x210]
push eax
call fcn.0040e520
add esp, 4
lea ecx, [ebp - 0x210]
push ecx
push str._sHKBTokendftxHKB_DFTX_Client.exe__min
lea edx, [ebp - 0x428]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov dword [ebp - 0x470], 0x44
push 0x40
push 0
lea eax, [ebp - 0x46c]
push eax
call fcn.00413440
add esp, 0xc
mov dword [ebp - 0x444], 1
mov ecx, 1
mov word [ebp - 0x440], cx
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x470]
push eax
push 0
push 0
push 0x10
push 0
push 0
push 0
lea ecx, [ebp - 0x428]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 1
mov ecx, dword [0x42b988]
call fcn.00405910
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413653
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4022e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
push eax
movzx ecx, word [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x402316
mov eax, 0x80004005
jmp 0x4023e2
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x402337
mov eax, 0x80004005
jmp 0x4023e2
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
add edx, 4
push edx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.00413690
add esp, 0xc
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea edx, [ebp - 4]
push edx
push 1
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [ebp - 0x10], 0
jne 0x4023d3
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp - 0x24]
call fcn.004023f0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x10]
jmp 0x4023e2
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404dc0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
push 0
push 0
mov eax, dword [0x42b988]
push eax
push 0x4116a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10

Function at 0x407f60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x47c
mov eax, dword [0x42a95c]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x47c], ecx
lea eax, [ebp - 0x220]
push eax
call fcn.0040e520
add esp, 4
lea ecx, [ebp - 0x220]
push ecx
push 0x4207e0
lea edx, [ebp - 0x478]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov dword [ebp - 0x270], 0x44
push 0x40
push 0
lea eax, [ebp - 0x26c]
push eax
call fcn.00413440
add esp, 0xc
mov dword [ebp - 0x244], 1
mov ecx, 1
mov word [ebp - 0x240], cx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x270]
push eax
push 0
push 0
push 0x10
push 0
push 0
push 0
lea ecx, [ebp - 0x478]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x224], eax
xor eax, eax
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00413653
mov esp, ebp
pop ebp
ret 0x10

Function at 0x408470
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0x3c
push 0
mov eax, dword [ebp - 4]
add eax, 0x60c
push eax
call fcn.00413440
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x60c], 0x3c
mov edx, dword [ebp - 4]
add edx, 0xc
mov eax, dword [ebp - 4]
mov dword [eax + 0x61c], edx
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x620], 0x100
mov edx, dword [ebp - 4]
add edx, 0x20c
mov eax, dword [ebp - 4]
mov dword [eax + 0x638], edx
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x63c], 0x100
mov edx, dword [ebp - 4]
add edx, 0x40c
mov eax, dword [ebp - 4]
mov dword [eax + 0x640], edx
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x644], 0x100
mov edx, dword [ebp - 4]
add edx, 0x60c
push edx
push 0x80000000
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x40851a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40851c
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x408530
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
push 0
push 0
push 0
push 0
push 0x4208e0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov edx, dword [ebp - 8]
cmp dword [edx], 0
jne 0x408561
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4085d6
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.00408470
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40857b
mov eax, dword [ebp - 4]
jmp 0x4085d6
push 0
push 0
push 3
push 0
push 0
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + 0x624]
push edx
mov eax, dword [ebp - 8]
add eax, 0xc
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ecx, dword [ebp - 8]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 8]
cmp dword [edx], 0
jne 0x4085b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4085d6
mov eax, dword [ebp + 0xc]
push eax
push 0x104
mov ecx, dword [ebp - 8]
add ecx, 0x64c
push ecx
call fcn.00415992
add esp, 0xc
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x408650
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.004140b0
mov eax, dword [0x42a95c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1014], ecx
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x1014]
cmp dword [eax + 0x618], 4
jne 0x40868f
mov ecx, dword [ebp - 0xc]
or ecx, 0x800000
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x1014]
cmp dword [edx + 8], 0
je 0x4086b8
mov eax, dword [ebp - 0x1014]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x1014]
mov dword [edx + 8], 0
push 0
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0x1014]
add ecx, 0x20c
push ecx
mov edx, dword [ebp - 0x1014]
add edx, 0x64c
push edx
mov eax, dword [ebp - 0x1014]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edx, dword [ebp - 0x1014]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x1014]
cmp dword [eax + 8], 0
jne 0x408713
call dword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0x10000000
jmp 0x408866
mov ecx, dword [ebp - 0x1014]
mov dword [ecx + 0x648], 0
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x1014]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x40874f
call dword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0x20000000
jmp 0x408866
mov dword [ebp - 8], 0x800
push 0
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x1010]
push edx
push 0x16
mov eax, dword [ebp - 0x1014]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x40878e
call dword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0x40000000
jmp 0x408866
push 0x4208f8
lea edx, [ebp - 0x1010]
push edx
call fcn.00408f10
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40880f
mov eax, dword [ebp - 4]
add eax, 0x20
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
movzx edx, word [ecx]
push edx
call fcn.00413fd0
add esp, 4
test eax, eax
je 0x40880f
mov eax, dword [ebp - 0x1014]
mov ecx, dword [eax + 0x648]
imul ecx, ecx, 0xa
mov edx, dword [ebp - 0x1014]
mov dword [edx + 0x648], ecx
mov eax, dword [ebp - 4]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1014]
mov eax, dword [edx + 0x648]
lea ecx, [ecx + eax - 0x30]
mov edx, dword [ebp - 0x1014]
mov dword [edx + 0x648], ecx
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
jmp 0x4087b4
mov ecx, dword [ebp - 0x1014]
cmp dword [ecx + 8], 0
je 0x408838
mov edx, dword [ebp - 0x1014]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x1014]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 0x1014]
cmp dword [edx + 0x648], 0x3e8
jbe 0x40885d
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1014]
mov edx, dword [ecx + 0x648]
mov dword [eax], edx
jmp 0x408864
mov eax, 1
jmp 0x408866
xor eax, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00413653
mov esp, ebp
pop ebp
ret 4
Function at 0x408d20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x1c]
add ecx, 4
call fcn.00408f60
mov ecx, eax
call fcn.0040e100
push eax
mov ecx, dword [ebp - 0x1c]
add ecx, 4
call fcn.00408f90
push 0x40c
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, 4
call fcn.00401c90
mov ecx, eax
call fcn.0040e100
push eax
lea ecx, [ebp - 0xc]
call fcn.00401980
mov edx, dword [eax]
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x65c], edx
push 0x40d
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, 4
call fcn.00401c90
mov ecx, eax
call fcn.0040e100
push eax
lea ecx, [ebp - 0x14]
call fcn.00401980
mov edx, dword [eax]
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x658], edx
mov ecx, dword [ebp - 0x1c]
add ecx, 0x450
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, 4
call fcn.00401b90
push 0x420938
mov ecx, dword [ebp - 0x1c]
add ecx, 0x65c
call fcn.00401b90
push 0
mov ecx, dword [ebp - 0x1c]
add ecx, 0x658
call fcn.00409420
push 0
push 0
mov edx, dword [ebp - 0x1c]
push edx
push 0x408e10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret 0x10

Function at 0x409560
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_DefWindowProcW]
push 4
call fcn.00409880
add esp, 4
push 0x420968
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4095b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4095b2
xor eax, eax
jmp 0x4095ed
push 0
mov eax, dword [ebp + 8]
push eax
push 0
mov ecx, 0x42b98c
call fcn.00409ac0
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.00409480
add esp, 8
mov dword [ebp - 4], eax
mov ecx, 0x42b98c
call fcn.00409c10
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40b460
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x42a95c]
xor eax, ebp
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x454], ecx
call fcn.0040ae00
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x2c]
call fcn.00403bc0
mov eax, dword [ebp - 0x454]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040b750
lea ecx, [ebp - 0x438]
call fcn.00403bc0
push 0x400
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040b230
add esp, 8
mov dword [ebp - 8], eax
push 2
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40b4de
call fcn.0040ae60
mov dword [ebp - 0x444], eax
jmp 0x40b633
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x440], eax
cmp dword [ebp - 0x440], 0
jne 0x40b50f
call fcn.0040ae60
mov dword [ebp - 0x444], eax
jmp 0x40b633
mov eax, dword [ebp - 0x440]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x448], eax
cmp dword [ebp - 0x448], 0
jne 0x40b53f
call fcn.0040ae60
mov dword [ebp - 0x444], eax
jmp 0x40b633
mov edx, dword [ebp - 0x440]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x448]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x1c]
add edx, 1
cmp edx, dword [ebp - 0x1c]
jae 0x40b58f
mov dword [ebp - 0x44c], 0x8007000e
lea ecx, [ebp - 0x438]
call fcn.0040e0b0
lea ecx, [ebp - 0x2c]
call fcn.00403990
mov eax, dword [ebp - 0x44c]
jmp 0x40b668
mov eax, dword [ebp - 0x1c]
add eax, 1
push eax
lea ecx, [ebp - 0x438]
call fcn.0040e0d0
lea ecx, [ebp - 0x438]
call fcn.0040e100
test eax, eax
jne 0x40b5bc
mov dword [ebp - 0x444], 0x8007000e
jmp 0x40b633
mov ecx, dword [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x438]
call fcn.0040e100
push eax
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 0
call fcn.0040ae00
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x43c], eax
cmp dword [ebp - 0x43c], 0
jne 0x40b5fe
call fcn.0040ae60
mov dword [ebp - 0x444], eax
jmp 0x40b633
lea ecx, [ebp - 0x438]
call fcn.0040e100
xor ecx, ecx
mov edx, dword [ebp - 0x43c]
mov word [eax + edx*2], cx
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x438]
call fcn.0040e100
push eax
lea ecx, [ebp - 0x18]
call fcn.0040b780
mov dword [ebp - 0x444], eax
cmp dword [ebp - 0x10], 0
je 0x40b643
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp - 0x444]
mov dword [ebp - 0x450], edx
lea ecx, [ebp - 0x438]
call fcn.0040e0b0
lea ecx, [ebp - 0x2c]
call fcn.00403990
mov eax, dword [ebp - 0x450]
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.00413653
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40cf80
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x42a95c]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x230], ecx
lea ecx, [ebp - 0x14]
call fcn.0040cd50
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0040cf20
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40cfeb
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x224], edx
lea ecx, [ebp - 0x14]
call fcn.0040cd80
mov eax, dword [ebp - 0x224]
jmp 0x40d07c
mov dword [ebp - 4], 0x100
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40d051
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0040cf80
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40d048
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x228], edx
lea ecx, [ebp - 0x14]
call fcn.0040cd80
mov eax, dword [ebp - 0x228]
jmp 0x40d07c
mov dword [ebp - 4], 0x100
jmp 0x40cff2
lea ecx, [ebp - 0x14]
call fcn.0040ce60
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x230]
call fcn.0040ce00
mov dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x14]
call fcn.0040cd80
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00413653
mov esp, ebp
pop ebp
ret 4
Function at 0x40d5e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
xor eax, eax
jne 0x40d5e9
xor ecx, ecx
jne 0x40d5e9
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x40d60a
mov eax, 0xd
jmp 0x40d665
xor eax, eax
jne 0x40d5f1
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax*2]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2]
mov dword [ebp - 4], edx
cmp dword [ebp - 0xc], 1
jne 0x40d61b
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 7
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 8

Function at 0x40e520
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40e548
mov eax, 1
jmp 0x40e562
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x40e570
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40e598
mov eax, 1
jmp 0x40e5b2
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40e5c0
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
je 0x40e687
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x40e60c
mov eax, 2
jmp 0x40e6ab
lea edx, [ebp - 0x14]
push edx
push 0
push 0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x40e654
mov eax, 3
jmp 0x40e6ab
lea eax, [ebp - 0xc]
push eax
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, 1
je 0x40e687
xor eax, eax
jmp 0x40e6ab
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40e6a9
mov eax, 1
jmp 0x40e6ab
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40ef20
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x42a95c]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 8], 0
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
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x20]
push eax
push 1
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x40efb3
lea ecx, [ebp - 0x20]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x40efb3
xor eax, eax
jmp 0x40f0e5
lea edx, [ebp - 4]
push edx
push 0
push 0
push 2
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x40efec
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x40efec
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40f0e5
mov edx, dword [ebp - 4]
push edx
call fcn.00413d78
add esp, 4
mov dword [ebp - 0x28], eax
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x28]
push edx
push 2
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x40f039
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x28]
push edx
call fcn.00413e42
add esp, 4
xor eax, eax
jmp 0x40f0e5
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x10], ecx
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x40f085
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00413e42
add esp, 4
xor eax, eax
jmp 0x40f0e5
mov dword [ebp - 0x24], 0
mov dword [ebp - 0xc], 0
jmp 0x40f09e
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [eax]
jae 0x40f0cc
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + edx*8 + 4]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x40f0ca
mov dword [ebp - 0x24], 1
jmp 0x40f0cc
jmp 0x40f095
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00413e42
add esp, 4
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00413653
mov esp, ebp
pop ebp
ret