joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10087260
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push ebx
test edx, edx
push esi
mov ebx, ecx
je 0x10087296
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
lea esi, [esp + 0xc]
or eax, 0x20019
push esi
push eax
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [esp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x10087298
mov esi, dword [ebx]
test esi, esi
je 0x10087323
mov edx, dword [esp + 0x10]
push edi
lea eax, [esp + 0x14]
xor edi, edi
push eax
lea ecx, [esp + 0x14]
push edi
push ecx
push edi
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne case.0x100872c8.2
mov eax, dword [esp + 0x18]
cmp eax, 4
ja case.0x100872c8.2
jmp dword [eax*4 + 0x1008732c]
mov edi, 1
jmp case.0x100872c8.2
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, 4
sete al
mov edi, eax
jmp case.0x100872c8.2
mov eax, dword [esp + 0x10]
cmp eax, 1
je case.0x100872c8.0
cmp eax, 2
je case.0x100872c8.0
cmp eax, 6
je case.0x100872c8.0
cmp eax, 7
je case.0x100872c8.0
xor edi, edi
jmp case.0x100872c8.2
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp eax, 3
sete cl
mov edi, ecx
cmp esi, dword [ebx]
je 0x1008731b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x10087510
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x100875a5
push ebx
push edi
mov edi, dword [esi + 0x20]
mov ebx, 4
test edi, edi
je 0x1008755f
call fcn.1008d7a0
test eax, eax
je 0x1008755f
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1008754c
mov ecx, dword [eax + 0x3c]
add ecx, eax
je 0x1008754c
mov ebx, dword [ecx + 0x64]
lea eax, [edi - 0x2000]
cmp ebx, eax
jbe 0x10087558
add edi, ebx
mov ebx, 0x10004
jmp 0x10087561
xor edi, edi
lea ecx, [esi + 4]
push ecx
push ebx
push esi
push 0x10087760
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
mov dword [esi + 8], eax
test eax, eax
pop ebx
je 0x100875a5
mov ecx, dword [esi + 0x24]
mov dword [esi + 0xc], 1
test ecx, ecx
je 0x10087594
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x100875d0
Capabilities:
Terminate thread

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x100875e4
xor eax, eax
pop esi
add esp, 8
ret
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 8]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 8]
push 0
push ecx
push 2
mov dword [esp + 0x18], edx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x10087630
mov ecx, dword [esi + 8]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 0x10]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push edx
call edi
mov eax, dword [esi + 0x14]
push eax
call edi
mov dword [esi + 0xc], 0
pop edi
mov eax, 1
pop esi
add esp, 8
ret

Function at 0x1008c840
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x20c
push ebx
push esi
mov edx, ecx
push edi
xor ebx, ebx
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], bx
add edx, 4
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x21c]
lea ecx, [esp + 0x18]
push eax
push edx
push 0x101c4b5c
push ecx
call fcn.10060870
add esp, 0x10
lea edx, [esp + 0xc]
lea eax, [esp + 0x18]
xor esi, esi
push edx
push eax
push reloc.WS2_32.dll_bind
mov dword [esp + 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x1008c8b7
lea ecx, [esp + 0xc]
lea edx, [esp + 0x18]
push ecx
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1008c932
mov edi, dword [esp + 0x220]
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
lea ecx, [esp + 0x1c]
push ebx
push ecx
push ebx
push edi
push edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
call ebp
mov eax, dword [esp + 0x14]
cmp eax, 2
jb 0x1008c918
add eax, 2
mov dword [esp + 0x14], eax
shr eax, 1
add eax, eax
push eax
call fcn.1017c342
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x1008c918
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push esi
push edx
push ebx
push edi
push eax
call ebp
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x20c
ret 8
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x20c
ret 8
Function at 0x1008c940
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push esi
mov edx, ecx
push edi
xor esi, esi
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x21c]
add edx, 4
push eax
push edx
lea ecx, [esp + 0x20]
push 0x101c4b5c
push ecx
call fcn.10060870
add esp, 0x10
lea edx, [esp + 8]
lea eax, [esp + 0x18]
mov dword [esp + 0xc], esi
push edx
push eax
push reloc.WS2_32.dll_bind
mov dword [esp + 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x1008c9b8
lea ecx, [esp + 8]
lea edx, [esp + 0x18]
push ecx
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1008c9f2
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x224]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push esi
push eax
push ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
pop edi
pop esi
add esp, 0x210
ret 8

Function at 0x1008cc90
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
lea eax, [esp + 8]
push eax
xor esi, esi
push edi
push reloc.WS2_32.dll_bind
mov dword [esp + 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x1008cccd
lea ecx, [esp + 8]
push ecx
push edi
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1008cd4d
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edx
lea eax, [esp + 0x14]
push 0
push eax
push 0
push edi
push ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], 0
call ebx
mov eax, dword [esp + 0x18]
cmp eax, 2
jb 0x1008cd37
add eax, 2
mov dword [esp + 0x18], eax
shr eax, 1
lea edx, [eax + eax]
push edx
call fcn.1017c342
mov esi, eax
add esp, 4
test esi, esi
je 0x1008cd37
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push esi
push ecx
push 0
push edi
push edx
call ebx
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov eax, esi
pop edi
pop esi
add esp, 8
ret 8
mov eax, esi
pop edi
pop esi
add esp, 8
ret 8
Function at 0x1008d110
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov eax, dword [0x102017b4]
test eax, eax
jne 0x1008d1fc
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x10201550
mov dword [0x102017b4], 1
mov dword [0x10201550], 0x114
call esi
mov edx, dword [0x10201560]
xor eax, eax
cmp edx, 2
sete al
test eax, eax
mov dword [0x101db2f0], eax
je 0x1008d1de
push edi
push 0x10201668
mov dword [0x10201668], 0x11c
call esi
push 0x101d4360
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 [0x102017ac], eax
call edi
mov dword [0x102017b0], eax
mov eax, dword [0x102017ac]
pop edi
test eax, eax
push 0x10201788
je 0x1008d1ac
call eax
jmp 0x1008d1b2
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x1020166c]
cmp eax, 6
jae 0x1008d1ca
cmp eax, 5
jne 0x1008d1de
cmp dword [0x10201670], 2
jb 0x1008d1de
cmp word [0x10201788], 9
jne 0x1008d1de
mov dword [0x10201544], 1
push 0x10201558
push 0x10201554
call fcn.1008d530
add esp, 8
call fcn.1008d210
mov eax, 1
pop esi
ret
mov eax, 1
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1019b658
push 0x10067864
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 [0x102017b8]
xor ebx, ebx
cmp eax, ebx
jne 0x1008e370
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 0x1008e36b
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 0x101c4b5c
lea edx, [ebp - 0x42c]
push edx
call fcn.10060870
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.1017c342
add esp, 4
mov esi, eax
mov dword [ebp - 0x440], esi
cmp esi, ebx
je 0x1008e36b
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 0x1008e362
mov dword [ebp - 0x438], ebx
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x438]
push eax
push 0x101dc304
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1008e362
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x438]
mov dword [ebp - 0x43c], eax
mov ecx, dword [eax]
mov dword [0x102017b8], ecx
mov dword [ebp - 4], 0xffffffff
jmp 0x1008e362
push esi
call fcn.1017c36b
add esp, 4
mov eax, dword [0x102017b8]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1008e900
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov eax, dword [0x10201a30]
test eax, eax
jne 0x1008e9be
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x102017d0
mov dword [0x10201a30], 1
mov dword [0x102017d0], 0x114
call esi
mov edx, dword [0x102017e0]
xor eax, eax
cmp edx, 2
sete al
test eax, eax
mov dword [0x101dc46c], eax
je 0x1008e9b2
push 0x102018e8
mov dword [0x102018e8], 0x11c
call esi
push 0x101d4360
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.GetNativeSystemInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x10201a2c], eax
push 0x10201a08
je 0x1008e980
call eax
jmp 0x1008e986
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x102018ec]
cmp eax, 6
jae 0x1008e99e
cmp eax, 5
jne 0x1008e9b2
cmp dword [0x102018f0], 2
jb 0x1008e9b2
cmp word [0x10201a08], 9
jne 0x1008e9b2
mov dword [0x102017c4], 1
call fcn.1008e9d0
mov eax, 1
pop esi
ret
mov eax, 1
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1019b668
push 0x10067864
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 [0x10201a34]
xor ebx, ebx
cmp eax, ebx
jne 0x1008f170
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 0x1008f16b
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 0x101c4b5c
lea edx, [ebp - 0x42c]
push edx
call fcn.10060870
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.1017c342
add esp, 4
mov esi, eax
mov dword [ebp - 0x440], esi
cmp esi, ebx
je 0x1008f16b
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 0x1008f162
mov dword [ebp - 0x438], ebx
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x438]
push eax
push 0x101dc304
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1008f162
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x438]
mov dword [ebp - 0x43c], eax
mov ecx, dword [eax]
mov dword [0x10201a34], ecx
mov dword [ebp - 4], 0xffffffff
jmp 0x1008f162
push esi
call fcn.1017c36b
add esp, 4
mov eax, dword [0x10201a34]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1008fbb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10191bcf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x1019b4e4]
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.1007a4a0
mov esi, dword [esp + 0x50]
add esp, 0x34
lea edx, [esp + 4]
mov ecx, esi
push edx
call fcn.10076b20
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.10077520
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

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

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x1008ff5b
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 0x1009005d
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 + 0x1019b674]
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 + 0x1019b674]
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 + 0x1019b674]
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 + 0x1019b674]
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 + 0x1019b674]
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 + 0x1019b674]
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 + 0x1019b674]
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 + 0x1019b674]
xor eax, edx
inc ecx
dec edi
jne 0x1008ff76
test esi, esi
je 0x1009007f
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x1019b674]
xor eax, edx
inc ecx
dec esi
jne 0x10090061
pop edi
pop esi
not eax
pop ebx
ret
Function at 0x10090b00
Capabilities:
Get disk information

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10191d2b
push eax
mov dword fs:[0], esp
sub esp, 0x260
lea eax, [esp + 8]
push ebp
mov ebp, dword [esp + 0x274]
push esi
mov esi, dword [esp + 0x27c]
push eax
push ebp
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x10090b67
push 0x104
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x260]
mov dword fs:[0], ecx
add esp, 0x26c
ret
mov ecx, dword [0x1019b4e4]
push edi
mov dword [esp + 0xc], ecx
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x278], 0
call fcn.100781f0
mov esi, eax
mov ecx, 0x41
xor eax, eax
mov edi, esi
push 0x104
push ebp
rep stosd dword es:[edi], eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dx, word [esi]
mov eax, esi
test dx, dx
pop edi
je 0x10090bda
mov ecx, edx
cmp cx, 0x5c
je 0x10090bbe
cmp cx, 0x2f
jne 0x10090bce
mov cx, word [eax + 2]
cmp cx, 0x5c
je 0x10090bda
cmp cx, 0x2f
je 0x10090bda
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x10090bb2
cmp word [eax], 0
je 0x10090c3b
mov cx, word [eax + 4]
add eax, 4
test cx, cx
je 0x10090c04
cmp cx, 0x5c
je 0x10090c04
cmp cx, 0x2f
je 0x10090c04
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x10090bec
cmp word [eax], 0
je 0x10090c0d
add eax, 2
mov cx, word [eax]
test cx, cx
je 0x10090c2d
cmp cx, 0x5c
je 0x10090c2d
cmp cx, 0x2f
je 0x10090c2d
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x10090c15
cmp word [eax], 0
je 0x10090c66
mov word [eax + 2], 0
jmp 0x10090c66
test dx, dx
je 0x10090c5a
mov eax, edx
cmp ax, 0x5c
je 0x10090c5a
cmp ax, 0x2f
je 0x10090c5a
mov ax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x10090c42
cmp word [esi], 0
je 0x10090c66
mov word [esi + 2], 0
or esi, 0xffffffff
lea ecx, [esp + 8]
push esi
call fcn.100782c0
mov ecx, dword [esp + 8]
push 0
lea edx, [esp + 0x10]
push 0
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x10090cbf
lea ecx, [esp + 8]
mov dword [esp + 0x270], esi
call fcn.10077520
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x260]
mov dword fs:[0], ecx
add esp, 0x26c
ret
test byte [esp + 0xc], 2
jne 0x10090ccd
push ebp
call dword [sym.imp.USER32.dll_CharUpperW]
test byte [esp + 0xc], 4
jne 0x10090d02
mov eax, dword [esp + 0x27c]
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x10090d02
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x44]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [esp + 8]
mov dword [esp + 0x270], esi
call fcn.10077520
mov ecx, dword [esp + 0x268]
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x26c
ret
Function at 0x10090d80
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, ecx
test ebx, ebx
je 0x10090ddf
mov ecx, dword [esp + 0xc]
mov edx, dword [esi + 4]
push edi
lea eax, [esp + 0x14]
push 0
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10090dc6
mov edi, dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10090dc6
push edi
push eax
push eax
call fcn.100903d0
push eax
call fcn.10090160
add esp, 0xc
mov eax, dword [esp + 0x14]
pop edi
cmp eax, ebx
je 0x10090ddf
mov eax, dword [esi + 0xc]
push eax
push 0xffffffffffffffff
push 0xd
call fcn.10090160
add esp, 0xc
pop esi
pop ebx
ret 8

Function at 0x100913d0
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
sub esp, 0x18
xor eax, eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
mov ebp, ecx
push edi
mov ecx, 0x87
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
push 0x104
lea ecx, [esi + 0x12]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov eax, dword [ebp + 4]
cmp eax, 0xffffffff
je 0x100914e1
lea edx, [esp + 0x20]
lea ecx, [esp + 0x18]
push edx
lea edx, [esp + 0x14]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x1009142b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4
mov eax, dword [ebp + 4]
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
jne 0x1009144c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret 4
mov ebp, dword [ebp + 0xc]
cmp dword [ebp - 8], ebx
jne 0x10091459
mov byte [esi + 0x10], bl
jmp 0x1009146d
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1009146a
mov byte [esi + 0x10], bl
jmp 0x1009146d
mov byte [esi + 0x10], al
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
push ecx
lea ecx, [esp + 0x34]
call fcn.10087b50
push eax
mov ecx, esi
call fcn.10087840
lea edx, [esp + 0x18]
push 0xffffffffffffffff
push edx
lea ecx, [esp + 0x34]
lea ebx, [esi + 8]
call fcn.10087b50
push eax
mov ecx, ebx
call fcn.10087840
lea eax, [esp + 0x20]
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x34]
lea edi, [esi + 4]
call fcn.10087b50
push eax
mov ecx, edi
call fcn.10087840
mov ecx, esi
call fcn.10087860
test eax, eax
jne 0x100914ce
push edi
mov ecx, esi
call fcn.10087840
mov ecx, ebx
call fcn.10087860
test eax, eax
jne 0x100914e1
push edi
mov ecx, ebx
call fcn.10087840
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x18
ret 4
Function at 0x10093a80
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 0x10093b40
lea ecx, [esp + 0xc]
push 0x5c
push ecx
call fcn.10060917
add esp, 8
test eax, eax
je 0x10093acf
mov word [eax], 0
mov edi, dword [esp + 0x218]
test edi, edi
je 0x10093b39
mov ebx, dword [esp + 0x21c]
test ebx, ebx
je 0x10093b39
lea edx, [esp + 0xc]
test edx, edx
je 0x10093b39
mov eax, dword [esp + 0x220]
mov esi, 0x7a
test eax, eax
je 0x10093b16
push eax
lea eax, [esp + 0x10]
push eax
push 0x101c4b5c
push ebx
push edi
call fcn.10060800
add esp, 0x14
xor esi, esi
jmp 0x10093b48
lea ecx, [esp + 0xc]
push ecx
call fcn.1005f906
add esp, 4
cmp ebx, eax
jbe 0x10093b48
lea edx, [esp + 0xc]
push edx
push edi
call fcn.1005fecd
add esp, 8
xor esi, esi
jmp 0x10093b48
mov esi, 0x57
jmp 0x10093b48
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
mov dword [0x10201aa8], esi
je 0x10093b59
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 0x10093c70
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 0x10093d30
lea ecx, [esp + 0xc]
push 0x5c
push ecx
call fcn.10060917
add esp, 8
test eax, eax
je 0x10093cbf
mov word [eax], 0
mov edi, dword [esp + 0x218]
test edi, edi
je 0x10093d29
mov ebx, dword [esp + 0x21c]
test ebx, ebx
je 0x10093d29
lea edx, [esp + 0xc]
test edx, edx
je 0x10093d29
mov eax, dword [esp + 0x220]
mov esi, 0x7a
test eax, eax
je 0x10093d06
push eax
lea eax, [esp + 0x10]
push eax
push 0x101c4b5c
push ebx
push edi
call fcn.10060800
add esp, 0x14
xor esi, esi
jmp 0x10093d38
lea ecx, [esp + 0xc]
push ecx
call fcn.1005f906
add esp, 4
cmp ebx, eax
jbe 0x10093d38
lea edx, [esp + 0xc]
push edx
push edi
call fcn.1005fecd
add esp, 8
xor esi, esi
jmp 0x10093d38
mov esi, 0x57
jmp 0x10093d38
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
mov dword [0x10201aa8], esi
je 0x10093d49
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