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

Disassembly:
sub esp, 8
mov eax, dword [0x10194008]
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 0x1005fe53
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x1005fe53
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1005fe2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1005fe53
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.100fc499
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.100fc499
add esp, 8
ret 4

Function at 0x1005ff20
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 0x1005ffce
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push 1
push 0
push 0
movlpd qword [esp + 0x28], xmm0
call fcn.1005fe70
test al, al
je 0x1005ffce
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.1005fe70
test al, al
je 0x1005ffce
mov eax, dword [ebp + 8]
xor bl, bl
cmp dword [esp + 0x10], eax
jne 0x1005ffa4
cmp dword [esp + 0x14], edi
jne 0x1005ffa4
mov eax, dword [esi]
test eax, eax
jne 0x1005ff91
xor bl, bl
jmp 0x1005ffa4
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x1005ff8d
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.1005fe70
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 0x10060160
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101325b6
mov eax, dword fs:[0]
push eax
sub esp, 0x64c
mov eax, dword [0x10194008]
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.10005680
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x63c]
push 0x1019a050
mov dword [ebp - 0x63c], 0
call fcn.1000b9f0
mov byte [ebp - 4], 1
mov ecx, 0x1019a054
call fcn.100055f0
test al, al
jne 0x10060209
mov ecx, 0x1019a054
call fcn.10004ba0
lea ecx, [ebp - 0x654]
cmp ecx, eax
je 0x100602cd
mov ecx, 0x1019a054
call fcn.10004ba0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x10060200
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
jmp 0x100602c2
push 0x20c
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.100fe280
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x10060360
xor eax, eax
push 0x412
push eax
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x638]
push eax
call fcn.100fe280
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 0x100602ab
test eax, eax
je 0x100602ab
add eax, eax
cmp eax, 0x412
jae 0x100603a3
xor ecx, ecx
mov word [ebp + eax - 0x638], cx
lea eax, [ebp - 0x638]
push eax
call fcn.100058c0
add esp, 4
push eax
lea eax, [ebp - 0x638]
jmp 0x100602c1
lea eax, [ebp - 0x220]
push eax
call fcn.100058c0
add esp, 4
push eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x654]
call fcn.10004c10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x63c]
call fcn.1000ba20
push ebx
push edi
lea eax, [ebp - 0x654]
mov ecx, esi
push eax
call fcn.100600f0
test al, al
je 0x100602f4
mov bl, 1
jmp 0x10060371
push 0x20c
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.100fe280
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x1006036f
xor eax, eax
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x220]
push eax
call fcn.100058c0
add esp, 4
lea ecx, [ebp - 0x654]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.10004c10
push ebx
push edi
lea eax, [ebp - 0x654]
mov ecx, esi
push eax
call fcn.100600f0
mov bl, al
jmp 0x10060371
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x63c]
call fcn.1000ba20
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x654]
call fcn.10004ab0
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.100fc499
mov esp, ebp
pop ebp
ret 8
call fcn.100fcb19
int3
Function at 0x10066080
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1017fa28
push 0x100fdfa0
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x10194008]
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.10014230
mov ecx, edi
call fcn.100661a0
mov bl, al
mov byte [ebp - 0x431], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x10066113
test bl, bl
jne 0x10066182
cmp edi, 0x1a
jne 0x10066182
mov ecx, esi
call fcn.10014230
push 0x410
push 0
lea eax, [ebp - 0x430]
push eax
call fcn.100fe280
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.100058c0
add esp, 4
push eax
lea eax, [ebp - 0x430]
push eax
mov ecx, esi
call fcn.10004c10
mov ecx, esi
call fcn.100055f0
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.100fc499
mov esp, ebp
pop ebp
ret
Function at 0x10067620
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101333bb
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x10194008]
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 0x10067659
call fcn.100677c0
cmp byte [0x10199458], 0
jne 0x1006766c
mov eax, reloc.gdiplus.dll_Ordinal_1
jmp 0x1006779c
mov eax, dword [esi]
test eax, eax
jne 0x100676ec
push 8
call fcn.100fc4bd
mov edi, eax
add esp, 4
mov dword [ebp - 0x138], edi
mov dword [ebp - 4], 0
push 1
call fcn.100fc4bd
add esp, 4
mov dword [edi + 4], eax
mov byte [eax], 0
lea eax, [ebp - 0x130]
push 0x118
push 0
push eax
call fcn.100fe280
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 0x100676db
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 0x1006778b
call fcn.1005aeb0
test al, al
jne 0x10067726
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esi]
push eax
add ecx, 4
call fcn.1005b3f0
test al, al
je 0x1006778b
mov ecx, dword [esi]
add ecx, 4
call fcn.1005aa00
call fcn.1005aeb0
test al, al
je 0x1006778b
push str.Advapi32.dll
lea ecx, [ebp - 0x150]
call fcn.10008150
mov dword [ebp - 4], 2
lea eax, [ebp - 0x150]
push eax
call fcn.10066350
mov ecx, eax
call fcn.10066410
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x150]
call fcn.10004ab0
test edi, edi
je 0x1006778b
push str.RegOpenCurrentUser
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1006778b
push dword [esi]
push dword [ebp + 8]
call eax
test eax, eax
je 0x1006778b
mov eax, dword [esi]
mov dword [eax], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x1006779a
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.100fc499
mov esp, ebp
pop ebp
ret 4
Function at 0x10069d80
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013392f
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x10194008]
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.1006a4c0
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.10004ab0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.10004ab0
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.10004ab0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.10004ab0
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.10004ab0
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.10004ab0
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 0x1006aa90
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10133b1f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x10194008]
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.10004ab0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.10004ab0
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.10004ab0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.10004ab0
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.10004ab0
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.10004ab0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1006bd70
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10133cbf
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x10194008]
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.10005640
mov dword [ebp - 4], 0
lea eax, [esi + 0x18]
push eax
lea ecx, [edi + 0x18]
call fcn.10005640
mov byte [ebp - 4], 1
lea eax, [esi + 0x30]
push eax
lea ecx, [edi + 0x30]
call fcn.10005640
mov byte [ebp - 4], 2
lea eax, [esi + 0x48]
push eax
lea ecx, [edi + 0x48]
call fcn.10005640
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.10005640
mov byte [ebp - 4], 4
lea eax, [esi + 0x7c]
push eax
lea ecx, [edi + 0x7c]
call fcn.10005640
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 0x10070e70
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101297a8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10194008]
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 0x10070ea7
xor al, al
jmp 0x10070f0a
and esi, 0xffffb1af
push esi
call fcn.100065d0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x10070ec2
mov al, 1
jmp 0x10070f0a
lea ecx, [ebp - 0x28]
call fcn.10005680
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.10071370
test al, al
je 0x10070ef7
push esi
lea ecx, [ebp - 0x28]
call fcn.100065d0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x10070ef7
mov bl, 1
jmp 0x10070ef9
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004ab0
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.100fc499
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101297a8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10194008]
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.100065d0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10070fae
lea ecx, [ebp - 0x28]
call fcn.10005680
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.10071370
test al, al
je 0x10070f9d
lea ecx, [ebp - 0x28]
call fcn.100065d0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004ab0
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.100fc499
mov esp, ebp
pop ebp
ret
Function at 0x10070fd0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101348b0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x10194008]
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.100065d0
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
je 0x10071016
mov al, 1
jmp 0x1007110b
mov ecx, esi
call fcn.100065d0
push eax
lea ecx, [ebp - 0x28]
call fcn.10008150
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10070f30
mov ebx, eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004ab0
cmp ebx, 0xffffffff
jne 0x10071055
xor al, al
jmp 0x1007110b
mov ecx, esi
call fcn.100065d0
push eax
lea ecx, [ebp - 0x28]
call fcn.10008150
mov dword [ebp - 4], 1
xor edx, edx
lea ecx, [ebp - 0x28]
call fcn.10070e70
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004ab0
test bl, bl
je 0x1007104e
mov ecx, esi
call fcn.100065d0
push eax
call edi
test eax, eax
jne 0x1007100f
lea ecx, [ebp - 0x28]
call fcn.10005680
mov dword [ebp - 4], 2
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.10071370
test al, al
je 0x100710cd
lea ecx, [ebp - 0x28]
call fcn.100065d0
push eax
call edi
test eax, eax
je 0x100710cd
mov bl, 1
jmp 0x100710fa
mov ecx, esi
call fcn.100065d0
push eax
lea ecx, [ebp - 0x44]
call fcn.10008150
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 0x2c]
call fcn.10070e70
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.10004ab0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004ab0
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.100fc499
mov esp, ebp
pop ebp
ret
Function at 0x10071130
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x624]
sub esp, 0x624
push 0xffffffffffffffff
push 0x101348e8
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x10194008]
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 0x1019a050
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
call fcn.1000b9f0
mov dword [ebp - 4], 0
mov ecx, 0x1019a054
call fcn.100055f0
test al, al
jne 0x100711ce
mov ecx, 0x1019a054
call fcn.10004ba0
cmp esi, eax
je 0x100711b8
call fcn.10004ba0
mov edx, eax
cmp dword [eax + 0x14], 8
jb 0x100711ad
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
mov ecx, esi
call fcn.10004c10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.1000ba20
mov al, 1
jmp 0x1007128d
push 0x20c
lea eax, [ebp + 0x414]
push 0
push eax
call fcn.100fe280
add esp, 0xc
lea eax, [ebp + 0x414]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x1007127c
xor eax, eax
push 0x412
push eax
mov word [ebp + 0x61e], ax
lea eax, [ebp]
push eax
call fcn.100fe280
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 0x10071260
test eax, eax
je 0x10071260
add eax, eax
cmp eax, 0x412
jae 0x100712ae
xor ecx, ecx
mov word [ebp + eax], cx
lea eax, [ebp]
push eax
call fcn.100058c0
add esp, 4
push eax
lea eax, [ebp]
push eax
jmp 0x100711b1
lea eax, [ebp + 0x414]
push eax
call fcn.100058c0
add esp, 4
push eax
lea eax, [ebp + 0x414]
push eax
jmp 0x100711b1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.1000ba20
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.100fc499
lea esp, [ebp + 0x624]
pop ebp
ret
call fcn.100fcb19
int3

Function at 0x100712c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x10194008]
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.100fe280
add esp, 0xc
lea eax, [esp + 0xc]
mov ecx, esi
push eax
push 0
call fcn.100065d0
push eax
mov ecx, edi
call fcn.100065d0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x10071355
xor eax, eax
mov word [esp + 0x216], ax
lea eax, [esp + 0xc]
push eax
call fcn.100058c0
add esp, 4
mov ecx, ebx
push eax
lea eax, [esp + 0x10]
push eax
call fcn.10004c10
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.100fc499
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100fc499
add esp, 0x210
ret
Function at 0x10071460
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10134918
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x10194008]
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
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edi]
test eax, eax
je 0x100714a6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.100771e0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x100714cf
lea ebx, [esi + 8]
jmp 0x100714d1
xor ebx, ebx
mov ecx, dword [ebp - 0x18]
call fcn.100055f0
test al, al
jne 0x100714e7
mov ecx, dword [ebp - 0x18]
call fcn.100065d0
jmp 0x100714e9
xor eax, eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x1007150a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1007150a
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x10071533
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x10071548
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.100fc94e
add esp, 8
mov dword [ebp - 0x14], 0
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.100fc499
mov esp, ebp
pop ebp
ret 4
Function at 0x10071580
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10134918
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x10194008]
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
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x100715c3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
push ecx
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.100772a0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x100715f0
lea eax, [esi + 8]
mov dword [ebp - 0x18], eax
jmp 0x100715f7
mov dword [ebp - 0x18], 0
mov ecx, ebx
call fcn.100055f0
test al, al
jne 0x1007160b
mov ecx, ebx
call fcn.100065d0
jmp 0x1007160d
xor eax, eax
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
test eax, eax
jne 0x1007165e
call ecx
cmp eax, 5
jne 0x10071658
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebx
call fcn.100055f0
test al, al
jne 0x10071648
mov ecx, ebx
call fcn.100065d0
jmp 0x1007164a
xor eax, eax
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [edi]
test eax, eax
je 0x1007167c
call ecx
cmp eax, 0xb7
jne 0x10071671
mov byte [edi + 5], 1
mov ecx, dword [edi]
call fcn.1005b770
mov eax, dword [edi]
test eax, eax
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x100716a2
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x100716b7
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.100fc94e
add esp, 8
mov dword [ebp - 0x14], 0
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.100fc499
mov esp, ebp
pop ebp
ret 4
Function at 0x100716f0
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x808]
sub esp, 0x808
push 0xffffffffffffffff
push 0x10134950
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10194008]
xor eax, ebp
mov dword [ebp + 0x804], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
lea eax, [ebp + 4]
push eax
push 0x3fe
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x100717b7
lea edi, [ebp + 4]
mov dword [ebp], 0
xor esi, esi
mov dword [ebp - 0x14], edi
mov dword [ebp], esi
mov dword [ebp - 4], esi
cmp ebx, 0x3fe
jbe 0x100717dc
xor ecx, ecx
lea eax, [ebx + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100fcbf3
add esp, 4
mov dword [ebp - 0x14], eax
mov edi, eax
mov esi, edi
mov dword [ebp], esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x100717a3
cmp eax, ebx
ja 0x100717a3
xor ecx, ecx
mov ebx, eax
mov dword [edi + eax*2], ecx
mov dword [ebp - 0x10], ebx
jmp 0x10071800
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x100717b7
push edi
call fcn.100fc9f3
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x804]
xor ecx, ebp
call fcn.100fc499
lea esp, [ebp + 0x808]
pop ebp
ret
lea eax, [ebx + ebx]
cmp eax, 0x800
jae 0x10071873
xor ecx, ecx
mov word [ebp + eax + 4], cx
add eax, 2
cmp eax, 0x800
jae 0x10071873
mov word [ebp + eax + 4], cx
xor ecx, ecx
xor edi, edi
test ebx, ebx
je 0x10071858
mov esi, dword [ebp - 0x14]
mov ebx, 2
mov eax, dword [ebp - 0x10]
cmp word [esi + ebx - 2], 0
jne 0x1007184d
cmp ecx, edi
je 0x1007184d
lea eax, [esi + ecx*2]
push eax
lea ecx, [ebp - 0x30]
call fcn.10008150
mov byte [ebp - 4], 1
lea eax, [ebp - 0x30]
mov ecx, dword [ebp - 0x18]
push eax
call fcn.10021800
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.10004ab0
mov eax, dword [ebp - 0x10]
lea ecx, [edi + 1]
inc edi
add ebx, 2
cmp edi, eax
jb 0x10071813
mov esi, dword [ebp]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x1007186c
push esi
call fcn.100fc9f3
add esp, 4
mov al, 1
jmp 0x100717b9
call fcn.100fcb19
int3