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

Disassembly:
push 0x78
mov eax, 0x10b97fa
call fcn.010aacd7
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.010ab86f
mov dword [ebp - 4], ebx
mov dword [ebp - 0x5c], ebx
cmp edi, ebx
jne 0x107d773
mov eax, 0x80070057
mov dword [ebp - 0x54], eax
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.010ab8b6
mov eax, esi
call fcn.010aad69
ret 4
mov ecx, dword [esi + 0x10]
call fcn.0107b2f8
cmp dword [esi + 4], ebx
jne 0x107d787
mov dword [ebp - 0x54], 0x80070057
cmp dword [ebp - 0x54], ebx
jl 0x107d8bb
mov edi, 0x101cbf0
push edi
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp - 0x54], ebx
jl 0x107d8bb
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.010ac947
cmp eax, ebx
je 0x107d7f7
jle 0x107d7cd
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x54], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x107d7f7
test byte [eax + 0x1c], 4
je 0x107d7f7
push dword [ebp - 0x54]
push 0x101cbdc
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0107918f
cmp dword [ebp - 0x54], ebx
jl 0x107d8bb
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x58], ebx
mov eax, dword [ebp - 0x60]
cmp eax, dword [esi + 4]
jae 0x107d86d
push eax
push 0x100c8c8
lea eax, [ebp - 0x50]
push 0x20
push eax
call fcn.0103d988
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.010aca78
cmp eax, ebx
je 0x107d85e
jle 0x107d85b
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 0x107d806
cmp dword [ebp - 0x54], ebx
jl 0x107d8bb
mov ecx, dword [esi + 0x10]
add ecx, 0x58
call fcn.0107c709
mov ecx, dword [esi + 0x10]
add ecx, 0x58
mov dword [ebp - 0x58], eax
call fcn.0107c6db
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.010aca78
push ebx
push esi
lea eax, [ebp - 0x60]
push eax
push esi
push ebx
push 0x1002874
push dword [ebp - 0x64]
call fcn.010aca78
cmp dword [ebp - 0x5c], ebx
je 0x107d8cc
push ebx
push dword [ebp - 0x5c]
call fcn.010ac8c2
mov dword [ebp - 0x5c], ebx
mov esi, dword [ebp - 0x54]
jmp 0x107d75d
Function at 0x10807d7
Capabilities:
Get geographical location

Disassembly:
push 0x2c
mov eax, 0x10b998a
call fcn.010aac64
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.010ab86f
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 0x10808c5
add esi, 0x490
mov edi, 0x104
cmp ebx, 0x10
jae 0x10808c5
mov eax, dword [esi - 8]
test eax, eax
jne 0x1080865
push edi
lea eax, [esi + 0x10]
push eax
push dword [esi - 4]
call fcn.01080642
mov dword [ebp - 0x10], eax
jmp 0x1080889
cmp eax, 1
jne 0x1080889
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 0x1080887
xor eax, eax
mov dword [esi], eax
cmp dword [ebp - 0x10], 0
jl 0x10808b8
lea eax, [ebp - 0x38]
push eax
push dword [esi]
lea eax, [ebp - 0x28]
push dword [esi + 4]
push eax
call fcn.010749f9
mov dword [ebp - 0x10], eax
test eax, eax
jl 0x10808b8
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.01074978
mov dword [ebp - 0x10], eax
inc ebx
add esi, 0x228
cmp dword [ebp - 0x10], 0
jge 0x1080847
mov esi, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.010ab8b6
mov eax, esi
call fcn.010aad50
ret

Function at 0x1088f00
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0x23c
mov eax, 0x10ba11f
call fcn.010aacd7
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.010ab86f
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 0x1088f73
push 0x100
push esi
push esi
push 0x104
push eax
push 0x105
lea eax, [ebp - 0x21c]
push eax
call fcn.01042661
mov ecx, edi
call fcn.01088122
xor eax, eax
cmp ax, word [ebp - 0x21c]
je 0x108901d
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 0x108901d
jle 0x1088fed
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x220], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x108901d
test byte [eax + 0x1c], 4
je 0x108901d
push dword [ebp - 0x220]
push 0x10212b0
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0107918f
mov esi, dword [ebp - 0x220]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x228]
call fcn.010ab8b6
mov eax, esi
call fcn.010aad69
ret
Function at 0x1089d00
Capabilities:
Enumerate files on windows

Disassembly:
push 0x474
mov eax, 0x10ba28d
call fcn.010aacd7
mov ebx, dword [ebp + 8]
xor esi, esi
push esi
push 0x10217d4
lea ecx, [ebp - 0x480]
call fcn.010ab86f
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 0x1089e76
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 0x1089e76
push ebx
mov esi, 0x105
push esi
lea eax, [ebp - 0x21c]
push eax
call fcn.01035128
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.0103d8f7
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 0x1089e9a
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 0x46c]
and cl, 0x10
xor edi, edi
xor eax, eax
cmp cl, bl
jne 0x1089e02
mov eax, ebx
mov ecx, dword [ebp - 0x46c]
and cl, 2
cmp cl, bl
jne 0x1089e16
cmp dword [ebp + 0xc], edi
jne 0x1089e16
mov eax, ebx
cmp eax, edi
jne 0x1089e2d
push edi
lea eax, [ebp - 0x46c]
push eax
call fcn.0108828f
add dword [ebp - 0x470], eax
lea eax, [ebp - 0x46c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1089e50
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x1089e58
mov dword [ebp - 0x478], ebx
cmp dword [ebp - 0x478], edi
je 0x1089def
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x480]
call fcn.010ab8b6
mov eax, dword [ebp - 0x470]
jmp 0x1089eab
mov eax, dword [section..data]
cmp eax, section..data
je 0x1089e9a
test byte [eax + 0x1c], 8
je 0x1089e9a
push 0x10215f0
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102fea5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x480]
call fcn.010ab8b6
xor eax, eax
call fcn.010aad69
ret 8
Function at 0x108c07e
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0x42c
mov eax, 0x10ba3c2
call fcn.010aacd7
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.010ab86f
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.010614e2
cmp eax, esi
mov dword [ebp - 0x428], eax
jge 0x108c101
mov dword [ebp - 0x42c], esi
cmp dword [ebp - 0x42c], 1
je 0x108c241
lea eax, [ebp - 0x430]
push eax
mov edi, 0x104
push edi
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 0x430], esi
call fcn.01076311
cmp eax, esi
mov dword [ebp - 0x428], eax
jl 0x108c21b
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x108c21b
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
push esi
lea eax, [ebp - 0x21c]
jne 0x108c1f0
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp eax, esi
je 0x108c1ba
jle 0x108c184
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x428], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x108c21b
test byte [eax + 0x1c], 4
je 0x108c21b
push dword [ebp - 0x428]
push 0x10218f8
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0107918f
jmp 0x108c21b
cmp dword [ebp - 0x430], esi
je 0x108c21b
push edi
lea eax, [ebp - 0x424]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x108c21b
push 0x9cd1
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHELL32.dll_SHSetLocalizedName]
jmp 0x108c215
push dword [ebp + 8]
mov ecx, ebx
push esi
push eax
call fcn.0108b0ad
cmp eax, esi
mov dword [ebp - 0x428], eax
jl 0x108c21b
mov ecx, dword [ebx + 0x6c]
lea eax, [ebp - 0x21c]
push eax
call fcn.0108e55d
mov dword [ebp - 0x428], eax
cmp dword [ebp - 0x42c], 1
je 0x108c241
call sub.MFC42u.dll_AfxGetModuleState
mov eax, dword [eax + 4]
push 0x63
push 1
lea ecx, [eax + 0xc8]
call fcn.01061af3
mov dword [ebp - 0x428], eax
mov esi, dword [ebp - 0x428]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x438]
call fcn.010ab8b6
mov eax, esi
call fcn.010aad69
ret 4
Function at 0x108edf7
Capabilities:
Check if file exists

Disassembly:
push 0x14
mov eax, 0x10ba67f
call fcn.010aac64
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.010ab86f
mov eax, dword [ebp + 8]
mov dword [ebp - 4], edi
cmp eax, edi
jne 0x108ee45
mov eax, 0x80004003
mov dword [ebp - 0x10], eax
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.010ab8b6
mov eax, esi
call fcn.010aad50
ret 8
mov dword [eax], edi
cmp dword [esi + 4], edi
jbe 0x108ef65
push 0x14
call fcn.010a8ea4
pop ecx
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
cmp eax, edi
je 0x108ee6e
mov ecx, eax
call fcn.0108e328
mov ebx, eax
jmp 0x108ee70
xor ebx, ebx
mov byte [ebp - 4], 0
cmp ebx, edi
je 0x108ef43
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
push dword [esi + 4]
mov ecx, ebx
call fcn.0108e010
cmp eax, edi
mov dword [ebp - 0x10], eax
jl 0x108ef3b
mov ecx, esi
call fcn.0108ead4
cmp eax, edi
mov dword [ebp - 0x10], eax
jl 0x108ef3b
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
cmp dword [esi + 8], edi
jbe 0x108ef26
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 4]
jae 0x108ef26
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 0x108ef19
mov eax, dword [esi + 0xc]
push dword [edi + eax]
call fcn.010769bc
cmp eax, 1
jne 0x108eef2
mov eax, dword [esi + 0xc]
push dword [edi + eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x108ef19
test byte [ebp + 0xc], 1
mov eax, dword [esi + 0xc]
push dword [edi + eax]
mov ecx, ebx
je 0x108ef07
call fcn.0108e1b6
jmp 0x108ef0f
push dword [ebp - 0x14]
call fcn.0108e0bc
mov dword [ebp - 0x10], eax
test eax, eax
jl 0x108ef19
inc dword [ebp - 0x14]
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
xor edi, edi
cmp eax, dword [esi + 8]
jb 0x108eeb4
cmp dword [ebp - 0x10], edi
jl 0x108ef3b
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 0x108ef90
mov dword [ebp - 0x10], 0x8007000e
mov eax, dword [section..data]
cmp eax, section..data
je 0x108ef90
test byte [eax + 0x1c], 4
je 0x108ef90
push 0x10220e8
push 0xe
jmp 0x108ef85
mov dword [ebp - 0x10], 0x8000ffff
mov eax, dword [section..data]
cmp eax, section..data
je 0x108ef90
test byte [eax + 0x1c], 4
je 0x108ef90
push 0x10220e8
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102fea5
mov esi, dword [ebp - 0x10]
jmp 0x108ee2f
Function at 0x108f1e8
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push 8
mov eax, 0x10b6220
call fcn.010aac64
mov esi, ecx
xor edi, edi
push edi
push 0x1022338
lea ecx, [ebp - 0x14]
mov dword [esi], 0x102230c
call fcn.010ab86f
mov eax, dword [esi + 8]
mov dword [ebp - 4], edi
cmp eax, edi
je 0x108f238
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x108f238
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 0x108f25e
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, dword [esi + 0x218]
cmp ecx, edi
je 0x108f258
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [esi + 0x218], edi
mov eax, dword [esi + 4]
cmp eax, edi
je 0x108f26f
push eax
call fcn.010a8ee2
pop ecx
mov dword [esi + 4], edi
mov eax, dword [esi + 8]
cmp eax, edi
je 0x108f280
push eax
call fcn.010a8ee2
pop ecx
mov dword [esi + 8], edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.010ab8b6
call fcn.010aad50
ret

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

Disassembly:
push 0xc
mov eax, 0x10bc48a
call fcn.010aac64
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.010ab86f
cmp dword [ebp + 8], edi
jne 0x108f35d
mov esi, 0x80070057
mov dword [ebp - 0x10], esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.010ab8b6
mov eax, esi
call fcn.010aad50
ret 8
cmp dword [ebp + 0xc], edi
je 0x108f33f
cmp dword [ebp - 0x10], edi
jl 0x108f408
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 0x108f3ad
mov dword [ebp - 0x10], 0x80010135
mov eax, dword [section..data]
cmp eax, edi
je 0x108f408
test byte [eax + 0x1c], 4
je 0x108f408
push ebx
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102fea5
cmp dword [ebp - 0x10], 0
jl 0x108f408
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x108f408
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x108f408
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x108f3e0
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x10], eax
mov eax, dword [section..data]
cmp eax, edi
je 0x108f403
test byte [eax + 0x1c], 4
je 0x108f403
push dword [ebp - 0x10]
push ebx
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0107918f
xor eax, eax
mov word [esi], ax
mov esi, dword [ebp - 0x10]
jmp 0x108f347
Function at 0x108f415
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push 0x10
mov eax, 0x10b95a4
call fcn.010aac64
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.010ab86f
mov dword [ebp - 4], ebx
cmp dword [ebp + 8], ebx
jne 0x108f45f
mov esi, 0x80070057
mov dword [ebp - 0x10], esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.010ab8b6
mov eax, esi
call fcn.010aad50
ret 4
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x108f441
cmp dword [ebp - 0x10], ebx
jl 0x108f4ef
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x108f483
push eax
call fcn.010a8ee2
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.010a8ed2
pop ecx
mov dword [esi + 8], eax
cmp eax, ebx
jne 0x108f4d6
mov eax, dword [section..data]
cmp eax, section..data
je 0x108f4cd
test byte [eax + 0x1c], 4
je 0x108f4cd
push 0x104
push 0x1022238
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0107918f
mov dword [ebp - 0x10], 0x8007000e
jmp 0x108f4ef
push dword [ebp + 8]
lea ecx, [esi + 0xc]
push ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
jne 0x108f4ef
mov dword [ebp - 0x10], 0x80010135
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x108f5d2
push dword [esi + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x108f5d2
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 0x108f594
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 0x108f58b
mov eax, dword [section..data]
cmp eax, section..data
je 0x108f58b
test byte [eax + 0x1c], 4
je 0x108f58b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x108f573
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.0107918f
push ebx
push esi
call fcn.010acc2e
jmp 0x108f5d2
mov eax, dword [section..data]
cmp eax, section..data
je 0x108f5d2
test byte [eax + 0x1c], 4
je 0x108f5d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x108f5ba
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.0107918f
mov esi, dword [ebp - 0x10]
jmp 0x108f449
Function at 0x108ff0b
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push 0x21c
mov eax, 0x10b5d4b
call fcn.010aacd7
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.010ab86f
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 0x108ff8a
mov eax, 0x80004003
mov dword [ebp - 0x21c], eax
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x228]
call fcn.010ab8b6
mov eax, esi
call fcn.010aad69
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 0x108fff3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x108ffc3
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x21c], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x108fff3
test byte [eax + 0x1c], 4
je 0x108fff3
push dword [ebp - 0x21c]
push 0x1022238
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0107918f
cmp dword [ebp - 0x21c], edi
jl 0x10900f7
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 0x1090066
mov dword [ebp - 0x21c], 0x80010135
mov eax, dword [section..data]
cmp eax, section..data
je 0x10900f7
test byte [eax + 0x1c], 4
je 0x10900f7
push 0x1022238
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102fea5
jmp 0x1090087
push 0x100224c
push edi
lea ecx, [ebp - 0x218]
push ecx
push 0x10225c0
push eax
push dword [ebp - 0x220]
call fcn.0103d988
add esp, 0x18
cmp dword [ebp - 0x21c], 0
jl 0x10900f7
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10900f7
push 0
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10900f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10900c7
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x21c], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x10900f7
test byte [eax + 0x1c], 4
je 0x10900f7
push dword [ebp - 0x21c]
push 0x1022238
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0107918f
mov esi, dword [ebp - 0x21c]
jmp 0x108ff71
Function at 0x10901ee
Capabilities:
Read .ini file

Disassembly:
push 0x14
mov eax, 0x10ba67f
call fcn.010aac64
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.010ab86f
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov esi, 0x800
cmp dword [ebp + 8], ebx
jne 0x1090242
mov eax, 0x80004003
mov dword [ebp - 0x10], eax
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.010ab8b6
mov eax, esi
call fcn.010aad50
ret 4
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov dword [ebp - 0x10], eax
test eax, eax
jl 0x109035e
test ebx, ebx
jne 0x10902cf
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.010a8ed2
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10902a3
push dword [edi + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
lea ecx, [esi - 2]
cmp eax, ecx
jne 0x1090298
push dword [ebp - 0x14]
call fcn.010a8ee2
and dword [ebp - 0x14], ebx
pop ecx
add esi, esi
jmp 0x109029b
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x10], 0
jge 0x1090254
jmp 0x10902cf
mov eax, dword [section..data]
cmp eax, section..data
je 0x10902c8
test byte [eax + 0x1c], 4
je 0x10902c8
push esi
push 0x1022238
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0107918f
mov dword [ebp - 0x10], 0x8007000e
cmp dword [ebp - 0x10], 0
jl 0x109034f
mov ecx, dword [ebp - 0x14]
push esi
call fcn.0108fe21
mov dword [ebp - 0x10], eax
test eax, eax
jl 0x109034f
push 8
call fcn.010a8ea4
pop ecx
mov ecx, eax
mov dword [ebp - 0x18], ecx
mov byte [ebp - 4], 1
test ecx, ecx
je 0x1090301
call fcn.0108faac
jmp 0x1090303
xor eax, eax
mov esi, dword [ebp + 8]
mov byte [ebp - 4], 0
mov dword [esi], eax
test eax, eax
jne 0x109033b
mov eax, dword [section..data]
cmp eax, section..data
je 0x1090334
test byte [eax + 0x1c], 4
je 0x1090334
push 0x1022238
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102fea5
mov dword [ebp - 0x10], 0x8007000e
cmp dword [ebp - 0x10], 0
jl 0x109034f
push dword [ebp - 0x14]
mov ecx, dword [esi]
call fcn.0108fbc8
and dword [ebp - 0x14], 0
cmp dword [ebp - 0x14], 0
je 0x109035e
push dword [ebp - 0x14]
call fcn.010a8ee2
pop ecx
mov esi, dword [ebp - 0x10]
jmp 0x109022c