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

Disassembly:
push 0xffffffffffffffff
push 0x10086495
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
mov eax, dword [0x100956f0]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x119]
mov byte [esp + 0x118], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x14]
push 0x104
push ecx
mov dword [esp + 0x22c], 1
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jbe 0x100575a4
lea edx, [esp + 0x118]
test edx, edx
je 0x1005759d
lea eax, [esp + 0x14]
test eax, eax
je 0x1005759d
mov eax, dword [esp + 0x230]
mov edx, 0x7a
cmp eax, ebx
je 0x1005755b
lea ecx, [esp + 0x14]
push eax
push ecx
push 0x10099b78
lea edx, [esp + 0x124]
push 0x104
push edx
call fcn.1006bf52
add esp, 0x14
xor edx, edx
mov eax, edx
jmp 0x100575aa
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x104
jae 0x10057599
lea edi, [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x118]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor edx, edx
rep movsb byte es:[edi], byte [esi]
mov eax, edx
jmp 0x100575aa
mov eax, 0x57
jmp 0x100575aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
mov dword [0x1009e710], eax
je 0x100575bc
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100575cd
lea ecx, [esp + 0x118]
push ecx
lea ecx, [esp + 0x10]
call fcn.10074048
mov esi, dword [esp + 0x22c]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.10073c34
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x224], bl
call fcn.10073ebf
mov ecx, dword [esp + 0x21c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x21c
ret
Function at 0x1005f680
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 0x1005f69c
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.10017450
lea ecx, [esp + 0x1c]
push 0x5c
push ecx
call fcn.10011f00
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 0x1005f720
cmp byte [esp + 0x10], 0x5c
jne 0x1005f720
cmp byte [esp + 0x11], 0x5c
jne 0x1005f720
lea edx, [esp + 0x12]
push 0x5c
push edx
call fcn.10011f00
add esp, 8
test eax, eax
je 0x1005f79e
inc eax
push 0x5c
push eax
call fcn.10011f00
add esp, 8
mov esi, eax
test esi, esi
je 0x1005f79e
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 0x1005f762
test bl, 1
je 0x1005f751
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 0x1005f7d4
cmp ebx, 0xffffffff
je 0x1005f76b
test edi, edi
jne 0x1005f77a
lea ecx, [esp + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
test ebp, ebp
je 0x1005f7d4
mov byte [esi], 0x5c
inc esi
push 0x5c
push esi
call fcn.10011f00
mov esi, eax
add esp, 8
test esi, esi
jne 0x1005f724
test ebp, ebp
je 0x1005f7d4
mov ebx, dword [esp + 0x118]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1005f7c9
test al, 0x10
jne 0x1005f7d4
test al, 1
je 0x1005f7bc
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 0x1005f7d4
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
Function at 0x1005f7f0
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
test ebx, ebx
jne 0x1005f80c
xor eax, eax
pop ebx
add esp, 0x208
ret
push ebp
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
push 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push ebx
push eax
mov ebp, 1
call fcn.1000902f
mov edi, 0x5c
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.1006b484
lea edx, [esp + 0x24]
mov esi, eax
push edx
call fcn.10009905
add esp, 0x18
cmp eax, 2
jbe 0x1005f891
cmp word [esp + 0x10], di
jne 0x1005f891
cmp word [esp + 0x12], di
jne 0x1005f891
lea eax, [esp + 0x14]
push edi
push eax
call fcn.1006b484
add esp, 8
test eax, eax
je 0x1005f919
add eax, 2
push edi
push eax
call fcn.1006b484
add esp, 8
mov esi, eax
test esi, esi
je 0x1005f919
lea ecx, [esp + 0x10]
mov word [esi], 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov edi, ebx
and edi, 0x10
jne 0x1005f8d9
test bl, 1
je 0x1005f8c8
mov edx, ebx
lea eax, [esp + 0x10]
and edx, 0xfffffffe
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, eax
test ebp, ebp
je 0x1005f94f
cmp ebx, 0xffffffff
je 0x1005f8e2
test edi, edi
jne 0x1005f8f1
lea edx, [esp + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
test ebp, ebp
je 0x1005f94f
mov word [esi], 0x5c
add esi, 2
push 0x5c
push esi
call fcn.1006b484
mov esi, eax
add esp, 8
test esi, esi
jne 0x1005f899
test ebp, ebp
je 0x1005f94f
mov ebx, dword [esp + 0x21c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1005f944
test al, 0x10
jne 0x1005f94f
test al, 1
je 0x1005f937
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, eax
test ebp, ebp
je 0x1005f94f
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x1005fd40
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
push ebp
push esi
test ebx, ebx
push edi
jne 0x1005fd74
push 0x57
mov dword [0x1009e710], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x208
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1005fd9b
test al, 0x10
jne 0x1005ff0d
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1005ff0d
mov ecx, 0x81
lea edi, [esp + 0x12]
mov word [esp + 0x10], ax
push 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push ebx
push eax
mov ebp, 1
call fcn.1000902f
mov edi, 0x5c
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.1006b484
lea edx, [esp + 0x24]
mov esi, eax
push edx
call fcn.10009905
add esp, 0x18
cmp eax, 2
jbe 0x1005fe2a
cmp word [esp + 0x10], di
jne 0x1005fe2a
cmp word [esp + 0x12], di
jne 0x1005fe2a
lea eax, [esp + 0x14]
push edi
push eax
call fcn.1006b484
add esp, 8
test eax, eax
je 0x1005feb2
add eax, 2
push edi
push eax
call fcn.1006b484
add esp, 8
mov esi, eax
test esi, esi
je 0x1005feb2
lea ecx, [esp + 0x10]
mov word [esi], 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov edi, ebx
and edi, 0x10
jne 0x1005fe72
test bl, 1
je 0x1005fe61
mov edx, ebx
lea eax, [esp + 0x10]
and edx, 0xfffffffe
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, eax
test ebp, ebp
je 0x1005feea
cmp ebx, 0xffffffff
je 0x1005fe7b
test edi, edi
jne 0x1005fe8a
lea edx, [esp + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
test ebp, ebp
je 0x1005feea
mov word [esi], 0x5c
add esi, 2
push 0x5c
push esi
call fcn.1006b484
mov esi, eax
add esp, 8
test esi, esi
jne 0x1005fe32
test ebp, ebp
je 0x1005feea
mov ebx, dword [esp + 0x21c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1005fedb
test al, 0x10
jne 0x1005fee6
test al, 1
je 0x1005fed0
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1005feea
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
test ebp, ebp
jne 0x1005ff0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [0x1009e710], eax
je 0x1005ff00
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x208
ret
mov eax, dword [esp + 0x220]
test eax, eax
je 0x1005ff20
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x208
ret
Function at 0x10062de0
Capabilities:
Get disk information

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10086a60
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
push edi
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.10028900
mov edi, dword [esp + 0x3c]
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.10028900
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebp, eax
mov eax, dword [0x1009e804]
test eax, eax
je 0x10062e98
cmp ebp, eax
jne 0x10062e98
mov eax, dword [0x1009e808]
test eax, eax
je 0x10062e98
cmp ebx, eax
jb 0x10062e98
add eax, 0x493e0
cmp eax, ebx
jb 0x10062e98
mov ebp, dword [0x1009e80c]
push 1
inc ebp
push 0x1009e720
lea ecx, [esp + 0x18]
mov dword [0x1009e80c], ebp
call fcn.10070110
push 0x1009e750
mov ecx, esi
mov dword [esp + 0x34], 0
call fcn.10028b50
push 0x1009e740
mov ecx, edi
call fcn.10028b50
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
jmp 0x10062f0e
push edi
push esi
mov dword [0x1009e80c], 0
call fcn.10063210
add esp, 8
lea ecx, [esp + 0x1c]
push 1
push 0x1009e720
call fcn.10070110
push 0xffffffffffffffff
push 0
mov ecx, 0x1009e750
mov dword [esp + 0x38], 1
mov dword [0x1009e804], ebp
mov dword [0x1009e808], ebx
call fcn.10028900
push esi
mov ecx, 0x1009e750
call fcn.10028b50
push 0xffffffffffffffff
push 0
mov ecx, 0x1009e740
call fcn.10028900
push edi
mov ecx, 0x1009e740
call fcn.10028b50
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.10070170
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x10063210
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x10086ac6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push ebx
push ebp
push esi
mov esi, dword [esp + 0x240]
push edi
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.10028900
mov ebp, dword [esp + 0x248]
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.10028900
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
test ecx, edx
je 0x10063349
mov edx, dword [0x10099f68]
mov cx, word [0x10099f6c]
mov dword [esp + 0x18], edx
add word [esp + 0x18], ax
lea edx, [esp + 0x18]
mov word [esp + 0x1c], cx
push edx
lea ecx, [esp + 0x28]
mov word [esp + 0x22], bx
call fcn.100212b0
mov eax, dword [esi + 4]
lea ecx, [esp + 0x24]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x244], ebx
call fcn.10028f90
mov edx, dword [0x1008aecc]
mov dword [esp + 0x14], edx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2e]
mov word [esp + 0x2c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x2c]
push 0x104
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x248], 1
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x14]
push edx
mov word [esp + 0x236], bx
call fcn.10021e00
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, ebp
call fcn.10028f90
lea ecx, [esp + 0x14]
mov byte [esp + 0x23c], bl
call fcn.10021b20
lea ecx, [esp + 0x24]
mov dword [esp + 0x23c], 0xffffffff
call fcn.10021b20
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
inc eax
shl edx, 1
cmp eax, 0x1a
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], edx
jb 0x1006326b
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x230
ret

Function at 0x100638b0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x18
lea eax, [esp + 8]
push esi
lea ecx, [esp + 4]
push eax
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x18]
push ecx
xor esi, esi
push edx
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
cmp eax, esi
je 0x10063924
mov ecx, dword [esp + 0x24]
cmp ecx, esi
je 0x100638fa
mov edx, dword [esp + 8]
mov dword [ecx], edx
mov ecx, dword [esp + 0x28]
cmp ecx, esi
je 0x10063908
mov edx, dword [esp + 4]
mov dword [ecx], edx
mov ecx, dword [esp + 0x2c]
cmp ecx, esi
je 0x10063916
mov edx, dword [esp + 0x10]
mov dword [ecx], edx
mov ecx, dword [esp + 0x30]
cmp ecx, esi
je 0x10063924
mov edx, dword [esp + 0xc]
mov dword [ecx], edx
pop esi
add esp, 0x18
ret
Function at 0x10063be0
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov eax, dword [0x1009e984]
test eax, eax
jne 0x10063ccc
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0x1009e820
mov dword [0x1009e984], 1
mov dword [0x1009e820], 0x94
call esi
mov edx, dword [0x1009e830]
xor eax, eax
cmp edx, 2
sete al
test eax, eax
mov dword [0x10099fa8], eax
je 0x10063cae
push edi
push 0x1009e8b8
mov dword [0x1009e8b8], 0x9c
call esi
push 0x1009a5bc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.GetNativeSystemInfo
push esi
call edi
push str.GetProductInfo
push esi
mov dword [0x1009e97c], eax
call edi
mov dword [0x1009e980], eax
mov eax, dword [0x1009e97c]
pop edi
test eax, eax
push 0x1009e958
je 0x10063c7c
call eax
jmp 0x10063c82
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x1009e8bc]
cmp eax, 6
jae 0x10063c9a
cmp eax, 5
jne 0x10063cae
cmp dword [0x1009e8c0], 2
jb 0x10063cae
cmp word [0x1009e958], 9
jne 0x10063cae
mov dword [0x1009e814], 1
push 0x1009e828
push 0x1009e824
call fcn.10064000
add esp, 8
call fcn.10063ce0
mov eax, 1
pop esi
ret
mov eax, 1
ret

Function at 0x10064c30
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008b4f0
push 0x10011e14
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x22c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [0x1009e988]
xor ebx, ebx
cmp eax, ebx
jne 0x10064d90
mov byte [ebp - 0x11c], bl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x11b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10064d8b
mov byte [ebp - 0x224], bl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x223]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push str.user32.dll
lea ecx, [ebp - 0x11c]
push ecx
push 0x10099b78
lea edx, [ebp - 0x224]
push edx
call fcn.1000baeb
add esp, 0x10
mov dword [ebp - 0x22c], ebx
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x224]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x120], eax
push eax
call fcn.10073bfa
add esp, 4
mov esi, eax
mov dword [ebp - 0x238], esi
cmp esi, ebx
je 0x10064d8b
push esi
mov edx, dword [ebp - 0x120]
push edx
mov eax, dword [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x224]
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x10064d82
mov dword [ebp - 0x230], ebx
lea edx, [ebp - 0x120]
push edx
lea eax, [ebp - 0x230]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x10064d82
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x234], eax
mov ecx, dword [eax]
mov dword [0x1009e988], ecx
mov dword [ebp - 4], 0xffffffff
jmp 0x10064d82
push esi
call fcn.10073c23
add esp, 4
mov eax, dword [0x1009e988]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1006a5e0
Capabilities:
Get user security identifier

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
lea eax, [esp + 0x18]
push edi
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
xor ebx, ebx
push eax
push ecx
lea edx, [esp + 0x18]
push ebx
push edx
push ebx
push ebp
push ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [edi], ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x1006a62b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x1006a62b
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x10]
push esi
push eax
call fcn.10073bfa
mov ecx, dword [esp + 0x14]
mov dword [edi], eax
lea edx, [ecx + ecx]
push edx
call fcn.10073bfa
mov esi, eax
mov eax, dword [edi]
add esp, 8
test eax, eax
je 0x1006a670
test esi, esi
je 0x1006a681
lea ecx, [esp + 0x20]
lea edx, [esp + 0x10]
push ecx
push edx
lea ecx, [esp + 0x1c]
push esi
push ecx
push eax
push ebp
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov ebx, eax
test esi, esi
je 0x1006a67d
push esi
call fcn.10073c23
add esp, 4
test ebx, ebx
jne 0x1006a690
mov edi, dword [edi]
test edi, edi
je 0x1006a690
push edi
call fcn.10073c23
add esp, 4
pop esi
pop edi
mov eax, ebx
pop ebp
pop ebx
add esp, 8
ret

Function at 0x1006d680
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [ecx + 4]
push ebx
push ebp
push esi
push edi
mov edi, dword [ecx]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0
test ecx, ecx
je 0x1006d6c1
lea edx, [esp + 0x1c]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [esp + 0x1c]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x1006d6c3
mov esi, edi
test esi, esi
je 0x1006d728
mov ebx, dword [esp + 0x20]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
push 0
push ecx
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x1006d71d
cmp dword [esp + 0x20], 4
jne 0x1006d71d
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x1006d71d
cmp esi, edi
je 0x1006d70f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
cmp esi, edi
je 0x1006d728
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
Function at 0x1006d740
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [ecx]
push edi
test esi, esi
mov dword [esp + 0xc], 0
je 0x1006d795
mov edi, dword [esp + 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push 0
push ecx
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x1006d795
cmp dword [esp + 0x18], 4
jne 0x1006d795
lea edx, [esp + 0x10]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push 0
push edi
push esi
call ebx
test eax, eax
mov eax, dword [esp + 0xc]
je 0x1006d799
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
add esp, 8
ret 8

Function at 0x1006da30
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x10086eef
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x100956f0]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x28], 1
test ecx, ecx
mov dword [esp + 0x14], edi
je 0x1006da9b
lea edx, [esp + 0x18]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x1006da9d
mov esi, edi
test esi, esi
je 0x1006db67
mov ebx, dword [esp + 0x38]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push 0
push ecx
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1006db5c
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x1006dadf
cmp eax, 2
je 0x1006dadf
cmp eax, 6
je 0x1006dadf
cmp eax, 7
jne 0x1006db5c
mov edx, dword [esp + 0x34]
add edx, 2
push edx
call fcn.10073bfa
mov ebp, eax
mov eax, dword [esp + 0x38]
mov edi, ebp
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x34]
push eax
push ebp
push 0
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push ebp
jne 0x1006db42
lea ecx, [esp + 0x14]
call fcn.10074048
cmp esi, dword [esp + 0x14]
je 0x1006db37
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.10073c23
add esp, 4
jmp 0x1006db79
call fcn.10073c23
add esp, 4
lea ecx, [esp + 0x10]
push 0x1009c018
call fcn.10074048
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x1006db67
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x1006db79
push eax
lea ecx, [esp + 0x14]
call fcn.10074048
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.10073c34
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.10073ebf
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10