joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10044dd0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10143d80
push 0x101041e9
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [section..data]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x438], edi
mov dword [ebp - 0x43c], esi
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.100144a0
mov edx, esi
mov ecx, edi
call fcn.10044f30
mov bl, al
mov byte [ebp - 0x431], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x10044e65
test bl, bl
jne 0x10044f0d
cmp edi, 0x1a
jne 0x10044f0d
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x10044e87
mov eax, dword [esi]
jmp 0x10044e89
mov eax, esi
xor ecx, ecx
mov word [eax], cx
xor eax, eax
mov word [ebp - 0x430], ax
push 0x40e
push eax
lea eax, [ebp - 0x42e]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
push 0x207
lea eax, [ebp - 0x430]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp word [ebp - 0x430], 0
jne 0x10044ed1
xor ecx, ecx
jmp 0x10044eef
lea ecx, [ebp - 0x430]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10044ee0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x430]
push eax
mov ecx, esi
call fcn.10004390
movzx ebx, bl
mov eax, 1
cmp dword [esi + 0x10], 0
cmovne ebx, eax
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10103694
mov esp, ebp
pop ebp
ret
Function at 0x1004ffd0
Capabilities:
Check os version

Disassembly:
sub esp, 0x10
push esi
push 0x11c
mov esi, ecx
push 0
push esi
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10050061
mov eax, dword [esi + 4]
cmp eax, 6
ja 0x10050007
jne 0x1005005a
cmp dword [esi + 8], 2
jb 0x1005005a
lea eax, [esp + 0x10]
mov dword [esp + 4], 0
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0
push eax
lea edx, [esp + 0x10]
mov dword [esp + 0x14], 0
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
call fcn.10050700
add esp, 8
test al, al
je 0x1005005a
mov eax, dword [esp + 4]
mov dword [esi + 4], eax
mov eax, dword [esp + 8]
mov dword [esi + 8], eax
mov eax, dword [esp + 0xc]
mov dword [esi + 0xc], eax
mov al, 1
pop esi
add esp, 0x10
ret
xor al, al
pop esi
add esp, 0x10
ret

Function at 0x10050700
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x28
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
push ebx
push ebp
mov ebp, dword [esp + 0x34]
mov ebx, edx
push esi
push edi
push str.kernel32.dll
mov edi, ecx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x100507ca
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x100507ca
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100507ca
movdqu xmm0, xmmword [0x10131df8]
push eax
movdqu xmmword [esp + 0x18], xmm0
movdqu xmm0, xmmword [0x10131e08]
movdqu xmmword [esp + 0x28], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100507ca
lea eax, [esp + 0x14]
push eax
lea ecx, [esi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x100507ca
cmp word [esi + 2], ax
jbe 0x100507ca
movzx eax, word [esi + 0x32]
mov ecx, dword [esp + 0x10]
mov dword [edi], eax
movzx eax, word [esi + 0x30]
mov dword [ebx], eax
movzx eax, word [esi + 0x36]
mov dword [ebp], eax
movzx eax, word [esi + 0x34]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
mov al, 1
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.10103694
add esp, 0x28
ret
mov ecx, dword [esp + 0x34]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10103694
add esp, 0x28
ret
Function at 0x100508d0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x1010f4b6
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x828], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x840]
mov dword fs:[0], eax
mov dword [esp + 0x1c], ecx
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
lea eax, [esp + 0x3c]
push eax
push 0x3fe
call edi
mov ebx, eax
test ebx, ebx
je 0x1005099f
lea eax, [esp + 0x3c]
xor esi, esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x848], esi
cmp ebx, 0x3fe
jbe 0x100509c9
xor ecx, ecx
lea eax, [ebx + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10103452
add esp, 4
mov ebp, eax
mov esi, ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x38], esi
push ebp
push ebx
call edi
test eax, eax
je 0x10050986
cmp eax, ebx
ja 0x10050986
xor ecx, ecx
mov ebx, eax
mov dword [ebp + eax*2], ecx
jmp 0x100509f1
mov dword [esp + 0x848], 0xffffffff
test ebp, ebp
je 0x1005099f
push ebp
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
xor al, al
mov ecx, dword [esp + 0x840]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x828]
xor ecx, esp
call fcn.10103694
add esp, 0x838
ret
lea eax, [ebx + ebx]
cmp eax, 0x800
jae 0x10050a93
xor ecx, ecx
mov word [esp + eax + 0x3c], cx
add eax, 2
cmp eax, 0x800
jae 0x10050a93
mov word [esp + eax + 0x3c], cx
xor eax, eax
xor edi, edi
test ebx, ebx
je 0x10050a73
mov esi, dword [esp + 0x18]
mov ebp, 2
cmp word [esi + ebp - 2], 0
jne 0x10050a67
cmp eax, edi
je 0x10050a67
lea eax, [esi + eax*2]
push eax
lea ecx, [esp + 0x24]
call fcn.100035f0
mov byte [esp + 0x848], 1
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
call fcn.10027f90
mov byte [esp + 0x848], 0
cmp dword [esp + 0x34], 8
jb 0x10050a4d
push dword [esp + 0x20]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x34], 7
mov word [esp + 0x20], ax
lea eax, [edi + 1]
mov dword [esp + 0x30], 0
inc edi
add ebp, 2
cmp edi, ebx
jb 0x10050a02
mov esi, dword [esp + 0x38]
mov dword [esp + 0x848], 0xffffffff
test esi, esi
je 0x10050a8c
push esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov al, 1
jmp 0x100509a1
call fcn.10103d28
int3
Function at 0x100510b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1010f611
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 0x18], 1
cmp dword [esp + 0x30], 2
jae 0x100510fd
push 0x1012cec8
call fcn.100035f0
jmp 0x10051139
cmp dword [esp + 0x34], 8
lea eax, [esp + 0x20]
cmovae eax, dword [esp + 0x20]
cmp word [eax + 2], 0x3a
je 0x10051120
push 0x1012cec8
mov ecx, esi
call fcn.100035f0
jmp 0x10051139
lea ecx, [esp + 0x20]
call fcn.10021410
push 3
lea edx, [esp + 0x24]
mov ecx, esi
call fcn.10021460
add esp, 4
mov dword [esp + 8], 1
mov byte [esp + 0x18], 0
cmp dword [esp + 0x34], 8
jb 0x1005115a
push dword [esp + 0x20]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], eax
mov word [esp + 0x20], ax
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret

Function at 0x10053650
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1010fefc
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
push 0x34
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
mov esi, eax
add esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 0x30], 0
test esi, esi
je 0x100536bd
push 0x34
push 0
push esi
call sub.MSVCR120.dll_memset
add esp, 0xc
mov ecx, esi
call fcn.10053050
mov esi, eax
jmp 0x100536bf
xor esi, esi
mov dword [esp + 0x30], 0xffffffff
lea eax, [edi + 0xc]
push ecx
push 3
push 3
push 0x80000000
push eax
lea ecx, [esi + 0x18]
call fcn.10064320
test al, al
jne 0x100536f1
test esi, esi
je 0x100536ed
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
xor eax, eax
jmp 0x10053739
lea eax, [esp + 0xc]
xorps xmm0, xmm0
push eax
push 1
push 0
push 0
lea ecx, [edi + 8]
movlpd qword [esp + 0x1c], xmm0
call fcn.10064560
test al, al
je 0x100536e1
lea ecx, [esp + 0x14]
xorps xmm0, xmm0
push ecx
push 0
push dword [esp + 0x18]
movlpd qword [esp + 0x20], xmm0
lea ecx, [esi + 8]
mov eax, dword [esi + 8]
push dword [esp + 0x18]
call dword [eax + 0x14]
test eax, eax
jne 0x100536e5
lea eax, [esi + 8]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.10103694
mov esp, ebp
pop ebp
ret
Function at 0x1005c5c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x101114b9
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
call fcn.1005c380
add esp, 4
lea edx, [esp + 0x14]
mov ecx, edi
call fcn.1005c450
mov dword [esp + 0x30], 0
mov dword [esp + 0xc], 1
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.10103694
add esp, 0x28
ret

Function at 0x1005c8c0
Capabilities:
Read file on windows

Disassembly:
mov edx, ecx
mov eax, dword [edx]
test eax, eax
jne 0x1005c8cd
xor al, al
ret 0xc
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x1005c8c8
cmp dword [eax], 0xffffffff
je 0x1005c8c8
mov eax, dword [esp + 0xc]
push 0
push eax
push dword [esp + 0x10]
mov dword [eax], 0
mov eax, dword [edx]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne al
ret 0xc

Function at 0x1005c9a0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push edi
mov edi, dword [esp + 0x10]
test eax, eax
jne 0x1005c9cd
xor al, al
pop edi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.10103694
add esp, 8
ret 4
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x1005c9b9
push esi
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1005ca07
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1005ca07
pop esi
xor al, al
pop edi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.10103694
add esp, 8
ret 4
mov ecx, dword [esp + 8]
xor eax, eax
add eax, esi
mov dword [edi], eax
mov al, 1
adc ecx, 0
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0xc]
pop esi
pop edi
xor ecx, esp
call fcn.10103694
add esp, 8
ret 4

Function at 0x1005cc40
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
xor eax, eax
mov esi, ecx
push 0x20a
push eax
mov word [esp + 0xc], ax
lea eax, [esp + 0xe]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [esp + 4]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x1005ccb7
xor eax, eax
mov ecx, esi
mov word [esp + 0x20e], ax
lea eax, [esp + 4]
push eax
call fcn.1000da90
mov al, 1
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.10103694
add esp, 0x210
ret
mov ecx, dword [esp + 0x210]
xor al, al
pop esi
xor ecx, esp
call fcn.10103694
add esp, 0x210
ret
Function at 0x1005ceb0
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x10111588
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
and edi, 0xffffb1af
cmp dword [esi + 0x14], 8
jb 0x1005cef5
mov eax, dword [esi]
jmp 0x1005cef7
mov eax, esi
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
push eax
call ebx
test eax, eax
je 0x1005cf0c
mov al, 1
jmp 0x1005cf97
xor eax, eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
mov dword [esp + 0x38], eax
lea edx, [esp + 0x14]
mov ecx, esi
call fcn.1005e810
test al, al
je 0x1005cf60
cmp dword [esp + 0x28], 8
lea eax, [esp + 0x14]
push edi
cmovae eax, dword [esp + 0x18]
push eax
call ebx
test eax, eax
je 0x1005cf60
mov bl, 1
jmp 0x1005cf62
xor bl, bl
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x28], 8
jb 0x1005cf7e
push dword [esp + 0x14]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x28], 7
mov word [esp + 0x14], ax
mov al, bl
mov dword [esp + 0x24], 0
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.10103694
add esp, 0x2c
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x101115b8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x1005cffc
mov eax, dword [esi]
jmp 0x1005cffe
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1005d094
xor eax, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
mov dword [esp + 0x30], eax
lea edx, [esp + 0xc]
mov ecx, esi
call fcn.1005e810
test al, al
je 0x1005d061
cmp dword [esp + 0x20], 8
lea eax, [esp + 0xc]
cmovae eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x1005d07d
push dword [esp + 0xc]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.10103694
add esp, 0x28
ret
Function at 0x1005d860
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x101116e8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x1005d89c
mov eax, dword [esi]
jmp 0x1005d89e
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x1005d8b0
mov al, 1
jmp 0x1005d93e
xor eax, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
mov dword [esp + 0x30], eax
lea edx, [esp + 0xc]
mov ecx, esi
call fcn.1005e810
test al, al
je 0x1005d907
cmp dword [esp + 0x20], 8
lea eax, [esp + 0xc]
cmovae eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x1005d907
mov bl, 1
jmp 0x1005d909
xor bl, bl
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x1005d925
push dword [esp + 0xc]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
mov word [esp + 0xc], ax
mov al, bl
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.10103694
add esp, 0x28
ret

Function at 0x1005d960
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x10111718
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x1005d99c
mov eax, dword [esi]
jmp 0x1005d99e
mov eax, esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1005d9b2
mov al, 1
jmp 0x1005da42
xor eax, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
mov dword [esp + 0x30], eax
lea edx, [esp + 0xc]
mov ecx, esi
call fcn.1005e810
test al, al
je 0x1005da0b
cmp dword [esp + 0x20], 8
lea eax, [esp + 0xc]
push 0
cmovae eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1005da0b
mov bl, 1
jmp 0x1005da0d
xor bl, bl
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x1005da29
push dword [esp + 0xc]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
mov word [esp + 0xc], ax
mov al, bl
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.10103694
add esp, 0x28
ret
Function at 0x1005da70
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x10111760
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x1005daae
mov eax, dword [esi]
jmp 0x1005dab0
mov eax, esi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
je 0x1005dac4
mov al, 1
jmp 0x1005dc3c
cmp dword [esi + 0x14], 8
jb 0x1005dace
mov eax, dword [esi]
jmp 0x1005dad0
mov eax, esi
push eax
lea ecx, [esp + 0x38]
call fcn.100035f0
mov dword [esp + 0x58], 0
lea ecx, [esp + 0x34]
call fcn.1005cfc0
mov ebp, eax
mov dword [esp + 0x58], 0xffffffff
cmp dword [esp + 0x48], 8
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x1005db0b
push dword [esp + 0x34]
call ebx
add esp, 4
xor eax, eax
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
cmp ebp, 0xffffffff
jne 0x1005db2e
xor al, al
jmp 0x1005dc3c
cmp dword [esi + 0x14], 8
jb 0x1005db38
mov eax, dword [esi]
jmp 0x1005db3a
mov eax, esi
push eax
lea ecx, [esp + 0x38]
call fcn.100035f0
mov dword [esp + 0x58], 1
xor edx, edx
lea ecx, [esp + 0x34]
call fcn.1005ceb0
test al, al
sete al
mov byte [esp + 0x1b], al
mov dword [esp + 0x58], 0xffffffff
cmp dword [esp + 0x48], 8
jb 0x1005db7c
push dword [esp + 0x34]
call ebx
mov al, byte [esp + 0x1f]
add esp, 4
xor ecx, ecx
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], cx
test al, al
jne 0x1005db27
cmp dword [esi + 0x14], 8
jb 0x1005dba1
mov eax, dword [esi]
jmp 0x1005dba3
mov eax, esi
push eax
call edi
test eax, eax
jne 0x1005dabd
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], eax
mov word [esp + 0x34], ax
mov dword [esp + 0x58], 2
lea edx, [esp + 0x34]
mov ecx, esi
call fcn.1005e810
test al, al
je 0x1005dbf7
cmp dword [esp + 0x48], 8
lea eax, [esp + 0x34]
cmovae eax, dword [esp + 0x34]
push eax
call edi
test eax, eax
je 0x1005dbf7
mov bl, 1
jmp 0x1005dc29
cmp dword [esi + 0x14], 8
jb 0x1005dbff
mov esi, dword [esi]
push esi
lea ecx, [esp + 0x20]
call fcn.100035f0
mov byte [esp + 0x58], 3
mov edx, ebp
lea ecx, [esp + 0x1c]
call fcn.1005ceb0
mov byte [esp + 0x58], 2
lea ecx, [esp + 0x1c]
call fcn.10003650
xor bl, bl
mov dword [esp + 0x58], 0xffffffff
lea ecx, [esp + 0x34]
call fcn.10003650
mov al, bl
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.10103694
add esp, 0x48
ret
Function at 0x1005dc80
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x1011179b
mov eax, dword fs:[0]
push eax
sub esp, 0x628
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x624], eax
push esi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x630]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x10161f58]
mov dword [esp + 8], 0x10161f58
test eax, eax
je 0x1005dcd2
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x638], 0
cmp dword [0x10161040], 0
je 0x1005dd20
cmp esi, 0x10161030
je 0x1005dcfe
push 0xffffffffffffffff
push 0
push 0x10161030
mov ecx, esi
call fcn.10004aa0
mov dword [esp + 0x638], 0xffffffff
mov eax, dword [0x10161f58]
test eax, eax
je 0x1005dd19
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
jmp 0x1005ddfb
xor eax, eax
push 0x20a
push eax
mov word [esp + 0x14], ax
lea eax, [esp + 0x16]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x1005ddde
xor eax, eax
push 0x410
push eax
mov word [esp + 0x21e], ax
mov word [esp + 0x220], ax
lea eax, [esp + 0x222]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [esp + 0x218]
push 0x208
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x1005ddcd
test eax, eax
je 0x1005ddcd
add eax, eax
cmp eax, 0x412
jae 0x1005ddc8
xor ecx, ecx
mov word [esp + eax + 0x218], cx
lea eax, [esp + 0x218]
push eax
mov ecx, esi
call fcn.1000da90
jmp 0x1005dcfe
call fcn.10103d28
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.1000da90
jmp 0x1005dcfe
mov dword [esp + 0x638], 0xffffffff
mov eax, dword [0x10161f58]
test eax, eax
je 0x1005ddf9
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
mov dword [esp + 8], 0
mov ecx, dword [esp + 0x630]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x624]
xor ecx, esp
call fcn.10103694
add esp, 0x634
ret