joyce8/EMBER2024-capa huggingface dataset:
Function at 0x107d5f4
Capabilities:
Delete registry key

Disassembly:
push 0x78
mov eax, 0x10b9819
call fcn.010aac8f
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x54]
mov esi, ecx
push eax
xor ebx, ebx
push 0x101ccf8
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x54], ebx
call fcn.010ab82f
mov dword [ebp - 4], ebx
mov dword [ebp - 0x5c], ebx
cmp edi, ebx
jne 0x107d64b
mov eax, 0x80070057
mov dword [ebp - 0x54], eax
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.010ab876
mov eax, esi
call fcn.010aad21
ret 4
mov ecx, dword [esi + 0x10]
call fcn.0107b1d0
cmp dword [esi + 4], ebx
jne 0x107d65f
mov dword [ebp - 0x54], 0x80070057
cmp dword [ebp - 0x54], ebx
jl 0x107d793
mov edi, 0x101cbf0
push edi
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp - 0x54], ebx
jl 0x107d793
push ebx
push ebx
lea eax, [ebp - 0x5c]
push eax
push ebx
push 2
push ebx
push ebx
push ebx
push edi
push dword [ebp - 0x64]
call fcn.010ac907
cmp eax, ebx
je 0x107d6cf
jle 0x107d6a5
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x54], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x107d6cf
test byte [eax + 0x1c], 4
je 0x107d6cf
push dword [ebp - 0x54]
push 0x101cbdc
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01079041
cmp dword [ebp - 0x54], ebx
jl 0x107d793
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x58], ebx
mov eax, dword [ebp - 0x60]
cmp eax, dword [esi + 4]
jae 0x107d745
push eax
push 0x100c8c8
lea eax, [ebp - 0x50]
push 0x20
push eax
call fcn.0103d977
mov esi, dword [esi]
add esi, dword [ebp - 0x58]
add esp, 0x10
push 5
pop ecx
push ebx
push 0x14
lea eax, [ebp - 0x84]
push eax
push 3
push ebx
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x5c]
lea edi, [ebp - 0x84]
rep movsd dword es:[edi], dword [esi]
call fcn.010aca38
cmp eax, ebx
je 0x107d736
jle 0x107d733
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x54], eax
inc dword [ebp - 0x60]
add dword [ebp - 0x58], 0x14
cmp dword [ebp - 0x54], ebx
mov esi, dword [ebp - 0x68]
jge 0x107d6de
cmp dword [ebp - 0x54], ebx
jl 0x107d793
mov ecx, dword [esi + 0x10]
add ecx, 0x58
call fcn.0107c5e1
mov ecx, dword [esi + 0x10]
add ecx, 0x58
mov dword [ebp - 0x58], eax
call fcn.0107c5b3
push ebx
push 4
pop esi
push esi
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x58]
push eax
push esi
push ebx
push 0x1002890
push dword [ebp - 0x64]
call fcn.010aca38
push ebx
push esi
lea eax, [ebp - 0x60]
push eax
push esi
push ebx
push 0x1002874
push dword [ebp - 0x64]
call fcn.010aca38
cmp dword [ebp - 0x5c], ebx
je 0x107d7a4
push ebx
push dword [ebp - 0x5c]
call fcn.010ac882
mov dword [ebp - 0x5c], ebx
mov esi, dword [ebp - 0x54]
jmp 0x107d635
Function at 0x10806c2
Capabilities:
Get geographical location

Disassembly:
push 0x2c
mov eax, 0x10b9799
call fcn.010aac1c
mov esi, ecx
lea eax, [ebp - 0x10]
push eax
xor ebx, ebx
push 0x1020198
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], ebx
call fcn.010ab82f
push 0x2280
lea eax, [esi + 0x488]
push 0x101de08
push eax
mov dword [ebp - 4], ebx
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
xor eax, eax
cmp dword [ebp - 0x10], ebx
mov word [ebp - 0x1a], ax
mov word [ebp - 0x1c], ax
mov word [ebp - 0x1e], ax
mov word [ebp - 0x20], ax
jl 0x10807b0
add esi, 0x490
mov edi, 0x104
cmp ebx, 0x10
jae 0x10807b0
mov eax, dword [esi - 8]
test eax, eax
jne 0x1080750
push edi
lea eax, [esi + 0x10]
push eax
push dword [esi - 4]
call fcn.0108052d
mov dword [ebp - 0x10], eax
jmp 0x1080774
cmp eax, 1
jne 0x1080774
push edi
lea eax, [esi + 0x10]
push eax
push dword [esi - 4]
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
movzx eax, word [ebp - 0x24]
sub eax, dword [esi]
jns 0x1080772
xor eax, eax
mov dword [esi], eax
cmp dword [ebp - 0x10], 0
jl 0x10807a3
lea eax, [ebp - 0x38]
push eax
push dword [esi]
lea eax, [ebp - 0x28]
push dword [esi + 4]
push eax
call fcn.01074895
mov dword [ebp - 0x10], eax
test eax, eax
jl 0x10807a3
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.01074814
mov dword [ebp - 0x10], eax
inc ebx
add esi, 0x228
cmp dword [ebp - 0x10], 0
jge 0x1080732
mov esi, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.010ab876
mov eax, esi
call fcn.010aad08
ret

Function at 0x1088d9b
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0x23c
mov eax, 0x10ba1cb
call fcn.010aac8f
lea eax, [ebp - 0x220]
push eax
mov edi, ecx
xor esi, esi
push 0x1021550
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x220], esi
call fcn.010ab82f
push 0x20a
lea eax, [ebp - 0x21c]
push esi
push eax
mov dword [ebp - 4], esi
call sub.msvcrt.dll_memset
lea eax, [edi + 4]
mov ecx, dword [eax]
add esp, 0xc
push eax
call dword [ecx + 0x14]
cmp eax, esi
je 0x1088e0e
push 0x100
push esi
push esi
push 0x104
push eax
push 0x105
lea eax, [ebp - 0x21c]
push eax
call fcn.01042650
mov ecx, edi
call fcn.01087fbd
xor eax, eax
cmp ax, word [ebp - 0x21c]
je 0x1088eb8
push 0x80
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x244]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x21c]
push 0x54
mov dword [ebp - 0x240], eax
pop eax
mov word [ebp - 0x238], ax
lea eax, [ebp - 0x248]
push eax
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x244], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp eax, esi
je 0x1088eb8
jle 0x1088e88
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x220], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x1088eb8
test byte [eax + 0x1c], 4
je 0x1088eb8
push dword [ebp - 0x220]
push 0x10212b0
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01079041
mov esi, dword [ebp - 0x220]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x228]
call fcn.010ab876
mov eax, esi
call fcn.010aad21
ret
Function at 0x1089b9b
Capabilities:
Enumerate files on windows

Disassembly:
push 0x474
mov eax, 0x10ba2e3
call fcn.010aac8f
mov ebx, dword [ebp + 8]
xor esi, esi
push esi
push 0x10217d4
lea ecx, [ebp - 0x480]
call fcn.010ab82f
push 0x24c
lea eax, [ebp - 0x468]
push esi
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x470], esi
mov dword [ebp - 0x46c], esi
call sub.msvcrt.dll_memset
xor eax, eax
push 0x208
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
mov dword [ebp - 0x478], esi
cmp ebx, esi
je 0x1089d11
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, 0x1007408
push edi
call esi
mov dword [ebp - 0x474], 0x102
sub dword [ebp - 0x474], eax
push ebx
call esi
cmp eax, dword [ebp - 0x474]
jg 0x1089d11
push ebx
mov esi, 0x105
push esi
lea eax, [ebp - 0x21c]
push eax
call fcn.01035122
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push edi
push esi
lea eax, [ebp - 0x21c]
push eax
call fcn.0103d8e6
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1089d35
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 0x46c]
and cl, 0x10
xor edi, edi
xor eax, eax
cmp cl, bl
jne 0x1089c9d
mov eax, ebx
mov ecx, dword [ebp - 0x46c]
and cl, 2
cmp cl, bl
jne 0x1089cb1
cmp dword [ebp + 0xc], edi
jne 0x1089cb1
mov eax, ebx
cmp eax, edi
jne 0x1089cc8
push edi
lea eax, [ebp - 0x46c]
push eax
call fcn.0108812a
add dword [ebp - 0x470], eax
lea eax, [ebp - 0x46c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1089ceb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x1089cf3
mov dword [ebp - 0x478], ebx
cmp dword [ebp - 0x478], edi
je 0x1089c8a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x480]
call fcn.010ab876
mov eax, dword [ebp - 0x470]
jmp 0x1089d46
mov eax, dword [section..data]
cmp eax, section..data
je 0x1089d35
test byte [eax + 0x1c], 8
je 0x1089d35
push 0x10215f0
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102fe95
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x480]
call fcn.010ab876
xor eax, eax
call fcn.010aad21
ret 8
Function at 0x108bf19
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0x42c
mov eax, 0x10bb935
call fcn.010aac8f
lea eax, [ebp - 0x428]
push eax
mov ebx, ecx
xor esi, esi
push 0x1021d0c
lea ecx, [ebp - 0x438]
mov dword [ebp - 0x428], esi
call fcn.010ab82f
xor eax, eax
push 0x208
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push esi
push eax
mov dword [ebp - 4], esi
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x42c], esi
call sub.MFC42u.dll_AfxGetModuleState
mov eax, dword [eax + 4]
push 0x63
lea ecx, [ebp - 0x42c]
push ecx
lea ecx, [eax + 0xc8]
call fcn.010614c6
cmp eax, esi
mov dword [ebp - 0x428], eax
jge 0x108bf9c
mov dword [ebp - 0x42c], esi
cmp dword [ebp - 0x42c], 1
je 0x108c0dc
lea eax, [ebp - 0x430]
push eax
mov edi, 0x104
push edi
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 0x430], esi
call fcn.010761ad
cmp eax, esi
mov dword [ebp - 0x428], eax
jl 0x108c0b6
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x108c0b6
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
push esi
lea eax, [ebp - 0x21c]
jne 0x108c08b
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp eax, esi
je 0x108c055
jle 0x108c01f
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x428], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x108c0b6
test byte [eax + 0x1c], 4
je 0x108c0b6
push dword [ebp - 0x428]
push 0x10218f8
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01079041
jmp 0x108c0b6
cmp dword [ebp - 0x430], esi
je 0x108c0b6
push edi
lea eax, [ebp - 0x424]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x108c0b6
push 0x9cd1
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHELL32.dll_SHSetLocalizedName]
jmp 0x108c0b0
push dword [ebp + 8]
mov ecx, ebx
push esi
push eax
call fcn.0108af48
cmp eax, esi
mov dword [ebp - 0x428], eax
jl 0x108c0b6
mov ecx, dword [ebx + 0x6c]
lea eax, [ebp - 0x21c]
push eax
call fcn.0108e3f8
mov dword [ebp - 0x428], eax
cmp dword [ebp - 0x42c], 1
je 0x108c0dc
call sub.MFC42u.dll_AfxGetModuleState
mov eax, dword [eax + 4]
push 0x63
push 1
lea ecx, [eax + 0xc8]
call fcn.01061ad7
mov dword [ebp - 0x428], eax
mov esi, dword [ebp - 0x428]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x438]
call fcn.010ab876
mov eax, esi
call fcn.010aad21
ret 4
Function at 0x108ec92
Capabilities:
Check if file exists

Disassembly:
push 0x14
mov eax, 0x10ba60b
call fcn.010aac1c
mov esi, ecx
lea eax, [ebp - 0x10]
push eax
xor edi, edi
push 0x1022204
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], edi
call fcn.010ab82f
mov eax, dword [ebp + 8]
mov dword [ebp - 4], edi
cmp eax, edi
jne 0x108ece0
mov eax, 0x80004003
mov dword [ebp - 0x10], eax
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.010ab876
mov eax, esi
call fcn.010aad08
ret 8
mov dword [eax], edi
cmp dword [esi + 4], edi
jbe 0x108ee00
push 0x14
call fcn.010a8e5e
pop ecx
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
cmp eax, edi
je 0x108ed09
mov ecx, eax
call fcn.0108e1c3
mov ebx, eax
jmp 0x108ed0b
xor ebx, ebx
mov byte [ebp - 4], 0
cmp ebx, edi
je 0x108edde
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
push dword [esi + 4]
mov ecx, ebx
call fcn.0108deab
cmp eax, edi
mov dword [ebp - 0x10], eax
jl 0x108edd6
mov ecx, esi
call fcn.0108e96f
cmp eax, edi
mov dword [ebp - 0x10], eax
jl 0x108edd6
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
cmp dword [esi + 8], edi
jbe 0x108edc1
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 4]
jae 0x108edc1
mov edi, dword [ebp - 0x18]
mov eax, dword [esi + 0xc]
shl edi, 2
push dword [edi + eax]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x108edb4
mov eax, dword [esi + 0xc]
push dword [edi + eax]
call fcn.01076858
cmp eax, 1
jne 0x108ed8d
mov eax, dword [esi + 0xc]
push dword [edi + eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x108edb4
test byte [ebp + 0xc], 1
mov eax, dword [esi + 0xc]
push dword [edi + eax]
mov ecx, ebx
je 0x108eda2
call fcn.0108e051
jmp 0x108edaa
push dword [ebp - 0x14]
call fcn.0108df57
mov dword [ebp - 0x10], eax
test eax, eax
jl 0x108edb4
inc dword [ebp - 0x14]
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
xor edi, edi
cmp eax, dword [esi + 8]
jb 0x108ed4f
cmp dword [ebp - 0x10], edi
jl 0x108edd6
push dword [ebp + 8]
mov eax, dword [ebx]
push 0x1002c00
push ebx
call dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
jmp 0x108ee2b
mov dword [ebp - 0x10], 0x8007000e
mov eax, dword [section..data]
cmp eax, section..data
je 0x108ee2b
test byte [eax + 0x1c], 4
je 0x108ee2b
push 0x10220e8
push 0xe
jmp 0x108ee20
mov dword [ebp - 0x10], 0x8000ffff
mov eax, dword [section..data]
cmp eax, section..data
je 0x108ee2b
test byte [eax + 0x1c], 4
je 0x108ee2b
push 0x10220e8
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102fe95
mov esi, dword [ebp - 0x10]
jmp 0x108ecca
Function at 0x108f083
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push 8
mov eax, 0x10bbc29
call fcn.010aac1c
mov esi, ecx
xor edi, edi
push edi
push 0x1022338
lea ecx, [ebp - 0x14]
mov dword [esi], 0x102230c
call fcn.010ab82f
mov eax, dword [esi + 8]
mov dword [ebp - 4], edi
cmp eax, edi
je 0x108f0d3
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x108f0d3
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or eax, 2
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [esi + 0x218]
cmp ecx, edi
je 0x108f0f9
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, dword [esi + 0x218]
cmp ecx, edi
je 0x108f0f3
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [esi + 0x218], edi
mov eax, dword [esi + 4]
cmp eax, edi
je 0x108f10a
push eax
call fcn.010a8e9c
pop ecx
mov dword [esi + 4], edi
mov eax, dword [esi + 8]
cmp eax, edi
je 0x108f11b
push eax
call fcn.010a8e9c
pop ecx
mov dword [esi + 8], edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.010ab876
call fcn.010aad08
ret

Function at 0x108f1b1
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0xc
mov eax, 0x10b9739
call fcn.010aac1c
mov esi, ecx
lea eax, [ebp - 0x10]
push eax
xor edi, edi
push 0x1022378
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], edi
call fcn.010ab82f
cmp dword [ebp + 8], edi
jne 0x108f1f8
mov esi, 0x80070057
mov dword [ebp - 0x10], esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.010ab876
mov eax, esi
call fcn.010aad08
ret 8
cmp dword [ebp + 0xc], edi
je 0x108f1da
cmp dword [ebp - 0x10], edi
jl 0x108f2a3
push dword [ebp + 0xc]
add esi, 0xc
push dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov edi, section..data
mov ebx, 0x1022238
test eax, eax
jne 0x108f248
mov dword [ebp - 0x10], 0x80010135
mov eax, dword [section..data]
cmp eax, edi
je 0x108f2a3
test byte [eax + 0x1c], 4
je 0x108f2a3
push ebx
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102fe95
cmp dword [ebp - 0x10], 0
jl 0x108f2a3
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x108f2a3
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x108f2a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x108f27b
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x10], eax
mov eax, dword [section..data]
cmp eax, edi
je 0x108f29e
test byte [eax + 0x1c], 4
je 0x108f29e
push dword [ebp - 0x10]
push ebx
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01079041
xor eax, eax
mov word [esi], ax
mov esi, dword [ebp - 0x10]
jmp 0x108f1e2
Function at 0x108f2b0
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push 0x10
mov eax, 0x10b99b9
call fcn.010aac1c
mov esi, ecx
lea eax, [ebp - 0x10]
push eax
xor ebx, ebx
push 0x10223a0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], ebx
call fcn.010ab82f
mov dword [ebp - 4], ebx
cmp dword [ebp + 8], ebx
jne 0x108f2fa
mov esi, 0x80070057
mov dword [ebp - 0x10], esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.010ab876
mov eax, esi
call fcn.010aad08
ret 4
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x108f2dc
cmp dword [ebp - 0x10], ebx
jl 0x108f38a
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x108f31e
push eax
call fcn.010a8e9c
pop ecx
mov dword [esi + 8], ebx
xor ecx, ecx
push 2
pop edx
mov eax, 0x104
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.010a8e8c
pop ecx
mov dword [esi + 8], eax
cmp eax, ebx
jne 0x108f371
mov eax, dword [section..data]
cmp eax, section..data
je 0x108f368
test byte [eax + 0x1c], 4
je 0x108f368
push 0x104
push 0x1022238
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01079041
mov dword [ebp - 0x10], 0x8007000e
jmp 0x108f38a
push dword [ebp + 8]
lea ecx, [esi + 0xc]
push ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
jne 0x108f38a
mov dword [ebp - 0x10], 0x80010135
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x108f46d
push dword [esi + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x108f46d
push ebx
push 2
push 2
push ebx
push ebx
push 0x40000000
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x108f42f
push ebx
lea eax, [ebp + 8]
push eax
push 2
lea eax, [ebp - 0x14]
push eax
push esi
mov dword [ebp - 0x14], 0xfeff
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x108f426
mov eax, dword [section..data]
cmp eax, section..data
je 0x108f426
test byte [eax + 0x1c], 4
je 0x108f426
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x108f40e
and eax, 0xffff
or eax, 0x80070000
push eax
mov eax, dword [section..data]
push 0x1022238
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01079041
push ebx
push esi
call fcn.010acbee
jmp 0x108f46d
mov eax, dword [section..data]
cmp eax, section..data
je 0x108f46d
test byte [eax + 0x1c], 4
je 0x108f46d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x108f455
and eax, 0xffff
or eax, 0x80070000
push eax
mov eax, dword [section..data]
push 0x1022238
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01079041
mov esi, dword [ebp - 0x10]
jmp 0x108f2e4
Function at 0x108fda6
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push 0x21c
mov eax, 0x10b5c6f
call fcn.010aac8f
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x21c]
push eax
xor edi, edi
push 0x10225d4
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], edi
call fcn.010ab82f
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
cmp esi, edi
jne 0x108fe25
mov eax, 0x80004003
mov dword [ebp - 0x21c], eax
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x228]
call fcn.010ab876
mov eax, esi
call fcn.010aad21
ret 4
push 0x208
push edi
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
push 1
push 0x1c
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, edi
jne 0x108fe8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x108fe5e
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x21c], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x108fe8e
test byte [eax + 0x1c], 4
je 0x108fe8e
push dword [ebp - 0x21c]
push 0x1022238
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01079041
cmp dword [ebp - 0x21c], edi
jl 0x108ff92
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x100224c
call esi
mov edi, 0x1002238
push edi
mov ebx, eax
call esi
add ebx, eax
lea eax, [ebp - 0x218]
push eax
call esi
lea ecx, [eax + ebx + 3]
mov eax, 0x104
cmp ecx, eax
jle 0x108ff01
mov dword [ebp - 0x21c], 0x80010135
mov eax, dword [section..data]
cmp eax, section..data
je 0x108ff92
test byte [eax + 0x1c], 4
je 0x108ff92
push 0x1022238
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102fe95
jmp 0x108ff22
push 0x100224c
push edi
lea ecx, [ebp - 0x218]
push ecx
push 0x10225c0
push eax
push dword [ebp - 0x220]
call fcn.0103d977
add esp, 0x18
cmp dword [ebp - 0x21c], 0
jl 0x108ff92
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x108ff92
push 0
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x108ff92
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x108ff62
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x21c], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x108ff92
test byte [eax + 0x1c], 4
je 0x108ff92
push dword [ebp - 0x21c]
push 0x1022238
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01079041
mov esi, dword [ebp - 0x21c]
jmp 0x108fe0c
Function at 0x1090089
Capabilities:
Read .ini file

Disassembly:
push 0x14
mov eax, 0x10ba60b
call fcn.010aac1c
mov edi, ecx
lea eax, [ebp - 0x10]
push eax
xor ebx, ebx
push 0x102265c
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], ebx
call fcn.010ab82f
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov esi, 0x800
cmp dword [ebp + 8], ebx
jne 0x10900dd
mov eax, 0x80004003
mov dword [ebp - 0x10], eax
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.010ab876
mov eax, esi
call fcn.010aad08
ret 4
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov dword [ebp - 0x10], eax
test eax, eax
jl 0x10901f9
test ebx, ebx
jne 0x109016a
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.010a8e8c
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x109013e
push dword [edi + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
lea ecx, [esi - 2]
cmp eax, ecx
jne 0x1090133
push dword [ebp - 0x14]
call fcn.010a8e9c
and dword [ebp - 0x14], ebx
pop ecx
add esi, esi
jmp 0x1090136
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x10], 0
jge 0x10900ef
jmp 0x109016a
mov eax, dword [section..data]
cmp eax, section..data
je 0x1090163
test byte [eax + 0x1c], 4
je 0x1090163
push esi
push 0x1022238
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01079041
mov dword [ebp - 0x10], 0x8007000e
cmp dword [ebp - 0x10], 0
jl 0x10901ea
mov ecx, dword [ebp - 0x14]
push esi
call fcn.0108fcbc
mov dword [ebp - 0x10], eax
test eax, eax
jl 0x10901ea
push 8
call fcn.010a8e5e
pop ecx
mov ecx, eax
mov dword [ebp - 0x18], ecx
mov byte [ebp - 4], 1
test ecx, ecx
je 0x109019c
call fcn.0108f947
jmp 0x109019e
xor eax, eax
mov esi, dword [ebp + 8]
mov byte [ebp - 4], 0
mov dword [esi], eax
test eax, eax
jne 0x10901d6
mov eax, dword [section..data]
cmp eax, section..data
je 0x10901cf
test byte [eax + 0x1c], 4
je 0x10901cf
push 0x1022238
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102fe95
mov dword [ebp - 0x10], 0x8007000e
cmp dword [ebp - 0x10], 0
jl 0x10901ea
push dword [ebp - 0x14]
mov ecx, dword [esi]
call fcn.0108fa63
and dword [ebp - 0x14], 0
cmp dword [ebp - 0x14], 0
je 0x10901f9
push dword [ebp - 0x14]
call fcn.010a8e9c
pop ecx
mov esi, dword [ebp - 0x10]
jmp 0x10900c7