joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10035490
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esi + 4]
mov dword [esi + 0x20], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
push 0
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov dword [esi + 4], 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x100354f8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x1003551f
or eax, eax
or ecx, 0xffffffff
jmp 0x10035522
mov ecx, dword [ebp + 0xc]
push 0
push eax
mov dword [esi + 8], eax
xor eax, eax
cmp dword [esi + 0x10], eax
push ecx
setne al
mov dword [esi + 0xc], ecx
lea eax, [eax*2 + 2]
push eax
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 4], eax
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x10035560
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
xor ecx, ecx
push ebx
push esi
add eax, 0xfffffffc
mov dword [ebp + 0x10], 0xff
xor esi, esi
mov dword [ebp - 0x10], eax
xor ebx, ebx
mov dword [ebp - 4], esi
push edi
mov edi, dword [ebp + 8]
cmp eax, 2
jb 0x100355f9
dec eax
lea esi, [edi + 4]
mov dword [ebp - 8], eax
mov edx, 0x20
mov eax, 0x1f
sub edx, edi
sub eax, edi
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], eax
xor edi, edi
add eax, esi
xor edx, edx
div dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
xor dl, byte [esi]
mov byte [eax + ecx], dl
movsx eax, dl
xor edx, edx
xor eax, 0x7b
add edi, eax
mov eax, dword [ebp - 4]
add eax, esi
div dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
xor dl, byte [esi + 1]
add esi, 2
mov byte [eax + ecx + 1], dl
add ecx, 2
movsx eax, dl
xor eax, 0x7b
add ebx, eax
mov eax, dword [ebp - 0xc]
cmp ecx, dword [ebp - 8]
jb 0x100355a7
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0x10], edi
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 4], ebx
xor ebx, ebx
cmp ecx, eax
jae 0x10035619
xor edx, edx
lea eax, [ecx + 0x23]
mov ebx, 0xff
div ebx
mov eax, dword [ebp + 0xc]
xor dl, byte [ecx + edi + 4]
movsx ebx, dl
xor ebx, 0x7b
mov byte [ecx + eax], dl
mov ecx, dword [ebp - 4]
xor eax, eax
add ecx, esi
add ecx, ebx
cmp ecx, dword [edi]
pop edi
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100356b0
Capabilities:
Get file size
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x70]
call fcn.10036570
cmp dword [esi + 0x10], 0
je 0x100356d9
push 0
push dword [esi + 0x80]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x100356e9
push eax
call edi
cmp dword [esi + 0x10], 0
mov ecx, 0xc0000000
push 0
push 0
push 3
push 0
push 3
mov eax, SysReAllocStringLen
cmovne eax, ecx
push eax
push dword [esi + 0x80]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x100357d2
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x10035744
or eax, eax
or ecx, 0xffffffff
jmp 0x10035748
mov ecx, dword [esp + 0xc]
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
mov dword [esi + 0xc], ecx
test eax, eax
je 0x1003575f
push eax
call edi
mov dword [esi + 4], 0xffffffff
mov eax, dword [esi + 0x20]
test eax, eax
je 0x10035774
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 0x20], 0
mov eax, dword [esi + 8]
mov cl, 0x20
mov edx, dword [esi + 0xc]
push 0
push dword [esi + 8]
call fcn.1011c2d0
push eax
xor eax, eax
cmp dword [esi + 0x10], eax
setne al
lea eax, [eax*2 + 2]
push eax
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 4], eax
test eax, eax
jne 0x100357b3
mov eax, 9
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x3c], 0
lea edi, [esi + 0x68]
je 0x100357dd
push dword [esi + 0xc]
mov edx, edi
mov ecx, eax
push dword [esi + 8]
call fcn.10034ea0
add esp, 8
test eax, eax
jne 0x100357ea
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [edi], 0
mov dword [edi + 4], 0
mov eax, dword [esi + 0xc]
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
cmp eax, dword [edi + 4]
jb 0x10035841
ja 0x10035825
mov eax, dword [esi + 8]
cmp eax, dword [edi]
jbe 0x10035841
mov ecx, esi
call fcn.10035b70
test eax, eax
jne 0x10035841
cmp dword [esi + 0x10], eax
je 0x10035841
push dword [edi + 4]
mov ecx, esi
push dword [edi]
call fcn.10035490
pop edi
mov dword [esi + 0x7c], 1
xor eax, eax
mov dword [esi + 0x38], 0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1003c150
Capabilities:
Get file size
Get system information on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101200c8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x1016e750]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov dword [esp + 0x24], ecx
mov esi, dword [0x101726dc]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
test esi, esi
jne 0x1003c1be
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x101726c0
call edi
mov esi, dword [0x101726dc]
test esi, esi
jne 0x1003c1be
push 0x101726c0
call edi
mov esi, dword [0x101726dc]
xor edx, edx
mov eax, 0x400000
div esi
xor ebx, ebx
mov edi, eax
mov dword [esp + 0x18], ebx
lea eax, [esp + 0x2c]
imul edi, esi
mov esi, dword [ebp + 8]
push eax
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push ebx
push ebx
push ebx
push 4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x1003c32d
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x20], 1
xor edx, edx
cmp edx, ecx
jg 0x1003c21c
jl 0x1003c21a
cmp edi, esi
jae 0x1003c21c
mov esi, edi
push esi
push ebx
push dword [esp + 0x1c]
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x1003c2ad
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x28]
push edx
push esi
push dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
mov eax, dword [ecx]
push esi
push ebx
push ebx
mov dword [esp + 0x40], 0
call dword [eax]
mov ecx, dword [esp + 0x30]
xor edx, edx
cmp ecx, edx
jl 0x1003c274
mov eax, dword [esp + 0x2c]
jg 0x1003c266
cmp eax, edi
jbe 0x1003c274
sub eax, edi
mov dword [esp + 0x2c], eax
sbb ecx, edx
mov dword [esp + 0x30], ecx
jmp 0x1003c27d
xorps xmm0, xmm0
movlpd qword [esp + 0x2c], xmm0
add esi, edi
push ebx
adc dword [esp + 0x18], edx
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x30]
test ecx, ecx
jl 0x1003c30a
mov esi, dword [esp + 0x2c]
jg 0x1003c2a0
test esi, esi
je 0x1003c30a
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
jmp 0x1003c20e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x1c]
push str._CVfcEncDec::EncryptFile:_mapping_failed__LE_d
push eax
call fcn.10044f30
add esp, 0xc
mov dword [esp + 0x40], 0
mov ecx, 0x1013c5ac
mov edx, dword [esp + 0x18]
call fcn.10043b30
mov dword [esp + 0x40], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [esp + 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1003c302
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0x20], 0
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1003c430
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push edi
push eax
push esi
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push 0
push eax
push dword [ebp - 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0
push 0
push 0
push 2
push 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
call esi
push 0
push 0
push 0
push 4
push 0
push edi
mov dword [ebp + 8], eax
call esi
mov esi, dword [ebp + 8]
mov ebx, eax
test esi, esi
je 0x1003c4cb
test ebx, ebx
je 0x1003c4cb
push dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
push dword [ebp - 0x10]
push ebx
push esi
call fcn.1003c4e0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
call esi
push ebx
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1003c9e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x18]
push edi
xor edi, edi
test edx, edx
je 0x1003ca77
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
cmp edx, 0x10
jb 0x1003ca4b
lea eax, [ebx - 1]
lea ecx, [esi - 1]
add eax, edx
add ecx, edx
cmp esi, eax
ja 0x1003ca10
cmp ecx, ebx
jae 0x1003ca4b
movdqa xmm1, xmmword [0x10160b20]
mov eax, edx
mov ecx, edx
and eax, 0xf
sub ecx, eax
mov edx, esi
sub edx, ebx
mov eax, ebx
mov dword [ebp + 0xc], edx
mov edx, dword [ebp + 0x18]
mov ebx, dword [ebp + 0xc]
movdqu xmm0, xmmword [eax]
add edi, 0x10
lea eax, [eax + 0x10]
pxor xmm0, xmm1
movdqu xmmword [ebx + eax - 0x10], xmm0
cmp edi, ecx
jb 0x1003ca30
mov ebx, dword [ebp + 8]
cmp edi, edx
jae 0x1003ca66
lea ecx, [edi + esi]
sub ebx, esi
mov esi, edx
sub esi, edi
mov al, byte [ebx + ecx]
lea ecx, [ecx + 1]
xor al, 0x7b
mov byte [ecx - 1], al
dec esi
jne 0x1003ca58
mov eax, dword [ebp + 0x1c]
pop esi
pop ebx
pop edi
mov dword [eax], edx
mov eax, 1
pop ebp
ret 0x18
mov eax, dword [ebp + 0x1c]
pop edi
mov dword [eax], edx
mov eax, 1
pop ebp
ret 0x18

Function at 0x1003ca90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x18]
xor edx, edx
cmp dword [esi], edx
jbe 0x1003cab8
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
sub edi, eax
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor cl, 0x7b
inc edx
mov byte [eax - 1], cl
cmp edx, dword [esi]
jb 0x1003caa6
pop edi
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esi]
pop esi
mov dword [eax], ecx
mov eax, 1
pop ebp
ret 0x18
Function at 0x1003d9f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10120370
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x1016e750]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
test edx, edx
mov dword [ebp - 0x1c], 0
mov esi, 0x10175070
cmovne esi, edx
mov eax, dword [esi + 0x16c]
lea edi, [esi + 0x16c]
cmp dword [eax - 0xc], 0
jne 0x1003dba4
push esi
push 0
push 0
push ecx
mov ecx, esp
push str.VirtReg.dat
call fcn.10023fc0
mov edx, 1
lea ecx, [ebp - 0x18]
call fcn.1003d3b0
add esp, 0x10
push esi
push 0
push 0
push ecx
mov ecx, esp
mov dword [ebp - 4], 0
push str.VirtReg.Transitory.dat
call fcn.10023fc0
mov edx, 1
lea ecx, [ebp - 0x10]
call fcn.1003d3b0
add esp, 0x10
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.10024750
lea esi, [eax + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
lea edx, [esi - 0x10]
cmp eax, 0xffffffff
setne cl
or esi, 0xffffffff
mov dword [ebp - 0x14], ecx
mov eax, esi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1003dacc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
je 0x1003db19
push str._VirtNames_RepositoryDataRegHive:_using_transitory_reg_dat_file:_VirtReg.Transitory.dat
push eax
call fcn.10044f30
add esp, 8
mov byte [ebp - 4], 2
mov ecx, str.VirtNames
mov edx, dword [ebp - 0x14]
call fcn.10043b30
mov byte [ebp - 4], 1
mov ecx, esi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1003db14
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x10]
jmp 0x1003db5b
push str.VirtNames_RepositoryDataRegHive:_using_normal_reg_dat_file:_VirtReg.dat
push eax
call fcn.10044f30
add esp, 8
mov byte [ebp - 4], 3
mov ecx, str.VirtNames
mov edx, dword [ebp - 0x14]
call fcn.10043b30
mov byte [ebp - 4], 1
mov ecx, esi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1003db58
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.100244b0
mov byte [ebp - 4], 0
mov ecx, esi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1003db83
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x1003dba4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [edi]
sub ecx, 0x10
call fcn.10024750
add eax, 0x10
mov dword [ebx], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10043d70
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [0x1016e750]
xor eax, esp
mov dword [esp + 0x34], eax
lea eax, [esp + 4]
mov dword [esp + 8], 0x10
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x10043db5
xor eax, eax
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.10103392
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0xc]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x10043da4
mov eax, dword [esp + 0xc]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 1
push eax
push 0x10
lea eax, [esp + 0x30]
mov dword [esp + 0x3c], 0
push eax
push 0
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10043da4
mov eax, dword [esp + 0xc]
or dword [esp + 0x20], 2
push 0
push 0
push dword [esp + 0x10]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x20]
push eax
push 0
push dword [esp + 0x18]
mov dword [esp + 0x2c], 1
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10043da4
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x34]
mov eax, 1
xor ecx, esp
call fcn.10103392
mov esp, ebp
pop ebp
ret
Function at 0x10044170
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1016e750]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
mov word [ebp - 8], 0x500
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], esi
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0x12
push 1
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x100441bf
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10103392
mov esp, ebp
pop ebp
ret
push edi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x10044267
lea eax, [ebp - 0x14]
push eax
push 0x20008
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10044260
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
push 0
push 0
push 5
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10044257
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10044257
push eax
call fcn.10102156
mov esi, eax
add esp, 4
test esi, esi
je 0x10044255
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push esi
push 5
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x10044247
push dword [ebp - 0x1c]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov dword [ebp - 0x18], eax
push esi
call fcn.10105387
mov esi, dword [ebp - 0x18]
add esp, 4
jmp 0x10044257
xor esi, esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.10103392
mov esp, ebp
pop ebp
ret
Function at 0x10044430
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
push 0x38
lea eax, [ebp - 0x38]
mov esi, edx
push 0
push eax
mov edi, ecx
call fcn.101078f0
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x100444d7
test edi, edi
je 0x100444a6
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test esi, esi
je 0x100444b4
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x100444c7
mov eax, dword [ebp - 4]
mov esi, 1
mov dword [ecx], eax
jmp 0x100444d9
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 1
jmp 0x100444d9
xor esi, esi
mov edx, dword [ebp + 8]
or edi, 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x100444f8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
mov ecx, edi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10044514
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp + 0x10]
add ebx, 0xfffffff0
lea eax, [ebx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x1004452e
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100447f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10120ff0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
mov eax, dword [0x1016e750]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x10170700]
cmp eax, 0xffffffff
jne 0x1004489b
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x1012ec40
call fcn.10023fc0
push ecx
mov dword [ebp - 4], 0
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x1013e424
call fcn.10023fc0
push ecx
mov ecx, esp
mov byte [ebp - 4], 1
call fcn.100447b0
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.10044c80
add esp, 0xc
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, dword [ebp - 0x10]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10044893
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [0x10170700], ebx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100448b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1016e750]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], 0x114
push 0
push eax
call fcn.101078f0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x10044915
cmp dword [ebp - 0x114], 5
jne 0x10044915
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10103392
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.10103392
mov esp, ebp
pop ebp
ret

Function at 0x10044930
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x101726dc]
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
push ebx
push esi
push edi
test eax, eax
jne 0x10044958
push 0x101726c0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x101726dc]
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
push 0
push eax
push edi
push esi
call fcn.10115c10
mov ebx, esi
sub ebx, eax
sbb edi, edx
sub esi, ebx
add esi, dword [ebp + 8]
push esi
push ebx
push edi
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x10044992
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
sub edx, ebx
add edx, eax
mov dword [ecx], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret