joyce8/EMBER2024-capa huggingface dataset:
Function at 0x104e2b4
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
lea esi, [edi + 0x10]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], esi
cmp dword [esi], ebx
jne 0x104e3da
push 0x80
mov dword [ebp - 4], 0x80004005
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
mov dword [esi], eax
cmp eax, ebx
ret
jne 0x104e2f3
xor eax, eax
jmp 0x104e3e2
mov eax, dword [edi + 4]
cmp eax, ebx
jl 0x104e30e
cmp eax, 1
jle 0x104e304
cmp eax, 3
jne 0x104e30e
push 0x1007da0
jmp 0x104e3d1
mov dword [ebp - 0x14], ebx
cmp dword [edi + 0xc], ebx
je 0x104e3cc
push 0x208
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov ebx, eax
pop ecx
test ebx, ebx
je 0x104e3cc
push ebx
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x104e3bc
push 0x5c
push dword [edi + 0xc]
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x104e355
inc eax
inc eax
jmp 0x104e358
mov eax, dword [edi + 0xc]
and dword [ebp - 0x10], 0
and dword [ebp - 0xc], 0
push ebx
mov dword [ebp - 8], eax
call fcn.01055e5e
push dword [ebp - 8]
push esi
push ebx
call fcn.010358a6
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
call fcn.010569c6
test eax, eax
jl 0x104e3bc
mov eax, dword [ebp - 0xc]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
mov eax, dword [ebp - 0x10]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
push 0x1007d80
push esi
push ebx
call fcn.0103592d
add esp, 0x1c
push ebx
mov ecx, edi
call fcn.0104c142
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 1
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
cmp dword [ebp - 0x14], 0
pop ecx
jne 0x104e3da
mov esi, dword [ebp - 0x18]
push 0x1007d70
push esi
call fcn.0105849d
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [ebp - 4], eax
setge al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x104f6b6
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3a4
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
test byte [0x1074690], 1
push edi
mov esi, ecx
mov dword [ebp - 0x38c], ebx
jne 0x104f6fe
mov eax, dword [esi + 0x84]
or dword [0x1074690], 1
cmp eax, ebx
je 0x104f6f7
mov eax, dword [eax + 0x54]
jmp 0x104f6f9
xor eax, eax
mov dword [0x107468c], eax
mov eax, dword [esi + 0x80]
mov ecx, dword [eax]
lea edx, [ebp - 0x3a4]
push edx
push eax
call dword [ecx + 0x1c]
cmp dword [ebp - 0x3a0], ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jl 0x104f730
mov eax, dword [0x107468c]
cmp eax, ebx
je 0x104f74c
cmp dword [eax + 0x250], ebx
je 0x104f74c
mov dword [esi + 0x34], ebx
mov eax, dword [esi + 0x30]
cmp eax, ebx
je 0x104f740
push eax
call edi
mov dword [esi + 0x30], ebx
mov eax, dword [ebp - 0x3a0]
mov dword [ebp - 0x38c], eax
mov eax, dword [ebp - 0x3a4]
sub eax, ebx
je 0x104f7ff
dec eax
je 0x104f7f0
dec eax
je 0x104f7d4
dec eax
je 0x104f797
dec eax
je 0x104f788
dec eax
je 0x104f77c
mov dword [ebp - 0x388], 0x2779
jmp 0x104f852
mov dword [ebp - 0x388], 0x2778
jmp 0x104f7fa
mov dword [ebp - 0x388], 0x2777
jmp 0x104f852
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x64]
cmp eax, 0x1d4c0
jbe 0x104f7c8
mov dword [esi + 0x34], ebx
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x388], 0x277a
cmp eax, ebx
je 0x104f7c1
push eax
call edi
mov dword [esi + 0x30], ebx
push 0x1006b90
jmp 0x104f82e
mov dword [ebp - 0x388], 0x2775
jmp 0x104f852
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x64]
cmp eax, 0x1d4c0
ja 0x104f80f
mov dword [ebp - 0x388], 0x2776
jmp 0x104f852
mov dword [ebp - 0x388], 0x277a
mov dword [esi + 0x34], ebx
jmp 0x104f852
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x64]
cmp eax, 0x1d4c0
jbe 0x104f848
mov dword [esi + 0x34], ebx
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x388], 0x277a
invalid
Function at 0x1050822
Capabilities:
Create directory
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x23c], 0
je 0x105084a
xor eax, eax
jmp 0x10508cc
push ebx
push 0x208
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov ebx, eax
pop ecx
test ebx, ebx
je 0x10508c2
push edi
lea eax, [ebp - 0x20c]
push eax
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x10508b1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x186a0
div ecx
lea eax, [ebp - 0x20c]
push edx
push eax
push 0x10085a4
push edi
push ebx
call fcn.01035968
add esp, 0x14
test eax, eax
jl 0x10508b1
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x10508b1
mov dword [esi + 0x23c], ebx
cmp dword [esi + 0x23c], 0
pop edi
jne 0x10508c9
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
mov eax, 0x80004005
jmp 0x10508cb
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01047480
leave
Function at 0x10508de
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2b4
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, dword [eax + 0x24]
push esi
xor esi, esi
mov dword [ebp - 0x2b4], eax
mov dword [ebp - 0x290], esi
mov dword [ebp - 0x294], esi
mov dword [ebp - 0x298], ecx
cmp ecx, esi
jne 0x1050921
mov eax, 0x80004005
jmp 0x1050ad2
mov eax, dword [eax + 0x1c]
push ebx
xor ebx, ebx
inc ebx
cmp eax, esi
je 0x1050940
cmp eax, ebx
je 0x1050940
cmp eax, 2
je 0x1050940
mov dword [ebp - 0x294], ebx
jmp 0x1050acb
push esi
push 0xc
push 0x10074d0
lea eax, [ebp - 0x28c]
push 0x208
push eax
call fcn.01035968
add esp, 0x14
test eax, eax
jl 0x1050ac1
push esi
lea eax, [ebp - 0x290]
push eax
push esi
push 3
push esi
push esi
push esi
lea eax, [ebp - 0x28c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1050ac1
push edi
lea eax, [ebp - 0x2b0]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x2a4]
push eax
push esi
mov dword [ebp - 0x2ac], esi
mov dword [ebp - 0x2a8], esi
mov dword [ebp - 0x2a0], esi
mov dword [ebp - 0x29c], esi
mov esi, 0x10085d4
push esi
push dword [ebp - 0x290]
mov dword [ebp - 0x2b0], 0x80
mov dword [ebp - 0x2a4], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1050a30
cmp dword [ebp - 0x2a4], ebx
jne 0x1050a30
lea eax, [ebp - 0x84]
push eax
call fcn.01055efe
push dword [ebp - 0x298]
mov dword [ebp - 0x2a0], eax
mov dword [ebp - 0x29c], edx
call fcn.01055efe
mov dword [ebp - 0x2ac], eax
mov dword [ebp - 0x2a8], edx
cmp edx, dword [ebp - 0x29c]
jb 0x1050a5e
ja 0x1050a30
cmp eax, dword [ebp - 0x2a0]
jbe 0x1050a5e
mov eax, dword [ebp - 0x298]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1050a39
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x298]
push ebx
push 0
push esi
push dword [ebp - 0x290]
call edi
mov eax, dword [ebp - 0x29c]
cmp dword [ebp - 0x2a8], eax
jb 0x1050ab2
ja 0x1050a7c
mov eax, dword [ebp - 0x2a0]
cmp dword [ebp - 0x2ac], eax
jb 0x1050ab2
mov eax, dword [ebp - 0x2b4]
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x1050ab2
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x1050a8e
sub eax, esi
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ecx
push ebx
push 0
push 0x10085c4
push dword [ebp - 0x290]
call edi
push dword [ebp - 0x290]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
jmp 0x1050acb
mov dword [ebp - 0x294], 0x80004005
mov eax, dword [ebp - 0x294]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01047480
leave
Function at 0x10565e4
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor edi, edi
push edi
push 0x10096d4
push 0x80000002
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1056652
push esi
push 4
pop esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push edi
push 0x1008608
push dword [ebp - 4]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1056648
cmp dword [ebp - 8], esi
jne 0x1056648
cmp dword [ebp - 0xc], 1
jne 0x1056648
inc edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, edi
pop edi
leave
ret

Function at 0x1056665
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
or dword [ebp - 0x10], 0xffffffff
push ebx
lea eax, [ebp - 0x10]
push eax
xor ebx, ebx
push 0x20008
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1056760
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
call edi
push dword [ebp - 0x14]
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov esi, eax
pop ecx
cmp esi, ebx
je 0x1056750
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push esi
push 2
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x1056749
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1056749
mov dword [ebp - 0x18], ebx
cmp dword [esi], ebx
jbe 0x1056740
lea edi, [esi + 4]
push dword [edi]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x1056739
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
add edi, 8
cmp eax, dword [esi]
jb 0x105671b
jmp 0x1056740
mov dword [ebp - 0x1c], 1
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
pop edi
pop esi
cmp dword [ebp - 0x10], ebx
je 0x1056760
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
xor ecx, ebp
pop ebx
call fcn.01047480
leave
Function at 0x10576be
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x105774a
cmp dword [ebp + 0xc], ebx
je 0x105774a
cmp dword [ebp + 0x10], ebx
je 0x105774a
xor edi, edi
mov dword [ebp - 8], ebx
cmp dword [ebp - 4], ebx
jbe 0x1057893
mov eax, dword [ebp - 0x10]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov edi, eax
pop ecx
cmp edi, ebx
je 0x105774a
mov eax, dword [ebp - 0x14]
mov esi, dword [sym.imp.msvcrt.dll_malloc]
add eax, 2
push eax
call esi
pop ecx
mov dword [ebp - 0xc], eax
invalid

Function at 0x105791c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push ebx
push edi
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x218], ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x1057a0f
push esi
lea eax, [ebp - 0x210]
push eax
push 0x2001f
xor esi, esi
push esi
push ebx
push edi
mov dword [ebp - 0x210], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x1057a0e
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x210]
mov dword [ebp - 0x214], 0x104
call edi
mov ebx, 0x103
jmp 0x10579ec
cmp eax, esi
jne 0x10579f0
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call fcn.0105791c
test eax, eax
jne 0x10579f0
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x210]
mov dword [ebp - 0x214], 0x104
call edi
cmp eax, ebx
jne 0x10579ad
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x218]
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.01047480
leave
ret 8
Function at 0x1057a24
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [ebp + 0xc], esi
jne 0x1057a3a
push 6
pop eax
jmp 0x1057a80
cmp dword [ebp + 8], esi
jne 0x1057a68
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1057a68
cmp dword [ebp + 0x10], esi
jne 0x1057a61
cmp dword [ebp - 4], 2
jbe 0x1057a68
mov eax, 0xb7
jmp 0x1057a80
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
leave
ret 0x1c

Function at 0x1057afe
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 8]
push eax
push 1
xor esi, esi
push esi
push 0x1009af0
push 0x80000002
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1057b77
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x1009ad0
push dword [ebp - 8]
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], 3
mov dword [ebp - 0x10], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1057b6e
cmp dword [ebp - 4], 4
je 0x1057b63
cmp dword [ebp - 4], 3
jne 0x1057b6e
xor eax, eax
cmp dword [ebp - 0xc], 1
setne al
mov esi, eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x1057da6
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebx
push edi
push 0x144
push 0
push esi
call sub.msvcrt.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
and dword [esi], 0
add esp, 0xc
push 0x32
lea eax, [esi + 0xe0]
push eax
push 0x1010
mov ebx, 0x400
push ebx
call edi
lea eax, [esi + 0xe0]
push eax
call dword [sym.imp.msvcrt.dll__wtoi]
pop ecx
push 0x32
mov dword [esi + 0x14], eax
lea eax, [esi + 0xe0]
push eax
push 0x12
xor ecx, ecx
push ebx
mov word [eax], cx
call edi
lea eax, [esi + 0xe0]
push eax
call dword [sym.imp.msvcrt.dll__wtoi]
pop ecx
push 0x32
mov dword [esi + 4], eax
lea eax, [esi + 0x18]
push eax
push 0xe
push ebx
call edi
lea eax, [esi + 0x18]
push 0x32
mov dword [esi + 0xc], eax
lea eax, [esi + 0x7c]
push eax
push 0xf
push ebx
call edi
lea eax, [esi + 0x7c]
push 0x32
mov dword [esi + 0x10], eax
lea eax, [esi + 0xe0]
push eax
push 0x10
xor ecx, ecx
push ebx
mov word [eax], cx
call edi
lea edi, [esi + 0xe0]
movzx eax, word [edi]
xor ecx, ecx
cmp cx, ax
je 0x1057e87
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
push 0x30
pop ecx
cmp cx, ax
je 0x1057e87
mov eax, dword [esi + 8]
imul eax, eax, 0xa
push edi
mov dword [esi + 8], eax
call dword [sym.imp.msvcrt.dll__wtoi]
add dword [esi + 8], eax
pop ecx
push edi
call ebx
push eax
call ebx
mov edi, eax
movzx eax, word [edi]
xor ecx, ecx
cmp cx, ax
jne 0x1057e59
pop edi
pop ebx
ret
Function at 0x105864b
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
jne 0x105866e
xor edx, edx
jmp 0x105875e
push esi
push eax
push 0x103
lea eax, [ebp - 0x20c]
push eax
call fcn.01035831
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
mov esi, eax
pop ecx
xor eax, eax
pop ecx
test esi, esi
jne 0x10586a1
xor edx, edx
jmp 0x105875d
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
inc esi
inc esi
mov word [esi], ax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
jne 0x1058700
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10586de
push 0x57
pop eax
test eax, eax
jle 0x10586ea
and eax, 0xffff
or eax, 0x80070000
push eax
push 0x1009de0
push 2
call fcn.01055c8a
add esp, 0xc
xor eax, eax
xor edx, edx
jmp 0x105875c
mov eax, dword [ebp - 0x210]
push ebx
mov ebx, dword [ebp - 0x214]
mov dword [ebp - 0x218], eax
test ebx, ebx
jne 0x1058753
test eax, eax
jne 0x1058753
mov word [esi - 2], ax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x1058753
mov eax, dword [ebp - 0x210]
mov ebx, dword [ebp - 0x214]
mov dword [ebp - 0x218], eax
mov edx, dword [ebp - 0x218]
mov eax, ebx
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01047480
leave
ret 4

Function at 0x10587e2
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
test eax, eax
je 0x1058840
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.01035831
test eax, eax
jl 0x1058840
push 0x5c
lea eax, [ebp - 0x20c]
push eax
call fcn.01055ec0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x105883e
test al, 0x10
je 0x105883e
inc esi
jmp 0x1058840
xor esi, esi
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01047480
leave
ret 4
Function at 0x1058856
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1058864
push ebx
sub eax, edx
sar eax, 1
push esi
lea ebx, [eax + 0x14]
xor ecx, ecx
push 2
pop edx
mov eax, ebx
ret
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov esi, eax
pop ecx
test esi, esi
je 0x1058960
push edi
push dword [ebp + 8]
push ebx
push esi
call fcn.01035831
mov edi, dword [sym.imp.msvcrt.dll_wcsstr]
push 0x1007db0
push esi
call edi
pop ecx
pop ecx
test eax, eax
je 0x1058958
add eax, 4
and dword [ebp - 4], 0
jmp 0x10588c7
mov eax, dword [ebp - 0xc]
push 0x1005778
push eax
call edi
pop ecx
pop ecx
test eax, eax
je 0x105894f
xor ecx, ecx
mov word [eax], cx
add eax, 2
push esi
mov dword [ebp - 0xc], eax
call fcn.010587e2
test eax, eax
jne 0x1058927
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1058901
push 0x57
pop eax
test eax, eax
jle 0x105890d
and eax, 0xffff
or eax, 0x80070000
push esi
mov dword [ebp - 8], eax
call fcn.010587e2
test eax, eax
je 0x105893c
push 0
push esi
push 5
push 8
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
push dword [ebp + 8]
push ebx
push esi
call fcn.01035831
inc dword [ebp - 4]
cmp dword [ebp - 4], 0xa
jl 0x10588c4
jmp 0x105894f
push dword [ebp - 8]
push esi
push 0x1009e0c
push 2
call fcn.01055c8a
add esp, 0x10
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
pop edi
push dword [ebp + 8]
call fcn.010587e2
pop esi
pop ebx
leave
ret 4
Function at 0x1059184
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], ebx
cmp eax, ebx
je 0x10592a1
lea eax, [ebp - 0x214]
push eax
push 0x20019
push ebx
push 0x10097f8
push 0x80000002
mov dword [ebp - 0x214], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10592a1
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
push 4
pop edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
push 0x10097e0
push dword [ebp - 0x214]
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x218], edi
call esi
test eax, eax
jne 0x1059293
cmp dword [ebp - 0x210], edi
jne 0x1059293
xor edi, edi
inc edi
cmp dword [ebp - 0x21c], edi
jne 0x1059293
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
push 0x1002250
push dword [ebp - 0x214]
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x218], 0x104
call esi
test eax, eax
jne 0x1059293
cmp dword [ebp - 0x210], edi
jne 0x1059293
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x224]
call fcn.01035831
test eax, eax
jl 0x1059293
mov dword [ebp - 0x220], edi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x220]
xor ecx, ebp
pop ebx
call fcn.01047480
leave
ret 8

Function at 0x10592bb
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x474
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x468], eax
mov dword [eax], 1
push esi
invalid

Function at 0x10592e5
Capabilities:
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
ret