joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404740
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4614e0
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x49106c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push dword [ebp + 0xc]
call fcn.00406700
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00406140
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4047a5
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4047a5
lea esi, [eax + 1]
jmp 0x4047bb
push 1
push ecx
push dword [ebp + 0x10]
lea eax, [ebp + 0xc]
mov ecx, esi
push eax
push dword [ebp + 8]
call fcn.00403240
mov esi, eax
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov edx, dword [ebp - 0x10]
mov ecx, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4047dc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4047fb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x404860
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x461510
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x49106c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.00407630
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.00407630
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
lea ecx, [esi + 0x30]
call fcn.00409340
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [esi + 0x30]
call fcn.004093f0
cmp byte [ebp - 0x18], 0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
sete bl
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404906
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x40491e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, 2
test bl, bl
cmovne eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4077e0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x811c9dc5
sub edx, edi
sar edx, 1
add edx, edx
je 0x407811
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x407800
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x40e620
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e691
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x40e65f
cmp eax, 2
jne 0x40e67b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x40e68b
test ecx, ecx
je 0x40e686
test cl, 1
jne 0x40e67b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x40e68b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x40e6a0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x49106c]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx + 4]
mov edx, dword [ebp + 8]
or eax, 0x2001f
push esi
push edi
push eax
push edx
push dword [ecx]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.0040e570
mov esi, eax
test esi, esi
jne 0x40e797
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x20]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x100
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
jne 0x40e769
nop dword [eax]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.0040e6a0
mov esi, eax
test esi, esi
jne 0x40e797
lea eax, [esp + 0x20]
mov dword [esp + 8], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
je 0x40e730
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40e780
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
push dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], 0
call fcn.0040e3c0
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40e7a6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0043c397
mov esp, ebp
pop ebp
ret 4
Function at 0x40e840
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x461c00
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x49106c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0
push eax
push 0
lea esi, [ecx + 4]
push ebx
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40e8a4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x10]
xor ecx, ecx
shr eax, 1
mov edx, 2
mov dword [ebp + 8], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043cb8a
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
push edi
push ebx
mov ecx, esi
call fcn.0040e620
test eax, eax
jne 0x40e958
cmp dword [ebp - 0x14], 2
jne 0x40e95c
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ecx, ecx
mov ebx, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043cb8a
mov esi, eax
add esp, 4
mov dword [ebp + 8], esi
push ebx
push esi
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x40e94d
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e927
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp + 0xc]
push esi
call fcn.00406d60
push 2
push esi
call fcn.0043cb7c
add esp, 8
jmp 0x40e97a
push 2
push esi
call fcn.0043cb7c
add esp, 8
xor esi, esi
jmp 0x40e97f
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e961
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp + 0xc]
push edi
call fcn.00406d60
mov esi, 1
push 2
push edi
call fcn.0043cb7c
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40f480
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x461ca8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x49106c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
push edx
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0
call fcn.004061d0
push ecx
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 1
mov ecx, esp
push eax
call fcn.00412420
lea ecx, [ebp - 0x3c]
call fcn.0040f330
add esp, 4
mov byte [ebp - 4], 2
xor esi, esi
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
sub eax, ecx
je 0x40f52a
mov ebx, 0x24
xor edx, edx
mov cl, byte [ecx + esi]
mov eax, esi
div ebx
xor cl, byte [edx + str.7fa6ccf8_f6a6_4da3_9581_e7e841183f59]
movzx eax, cl
lea ecx, [ebp - 0x2c]
push eax
call fcn.00412280
mov eax, dword [ebp - 0x38]
inc esi
mov ecx, dword [ebp - 0x3c]
sub eax, ecx
cmp esi, eax
jb 0x40f502
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
mov ecx, edi
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.004061d0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x40f59c
mov eax, dword [ebp - 0x34]
sub eax, ecx
cmp eax, 0x1000
jb 0x40f57e
test cl, 0x1f
jne 0x40f60f
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40f60f
sub ecx, eax
cmp ecx, 4
jb 0x40f60f
cmp ecx, 0x23
ja 0x40f60f
mov ecx, eax
push ecx
call fcn.0043c392
add esp, 4
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40f5bb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x40f5f1
mov ecx, dword [ebp - 0x2c]
inc eax
cmp eax, 0x1000
jb 0x40f5e8
test cl, 0x1f
jne 0x40f60f
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40f60f
sub ecx, eax
cmp ecx, 4
jb 0x40f60f
cmp ecx, 0x23
ja 0x40f60f
mov ecx, eax
push ecx
call fcn.0043c392
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043c397
mov esp, ebp
pop ebp
ret
call fcn.004457b8
int3
Function at 0x40fb80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x461d96
mov eax, dword fs:[0]
push eax
mov eax, 0x883c
call fcn.0043d5f0
mov eax, dword [0x49106c]
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, edx
mov dword [ebp - 0x8818], ebx
mov edi, ecx
mov dword [ebp - 0x8824], edi
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.0043e860
add esp, 0xc
mov dword [ebp - 0x8840], 0x400
lea eax, [ebp - 0x8848]
mov dword [ebp - 0x883c], 0
mov dword [ebp - 0x8838], 0
mov dword [ebp - 0x8834], 0
push eax
lea eax, [ebp - 0x8828]
mov dword [ebp - 0x881c], 0
push eax
lea eax, [ebp - 0x882c]
mov dword [ebp - 0x8830], 0
push eax
lea eax, [ebp - 0x8830]
mov dword [ebp - 0x882c], 0
push eax
lea eax, [ebp - 0x881c]
mov dword [ebp - 0x8828], 0
push eax
lea eax, [ebp - 0x8834]
mov dword [ebp - 0x8820], 0x3fff
push eax
lea eax, [ebp - 0x8838]
push eax
lea eax, [ebp - 0x883c]
push eax
push 0
lea eax, [ebp - 0x8840]
push eax
lea eax, [ebp - 0x810]
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x40fc8d
xor al, al
jmp 0x40fdc2
mov eax, dword [ebp - 0x881c]
test eax, eax
je 0x40fc86
xor esi, esi
test eax, eax
je 0x40fdc0
xor eax, eax
mov dword [ebp - 0x8820], 0x3fff
push eax
push eax
push eax
push eax
mov word [ebp - 0x8810], ax
lea eax, [ebp - 0x8820]
push eax
lea eax, [ebp - 0x8810]
push eax
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x40fdb3
call fcn.00401640
test eax, eax
je 0x40fde8
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x8814], eax
lea eax, [ebp - 0x8810]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x8814]
call fcn.00407020
test al, al
jne 0x40fd42
lea eax, [ebp - 0x8810]
lea edx, [eax + 2]
nop word [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40fd20
sub eax, edx
lea ecx, [ebp - 0x8814]
sar eax, 1
push eax
lea eax, [ebp - 0x8810]
push eax
call fcn.004076f0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x8814]
mov edi, dword [ebx]
push eax
mov ebx, dword [edi + 4]
push ebx
push edi
call fcn.00412ab0
mov ecx, dword [ebp - 0x8818]
mov edx, dword [ecx + 4]
mov ecx, 0x15555554
sub ecx, edx
cmp ecx, 1
jb 0x40fdde
lea ecx, [edx + 1]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x8818]
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x8814]
mov dword [edi + 4], eax
add edx, 0xfffffff0
mov dword [ebx], eax
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40fda7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x8824]
mov ebx, dword [ebp - 0x8818]
inc esi
cmp esi, dword [ebp - 0x881c]
jb 0x40fca1
mov al, 1
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.0043c397
mov esp, ebp
pop ebp
ret
push str.list_T__too_long
call fcn.0043b2b4
push 0x80004005
call fcn.004012a0
int3
Function at 0x410340
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x461e5b
mov eax, dword fs:[0]
push eax
sub esp, 0x814
mov eax, dword [0x49106c]
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, ecx
mov dword [ebp - 0x818], ebx
mov dword [ebp - 0x820], ebx
mov dword [ebp - 0x81c], 0
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00407630
lea esi, [eax + 0x10]
mov dword [ebx], esi
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 0x81c], 1
push 0
push eax
call fcn.0043e860
mov eax, dword [esi - 0xc]
add esp, 0xc
or edi, 0xffffffff
mov dword [ebp - 0x814], eax
test eax, eax
je 0x410521
js 0x410521
push 0x476b04
push esi
call fcn.0043e2b2
mov esi, eax
add esp, 8
test esi, esi
je 0x410521
mov ecx, dword [ebx]
sub esi, ecx
sar esi, 1
cmp esi, edi
je 0x410521
mov eax, dword [ebp - 0x814]
dec eax
cmp esi, eax
je 0x410521
lea eax, [esi + 1]
test eax, eax
js 0x410433
cmp eax, dword [ecx - 0xc]
jg 0x410433
lea eax, [ecx + eax*2]
push 0x476b08
push eax
call fcn.0043e2b2
add esp, 8
test eax, eax
je 0x410433
sub eax, dword [ebx]
sar eax, 1
jmp 0x410436
or eax, 0xffffffff
sub eax, esi
mov ecx, ebx
inc eax
push eax
push esi
lea eax, [ebp - 0x818]
push eax
call fcn.004063d0
push 0x400
lea eax, [ebp - 0x810]
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x818]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call fcn.00401640
mov ecx, eax
test ecx, ecx
jne 0x41047b
push 0x80004005
call fcn.004012a0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x814], eax
lea eax, [ebp - 0x810]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x814]
call fcn.00407020
test al, al
jne 0x4104d2
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4104b0
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x814]
call fcn.004076f0
mov byte [ebp - 4], 4
mov ecx, ebx
mov esi, dword [ebp - 0x814]
push esi
push edi
call fcn.00412500
lea edx, [esi - 0x10]
mov byte [ebp - 4], 2
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410503
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x41051e
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
or edi, 0xffffffff
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x41053d
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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.0043c397
mov esp, ebp
pop ebp
ret
Function at 0x410560
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x461ea0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x49106c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
mov dword [ebp - 4], 0
mov esi, esp
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00407630
add eax, 0x10
lea ecx, [ebp - 0x14]
mov dword [esi], eax
call fcn.00410340
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
push dword [eax]
call fcn.00406700
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4105de
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4105fc
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4105fc
mov bl, 1
jmp 0x4105fe
xor bl, bl
mov edx, dword [ebp - 0x10]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410618
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x410637
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410650
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x461ee9
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x49106c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
call fcn.00401640
mov ecx, eax
test ecx, ecx
jne 0x4106a3
push 0x80004005
call fcn.004012a0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0x476b0c
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.00407020
test al, al
jne 0x4106d2
push 0
push 0x476b0c
mov ecx, edi
call fcn.004076f0
push 0
mov dword [ebp - 4], 0
push 0
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043cb8a
mov esi, eax
add esp, 4
mov dword [ebp - 0x20], esi
push esi
push dword [ebp - 0x18]
mov dword [ebp - 4], 2
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x410749
test esi, esi
jne 0x41072c
xor ecx, ecx
jmp 0x410740
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410731
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.004076f0
push 0x5c
push dword [edi]
call fcn.0043e7bb
mov ecx, eax
add esp, 8
test ecx, ecx
jne 0x410760
or ecx, 0xffffffff
jmp 0x410764
sub ecx, dword [edi]
sar ecx, 1
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
dec eax
cmp ecx, eax
je 0x41078a
push 1
push 0x476b10
mov ecx, edi
call fcn.00407e40
jmp 0x41078a
push 2
push esi
call fcn.0043cb7c
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4107b0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x461f28
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x49106c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
lea ecx, [ebp - 0x10]
call fcn.00410650
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.0042f6d0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
jne 0x410812
push 0xf
push 0x476b14
lea ecx, [ebp - 0x14]
call fcn.004076f0
mov eax, dword [ebp - 0x14]
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
push eax
call fcn.00407e40
push 1
push 0x476b34
lea ecx, [ebp - 0x10]
call fcn.00407e40
push dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
call fcn.00406700
mov byte [ebp - 4], 2
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x410865
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x410865
push 0x476b38
mov ecx, edi
call fcn.00406700
jmp 0x410875
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00407630
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov edx, dword [ebp - 0x18]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410896
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4108b4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4108d3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret