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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x8ab770
push 0x5fd778
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x434
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [0x9dd108]
xor ebx, ebx
cmp eax, ebx
jne 0x6630e0
mov word [ebp - 0x220], bx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x21e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x6630db
mov word [ebp - 0x42c], bx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x42a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.user32.dll
lea ecx, [ebp - 0x220]
push ecx
push 0x92ecec
lea edx, [ebp - 0x42c]
push edx
call fcn.005fe023
add esp, 0x10
mov dword [ebp - 0x434], ebx
lea eax, [ebp - 0x434]
push eax
lea ecx, [ebp - 0x42c]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x224], eax
push eax
call fcn.008325b4
add esp, 4
mov esi, eax
mov dword [ebp - 0x440], esi
cmp esi, ebx
je 0x6630db
push esi
mov edx, dword [ebp - 0x224]
push edx
mov eax, dword [ebp - 0x434]
push eax
lea ecx, [ebp - 0x42c]
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x6630d2
mov dword [ebp - 0x438], ebx
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x438]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x6630d2
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x438]
mov dword [ebp - 0x43c], eax
mov ecx, dword [eax]
mov dword [0x9dd108], ecx
mov dword [ebp - 4], 0xffffffff
jmp 0x6630d2
push esi
call fcn.008325dd
add esp, 4
mov eax, dword [0x9dd108]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x663740
Capabilities:
Get user security identifier

Disassembly:
mov eax, dword [0x9dd16c]
sub esp, 0x120
push ebx
xor ebx, ebx
push ebp
cmp eax, ebx
push edi
jne 0x66378c
mov ecx, 0x44
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, 2
jne 0x663787
mov dword [0x9dd170], eax
mov dword [0x9dd16c], eax
cmp dword [0x9dd170], ebx
jne 0x6637a0
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x120
ret
mov ebp, dword [esp + 0x130]
mov edi, dword [esp + 0x134]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
lea eax, [esp + 0x14]
push ebx
push eax
push ebx
push ebp
push ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [edi], ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x6637ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x6637ec
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x120
ret
mov ecx, dword [esp + 0xc]
push esi
push ecx
call fcn.008325b4
mov edx, dword [esp + 0x18]
mov dword [edi], eax
lea eax, [edx + edx]
push eax
call fcn.008325b4
mov esi, eax
mov eax, dword [edi]
add esp, 8
test eax, eax
je 0x663831
test esi, esi
je 0x663842
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x18]
push esi
push ecx
push eax
push ebp
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov ebx, eax
test esi, esi
je 0x66383e
push esi
call fcn.008325dd
add esp, 4
test ebx, ebx
jne 0x663851
mov edi, dword [edi]
test edi, edi
je 0x663851
push edi
call fcn.008325dd
add esp, 4
pop esi
pop edi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x120
ret
Function at 0x6662a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 6]
mov word [esp + 4], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ax, word [esp + 4]
pop edi
add esp, 0x208
ret

Function at 0x666320
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 6]
mov word [esp + 4], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ax, word [esp + 4]
pop edi
add esp, 0x208
ret

Function at 0x666550
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push ebx
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x666610
lea ecx, [esp + 0xc]
push 0x5c
push ecx
call fcn.005fc428
add esp, 8
test eax, eax
je 0x66659f
mov word [eax], 0
mov edi, dword [esp + 0x218]
test edi, edi
je 0x666609
mov ebx, dword [esp + 0x21c]
test ebx, ebx
je 0x666609
lea edx, [esp + 0xc]
test edx, edx
je 0x666609
mov eax, dword [esp + 0x220]
mov esi, 0x7a
test eax, eax
je 0x6665e6
push eax
lea eax, [esp + 0x10]
push eax
push 0x92ecec
push ebx
push edi
call fcn.005fd4a1
add esp, 0x14
xor esi, esi
jmp 0x666618
lea ecx, [esp + 0xc]
push ecx
call fcn.005fc40b
add esp, 4
cmp ebx, eax
jbe 0x666618
lea edx, [esp + 0xc]
push edx
push edi
call fcn.005fc492
add esp, 8
xor esi, esi
jmp 0x666618
mov esi, 0x57
jmp 0x666618
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
mov dword [0x9dd1ec], esi
je 0x666629
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebx
sete al
add esp, 0x208
ret
Function at 0x666640
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x886ff5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x418
mov eax, dword [0x98b454]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x21e]
mov word [esp + 0x21c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], bx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push 0x104
push ecx
mov dword [esp + 0x434], 1
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x666753
lea edx, [esp + 0x14]
push 0x5c
push edx
call fcn.005fc428
add esp, 8
cmp eax, ebx
je 0x6666d4
mov word [eax], bx
lea eax, [esp + 0x21c]
test eax, eax
je 0x66674c
lea ecx, [esp + 0x14]
test ecx, ecx
je 0x66674c
mov eax, dword [esp + 0x438]
mov esi, 0x7a
cmp eax, ebx
je 0x66671d
lea edx, [esp + 0x14]
push eax
push edx
push 0x92ecec
lea eax, [esp + 0x228]
push 0x104
push eax
call fcn.005fd4a1
add esp, 0x14
xor esi, esi
mov eax, esi
jmp 0x666759
lea ecx, [esp + 0x14]
push ecx
call fcn.005fc40b
add esp, 4
cmp eax, 0x104
jae 0x666748
lea edx, [esp + 0x14]
lea eax, [esp + 0x21c]
push edx
push eax
call fcn.005fc492
add esp, 8
xor esi, esi
mov eax, esi
jmp 0x666759
mov eax, 0x57
jmp 0x666759
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
mov dword [0x9dd1ec], eax
je 0x66676b
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x66677c
lea ecx, [esp + 0x21c]
push ecx
lea ecx, [esp + 0x10]
call fcn.00832082
mov esi, dword [esp + 0x434]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.00831c58
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x42c], bl
call fcn.00831eeb
mov ecx, dword [esp + 0x424]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x424
ret

Function at 0x666880
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push ebx
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x666924
mov edi, dword [esp + 0x218]
test edi, edi
je 0x66691d
mov ebx, dword [esp + 0x21c]
test ebx, ebx
je 0x66691d
lea ecx, [esp + 0xc]
test ecx, ecx
je 0x66691d
mov eax, dword [esp + 0x220]
mov esi, 0x7a
test eax, eax
je 0x6668fa
lea edx, [esp + 0xc]
push eax
push edx
push 0x92ecec
push ebx
push edi
call fcn.005fd4a1
add esp, 0x14
xor esi, esi
jmp 0x66692c
lea eax, [esp + 0xc]
push eax
call fcn.005fc40b
add esp, 4
cmp ebx, eax
jbe 0x66692c
lea ecx, [esp + 0xc]
push ecx
push edi
call fcn.005fc492
add esp, 8
xor esi, esi
jmp 0x66692c
mov esi, 0x57
jmp 0x66692c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
mov dword [0x9dd1ec], esi
je 0x66693d
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebx
sete al
add esp, 0x208
ret
Function at 0x666b10
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x887045
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x418
mov eax, dword [0x98b454]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x21e]
mov word [esp + 0x21c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], bx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push 0x104
push ecx
mov dword [esp + 0x434], 1
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x666c09
lea edx, [esp + 0x21c]
test edx, edx
je 0x666c02
lea eax, [esp + 0x14]
test eax, eax
je 0x666c02
mov eax, dword [esp + 0x438]
mov esi, 0x7a
cmp eax, ebx
je 0x666bd3
lea ecx, [esp + 0x14]
push eax
push ecx
push 0x92ecec
lea edx, [esp + 0x228]
push 0x104
push edx
call fcn.005fd4a1
add esp, 0x14
xor esi, esi
mov eax, esi
jmp 0x666c0f
lea eax, [esp + 0x14]
push eax
call fcn.005fc40b
add esp, 4
cmp eax, 0x104
jae 0x666bfe
lea ecx, [esp + 0x14]
lea edx, [esp + 0x21c]
push ecx
push edx
call fcn.005fc492
add esp, 8
xor esi, esi
mov eax, esi
jmp 0x666c0f
mov eax, 0x57
jmp 0x666c0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
mov dword [0x9dd1ec], eax
je 0x666c21
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x666c32
lea eax, [esp + 0x21c]
lea ecx, [esp + 0xc]
push eax
call fcn.00832082
mov esi, dword [esp + 0x434]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.00831c58
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x42c], bl
call fcn.00831eeb
mov ecx, dword [esp + 0x424]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x424
ret
Function at 0x667ad0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x8870e5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x620
mov eax, dword [0x98b454]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x426]
mov word [esp + 0x424], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x21e]
mov word [esp + 0x21c], bx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x21c]
push 0x104
push ecx
mov dword [esp + 0x63c], 1
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x667bd1
lea edx, [esp + 0x21c]
push 0x5c
push edx
call fcn.005fc428
add esp, 8
cmp eax, ebx
je 0x667b80
mov word [eax], bx
lea eax, [esp + 0x14]
test eax, eax
je 0x667bca
lea ecx, [esp + 0x21c]
test ecx, ecx
je 0x667bca
lea edx, [esp + 0x21c]
mov esi, 0x7a
push edx
call fcn.005fc40b
add esp, 4
cmp eax, 0x104
jae 0x667bc6
lea eax, [esp + 0x21c]
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.005fc492
add esp, 8
xor esi, esi
mov eax, esi
jmp 0x667bd7
mov eax, 0x57
jmp 0x667bd7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
cmp eax, ebx
mov dword [0x9dd1ec], eax
je 0x667c05
push eax
call edi
mov esi, dword [0x9dd1ec]
cmp esi, ebx
mov dword [0x9dd1ec], esi
je 0x667ca1
push esi
call edi
jmp 0x667cb2
push 0x103
lea edx, [esp + 0x18]
push 0x92edc8
push edx
call fcn.005fe8da
lea eax, [esp + 0x430]
add esp, 0xc
test eax, eax
je 0x667c97
lea ecx, [esp + 0x14]
test ecx, ecx
je 0x667c97
mov eax, dword [esp + 0x640]
mov esi, 0x7a
cmp eax, ebx
je 0x667c63
lea edx, [esp + 0x14]
push eax
push edx
push 0x92ecec
lea eax, [esp + 0x430]
push 0x104
push eax
call fcn.005fd4a1
add esp, 0x14
xor esi, esi
jmp 0x667bef
lea ecx, [esp + 0x14]
push ecx
call fcn.005fc40b
add esp, 4
cmp eax, 0x104
jae 0x667bef
lea edx, [esp + 0x14]
lea eax, [esp + 0x424]
push edx
push eax
call fcn.005fc492
add esp, 8
xor esi, esi
jmp 0x667bef
mov esi, 0x57
jmp 0x667bef
lea ecx, [esp + 0x424]
push ecx
lea ecx, [esp + 0x10]
call fcn.00832082
mov esi, dword [esp + 0x63c]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.00831c58
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x634], bl
call fcn.00831eeb
mov ecx, dword [esp + 0x62c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x62c
ret
Function at 0x668890
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
sub esp, 0x41c
push ebp
push esi
push edi
xor ebp, ebp
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
mov dword [esp + 0x14], 0x208
push eax
push 0x92eebc
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
cmp eax, ebp
jne 0x668909
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
push ebp
push 0x92ee9c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0xc]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebp
je 0x668964
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x18]
push str.c:program_filescommom_files
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
call fcn.005fc492
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x22a]
mov word [esp + 0x228], bp
rep stosd dword es:[edi], eax
add esp, 8
lea ecx, [esp + 0x220]
stosw word es:[edi], ax
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dx, word [esp + 0x220]
mov word [esp + 0x18], dx
jmp 0x668989
lea eax, [esp + 0x18]
mov word [esp + 0x21e], bp
push eax
call fcn.005fc40b
add esp, 4
dec eax
cmp word [esp + eax*2 + 0x18], 0x5c
lea eax, [esp + eax*2 + 0x18]
jne 0x668989
mov word [eax], bp
mov edi, dword [esp + 0x42c]
push ebx
cmp edi, ebp
je 0x6689f4
mov ebx, dword [esp + 0x434]
cmp ebx, ebp
je 0x6689f4
lea ecx, [esp + 0x1c]
test ecx, ecx
je 0x6689f4
mov eax, dword [esp + 0x438]
mov esi, 0x7a
cmp eax, ebp
je 0x6689d1
lea edx, [esp + 0x1c]
push eax
push edx
push 0x92ecec
push ebx
push edi
call fcn.005fd4a1
add esp, 0x14
xor esi, esi
jmp 0x6689f9
lea eax, [esp + 0x1c]
push eax
call fcn.005fc40b
add esp, 4
cmp ebx, eax
jbe 0x6689f9
lea ecx, [esp + 0x1c]
push ecx
push edi
call fcn.005fc492
add esp, 8
xor esi, esi
jmp 0x6689f9
mov esi, 0x57
cmp esi, ebp
mov dword [0x9dd1ec], esi
pop ebx
je 0x668a0b
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp esi, ebp
pop edi
pop esi
sete al
pop ebp
add esp, 0x41c
ret
Function at 0x66b0b0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x410
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 6]
mov word [esp + 4], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
push eax
push str.ALLUSERSPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jbe 0x66b1ea
cmp eax, 0x104
jae 0x66b1ea
lea ecx, [esp + 4]
push esi
push ecx
call fcn.00665710
add esp, 4
test eax, eax
je 0x66b171
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x212]
mov word [esp + 0x210], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x210]
push 0x104
lea eax, [esp + 0xc]
push edx
push eax
call fcn.006653d0
lea ecx, [esp + 0x21c]
push ecx
call fcn.005fc40b
mov esi, eax
add esp, 0x10
cmp esi, 0x104
jge 0x66b171
lea edx, [esp + 0x210]
push esi
lea eax, [esp + 0xc]
push edx
push eax
call fcn.005fc3ce
add esp, 0xc
mov word [esp + esi*2 + 8], 0
mov edi, dword [esp + 0x41c]
test edi, edi
je 0x66b1dc
mov esi, dword [esp + 0x420]
test esi, esi
je 0x66b1dc
lea ecx, [esp + 8]
test ecx, ecx
je 0x66b1dc
mov eax, dword [esp + 0x424]
test eax, eax
je 0x66b1bd
lea edx, [esp + 8]
push eax
push edx
push 0x92ecec
push esi
push edi
call fcn.005fd4a1
add esp, 0x14
mov eax, 1
pop esi
pop edi
add esp, 0x410
ret
lea eax, [esp + 8]
push eax
call fcn.005fc40b
add esp, 4
cmp esi, eax
jbe 0x66b1dc
lea ecx, [esp + 8]
push ecx
push edi
call fcn.005fc492
add esp, 8
pop esi
mov eax, 1
pop edi
add esp, 0x410
ret
xor eax, eax
pop edi
add esp, 0x410
ret

Function at 0x66b440
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x410
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 6]
mov word [esp + 4], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
push eax
push str.USERPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jbe 0x66b57a
cmp eax, 0x104
jae 0x66b57a
lea ecx, [esp + 4]
push esi
push ecx
call fcn.00665710
add esp, 4
test eax, eax
je 0x66b501
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x212]
mov word [esp + 0x210], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x210]
push 0x104
lea eax, [esp + 0xc]
push edx
push eax
call fcn.006653d0
lea ecx, [esp + 0x21c]
push ecx
call fcn.005fc40b
mov esi, eax
add esp, 0x10
cmp esi, 0x104
jge 0x66b501
lea edx, [esp + 0x210]
push esi
lea eax, [esp + 0xc]
push edx
push eax
call fcn.005fc3ce
add esp, 0xc
mov word [esp + esi*2 + 8], 0
mov edi, dword [esp + 0x41c]
test edi, edi
je 0x66b56c
mov esi, dword [esp + 0x420]
test esi, esi
je 0x66b56c
lea ecx, [esp + 8]
test ecx, ecx
je 0x66b56c
mov eax, dword [esp + 0x424]
test eax, eax
je 0x66b54d
lea edx, [esp + 8]
push eax
push edx
push 0x92ecec
push esi
push edi
call fcn.005fd4a1
add esp, 0x14
mov eax, 1
pop esi
pop edi
add esp, 0x410
ret
lea eax, [esp + 8]
push eax
call fcn.005fc40b
add esp, 4
cmp esi, eax
jbe 0x66b56c
lea ecx, [esp + 8]
push ecx
push edi
call fcn.005fc492
add esp, 8
pop esi
mov eax, 1
pop edi
add esp, 0x410
ret
xor eax, eax
pop edi
add esp, 0x410
ret
Function at 0x66c760
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
push edi
jne 0x66c781
push 0x57
mov dword [0x9dd1ec], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
ret
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call edi
test eax, eax
jne 0x66c7b2
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x66c7b2
test al, 0x10
jne 0x66c7b2
test al, 1
je 0x66c77c
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call edi
pop edi
pop esi
ret
pop edi
mov eax, 1
pop esi
ret

Function at 0x66c820
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
push edi
jne 0x66c841
push 0x57
mov dword [0x9dd1ec], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
ret
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call edi
test eax, eax
jne 0x66c872
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x66c872
test al, 0x10
jne 0x66c872
test al, 1
je 0x66c83c
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call edi
pop edi
pop esi
ret
pop edi
mov eax, 1
pop esi
ret
Function at 0x66e6a0
Capabilities:
Create directory
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x66e6bf
push 0x57
mov dword [0x9dd1ec], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
ret
push 0
push 0
push 0
push 0
lea eax, [esp + 0x18]
push 0
push eax
push esi
mov dword [esp + 0x24], 0
call fcn.006f29b0
mov eax, dword [esp + 0x24]
add esp, 0x1c
cmp eax, 0xffffffff
je 0x66e705
test al, 0x10
je 0x66e705
push 0xb7
mov dword [0x9dd1ec], 0xb7
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x66e72c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [0x9dd1ec], eax
je 0x66e728
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
ret
mov eax, dword [esp + 0xc]
mov dword [0x9dd1ec], 0
test eax, eax
je 0x66e746
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, 1
pop esi
ret
Function at 0x66e750
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x104
push ebx
mov ebx, dword [esp + 0x10c]
test ebx, ebx
jne 0x66e76c
xor eax, eax
pop ebx
add esp, 0x104
ret
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
push 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push ebx
push eax
mov ebp, 1
call fcn.005fdaf0
lea ecx, [esp + 0x1c]
push 0x5c
push ecx
call fcn.005fdc30
mov esi, eax
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jbe 0x66e7f0
cmp byte [esp + 0x10], 0x5c
jne 0x66e7f0
cmp byte [esp + 0x11], 0x5c
jne 0x66e7f0
lea edx, [esp + 0x12]
push 0x5c
push edx
call fcn.005fdc30
add esp, 8
test eax, eax
je 0x66e86e
inc eax
push 0x5c
push eax
call fcn.005fdc30
add esp, 8
mov esi, eax
test esi, esi
je 0x66e86e
lea eax, [esp + 0x10]
mov byte [esi], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
mov edi, ebx
and edi, 0x10
jne 0x66e832
test bl, 1
je 0x66e821
mov ecx, ebx
lea edx, [esp + 0x10]
and ecx, 0xfffffffe
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, eax
test ebp, ebp
je 0x66e8a4
cmp ebx, 0xffffffff
je 0x66e83b
test edi, edi
jne 0x66e84a
lea ecx, [esp + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
test ebp, ebp
je 0x66e8a4
mov byte [esi], 0x5c
inc esi
push 0x5c
push esi
call fcn.005fdc30
mov esi, eax
add esp, 8
test esi, esi
jne 0x66e7f4
test ebp, ebp
je 0x66e8a4
mov ebx, dword [esp + 0x118]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x66e899
test al, 0x10
jne 0x66e8a4
test al, 1
je 0x66e88c
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, eax
test ebp, ebp
je 0x66e8a4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x104
ret