joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4252f3
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
and dword [ebp - 4], 0
mov eax, 0x445570
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 0x425316
mov eax, dword [ecx]
jmp 0x42531f
mov edx, dword [esi + 8]
test edx, edx
je 0x42531f
mov eax, dword [edx]
mov edx, dword [esi + 0xc]
mov dword [ebp + 8], eax
test edx, edx
je 0x42532e
mov eax, dword [edx]
mov dword [ebp - 8], eax
lea ebx, [ecx + 0x2c]
test ecx, ecx
jne 0x42536e
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 0x425379
xor eax, eax
test edx, edx
setne al
add eax, 0x20000150
jmp 0x425388
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + 0x1c]
jmp 0x425341
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.0040206d
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 4]
add esp, 0x18
push eax
push edi
call fcn.0043daf5
test eax, eax
je 0x42540c
mov eax, dword [ebp - 4]
test al, 1
je 0x42540c
and eax, 0xfffffffe
push eax
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x42540c
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 0x57c
push str.apply.cpp
call fcn.00436473
push edi
push str.Failed_to_clear_readonly_bit_on_payload_destination_path:__ls
push esi
call fcn.00437258
add esp, 0xc
jmp 0x4254b5
and dword [ebp - 0x20], 0
mov dword [ebp - 0x24], fcn.00424c14
mov dword [ebp - 0x1c], esi
mov eax, dword [ebx]
push 0x62
pop ecx
cmp cx, word [eax]
jne 0x42546b
push 0x69
pop ecx
cmp cx, word [eax + 2]
jne 0x42546b
push 0x74
pop ecx
cmp cx, word [eax + 4]
jne 0x42546b
push 0x73
pop edx
cmp dx, word [eax + 6]
jne 0x42546b
movzx ecx, word [eax + 8]
mov dword [ebp + 0xc], 0x3a
cmp word [ebp + 0xc], cx
je 0x42545e
cmp dx, cx
jne 0x42546b
mov ecx, dword [ebp + 0xc]
cmp cx, word [eax + 0xa]
jne 0x42546b
push edi
push ebx
lea eax, [ebp - 0x24]
push eax
call fcn.00428ee3
jmp 0x42549e
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], 0x424b2d
push eax
push edi
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push ebx
call fcn.00440103
mov esi, eax
test esi, esi
jns 0x4254b5
push edi
push dword [ebx]
push str.Failed_attempt_to_download_URL:__ls_to:__ls
push esi
call fcn.00437258
add esp, 0x10
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4301f5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0042ce8c
mov dword [ebp - 0x14], eax
cmp dword [0x464110], esi
jne 0x4302e8
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x430275
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4303c8
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4303c8
push 0x45b230
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4303c8
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x464110], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x464114], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x464118], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x464120], eax
test eax, eax
je 0x4302e5
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x46411c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x43030d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x430300
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x430322
push 4
pop eax
jmp 0x4303ca
cmp dword [ebp - 0x14], esi
je 0x430322
push dword [0x464110]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x430307
mov eax, dword [0x46411c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x430380
cmp dword [0x464120], edi
je 0x430380
push eax
call ebx
push dword [0x464120]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x430380
test eax, eax
je 0x430380
call ecx
test eax, eax
je 0x430375
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x430375
test byte [ebp - 8], 1
jne 0x430380
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4303b0
mov eax, dword [0x464114]
cmp eax, edi
je 0x4303ad
push eax
call ebx
test eax, eax
je 0x4303ad
call eax
mov esi, eax
test esi, esi
je 0x4303ad
mov eax, dword [0x464118]
cmp eax, edi
je 0x4303ad
push eax
call ebx
test eax, eax
je 0x4303ad
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x464110]
call ebx
test eax, eax
je 0x4303c8
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4303ca
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042928d
mov esp, ebp
pop ebp
ret
Function at 0x43648a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push esi
push edi
mov edi, dword [ebp + 0x10]
push 0x208
push 0
push eax
call fcn.004292a0
add esp, 0xc
lea eax, [ebp - 0x20c]
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x436528
push 0x5c
pop ecx
cmp cx, word [ebp + eax*2 - 0x20e]
je 0x4364ff
push 1
push 0x45e388
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0043632a
mov esi, eax
test esi, esi
js 0x43655f
mov esi, 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00436379
mov esi, eax
test esi, esi
js 0x43655f
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx], eax
test eax, eax
jne 0x436547
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x43655f
mov esi, 0x80004005
jmp 0x43655f
test edi, edi
je 0x43655f
push 0x104
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.0043aa95
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042928d
mov esp, ebp
pop ebp
ret 0xc
Function at 0x436a8b
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.004323d0
mov eax, dword [section..data]
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 - 0x100c], eax
mov dword [ebp - 0x1008], eax
mov dword [ebp - 0x1010], eax
lea eax, [ebp - 0x1004]
push eax
call fcn.004292a0
add esp, 0xc
lea eax, [ebp - 0x100c]
push 0xf0000040
push dword [ebp + 0xc]
push esi
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x436b23
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 0xde
jmp 0x436bda
lea eax, [ebp - 0x1008]
push eax
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x100c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x436b96
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 0xe4
jmp 0x436bda
push 0
cmp dword [ebp - 0x1010], esi
je 0x436c4b
push dword [ebp - 0x1010]
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x1008]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x436c25
push 0
lea eax, [ebp - 0x1010]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x436b67
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
push str.cryputil.cpp
call fcn.00436473
cmp dword [ebp - 0x1008], 0
je 0x436bf9
push dword [ebp - 0x1008]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x100c], 0
je 0x436c10
push 0
push dword [ebp - 0x100c]
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.0042928d
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 0xf7
jmp 0x436bda
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 0x436c90
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 0xfe
jmp 0x436bda
test ebx, ebx
je 0x436be4
push 1
push ebx
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x436be4
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 0x105
jmp 0x436bda
Function at 0x436cd7
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x4641a0
push str.AdvApi32.dll
call fcn.00436476
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x436d1a
push str.SystemFunction040
push dword [0x4641a0]
call edi
push str.SystemFunction041
push dword [0x4641a0]
mov dword [0x464190], eax
call edi
mov dword [0x464194], eax
jmp 0x436d1f
mov eax, dword [0x464194]
cmp dword [0x464190], 0
je 0x436d30
test eax, eax
jne 0x436dd7
push 0x4641a4
push str.Crypt32.dll
call fcn.00436476
mov esi, eax
test esi, esi
js 0x436de1
push str.CryptProtectMemory
push dword [0x4641a4]
call edi
cmp dword [0x464190], 0
mov dword [0x464198], eax
jne 0x436d8b
test eax, eax
jne 0x436d8b
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
jmp 0x436dcb
push str.CryptUnprotectMemory
push dword [0x4641a4]
call edi
cmp dword [0x464194], 0
mov dword [0x46419c], eax
jne 0x436dd7
test eax, eax
jne 0x436dd7
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 0x38
push str.cryputil.cpp
call fcn.00436473
jmp 0x436de1
mov dword [0x4641a8], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x437319
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [section..data]
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 - 0x41c], ebx
push eax
push ebx
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x418], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, 0x208
test eax, eax
jne 0x43737d
push edi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004292a0
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0043e112
test eax, eax
jns 0x4373a7
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x420], ebx
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x4373cb
lea eax, [ebp - 0x414]
mov byte [eax], bl
inc eax
dec edi
jne 0x4373c5
push ebx
lea eax, [ebp - 0x418]
push eax
call fcn.0044233b
push dword [ebp - 0x418]
push str._Logging_started:__ls_
push 2
pop edi
push edi
call fcn.00437731
mov ecx, dword [ebp - 0x420]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
mov ecx, dword [ebp - 0x41c]
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.00437731
lea eax, [ebp - 0x414]
push eax
push str.Computer__:__ls
push edi
call fcn.00437731
mov eax, dword [0x4630b4]
add esp, 0x34
sub eax, ebx
je 0x437464
dec eax
je 0x43745c
dec eax
je 0x437454
dec eax
je 0x43744c
dec eax
jne 0x43746a
mov esi, dword [str.debug]
jmp 0x43746a
mov esi, dword [str.verbose]
jmp 0x43746a
mov esi, dword [str.standard]
jmp 0x43746a
mov esi, dword [str.warning]
jmp 0x43746a
mov esi, dword [str.none]
push esi
push str.____logging_level:__hs____
push edi
call fcn.00437731
add esp, 0xc
cmp dword [ebp - 0x418], 0
pop edi
pop esi
pop ebx
je 0x437490
push dword [ebp - 0x418]
call fcn.0043af5b
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0042928d
mov esp, ebp
pop ebp
ret

Function at 0x43776f
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 [0x4630b0]
mov dword [ebp + 8], eax
cmp ecx, 0xffffffff
jne 0x4377ab
push edi
push ebx
push 0x4641b8
call fcn.0043ac71
mov esi, eax
test esi, esi
js 0x437801
xor esi, esi
jmp 0x437801
test eax, eax
je 0x437801
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 0x4377df
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x4377f1
add edi, dword [ebp - 4]
mov eax, dword [ebp + 8]
cmp edi, eax
jae 0x437801
mov ecx, dword [0x4630b0]
jmp 0x4377af
push esi
push 0x31b
push str.logutil.cpp
call fcn.00436473
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x437dca
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
push esi
push edi
test eax, eax
je 0x437e8c
cmp word [eax], cx
je 0x437e8c
push ecx
push eax
lea eax, [ebp - 4]
push eax
call fcn.0043aa95
mov esi, eax
test esi, esi
js 0x437f14
lea eax, [ebp - 4]
push eax
call fcn.00437b18
mov esi, eax
test esi, esi
js 0x437f14
mov edi, dword [ebp + 0x14]
push ebx
xor ebx, ebx
inc ebx
cmp dword [ebp + 0x10], ebx
jb 0x437f07
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
call fcn.0043a845
mov esi, eax
add esp, 0xc
test esi, esi
js 0x437f13
push dword [ebp - 8]
push dword [ebp - 4]
push str._s_s
push edi
call fcn.0043a845
mov esi, eax
add esp, 0x10
test esi, esi
js 0x437f13
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x437f05
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x437ee3
inc ebx
mov esi, 0x800700b7
cmp ebx, dword [ebp + 0x10]
jbe 0x437e25
jmp 0x437f13
mov edi, 0x104
lea eax, [ebp - 4]
push edi
push eax
call fcn.0043a803
mov esi, eax
test esi, esi
js 0x437f14
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x437e15
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 0x2d2
push str.pathutil.cpp
call fcn.00436473
jmp 0x437f14
cmp eax, 3
jne 0x437ef5
push 0
push dword [edi]
call fcn.0043ea78
mov esi, eax
jmp 0x437f07
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x437f07
xor esi, esi
test esi, esi
js 0x437f13
push edi
call fcn.00437b18
mov esi, eax
pop ebx
cmp dword [ebp - 8], 0
je 0x437f22
push dword [ebp - 8]
call fcn.0043af5b
cmp dword [ebp - 4], 0
je 0x437f30
push dword [ebp - 4]
call fcn.0043af5b
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x438792
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.004292a0
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, 0x445570
cmovne eax, dword [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 4]
push str.__ls___ls
push eax
call fcn.0043a845
mov esi, eax
add esp, 0x1c
test esi, esi
js 0x438843
mov ecx, dword [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 0x438838
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 0xa9
push str.procutil.cpp
call fcn.00436473
jmp 0x438843
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 0x438856
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
je 0x438863
push dword [ebp - 0x14]
call edi
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 4], ebx
je 0x438870
push dword [ebp - 4]
call fcn.0043af5b
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x43d116
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [section..data]
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.0043d2a4
cmp dword [ebp - 0x14], ebx
je 0x43d152
mov dword [esi], 1
jmp 0x43d186
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 0x43d186
push esi
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x43d186
mov dword [esi], ebx
cmp dword [ebp - 0x10], 0
pop esi
pop ebx
je 0x43d196
push dword [ebp - 0x10]
call fcn.0043af5b
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0042928d
mov esp, ebp
pop ebp
ret 4
Function at 0x43d1a8
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [section..data]
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.004292a0
mov eax, dword [0x464290]
add esp, 0xc
test eax, eax
jne 0x43d288
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 [0x464294], ecx
cmp dword [ebp - 0x11c], edx
jne 0x43d21e
xor eax, eax
inc eax
jmp 0x43d283
cmp dword [ebp - 0x11c], 5
jne 0x43d249
mov ecx, dword [ebp - 0x118]
test ecx, ecx
jne 0x43d235
push 2
jmp 0x43d282
cmp ecx, 1
jne 0x43d23e
push 3
jmp 0x43d282
push 9
cmp ecx, 2
pop eax
cmove eax, edx
jmp 0x43d283
cmp dword [ebp - 0x11c], 6
jne 0x43d280
cmp dword [ebp - 0x118], 0
jne 0x43d269
xor eax, eax
cmp byte [ebp - 6], 1
setne al
add eax, 5
jmp 0x43d283
cmp dword [ebp - 0x118], 1
jne 0x43d280
xor eax, eax
cmp byte [ebp - 6], 1
setne al
add eax, 7
jmp 0x43d283
push 9
pop eax
mov dword [0x464290], eax
mov ecx, dword [ebp - 4]
mov dword [esi], eax
xor ecx, ebp
mov eax, dword [0x464294]
mov dword [edi], eax
pop edi
pop esi
pop ebx
call fcn.0042928d
mov esp, ebp
pop ebp
ret 8
Function at 0x43d590
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.004323d0
mov eax, dword [section..data]
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 0x43d5f1
cmp dword [ebp + 0x14], 0
jne 0x43d5f1
mov eax, 0x1000
jmp 0x43d61c
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
sub eax, edi
sbb edx, ecx
test edx, edx
jb 0x43d616
ja 0x43d608
cmp eax, 0x1000
jbe 0x43d616
and dword [ebp - 0x1008], 0
mov eax, 0x1000
jmp 0x43d61c
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 0x43d69c
mov eax, dword [ebp - 0x1008]
test eax, eax
je 0x43d66c
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x1018]
call fcn.0043e4d0
mov esi, eax
test esi, esi
js 0x43d6ca
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 0x43d691
jb 0x43d689
cmp edi, dword [ebp + 0x10]
jae 0x43d691
test eax, eax
jne 0x43d5de
test ebx, ebx
je 0x43d6ca
mov dword [ebx], edi
mov dword [ebx + 4], ecx
jmp 0x43d6ca
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 0x412
push str.fileutil.cpp
call fcn.00436473
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042928d
mov esp, ebp
pop ebp
ret 0x14