joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10071d30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x10182f40]
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.10118ce0
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 0x10071d90
mov ecx, 0x11
mov esi, str.MicrosoftEdgeUser_DataDefault
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x210]
call fcn.10076eb0
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], ax
cmp word [ebp - 0x210], ax
jne 0x10071dd3
xor ecx, ecx
jmp 0x10071def
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10071de0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x210]
mov ecx, ebx
push eax
call fcn.100734f0
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101149a0
mov esp, ebp
pop ebp
ret

Function at 0x10071e20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x10182f40]
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.10118ce0
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 0x10071e80
push esi
mov ecx, 0x12
mov esi, str.MicrosoftEdgeUser_DataFirst_Run
rep movsd dword es:[edi], dword [esi]
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 0x10071eba
xor ecx, ecx
jmp 0x10071ed2
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10071ec3
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.100734f0
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
xor ecx, ebp
pop ebx
call fcn.101149a0
mov esp, ebp
pop ebp
ret
Function at 0x10073250
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov ecx, str.edgeupdate
call fcn.10077040
mov ecx, str.edgeupdatem
call fcn.10077040
mov ecx, str.MicrosoftEdgeElevationService
call fcn.10077040
lea eax, [esp + 0x10]
mov dword [esp + 0x14], 4
push eax
push 0xf003f
push 0
push str.SYSTEMCurrentControlSetServicesedgeupdate
push 0x80000002
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x100732d1
lea eax, [esp + 0x10]
push eax
push str.SYSTEMCurrentControlSetServicesedgeupdate
push 0x80000002
call edi
test eax, eax
jne 0x100732f2
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100732f2
push 4
lea ecx, [esp + 0x18]
push ecx
push 4
push 0
push str.start
push eax
call ebx
push dword [esp + 0x10]
call esi
lea eax, [esp + 0x10]
mov dword [esp + 0x14], 4
push eax
push 0xf003f
push 0
push str.SYSTEMCurrentControlSetServicesedgeupdatem
push 0x80000002
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10073337
lea eax, [esp + 0x10]
push eax
push str.SYSTEMCurrentControlSetServicesedgeupdatem
push 0x80000002
call edi
test eax, eax
jne 0x10073358
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10073358
push 4
lea ecx, [esp + 0x18]
push ecx
push 4
push 0
push str.start
push eax
call ebx
push dword [esp + 0x10]
call esi
lea eax, [esp + 0x10]
mov dword [esp + 0x14], 4
push eax
push 0xf003f
push 0
push str.SYSTEMCurrentControlSetServicesMicrosoftEdgeElevationService
push 0x80000002
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1007339d
lea eax, [esp + 0x10]
push eax
push str.SYSTEMCurrentControlSetServicesMicrosoftEdgeElevationService
push 0x80000002
call edi
test eax, eax
jne 0x100733be
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100733be
push 4
lea ecx, [esp + 0x18]
push ecx
push 4
push 0
push str.start
push eax
call ebx
push dword [esp + 0x10]
call esi
push ecx
mov ecx, str.schtasks.exe__End__TN_MicrosoftEdgeUpdateBrowserReplacementTask
call fcn.10077120
mov ecx, str.schtasks.exe__End__TN_MicrosoftEdgeUpdateTaskMachineCore
call fcn.10077120
mov ecx, str.schtasks.exe__End__TN_MicrosoftEdgeUpdateTaskMachineUA
call fcn.10077120
mov ecx, str.schtasks.exe__Delete__TN_MicrosoftEdgeUpdateBrowserReplacementTask__F
call fcn.10077120
mov ecx, str.schtasks.exe__Delete__TN_MicrosoftEdgeUpdateTaskMachineCore__F
call fcn.10077120
mov ecx, str.schtasks.exe__Delete__TN_MicrosoftEdgeUpdateTaskMachineUA__F
call fcn.10077120
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10074430
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x10182f40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x104
lea eax, [ebp - 0x108]
mov esi, ecx
push 0
push eax
call fcn.10118ce0
add esp, 0xc
mov dword [ebp - 0x10c], 0
lea eax, [ebp - 0x108]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x100744db
lea eax, [ebp - 0x108]
push 0x1016d958
push eax
call fcn.10118890
add esp, 8
test eax, eax
je 0x100744db
push 0
push 0
push 0
mov byte [eax + 1], 0
lea eax, [ebp - 0x10c]
push 0
push eax
push 0
push 0
lea eax, [ebp - 0x108]
mov dword [esi], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x100744db
mov eax, dword [ebp - 0x10c]
mov dword [esi], eax
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101149a0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.101149a0
mov esp, ebp
pop ebp
ret

Function at 0x100744f0
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
push 0x208
push 0
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov dword [ebp - 4], 0x208
xor esi, esi
mov dword [ebp - 8], 0x208
test edi, edi
je 0x10074591
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov esi, eax
test esi, esi
jne 0x10074581
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10074581
cmp dword [ebp - 8], 0x208
ja 0x10074564
mov eax, dword [ebp - 4]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov esi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test esi, esi
pop edi
setne al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100745a0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
mov eax, dword [0x10182f40]
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.10118ce0
push 0x208
lea eax, [esp + 0x228]
mov dword [esp + 0x1c], 0x104
push 0
push eax
call fcn.10118ce0
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 0x10074671
push ecx
lea edx, [esp + 0x21c]
lea ecx, [esp + 0x14]
call fcn.100744f0
add esp, 4
test al, al
je 0x10074671
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x21c]
push eax
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
je 0x10074671
mov edx, dword [esp + 8]
cmp dword [edx], 0
je 0x10074671
mov ecx, edx
sub esi, edx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [esi + ecx - 2], ax
test ax, ax
jne 0x10074645
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov al, 1
pop esi
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.101149a0
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x424]
xor al, al
pop esi
xor ecx, esp
call fcn.101149a0
mov esp, ebp
pop ebp
ret
Function at 0x10074f00
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013cd88
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x10182f40]
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.100753f0
push 0xa
push str.Bookmarks
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], 0
call fcn.10073e70
push str..bak
lea edx, [ebp - 0x5c]
lea ecx, [ebp - 0x2c]
call fcn.10076100
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x10074f68
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x10074f84
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 0x10074fa1
mov eax, dword [edx]
jmp 0x10074fa3
mov eax, edx
mov byte [eax], 0
cmp byte [esi], 0
jne 0x10074faf
xor ecx, ecx
jmp 0x10074fbd
mov ecx, esi
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10074fb4
sub ecx, edi
push ecx
push esi
mov ecx, edx
call fcn.1006f560
lea ecx, [ebp - 0x2c]
call fcn.10076270
add esp, 0x18
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x10074fdd
mov eax, dword [eax]
mov edx, eax
lea ecx, [ebp - 0x44]
call fcn.10076600
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x10075000
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.1006e7d0
mov ecx, dword [ebp - 0x30]
add esp, 8
mov esi, eax
cmp ecx, 0x10
jb 0x1007504b
inc ecx
push ecx
push dword [ebp - 0x44]
lea ecx, [ebp - 0x44]
call fcn.1006d540
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
cmp eax, 8
jb 0x10075072
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.101149a0
mov esp, ebp
pop ebp
ret
Function at 0x10075090
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x10182f40]
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.10118ce0
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 0x100750f0
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.10076eb0
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 0x10075137
xor ecx, ecx
jmp 0x1007514f
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10075140
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.100734f0
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
xor ecx, ebp
pop ebx
call fcn.101149a0
mov esp, ebp
pop ebp
ret
Function at 0x100753f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x10182f40]
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.10118ce0
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 0x10075450
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.10076eb0
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], ax
cmp word [ebp - 0x210], ax
jne 0x10075495
xor ecx, ecx
jmp 0x100754af
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100754a0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x210]
mov ecx, ebx
push eax
call fcn.100734f0
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101149a0
mov esp, ebp
pop ebp
ret
Function at 0x100767c0
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 0x1013d048
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x10182f40]
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.100839b0
push ecx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.100766c0
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 0x1007684b
xor ecx, ecx
jmp 0x1007685f
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10076850
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.100734f0
push 4
push 0x1016e564
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.10073e70
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x1016e570
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.1011ccd1
mov edi, eax
add esp, 8
test edi, edi
jne 0x100768a2
xor bl, bl
jmp 0x10076936
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.101212e9
push edi
call fcn.1011c569
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 0x1007690e
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x1007690e
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 0x10076936
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 0x1007694b
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 0x10076974
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.1006d540
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 0x100769a2
inc ecx
push ecx
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x5c]
call fcn.1006d540
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.101149a0
mov esp, ebp
pop ebp
ret
Function at 0x10076b50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013c4fe
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x10182f40]
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 0x1016d8a8
push ecx
call fcn.1011ccd1
mov edi, eax
add esp, 8
test edi, edi
jne 0x10076b9f
xor al, al
jmp 0x10076cc0
push 2
push 0
push edi
call fcn.1011c8a3
add esp, 0xc
push edi
call fcn.1011c4e8
add esp, 4
lea esi, [eax + 1]
push 0
push 0
push edi
call fcn.1011c8a3
add esp, 0xc
push esi
call fcn.1011cfc7
add esp, 4
mov ebx, eax
push esi
push 0
push ebx
call fcn.10118ce0
add esp, 0xc
push edi
push esi
push 1
push ebx
call fcn.1011cf17
push edi
call fcn.1011c569
add esp, 0x14
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp byte [ebx], 0
jne 0x10076c0a
xor ecx, ecx
jmp 0x10076c19
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10076c10
sub ecx, edx
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.1006f560
push ebx
mov dword [ebp - 4], 0
call fcn.1011cd46
and dword [ebp - 0xa8], 0xfffffe00
add esp, 4
mov dword [ebp - 0xa4], 0
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 2
call fcn.1007e080
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.1007e180
test al, al
lea ecx, [ebp - 0x98]
setne bl
call fcn.1006dc40
lea ecx, [ebp - 0xb0]
call fcn.10080ed0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x10076cbe
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.1006d540
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.101149a0
mov esp, ebp
pop ebp
ret

Function at 0x10076ce0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push 0x1016d8a8
push ecx
mov dword [ebp - 8], edx
call fcn.1011ccd1
mov esi, eax
add esp, 8
mov dword [ebp - 4], esi
test esi, esi
je 0x10076d65
push ebx
push edi
push 2
push 0
push esi
call fcn.1011c8a3
push esi
call fcn.1011c4e8
push 0
push 0
push esi
mov ebx, eax
call fcn.1011c8a3
lea esi, [ebx + 1]
push esi
call fcn.1011cfc7
push esi
mov edi, eax
push 0
push edi
call fcn.10118ce0
mov esi, dword [ebp - 4]
push esi
push ebx
push 1
push edi
call fcn.1011cf17
push esi
call fcn.1011c569
mov ecx, dword [ebp - 8]
add esp, 0x40
push ebx
push edi
call fcn.1006d2a0
push edi
call fcn.1011cd46
add esp, 4
mov al, 1
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10076d70
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 0x1016e570
push ebx
call fcn.1011ccd1
mov edi, eax
add esp, 8
test edi, edi
jne 0x10076dbc
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x10076db6
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x1016e570
push ebx
call fcn.1011ccd1
mov edi, eax
add esp, 8
test edi, edi
jne 0x10076dbc
pop edi
pop esi
xor al, al
pop ebx
ret
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x10076dc7
mov esi, dword [esi]
push edi
push eax
push 1
push esi
call fcn.101212e9
push edi
call fcn.1011c569
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x10076de0
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x10182f40]
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 0x10076e57
push 0x64
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.10118ce0
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.10076250
add esp, 0xc
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101149a0
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 0x10076e8c
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101149a0
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.101149a0
mov esp, ebp
pop ebp
ret
Function at 0x10076eb0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013d0c8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x10182f40]
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 0x10076efa
xor ecx, ecx
jmp 0x10076f0f
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10076f00
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x40]
call fcn.100734f0
push 1
push 3
push ecx
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.10077280
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10076f9f
nop word [eax + eax]
push esi
push ecx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
call fcn.10077200
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 0x10076f74
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.10077280
mov esi, eax
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x10076f9a
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.1006f7f0
cmp esi, 0xffffffff
jne 0x10076f40
push 0
push ebx
call edi
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x10076fb9
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.101149a0
mov esp, ebp
pop ebp
ret