joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401580
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov edi, ecx
push 1
push 0
lea ebx, [edi + 8]
push ebx
push dword [edi + 0x508]
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0x800
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401600
lea eax, [ebp - 8]
push eax
lea eax, [edi + 0x50c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [edi + 0x408]
push eax
push dword [ebp - 4]
call esi
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4015fa
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
push 1
push 0
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401644
lea eax, [ebp - 8]
push eax
lea eax, [edi + 0x50c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [edi + 0x408]
push eax
push dword [ebp - 4]
call esi
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4015ee
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401d90
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x5d1858]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00401ce0
test eax, eax
je 0x401e49
push esi
push edi
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x404]
push eax
call fcn.00543ea4
push 0x1fc
lea eax, [ebp - 0x200]
push 0
push eax
mov dword [ebp - 0x204], 0
call fcn.00543da0
push dword [ebp + 8]
lea eax, [ebp - 0x204]
push str.Line__d
push eax
call fcn.00543cd5
lea eax, [ebp - 0x404]
add esp, 0x24
mov esi, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401e01
lea edi, [ebp - 0x204]
sub eax, esi
add edi, 0xfffffffe
jmp 0x401e20
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x401e20
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x204]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00543154
mov esp, ebp
pop ebp
ret
Function at 0x402430
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55dcd6
mov eax, dword fs:[0]
push eax
sub esp, 0x618
mov eax, dword [0x5d1858]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x624], ecx
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x618]
push ecx
lea ecx, [ebp - 0x418]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.005442f0
add esp, 0x14
call fcn.0042125e
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4024a8
push 0x80004005
call fcn.004021e0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x620], eax
mov dword [ebp - 4], 0
call fcn.0042125e
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4024db
push 0x80004005
call fcn.004021e0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x61c], eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x618]
push eax
lea eax, [ebp - 0x620]
push str._s_s
push eax
mov byte [ebp - 4], 1
call fcn.00402390
mov esi, dword [ebp - 0x620]
push esi
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x61c]
push 0x5724f0
push eax
call fcn.00402390
mov edi, dword [ebp - 0x61c]
add esp, 0x24
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4025a8
mov ebx, 2
lea ebx, [ebx]
lea eax, [ebp - 0x218]
push eax
push ebx
lea eax, [ebp - 0x618]
push eax
lea eax, [ebp - 0x620]
push str._s___d__s
push eax
call fcn.00402390
mov esi, dword [ebp - 0x620]
push esi
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x61c]
push 0x5724f0
push eax
inc ebx
call fcn.00402390
mov edi, dword [ebp - 0x61c]
add esp, 0x28
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x402550
mov ecx, dword [ebp - 0x624]
lea eax, [ebp - 0x61c]
push eax
call fcn.00401fa0
lea edx, [edi - 0x10]
or edi, 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4025da
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x4025f8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
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.00543154
mov esp, ebp
pop ebp
ret
Function at 0x402620
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, 1
mov eax, dword [esi]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or ecx, eax
jge 0x402649
push 0x104
mov ecx, esi
call fcn.00403570
push 1
push 0x1a
push dword [esi]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, dword [esi]
test eax, eax
jne 0x402661
xor ecx, ecx
jmp 0x402673
push dword [eax - 8]
push eax
call fcn.00544029
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4026b4
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x4026b4
push dword [0x5cc124]
mov dword [eax - 0xc], ecx
mov eax, dword [esi]
xor edx, edx
push str._sEffectExtractorTemporary_
push esi
mov word [eax + ecx*2], dx
call fcn.004020f0
add esp, 0xc
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4026af
push eax
push dword [esi]
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
xor eax, eax
pop esi
pop ebp
ret
push 0x80070057
call fcn.004021e0
int3

Function at 0x4026c0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push 1
push 0x1c
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [0x5cc13c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4026f6
push eax
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push ecx
mov ecx, esp
push esi
call fcn.00401e90
call fcn.00403290
add esp, 4
neg eax
sbb eax, eax
and eax, 0x80004005
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402720
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55dd16
mov eax, dword fs:[0]
push eax
sub esp, 0x410
mov eax, dword [0x5d1858]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push 1
push 0x1c
push ebx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [0x5cc128]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x402782
push eax
push ebx
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push ecx
mov ecx, esp
push ebx
call fcn.00401e90
call fcn.00403290
add esp, 4
test eax, eax
je 0x4027a1
mov eax, 0x80004005
jmp 0x402914
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x410]
push eax
push 0
push 0
push esi
call fcn.005442f0
add esp, 0x14
call fcn.0042125e
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4027d8
push 0x80004005
call fcn.004021e0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 0
call fcn.0042125e
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40280b
push 0x80004005
call fcn.004021e0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x414], eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x418]
push str._s_s
push eax
mov byte [ebp - 4], 1
call fcn.00402390
mov esi, dword [ebp - 0x418]
push esi
push ebx
lea eax, [ebp - 0x414]
push 0x571fe8
push eax
call fcn.00402390
mov edi, dword [ebp - 0x414]
add esp, 0x20
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4028cc
mov esi, 2
jmp 0x402878
mov esi, dword [ebp - 0x41c]
lea eax, [ebp - 0x210]
push eax
push esi
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x418]
push str._s___d__s
push eax
call fcn.00402390
inc esi
mov dword [ebp - 0x41c], esi
mov esi, dword [ebp - 0x418]
push esi
push ebx
lea eax, [ebp - 0x414]
push 0x571fe8
push eax
call fcn.00402390
mov edi, dword [ebp - 0x414]
add esp, 0x24
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x402872
push esi
push ebx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [edi - 0x10]
or edi, 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4028f4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x402912
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
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.00543154
mov esp, ebp
pop ebp
ret
Function at 0x402930
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55dd16
mov eax, dword fs:[0]
push eax
sub esp, 0x410
mov eax, dword [0x5d1858]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push 1
push 0x1c
push ebx
push 0
mov dword [ebp - 0x41c], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [0x5cc140]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x402998
push eax
push ebx
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push ecx
mov ecx, esp
push ebx
call fcn.00401e90
call fcn.00403290
add esp, 4
test eax, eax
je 0x4029b7
mov eax, 0x80004005
jmp 0x402b1a
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push 0
push esi
call fcn.005442f0
add esp, 0x14
call fcn.0042125e
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4029ee
push 0x80004005
call fcn.004021e0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 0
call fcn.0042125e
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x402a21
push 0x80004005
call fcn.004021e0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x414], eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push 0x572498
push eax
mov byte [ebp - 4], 1
call fcn.00402390
mov esi, dword [ebp - 0x418]
push esi
push ebx
lea eax, [ebp - 0x414]
push 0x571fe8
push eax
call fcn.00402390
mov edi, dword [ebp - 0x414]
add esp, 0x1c
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402ad2
mov ebx, 2
nop
push ebx
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push str._s___d_
push eax
call fcn.00402390
mov esi, dword [ebp - 0x418]
push esi
push dword [ebp - 0x41c]
lea eax, [ebp - 0x414]
push 0x571fe8
push eax
inc ebx
call fcn.00402390
mov edi, dword [ebp - 0x414]
add esp, 0x20
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x402a80
mov ebx, dword [ebp - 0x41c]
push esi
push ebx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [edi - 0x10]
or edi, 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x402afa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x402b18
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
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.00543154
mov esp, ebp
pop ebp
ret
Function at 0x402b40
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55dd16
mov eax, dword fs:[0]
push eax
sub esp, 0x410
mov eax, dword [0x5d1858]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push 1
push 0x1c
push ebx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [0x5cc12c]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x402ba2
push eax
push ebx
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push ecx
mov ecx, esp
push ebx
call fcn.00401e90
call fcn.00403290
add esp, 4
test eax, eax
je 0x402bc1
mov eax, 0x80004005
jmp 0x402d34
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x410]
push eax
push 0
push 0
push esi
call fcn.005442f0
add esp, 0x14
call fcn.0042125e
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x402bf8
push 0x80004005
call fcn.004021e0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 0
call fcn.0042125e
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x402c2b
push 0x80004005
call fcn.004021e0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x414], eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x418]
push str._s_s
push eax
mov byte [ebp - 4], 1
call fcn.00402390
mov esi, dword [ebp - 0x418]
push esi
push ebx
lea eax, [ebp - 0x414]
push 0x571fe8
push eax
call fcn.00402390
mov edi, dword [ebp - 0x414]
add esp, 0x20
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402cec
mov esi, 2
jmp 0x402c98
mov esi, dword [ebp - 0x41c]
lea eax, [ebp - 0x210]
push eax
push esi
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x418]
push str._s___d__s
push eax
call fcn.00402390
inc esi
mov dword [ebp - 0x41c], esi
mov esi, dword [ebp - 0x418]
push esi
push ebx
lea eax, [ebp - 0x414]
push 0x571fe8
push eax
call fcn.00402390
mov edi, dword [ebp - 0x414]
add esp, 0x24
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x402c92
push esi
push ebx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [edi - 0x10]
or edi, 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x402d14
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x402d32
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
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.00543154
mov esp, ebp
pop ebp
ret
Function at 0x402d50
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55dd16
mov eax, dword fs:[0]
push eax
sub esp, 0x410
mov eax, dword [0x5d1858]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push 1
push 0x1c
push ebx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [0x5cc130]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x402db2
push eax
push ebx
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push ecx
mov ecx, esp
push ebx
call fcn.00401e90
call fcn.00403290
add esp, 4
test eax, eax
je 0x402dd1
mov eax, 0x80004005
jmp 0x402f44
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x410]
push eax
push 0
push 0
push esi
call fcn.005442f0
add esp, 0x14
call fcn.0042125e
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x402e08
push 0x80004005
call fcn.004021e0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 0
call fcn.0042125e
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x402e3b
push 0x80004005
call fcn.004021e0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x414], eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x418]
push str._s_s
push eax
mov byte [ebp - 4], 1
call fcn.00402390
mov esi, dword [ebp - 0x418]
push esi
push ebx
lea eax, [ebp - 0x414]
push 0x571fe8
push eax
call fcn.00402390
mov edi, dword [ebp - 0x414]
add esp, 0x20
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402efc
mov esi, 2
jmp 0x402ea8
mov esi, dword [ebp - 0x41c]
lea eax, [ebp - 0x210]
push eax
push esi
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x418]
push str._s___d__s
push eax
call fcn.00402390
inc esi
mov dword [ebp - 0x41c], esi
mov esi, dword [ebp - 0x418]
push esi
push ebx
lea eax, [ebp - 0x414]
push 0x571fe8
push eax
call fcn.00402390
mov edi, dword [ebp - 0x414]
add esp, 0x24
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x402ea2
push esi
push ebx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [edi - 0x10]
or edi, 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x402f24
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x402f42
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
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.00543154
mov esp, ebp
pop ebp
ret
Function at 0x402f60
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55dd16
mov eax, dword fs:[0]
push eax
sub esp, 0x410
mov eax, dword [0x5d1858]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push 1
push 0x1c
push ebx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [0x5cc138]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x402fc2
push eax
push ebx
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push ecx
mov ecx, esp
push ebx
call fcn.00401e90
call fcn.00403290
add esp, 4
test eax, eax
je 0x402fe1
mov eax, 0x80004005
jmp 0x403154
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x410]
push eax
push 0
push 0
push esi
call fcn.005442f0
add esp, 0x14
call fcn.0042125e
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x403018
push 0x80004005
call fcn.004021e0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 0
call fcn.0042125e
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40304b
push 0x80004005
call fcn.004021e0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x414], eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x418]
push str._s_s
push eax
mov byte [ebp - 4], 1
call fcn.00402390
mov esi, dword [ebp - 0x418]
push esi
push ebx
lea eax, [ebp - 0x414]
push 0x571fe8
push eax
call fcn.00402390
mov edi, dword [ebp - 0x414]
add esp, 0x20
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40310c
mov esi, 2
jmp 0x4030b8
mov esi, dword [ebp - 0x41c]
lea eax, [ebp - 0x210]
push eax
push esi
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x418]
push str._s___d__s
push eax
call fcn.00402390
inc esi
mov dword [ebp - 0x41c], esi
mov esi, dword [ebp - 0x418]
push esi
push ebx
lea eax, [ebp - 0x414]
push 0x571fe8
push eax
call fcn.00402390
mov edi, dword [ebp - 0x414]
add esp, 0x24
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4030b2
push esi
push ebx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [edi - 0x10]
or edi, 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x403134
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x403152
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
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.00543154
mov esp, ebp
pop ebp
ret
Function at 0x403170
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push 1
push 0x1c
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [0x5cc134]
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4031a6
push eax
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push ecx
mov ecx, esp
push esi
call fcn.00401e90
call fcn.00403290
add esp, 4
neg eax
sbb eax, eax
and eax, 0x80004005
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4031d0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push 1
push 0x2e
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [0x5cc124]
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
push str._EffectExtractor__::GetUnpackRootPath_file_name___s
push 0x41
call fcn.00401d90
add esp, 0xc
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40321d
push eax
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push ecx
mov ecx, esp
push esi
call fcn.00401e90
call fcn.00403290
add esp, 4
test eax, eax
je 0x40327f
push str._EffectExtractor__::GetUnpackRootPath_PermissionDenied
push 0x49
call fcn.00401d90
add esp, 8
push 1
push 5
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [0x5cc124]
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
push str._EffectExtractor__::GetUnpackRootPath_file_name___s
push 0x4e
call fcn.00401d90
add esp, 0xc
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40327f
push eax
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret