joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421484
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.004021a5
mov esi, eax
test esi, esi
jns 0x4214b0
push str.Failed_to_copy_file_name.
jmp 0x42159c
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 0x4214fc
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.004037d3
push str.Failed_to_create_begin_operation_event.
jmp 0x42159c
push ebx
push ebx
push 1
push ebx
call esi
mov dword [edi + 0x28], eax
test eax, eax
jne 0x42153f
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.004037d3
push str.Failed_to_create_operation_complete_event.
jmp 0x42159c
push ebx
push ebx
push edi
push 0x420e43
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x20], eax
test eax, eax
jne 0x42158b
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.004037d3
push str.Failed_to_create_extraction_thread.
jmp 0x42159c
push edi
call fcn.00421224
mov esi, eax
test esi, esi
jns 0x4215a4
push str.Failed_to_wait_for_operation_complete.
push esi
call fcn.0044012f
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4269a8
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 0x426a15
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.004037d3
push str.Failed_to_stop_wusa_service.
push esi
call fcn.0044012f
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0042de36
mov esp, ebp
pop ebp
ret 4
Function at 0x429a57
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 0x429a76
mov edx, dword [eax]
jmp 0x429a83
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x429a81
mov edx, dword [ecx]
jmp 0x429a83
mov edx, ebx
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x429a8c
mov ebx, dword [ecx]
test eax, eax
je 0x429a9e
xor eax, eax
test ecx, ecx
setne al
add eax, 0x20000150
jmp 0x429aac
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.0040550f
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
add esp, 0x18
push eax
push ebx
call fcn.00444315
test eax, eax
je 0x429b2a
mov eax, dword [ebp - 4]
test al, 1
je 0x429b2a
and eax, 0xfffffffe
push eax
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x429b2a
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.004037d3
push ebx
push str.Failed_to_clear_readonly_bit_on_payload_destination_path:__ls
push esi
call fcn.0044012f
add esp, 0xc
jmp 0x429ba8
push esi
lea eax, [edi + 0x20]
push eax
push edi
push fcn.0042993c
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x429ba8
cmp dword [edi + 0x20], esi
je 0x429b68
mov esi, 0x80070642
push esi
push 0x542
push str.apply.cpp
call fcn.004037d3
push ebx
push dword [ebp + 0xc]
push str.BA_aborted_copy_of_payload_from:__ls_to:__ls.
jmp 0x429b9f
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.004037d3
push ebx
push dword [ebp + 0xc]
push str.Failed_attempt_to_copy_payload_from:__ls_to:__ls.
push esi
call fcn.0044012f
add esp, 0x10
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42a024
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 0x42a047
mov eax, dword [ecx]
jmp 0x42a050
mov edx, dword [esi + 8]
test edx, edx
je 0x42a050
mov eax, dword [edx]
mov edx, dword [esi + 0xc]
mov dword [ebp + 8], eax
test edx, edx
je 0x42a05f
mov eax, dword [edx]
mov dword [ebp - 8], eax
lea ebx, [ecx + 0x2c]
test ecx, ecx
jne 0x42a09f
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 0x42a0aa
xor eax, eax
test edx, edx
setne al
add eax, 0x20000150
jmp 0x42a0b9
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + 0x1c]
jmp 0x42a072
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.0040550f
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 4]
add esp, 0x18
push eax
push edi
call fcn.00444315
test eax, eax
je 0x42a13d
mov eax, dword [ebp - 4]
test al, 1
je 0x42a13d
and eax, 0xfffffffe
push eax
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x42a13d
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.004037d3
push edi
push str.Failed_to_clear_readonly_bit_on_payload_destination_path:__ls
push esi
call fcn.0044012f
add esp, 0xc
jmp 0x42a1e6
and dword [ebp - 0x20], 0
mov dword [ebp - 0x24], fcn.0042993c
mov dword [ebp - 0x1c], esi
mov eax, dword [ebx]
push 0x62
pop ecx
cmp cx, word [eax]
jne 0x42a19c
push 0x69
pop ecx
cmp cx, word [eax + 2]
jne 0x42a19c
push 0x74
pop ecx
cmp cx, word [eax + 4]
jne 0x42a19c
push 0x73
pop edx
cmp dx, word [eax + 6]
jne 0x42a19c
movzx ecx, word [eax + 8]
mov dword [ebp + 0xc], 0x3a
cmp word [ebp + 0xc], cx
je 0x42a18f
cmp dx, cx
jne 0x42a19c
mov ecx, dword [ebp + 0xc]
cmp cx, word [eax + 0xa]
jne 0x42a19c
push edi
push ebx
lea eax, [ebp - 0x24]
push eax
call fcn.0042dc0d
jmp 0x42a1cf
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], 0x429855
push eax
push edi
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push ebx
call fcn.0044635a
mov esi, eax
test esi, esi
jns 0x42a1e6
push edi
push dword [ebx]
push str.Failed_attempt_to_download_URL:__ls_to:__ls
push esi
call fcn.0044012f
add esp, 0x10
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x43f961
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00449f00
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.0042f670
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 0x43f9f9
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 0x43fab0
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 0x43fa6c
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 0x43fab0
push 0
cmp dword [ebp - 0x100c], esi
je 0x43fb21
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 0x43fafb
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 0x43fa3d
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.004037d3
cmp dword [ebp - 0x1008], 0
je 0x43facf
push dword [ebp - 0x1008]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x1010], 0
je 0x43fae6
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.0042de36
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 0x43fab0
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 0x43fb66
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 0x43fab0
test ebx, ebx
je 0x43faba
push 1
push ebx
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x43faba
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 0x43fab0
Function at 0x43fbad
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46b5e8
push str.AdvApi32.dll
call fcn.004037d6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x43fbf0
push str.SystemFunction040
push dword [0x46b5e8]
call edi
push str.SystemFunction041
push dword [0x46b5e8]
mov dword [0x46b5f0], eax
call edi
mov dword [0x46b5f4], eax
jmp 0x43fbf5
mov eax, dword [0x46b5f4]
cmp dword [0x46b5f0], 0
je 0x43fc06
test eax, eax
jne 0x43fcad
push 0x46b5ec
push str.Crypt32.dll
call fcn.004037d6
mov esi, eax
test esi, esi
js 0x43fcb7
push str.CryptProtectMemory
push dword [0x46b5ec]
call edi
cmp dword [0x46b5f0], 0
mov dword [0x46b5f8], eax
jne 0x43fc6b
test eax, eax
jne 0x43fc6b
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.004037d3
jmp 0x43fcb7
push str.CryptUnprotectMemory
push dword [0x46b5ec]
call edi
cmp dword [0x46b5f4], 0
mov dword [0x46b5fc], eax
jne 0x43fcad
test eax, eax
jne 0x43fcad
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 0x43fc5f
mov dword [0x46b600], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x4401f0
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 0x440254
push edi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0042f670
add esp, 0xc
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00444932
test eax, eax
jns 0x44027e
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 0x4402a4
lea eax, [ebp - 0x414]
mov byte [eax], bl
inc eax
sub edi, 1
jne 0x44029c
push ebx
lea eax, [ebp - 0x418]
push eax
call fcn.0044858f
push dword [ebp - 0x418]
push str._Logging_started:__ls_
push 2
pop edi
push edi
call fcn.0044061a
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.0044061a
lea eax, [ebp - 0x414]
push eax
push str.Computer__:__ls
push edi
call fcn.0044061a
mov eax, dword [0x46a778]
add esp, 0x34
sub eax, ebx
je 0x440345
sub eax, 1
je 0x44033d
sub eax, 1
je 0x440335
sub eax, 1
je 0x44032d
sub eax, 1
jne 0x44034b
mov esi, dword [str.debug]
jmp 0x44034b
mov esi, dword [str.verbose]
jmp 0x44034b
mov esi, dword [str.standard]
jmp 0x44034b
mov esi, dword [str.warning]
jmp 0x44034b
mov esi, dword [str.none]
push esi
push str.____logging_level:__hs____
push edi
call fcn.0044061a
add esp, 0xc
cmp dword [ebp - 0x418], 0
pop edi
pop esi
pop ebx
je 0x440371
push dword [ebp - 0x418]
call fcn.004454ef
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0042de36
mov esp, ebp
pop ebp
ret

Function at 0x440658
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 [0x46a774]
mov dword [ebp + 8], eax
cmp ecx, 0xffffffff
jne 0x440694
push edi
push ebx
push 0x46b608
call fcn.00402384
mov esi, eax
test esi, esi
js 0x4406ea
xor esi, esi
jmp 0x4406ea
test eax, eax
je 0x4406ea
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 0x4406c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x4406da
add edi, dword [ebp - 4]
mov eax, dword [ebp + 8]
cmp edi, eax
jae 0x4406ea
mov ecx, dword [0x46a774]
jmp 0x440698
push esi
push 0x310
push str.logutil.cpp
call fcn.004037d3
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x44082d
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.0042f670
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.00401f20
mov esi, eax
add esp, 0x1c
test esi, esi
js 0x4408df
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 0x4408d4
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.004037d3
jmp 0x4408df
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 0x4408f2
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
je 0x4408ff
push dword [ebp - 0x14]
call edi
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 4], ebx
je 0x44090c
push dword [ebp - 4]
call fcn.004454ef
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x44393b
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.00443ac9
cmp dword [ebp - 0x14], ebx
je 0x443977
mov dword [esi], 1
jmp 0x4439ab
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 0x4439ab
push esi
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x4439ab
mov dword [esi], ebx
cmp dword [ebp - 0x10], 0
pop esi
pop ebx
je 0x4439bb
push dword [ebp - 0x10]
call fcn.004454ef
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0042de36
mov esp, ebp
pop ebp
ret 4
Function at 0x4439cd
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.0042f670
mov eax, dword [0x46b6e4]
add esp, 0xc
test eax, eax
jne 0x443aad
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 [0x46b6e8], ecx
cmp dword [ebp - 0x11c], edx
jne 0x443a43
xor eax, eax
inc eax
jmp 0x443aa8
cmp dword [ebp - 0x11c], 5
jne 0x443a6e
mov ecx, dword [ebp - 0x118]
test ecx, ecx
jne 0x443a5a
push 2
jmp 0x443aa7
cmp ecx, 1
jne 0x443a63
push 3
jmp 0x443aa7
push 9
cmp ecx, 2
pop eax
cmove eax, edx
jmp 0x443aa8
cmp dword [ebp - 0x11c], 6
jne 0x443aa5
cmp dword [ebp - 0x118], 0
jne 0x443a8e
xor eax, eax
cmp byte [ebp - 6], 1
setne al
add eax, 5
jmp 0x443aa8
cmp dword [ebp - 0x118], 1
jne 0x443aa5
xor eax, eax
cmp byte [ebp - 6], 1
setne al
add eax, 7
jmp 0x443aa8
push 9
pop eax
mov dword [0x46b6e4], eax
mov ecx, dword [ebp - 4]
mov dword [esi], eax
xor ecx, ebp
mov eax, dword [0x46b6e8]
mov dword [edi], eax
pop edi
pop esi
pop ebx
call fcn.0042de36
mov esp, ebp
pop ebp
ret 8
Function at 0x443db5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.00449f00
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 0x443e16
cmp dword [ebp + 0x14], 0
jne 0x443e16
mov eax, 0x1000
jmp 0x443e41
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
sub eax, edi
sbb edx, ecx
test edx, edx
jb 0x443e3b
ja 0x443e2d
cmp eax, 0x1000
jbe 0x443e3b
and dword [ebp - 0x1008], 0
mov eax, 0x1000
jmp 0x443e41
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 0x443ec1
mov eax, dword [ebp - 0x1008]
test eax, eax
je 0x443e91
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x1018]
call fcn.00444cee
mov esi, eax
test esi, esi
js 0x443eef
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 0x443eb6
jb 0x443eae
cmp edi, dword [ebp + 0x10]
jae 0x443eb6
test eax, eax
jne 0x443e03
test ebx, ebx
je 0x443eef
mov dword [ebx], edi
mov dword [ebx + 4], ecx
jmp 0x443eef
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.004037d3
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042de36
mov esp, ebp
pop ebp
ret 0x14
Function at 0x443f04
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
test edi, edi
sete al
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x443fdb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x443f4a
cmp eax, 0x50
je 0x443f42
cmp eax, 0xb7
jne 0x443f4a
xor esi, esi
inc esi
jmp 0x443fdb
cmp eax, 3
jne 0x443fcd
movzx eax, word [ebx]
mov edi, esi
mov ecx, ebx
test ax, ax
je 0x443fc6
push 0x5c
pop edx
cmp ax, dx
cmove edi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x443f5e
test edi, edi
je 0x443fc6
push esi
xor eax, eax
push ebx
mov word [edi], ax
call fcn.00404013
mov esi, eax
push 0x5c
pop eax
mov word [edi], ax
test esi, esi
js 0x443fdb
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x443fdb
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x443fdb
push esi
push 0x44c
push str.fileutil.cpp
call fcn.004037d3
jmp 0x443fdb
mov esi, 0x80070003
jmp 0x443fdb
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x444038
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 4]
push esi
push eax
push dword [ebp + 8]
xor esi, esi
call fcn.00444315
test eax, eax
je 0x4440bf
test byte [ebp - 4], 7
push ebx
mov ebx, 0x80070000
je 0x44408d
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x44408d
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, ebx
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x44408d
push esi
push 0x5bc
jmp 0x4440b4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4440be
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, ebx
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x4440be
push esi
push 0x5c2
push str.fileutil.cpp
call fcn.004037d3
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4