joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432440
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov ebx, dword [esi]
test ebx, ebx
je 0x4324de
push edi
mov edi, dword [esp + 0x1c]
mov ecx, edi
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
push 0
lea eax, [esp + 0x14]
push eax
push 0
call fcn.004125d0
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call ebx
test eax, eax
jne 0x4324be
cmp dword [esp + 0xc], 4
jne 0x4324d9
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 4
push eax
lea eax, [esp + 0x18]
mov ecx, edi
push eax
lea eax, [esp + 0x14]
push eax
push 0
call fcn.004125d0
push eax
push dword [esi]
call ebx
test eax, eax
je 0x4324d9
push 4
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x14]
jmp 0x4324c7
push 4
lea eax, [esp + 0x24]
push eax
push 4
push 0
mov ecx, edi
call fcn.004125d0
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8

Function at 0x4324f0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x404]
sub esp, 0x404
push 0xffffffffffffffff
push 0x57c569
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x634384]
xor eax, ebp
mov dword [ebp + 0x400], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 0x40c]
mov eax, dword [ebp + 0x410]
mov edi, dword [ebp + 0x414]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], 0
cmp dword [ebx], 0
mov dword [ebp - 0x10], eax
jne 0x43255c
push edi
mov ecx, esi
call fcn.004128b0
jmp 0x4325f9
lea ecx, [ebp - 0x18]
push ecx
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
mov ecx, eax
call fcn.004125d0
push eax
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4325cc
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x43258e
cmp eax, 7
je 0x43258e
cmp eax, 2
jne 0x4325f1
mov eax, dword [ebp - 0x18]
cmp eax, 0x400
jae 0x4325f1
test eax, eax
je 0x4325cc
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
call fcn.004125d0
push eax
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4325cc
lea eax, [ebp]
mov ecx, esi
push eax
call fcn.00412850
jmp 0x4325f9
mov ecx, edi
call fcn.00413610
push eax
mov ecx, edi
call fcn.004125d0
mov ecx, dword [ebp - 0x10]
push eax
push 1
push 0
call fcn.004125d0
push eax
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push edi
mov ecx, esi
call fcn.004128b0
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x400]
xor ecx, ebp
call fcn.005395e6
lea esp, [ebp + 0x404]
pop ebp
ret 0xc
Function at 0x432630
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xffffffffffffffff
push 0x57c5b9
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x634384]
xor eax, ebp
mov dword [ebp + 0x800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 0x80c]
mov eax, dword [ebp + 0x810]
mov edi, dword [ebp + 0x814]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], 0
cmp dword [ebx], 0
mov dword [ebp - 0x10], eax
jne 0x43269c
push edi
mov ecx, esi
call fcn.00432a90
jmp 0x432744
lea ecx, [ebp - 0x18]
push ecx
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
mov ecx, eax
call fcn.0041ba50
push eax
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x432715
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x4326ce
cmp eax, 7
je 0x4326ce
cmp eax, 2
jne 0x43273c
mov eax, dword [ebp - 0x18]
cmp eax, 0x400
jae 0x43273c
test eax, eax
je 0x43270c
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
call fcn.0041ba50
push eax
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43270c
lea eax, [ebp]
mov ecx, esi
push eax
call fcn.0041bac0
jmp 0x432744
mov ecx, edi
call fcn.0041bbd0
jmp 0x43271e
mov ecx, edi
call fcn.0041bbd0
add eax, eax
push eax
mov ecx, edi
call fcn.0041ba50
mov ecx, dword [ebp - 0x10]
push eax
push 1
push 0
call fcn.0041ba50
push eax
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
mov ecx, esi
call fcn.00432a90
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.005395e6
lea esp, [ebp + 0x804]
pop ebp
ret 0xc
Function at 0x432780
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57c618
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x634384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebx]
test esi, esi
jne 0x4327c7
lea eax, [esi + 6]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
xor edi, edi
mov dword [ebp - 0x14], 0
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0
push eax
push edi
call fcn.004125d0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4328a6
cmp dword [ebp - 0x14], 3
jne 0x43289f
push 0x64f17e
push dword [ebp - 0x10]
call fcn.00539950
mov esi, eax
mov dword [ebp - 0x1c], vtable.Utils::ResourceHolders::resource_t_unsigned_char___struct_Utils::ResourceHolders::arr_dtor_t_unsigned_char___struct_Utils::ResourceHolders::puredrop_and_null_t_unsigned_char___struct_Utils::ResourceHolders::arr_dtor_t_unsigned_char___.0
add esp, 8
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], 0x5bc7bc
mov dword [ebp - 4], 1
mov dword [ebp - 0x1c], 0x5bc7c4
mov dword [ebp - 4], 2
test esi, esi
je 0x432874
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
push esi
push edi
push edi
call fcn.004125d0
push eax
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x432870
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ebp - 0x10]
mov dword [ecx], eax
jmp 0x432879
mov edi, eax
jmp 0x43287b
mov edi, 8
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1c], vtable.Utils::ResourceHolders::resource_t_unsigned_char___struct_Utils::ResourceHolders::arr_dtor_t_unsigned_char___struct_Utils::ResourceHolders::puredrop_and_null_t_unsigned_char___struct_Utils::ResourceHolders::arr_dtor_t_unsigned_char___.0
test esi, esi
je 0x432896
push esi
call fcn.00539650
add esp, 4
mov dword [ebp - 0x18], 0
jmp 0x4328ab
mov edi, 0xd
jmp 0x4328ab
mov edi, 2
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x432990
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [ecx]
test esi, esi
jne 0x43299e
lea eax, [esi + 6]
pop esi
ret 0xc
push dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push dword [esp + 0x10]
push 3
push 0
call fcn.004125d0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
ret 0xc
Function at 0x43cf00
Capabilities:
Get file attributes

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x14]
mov ecx, esi
call fcn.0041ba50
test eax, eax
jne 0x43cf18
xor bl, bl
jmp 0x43cf2d
push 8
push str.device_
push eax
call fcn.0055cb37
add esp, 0xc
test eax, eax
sete bl
mov ecx, esi
call fcn.0041ba50
mov esi, eax
test bl, bl
je 0x43cf64
call fcn.00446030
push 0
lea ecx, [esp + 0x10]
push ecx
push 0
push esi
mov ecx, eax
call fcn.00453270
mov ecx, dword [esp + 0xc]
or edx, 0xffffffff
test eax, eax
cmovne ecx, edx
mov eax, ecx
pop esi
pop ebx
add esp, 8
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop esi
pop ebx
add esp, 8
ret
Function at 0x440580
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5ff730
push 0x552340
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x634384]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx], 0
je 0x44064e
xor ecx, ecx
mov edi, dword [ebp + 0x10]
mov eax, edi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00539947
add esp, 4
mov esi, eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0
xor ecx, ecx
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x1c], ecx
cmp ecx, edi
jge 0x440600
add edx, 4
mov dword [ebp + 0x14], edx
mov eax, dword [edx - 4]
mov dword [esi + ecx*4], eax
inc ecx
jmp 0x4405ea
mov eax, dword [ebp + 8]
sub eax, 0
je 0x440627
sub eax, 1
je 0x440620
sub eax, 1
je 0x440619
mov eax, 1
jmp 0x440629
mov eax, 2
jmp 0x440629
mov eax, 4
jmp 0x440629
xor eax, eax
mov dword [ebp + 0x10], eax
push 0
push esi
push 0
push edi
push 0
push dword [ebp + 0xc]
push 0
push eax
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
mov dword [ebp - 4], 0xfffffffe
call fcn.00440665
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x440680
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57e180
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x634384]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x68], eax
cmp dword [edi + 8], 0
je 0x440824
mov dword [ebp - 0x64], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
sub eax, 0
je 0x4406ee
sub eax, 1
je 0x4406ee
sub eax, 1
je 0x4406e7
mov esi, 0x202010
jmp 0x4406f3
mov esi, 0x202030
jmp 0x4406f3
mov esi, 0x202040
lea eax, [ebp - 0x68]
push eax
push 0
lea eax, [ebp - 0x64]
push eax
push 0
push dword [ebp + 0xc]
push 0
push 0x900
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ecx, dword [ebp - 0x64]
test ecx, ecx
je 0x44071a
mov byte [eax + ecx], 0
lea ecx, [ebp - 0x2c]
call fcn.00412890
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x440736
cmp byte [eax], 0
jne 0x4407f3
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
mov dword [ebp - 0x6c], eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
mov dword [ebp - 0x70], eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 0x74], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx eax, ax
mov dword [ebp - 0x78], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov dword [ebp - 0x7c], eax
push str.Cannot_retrieve_message_text_for_error__d_._r_nSystem_LCID_0x_lx___language_0x_lx_._r_nUser_LCID_0x_lx___language_0x_lx_._r_nThread_LCID_0x_lx_.
lea ecx, [ebp - 0x60]
call fcn.004343a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp + 0xc]
push ecx
mov ecx, eax
call fcn.00440ae0
mov ecx, eax
call fcn.00440d50
mov ecx, eax
call fcn.00440fc0
mov ecx, eax
call fcn.00440d50
mov ecx, eax
call fcn.00440fc0
mov ecx, eax
call fcn.00440d50
mov ecx, eax
call fcn.00434790
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x2c]
call fcn.00439330
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.004100d0
mov byte [ebp - 4], 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
call fcn.0041ba60
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x4407fc
cmp byte [eax], 0
jne 0x440804
lea ecx, [ebp - 0x2c]
call fcn.004125d0
push esi
push dword [edi + 8]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004100d0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005395e6
mov esp, ebp
pop ebp
ret 0x10
Function at 0x443870
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
push edi
mov edi, ecx
cmp dword [edi + 8], 0
jne 0x443886
cmp dword [edi + 0xc], 0
je 0x4438ce
push 1
sub esp, 8
lea ecx, [edi + 0x2c]
call fcn.00446e40
cmp edx, dword [edi + 0xc]
jb 0x4438ce
ja 0x44389f
cmp eax, dword [edi + 8]
jb 0x4438ce
push 0
sub esp, 8
lea ecx, [edi + 0x2c]
call fcn.00446e40
mov eax, dword [edi + 0x2c]
mov edx, dword [eax + 4]
cmp eax, vtable.Utils::Primitives::CDwFile.0
jne 0x4438d4
mov eax, dword [edi + 0x30]
test eax, eax
je 0x4438ce
cmp eax, 0xffffffff
je 0x4438ce
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0x2c]
call edx
test al, al
jmp 0x4438c3
Function at 0x446200
Capabilities:
Persist via run registry key
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x108]
sub esp, 0x108
push 0xffffffffffffffff
push 0x57f049
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x634384]
xor eax, ebp
mov dword [ebp + 0x104], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x110]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], 0
call fcn.00455e30
test eax, eax
je 0x44626f
mov eax, dword [0x651df0]
and eax, 0x7fff0000
cmp eax, 0x2230000
je 0x446268
cmp eax, 0x2130000
jne 0x44626f
mov eax, 0xf013f
jmp 0x446274
mov eax, 0xf003f
lea ecx, [ebp - 0x10]
push ecx
push eax
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4462d1
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x104
push eax
lea eax, [ebp]
push eax
push 0
push 0
push str.Common_AppData
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4462c8
push 0x104
lea eax, [ebp]
push eax
push str.PROGRAMDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp]
mov ecx, esi
push eax
call fcn.00412850
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.005395e6
lea esp, [ebp + 0x108]
pop ebp
ret

Function at 0x446df0
Capabilities:
Get file size

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 4]
cmp eax, vtable.Utils::Primitives::CDwFile.0
jne 0x446e37
mov eax, dword [esi + 4]
test eax, eax
je 0x446e2e
cmp eax, 0xffffffff
je 0x446e2e
lea eax, [esp + 4]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
jne 0x446e2e
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
pop esi
add esp, 8
ret
xor eax, eax
xor edx, edx
pop esi
add esp, 8
ret
call edx
test al, al
jmp 0x446e0c
Function at 0x446ed0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57f388
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x634384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0055c5b8
push 4
mov dword [esi], vtable.Utils::Primitives::CDwHandleX_class_Utils::Primitives::SimpleHandleCloser_.0
mov dword [esi + 4], eax
call fcn.00539040
add esp, 0x1c
mov dword [eax], 1
mov dword [esi + 8], eax
mov dword [ebp - 4], 0
mov eax, dword [esi + 4]
mov dword [esi], vtable.Utils::Primitives::CDwThread.0
test eax, eax
je 0x446f4b
cmp eax, 0xffffffff
je 0x446f4b
mov al, 1
jmp 0x446f4d
xor al, al
test al, al
je 0x446f6c
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x18
push str.Unable_to_create_thread
lea ecx, [ebp - 0x1c]
call fcn.00410660
push 0x630794
lea eax, [ebp - 0x1c]
push eax
call fcn.005510b1
int3

Function at 0x447090
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57f418
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x634384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0055c5b8
mov edi, eax
mov dword [ebp - 0x18], vtable.Utils::Primitives::CDwHandleX_class_Utils::Primitives::SimpleHandleCloser_.0
push 4
mov dword [ebp - 0x14], edi
call fcn.00539040
mov ebx, eax
add esp, 0x1c
mov dword [ebp - 0x10], ebx
mov dword [ebx], 1
mov dword [ebp - 4], 0
mov ecx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp dword [esi + 4], edi
je 0x44714a
push dword [esi + 8]
call ecx
test eax, eax
jne 0x447137
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 4]
call eax
test al, al
je 0x44712a
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
push 4
push dword [esi + 8]
call fcn.00539070
add esp, 8
push ebx
mov dword [esi + 4], edi
mov dword [esi + 8], ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov dword [ebp - 4], 0xffffffff
push ebx
mov dword [ebp - 0x18], vtable.Utils::Primitives::CDwHandleX_class_Utils::Primitives::SimpleHandleCloser_.0
call ecx
test eax, eax
jne 0x44718b
test edi, edi
je 0x44716c
cmp edi, 0xffffffff
je 0x44716c
mov al, 1
jmp 0x44716e
xor al, al
test al, al
je 0x447180
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 0
push 4
push ebx
call fcn.00539070
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x447230
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [ecx + 4]
test eax, eax
je 0x44724a
cmp eax, 0xffffffff
je 0x44724a
push dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
ret 4
xor eax, eax
ret 4

Function at 0x447250
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [ecx + 4]
test eax, eax
je 0x447264
cmp eax, 0xffffffff
je 0x447264
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
ret
or eax, 0xffffffff
ret

Function at 0x447270
Capabilities:
Resume thread

Disassembly:
mov eax, dword [ecx + 4]
test eax, eax
je 0x447284
cmp eax, 0xffffffff
je 0x447284
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
ret
or eax, 0xffffffff
ret
Function at 0x448f90
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57faf8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x634384]
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 edi, dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jae 0x448fcf
mov al, 1
jmp 0x4490ae
mov eax, dword [edi]
mov edx, dword [eax + 4]
cmp eax, vtable.Utils::Primitives::CDwToken.0
jne 0x449164
mov eax, dword [edi + 4]
test eax, eax
je 0x449036
cmp eax, 0xffffffff
je 0x449036
lea ecx, [ebp - 0x28]
call fcn.00412890
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00413610
mov ecx, eax
cmp ecx, 0x44
jb 0x44903a
lea ecx, [ebp - 0x28]
call fcn.00410120
mov byte [ebp - 0x29], 0
cmp dword [eax + 0x14], 0x10
mov dword [eax + 0x10], 0x44
jb 0x449024
mov eax, dword [eax]
lea ecx, [ebp - 0x29]
add eax, 0x44
push ecx
push eax
call fcn.0040ff20
add esp, 8
jmp 0x44904c
xor al, al
jmp 0x4490ae
mov eax, 0x44
sub eax, ecx
lea ecx, [ebp - 0x28]
push 0
push eax
call fcn.00433260
lea ecx, [ebp - 0x28]
call fcn.00413610
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x30]
push eax
call fcn.004125d0
push eax
push 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
lea ecx, [ebp - 0x28]
test eax, eax
jne 0x4490ca
call fcn.00410120
mov byte [ebp - 0x29], 0
cmp dword [eax + 0x14], 0x10
mov dword [eax + 0x10], 0
jb 0x44908e
mov eax, dword [eax]
lea ecx, [ebp - 0x29]
push ecx
push eax
call fcn.0040ff20
add esp, 8
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004100d0
mov al, bl
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.005395e6
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x30]
call fcn.00413610
lea ecx, [ebp - 0x28]
cmp esi, eax
ja 0x4490fe
call fcn.00410120
mov byte [ebp - 0x29], 0
cmp dword [eax + 0x14], 0x10
mov dword [eax + 0x10], esi
jb 0x4490ed
mov eax, dword [eax]
lea ecx, [ebp - 0x29]
add eax, esi
push ecx
push eax
call fcn.0040ff20
add esp, 8
jmp 0x449108
push 0
sub esi, eax
push esi
call fcn.00433260
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x34], 0x20
call fcn.004125d0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x38], eax
call fcn.00413610
mov edx, dword [edi + 0xc]
lea ecx, [edi + 0xc]
lea esi, [eax + 8]
mov edx, dword [edx]
call edx
test al, al
je 0x44909b
push esi
lea eax, [ebp - 0x38]
push eax
mov eax, dword [edi + 0xc]
lea ecx, [edi + 0xc]
push 0x19
call dword [eax + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x44909b
mov bl, 1
jmp 0x44909d
mov ecx, edi
call edx
test al, al
jne 0x448feb
jmp 0x449036
Function at 0x44c2e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5806c1
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x634384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x30]
push esi
push dword [ebp + 0x2c]
mov dword [ebp - 0x10], 0
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, 1
jne 0x44c389
mov eax, dword [esi]
mov esi, dword [ebp + 8]
push 4
mov dword [esi], vtable.Utils::Primitives::CDwHandleX_class_Utils::Primitives::SimpleHandleCloser_.0
mov dword [esi + 4], eax
call fcn.00539040
add esp, 4
mov dword [eax], 1
mov dword [esi + 8], eax
mov dword [ebp - 4], 1
mov dword [esi], vtable.Utils::Primitives::CDwProcess.0
mov byte [esi + 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push str.Unable_to_create_process
lea ecx, [ebp - 0x1c]
call fcn.00410660
push 0x630794
lea eax, [ebp - 0x1c]
push eax
call fcn.005510b1
int3

Function at 0x44c3b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x580701
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x634384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x30]
push esi
push dword [ebp + 0x2c]
mov dword [ebp - 0x10], 0
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, 1
jne 0x44c459
mov eax, dword [esi]
mov esi, dword [ebp + 8]
push 4
mov dword [esi], vtable.Utils::Primitives::CDwHandleX_class_Utils::Primitives::SimpleHandleCloser_.0
mov dword [esi + 4], eax
call fcn.00539040
add esp, 4
mov dword [eax], 1
mov dword [esi + 8], eax
mov dword [ebp - 4], 1
mov dword [esi], vtable.Utils::Primitives::CDwProcess.0
mov byte [esi + 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push str.Unable_to_create_process
lea ecx, [ebp - 0x1c]
call fcn.00410660
push 0x630794
lea eax, [ebp - 0x1c]
push eax
call fcn.005510b1
int3