joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1076cf4
Capabilities:
Get common file path
Query environment variable

Disassembly:
push 0x2e0
mov eax, 0x10b9007
call fcn.010aac9f
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2e0], eax
lea eax, [ebp - 0x2d0]
push eax
xor ebx, ebx
push 0x101a200
lea ecx, [ebp - 0x2ec]
mov dword [ebp - 0x2d0], ebx
call fcn.010ab83f
mov dword [ebp - 0x2dc], ebx
mov dword [ebp - 0x2d8], ebx
mov dword [ebp - 0x2d4], ebx
push 0x15
pop ecx
mov esi, 0x101a1a8
lea edi, [ebp - 0xc4]
rep movsd dword es:[edi], dword [esi]
push 9
movsw word es:[edi], word [esi]
pop ecx
push 0xe
mov esi, 0x101a184
lea edi, [ebp - 0x34]
rep movsd dword es:[edi], dword [esi]
pop ecx
xor eax, eax
push 0x206
mov word [ebp - 0x2cc], ax
lea eax, [ebp - 0x2ca]
push ebx
mov esi, 0x101a14c
lea edi, [ebp - 0x6c]
push eax
rep movsd dword es:[edi], dword [esi]
call sub.msvcrt.dll_memset
mov esi, 0x104
add esp, 0xc
cmp dword [ebp + 0xc], esi
jb 0x1076e48
mov edi, dword [ebp - 0x2e0]
cmp edi, ebx
je 0x1076e48
xor eax, eax
push ebx
mov word [edi], ax
push 0x20019
lea eax, [ebp - 0xc4]
push eax
push 0x80000002
lea ecx, [ebp - 0x2dc]
call fcn.01034f65
cmp eax, ebx
jne 0x1076e0d
lea eax, [ebp - 0x2e4]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2cc]
push eax
lea ecx, [ebp - 0x2dc]
mov dword [ebp - 0x2e4], esi
call fcn.01070eee
cmp eax, ebx
jne 0x1076e0d
push dword [ebp + 0xc]
lea eax, [ebp - 0x2cc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x1076e1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1076e19
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x2d0], eax
cmp dword [ebp - 0x2d0], ebx
jge 0x1076e40
push edi
lea eax, [ebp - 0x6c]
push eax
push ebx
push ebx
push 0x802b
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathAndSubDirW]
mov dword [ebp - 0x2d0], eax
mov esi, dword [ebp - 0x2d0]
jmp 0x1076e77
mov eax, dword [section..data]
cmp eax, section..data
je 0x1076e6c
test byte [eax + 0x1c], 4
je 0x1076e6c
push 0x1019d30
push 0x29
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102fea5
mov esi, 0x80070057
mov dword [ebp - 0x2d0], esi
lea ecx, [ebp - 0x2dc]
call fcn.01034ef2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2ec]
call fcn.010ab886
mov eax, esi
call fcn.010aad31
ret 8
Function at 0x1077d70
Capabilities:
Delete file

Disassembly:
push 0x5c
mov eax, 0x10b9331
call fcn.010aac9f
mov esi, ecx
mov dword [ebp - 0x60], esi
mov dword [esi], 0x101be2c
xor ebx, ebx
push ebx
push 0x101be00
lea ecx, [ebp - 0x68]
mov dword [ebp - 4], 2
call fcn.010ab83f
mov eax, dword [esi + 0x70]
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x1077dbb
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi + 0x70], ebx
mov eax, dword [esi + 0x78]
cmp eax, ebx
je 0x1077dc8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x74]
cmp eax, ebx
je 0x1077e3a
push eax
lea ecx, [ebp - 0x5c]
xor edi, edi
mov dword [ebp - 0x58], ebx
call fcn.01077d06
mov eax, dword [ebp - 0x5c]
mov byte [ebp - 4], 4
cmp eax, ebx
je 0x1077e05
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x58]
push edx
push eax
call dword [ecx + 0x44]
mov edi, eax
mov eax, dword [ebp - 0x5c]
cmp eax, ebx
je 0x1077e05
mov dword [ebp - 0x5c], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x74]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp edi, ebx
jl 0x1077e29
cmp dword [ebp - 0x58], ebx
je 0x1077e29
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x58]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x5c]
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x1077e3a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 2
call fcn.010ab886
lea ecx, [esi + 0x5c]
mov byte [ebp - 4], 1
call sub.MFC42u.dll_CString::CString
lea ecx, [esi + 4]
mov byte [ebp - 4], bl
call sub.MFC42u.dll_CPrintInfo::CPrintInfo
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.01077732
call fcn.010aad31
ret

Function at 0x1079431
Capabilities:
Hide graphical window

Disassembly:
push 8
mov eax, 0x10bbc3a
call fcn.010aac2c
mov esi, ecx
push 0
push 0x101c0ec
lea ecx, [ebp - 0x14]
call fcn.010ab83f
and dword [ebp - 4], 0
push 0
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x2000000
push 0
mov ecx, esi
call fcn.010792b7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.010ab886
call fcn.010aad18
ret
Function at 0x1079fcf
Capabilities:
Get graphical window text

Disassembly:
push 0x230
mov eax, 0x10b51d3
call fcn.010aac9f
lea eax, [ebp - 0x220]
push eax
mov esi, ecx
xor edi, edi
push 0x101c438
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x220], edi
call fcn.010ab83f
push edi
push 0xfffffffffffffffa
push dword [esi + 8]
mov dword [ebp - 4], edi
mov dword [ebp - 0x224], edi
call fcn.010abe72
mov ebx, eax
cmp ebx, edi
jne 0x107a061
mov eax, dword [section..data]
cmp eax, section..data
je 0x107a03d
test byte [eax + 0x1c], 4
je 0x107a03d
push 0x101bfd8
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102fea5
mov eax, 0x8000ffff
mov dword [ebp - 0x220], eax
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22c]
call fcn.010ab886
mov eax, esi
call fcn.010aad31
ret
mov eax, dword [esi + 0x18]
cmp eax, edi
je 0x107a0a5
push edi
push 0xfffffffffffffff0
push eax
call fcn.010abe72
test eax, 0x10000000
je 0x107a099
lea eax, [ebp - 0x21c]
push eax
push 0x104
push 0xd
push dword [esi + 0x18]
mov dword [ebp - 0x224], 1
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi + 0x18], edi
mov eax, dword [esi + 0x1c]
cmp eax, edi
je 0x107a0b6
push edi
push eax
call fcn.010ab97e
mov dword [esi + 0x1c], edi
cmp dword [ebp - 0x220], edi
jl 0x107a19f
push edi
lea eax, [ebp - 0x23c]
push eax
mov ecx, esi
call fcn.01079ca1
push eax
call fcn.010abde4
push edi
push edi
push ebx
push edi
push dword [esi + 8]
push 0x64
push 0x7d0
push dword [ebp - 0x230]
push 5
push 0x40000000
push edi
push 0x101c428
push edi
call fcn.010ad356
mov dword [esi + 0x18], eax
mov ebx, 0x80070000
cmp eax, edi
jne 0x107a121
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x107a11b
and eax, 0xffff
or eax, ebx
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], edi
jl 0x107a19f
push edi
push edi
push 0x1000
mov ecx, esi
call fcn.010791ca
push edi
push eax
call fcn.010ac1cf
mov dword [esi + 0x1c], eax
cmp eax, edi
jne 0x107a15c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x107a156
and eax, 0xffff
or eax, ebx
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], edi
jl 0x107a19f
cmp dword [esi + 0x18], edi
je 0x107a181
push edi
push edi
push 0x31
mov ecx, esi
call fcn.010791ca
push edi
push eax
push 0x30
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp - 0x220], edi
jl 0x107a19f
cmp dword [ebp - 0x224], edi
je 0x107a19f
lea eax, [ebp - 0x21c]
push eax
mov ecx, esi
call fcn.010793bf
mov esi, dword [ebp - 0x220]
jmp 0x107a04a
Function at 0x107d604
Capabilities:
Delete registry key

Disassembly:
push 0x78
mov eax, 0x10b982a
call fcn.010aac9f
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.010ab83f
mov dword [ebp - 4], ebx
mov dword [ebp - 0x5c], ebx
cmp edi, ebx
jne 0x107d65b
mov eax, 0x80070057
mov dword [ebp - 0x54], eax
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.010ab886
mov eax, esi
call fcn.010aad31
ret 4
mov ecx, dword [esi + 0x10]
call fcn.0107b1e0
cmp dword [esi + 4], ebx
jne 0x107d66f
mov dword [ebp - 0x54], 0x80070057
cmp dword [ebp - 0x54], ebx
jl 0x107d7a3
mov edi, 0x101cbf0
push edi
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp - 0x54], ebx
jl 0x107d7a3
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.010ac917
cmp eax, ebx
je 0x107d6df
jle 0x107d6b5
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x54], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x107d6df
test byte [eax + 0x1c], 4
je 0x107d6df
push dword [ebp - 0x54]
push 0x101cbdc
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01079051
cmp dword [ebp - 0x54], ebx
jl 0x107d7a3
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x58], ebx
mov eax, dword [ebp - 0x60]
cmp eax, dword [esi + 4]
jae 0x107d755
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.010aca48
cmp eax, ebx
je 0x107d746
jle 0x107d743
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 0x107d6ee
cmp dword [ebp - 0x54], ebx
jl 0x107d7a3
mov ecx, dword [esi + 0x10]
add ecx, 0x58
call fcn.0107c5f1
mov ecx, dword [esi + 0x10]
add ecx, 0x58
mov dword [ebp - 0x58], eax
call fcn.0107c5c3
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.010aca48
push ebx
push esi
lea eax, [ebp - 0x60]
push eax
push esi
push ebx
push 0x1002874
push dword [ebp - 0x64]
call fcn.010aca48
cmp dword [ebp - 0x5c], ebx
je 0x107d7b4
push ebx
push dword [ebp - 0x5c]
call fcn.010ac892
mov dword [ebp - 0x5c], ebx
mov esi, dword [ebp - 0x54]
jmp 0x107d645
Function at 0x10806d2
Capabilities:
Get geographical location

Disassembly:
push 0x2c
mov eax, 0x10b97aa
call fcn.010aac2c
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.010ab83f
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 0x10807c0
add esi, 0x490
mov edi, 0x104
cmp ebx, 0x10
jae 0x10807c0
mov eax, dword [esi - 8]
test eax, eax
jne 0x1080760
push edi
lea eax, [esi + 0x10]
push eax
push dword [esi - 4]
call fcn.0108053d
mov dword [ebp - 0x10], eax
jmp 0x1080784
cmp eax, 1
jne 0x1080784
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 0x1080782
xor eax, eax
mov dword [esi], eax
cmp dword [ebp - 0x10], 0
jl 0x10807b3
lea eax, [ebp - 0x38]
push eax
push dword [esi]
lea eax, [ebp - 0x28]
push dword [esi + 4]
push eax
call fcn.010748a5
mov dword [ebp - 0x10], eax
test eax, eax
jl 0x10807b3
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.01074824
mov dword [ebp - 0x10], eax
inc ebx
add esi, 0x228
cmp dword [ebp - 0x10], 0
jge 0x1080742
mov esi, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.010ab886
mov eax, esi
call fcn.010aad18
ret

Function at 0x1088dab
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0x23c
mov eax, 0x10ba1dc
call fcn.010aac9f
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.010ab83f
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 0x1088e1e
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.01087fcd
xor eax, eax
cmp ax, word [ebp - 0x21c]
je 0x1088ec8
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 0x1088ec8
jle 0x1088e98
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x220], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x1088ec8
test byte [eax + 0x1c], 4
je 0x1088ec8
push dword [ebp - 0x220]
push 0x10212b0
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01079051
mov esi, dword [ebp - 0x220]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x228]
call fcn.010ab886
mov eax, esi
call fcn.010aad31
ret
Function at 0x1089bab
Capabilities:
Enumerate files on windows

Disassembly:
push 0x474
mov eax, 0x10ba2f4
call fcn.010aac9f
mov ebx, dword [ebp + 8]
xor esi, esi
push esi
push 0x10217d4
lea ecx, [ebp - 0x480]
call fcn.010ab83f
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 0x1089d21
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 0x1089d21
push ebx
mov esi, 0x105
push esi
lea eax, [ebp - 0x21c]
push eax
call fcn.01035132
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 0x1089d45
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 0x46c]
and cl, 0x10
xor edi, edi
xor eax, eax
cmp cl, bl
jne 0x1089cad
mov eax, ebx
mov ecx, dword [ebp - 0x46c]
and cl, 2
cmp cl, bl
jne 0x1089cc1
cmp dword [ebp + 0xc], edi
jne 0x1089cc1
mov eax, ebx
cmp eax, edi
jne 0x1089cd8
push edi
lea eax, [ebp - 0x46c]
push eax
call fcn.0108813a
add dword [ebp - 0x470], eax
lea eax, [ebp - 0x46c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1089cfb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x1089d03
mov dword [ebp - 0x478], ebx
cmp dword [ebp - 0x478], edi
je 0x1089c9a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x480]
call fcn.010ab886
mov eax, dword [ebp - 0x470]
jmp 0x1089d56
mov eax, dword [section..data]
cmp eax, section..data
je 0x1089d45
test byte [eax + 0x1c], 8
je 0x1089d45
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.010ab886
xor eax, eax
call fcn.010aad31
ret 8
Function at 0x108bf29
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0x42c
mov eax, 0x10bb946
call fcn.010aac9f
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.010ab83f
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.010614d8
cmp eax, esi
mov dword [ebp - 0x428], eax
jge 0x108bfac
mov dword [ebp - 0x42c], esi
cmp dword [ebp - 0x42c], 1
je 0x108c0ec
lea eax, [ebp - 0x430]
push eax
mov edi, 0x104
push edi
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 0x430], esi
call fcn.010761bd
cmp eax, esi
mov dword [ebp - 0x428], eax
jl 0x108c0c6
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x108c0c6
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
push esi
lea eax, [ebp - 0x21c]
jne 0x108c09b
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp eax, esi
je 0x108c065
jle 0x108c02f
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x428], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x108c0c6
test byte [eax + 0x1c], 4
je 0x108c0c6
push dword [ebp - 0x428]
push 0x10218f8
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01079051
jmp 0x108c0c6
cmp dword [ebp - 0x430], esi
je 0x108c0c6
push edi
lea eax, [ebp - 0x424]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x108c0c6
push 0x9cd1
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHELL32.dll_SHSetLocalizedName]
jmp 0x108c0c0
push dword [ebp + 8]
mov ecx, ebx
push esi
push eax
call fcn.0108af58
cmp eax, esi
mov dword [ebp - 0x428], eax
jl 0x108c0c6
mov ecx, dword [ebx + 0x6c]
lea eax, [ebp - 0x21c]
push eax
call fcn.0108e408
mov dword [ebp - 0x428], eax
cmp dword [ebp - 0x42c], 1
je 0x108c0ec
call sub.MFC42u.dll_AfxGetModuleState
mov eax, dword [eax + 4]
push 0x63
push 1
lea ecx, [eax + 0xc8]
call fcn.01061ae9
mov dword [ebp - 0x428], eax
mov esi, dword [ebp - 0x428]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x438]
call fcn.010ab886
mov eax, esi
call fcn.010aad31
ret 4
Function at 0x108eca2
Capabilities:
Check if file exists

Disassembly:
push 0x14
mov eax, 0x10ba61c
call fcn.010aac2c
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.010ab83f
mov eax, dword [ebp + 8]
mov dword [ebp - 4], edi
cmp eax, edi
jne 0x108ecf0
mov eax, 0x80004003
mov dword [ebp - 0x10], eax
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.010ab886
mov eax, esi
call fcn.010aad18
ret 8
mov dword [eax], edi
cmp dword [esi + 4], edi
jbe 0x108ee10
push 0x14
call fcn.010a8e6d
pop ecx
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
cmp eax, edi
je 0x108ed19
mov ecx, eax
call fcn.0108e1d3
mov ebx, eax
jmp 0x108ed1b
xor ebx, ebx
mov byte [ebp - 4], 0
cmp ebx, edi
je 0x108edee
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
push dword [esi + 4]
mov ecx, ebx
call fcn.0108debb
cmp eax, edi
mov dword [ebp - 0x10], eax
jl 0x108ede6
mov ecx, esi
call fcn.0108e97f
cmp eax, edi
mov dword [ebp - 0x10], eax
jl 0x108ede6
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
cmp dword [esi + 8], edi
jbe 0x108edd1
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 4]
jae 0x108edd1
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 0x108edc4
mov eax, dword [esi + 0xc]
push dword [edi + eax]
call fcn.01076868
cmp eax, 1
jne 0x108ed9d
mov eax, dword [esi + 0xc]
push dword [edi + eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x108edc4
test byte [ebp + 0xc], 1
mov eax, dword [esi + 0xc]
push dword [edi + eax]
mov ecx, ebx
je 0x108edb2
call fcn.0108e061
jmp 0x108edba
push dword [ebp - 0x14]
call fcn.0108df67
mov dword [ebp - 0x10], eax
test eax, eax
jl 0x108edc4
inc dword [ebp - 0x14]
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
xor edi, edi
cmp eax, dword [esi + 8]
jb 0x108ed5f
cmp dword [ebp - 0x10], edi
jl 0x108ede6
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 0x108ee3b
mov dword [ebp - 0x10], 0x8007000e
mov eax, dword [section..data]
cmp eax, section..data
je 0x108ee3b
test byte [eax + 0x1c], 4
je 0x108ee3b
push 0x10220e8
push 0xe
jmp 0x108ee30
mov dword [ebp - 0x10], 0x8000ffff
mov eax, dword [section..data]
cmp eax, section..data
je 0x108ee3b
test byte [eax + 0x1c], 4
je 0x108ee3b
push 0x10220e8
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102fea5
mov esi, dword [ebp - 0x10]
jmp 0x108ecda
Function at 0x108f093
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push 8
mov eax, 0x10bbc3a
call fcn.010aac2c
mov esi, ecx
xor edi, edi
push edi
push 0x1022338
lea ecx, [ebp - 0x14]
mov dword [esi], 0x102230c
call fcn.010ab83f
mov eax, dword [esi + 8]
mov dword [ebp - 4], edi
cmp eax, edi
je 0x108f0e3
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x108f0e3
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 0x108f109
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, dword [esi + 0x218]
cmp ecx, edi
je 0x108f103
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [esi + 0x218], edi
mov eax, dword [esi + 4]
cmp eax, edi
je 0x108f11a
push eax
call fcn.010a8eab
pop ecx
mov dword [esi + 4], edi
mov eax, dword [esi + 8]
cmp eax, edi
je 0x108f12b
push eax
call fcn.010a8eab
pop ecx
mov dword [esi + 8], edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.010ab886
call fcn.010aad18
ret

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

Disassembly:
push 0xc
mov eax, 0x10b974a
call fcn.010aac2c
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.010ab83f
cmp dword [ebp + 8], edi
jne 0x108f208
mov esi, 0x80070057
mov dword [ebp - 0x10], esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.010ab886
mov eax, esi
call fcn.010aad18
ret 8
cmp dword [ebp + 0xc], edi
je 0x108f1ea
cmp dword [ebp - 0x10], edi
jl 0x108f2b3
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 0x108f258
mov dword [ebp - 0x10], 0x80010135
mov eax, dword [section..data]
cmp eax, edi
je 0x108f2b3
test byte [eax + 0x1c], 4
je 0x108f2b3
push ebx
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102fea5
cmp dword [ebp - 0x10], 0
jl 0x108f2b3
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x108f2b3
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x108f2b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x108f28b
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x10], eax
mov eax, dword [section..data]
cmp eax, edi
je 0x108f2ae
test byte [eax + 0x1c], 4
je 0x108f2ae
push dword [ebp - 0x10]
push ebx
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01079051
xor eax, eax
mov word [esi], ax
mov esi, dword [ebp - 0x10]
jmp 0x108f1f2