joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001d503
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x618
lea ebp, [esp - 4]
mov eax, dword [0x100598e8]
xor eax, ebp
mov dword [ebp + 0x618], eax
push 0x10
mov eax, 0x1004802b
call fcn.1003177f
mov eax, dword [ebp + 0x628]
mov edi, dword [ebp + 0x624]
mov dword [ebp - 0x14], eax
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp + 0x208], ax
xor ebx, ebx
lea eax, [ebp + 0x20a]
push ebx
push eax
call fcn.10031310
xor eax, eax
push esi
mov word [ebp + 0x410], ax
lea eax, [ebp + 0x412]
push ebx
push eax
call fcn.10031310
xor eax, eax
push esi
mov word [ebp], ax
lea eax, [ebp + 2]
push ebx
push eax
call fcn.10031310
xor esi, esi
inc esi
add esp, 0x24
lea ecx, [ebp - 0xd]
mov dword [ebp - 0x1c], 0x208
mov dword [ebp - 0x18], esi
call fcn.100234df
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x14], ebx
je 0x1001d63d
cmp dword [ebp + 0x62c], ebx
je 0x1001d63d
mov dword [edi], esi
push dword [0x1005cbc4]
mov ecx, 0x1005bb10
call fcn.100187d0
call fcn.1000d142
cmp eax, ebx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x410]
push eax
lea eax, [ebp - 0x18]
push eax
je 0x1001d66e
push 0x1004ae98
push 0x1004ae18
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp eax, ebx
jne 0x1001d63d
xor eax, eax
cmp ax, word [ebp + 0x410]
je 0x1001d63d
lea eax, [ebp + 0x410]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x1001d63d
lea eax, [ebp + 0x410]
push eax
push str._ay_r_t
push dword [ebp + 0x62c]
push dword [ebp - 0x14]
call fcn.1000e4ec
add esp, 0x10
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1001d6d4
lea ecx, [ebp - 0xd]
or dword [ebp - 4], 0xffffffff
call fcn.1003b3f2
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 + 0x618]
xor ecx, ebp
call fcn.10031770
add ebp, 0x61c
leave
ret
push 0x1004e3a8
push 0x1004cbb8
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp eax, ebx
jne 0x1001d63d
xor eax, eax
cmp ax, word [ebp + 0x410]
je 0x1001d63d
lea eax, [ebp + 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [ebp - 0xd]
test eax, eax
je 0x1001d640
lea eax, [ebp]
push eax
lea eax, [ebp + 0x418]
push eax
call fcn.10024529
cmp eax, ebx
je 0x1001d63d
lea eax, [ebp]
push eax
push str._ay_r_t
push dword [ebp + 0x62c]
push dword [ebp - 0x14]
call fcn.1000e4ec
add esp, 0x10
push 0x1004c55c
push 0x1005bd1c
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push dword [ebp - 0x14]
lea eax, [ebp + 0x208]
push eax
call fcn.10032b93
pop ecx
pop ecx
test eax, eax
je 0x1001d702
mov dword [edi], ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd]
call fcn.1003b3f2
mov eax, esi
jmp 0x1001d64b
Function at 0x1001d900
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
test esi, esi
jne 0x1001d911
push 0xd
pop eax
jmp 0x1001d93e
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x1001d914
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8

Function at 0x1001dea5
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x100598e8]
xor eax, ebp
mov dword [ebp + 0x198], eax
mov eax, dword [ebp + 0x1a4]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.1000da6a
mov ebx, eax
cmp ebx, esi
je 0x1001df15
lea ecx, [ebp - 0x70]
call fcn.1000d9f5
mov eax, ebx
mov ecx, dword [ebp + 0x198]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10031770
add ebp, 0x19c
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x1001df2d
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x70]
call fcn.1001dea5
cmp eax, esi
jne 0x1001df5f
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], pe_nt_image_headers32
call ebx
test eax, eax
je 0x1001df1d
lea ecx, [ebp - 0x70]
call fcn.1000d9f5
push dword [ebp - 0x78]
mov ecx, edi
call fcn.1001d8a5
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.1000d9f5
mov eax, esi
jmp 0x1001defb
Function at 0x10020ad8
Capabilities:
Read .ini file

Disassembly:
push 4
mov eax, 0x100484a5
call fcn.1003177f
mov esi, ecx
mov ecx, dword [0x1005cb6c]
xor ebx, ebx
cmp ecx, ebx
je 0x10020b89
mov dword [ebp - 0x10], ebx
mov eax, dword [ecx]
lea edx, [ebp - 0x10]
push edx
push 0x1004b06c
mov dword [ebp - 4], ebx
call dword [eax + 0x30]
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x10020b7b
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, 0xd
mov eax, dword [ebp - 0x10]
jb 0x10020b7b
mov ecx, dword [eax]
push 1
push 0x1004eac8
mov edi, 0x1004eab4
push edi
push eax
call dword [ecx + 0xe4]
push ebx
push 0x1004eaac
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0xe4]
push ebx
push 0x1004eaa4
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 0x1004ea98
push eax
call dword [ecx + 0xe4]
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x10020bc8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x10020bc8
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x10020b89
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 1
push 0x1004eac8
mov edi, 0x1004eab4
push edi
call ebx
push dword [ebp + 8]
mov dword [esi + 4], eax
push 0
push 0x1004eaac
push edi
call ebx
push dword [ebp + 8]
mov dword [esi + 8], eax
push 0
push 0x1004eaa4
push 0x1004ea98
call ebx
mov dword [esi + 0xc], eax
call fcn.10031857
ret 4
Function at 0x10020d72
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x100598e8]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 0x18
mov eax, 0x1004830d
call fcn.1003177f
mov eax, dword [ebp + 0x420]
mov esi, dword [ebp + 0x41c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x424]
mov dword [ebp - 0x20], eax
mov eax, dword [0x100591c4]
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], eax
xor ebx, ebx
inc ebx
push ebx
lea eax, [ebp - 0x10]
push 0x1004c0bc
push eax
mov dword [ebp - 4], edi
call fcn.10010895
push 0x410
lea eax, [ebp]
push edi
push eax
call fcn.10031310
push ebx
push 0x208
lea eax, [ebp]
push eax
push dword [esi + 0xc]
push dword [esi + 0x858]
call fcn.100113fc
add esp, 0x2c
lea eax, [ebp]
push eax
lea ecx, [esi + 0x884]
call fcn.1001015c
mov eax, dword [esi + 0x858]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, 3
jb 0x10020f50
mov ecx, dword [esi + 0x850]
mov eax, dword [esi + 0x858]
mov edx, dword [eax]
lea edi, [ebp - 0x1c]
push edi
push ecx
lea ecx, [ebp]
push ecx
push dword [esi + 0x87c]
push dword [esi + 0xc]
push eax
call dword [edx + 0x3c]
mov dword [esi + 0x890], eax
mov eax, dword [esi + 0x858]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, 0x10
jb 0x10020e80
mov ecx, dword [esi + 0x854]
test ecx, ecx
je 0x10020e80
push dword [esi + 0xc]
mov eax, dword [esi + 0x858]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0xf8]
test eax, eax
je 0x10020e80
mov dword [esi + 0xd50], ebx
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
lea eax, [esi + 0x860]
mov edi, 0x200
push edi
push eax
push ebx
push dword [esi + 0x850]
mov dword [eax], ebx
push esi
call fcn.10017e95
cmp dword [esi + 0xd50], 0
je 0x10020f03
and dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
push edi
push ecx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x854]
push ebx
push eax
push esi
call fcn.10017e95
test eax, eax
je 0x10020eee
cmp dword [ebp - 0x18], ebx
je 0x10020eee
mov eax, dword [esi + 0x850]
push dword [esi + 0x854]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
jmp 0x10020f03
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x24]
cmp eax, 0x1388
jb 0x10020f03
mov eax, dword [ebp - 0x20]
mov dword [eax], ebx
cmp dword [esi + 0x890], 0
je 0x10020f50
mov eax, dword [esi + 0x858]
mov esi, dword [esi + 0x850]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x40]
mov esi, eax
lea ecx, [ebp - 0x10]
call fcn.1000e380
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.10031770
add ebp, 0x414
leave
ret 0xc
xor esi, esi
jmp 0x10020f21
Function at 0x10021a4f
Capabilities:
Read .ini file

Disassembly:
push 4
mov eax, 0x100484a5
call fcn.1003177f
mov edi, ecx
mov ecx, dword [0x1005cb6c]
xor ebx, ebx
cmp ecx, ebx
je 0x10021ae2
mov dword [ebp - 0x10], ebx
mov eax, dword [ecx]
lea edx, [ebp - 0x10]
push edx
push 0x1004b06c
mov dword [ebp - 4], ebx
call dword [eax + 0x30]
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x10021ad4
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, 0xd
mov eax, dword [ebp - 0x10]
jb 0x10021ad4
mov ecx, dword [eax]
push 1
push 0x1004eac8
mov esi, 0x1004ec1c
push esi
push eax
call dword [ecx + 0xe4]
push ebx
push 0x1004ec14
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0xe4]
or dword [ebp - 4], 0xffffffff
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x10021b0d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x10021b0d
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x10021ae2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 1
push 0x1004eac8
mov esi, 0x1004ec1c
push esi
call ebx
push dword [ebp + 8]
mov dword [edi + 4], eax
push 0
push 0x1004ec14
push esi
call ebx
mov dword [edi + 8], eax
call fcn.10031857
ret 4

Function at 0x10022c1d
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x5a4]
sub esp, 0x624
mov eax, dword [0x100598e8]
xor eax, ebp
mov dword [ebp + 0x5a0], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, 0x206
xor edi, edi
push esi
mov word [ebp + 0x398], ax
lea eax, [ebp + 0x39a]
push edi
push eax
mov dword [ebp - 0x80], edi
call fcn.10031310
xor eax, eax
push esi
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push edi
push eax
call fcn.10031310
xor eax, eax
push esi
mov word [ebp + 0x190], ax
lea eax, [ebp + 0x192]
push edi
push eax
call fcn.10031310
add esp, 0x24
mov esi, 0x104
push esi
lea eax, [ebp + 0x398]
push eax
mov dword [ebp - 0x7c], edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x1004cb00
push esi
lea eax, [ebp + 0x398]
push eax
call fcn.1000e449
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x1004cae4
lea eax, [ebp + 0x398]
push eax
lea eax, [ebp - 0x78]
push eax
call esi
push 0x1004cab0
push 0x1005bd1c
lea eax, [ebp + 0x190]
push eax
call esi
push 0x1004ab5c
call fcn.1000ccb4
mov esi, eax
lea eax, [ebp - 0x7c]
push eax
xor ebx, ebx
call fcn.10022aae
pop ecx
pop ecx
test eax, eax
jne 0x10022cfa
inc eax
jmp 0x10022d50
push 0x1004ca94
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x190]
push eax
call fcn.10010cfb
add esp, 0xc
test eax, eax
jle 0x10022d35
xor ebx, ebx
inc ebx
push ebx
push edi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x190]
push eax
call fcn.1000f436
add esp, 0x10
test eax, eax
jne 0x10022d35
xor esi, esi
inc esi
cmp esi, edi
je 0x10022d44
cmp ebx, edi
je 0x10022d44
mov dword [ebp - 0x80], 3
push dword [ebp - 0x7c]
call fcn.10022b12
mov eax, dword [ebp - 0x80]
pop ecx
mov ecx, dword [ebp + 0x5a0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10031770
add ebp, 0x5a4
leave
ret
Function at 0x10022d68
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x618
lea ebp, [esp - 4]
mov eax, dword [0x100598e8]
xor eax, ebp
mov dword [ebp + 0x618], eax
push 0x28
mov eax, 0x100484c8
call fcn.1003177f
lea ecx, [ebp - 0xd]
call fcn.100234df
xor eax, eax
mov esi, 0x206
xor edi, edi
push esi
mov word [ebp], ax
lea eax, [ebp + 2]
push edi
push eax
mov dword [ebp - 4], edi
call fcn.10031310
xor eax, eax
push esi
mov word [ebp + 0x410], ax
lea eax, [ebp + 0x412]
push edi
push eax
call fcn.10031310
xor eax, eax
push esi
mov word [ebp + 0x208], ax
lea eax, [ebp + 0x20a]
push edi
push eax
call fcn.10031310
add esp, 0x24
mov esi, 0x104
push esi
lea eax, [ebp]
push eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x24], 0x1004b73c
mov dword [ebp - 0x20], 0x1004cb48
mov dword [ebp - 0x2c], 0x1004ac60
mov dword [ebp - 0x28], 0x1004ab5c
mov dword [ebp - 0x34], 0x1004cb34
mov dword [ebp - 0x30], 0x1004cb14
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x1004cb00
push esi
lea eax, [ebp]
push eax
call fcn.1000e449
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
xor esi, esi
mov ebx, 0x208
push ebx
lea eax, [ebp + 0x410]
push 0
push eax
call fcn.10031310
push ebx
lea eax, [ebp + 0x208]
push 0
push eax
call fcn.10031310
add esp, 0x18
push dword [ebp + esi - 0x24]
lea eax, [ebp]
push eax
lea eax, [ebp + 0x410]
push eax
call edi
push dword [ebp + esi - 0x24]
lea eax, [ebp + 0x208]
push 0x1005bd1c
push eax
call edi
push dword [ebp + esi - 0x34]
and dword [ebp - 0x1c], 0
lea eax, [ebp + 0x410]
push eax
lea eax, [ebp + 0x208]
push eax
call fcn.10010cfb
add esp, 0xc
test eax, eax
jle 0x10022ec7
push dword [0x1005d6b0]
lea eax, [ebp + 0x410]
push 0
push eax
lea eax, [ebp + 0x208]
push eax
mov dword [ebp - 0x1c], 1
call fcn.1000f436
add esp, 0x10
push dword [ebp + esi - 0x2c]
call fcn.1000ccb4
pop ecx
test eax, eax
je 0x10022ee0
cmp dword [ebp - 0x1c], 0
je 0x10022ee0
xor eax, eax
inc eax
jmp 0x10022ee2
xor eax, eax
or dword [ebp - 0x14], eax
add esi, 4
cmp esi, 8
jl 0x10022e3c
cmp dword [ebp - 0x14], 0
push 3
pop esi
je 0x10022efd
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0xd]
call fcn.10024a57
test eax, eax
jne 0x10022f0c
mov esi, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd]
call fcn.1003b3f2
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x618]
xor ecx, ebp
call fcn.10031770
add ebp, 0x61c
leave
ret
xor eax, eax
inc eax
cmp dword [esp + 4], eax
je 0x10022f4d
cmp dword [esp + 4], 2
jne 0x10022f60
cmp dword [0x1005d6b0], 0
je 0x10022f5b
jmp fcn.10022c1d
jmp 0x10022d68
ret
Function at 0x10022f3d
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x618
lea ebp, [esp - 4]
mov eax, dword [0x100598e8]
xor eax, ebp
mov dword [ebp + 0x618], eax
push 0x28
mov eax, 0x100484c8
call fcn.1003177f
lea ecx, [ebp - 0xd]
call fcn.100234df
xor eax, eax
mov esi, 0x206
xor edi, edi
push esi
mov word [ebp], ax
lea eax, [ebp + 2]
push edi
push eax
mov dword [ebp - 4], edi
call fcn.10031310
xor eax, eax
push esi
mov word [ebp + 0x410], ax
lea eax, [ebp + 0x412]
push edi
push eax
call fcn.10031310
xor eax, eax
push esi
mov word [ebp + 0x208], ax
lea eax, [ebp + 0x20a]
push edi
push eax
call fcn.10031310
add esp, 0x24
mov esi, 0x104
push esi
lea eax, [ebp]
push eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x24], 0x1004b73c
mov dword [ebp - 0x20], 0x1004cb48
mov dword [ebp - 0x2c], 0x1004ac60
mov dword [ebp - 0x28], 0x1004ab5c
mov dword [ebp - 0x34], 0x1004cb34
mov dword [ebp - 0x30], 0x1004cb14
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x1004cb00
push esi
lea eax, [ebp]
push eax
call fcn.1000e449
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
xor esi, esi
mov ebx, 0x208
push ebx
lea eax, [ebp + 0x410]
push 0
push eax
call fcn.10031310
push ebx
lea eax, [ebp + 0x208]
push 0
push eax
call fcn.10031310
add esp, 0x18
push dword [ebp + esi - 0x24]
lea eax, [ebp]
push eax
lea eax, [ebp + 0x410]
push eax
call edi
push dword [ebp + esi - 0x24]
lea eax, [ebp + 0x208]
push 0x1005bd1c
push eax
call edi
push dword [ebp + esi - 0x34]
and dword [ebp - 0x1c], 0
lea eax, [ebp + 0x410]
push eax
lea eax, [ebp + 0x208]
push eax
call fcn.10010cfb
add esp, 0xc
test eax, eax
jle 0x10022ec7
push dword [0x1005d6b0]
lea eax, [ebp + 0x410]
push 0
push eax
lea eax, [ebp + 0x208]
push eax
mov dword [ebp - 0x1c], 1
call fcn.1000f436
add esp, 0x10
push dword [ebp + esi - 0x2c]
call fcn.1000ccb4
pop ecx
test eax, eax
je 0x10022ee0
cmp dword [ebp - 0x1c], 0
je 0x10022ee0
xor eax, eax
inc eax
jmp 0x10022ee2
xor eax, eax
or dword [ebp - 0x14], eax
add esi, 4
cmp esi, 8
jl 0x10022e3c
cmp dword [ebp - 0x14], 0
push 3
pop esi
je 0x10022efd
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0xd]
call fcn.10024a57
test eax, eax
jne 0x10022f0c
mov esi, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd]
call fcn.1003b3f2
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x618]
xor ecx, ebp
call fcn.10031770
add ebp, 0x61c
leave
ret
xor eax, eax
inc eax
cmp dword [esp + 4], eax
je 0x10022f4d
cmp dword [esp + 4], 2
jne 0x10022f60
cmp dword [0x1005d6b0], 0
je 0x10022f5b
jmp fcn.10022c1d
jmp 0x10022d68
ret
Function at 0x10022f61
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x618
lea ebp, [esp - 4]
mov eax, dword [0x100598e8]
xor eax, ebp
mov dword [ebp + 0x618], eax
push 0x1c
mov eax, 0x100484f8
call fcn.1003177f
mov eax, dword [ebp + 0x628]
mov ebx, dword [ebp + 0x624]
lea ecx, [ebp - 0xd]
mov dword [ebp - 0x18], eax
call fcn.100234df
xor eax, eax
mov esi, 0x206
xor edi, edi
push esi
mov word [ebp], ax
lea eax, [ebp + 2]
push edi
push eax
mov dword [ebp - 4], edi
call fcn.10031310
xor eax, eax
push esi
mov word [ebp + 0x410], ax
lea eax, [ebp + 0x412]
push edi
push eax
call fcn.10031310
xor eax, eax
push esi
mov word [ebp + 0x208], ax
lea eax, [ebp + 0x20a]
push edi
push eax
call fcn.10031310
mov eax, dword [ebp - 0x18]
add esp, 0x24
mov dword [eax], edi
mov esi, 0x104
push esi
lea eax, [ebp]
push eax
mov dword [ebp - 0x20], 0x1004b73c
mov dword [ebp - 0x1c], 0x1004cb48
mov dword [ebp - 0x28], 0x1004cb34
mov dword [ebp - 0x24], 0x1004cb14
mov dword [ebx], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x1004cb00
push esi
lea eax, [ebp]
push eax
call fcn.1000e449
cmp dword [0x1005d6b0], edi
je 0x10023049
push dword [ebp + 0x62c]
lea ecx, [ebp - 0xd]
call fcn.10025fe8
jmp 0x1002313e
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov dword [ebp - 0x14], edi
mov ebx, 0x208
push ebx
lea eax, [ebp + 0x410]
push edi
push eax
call fcn.10031310
push ebx
lea eax, [ebp + 0x208]
push edi
push eax
call fcn.10031310
mov eax, dword [ebp - 0x14]
add esp, 0x18
push dword [ebp + eax - 0x20]
lea eax, [ebp]
push eax
lea eax, [ebp + 0x410]
push eax
call esi
mov eax, dword [ebp - 0x14]
push dword [ebp + eax - 0x20]
lea eax, [ebp + 0x208]
push 0x1005bd1c
push eax
call esi
mov eax, dword [ebp - 0x14]
push dword [ebp + eax - 0x28]
lea eax, [ebp + 0x410]
push eax
lea eax, [ebp + 0x208]
push eax
call fcn.10010cfb
add esp, 0xc
test eax, eax
jle 0x100230e6
mov eax, dword [ebp - 0x18]
mov dword [eax], 1
push dword [0x1005d6b0]
lea eax, [ebp + 0x410]
push edi
push eax
lea eax, [ebp + 0x208]
push eax
call fcn.1000f436
add esp, 0x10
add dword [ebp - 0x14], 4
cmp dword [ebp - 0x14], 8
jl 0x10023057
mov esi, dword [ebp + 0x62c]
push esi
lea ecx, [ebp - 0xd]
call fcn.100251e3
lea ecx, [ebp - 0xd]
call fcn.100248aa
push esi
lea ecx, [ebp - 0xd]
call fcn.10025b1e
lea ecx, [ebp - 0xd]
call fcn.10025410
push esi
lea ecx, [ebp - 0xd]
call fcn.10025fe8
lea ecx, [ebp - 0xd]
call fcn.1002566f
push esi
lea ecx, [ebp - 0xd]
call fcn.100258c9
lea ecx, [ebp - 0xd]
call fcn.10024f96
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd]
call fcn.1003b3f2
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x618]
xor ecx, ebp
call fcn.10031770
add ebp, 0x61c
leave
ret 0xc
Function at 0x10023556
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x10023581
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10023572
push 0x80
jmp 0x1002357a
test al, 3
je 0x10023581
and eax, 0xfffffffc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop esi
ret 4
Function at 0x10024b05
Capabilities:
Check if file exists

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x100598e8]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0xc
mov eax, 0x10048641
call fcn.1003177f
mov ebx, dword [ebp + 0x214]
xor eax, eax
push 0x206
mov word [ebp], ax
xor edi, edi
lea eax, [ebp + 2]
push edi
push eax
call fcn.10031310
add esp, 0xc
mov dword [ebp - 0x18], 0x208
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
push 0x2001f
push 0x1004aea8
push 0x80000002
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
call fcn.1000da6a
lea ecx, [ebp - 0x14]
test eax, eax
je 0x10024ba3
call fcn.1000d9f5
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 + 0x208]
xor ecx, ebp
call fcn.10031770
add ebp, 0x20c
leave
ret 4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp]
push eax
push edi
call fcn.1000daab
test eax, eax
je 0x10024bba
lea ecx, [ebp - 0x14]
jmp 0x10024b77
mov esi, 0x104
lea eax, [ebp]
push esi
push eax
push eax
call fcn.1000ec07
add esp, 0xc
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10024be7
lea ecx, [ebp - 0x14]
call fcn.1000d9f5
mov eax, edi
jmp 0x10024b7e
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp]
push eax
push esi
push ebx
call fcn.10009101
xor edi, edi
inc edi
jmp 0x10024bdb

Function at 0x10024c01
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x100598e8]
xor eax, ebp
mov dword [ebp + 0x188], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x80], ax
lea eax, [ebp - 0x7e]
push eax
mov esi, ecx
call fcn.10031310
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov ecx, esi
call fcn.10024b05
test eax, eax
je 0x10024c83
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push edi
push 0x1004e228
lea eax, [ebp - 0x80]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x80]
push eax
call edi
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x1004eda8
lea eax, [ebp - 0x80]
push eax
call esi
lea eax, [ebp - 0x80]
push eax
call edi
xor eax, eax
inc eax
pop edi
mov ecx, dword [ebp + 0x188]
xor ecx, ebp
pop esi
call fcn.10031770
add ebp, 0x18c
leave
ret