joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ea5d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor ebx, ebx
lea edi, [ebp - 0x14]
xor eax, eax
mov dword [ebp - 8], ebx
stosd dword es:[edi], eax
mov esi, ebx
push ebx
push ebx
push 1
stosd dword es:[edi], eax
push ebx
mov dword [ebp - 4], ebx
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 8], eax
test eax, eax
jne 0x41eac7
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x33
push str.uithread.cpp
call fcn.00403b3b
push str.Failed_to_create_initialization_event.
push esi
call fcn.00440564
mov eax, dword [ebp - 4]
pop ecx
pop ecx
jmp 0x41eb3f
mov edi, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push 0x41e79b
push ebx
push ebx
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
test eax, eax
jne 0x41eb22
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x3c
push str.uithread.cpp
call fcn.00403b3b
push str.Failed_to_create_the_UI_thread.
jmp 0x41eaba
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 8]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov eax, dword [ebp - 4]
mov dword [edi + 0x3e4], eax
mov eax, ebx
mov dword [ebp - 4], eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41eb4f
push eax
call edi
mov dword [ebp - 4], ebx
cmp dword [ebp - 8], ebx
je 0x41eb59
push dword [ebp - 8]
call edi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x42163a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
or dword [edi + 0x3c], 0xffffffff
lea eax, [edi + 0x1c]
push eax
call fcn.004024b5
mov esi, eax
test esi, esi
jns 0x421666
push str.Failed_to_copy_file_name.
jmp 0x421752
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push 1
push ebx
call esi
mov dword [edi + 0x24], eax
test eax, eax
jne 0x4216b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x8c
push str.cabextract.cpp
call fcn.00403b3b
push str.Failed_to_create_begin_operation_event.
jmp 0x421752
push ebx
push ebx
push 1
push ebx
call esi
mov dword [edi + 0x28], eax
test eax, eax
jne 0x4216f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x8f
push str.cabextract.cpp
call fcn.00403b3b
push str.Failed_to_create_operation_complete_event.
jmp 0x421752
push ebx
push ebx
push edi
push 0x420ff9
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x20], eax
test eax, eax
jne 0x421741
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x93
push str.cabextract.cpp
call fcn.00403b3b
push str.Failed_to_create_extraction_thread.
jmp 0x421752
push edi
call fcn.004213da
mov esi, eax
test esi, esi
jns 0x42175a
push str.Failed_to_wait_for_operation_complete.
push esi
call fcn.00440564
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x426acf
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x46a008]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
xor eax, eax
push esi
push edi
push 7
pop ecx
lea edi, [ebp - 0x20]
xor esi, esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x426b3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x1fc
push str.msuengine.cpp
call fcn.00403b3b
push str.Failed_to_stop_wusa_service.
push esi
call fcn.00440564
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0042df6e
mov esp, ebp
pop ebp
ret 4
Function at 0x429b8d
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], esi
mov ebx, 0x44b524
mov eax, dword [edi + 4]
test eax, eax
je 0x429bac
mov edx, dword [eax]
jmp 0x429bb9
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x429bb7
mov edx, dword [ecx]
jmp 0x429bb9
mov edx, ebx
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x429bc2
mov ebx, dword [ecx]
test eax, eax
je 0x429bd4
xor eax, eax
test ecx, ecx
setne al
add eax, 0x20000150
jmp 0x429be2
cmp dword [edi + 8], esi
mov eax, 0x2000014f
lea ecx, [eax + 3]
cmovne eax, ecx
push dword [ebp + 0xc]
push str.copy
push ebx
push edx
push eax
push 2
call fcn.00405864
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
add esp, 0x18
push eax
push ebx
call fcn.00444718
test eax, eax
je 0x429c60
mov eax, dword [ebp - 4]
test al, 1
je 0x429c60
and eax, 0xfffffffe
push eax
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x429c60
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x538
push str.apply.cpp
call fcn.00403b3b
push ebx
push str.Failed_to_clear_readonly_bit_on_payload_destination_path:__ls
push esi
call fcn.00440564
add esp, 0xc
jmp 0x429cde
push esi
lea eax, [edi + 0x20]
push eax
push edi
push fcn.00429a72
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x429cde
cmp dword [edi + 0x20], esi
je 0x429c9e
mov esi, 0x80070642
push esi
push 0x542
push str.apply.cpp
call fcn.00403b3b
push ebx
push dword [ebp + 0xc]
push str.BA_aborted_copy_of_payload_from:__ls_to:__ls.
jmp 0x429cd5
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x546
push str.apply.cpp
call fcn.00403b3b
push ebx
push dword [ebp + 0xc]
push str.Failed_attempt_to_copy_payload_from:__ls_to:__ls.
push esi
call fcn.00440564
add esp, 0x10
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42a155
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
and dword [ebp - 4], 0
mov eax, 0x44b524
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 8], eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x42a178
mov eax, dword [ecx]
jmp 0x42a181
mov edx, dword [esi + 8]
test edx, edx
je 0x42a181
mov eax, dword [edx]
mov edx, dword [esi + 0xc]
mov dword [ebp + 8], eax
test edx, edx
je 0x42a190
mov eax, dword [edx]
mov dword [ebp - 8], eax
lea ebx, [ecx + 0x2c]
test ecx, ecx
jne 0x42a1d0
mov eax, dword [edx + 0x10]
lea ebx, [edx + 0x40]
mov dword [ebp - 0x10], eax
mov eax, dword [edx + 0x14]
and dword [ebp - 0x18], 0
lea edi, [ebp - 0x24]
and dword [ebp - 0x14], 0
mov dword [ebp - 0xc], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
test ecx, ecx
je 0x42a1db
xor eax, eax
test edx, edx
setne al
add eax, 0x20000150
jmp 0x42a1ea
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + 0x1c]
jmp 0x42a1a3
cmp dword [esi + 8], 0
mov eax, 0x2000014f
lea ecx, [eax + 3]
cmovne eax, ecx
push dword [ebx]
push str.download
push dword [ebp - 8]
push dword [ebp + 8]
push eax
push 2
call fcn.00405864
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 4]
add esp, 0x18
push eax
push edi
call fcn.00444718
test eax, eax
je 0x42a26e
mov eax, dword [ebp - 4]
test al, 1
je 0x42a26e
and eax, 0xfffffffe
push eax
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x42a26e
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x568
push str.apply.cpp
call fcn.00403b3b
push edi
push str.Failed_to_clear_readonly_bit_on_payload_destination_path:__ls
push esi
call fcn.00440564
add esp, 0xc
jmp 0x42a317
and dword [ebp - 0x20], 0
mov dword [ebp - 0x24], fcn.00429a72
mov dword [ebp - 0x1c], esi
mov eax, dword [ebx]
push 0x62
pop ecx
cmp cx, word [eax]
jne 0x42a2cd
push 0x69
pop ecx
cmp cx, word [eax + 2]
jne 0x42a2cd
push 0x74
pop ecx
cmp cx, word [eax + 4]
jne 0x42a2cd
push 0x73
pop edx
cmp dx, word [eax + 6]
jne 0x42a2cd
movzx ecx, word [eax + 8]
mov dword [ebp + 0xc], 0x3a
cmp word [ebp + 0xc], cx
je 0x42a2c0
cmp dx, cx
jne 0x42a2cd
mov ecx, dword [ebp + 0xc]
cmp cx, word [eax + 0xa]
jne 0x42a2cd
push edi
push ebx
lea eax, [ebp - 0x24]
push eax
call fcn.0042dd44
jmp 0x42a300
mov eax, dword [esi]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x18], 0x42998b
push eax
push edi
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push ebx
call fcn.00446734
mov esi, eax
test esi, esi
jns 0x42a317
push edi
push dword [ebx]
push str.Failed_attempt_to_download_URL:__ls_to:__ls
push esi
call fcn.00440564
add esp, 0x10
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x43fd95
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.0044a2e0
mov eax, dword [0x46a008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1014], eax
xor eax, eax
push 0x1000
push eax
mov esi, eax
mov dword [ebp - 0x1010], eax
mov dword [ebp - 0x1008], eax
mov dword [ebp - 0x100c], eax
lea eax, [ebp - 0x1004]
push eax
call fcn.0042f820
add esp, 0xc
lea eax, [ebp - 0x1010]
push 0xf0000040
push dword [ebp + 0xc]
push esi
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x43fe2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0xd3
jmp 0x43fee4
lea eax, [ebp - 0x1008]
push eax
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x1010]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x43fea0
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0xd9
jmp 0x43fee4
push 0
cmp dword [ebp - 0x100c], esi
je 0x43ff55
push dword [ebp - 0x100c]
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x1008]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x43ff2f
push 0
lea eax, [ebp - 0x100c]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43fe71
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0xe1
push str.cryputil.cpp
call fcn.00403b3b
cmp dword [ebp - 0x1008], 0
je 0x43ff03
push dword [ebp - 0x1008]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x1010], 0
je 0x43ff1a
push 0
push dword [ebp - 0x1010]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042df6e
mov esp, ebp
pop ebp
ret 0x18
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0xec
jmp 0x43fee4
lea eax, [ebp + 0x18]
push eax
push dword [ebp - 0x1014]
push 2
push dword [ebp - 0x1008]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x43ff9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0xf3
jmp 0x43fee4
test ebx, ebx
je 0x43feee
push 1
push ebx
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x43feee
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0xfa
jmp 0x43fee4
Function at 0x43ffe2
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46b628
push str.AdvApi32.dll
call fcn.00403b3e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x440025
push str.SystemFunction040
push dword [0x46b628]
call edi
push str.SystemFunction041
push dword [0x46b628]
mov dword [0x46b630], eax
call edi
mov dword [0x46b634], eax
jmp 0x44002a
mov eax, dword [0x46b634]
cmp dword [0x46b630], 0
je 0x44003b
test eax, eax
jne 0x4400e2
push 0x46b62c
push str.Crypt32.dll
call fcn.00403b3e
mov esi, eax
test esi, esi
js 0x4400ec
push str.CryptProtectMemory
push dword [0x46b62c]
call edi
cmp dword [0x46b630], 0
mov dword [0x46b638], eax
jne 0x4400a0
test eax, eax
jne 0x4400a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x28
push str.cryputil.cpp
call fcn.00403b3b
jmp 0x4400ec
push str.CryptUnprotectMemory
push dword [0x46b62c]
call edi
cmp dword [0x46b634], 0
mov dword [0x46b63c], eax
jne 0x4400e2
test eax, eax
jne 0x4400e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x2d
jmp 0x440094
mov dword [0x46b640], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x440625
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x46a008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [str.unknown]
mov eax, 0x104
push edi
push eax
mov dword [ebp - 0x424], eax
xor ebx, ebx
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x420], ebx
push eax
push ebx
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x418], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, 0x208
test eax, eax
jne 0x440689
push edi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0042f820
add esp, 0xc
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00444d35
test eax, eax
jns 0x4406b3
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x41c], ebx
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x4406d9
lea eax, [ebp - 0x414]
mov byte [eax], bl
inc eax
sub edi, 1
jne 0x4406d1
push ebx
lea eax, [ebp - 0x418]
push eax
call fcn.0044896b
push dword [ebp - 0x418]
push str._Logging_started:__ls_
push 2
pop edi
push edi
call fcn.00440a4f
mov ecx, dword [ebp - 0x41c]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
mov ecx, dword [ebp - 0x420]
movzx eax, cx
push eax
shr ecx, 0x10
lea eax, [ebp - 0x20c]
push ecx
push eax
push str.Executable:__ls_v_d._d._d._d
push edi
call fcn.00440a4f
lea eax, [ebp - 0x414]
push eax
push str.Computer__:__ls
push edi
call fcn.00440a4f
mov eax, dword [0x46a7b8]
add esp, 0x34
sub eax, ebx
je 0x44077a
sub eax, 1
je 0x440772
sub eax, 1
je 0x44076a
sub eax, 1
je 0x440762
sub eax, 1
jne 0x440780
mov esi, dword [str.debug]
jmp 0x440780
mov esi, dword [str.verbose]
jmp 0x440780
mov esi, dword [str.standard]
jmp 0x440780
mov esi, dword [str.warning]
jmp 0x440780
mov esi, dword [str.none]
push esi
push str.____logging_level:__hs____
push edi
call fcn.00440a4f
add esp, 0xc
cmp dword [ebp - 0x418], 0
pop edi
pop esi
pop ebx
je 0x4407a6
push dword [ebp - 0x418]
call fcn.0040296f
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0042df6e
mov esp, ebp
pop ebp
ret

Function at 0x440a8d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
xor edi, edi
and dword [ebp - 4], esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [0x46a7b4]
mov dword [ebp + 8], eax
cmp ecx, 0xffffffff
jne 0x440ac9
push edi
push ebx
push 0x46b648
call fcn.00402694
mov esi, eax
test esi, esi
js 0x440b1f
xor esi, esi
jmp 0x440b1f
test eax, eax
je 0x440b1f
push 0
lea edx, [ebp - 4]
sub eax, edi
push edx
push eax
lea eax, [edi + ebx]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x440afd
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x440b0f
add edi, dword [ebp - 4]
mov eax, dword [ebp + 8]
cmp edi, eax
jae 0x440b1f
mov ecx, dword [0x46a7b4]
jmp 0x440acd
push esi
push 0x310
push str.logutil.cpp
call fcn.00403b3b
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x440c62
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x58]
push 0x44
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0042f820
xor eax, eax
lea edi, [ebp - 0x14]
cmp dword [ebp + 0xc], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, 0x44b524
cmovne eax, dword [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 4]
push str.__ls___ls
push eax
call fcn.00402232
mov esi, eax
add esp, 0x1c
test esi, esi
js 0x440d14
mov cx, word [ebp + 0x10]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x58], 0x44
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 4]
mov word [ebp - 0x28], cx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x440d09
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x9e
push str.procutil.cpp
call fcn.00403b3b
jmp 0x440d14
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x14], ebx
mov dword [eax], ecx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], ebx
je 0x440d27
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
je 0x440d34
push dword [ebp - 0x14]
call edi
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 4], ebx
je 0x440d41
push dword [ebp - 4]
call fcn.0040296f
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x443d5c
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x46a008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
xor ebx, ebx
mov word [ebp - 8], 0x500
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call fcn.00443eea
cmp dword [ebp - 0x14], ebx
je 0x443d98
mov dword [esi], 1
jmp 0x443dcc
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [esi], eax
test eax, eax
je 0x443dcc
push esi
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x443dcc
mov dword [esi], ebx
cmp dword [ebp - 0x10], 0
pop esi
pop ebx
je 0x443ddc
push dword [ebp - 0x10]
call fcn.0040296f
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0042df6e
mov esp, ebp
pop ebp
ret 4
Function at 0x443dee
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x46a008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x120]
push edi
mov edi, dword [ebp + 0xc]
mov ebx, 0x11c
push ebx
push 0
push eax
call fcn.0042f820
mov eax, dword [0x46b724]
add esp, 0xc
test eax, eax
jne 0x443ece
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
movzx ecx, word [ebp - 0xc]
movzx eax, word [ebp - 0xa]
shl ecx, 0x10
push 4
or ecx, eax
pop edx
mov dword [0x46b728], ecx
cmp dword [ebp - 0x11c], edx
jne 0x443e64
xor eax, eax
inc eax
jmp 0x443ec9
cmp dword [ebp - 0x11c], 5
jne 0x443e8f
mov ecx, dword [ebp - 0x118]
test ecx, ecx
jne 0x443e7b
push 2
jmp 0x443ec8
cmp ecx, 1
jne 0x443e84
push 3
jmp 0x443ec8
push 9
cmp ecx, 2
pop eax
cmove eax, edx
jmp 0x443ec9
cmp dword [ebp - 0x11c], 6
jne 0x443ec6
cmp dword [ebp - 0x118], 0
jne 0x443eaf
xor eax, eax
cmp byte [ebp - 6], 1
setne al
add eax, 5
jmp 0x443ec9
cmp dword [ebp - 0x118], 1
jne 0x443ec6
xor eax, eax
cmp byte [ebp - 6], 1
setne al
add eax, 7
jmp 0x443ec9
push 9
pop eax
mov dword [0x46b724], eax
mov ecx, dword [ebp - 4]
mov dword [esi], eax
xor ecx, ebp
mov eax, dword [0x46b728]
mov dword [edi], eax
pop edi
pop esi
pop ebx
call fcn.0042df6e
mov esp, ebp
pop ebp
ret 8
Function at 0x4441b3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.0044a2e0
mov eax, dword [0x46a008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push ebx
mov ebx, dword [ebp + 0x18]
push esi
movlpd qword [ebp - 0x100c], xmm0
xor esi, esi
mov ecx, dword [ebp - 0x1008]
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebp - 0x100c]
mov dword [ebp - 0x1018], eax
mov dword [ebp - 0x1010], ecx
cmp dword [ebp + 0x10], 0
jne 0x444214
cmp dword [ebp + 0x14], 0
jne 0x444214
mov eax, 0x1000
jmp 0x44423f
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
sub eax, edi
sbb edx, ecx
test edx, edx
jb 0x444239
ja 0x44422b
cmp eax, 0x1000
jbe 0x444239
and dword [ebp - 0x1008], 0
mov eax, 0x1000
jmp 0x44423f
mov dword [ebp - 0x1008], edx
push 0
lea ecx, [ebp - 0x1008]
mov dword [ebp - 0x1008], eax
push ecx
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x1014]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4442bf
mov eax, dword [ebp - 0x1008]
test eax, eax
je 0x44428f
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x1018]
call fcn.004450f3
mov esi, eax
test esi, esi
js 0x4442ed
mov eax, dword [ebp - 0x1008]
mov ecx, dword [ebp - 0x1010]
add edi, eax
adc ecx, 0
mov dword [ebp - 0x1010], ecx
cmp ecx, dword [ebp + 0x14]
ja 0x4442b4
jb 0x4442ac
cmp edi, dword [ebp + 0x10]
jae 0x4442b4
test eax, eax
jne 0x444201
test ebx, ebx
je 0x4442ed
mov dword [ebx], edi
mov dword [ebx + 4], ecx
jmp 0x4442ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x407
push str.fileutil.cpp
call fcn.00403b3b
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042df6e
mov esp, ebp
pop ebp
ret 0x14