joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005ea90
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10131f70
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x10193008]
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 edi, ecx
call fcn.10005620
test al, al
je 0x1005eacd
xor al, al
jmp 0x1005ec79
mov ecx, edi
call fcn.1005e540
test al, al
je 0x1005eadf
mov al, 1
jmp 0x1005ec79
push 0
mov ecx, edi
call fcn.10006600
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call ebx
test eax, eax
jne 0x1005eb2e
lea ecx, [ebp - 0x28]
call fcn.100056b0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.100710d0
test al, al
je 0x1005eb1f
push 0
lea ecx, [ebp - 0x28]
call fcn.10006600
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004ae0
mov ecx, edi
call fcn.1005e540
test al, al
jne 0x1005ead8
mov ecx, edi
call fcn.10004aa0
xor esi, esi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x1005ec1e
mov ecx, edi
call fcn.10004bd0
mov ebx, eax
mov ecx, dword [ebx + 0x14]
mov eax, ebx
cmp ecx, 8
jb 0x1005eb62
mov eax, dword [ebx]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x1005eb85
mov eax, ebx
cmp ecx, 8
jb 0x1005eb7b
mov eax, dword [ebx]
cmp dx, word [eax + esi*2]
jne 0x1005ec0e
push esi
push 0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.1000e140
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.10005620
test al, al
jne 0x1005ebff
lea ecx, [ebp - 0x28]
call fcn.1005e330
test al, al
jne 0x1005ebff
push 0
lea ecx, [ebp - 0x28]
call fcn.10006600
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1005ebff
lea ecx, [ebp - 0x40]
call fcn.100056b0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.100710d0
test al, al
je 0x1005ebf3
push 0
lea ecx, [ebp - 0x40]
call fcn.10006600
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.10004ae0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004ae0
inc esi
cmp esi, dword [ebp - 0x44]
jb 0x1005eb56
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, edi
call fcn.1005e330
test al, al
jne 0x1005ec72
push 0
mov ecx, edi
call fcn.10006600
push eax
call ebx
test eax, eax
jne 0x1005ec72
lea ecx, [ebp - 0x40]
call fcn.100056b0
mov dword [ebp - 4], 3
lea edx, [ebp - 0x40]
mov ecx, edi
call fcn.100710d0
test al, al
je 0x1005ec63
push 0
lea ecx, [ebp - 0x40]
call fcn.10006600
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10004ae0
mov ecx, edi
call fcn.1005e540
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.100fc1a9
mov esp, ebp
pop ebp
ret
Function at 0x1005f620
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10128e98
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x10193008]
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 eax, dword [esi + 8]
test eax, eax
jne 0x1005f65b
xor al, al
jmp 0x1005f6e2
add eax, 0x20
mov dword [ebp - 0x14], 0
push eax
lea ecx, [ebp - 0x14]
call fcn.1000ba20
mov dword [ebp - 4], 0
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
je 0x1005f6cf
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
lea edi, [esi + 4]
push 1
push edi
call ebx
mov eax, dword [esi + 8]
add eax, 0xc
push eax
push 4
push esi
push 0x1005f200
push 0
push 0
call fcn.1010c441
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
jne 0x1005f6fe
push 0xffffffffffffffff
push edi
call ebx
sub eax, 1
jne 0x1005f6c7
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.1005f390
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.1000ba50
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.100fc1a9
mov esp, ebp
pop ebp
ret
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x1005f716
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x1005f6b6
mov bl, 1
jmp 0x1005f6d1

Function at 0x1005fa60
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x1005fa98
mov edx, dword [esp + 4]
test edx, edx
je 0x1005fa98
cmp dword [eax], 0xffffffff
je 0x1005fa98
mov eax, dword [esp + 0xc]
push 0
push eax
push dword [esp + 0x10]
mov dword [eax], 0
mov eax, dword [ecx]
push edx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1005fa98
mov al, 1
ret 0xc
xor al, al
ret 0xc

Function at 0x1005faa0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx]
push esi
push edi
test eax, eax
je 0x1005fada
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x1005fada
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x1005fada
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push 0
push esi
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1005fada
cmp edi, dword [esi]
jne 0x1005fada
pop edi
mov al, 1
pop esi
ret 0xc
pop edi
xor al, al
pop esi
ret 0xc
Function at 0x1005fb50
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x10193008]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
test eax, eax
je 0x1005fbb3
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x1005fbb3
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1005fb8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1005fbb3
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.100fc1a9
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.100fc1a9
add esp, 8
ret 4

Function at 0x1005fc80
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
je 0x1005fd2e
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push 1
push 0
push 0
movlpd qword [esp + 0x28], xmm0
call fcn.1005fbd0
test al, al
je 0x1005fd2e
mov edi, dword [ebp + 0xc]
lea eax, [esp + 0x10]
push eax
push 0
push edi
push dword [ebp + 8]
xorps xmm0, xmm0
mov ecx, esi
movlpd qword [esp + 0x20], xmm0
call fcn.1005fbd0
test al, al
je 0x1005fd2e
mov eax, dword [ebp + 8]
xor bl, bl
cmp dword [esp + 0x10], eax
jne 0x1005fd04
cmp dword [esp + 0x14], edi
jne 0x1005fd04
mov eax, dword [esi]
test eax, eax
jne 0x1005fcf1
xor bl, bl
jmp 0x1005fd04
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x1005fced
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne bl
lea eax, [esp + 0x10]
xorps xmm0, xmm0
push eax
push 0
push dword [esp + 0x24]
mov ecx, esi
movlpd qword [esp + 0x1c], xmm0
push dword [esp + 0x24]
call fcn.1005fbd0
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1005fec0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10132216
mov eax, dword fs:[0]
push eax
sub esp, 0x64c
mov eax, dword [0x10193008]
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 edi, dword [ebp + 8]
lea ecx, [ebp - 0x654]
mov ebx, dword [ebp + 0xc]
call fcn.100056b0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x63c]
push 0x10199070
mov dword [ebp - 0x63c], 0
call fcn.1000ba20
mov byte [ebp - 4], 1
mov ecx, 0x10199074
call fcn.10005620
test al, al
jne 0x1005ff69
mov ecx, 0x10199074
call fcn.10004bd0
lea ecx, [ebp - 0x654]
cmp ecx, eax
je 0x1006002d
mov ecx, 0x10199074
call fcn.10004bd0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x1005ff60
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
jmp 0x10060022
push 0x20c
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.100fdf90
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x100600c0
xor eax, eax
push 0x412
push eax
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x638]
push eax
call fcn.100fdf90
add esp, 0xc
lea eax, [ebp - 0x638]
push 0x208
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x1006000b
test eax, eax
je 0x1006000b
add eax, eax
cmp eax, 0x412
jae 0x10060103
xor ecx, ecx
mov word [ebp + eax - 0x638], cx
lea eax, [ebp - 0x638]
push eax
call fcn.100058f0
add esp, 4
push eax
lea eax, [ebp - 0x638]
jmp 0x10060021
lea eax, [ebp - 0x220]
push eax
call fcn.100058f0
add esp, 4
push eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x654]
call fcn.10004c40
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x63c]
call fcn.1000ba50
push ebx
push edi
lea eax, [ebp - 0x654]
mov ecx, esi
push eax
call fcn.1005fe50
test al, al
je 0x10060054
mov bl, 1
jmp 0x100600d1
push 0x20c
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.100fdf90
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x100600cf
xor eax, eax
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x220]
push eax
call fcn.100058f0
add esp, 4
lea ecx, [ebp - 0x654]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.10004c40
push ebx
push edi
lea eax, [ebp - 0x654]
mov ecx, esi
push eax
call fcn.1005fe50
mov bl, al
jmp 0x100600d1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x63c]
call fcn.1000ba50
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x654]
call fcn.10004ae0
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.100fc1a9
mov esp, ebp
pop ebp
ret 8
call fcn.100fc829
int3
Function at 0x10065de0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1017e928
push 0x100fdcb0
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x10193008]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x438], edi
mov dword [ebp - 0x43c], esi
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.10013fb0
mov ecx, edi
call fcn.10065f00
mov bl, al
mov byte [ebp - 0x431], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x10065e73
test bl, bl
jne 0x10065ee2
cmp edi, 0x1a
jne 0x10065ee2
mov ecx, esi
call fcn.10013fb0
push 0x410
push 0
lea eax, [ebp - 0x430]
push eax
call fcn.100fdf90
add esp, 0xc
push 0x207
lea eax, [ebp - 0x430]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x430]
push eax
call fcn.100058f0
add esp, 4
push eax
lea eax, [ebp - 0x430]
push eax
mov ecx, esi
call fcn.10004c40
mov ecx, esi
call fcn.10005620
movzx ebx, bl
mov ecx, 1
test al, al
cmove ebx, ecx
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.100fc1a9
mov esp, ebp
pop ebp
ret
Function at 0x10067380
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013301b
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x10193008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi], 0
je 0x100673b9
call fcn.10067520
cmp byte [0x10198478], 0
jne 0x100673cc
mov eax, reloc.gdiplus.dll_Ordinal_1
jmp 0x100674fc
mov eax, dword [esi]
test eax, eax
jne 0x1006744c
push 8
call fcn.100fc1cd
mov edi, eax
add esp, 4
mov dword [ebp - 0x138], edi
mov dword [ebp - 4], 0
push 1
call fcn.100fc1cd
add esp, 4
mov dword [edi + 4], eax
mov byte [eax], 0
lea eax, [ebp - 0x130]
push 0x118
push 0
push eax
call fcn.100fdf90
add esp, 0xc
mov dword [ebp - 0x134], 0x11c
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1006743b
cmp dword [ebp - 0x130], 6
mov eax, dword [edi + 4]
setae cl
mov byte [eax], cl
mov dword [ebp - 4], 0xffffffff
mov dword [esi], edi
mov dword [edi], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x100674eb
call fcn.1005ac10
test al, al
jne 0x10067486
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esi]
push eax
add ecx, 4
call fcn.1005b150
test al, al
je 0x100674eb
mov ecx, dword [esi]
add ecx, 4
call fcn.1005a760
call fcn.1005ac10
test al, al
je 0x100674eb
push str.Advapi32.dll
lea ecx, [ebp - 0x150]
call fcn.10008180
mov dword [ebp - 4], 2
lea eax, [ebp - 0x150]
push eax
call fcn.100660b0
mov ecx, eax
call fcn.10066170
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x150]
call fcn.10004ae0
test edi, edi
je 0x100674eb
push str.RegOpenCurrentUser
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100674eb
push dword [esi]
push dword [ebp + 8]
call eax
test eax, eax
je 0x100674eb
mov eax, dword [esi]
mov dword [eax], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x100674fa
mov dword [eax], reloc.gdiplus.dll_Ordinal_1
mov eax, dword [esi]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100fc1a9
mov esp, ebp
pop ebp
ret 4
Function at 0x10069ae0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013358f
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x10193008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [edi + 4]
push eax
lea ecx, [eax + 0x94]
call fcn.1006a220
mov esi, dword [edi + 4]
add esp, 4
sub esi, 0x94
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.10004ae0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.10004ae0
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.10004ae0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.10004ae0
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.10004ae0
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.10004ae0
mov eax, dword [ebp + 8]
add dword [edi + 4], 0xffffff6c
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x1006a7f0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013377f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x10193008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.10004ae0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.10004ae0
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.10004ae0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.10004ae0
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.10004ae0
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.10004ae0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1006bad0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013391f
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x10193008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
push esi
call fcn.10005670
mov dword [ebp - 4], 0
lea eax, [esi + 0x18]
push eax
lea ecx, [edi + 0x18]
call fcn.10005670
mov byte [ebp - 4], 1
lea eax, [esi + 0x30]
push eax
lea ecx, [edi + 0x30]
call fcn.10005670
mov byte [ebp - 4], 2
lea eax, [esi + 0x48]
push eax
lea ecx, [edi + 0x48]
call fcn.10005670
mov byte [ebp - 4], 3
lea ecx, [edi + 0x64]
mov al, byte [esi + 0x60]
mov byte [edi + 0x60], al
lea eax, [esi + 0x64]
push eax
call fcn.10005670
mov byte [ebp - 4], 4
lea eax, [esi + 0x7c]
push eax
lea ecx, [edi + 0x7c]
call fcn.10005670
mov dword [ebp - 4], 0xffffffff
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 4
Function at 0x10070bd0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10129418
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10193008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
cmp esi, 0xffffffff
jne 0x10070c07
xor al, al
jmp 0x10070c6a
and esi, 0xffffb1af
push esi
call fcn.10006600
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x10070c22
mov al, 1
jmp 0x10070c6a
lea ecx, [ebp - 0x28]
call fcn.100056b0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.100710d0
test al, al
je 0x10070c57
push esi
lea ecx, [ebp - 0x28]
call fcn.10006600
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x10070c57
mov bl, 1
jmp 0x10070c59
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004ae0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100fc1a9
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10129418
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10193008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.10006600
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10070d0e
lea ecx, [ebp - 0x28]
call fcn.100056b0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.100710d0
test al, al
je 0x10070cfd
lea ecx, [ebp - 0x28]
call fcn.10006600
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004ae0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100fc1a9
mov esp, ebp
pop ebp
ret
Function at 0x10070d30
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10134510
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x10193008]
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
call fcn.10006600
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
je 0x10070d76
mov al, 1
jmp 0x10070e6b
mov ecx, esi
call fcn.10006600
push eax
lea ecx, [ebp - 0x28]
call fcn.10008180
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10070c90
mov ebx, eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004ae0
cmp ebx, 0xffffffff
jne 0x10070db5
xor al, al
jmp 0x10070e6b
mov ecx, esi
call fcn.10006600
push eax
lea ecx, [ebp - 0x28]
call fcn.10008180
mov dword [ebp - 4], 1
xor edx, edx
lea ecx, [ebp - 0x28]
call fcn.10070bd0
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004ae0
test bl, bl
je 0x10070dae
mov ecx, esi
call fcn.10006600
push eax
call edi
test eax, eax
jne 0x10070d6f
lea ecx, [ebp - 0x28]
call fcn.100056b0
mov dword [ebp - 4], 2
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.100710d0
test al, al
je 0x10070e2d
lea ecx, [ebp - 0x28]
call fcn.10006600
push eax
call edi
test eax, eax
je 0x10070e2d
mov bl, 1
jmp 0x10070e5a
mov ecx, esi
call fcn.10006600
push eax
lea ecx, [ebp - 0x44]
call fcn.10008180
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 0x2c]
call fcn.10070bd0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.10004ae0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004ae0
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.100fc1a9
mov esp, ebp
pop ebp
ret
Function at 0x10070e90
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x624]
sub esp, 0x624
push 0xffffffffffffffff
push 0x10134548
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x10193008]
xor eax, ebp
mov dword [ebp + 0x620], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x10199070
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
call fcn.1000ba20
mov dword [ebp - 4], 0
mov ecx, 0x10199074
call fcn.10005620
test al, al
jne 0x10070f2e
mov ecx, 0x10199074
call fcn.10004bd0
cmp esi, eax
je 0x10070f18
call fcn.10004bd0
mov edx, eax
cmp dword [eax + 0x14], 8
jb 0x10070f0d
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
mov ecx, esi
call fcn.10004c40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.1000ba50
mov al, 1
jmp 0x10070fed
push 0x20c
lea eax, [ebp + 0x414]
push 0
push eax
call fcn.100fdf90
add esp, 0xc
lea eax, [ebp + 0x414]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x10070fdc
xor eax, eax
push 0x412
push eax
mov word [ebp + 0x61e], ax
lea eax, [ebp]
push eax
call fcn.100fdf90
add esp, 0xc
lea eax, [ebp]
push 0x208
push eax
lea eax, [ebp + 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x10070fc0
test eax, eax
je 0x10070fc0
add eax, eax
cmp eax, 0x412
jae 0x1007100e
xor ecx, ecx
mov word [ebp + eax], cx
lea eax, [ebp]
push eax
call fcn.100058f0
add esp, 4
push eax
lea eax, [ebp]
push eax
jmp 0x10070f11
lea eax, [ebp + 0x414]
push eax
call fcn.100058f0
add esp, 4
push eax
lea eax, [ebp + 0x414]
push eax
jmp 0x10070f11
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.1000ba50
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp + 0x620]
xor ecx, ebp
call fcn.100fc1a9
lea esp, [ebp + 0x624]
pop ebp
ret
call fcn.100fc829
int3

Function at 0x10071020
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x10193008]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
mov ebx, dword [esp + 0x218]
lea eax, [esp + 4]
push esi
push edi
push 0x20c
push 0
push eax
mov esi, edx
mov edi, ecx
call fcn.100fdf90
add esp, 0xc
lea eax, [esp + 0xc]
mov ecx, esi
push eax
push 0
call fcn.10006600
push eax
mov ecx, edi
call fcn.10006600
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x100710b5
xor eax, eax
mov word [esp + 0x216], ax
lea eax, [esp + 0xc]
push eax
call fcn.100058f0
add esp, 4
mov ecx, ebx
push eax
lea eax, [esp + 0x10]
push eax
call fcn.10004c40
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.100fc1a9
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100fc1a9
add esp, 0x210
ret