joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100e0270
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x101da92f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x1020db10]
push esi
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x14], 1
mov cl, byte [eax + 0xf]
mov dl, byte [eax + 0xe]
push ecx
push edx
xor ecx, ecx
xor edx, edx
mov cl, byte [eax + 0xd]
mov dl, byte [eax + 0xc]
push ecx
push edx
xor ecx, ecx
xor edx, edx
mov cl, byte [eax + 0xb]
mov dl, byte [eax + 0xa]
push ecx
push edx
xor ecx, ecx
xor edx, edx
mov cl, byte [eax + 9]
mov dl, byte [eax + 8]
push ecx
push edx
xor ecx, ecx
xor edx, edx
mov cx, word [eax + 6]
mov dx, word [eax + 4]
mov eax, dword [eax]
push ecx
push edx
push eax
lea ecx, [esp + 0x30]
push str._08lX__04lX__04lX__02lX_02lX__02lX_02lX_02lX_02lX_02lX_02lX
push ecx
call fcn.100cf610
mov esi, dword [esp + 0x50]
add esp, 0x34
lea edx, [esp + 4]
mov ecx, esi
push edx
call fcn.100cbc80
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.100cc680
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x100e0610
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x100e061b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp edi, 8
mov esi, edi
not eax
jb 0x100e071d
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x1020dc08]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x1020dc08]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x1020dc08]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x1020dc08]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x1020dc08]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x1020dc08]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x1020dc08]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x1020dc08]
xor eax, edx
inc ecx
dec edi
jne 0x100e0636
test esi, esi
je 0x100e073f
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x1020dc08]
xor eax, edx
inc ecx
dec esi
jne 0x100e0721
pop edi
pop esi
not eax
pop ebx
ret
Function at 0x100e5a30
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x101dad05
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x418
mov eax, dword [0x1020db10]
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 0x100e5b29
lea edx, [esp + 0x21c]
test edx, edx
je 0x100e5b22
lea eax, [esp + 0x14]
test eax, eax
je 0x100e5b22
mov eax, dword [esp + 0x438]
mov esi, 0x7a
cmp eax, ebx
je 0x100e5af3
lea ecx, [esp + 0x14]
push eax
push ecx
push 0x10247ab0
lea edx, [esp + 0x228]
push 0x104
push edx
call fcn.1009d2be
add esp, 0x14
xor esi, esi
mov eax, esi
jmp 0x100e5b2f
lea eax, [esp + 0x14]
push eax
call fcn.10097626
add esp, 4
cmp eax, 0x104
jae 0x100e5b1e
lea ecx, [esp + 0x14]
lea edx, [esp + 0x21c]
push ecx
push edx
call fcn.10097591
add esp, 8
xor esi, esi
mov eax, esi
jmp 0x100e5b2f
mov eax, 0x57
jmp 0x100e5b2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
mov dword [0x1026c54c], eax
je 0x100e5b41
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100e5b52
lea eax, [esp + 0x21c]
lea ecx, [esp + 0xc]
push eax
call fcn.100cc900
mov esi, dword [esp + 0x434]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.100cbc80
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x42c], bl
call fcn.100cc680
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 0x100eb530
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 0x100eb551
push 0x57
mov dword [0x1026c54c], 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 0x100eb582
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100eb582
test al, 0x10
jne 0x100eb582
test al, 1
je 0x100eb54c
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 0x100edd00
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x410
push ebx
mov ebx, dword [esp + 0x418]
push ebp
push esi
test ebx, ebx
push edi
jne 0x100edd34
push 0x57
mov dword [0x1026c54c], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x410
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100edd5b
test al, 0x10
jne 0x100edecd
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 0x100edecd
mov ecx, 0x103
lea edi, [esp + 0x12]
mov word [esp + 0x10], ax
push 0x207
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push ebx
push eax
mov ebp, 1
call fcn.100975dc
mov edi, 0x5c
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.10097976
lea edx, [esp + 0x24]
mov esi, eax
push edx
call fcn.10097626
add esp, 0x18
cmp eax, 2
jbe 0x100eddea
cmp word [esp + 0x10], di
jne 0x100eddea
cmp word [esp + 0x12], di
jne 0x100eddea
lea eax, [esp + 0x14]
push edi
push eax
call fcn.10097976
add esp, 8
test eax, eax
je 0x100ede72
add eax, 2
push edi
push eax
call fcn.10097976
add esp, 8
mov esi, eax
test esi, esi
je 0x100ede72
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 0x100ede32
test bl, 1
je 0x100ede21
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 0x100edeaa
cmp ebx, 0xffffffff
je 0x100ede3b
test edi, edi
jne 0x100ede4a
lea edx, [esp + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
test ebp, ebp
je 0x100edeaa
mov word [esi], 0x5c
add esi, 2
push 0x5c
push esi
call fcn.10097976
mov esi, eax
add esp, 8
test esi, esi
jne 0x100eddf2
test ebp, ebp
je 0x100edeaa
mov ebx, dword [esp + 0x424]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100ede9b
test al, 0x10
jne 0x100edea6
test al, 1
je 0x100ede90
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 0x100edeaa
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
test ebp, ebp
jne 0x100edecd
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [0x1026c54c], eax
je 0x100edec0
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x410
ret
mov eax, dword [esp + 0x428]
test eax, eax
je 0x100edee0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x410
ret
Function at 0x100ef6b0
Capabilities:
Delete directory
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x100ef6cf
push 0x57
mov dword [0x1026c54c], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
ret
push 0
push 0x100ef520
push 0x20
push esi
call fcn.100ee210
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
test esi, esi
jne 0x100ef715
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [0x1026c54c], eax
je 0x100ef715
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop esi
ret
Function at 0x100f1ae0
Capabilities:
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x101db278
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov eax, dword [esi + 0x20]
xor edi, edi
xor ebp, ebp
cmp eax, ebx
je 0x100f1b12
call fcn.100f53f0
mov ebp, eax
mov eax, dword [esi + 0x18]
mov ecx, 0xc0000000
cmp eax, ebx
je 0x100f1b23
mov ecx, SysReAllocStringLen
mov eax, dword [esi + 0x24]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
cmp dword [eax - 8], ebx
je 0x100f1b78
push ebx
push 0x80
push 3
push ebp
push 3
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x100f1b5e
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x14], eax
cmp dword [esi + 4], 0xffffffff
je 0x100f1ca4
cmp dword [esp + 0x18], ebx
jne 0x100f1b78
cmp dword [esp + 0x14], ebx
je 0x100f1ca4
mov eax, dword [esi + 0x18]
mov edi, 4
cmp eax, ebx
je 0x100f1b89
mov edi, 2
lea ebx, [esi + 0x28]
lea ecx, [esp + 0x10]
push ebx
call fcn.100cbc80
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x24], 0
test eax, eax
je 0x100f1bcf
mov edx, dword [ebx]
mov eax, dword [edx - 8]
test eax, eax
je 0x100f1bcf
call fcn.100f28a0
test eax, eax
je 0x100f1bcf
push str.Global_
lea ecx, [esp + 0x14]
call fcn.100cc900
push ebx
lea ecx, [esp + 0x14]
call fcn.100cd330
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [esi + 4]
push eax
mov eax, dword [esi + 0x10]
push eax
push 0
push edi
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
mov dword [esi + 8], eax
je 0x100f1c7e
mov edx, dword [esi + 0x18]
mov ecx, 6
test edx, edx
je 0x100f1c0b
mov ecx, 4
mov edx, dword [esi + 0x10]
push edx
mov edx, dword [esi + 0x14]
push edx
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0xc], eax
je 0x100f1c7e
mov eax, dword [esi + 0x10]
mov ebp, 1
test eax, eax
jne 0x100f1c59
mov eax, dword [esi + 4]
or ebx, 0xffffffff
cmp eax, ebx
je 0x100f1c5c
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x14]
mov eax, dword [esp + 0x18]
xor edi, edi
sub ecx, edx
sbb eax, edi
test eax, eax
jle 0x100f1c54
mov dword [esi + 0x10], ebx
jmp 0x100f1c5c
mov dword [esi + 0x10], ecx
jmp 0x100f1c5c
or ebx, 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], ebx
call fcn.100cc680
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.100cc680
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x100f2180
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov eax, dword [0x1026c7c8]
sub esp, 0x114
test eax, eax
jne 0x100f22cd
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push edi
push 0x1026c560
mov dword [0x1026c7c8], 1
mov dword [0x1026c560], 0x114
call esi
mov edx, dword [0x1026c570]
xor eax, eax
cmp edx, 2
sete al
test eax, eax
mov dword [0x10247e10], eax
je 0x100f22a8
push ebx
push 0x1026c678
mov dword [0x1026c678], 0x11c
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x10248cfc
call ebx
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 [0x1026c7bc], eax
call edi
mov dword [0x1026c7c0], eax
mov eax, dword [0x1026c7bc]
test eax, eax
push 0x1026c798
je 0x100f2224
call eax
jmp 0x100f222a
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x1026c67c]
cmp eax, 6
jae 0x100f2242
cmp eax, 5
jne 0x100f2256
cmp dword [0x1026c680], 2
jb 0x100f2256
cmp word [0x1026c798], 9
jne 0x100f2256
mov dword [0x1026c554], 1
push str.Ntdll.dll
call ebx
test eax, eax
pop ebx
je 0x100f2274
push str.RtlGetVersion
push eax
call edi
mov edx, eax
mov dword [0x1026c7c4], edx
jmp 0x100f227a
mov edx, dword [0x1026c7c4]
test edx, edx
je 0x100f22a8
mov ecx, 0x44
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x114
push eax
call edx
test eax, eax
jne 0x100f22a8
mov ecx, dword [esp + 0x14]
mov dword [0x1026c56c], ecx
push 0x1026c568
push 0x1026c564
call fcn.100f2670
add esp, 8
call fcn.100f22e0
pop edi
mov eax, 1
pop esi
add esp, 0x114
ret
mov eax, 1
add esp, 0x114
ret
Function at 0x100f3500
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1020e048
push 0x101c1c80
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 [0x1026c7cc]
xor ebx, ebx
cmp eax, ebx
jne 0x100f3660
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 0x100f365b
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 0x10247ab0
lea edx, [ebp - 0x42c]
push edx
call fcn.100987f3
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.10063980
add esp, 4
mov esi, eax
mov dword [ebp - 0x440], esi
cmp esi, ebx
je 0x100f365b
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 0x100f3652
mov dword [ebp - 0x438], ebx
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x438]
push eax
push 0x10248ef0
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100f3652
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x438]
mov dword [ebp - 0x43c], eax
mov ecx, dword [eax]
mov dword [0x1026c7cc], ecx
mov dword [ebp - 4], 0xffffffff
jmp 0x100f3652
push esi
call fcn.100639af
add esp, 4
mov eax, dword [0x1026c7cc]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100f3bf0
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov eax, dword [0x1026ca40]
test eax, eax
jne 0x100f3cae
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x1026c7e0
mov dword [0x1026ca40], 1
mov dword [0x1026c7e0], 0x114
call esi
mov edx, dword [0x1026c7f0]
xor eax, eax
cmp edx, 2
sete al
test eax, eax
mov dword [0x10249068], eax
je 0x100f3ca2
push 0x1026c8f8
mov dword [0x1026c8f8], 0x11c
call esi
push 0x10248cfc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.GetNativeSystemInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x1026ca3c], eax
push 0x1026ca18
je 0x100f3c70
call eax
jmp 0x100f3c76
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x1026c8fc]
cmp eax, 6
jae 0x100f3c8e
cmp eax, 5
jne 0x100f3ca2
cmp dword [0x1026c900], 2
jb 0x100f3ca2
cmp word [0x1026ca18], 9
jne 0x100f3ca2
mov dword [0x1026c7d4], 1
call fcn.100f3cc0
mov eax, 1
pop esi
ret
mov eax, 1
ret
Function at 0x100f4300
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1020e058
push 0x101c1c80
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 [0x1026ca44]
xor ebx, ebx
cmp eax, ebx
jne 0x100f4460
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 0x100f445b
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 0x10247ab0
lea edx, [ebp - 0x42c]
push edx
call fcn.100987f3
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.10063980
add esp, 4
mov esi, eax
mov dword [ebp - 0x440], esi
cmp esi, ebx
je 0x100f445b
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 0x100f4452
mov dword [ebp - 0x438], ebx
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x438]
push eax
push 0x10248ef0
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100f4452
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x438]
mov dword [ebp - 0x43c], eax
mov ecx, dword [eax]
mov dword [0x1026ca44], ecx
mov dword [ebp - 4], 0xffffffff
jmp 0x100f4452
push esi
call fcn.100639af
add esp, 4
mov eax, dword [0x1026ca44]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100f4970
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 0x100f49bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x100f49bb
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x10]
push esi
push eax
call fcn.10063980
mov ecx, dword [esp + 0x14]
mov dword [edi], eax
lea edx, [ecx + ecx]
push edx
call fcn.10063980
mov esi, eax
mov eax, dword [edi]
add esp, 8
test eax, eax
je 0x100f4a00
test esi, esi
je 0x100f4a11
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 0x100f4a0d
push esi
call fcn.100639af
add esp, 4
test ebx, ebx
jne 0x100f4a20
mov edi, dword [edi]
test edi, edi
je 0x100f4a20
push edi
call fcn.100639af
add esp, 4
pop esi
pop edi
mov eax, ebx
pop ebp
pop ebx
add esp, 8
ret
Function at 0x100f9b20
Capabilities:
Get file size

Disassembly:
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebp, ebp
mov dword [0x1026caf8], ebp
call edi
mov ebx, dword [esp + 0x54]
mov dword [0x1026cb00], eax
cmp ebx, 0xffffffff
je 0x100f9d19
mov esi, dword [esp + 0x58]
cmp esi, 0xffffffff
je 0x100f9d19
lea eax, [esp + 0x10]
mov dword [esp + 0x20], ebp
push eax
push ebx
mov dword [esp + 0x18], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x10]
mov edi, eax
push ecx
push edi
push esi
call fcn.101489b0
add esp, 0xc
test eax, eax
je 0x100f9cee
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
push ebp
push ebp
push ebx
call esi
mov edx, dword [esp + 0x58]
push ebp
push ebp
push ebp
push edx
call esi
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], ebp
cmp eax, ebp
mov dword [esp + 0x18], ebp
jne 0x100f9bb1
cmp edi, ebp
je 0x100f9c99
cmp eax, ebp
mov ebx, 0x1000
jne 0x100f9bc0
cmp edi, ebx
jae 0x100f9bc0
mov ebx, edi
push ebx
call fcn.10063980
add esp, 4
mov esi, eax
mov ecx, ebx
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebp
and ecx, 3
push ebp
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x5c]
lea eax, [esp + 0x24]
push eax
push ebx
push esi
push ecx
mov dword [esp + 0x34], ebp
call fcn.10147090
add esp, 0x18
test eax, eax
je 0x100f9c36
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jae 0x100f9c11
cmp eax, ebp
mov dword [esp + 0x14], 1
je 0x100f9c73
lea edx, [esp + 0x24]
push ebp
push edx
push eax
mov eax, dword [esp + 0x64]
push esi
push eax
mov dword [esp + 0x38], ebp
call fcn.10147190
add esp, 0x14
test eax, eax
je 0x100f9c4c
cmp dword [esp + 0x14], ebp
je 0x100f9bcb
jmp 0x100f9c73
mov dword [0x1026caf8], 0xd
mov dword [0x1026cafc], 0x54c
jmp 0x100f9c60
mov dword [0x1026caf8], 0xe
mov dword [0x1026cafc], 0x55b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1026cb00], eax
mov dword [esp + 0x18], 1
mov ecx, dword [esp + 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call fcn.100639af
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, ebp
je 0x100f9ce2
cmp dword [esp + 0x18], ebp
jne 0x100f9ce2
mov ebx, dword [esp + 0x54]
mov al, byte [esp + 0x5c]
mov dword [esp + 0x20], 1
test al, 2
je 0x100f9ce2
lea edx, [esp + 0x28]
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x2c]
push 0x28
mov dword [esp + 0x2c], ebp
push edx
push ebx
rep stosd dword es:[edi], eax
call fcn.10146c10
add esp, 0xc
test eax, eax
je 0x100f9ce2
mov ecx, dword [esp + 0x58]
lea eax, [esp + 0x28]
push 0x28
push eax
push ecx
call fcn.10146c50
add esp, 0xc
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
mov dword [0x1026caf8], 0x25
mov dword [0x1026cafc], 0x52d
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [0x1026cb00], eax
mov eax, dword [esp + 0x18]
pop ebp
pop ebx
add esp, 0x40
ret
mov dword [0x1026caf8], 1
mov dword [0x1026cafc], 0x51d
call edi
pop edi
pop esi
mov dword [0x1026cb00], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret