joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10074b40
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
mov eax, dword [0x1017cf40]
xor eax, esp
mov dword [esp + 0x420], eax
push esi
push 0x208
lea eax, [esp + 0x14]
mov esi, ecx
push 0
push eax
call fcn.101135a0
push 0x208
lea eax, [esp + 0x228]
mov dword [esp + 0x1c], 0x104
push 0
push eax
call fcn.101135a0
add esp, 0x18
mov dword [esp + 8], 0
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x10074c11
push ecx
lea edx, [esp + 0x21c]
lea ecx, [esp + 0x14]
call fcn.10074a90
add esp, 4
test al, al
je 0x10074c11
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x21c]
push eax
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
je 0x10074c11
mov edx, dword [esp + 8]
cmp dword [edx], 0
je 0x10074c11
mov ecx, edx
sub esi, edx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [esi + ecx - 2], ax
test ax, ax
jne 0x10074be5
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov al, 1
pop esi
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.1010f1c0
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x424]
xor al, al
pop esi
xor ecx, esp
call fcn.1010f1c0
mov esp, ebp
pop ebp
ret
Function at 0x10076230
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10137f28
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x1017cf40]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
lea ecx, [ebp - 0x5c]
call fcn.10076720
push 0xa
push str.Bookmarks
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], 0
call fcn.10074410
push str..bak
lea edx, [ebp - 0x5c]
lea ecx, [ebp - 0x2c]
call fcn.10078eb0
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x10076298
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x100762b4
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.1006f7f0
sub esp, 0x18
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 0x10
jb 0x100762d1
mov eax, dword [edx]
jmp 0x100762d3
mov eax, edx
mov byte [eax], 0
cmp byte [esi], 0
jne 0x100762df
xor ecx, ecx
jmp 0x100762ed
mov ecx, esi
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100762e4
sub ecx, edi
push ecx
push esi
mov ecx, edx
call fcn.1006f560
lea ecx, [ebp - 0x2c]
call fcn.10079670
add esp, 0x18
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x1007630d
mov eax, dword [eax]
mov edx, eax
lea ecx, [ebp - 0x44]
call fcn.10079a00
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x10076330
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.1006f7f0
xor eax, eax
mov dword [ebp - 0x18], 7
cmp dword [ebp - 0x30], 0x10
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x1c], 0
cmovae edx, dword [ebp - 0x44]
cmp dword [ebp - 0x48], 8
mov word [ebp - 0x2c], ax
cmovae ecx, dword [ebp - 0x5c]
push ecx
push ebx
call fcn.1006e810
mov ecx, dword [ebp - 0x30]
add esp, 8
mov esi, eax
cmp ecx, 0x10
jb 0x1007637b
inc ecx
push ecx
push dword [ebp - 0x44]
lea ecx, [ebp - 0x44]
call fcn.1006d5b0
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
cmp eax, 8
jb 0x100763a2
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.1006f7f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1010f1c0
mov esp, ebp
pop ebp
ret
Function at 0x100763c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1017cf40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], 0
mov ebx, ecx
push 0
push eax
mov dword [ebp - 0x210], ebx
call fcn.101135a0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0x1c
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10076420
push esi
mov ecx, 0xc
mov esi, str.GoogleChromeUser_Data
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x20c]
movsw word es:[edi], word [esi]
call fcn.1007a220
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], ax
pop esi
cmp word [ebp - 0x20c], ax
jne 0x10076467
xor ecx, ecx
jmp 0x1007647f
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10076470
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.10073a90
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
xor ecx, ebp
pop ebx
call fcn.1010f1c0
mov esp, ebp
pop ebp
ret
Function at 0x10076720
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1017cf40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
lea eax, [ebp - 0x210]
mov dword [ebp - 0x218], 0
mov ebx, ecx
push 0
push eax
mov dword [ebp - 0x214], ebx
call fcn.101135a0
add esp, 0xc
lea eax, [ebp - 0x210]
push 0
push 0x1c
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edi, [ebp - 0x210]
add edi, 0xfffffffe
nop word [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10076780
mov ecx, 0x10
mov esi, str.GoogleChromeUser_DataDefault
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x210]
movsw word es:[edi], word [esi]
call fcn.1007a220
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], ax
cmp word [ebp - 0x210], ax
jne 0x100767c5
xor ecx, ecx
jmp 0x100767df
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100767d0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x210]
mov ecx, ebx
push eax
call fcn.10073a90
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1010f1c0
mov esp, ebp
pop ebp
ret
Function at 0x10078490
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10138168
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1017cf40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x100785be
cmp byte [ebx + 0x3d], 0
je 0x100785be
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x100784e9
xor al, al
jmp 0x100785c0
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.100782c0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x1007854f
sub eax, 1
je 0x10078553
mov ecx, dword [ebp - 0x14]
sub eax, 2
je 0x100785a6
xor bl, bl
jmp 0x100785a8
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x10078588
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.1011f890
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
jne 0x1007854b
cmp byte [ebx + 0x3d], 0
je 0x100785a6
test esi, esi
jne 0x10078511
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.1006d260
jmp 0x1007850e
mov bl, 1
cmp ecx, 0x10
jb 0x100785ba
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.1006d5b0
mov al, bl
jmp 0x100785c0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1010f1c0
mov esp, ebp
pop ebp
ret
Function at 0x100787f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10137df6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x1017cf40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.1010f1d1
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.1011099d
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10079bc0
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10138428
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x1017cf40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x60], vtable.Json::FastWriter.0
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
mov byte [ebp - 0x44], 0
push edx
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x60]
call fcn.10080d00
push ecx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.10079ac0
xor eax, eax
mov dword [ebp - 0x14], 7
add esp, 4
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [esi], ax
jne 0x10079c4b
xor ecx, ecx
jmp 0x10079c5f
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10079c50
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.10073a90
push 4
push 0x1016ea00
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.10074410
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x1016ea0c
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.10117633
mov edi, eax
add esp, 8
test edi, edi
jne 0x10079ca2
xor bl, bl
jmp 0x10079d36
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push edi
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
push 1
push eax
call fcn.1011f890
push edi
call fcn.10116eb0
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp - 0x28]
add esp, 0x14
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push 1
push esi
push eax
call edi
test eax, eax
setne bl
test bl, bl
jne 0x10079d0e
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x10079d0e
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 1
cmovae eax, dword [ebp - 0x28]
push esi
push eax
call edi
test eax, eax
setne bl
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10079d36
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x10079d4b
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.1006f7f0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
cmp eax, 0x10
jb 0x10079d74
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.1006d5b0
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
mov dword [ebp - 0x60], vtable.Json::FastWriter.0
cmp ecx, 0x10
jb 0x10079da2
inc ecx
push ecx
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x5c]
call fcn.1006d5b0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1010f1c0
mov esp, ebp
pop ebp
ret
Function at 0x10079f50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013744e
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x1017cf40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x9c], edx
push 0x10168974
push ecx
call fcn.10117633
mov edi, eax
add esp, 8
test edi, edi
jne 0x10079f9f
xor al, al
jmp 0x1007a0c0
push 2
push 0
push edi
call fcn.10117205
add esp, 0xc
push edi
call fcn.10116e2f
add esp, 4
lea esi, [eax + 1]
push 0
push 0
push edi
call fcn.10117205
add esp, 0xc
push esi
call fcn.10117929
add esp, 4
mov ebx, eax
push esi
push 0
push ebx
call fcn.101135a0
add esp, 0xc
push edi
push esi
push 1
push ebx
call fcn.10117879
push edi
call fcn.10116eb0
add esp, 0x14
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp byte [ebx], 0
jne 0x1007a00a
xor ecx, ecx
jmp 0x1007a019
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1007a010
sub ecx, edx
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.1006f560
push ebx
mov dword [ebp - 4], 0
call fcn.101176a8
and dword [ebp - 0xa8], 0xfffffe00
add esp, 4
mov dword [ebp - 0xa4], 0
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 2
call fcn.1007bc40
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x70]
call fcn.1006f660
cmp dword [ebp - 0x5c], 0x10
lea ecx, [ebp - 0x70]
mov eax, dword [ebp - 0x60]
cmovae ecx, dword [ebp - 0x70]
push ecx
push dword [ebp - 0x9c]
add eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x98]
call fcn.1007bd40
test al, al
lea ecx, [ebp - 0x98]
setne bl
call fcn.1006dc80
lea ecx, [ebp - 0xb0]
call fcn.1007e420
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x1007a0be
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.1006d5b0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1010f1c0
mov esp, ebp
pop ebp
ret

Function at 0x1007a0e0
Capabilities:
Get file attributes
Set file attributes
Write file on windows

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
mov esi, edx
push 0x1016ea0c
push ebx
call fcn.10117633
mov edi, eax
add esp, 8
test edi, edi
jne 0x1007a12c
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x1007a126
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x1016ea0c
push ebx
call fcn.10117633
mov edi, eax
add esp, 8
test edi, edi
jne 0x1007a12c
pop edi
pop esi
xor al, al
pop ebx
ret
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x1007a137
mov esi, dword [esi]
push edi
push eax
push 1
push esi
call fcn.1011f890
push edi
call fcn.10116eb0
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x1007a150
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x1017cf40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
mov edi, edx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1007a1c7
push 0x64
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.101135a0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x68]
push str.CreateFileA_faild__08x
push eax
call fcn.10079650
add esp, 0xc
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1010f1c0
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], 0
push eax
push dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x1007a1fc
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1010f1c0
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.1010f1c0
mov esp, ebp
pop ebp
ret

Function at 0x1007a220
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101384a8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x1017cf40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
cmp word [ebx], ax
jne 0x1007a26a
xor ecx, ecx
jmp 0x1007a27f
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1007a270
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x40]
call fcn.10073a90
push 1
push 3
push ecx
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.1007a5f0
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1007a30f
nop word [eax + eax]
push esi
push ecx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
call fcn.1007a570
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1007a2e4
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call edi
push 1
lea eax, [esi + 1]
push eax
push ecx
lea ecx, [ebp - 0x40]
call fcn.1007a5f0
mov esi, eax
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x1007a30a
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.1006f7f0
cmp esi, 0xffffffff
jne 0x1007a2b0
push 0
push ebx
call edi
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x1007a329
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.1006f7f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1010f1c0
mov esp, ebp
pop ebp
ret
Function at 0x1007a3b0
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1017cf40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x20000000
push 0
push 0
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x1007a3f0
push 0x34
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x1007a402
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1010f1c0
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x20]
push eax
push esi
call ebx
test eax, eax
je 0x1007a46e
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1007a46e
lea eax, [ebp - 0x20]
push eax
push esi
call ebx
cmp eax, 1
jne 0x1007a44c
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x1c], 1
je 0x1007a46e
lea eax, [ebp - 0x20]
push eax
push esi
call ebx
cmp eax, 1
je 0x1007a431
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop ebx
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1010f1c0
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
xor eax, eax
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.1010f1c0
mov esp, ebp
pop ebp
ret

Function at 0x1007a490
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push esi
push ecx
mov dword [ebp - 4], 0
call fcn.1011fd25
push 0x44
mov esi, eax
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.101135a0
add esp, 0x10
mov dword [ebp - 0x74], 0x44
xor eax, eax
mov dword [ebp - 0x48], 1
mov word [ebp - 0x44], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x74]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1007a502
push esi
call fcn.101176a8
add esp, 4
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
push esi
call fcn.101176a8
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add esp, 4
mov ebx, dword [sym.imp.USER32.dll_PeekMessageW]
nop dword [eax]
push 0x64
push dword [ebp - 0x14]
call edi
push 1
push 0
push 0
mov esi, eax
lea eax, [ebp - 0x30]
push 0
push eax
call ebx
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp esi, 0x102
je 0x1007a520
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 4], 0
pop edi
pop ebx
setne al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1007a7e0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x1017cf40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 0x80
push 3
push 0
push 7
mov esi, edx
push 0x80000000
push ecx
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1007a854
push 0x64
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.101135a0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x68]
push str.CreateFileW_faild:_d
push eax
call fcn.10079650
add esp, 0xc
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1010f1c0
mov esp, ebp
pop ebp
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
je 0x1007a842
push ebx
push 4
mov dword [esi], eax
inc eax
push 0x1000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [esi]
mov ebx, eax
inc ecx
push ecx
push 0
push ebx
call fcn.101135a0
add esp, 0xc
mov dword [ebp - 0x6c], 0
lea eax, [ebp - 0x6c]
push 0
push eax
push dword [esi]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1007a8bb
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1010f1c0
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
push 0x1000
inc eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, dword [ebp - 4]
xor eax, eax
pop ebx
pop edi
mov dword [esi], 0
xor ecx, ebp
pop esi
call fcn.1010f1c0
mov esp, ebp
pop ebp
ret