joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421741
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.00402195
mov esi, eax
test esi, esi
jns 0x42176d
push str.Failed_to_copy_file_name.
jmp 0x421859
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 0x4217b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x421798
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x42179f
mov esi, 0x80004005
push esi
push 0x8c
push str.cabextract.cpp
call fcn.00403821
push str.Failed_to_create_begin_operation_event.
jmp 0x421859
push ebx
push ebx
push 1
push ebx
call esi
mov dword [edi + 0x28], eax
test eax, eax
jne 0x4217fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4217de
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4217e5
mov esi, 0x80004005
push esi
push 0x8f
push str.cabextract.cpp
call fcn.00403821
push str.Failed_to_create_operation_complete_event.
jmp 0x421859
push ebx
push ebx
push edi
push 0x4210fb
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x20], eax
test eax, eax
jne 0x421848
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x42182a
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x421831
mov esi, 0x80004005
push esi
push 0x93
push str.cabextract.cpp
call fcn.00403821
push str.Failed_to_create_extraction_thread.
jmp 0x421859
push edi
call fcn.004214e1
mov esi, eax
test esi, esi
jns 0x421861
push str.Failed_to_wait_for_operation_complete.
push esi
call fcn.00440237
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x426beb
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x46a004]
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 0x426c58
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x426c34
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x426c3b
mov esi, 0x80004005
push esi
push 0x1fc
push str.msuengine.cpp
call fcn.00403821
push str.Failed_to_stop_wusa_service.
push esi
call fcn.00440237
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0042e06f
mov esp, ebp
pop ebp
ret 4
Function at 0x429c84
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
mov eax, dword [ebx + 4]
mov edi, 0x44b534
mov dword [ebp - 4], esi
test eax, eax
je 0x429ca3
mov edx, dword [eax]
jmp 0x429cb0
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x429cae
mov edx, dword [ecx]
jmp 0x429cb0
mov edx, edi
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x429cb9
mov edi, dword [ecx]
test eax, eax
je 0x429ccb
xor eax, eax
test ecx, ecx
setne al
add eax, 0x20000150
jmp 0x429cda
mov eax, dword [ebx + 8]
neg eax
sbb eax, eax
and eax, 3
add eax, 0x2000014f
push dword [ebp + 0xc]
push str.copy
push edi
push edx
push eax
push 2
call fcn.00405602
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 4]
add esp, 0x18
push eax
push edi
call fcn.00444440
test eax, eax
je 0x429d58
mov eax, dword [ebp - 4]
test al, 1
je 0x429d58
and eax, 0xfffffffe
push eax
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x429d58
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x429d30
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x429d37
mov esi, 0x80004005
push esi
push 0x538
push str.apply.cpp
call fcn.00403821
push edi
push str.Failed_to_clear_readonly_bit_on_payload_destination_path:__ls
push esi
call fcn.00440237
add esp, 0xc
jmp 0x429dd6
push esi
lea eax, [ebx + 0x20]
push eax
push ebx
push fcn.00429b69
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x429dd6
cmp dword [ebx + 0x20], esi
je 0x429d96
mov esi, 0x80070642
push esi
push 0x542
push str.apply.cpp
call fcn.00403821
push edi
push dword [ebp + 0xc]
push str.BA_aborted_copy_of_payload_from:__ls_to:__ls.
jmp 0x429dcd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x429dad
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x429db4
mov esi, 0x80004005
push esi
push 0x546
push str.apply.cpp
call fcn.00403821
push edi
push dword [ebp + 0xc]
push str.Failed_attempt_to_copy_payload_from:__ls_to:__ls.
push esi
call fcn.00440237
add esp, 0x10
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42e2a6
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x467e38
call fcn.0042ea90
push 1
call fcn.0042e574
pop ecx
test al, al
jne 0x42e15d
push 7
call fcn.0042e88a
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0042e53f
mov byte [ebp - 0x24], al
mov eax, dword [0x46ade4]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x42e156
test eax, eax
jne 0x42e1c7
mov dword [0x46ade4], ecx
push 0x44b434
push 0x44b418
call fcn.00434748
pop ecx
pop ecx
test eax, eax
je 0x42e1aa
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x42e2a0
push 0x44b414
push 0x44b3e4
call fcn.004346ec
pop ecx
pop ecx
mov dword [0x46ade4], 2
jmp 0x42e1cc
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0042e6e1
pop ecx
call fcn.0042e87e
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x42e1fc
push esi
call fcn.0042e657
pop ecx
test al, al
je 0x42e1fc
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.0042ea87
call esi
call fcn.0042e884
mov esi, eax
cmp dword [esi], edi
je 0x42e21a
push esi
call fcn.0042e657
pop ecx
test al, al
je 0x42e21a
push dword [esi]
call fcn.00434a0a
pop ecx
call fcn.0042e9a6
movzx eax, ax
push eax
call fcn.004346a6
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.00434919
test al, al
jne 0x42e245
push esi
call fcn.00434a42
test bl, bl
jne 0x42e24e
call fcn.004349e5
push edi
push 1
call fcn.0042e6fe
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x42e2a0
call fcn.0042ead6
ret
call fcn.0042e7c5
jmp 0x42e13e

Function at 0x4317ec
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x460ee8
push str.FlsAlloc
push 0
call fcn.0043176c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43181e
push dword [ebp + 8]
mov ecx, esi
call fcn.0042ea87
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x431860
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x460f18
push str.FlsSetValue
push 3
call fcn.0043176c
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x431894
mov ecx, esi
call fcn.0042ea87
call esi
jmp 0x43189a
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret
Function at 0x43fa62
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.0044a060
mov eax, dword [0x46a004]
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.0042f8e0
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 0x43fafa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fae8
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43faef
mov esi, 0x80004005
push esi
push 0xd3
jmp 0x43fbb1
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 0x43fb6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fb2f
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fb36
mov esi, 0x80004005
push esi
push 0xd9
jmp 0x43fbb1
push 0
cmp dword [ebp - 0x100c], esi
je 0x43fc22
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 0x43fbfc
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 0x43fb3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fba4
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fbab
mov esi, 0x80004005
push esi
push 0xe1
push str.cryputil.cpp
call fcn.00403821
cmp dword [ebp - 0x1008], 0
je 0x43fbd0
push dword [ebp - 0x1008]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x1010], 0
je 0x43fbe7
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.0042e06f
mov esp, ebp
pop ebp
ret 0x18
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fc13
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fc1a
mov esi, 0x80004005
push esi
push 0xec
jmp 0x43fbb1
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 0x43fc67
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fc55
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fc5c
mov esi, 0x80004005
push esi
push 0xf3
jmp 0x43fbb1
test ebx, ebx
je 0x43fbbb
push 1
push ebx
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x43fbbb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fc9c
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fca3
mov esi, 0x80004005
push esi
push 0xfa
jmp 0x43fbb1
Function at 0x43fcae
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46b5d8
push str.AdvApi32.dll
call fcn.00403824
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x43fcf1
push str.SystemFunction040
push dword [0x46b5d8]
call edi
push str.SystemFunction041
push dword [0x46b5d8]
mov dword [0x46b5e0], eax
call edi
mov dword [0x46b5e4], eax
jmp 0x43fcf6
mov eax, dword [0x46b5e4]
cmp dword [0x46b5e0], 0
je 0x43fd07
test eax, eax
jne 0x43fdae
push 0x46b5dc
push str.Crypt32.dll
call fcn.00403824
mov esi, eax
test esi, esi
js 0x43fdb8
push str.CryptProtectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e0], 0
mov dword [0x46b5e8], eax
jne 0x43fd6c
test eax, eax
jne 0x43fd6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fd56
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fd5d
mov esi, 0x80004005
push esi
push 0x28
push str.cryputil.cpp
call fcn.00403821
jmp 0x43fdb8
push str.CryptUnprotectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e4], 0
mov dword [0x46b5ec], eax
jne 0x43fdae
test eax, eax
jne 0x43fdae
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fda2
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fda9
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x43fd60
mov dword [0x46b5f0], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x4402f8
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x46a004]
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 0x44035c
push edi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0042f8e0
add esp, 0xc
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00444a6c
test eax, eax
jns 0x440386
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 0x4403ac
lea eax, [ebp - 0x414]
mov byte [eax], bl
inc eax
sub edi, 1
jne 0x4403a4
push ebx
lea eax, [ebp - 0x418]
push eax
call fcn.004486d7
push dword [ebp - 0x418]
push str._Logging_started:__ls_
push 2
pop edi
push edi
call fcn.00440726
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.00440726
lea eax, [ebp - 0x414]
push eax
push str.Computer__:__ls
push edi
call fcn.00440726
mov eax, dword [0x46a778]
add esp, 0x34
sub eax, ebx
je 0x44044d
sub eax, 1
je 0x440445
sub eax, 1
je 0x44043d
sub eax, 1
je 0x440435
sub eax, 1
jne 0x440453
mov esi, dword [str.debug]
jmp 0x440453
mov esi, dword [str.verbose]
jmp 0x440453
mov esi, dword [str.standard]
jmp 0x440453
mov esi, dword [str.warning]
jmp 0x440453
mov esi, dword [str.none]
push esi
push str.____logging_level:__hs____
push edi
call fcn.00440726
add esp, 0xc
cmp dword [ebp - 0x418], 0
pop edi
pop esi
pop ebx
je 0x440479
push dword [ebp - 0x418]
call fcn.00445636
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0042e06f
mov esp, ebp
pop ebp
ret

Function at 0x440764
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 0x4407a0
push edi
push ebx
push 0x46b5f8
call fcn.00402376
mov esi, eax
test esi, esi
js 0x4407f7
xor esi, esi
jmp 0x4407f7
test eax, eax
je 0x4407f7
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 0x4407d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4407d3
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4407e7
add edi, dword [ebp - 4]
mov eax, dword [ebp + 8]
cmp edi, eax
jae 0x4407f7
mov ecx, dword [0x46a774]
jmp 0x4407a4
push esi
push 0x310
push str.logutil.cpp
call fcn.00403821
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x44093b
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.0042f8e0
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x44096d
mov eax, 0x44b534
push eax
push dword [ebp + 8]
lea eax, [ebp - 4]
push str.__ls___ls
push eax
call fcn.00401f13
mov esi, eax
add esp, 0x10
test esi, esi
js 0x4409f0
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 0x4409e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4409cc
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4409d3
mov esi, 0x80004005
push esi
push 0x9e
push str.procutil.cpp
call fcn.00403821
jmp 0x4409f0
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 0x440a03
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
je 0x440a10
push dword [ebp - 0x14]
call edi
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 4], ebx
je 0x440a1d
push dword [ebp - 4]
call fcn.00445636
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x443a5f
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x46a004]
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.00443bf1
cmp dword [ebp - 0x14], ebx
je 0x443a9b
mov dword [esi], 1
jmp 0x443acf
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 0x443acf
push esi
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x443acf
mov dword [esi], ebx
cmp dword [ebp - 0x10], 0
pop esi
pop ebx
je 0x443adf
push dword [ebp - 0x10]
call fcn.00445636
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0042e06f
mov esp, ebp
pop ebp
ret 4
Function at 0x443af1
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x46a004]
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.0042f8e0
mov eax, dword [0x46b6d4]
add esp, 0xc
test eax, eax
jne 0x443bd5
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
or ecx, eax
cmp dword [ebp - 0x11c], 4
mov dword [0x46b6d8], ecx
jne 0x443b65
xor eax, eax
inc eax
jmp 0x443bd0
cmp dword [ebp - 0x11c], 5
jne 0x443b96
mov ecx, dword [ebp - 0x118]
test ecx, ecx
jne 0x443b7c
push 2
jmp 0x443bcf
cmp ecx, 1
jne 0x443b85
push 3
jmp 0x443bcf
xor eax, eax
cmp ecx, 2
setne al
dec eax
and eax, 0xfffffffb
add eax, 9
jmp 0x443bd0
cmp dword [ebp - 0x11c], 6
jne 0x443bcd
cmp dword [ebp - 0x118], 0
jne 0x443bb6
xor eax, eax
cmp byte [ebp - 6], 1
setne al
add eax, 5
jmp 0x443bd0
cmp dword [ebp - 0x118], 1
jne 0x443bcd
xor eax, eax
cmp byte [ebp - 6], 1
setne al
add eax, 7
jmp 0x443bd0
push 9
pop eax
mov dword [0x46b6d4], eax
mov ecx, dword [ebp - 4]
mov dword [esi], eax
xor ecx, ebp
mov eax, dword [0x46b6d8]
mov dword [edi], eax
pop edi
pop esi
pop ebx
call fcn.0042e06f
mov esp, ebp
pop ebp
ret 8
Function at 0x443edd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.0044a060
mov eax, dword [0x46a004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
xor esi, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
xor ecx, ecx
mov dword [ebp - 0x1018], eax
mov dword [ebp - 0x1010], ecx
cmp dword [ebp + 0x10], 0
jne 0x443f2b
cmp dword [ebp + 0x14], 0
jne 0x443f2b
mov eax, 0x1000
jmp 0x443f56
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
sub eax, edi
sbb edx, ecx
test edx, edx
jb 0x443f50
ja 0x443f42
cmp eax, 0x1000
jbe 0x443f50
and dword [ebp - 0x1008], 0
mov eax, 0x1000
jmp 0x443f56
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 0x443fd6
mov eax, dword [ebp - 0x1008]
test eax, eax
je 0x443fa6
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x1018]
call fcn.00444e3a
mov esi, eax
test esi, esi
js 0x444004
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 0x443fcb
jb 0x443fc3
cmp edi, dword [ebp + 0x10]
jae 0x443fcb
test eax, eax
jne 0x443f18
test ebx, ebx
je 0x444004
mov dword [ebx], edi
mov dword [ebx + 4], ecx
jmp 0x444004
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x443fed
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x443ff4
mov esi, 0x80004005
push esi
push 0x40f
push str.fileutil.cpp
call fcn.00403821
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e06f
mov esp, ebp
pop ebp
ret 0x14
Function at 0x444019
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
xor eax, eax
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test ebx, ebx
sete al
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4440f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x44405f
cmp eax, 0x50
je 0x444057
cmp eax, 0xb7
jne 0x44405f
xor esi, esi
inc esi
jmp 0x4440f9
cmp eax, 3
jne 0x4440e8
movzx ecx, word [edi]
mov ebx, esi
mov eax, edi
test cx, cx
je 0x4440e1
push 0x5c
pop edx
cmp cx, dx
jne 0x44407e
mov ebx, eax
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x444077
test ebx, ebx
je 0x4440e1
push esi
xor eax, eax
push edi
mov word [ebx], ax
call fcn.00404115
mov esi, eax
push 0x5c
pop eax
mov word [ebx], ax
test esi, esi
js 0x4440f9
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4440f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4440cd
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x4440f9
push esi
push 0x454
push str.fileutil.cpp
call fcn.00403821
jmp 0x4440f9
mov esi, 0x80070003
jmp 0x4440f9
test eax, eax
jg 0x4440f0
mov esi, eax
jmp 0x4440f9
movzx esi, ax
or esi, 0x80070000
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x444153
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.00444440
test eax, eax
je 0x4441dc
test byte [ebp - 4], 7
push ebx
mov ebx, 0x80070000
je 0x4441a9
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x4441a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x44419f
movzx esi, si
or esi, ebx
test esi, esi
jns 0x4441a9
push esi
push 0x5c4
jmp 0x4441d1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4441db
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4441c9
movzx esi, si
or esi, ebx
test esi, esi
jns 0x4441db
push esi
push 0x5ca
push str.fileutil.cpp
call fcn.00403821
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4