joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006314f
Capabilities:
Check if file exists

Disassembly:
push 0x8c
mov eax, 0x1024006a
call fcn.10045b3f
mov esi, ecx
xor eax, eax
push 0xf
pop edi
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edi
mov byte [ebp - 0x40], al
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
call fcn.100630c0
xor ebx, ebx
mov ecx, esi
inc ebx
mov byte [ebp - 4], bl
call fcn.1005bd6c
test al, al
jne 0x100631a0
cmp byte [esi + 0x38], al
je 0x100632ab
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 0x100632a9
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x94]
push ecx
lea ecx, [ebp - 0x98]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call fcn.1005553c
add esp, 0xc
cmp dword [ebp - 0x98], 0
je 0x100632a9
cmp dword [ebp - 0x94], 0
jbe 0x100632a9
push dword [ebp - 0x94]
lea ecx, [ebp - 0x40]
mov byte [esi + 0x38], 0
push dword [ebp - 0x98]
call fcn.100215f0
push 0x10
push 0x10
push 0x102b6058
push 0x102b606c
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.10064740
add esp, 0x18
lea ecx, [ebp - 0x40]
push eax
call fcn.1001d9b0
lea ecx, [ebp - 0x58]
call fcn.10003240
mov ecx, esi
call fcn.1005b49d
lea ecx, [ebp - 0x90]
call fcn.1005976d
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x90]
call fcn.1005be27
test al, al
je 0x1006329c
and dword [ebp - 0x48], 0
lea ecx, [ebp - 0x58]
push 9
push str.recordset
mov dword [ebp - 0x44], edi
mov byte [ebp - 0x58], 0
call fcn.100211b0
push esi
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x90]
call fcn.1005b7ae
lea ecx, [ebp - 0x58]
call fcn.10003240
lea ecx, [ebp - 0x90]
call fcn.10059828
jmp 0x100632ab
xor bl, bl
lea ecx, [ebp - 0x28]
call fcn.10021eb0
lea ecx, [ebp - 0x40]
call fcn.10003240
mov al, bl
call fcn.10045ae9
ret
Function at 0x10063526
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6a0
mov eax, dword [0x102cd06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov dword [ebp - 0x69c], esi
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x284]
mov edi, 0x208
push edi
push 0
push eax
call fcn.100a55e0
add esp, 0xc
lea eax, [ebp - 0x284]
mov ebx, 0x104
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 3
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.100d48c0
push edi
lea eax, [ebp - 0x694]
push 0
push eax
call fcn.100a55e0
push edi
lea eax, [ebp - 0x48c]
push 0
push eax
call fcn.100a55e0
xor eax, eax
push 0x64
push eax
mov dword [ebp - 0x698], eax
mov dword [ebp - 0x69c], eax
mov dword [ebp - 0x6a0], eax
lea eax, [ebp - 0x7c]
push eax
call fcn.100a55e0
add esp, 0x30
lea eax, [ebp - 0x48c]
push ebx
push eax
lea eax, [ebp - 0x6a0]
push eax
lea eax, [ebp - 0x69c]
push eax
lea eax, [ebp - 0x698]
push eax
push ebx
lea eax, [ebp - 0x694]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x10063616
push dword [ebp - 0x698]
lea eax, [ebp - 0x7c]
push str._08X
push eax
call fcn.10064120
add esp, 0xc
and dword [esi + 0x10], 0
lea ecx, [ebp - 0x7c]
mov dword [esi + 0x14], 0xf
lea edx, [ecx + 1]
mov byte [esi], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006362a
sub ecx, edx
lea eax, [ebp - 0x7c]
push ecx
push eax
mov ecx, esi
call fcn.100211b0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100451cc
leave
ret

Function at 0x10063650
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2ef0
call fcn.10046610
mov eax, dword [0x102cd06c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push eax
push str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318_sConnection
lea eax, [ebp - 0x7d4]
xor esi, esi
push 0x7d0
push eax
inc esi
call fcn.100189a0
add esp, 0x10
lea eax, [ebp - 0x2ee8]
push eax
push 0x20119
push 0
lea eax, [ebp - 0x7d4]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x100636b1
push 2
pop eax
jmp 0x10063711
lea eax, [ebp - 0x2eec]
mov dword [ebp - 0x2eec], 0x2710
push eax
lea eax, [ebp - 0x2ee4]
push eax
lea eax, [ebp - 0x2ef0]
push eax
push 0
push str.PnpInstanceID
push dword [ebp - 0x2ee8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10063703
push 4
lea eax, [ebp - 0x2ee4]
push str.pci_
push eax
call fcn.100c90b8
add esp, 0xc
neg eax
sbb eax, eax
and esi, eax
push dword [ebp - 0x2ee8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100451cc
leave
ret
Function at 0x1006371e
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2b5c
call fcn.10046610
mov eax, dword [0x102cd06c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x13
pop ecx
mov esi, str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002bE10318
lea edi, [ebp - 0x54]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x2b58]
push eax
push 0x20119
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x54]
xor esi, esi
xor edi, edi
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
inc edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10063773
push 2
pop eax
jmp 0x100638f2
push ebx
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x2b50]
mov dword [ebp - 0x2b50], 0x3e8
push eax
lea eax, [ebp - 0x43c]
mov ebx, esi
push eax
push esi
push dword [ebp - 0x2b58]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100638d3
lea eax, [ebp - 0x2b54]
push eax
push 0x20119
push 0
lea eax, [ebp - 0x43c]
push eax
push dword [ebp - 0x2b58]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100638a7
lea eax, [ebp - 0x2b50]
mov dword [ebp - 0x2b50], 0x2710
push eax
lea eax, [ebp - 0x2b4c]
push eax
lea eax, [ebp - 0x2b5c]
push eax
push 0
push str.NetCfgInstanceId
push dword [ebp - 0x2b54]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1006389f
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x2b4c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10063836
test dl, dl
je 0x10063832
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10063836
add eax, 2
add ecx, 2
test dl, dl
jne 0x10063816
xor eax, eax
jmp 0x1006383a
sbb eax, eax
or eax, edi
test eax, eax
jne 0x1006389f
lea eax, [ebp - 0x2b50]
mov dword [ebp - 0x2b50], 0x2710
push eax
lea eax, [ebp - 0x2b4c]
push eax
lea eax, [ebp - 0x2b5c]
push eax
push 0
push str.MatchingDeviceId
push dword [ebp - 0x2b54]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1006389f
lea eax, [ebp - 0x2b4c]
push eax
push str.MatchingDeviceId:___s__n
call fcn.10064101
push 4
lea eax, [ebp - 0x2b4c]
push str.pci_
push eax
call fcn.100c90b8
add esp, 0x14
test eax, eax
je 0x100638dd
push dword [ebp - 0x2b54]
call esi
xor eax, eax
mov dword [ebp - 0x2b50], 0x3e8
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x2b50]
inc ebx
push eax
lea eax, [ebp - 0x43c]
push eax
push ebx
push dword [ebp - 0x2b58]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x100637aa
jmp 0x100638e7
push dword [ebp - 0x2b54]
call esi
xor edi, edi
push dword [ebp - 0x2b58]
call esi
mov eax, edi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100451cc
leave
ret
Function at 0x10063d98
Capabilities:
Get common file path
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3100
call fcn.10046610
mov eax, dword [0x102cd06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x104
lea eax, [ebp - 0x108]
push esi
xor ebx, ebx
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x3100], edi
call fcn.100a55e0
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.100a55e0
add esp, 0x18
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
movsx eax, byte [ebp - 0x108]
push eax
push str.._c:
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.100189a0
add esp, 0x10
lea eax, [ebp - 0x20c]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10063e2e
mov al, 1
jmp 0x10063f37
push 0x2710
lea eax, [ebp - 0x30ec]
mov dword [ebp - 0x30fc], ebx
push ebx
push eax
call fcn.100a55e0
push 0x3e8
lea eax, [ebp - 0x9dc]
push ebx
push eax
call fcn.100a55e0
push 0x3e8
lea eax, [ebp - 0x5f4]
push ebx
push eax
call fcn.100a55e0
add esp, 0x24
mov dword [ebp - 0x30f0], ebx
lea eax, [ebp - 0x30fc]
mov dword [ebp - 0x30f8], ebx
mov dword [ebp - 0x30f4], ebx
push ebx
push eax
push 0x2710
lea eax, [ebp - 0x30ec]
push eax
push 0xc
lea eax, [ebp - 0x30f8]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x10063eb0
mov bl, 2
jmp 0x10063f2e
lea eax, [ebp - 0x5f4]
push eax
push ebx
push dword [ebp - 0x30dc]
lea eax, [ebp - 0x30ec]
push eax
call fcn.10063f46
lea eax, [ebp - 0x9dc]
push eax
push 1
push dword [ebp - 0x30d4]
lea eax, [ebp - 0x30ec]
push eax
call fcn.10063f46
lea ecx, [ebp - 0x5f4]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10063ef1
sub ecx, edx
lea eax, [ebp - 0x5f4]
push ecx
push eax
mov ecx, edi
call fcn.100625e4
lea edx, [ebp - 0x9dc]
lea edi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x10063f12
mov ecx, dword [ebp - 0x3100]
lea eax, [ebp - 0x9dc]
sub edx, edi
push edx
push eax
call fcn.100625e4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100451cc
leave
ret
Function at 0x10068efe
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, ecx
cmp byte [edx + 4], 0
je 0x10068f2e
push esi
xor esi, esi
cmp dword [edx + 0x3cc], esi
jle 0x10068f2d
mov ecx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
sub edi, ecx
mov al, byte [edi + ecx]
xor byte [ecx], al
inc ecx
inc esi
cmp esi, dword [edx + 0x3cc]
jl 0x10068f1d
pop edi
pop esi
pop ebp
ret 8

Function at 0x1006911c
Capabilities:
Encode data using base64

Disassembly:
push 0x10
mov eax, 0x10240448
call fcn.10045b0b
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov edi, ebx
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], 0xf
mov byte [eax], bl
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], 1
cmp dword [ebp + 0x10], ebx
je 0x100692a7
mov eax, dword [ebp + 0x10]
push 3
pop esi
mov ecx, dword [ebp + 0xc]
dec eax
mov dword [ebp + 0x10], eax
mov al, byte [ecx]
mov byte [ebp + edi - 0x14], al
inc edi
mov dl, byte [ebp - 0x13]
inc ecx
mov dword [ebp + 0xc], ecx
mov ch, byte [ebp - 0x12]
mov cl, byte [ebp - 0x14]
mov byte [ebp - 0xf], ch
mov byte [ebp - 0xd], dl
mov byte [ebp - 0xe], cl
cmp edi, esi
jne 0x100691ed
mov esi, dword [ebp + 8]
mov al, cl
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov edi, ebx
shl cl, 4
mov al, dl
shr al, 4
add cl, al
mov al, ch
mov byte [ebp - 0x17], cl
mov cl, dl
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, ch
and al, 0x3f
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x15], al
cmp dword [0x102cd0b8], 0x10
mov ecx, 0x102cd0a4
movzx eax, byte [ebp + edi - 0x18]
cmovae ecx, dword [0x102cd0a4]
movzx eax, byte [eax + ecx]
mov ecx, esi
push eax
call fcn.1000dff0
inc edi
cmp edi, 4
jl 0x100691b5
mov dl, byte [ebp - 0xd]
mov edi, ebx
mov cl, byte [ebp - 0xe]
mov ch, byte [ebp - 0xf]
push 3
pop esi
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x10069157
mov dword [ebp + 0x10], edi
test edi, edi
je 0x100692a4
mov eax, edi
cmp edi, esi
jge 0x10069223
cmp eax, esi
jae 0x100692ad
mov byte [ebp + eax - 0x14], bl
inc eax
cmp eax, esi
jl 0x1006920b
mov ch, byte [ebp - 0x12]
mov dl, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, dl
shr al, 4
and dl, 0xf
shl cl, 4
add cl, al
shl dl, 2
mov al, ch
mov byte [ebp - 0x17], cl
shr al, 6
and ch, 0x3f
add dl, al
mov byte [ebp - 0x15], ch
lea eax, [edi + 1]
mov byte [ebp - 0x16], dl
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x1006928f
mov esi, dword [ebp + 8]
mov edi, eax
cmp dword [0x102cd0b8], 0x10
mov ecx, 0x102cd0a4
movzx eax, byte [ebp + ebx - 0x18]
cmovae ecx, dword [0x102cd0a4]
movzx eax, byte [eax + ecx]
mov ecx, esi
push eax
call fcn.1000dff0
inc ebx
cmp ebx, edi
jl 0x10069260
mov edi, dword [ebp + 0x10]
push 3
pop esi
cmp edi, esi
jge 0x100692a4
sub esi, edi
mov ecx, dword [ebp + 8]
push 0x3d
call fcn.1000dff0
sub esi, 1
jne 0x10069295
mov eax, dword [ebp + 8]
call fcn.10045ad4
ret
call fcn.10045e89
int3
Function at 0x1006b0e0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
add ecx, 2
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x64]
mov ax, word [edx]
mov word [ebp - 0x6a], ax
add dword [ebp - 0x64], 2
cmp word [ebp - 0x6a], 0
jne 0x1006b0f8
mov ecx, dword [ebp - 0x64]
sub ecx, dword [ebp - 0x68]
sar ecx, 1
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x70]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100219c0
add esp, 4
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
add eax, 1
push eax
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.1001b930
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
add ecx, 1
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.100c7667
add esp, 0xc
mov byte [ebp - 9], 1
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
jmp 0x1006b18f
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 4]
jg 0x1006b1fd
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + eax*2]
cmp edx, 0x5c
jne 0x1006b1fb
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov dx, word [ecx + eax*2]
mov word [ebp - 0x18], dx
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
mov word [edx + ecx*2], ax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1006b1e4
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1006b1e4
mov byte [ebp - 9], 0
jmp 0x1006b1fd
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov dx, word [ebp - 0x18]
mov word [ecx + eax*2], dx
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x14], eax
jmp 0x1006b186
mov eax, dword [ebp - 8]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
push ecx
call fcn.10045361
add esp, 4
mov al, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1006b220
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
add ecx, 1
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x64]
mov al, byte [edx]
mov byte [ebp - 0x69], al
add dword [ebp - 0x64], 1
cmp byte [ebp - 0x69], 0
jne 0x1006b238
mov ecx, dword [ebp - 0x64]
sub ecx, dword [ebp - 0x68]
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x70]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 1
push eax
call fcn.100219c0
add esp, 4
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 4]
add eax, 1
push eax
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.100a55e0
add esp, 0xc
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
add edx, 1
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.1006df00
add esp, 0x10
mov byte [ebp - 9], 1
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
jmp 0x1006b2be
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 4]
jg 0x1006b322
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x10]
movsx ecx, byte [eax]
cmp ecx, 0x5c
jne 0x1006b320
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x10]
mov cl, byte [eax]
mov byte [ebp - 0x15], cl
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x10]
mov byte [eax], 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x1006b30c
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x1006b30c
mov byte [ebp - 9], 0
jmp 0x1006b322
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x10]
mov cl, byte [ebp - 0x15]
mov byte [eax], cl
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x14], eax
jmp 0x1006b2b5
mov eax, dword [ebp - 8]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
push ecx
call fcn.10045361
add esp, 4
mov al, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1006d510
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102409d0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c0
mov eax, dword [0x102cd06c]
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
push 0x67
push 0x6f
push 0x6c
push 0x74
push 0x6e
push 0x65
push 0x74
push 0x6e
push 0x6f
push 0x43
push 0x70
push 0x74
push 0x74
push 0x48
push 0x77
push 0x6f
push 0x68
push 0x53
push str._c_c_c_c_c_c_c_c_c_c_c_c_c_c_c._c_c_c
lea eax, [ebp - 0x28]
push eax
call fcn.10047b56
add esp, 0x50
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.10021db0
mov byte [ebp - 4], 1
push 0x10246c1c
lea ecx, [ebp - 0x40]
call fcn.1001c9c0
push 0x10246c20
lea ecx, [ebp - 0x40]
call fcn.1001c9c0
push 0x102b5bd8
lea ecx, [ebp - 0x40]
call fcn.1001c9c0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
call fcn.1000b000
lea ecx, [ebp - 0x40]
call fcn.1001b580
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1006d633
push 0x208
push 0
lea eax, [ebp - 0x248]
push eax
call fcn.100a55e0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x248]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [ebp - 0x40]
call fcn.10025a30
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x40]
call fcn.1001c9c0
push 0x102b5bd8
lea ecx, [ebp - 0x40]
call fcn.1001c9c0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
call fcn.1000b000
lea ecx, [ebp - 0x40]
call fcn.1001b580
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1006d64f
mov byte [ebp - 0x2ca], 1
jmp 0x1006d656
mov byte [ebp - 0x2ca], 0
mov al, byte [ebp - 0x2ca]
mov byte [ebp - 0x2c9], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.10021eb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10021eb0
mov al, byte [ebp - 0x2c9]
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.100451cc
mov esp, ebp
pop ebp
ret
Function at 0x10075f10
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10240478
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x102cd06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.1001eca0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0x18
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.10073180
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x20]
mov dword [eax + 0x20], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dl, byte [ecx + 0x24]
mov byte [eax + 0x24], dl
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x28]
mov dword [eax + 0x28], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dl, byte [ecx + 0x2c]
mov byte [eax + 0x2c], dl
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x30]
mov dword [eax + 0x30], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x34]
mov dword [eax + 0x34], edx
mov eax, dword [ebp + 8]
add eax, 0x38
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x38
call fcn.10075cd0
mov eax, dword [ebp + 8]
add eax, 0x68
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x68
call fcn.1001eca0
mov eax, dword [ebp + 8]
add eax, 0x80
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x80
call fcn.1001eca0
mov eax, dword [ebp + 8]
add eax, 0x98
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x98
call fcn.1001eca0
mov eax, dword [ebp + 8]
add eax, 0xb0
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xb0
call fcn.1001eca0
mov eax, dword [ebp + 8]
add eax, 0xc8
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xc8
call fcn.1001eca0
mov eax, dword [ebp + 8]
add eax, 0xe0
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xe0
call fcn.1001eca0
mov eax, dword [ebp + 8]
add eax, 0xf8
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xf8
call fcn.1001eca0
mov eax, dword [ebp + 8]
add eax, 0x110
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x110
call fcn.10076170
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10078300
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 0x58], 0
push 1
push 0x2f
mov ecx, dword [ebp - 4]
call fcn.100775e0
push eax
call fcn.100f4160
add esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0x18]
call fcn.10077200
jmp 0x1007834c
lea ecx, [ebp - 0x10]
call fcn.1000d880
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp + 0x18]
call fcn.100774d0
push eax
lea ecx, [ebp - 0x10]
call fcn.1000ace0
movzx ecx, al
test ecx, ecx
je 0x100783a3
push 0x11
lea ecx, [ebp - 0x10]
call fcn.10076580
add eax, 0x18
mov ecx, eax
call fcn.1000dfe0
push eax
push 5
lea ecx, [ebp - 0x10]
call fcn.10076580
mov ecx, eax
call fcn.1000dfe0
push eax
push 2
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.100f0210
add esp, 0x1c
jmp 0x10078344
mov ecx, dword [ebp + 0x10]
call fcn.1000ec30
test eax, eax
jbe 0x100783f1
mov ecx, dword [ebp + 0x10]
call fcn.1000dfe0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x100783f1
push 0x11
mov ecx, dword [ebp + 0x14]
call fcn.1000dfe0
push eax
push 0x10
mov ecx, dword [ebp + 0x10]
call fcn.1000dfe0
push eax
push 0xa
push str.file
push 2
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.100f0210
add esp, 0x24
mov eax, dword [ebp - 8]
push eax
push 0x2728
mov ecx, dword [ebp - 4]
call fcn.100775e0
push eax
call fcn.100f4160
add esp, 0xc
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
call fcn.100777d0
mov edx, dword [ebp - 0x58]
or edx, 1
mov dword [ebp - 0x58], edx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14