joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405bd0
Capabilities:
Check mutex on windows

Disassembly:
push esi
push edi
mov esi, ecx
mov edi, eax
call fcn.00405c79
cmp dword [edi + 0x14], 0
je 0x405bf1
cmp dword [edi + 0x18], 8
jb 0x405bec
mov edi, dword [edi + 4]
jmp 0x405bf3
add edi, 4
jmp 0x405bf3
xor edi, edi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
mov dword [esi + 4], eax
je 0x405c1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xb7
neg eax
sbb eax, eax
and eax, 0xfffffffe
inc eax
inc eax
mov dword [esi], eax
jmp 0x405c23
mov dword [esi], 1
pop edi
mov eax, esi
pop esi
jmp 0x405c2c
cmp dword [eax + 4], 0
setne al
ret

Function at 0x405ee6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x20
mov eax, 0x44294b
call fcn.0042e3b2
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x2c]
call fcn.00403257
and dword [ebp - 4], 0
mov eax, esi
push 0x24
push eax
call fcn.004057ed
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
pop ecx
pop ecx
jae 0x405f19
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405f3b
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x2c]
call fcn.004016ab
mov al, bl
call fcn.0042e435
ret
xor bl, bl
jmp 0x405f27

Function at 0x405f3f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x20
mov eax, 0x44294b
call fcn.0042e3b2
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x2c]
call fcn.00403257
and dword [ebp - 4], 0
mov eax, esi
push 0x24
push eax
call fcn.004057ed
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
pop ecx
pop ecx
jae 0x405f72
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405f98
test al, 0x10
jne 0x405f98
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x2c]
call fcn.004016ab
mov al, bl
call fcn.0042e435
ret
xor bl, bl
jmp 0x405f84

Function at 0x405f9c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x20
mov eax, 0x44294b
call fcn.0042e3b2
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x2c]
call fcn.00403257
and dword [ebp - 4], 0
mov eax, esi
push 0x24
push eax
call fcn.004057ed
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
pop ecx
pop ecx
jae 0x405fcf
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405ff5
test al, 0x10
je 0x405ff5
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x2c]
call fcn.004016ab
mov al, bl
call fcn.0042e435
ret
xor bl, bl
jmp 0x405fe1

Function at 0x406d1f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x44f1a0]
xor eax, ebp
mov dword [ebp - 4], eax
and word [ebp - 0x210], 0
push esi
push 0x20a
lea eax, [ebp - 0x20e]
push 0
push eax
mov esi, ecx
call fcn.0042ca00
add esp, 0xc
push 0x105
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x406d81
and word [ebp - 6], 0
lea eax, [ebp - 0x210]
call fcn.00401633
mov al, 1
jmp 0x406d83
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042b9ba
leave
ret
Function at 0x406d90
Capabilities:
Set file attributes

Disassembly:
cmp dword [esp + 4], 0xffffffff
jne 0x406d9a
xor al, al
ret
and dword [esp + 4], 0xffffb1af
cmp dword [eax + 0x18], 8
jb 0x406dad
mov eax, dword [eax + 4]
jmp 0x406db0
add eax, 4
push dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret

Function at 0x406dc1
Capabilities:
Move file

Disassembly:
cmp dword [eax + 0x18], 8
jb 0x406dcc
mov eax, dword [eax + 4]
jmp 0x406dcf
add eax, 4
cmp dword [ecx + 0x18], 8
jb 0x406dda
mov ecx, dword [ecx + 4]
jmp 0x406ddd
add ecx, 4
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
ret

Function at 0x406e9a
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x18], 8
push edi
lea edi, [esi + 4]
jb 0x406eb2
mov eax, dword [edi]
jmp 0x406eb4
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x406ec6
mov al, 1
jmp 0x406f62
cmp dword [esi + 0x18], 8
jb 0x406ed0
mov eax, dword [edi]
jmp 0x406ed2
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x406f60
cmp dword [esi + 0x18], 8
jb 0x406eeb
mov eax, dword [edi]
jmp 0x406eed
mov eax, edi
push ebx
lea ecx, [ebp - 0x20]
call fcn.004015ff
push 0
lea eax, [ebp - 0x20]
call fcn.00406d90
pop ecx
mov bl, al
neg bl
push 0
sbb bl, bl
push 1
lea esi, [ebp - 0x20]
inc bl
call fcn.004016ab
test bl, bl
pop ebx
jne 0x406f60
mov esi, dword [ebp + 8]
cmp dword [esi + 0x18], 8
jb 0x406f27
mov eax, dword [edi]
jmp 0x406f29
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x406ebf
cmp dword [esi + 0x18], 8
jb 0x406f3e
mov eax, dword [edi]
jmp 0x406f40
mov eax, edi
lea ecx, [ebp - 0x20]
call fcn.004015ff
push dword [ebp - 4]
lea eax, [ebp - 0x20]
call fcn.00406d90
pop ecx
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.004016ab
xor al, al
pop edi
pop esi
leave
ret
Function at 0x406f66
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x44f1a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
cmp dword [0x450554], ebx
push esi
mov esi, ecx
je 0x406f9b
push 0xffffffffffffffff
push esi
mov eax, 0x450540
call fcn.00401709
mov al, 1
jmp 0x407037
push 0x20a
lea eax, [ebp - 0x20e]
push ebx
push eax
mov word [ebp - 0x210], bx
call fcn.0042ca00
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x407035
push edi
push 0x410
lea eax, [ebp - 0x622]
push ebx
push eax
mov word [ebp - 6], bx
mov word [ebp - 0x624], bx
call fcn.0042ca00
add esp, 0xc
mov edi, 0x208
push edi
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, edi
pop edi
ja 0x407025
cmp eax, ebx
je 0x407025
mov word [ebp + eax*2 - 0x624], bx
lea eax, [ebp - 0x624]
jmp 0x40702b
lea eax, [ebp - 0x210]
call fcn.00401633
jmp 0x406f94
xor al, al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042b9ba
leave
ret

Function at 0x407045
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x44f1a0]
xor eax, ebp
mov dword [ebp + 0x190], eax
mov eax, dword [ebp + 0x19c]
push ebx
push esi
push edi
xor esi, esi
push 0x20a
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x7a]
push esi
push eax
mov ebx, ecx
mov edi, edx
mov word [ebp - 0x7c], si
call fcn.0042ca00
add esp, 0xc
cmp dword [edi + 0x18], 8
jb 0x407093
mov edi, dword [edi + 4]
jmp 0x407096
add edi, 4
cmp dword [ebx + 0x18], 8
jb 0x4070a1
mov ebx, dword [ebx + 4]
jmp 0x4070a4
add ebx, 4
lea eax, [ebp - 0x7c]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jbe 0x4070cb
mov word [ebp + 0x18e], si
mov esi, dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
call fcn.00401633
mov al, 1
jmp 0x4070cd
xor al, al
mov ecx, dword [ebp + 0x190]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042b9ba
add ebp, 0x194
leave
ret

Function at 0x4071af
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [eax + 0x18], 8
jb 0x4071ba
mov eax, dword [eax + 4]
jmp 0x4071bd
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret

Function at 0x407447
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [eax]
test eax, eax
jne 0x407455
xor al, al
leave
ret
cmp dword [eax], 0xffffffff
je 0x407451
push edi
lea ecx, [ebp - 4]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40747c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40747c
xor al, al
jmp 0x407497
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.0043adc0
xor ecx, ecx
add eax, edi
adc edx, ecx
mov dword [esi], eax
mov dword [esi + 4], edx
mov al, 1
pop edi
leave
ret
Function at 0x407680
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ecx
push esi
push edi
mov esi, eax
call fcn.00407880
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x4076e7
cmp dword [esi + 0x18], 8
jb 0x4076aa
mov eax, dword [esi + 4]
jmp 0x4076ad
lea eax, [esi + 4]
push 0
push 0
push 0x44617c
push 0
push 0
push eax
push 1
push 2
push 0x110
push 0xf01ff
push str.2345
push str.2345Safe
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
jne 0x4076ed
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
xor al, al
pop esi
pop ecx
ret
lea eax, [esp + 8]
push eax
push 1
push esi
mov dword [esp + 0x14], 0x446858
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
call fcn.00408140
pop edi
mov al, 1
pop esi
pop ecx
ret
Function at 0x407880
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push 0xffffffffffffffff
push 0x442028
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x44f1a0]
xor eax, esp
mov dword [esp + 0x74], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44f1a0]
xor eax, esp
push eax
lea eax, [esp + 0x8c]
mov dword fs:[0], eax
push str.GlobalRC_SAFE_D83E09CB_2765_4301_84EA_5B679756AAF4
lea ebx, [esp + 0x68]
call fcn.0042ae36
xor ebp, ebp
mov eax, ebx
mov dword [esp + 0x94], ebp
call fcn.0042af0b
push str.GlobalRC_SAFE_1103A027_8DC6_473c_A3BC_C913CBA0A9C3
lea ebx, [esp + 0x44]
call fcn.0042ae36
mov eax, ebx
call fcn.0042af0b
mov eax, ebx
call fcn.0042ae98
lea eax, [esp + 0x64]
mov dword [esp + 0x94], 0xffffffff
call fcn.0042ae98
call fcn.00407a20
push 0xf003f
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
cmp edi, ebp
je 0x4079ef
push 0x24
push str.2345Safe
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, ebp
jne 0x40793f
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4079ef
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x1c]
push eax
push 1
push esi
mov dword [esp + 0x28], ebp
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4079e3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [esp + 0x20], 1
mov dword [esp + 0x18], eax
je 0x4079e3
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
jmp 0x4079a0
mov ecx, dword [esp + 0x34]
push ecx
mov dword [esp + 0x18], 0
call ebx
lea edx, [esp + 0x14]
push edx
push 0x24
lea eax, [esp + 0x24]
push eax
push 0
push esi
call ebp
test eax, eax
je 0x4079e3
cmp dword [esp + 0x20], 1
je 0x4079e3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x18]
cmp eax, 0xbb8
ja 0x4079e3
cmp dword [esp + 0x20], 1
jne 0x4079a0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
call fcn.004080e0
mov ecx, dword [esp + 0x8c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0042b9ba
add esp, 0x84
ret
Function at 0x408d90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44158e
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x44f1a0]
xor eax, esp
mov dword [esp + 0x428], eax
push ebx
push esi
push edi
mov eax, dword [0x44f1a0]
xor eax, esp
push eax
lea eax, [esp + 0x440]
mov dword fs:[0], eax
mov ebx, 1
xor edi, edi
test byte [0x451900], bl
mov esi, ecx
jne 0x408e30
or dword [0x451900], ebx
mov dword [esp + 0x448], edi
call fcn.0040a0f0
mov dword [0x4518f0], eax
mov byte [eax + 0x2d], bl
mov eax, dword [0x4518f0]
mov dword [eax + 4], eax
mov eax, dword [0x4518f0]
mov dword [eax], eax
mov eax, dword [0x4518f0]
mov dword [eax + 8], eax
push 0x443df0
mov dword [0x4518f4], edi
call fcn.0042bd23
add esp, 4
mov dword [esp + 0x448], 0xffffffff
mov eax, dword [0x4518f0]
mov dword [esp + 0x18], eax
lea ebx, [ebp + 8]
lea eax, [esp + 0x1c]
call fcn.00409390
mov ebx, eax
mov eax, dword [ebx]
cmp eax, edi
je 0x408e54
cmp eax, 0x4518ec
je 0x408e59
call fcn.0042c040
mov ecx, dword [esp + 0x18]
cmp dword [ebx + 4], ecx
je 0x408e6f
lea ecx, [ebp + 8]
call fcn.00409260
push 0xffffffffffffffff
push esi
jmp 0x408eeb
push 0x40e
lea edx, [esp + 0x2a]
push edi
push edx
mov word [esp + 0x30], di
call fcn.0042ca00
mov ecx, dword [ebp + 8]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push ecx
push edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x408ec2
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x408ec6
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x408ec2
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor al, al
jmp 0x408ef4
lea eax, [esp + 0x24]
call fcn.00401633
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x408ede
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea ecx, [ebp + 8]
call fcn.00409260
push 0xffffffffffffffff
push eax
mov eax, esi
xor ebx, ebx
call fcn.00401709
mov al, 1
mov ecx, dword [esp + 0x440]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.0042b9ba
mov esp, ebp
pop ebp
ret
Function at 0x408f20
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x24
lea eax, [esp + 4]
push eax
push 0x20
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x408fed
lea ecx, [esp + 8]
push ecx
push 0x446b70
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x408f7c
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x24
ret
mov ecx, dword [esp + 0xc]
push 0
xor eax, eax
push 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
push 0x10
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
push 0
push eax
mov dword [esp + 0x28], 1
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x408fd5
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x24
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x514
je 0x408f6d
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x24
ret
Function at 0x40c220
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x420
mov eax, dword [0x44f1a0]
xor eax, esp
mov dword [esp + 0x41c], eax
mov eax, dword [esp + 0x424]
cmp dword [eax + 0x18], 8
push ebx
push esi
mov esi, dword [esp + 0x430]
push edi
mov edi, edx
jb 0x40c252
mov eax, dword [eax + 4]
jmp 0x40c255
add eax, 4
lea edx, [esp + 0xc]
push edx
push 0x20019
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40c2e2
mov ebx, dword [esp + 0xc]
test ebx, ebx
je 0x40c2e2
push 0x410
push eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x1c], 0x40f
call fcn.0042ca00
add esp, 0xc
cmp dword [edi + 0x18], 8
jb 0x40c29f
mov edi, dword [edi + 4]
jmp 0x40c2a2
add edi, 4
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x40c2ca
lea eax, [esp + 0x18]
call fcn.00401633
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40c2d9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
jmp 0x40c2e4
xor al, al
mov ecx, dword [esp + 0x428]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042b9ba
add esp, 0x420
ret 8

Function at 0x40c300
Capabilities:
Set registry value

Disassembly:
cmp dword [eax + 0x18], 8
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov esi, ecx
jb 0x40c314
mov eax, dword [eax + 4]
jmp 0x40c317
add eax, 4
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push 0x2001f
push 0
push 0x44617c
push 0
push eax
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40c396
mov edi, dword [esp + 0x14]
test edi, edi
je 0x40c396
mov ecx, dword [esi + 0x14]
add ecx, ecx
cmp dword [esi + 0x18], 8
jb 0x40c359
mov edx, dword [esi + 4]
jmp 0x40c35c
lea edx, [esi + 4]
cmp dword [ebp + 0x18], 8
jb 0x40c367
mov eax, dword [ebp + 4]
jmp 0x40c36a
lea eax, [ebp + 4]
push ecx
push edx
push 1
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40c389
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
test esi, esi
pop esi
sete al
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebp
ret 8
Function at 0x40c5c0
Capabilities:
Check os version
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x442928
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44f1a0]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x74], 1
cmp dword [esp + 0x90], ebx
mov ebp, 8
jne 0x40c63c
lea eax, [esp + 0x50]
push eax
call fcn.00406bf0
add esp, 4
push 0xffffffffffffffff
lea ecx, [esp + 0x80]
push ecx
mov byte [esp + 0x7c], 2
call fcn.00401709
mov byte [esp + 0x74], 1
cmp dword [esp + 0x68], ebp
jb 0x40c63a
mov edx, dword [esp + 0x54]
push edx
call fcn.0042bbfa
add esp, 4
xor ebx, ebx
cmp dword [esp + 0xac], ebx
jne 0x40c65c
lea eax, [esp + 0x98]
push eax
lea edi, [esp + 0x80]
call fcn.00405e7b
add esp, 4
push 0x3c
lea ecx, [esp + 0x18]
push ebx
push ecx
call fcn.0042ca00
add esp, 0xc
cmp byte [0x4518d8], bl
mov dword [esp + 0x14], 0x3c
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], 0x540
je 0x40c68f
mov eax, dword [0x4506e4]
jmp 0x40c6a6
push 0x4506e8
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [0x4506e4], eax
mov byte [0x4518d8], 1
cmp eax, ebx
je 0x40c6bb
cmp dword [0x4506ec], 6
mov dword [esp + 0x20], 0x446eec
jae 0x40c6c3
mov dword [esp + 0x20], str.open
cmp dword [esp + 0x94], ebp
jb 0x40c6d9
mov edx, dword [esp + 0x80]
mov dword [esp + 0x24], edx
jmp 0x40c6e4
lea eax, [esp + 0x80]
mov dword [esp + 0x24], eax
cmp dword [esp + 0xb0], ebp
jb 0x40c6fa
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0x2c], ecx
jmp 0x40c705
lea edx, [esp + 0x9c]
mov dword [esp + 0x2c], edx
cmp dword [esi + 0x18], ebp
jb 0x40c713
mov eax, dword [esi + 4]
mov dword [esp + 0x28], eax
jmp 0x40c71a
add esi, 4
mov dword [esp + 0x28], esi
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x34], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x40c793
cmp dword [esp + 0x94], ebp
jb 0x40c74a
mov edx, dword [esp + 0x80]
push edx
call fcn.0042bbfa
add esp, 4
cmp dword [esp + 0xb0], ebp
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], ebx
mov word [esp + 0x80], bx
jb 0x40c77d
mov eax, dword [esp + 0x9c]
push eax
call fcn.0042bbfa
add esp, 4
xor al, al
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
mov ecx, dword [esp + 0x4c]
cmp ecx, ebx
je 0x40c7c7
cmp byte [esp + 0xb4], bl
je 0x40c7c0
mov edx, dword [esp + 0xb8]
or eax, 0xffffffff
cmp edx, ebx
jl 0x40c7b4
mov eax, edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x94], ebp
jb 0x40c7e0
mov ecx, dword [esp + 0x80]
push ecx
call fcn.0042bbfa
add esp, 4
cmp dword [esp + 0xb0], ebp
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], ebx
mov word [esp + 0x80], bx
jb 0x40c813
mov edx, dword [esp + 0x9c]
push edx
call fcn.0042bbfa
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
Function at 0x40e8b0
Capabilities:
Get session user name

Disassembly:
push 0xffffffffffffffff
push 0x44306c
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x44f1a0]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push ebp
push esi
mov eax, dword [0x44f1a0]
xor eax, esp
push eax
lea eax, [esp + 0x264]
mov dword fs:[0], eax
xor ebx, ebx
mov esi, 7
mov dword [edi + 0x18], esi
mov dword [edi + 0x14], ebx
mov dword [esp + 0x14], edi
mov word [edi + 4], bx
mov dword [esp + 0x26c], ebx
mov dword [edi + 0x34], esi
mov dword [edi + 0x30], ebx
mov word [edi + 0x20], bx
mov dword [edi + 0x50], esi
mov dword [edi + 0x4c], ebx
mov word [edi + 0x3c], bx
mov dword [edi + 0x6c], esi
mov dword [edi + 0x68], ebx
mov word [edi + 0x58], bx
mov dword [edi + 0x88], esi
mov dword [edi + 0x84], ebx
mov word [edi + 0x74], bx
mov dword [edi + 0xa4], esi
mov dword [edi + 0xa0], ebx
mov word [edi + 0x90], bx
lea ebp, [edi + 0xa8]
mov dword [ebp + 0x18], esi
mov dword [ebp + 0x14], ebx
mov word [ebp + 4], bx
mov dword [edi + 0xe0], esi
mov dword [edi + 0xdc], ebx
mov word [edi + 0xcc], bx
push ebx
mov byte [esp + 0x270], 7
call fcn.0042caa9
push eax
call fcn.0042ca7a
add esp, 8
push edi
call fcn.00405167
mov ecx, ebp
mov byte [edi + 0xe4], bl
call fcn.00405e1b
cmp dword [edi + 0xbc], ebx
je 0x40ea63
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], bx
push 0x208
lea eax, [esp + 0x56]
push ebx
mov byte [esp + 0x274], 8
push eax
mov word [esp + 0x5c], bx
call fcn.0042ca00
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x54]
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [esp + 0x50]
lea esi, [esp + 0x34]
mov word [esp + 0x256], bx
call fcn.00401633
mov eax, esi
push eax
call fcn.00404e3f
add esp, 4
push str..CEIZ.log
mov ebx, 9
mov eax, esi
call fcn.00403675
mov ecx, esi
push ecx
push ebp
lea ebx, [esp + 0x20]
call fcn.004058d8
add esp, 8
push 0xffffffffffffffff
push ebp
xor ebx, ebx
mov byte [esp + 0x274], 9
call fcn.00401709
mov esi, 8
cmp dword [esp + 0x30], esi
jb 0x40ea50
mov edx, dword [esp + 0x1c]
push edx
call fcn.0042bbfa
add esp, 4
cmp dword [esp + 0x4c], esi
jb 0x40ea63
mov eax, dword [esp + 0x38]
push eax
call fcn.0042bbfa
add esp, 4
mov dword [edi + 0xc4], ebx
mov eax, edi
mov ecx, dword [esp + 0x264]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.0042b9ba
add esp, 0x260
ret