joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d5e3
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040805b
mov dword [ebp - 0x14], eax
cmp dword [0x4482bc], esi
jne 0x40d6d6
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d663
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d7b6
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d7b6
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d7b6
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4482bc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4482c0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4482c4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4482cc], eax
test eax, eax
je 0x40d6d3
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4482c8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d6fb
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d6ee
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d710
push 4
pop eax
jmp 0x40d7b8
cmp dword [ebp - 0x14], esi
je 0x40d710
push dword [0x4482bc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d6f5
mov eax, dword [0x4482c8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d76e
cmp dword [0x4482cc], edi
je 0x40d76e
push eax
call ebx
push dword [0x4482cc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d76e
test eax, eax
je 0x40d76e
call ecx
test eax, eax
je 0x40d763
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d763
test byte [ebp - 8], 1
jne 0x40d76e
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d79e
mov eax, dword [0x4482c0]
cmp eax, edi
je 0x40d79b
push eax
call ebx
test eax, eax
je 0x40d79b
call eax
mov esi, eax
test esi, esi
je 0x40d79b
mov eax, dword [0x4482c4]
cmp eax, edi
je 0x40d79b
push eax
call ebx
test eax, eax
je 0x40d79b
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4482bc]
call ebx
test eax, eax
je 0x40d7b6
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d7b8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040401d
mov esp, ebp
pop ebp
ret
Function at 0x402af0
Capabilities:
Set registry value

Disassembly:
mov ecx, 0x43a934
jmp fcn.00404f40
Function at 0x4043b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404421
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x4043ef
cmp eax, 2
jne 0x40440b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x40441b
test ecx, ecx
je 0x404416
test cl, 1
jne 0x40440b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x40441b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x404f40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427ca0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x438130]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi], 0
je 0x405105
cmp byte [esi + 1], 0
je 0x405105
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
push 0
push 0
push 0x2001f
push 0
push 0
push str.SoftwareSkypeUpdater
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.00402870
test eax, eax
je 0x404ffb
call fcn.00401f80
mov esi, eax
call fcn.004037f0
mov ecx, eax
call fcn.00408c40
test eax, eax
je 0x404ff3
push esi
push str.SoftwareSkypeUpdater
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push str.BitsJob:_failed_to_open_key___s___0x_x_
push eax
mov dword [ebp - 0x10], 0xfffffffe
call fcn.00407b90
add esp, 0x10
mov edi, dword [ebp - 0x28]
jmp 0x4050e7
lea eax, [esi + 0x1c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004072b0
lea eax, [esi + 4]
mov byte [ebp - 4], 1
push eax
push str.BitsJobId
lea ecx, [ebp - 0x28]
call fcn.00405140
mov edi, dword [ebp - 0x28]
test eax, eax
je 0x405046
call fcn.00401f80
mov esi, eax
call fcn.004037f0
mov ecx, eax
call fcn.00408c40
test eax, eax
je 0x4050db
push esi
push str.BitsJobId
jmp 0x4050b8
push 1
push dword [esi + 0x18]
lea ecx, [ebp - 0x28]
push str.BitsJobFile
call fcn.00405330
test eax, eax
je 0x40507b
call fcn.00401f80
mov esi, eax
call fcn.004037f0
mov ecx, eax
call fcn.00408c40
test eax, eax
je 0x4050db
push esi
push str.BitsJobFile
jmp 0x4050b8
mov eax, dword [esi + 0x14]
push 4
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 4
push 0
push str.BitsJobError
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4050d5
call fcn.00401f80
mov esi, eax
call fcn.004037f0
mov ecx, eax
call fcn.00408c40
test eax, eax
je 0x4050db
push esi
push str.BitsJobError
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push str.BitsJob:_failed_to_save__s__0x_x_
push eax
mov dword [ebp - 0x10], 0xfffffffe
call fcn.00407b90
add esp, 0x10
jmp 0x4050db
mov byte [esi + 1], 0
xor esi, esi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.004072f0
test edi, edi
je 0x4050f2
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405140
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x438130]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 0x40
lea ecx, [ebp - 0x84]
push ecx
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea eax, [ebp - 0x84]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405176
sub eax, edx
sar eax, 1
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x84]
push eax
push 1
push 0
push edi
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00419146
mov esp, ebp
pop ebp
ret 8

Function at 0x405330
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x405345
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x405350
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405350
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x405460
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427cde
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x438130]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor edx, edx
mov dword [ebp - 0x14], edx
test esi, esi
je 0x4054ac
mov eax, dword [esi]
lea ecx, [ebp - 0x14]
push ecx
push 0x42a488
push esi
call dword [eax]
mov edx, dword [ebp - 0x14]
xor ecx, ecx
test eax, eax
cmovs edx, ecx
mov dword [ebp - 0x14], edx
push edx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.004021a0
test eax, eax
jns 0x4054cd
push eax
call fcn.00402180
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
mov dword [esi + 0x28], eax
call fcn.00404520
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4054f6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [esi + 0x24]
push eax
push 0
push esi
push 0x4029b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x20], eax
test eax, eax
jne 0x4055ab
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
call fcn.00401f80
mov ecx, dword [0x43a9c4]
mov esi, eax
test cl, 1
jne 0x405567
or ecx, 1
mov dword [0x43a9c4], ecx
mov ecx, 0x43a990
mov byte [ebp - 4], 2
call fcn.004077e0
push 0x429090
call fcn.00418853
add esp, 4
mov byte [ebp - 4], 1
mov ecx, 0x43a990
call fcn.00408c40
test eax, eax
je 0x405591
push esi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push str.BitsJob:_failed_to_start_event_thread__0x_x_
push eax
mov dword [ebp - 0x18], 0xfffffffe
call fcn.00407b90
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.00404520
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4055c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427cde
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x438130]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor edx, edx
mov dword [ebp - 0x14], edx
test esi, esi
je 0x40560c
mov eax, dword [esi]
lea ecx, [ebp - 0x14]
push ecx
push 0x42a488
push esi
call dword [eax]
mov edx, dword [ebp - 0x14]
xor ecx, ecx
test eax, eax
cmovs edx, ecx
mov dword [ebp - 0x14], edx
push edx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.004021a0
test eax, eax
jns 0x40562d
push eax
call fcn.00402180
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
mov dword [esi + 0x38], eax
call fcn.00404520
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x405656
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 0x30]
test eax, eax
je 0x405674
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x30], 0
lea eax, [esi + 0x34]
push eax
push 0
push esi
push 0x405a00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x30], eax
test eax, eax
jne 0x405720
mov eax, dword [esi + 0x38]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
call fcn.00401f80
mov ecx, dword [0x43a9c4]
mov esi, eax
test cl, 1
jne 0x4056dc
or ecx, 1
mov dword [0x43a9c4], ecx
mov ecx, 0x43a990
mov byte [ebp - 4], 2
call fcn.004077e0
push 0x429090
call fcn.00418853
add esp, 4
mov byte [ebp - 4], 1
mov ecx, 0x43a990
call fcn.00408c40
test eax, eax
je 0x405706
push esi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push str.BitsJob:_failed_to_start_worker_thread__0x_x_
push eax
mov dword [ebp - 0x18], 0xfffffffe
call fcn.00407b90
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.00404520
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x405b40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405b55
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405b94
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x405b90
lea ebx, [ebx]
cmp esi, edx
jae 0x405b94
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x405b80
cmp esi, edx
jb 0x405b99
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x406d30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427cde
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x438130]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor edx, edx
mov dword [ebp - 0x14], edx
test esi, esi
je 0x406d7c
mov eax, dword [esi]
lea ecx, [ebp - 0x14]
push ecx
push 0x42a488
push esi
call dword [eax]
mov edx, dword [ebp - 0x14]
xor ecx, ecx
test eax, eax
cmovs edx, ecx
mov dword [ebp - 0x14], edx
push edx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.004021a0
test eax, eax
jns 0x406d9d
push eax
call fcn.00402180
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
mov dword [esi + 0x30], eax
call fcn.00404520
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x406dc6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 0x28]
test eax, eax
je 0x406de4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x28], 0
lea eax, [esi + 0x2c]
push eax
push 0
push esi
push 0x406f00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x28], eax
test eax, eax
jne 0x406e90
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
call fcn.00401f80
mov ecx, dword [0x43a9c4]
mov esi, eax
test cl, 1
jne 0x406e4c
or ecx, 1
mov dword [0x43a9c4], ecx
mov ecx, 0x43a990
mov byte [ebp - 4], 2
call fcn.004077e0
push 0x429090
call fcn.00418853
add esp, 4
mov byte [ebp - 4], 1
mov ecx, 0x43a990
call fcn.00408c40
test eax, eax
je 0x406e76
push esi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push 0x42b248
push eax
mov dword [ebp - 0x18], 0xfffffffe
call fcn.00407b90
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.00404520
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x407390
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
lea esi, [ecx + 4]
push esi
call edi
test eax, eax
je 0x4073b0
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov dword [ebp - 4], eax
lea esp, [esp]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call edi
test eax, eax
jne 0x4073e4
call ebx
sub eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jb 0x4073c0
pop ebx
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
pop ebx
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x408110
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427f93
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x438130]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
jne 0x408170
mov dword [esi + 8], 0
xor al, al
jmp 0x408252
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40819a
push 0
lea eax, [ebp - 0x74]
mov dword [ebp - 0x74], 0
push eax
push 2
push 0x42b8d4
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x90], 0
mov byte [ebp - 0x8c], 0
mov dword [ebp - 0x88], 2
mov dword [ebp - 0x94], vtable.ATL::CDacl.0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
lea eax, [ebp - 0x70]
mov dword [ebp - 4], 0
push eax
call fcn.0040a1c0
add esp, 4
push 0
push 0xc0010000
push eax
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.00407e00
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0
mov bl, al
call fcn.00407980
test bl, bl
je 0x408245
mov esi, dword [esi + 8]
test esi, esi
je 0x408245
push 0
lea ecx, [ebp - 0x94]
call fcn.00408e70
push eax
push 0
push 0
push 4
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebp - 0x94]
call fcn.004078f0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00419146
mov esp, ebp
pop ebp
ret

Function at 0x4094a0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428228
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x438130]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00403740
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4094e0
push 0x80004005
call fcn.00402180
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
push dword [eax + 8]
push dword [eax + 4]
lea eax, [ebp - 0x10]
push str._s__s_n
push eax
call fcn.00403470
mov esi, dword [ebp - 0x10]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409539
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x409550
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40961f
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40957f
cmp eax, 0x80
jne 0x40961f
push ebx
push edi
push 2
push 0
push 0
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov edi, dword [ebx + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
test edi, edi
je 0x4095cd
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0xfffffffffffffffe
push edi
call fcn.0040a070
test eax, eax
js 0x4095cd
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push edi
push dword [esi + 8]
call ebx
mov edi, dword [ebp + 8]
mov edi, dword [edi + 8]
test edi, edi
je 0x4095fd
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push 0xfffffffffffffffe
push edi
call fcn.0040a070
test eax, eax
js 0x4095fd
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push edi
push dword [esi + 8]
call ebx
push 0
lea eax, [ebp - 4]
push eax
push 4
push 0x42aa9c
push dword [esi + 8]
call ebx
mov eax, dword [esi + 0xc]
pop edi
pop ebx
test eax, eax
je 0x40961f
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40a680
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea esi, [eax + 4]
test esi, esi
je 0x40a6df
mov ebx, dword [ebp + 0xc]
lea edi, [ebx + 4]
test edi, edi
je 0x40a6df
cmp byte [eax + 0x48], 0
je 0x40a6df
push esi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
setne al
test al, al
je 0x40a6df
cmp byte [ebx + 0x48], 0
je 0x40a6df
push edi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
setne al
test al, al
je 0x40a6df
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
pop edi
setne cl
xor eax, eax
test cl, cl
pop esi
sete al
pop ebx
pop ebp
ret
xor cl, cl
xor eax, eax
pop edi
test cl, cl
pop esi
sete al
pop ebx
pop ebp
ret
Function at 0x40b000
Capabilities:
Create process on windows
Impersonate user

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x438130]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0x20]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x7c], eax
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0x14]
test ebx, ebx
je 0x40b1be
test edi, edi
je 0x40b1be
lea ecx, [ebp - 0x64]
call fcn.0040a380
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x88]
push ecx
push 4
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x68], eax
push ecx
push 8
push eax
mov dword [ebp - 0x6c], 1
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x40b0da
cmp dword [ebp - 0x6c], 1
je 0x40b0a4
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], 0
push eax
push 1
push 2
push 0
push 0xb
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x40b0da
cmp byte [ebp + 0x1c], 0
je 0x40b14d
cmp dword [esi + 8], 0
jne 0x40b14d
push 0
push 1
lea eax, [ebp - 0x64]
mov ecx, esi
push eax
call fcn.0040a210
test al, al
jne 0x40b0f9
cmp dword [ebp - 0x6c], 1
je 0x40b0da
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
lea ecx, [ebp - 0x64]
call fcn.00407980
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419146
mov esp, ebp
pop ebp
ret 0x28
mov eax, dword [ebp - 0x14]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0xa8], xmm0
mov dword [ebp - 0xa8], 0x20
movdqu xmmword [ebp - 0x98], xmm0
cmp dword [eax - 0xc], 0
jne 0x40b12a
lea ecx, [ebp - 0x64]
call fcn.0040bc90
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0xa8]
push eax
push dword [ebp - 0x68]
call dword [sym.imp.USERENV.dll_LoadUserProfileW]
test eax, eax
je 0x40b14d
mov eax, dword [ebp - 0x8c]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x28]
movzx esi, al
lea eax, [ebp - 0x70]
push esi
push dword [ebp - 0x68]
push eax
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x40b0da
push ebx
push edi
push dword [ebp - 0x7c]
push dword [ebp - 0x70]
push dword [ebp + 0x18]
push esi
push dword [ebp - 0x80]
push dword [ebp - 0x74]
push dword [ebp - 0x84]
push dword [ebp - 0x78]
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x6c], 1
mov edi, eax
je 0x40b1a5
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x70]
call sub.USERENV.dll_DestroyEnvironmentBlock
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
setne bl
jmp 0x40b0dc
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419146
mov esp, ebp
pop ebp
ret 0x28