joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10095f90
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101bb268
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1022101c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esi + 8]
test edi, edi
jne 0x10095fd3
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 4
lea ecx, [ebp - 0x10]
call sym.FileAssociate.dll_public:_void___thiscall_RC::RCSQLiteConnection::__autoclassinit2_unsigned_int_
lea eax, [edi + 0x20]
push eax
lea ecx, [ebp - 0x10]
call fcn.10017a10
mov dword [ebp - 4], 0
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
je 0x1009604b
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
lea edi, [esi + 4]
push 1
push edi
call ebx
mov eax, dword [esi + 8]
add eax, 0xc
push eax
push 4
push esi
push 0x10095b70
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
jne 0x10096070
push 0xffffffffffffffff
push edi
call ebx
sub eax, 1
jne 0x10096043
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.10095d00
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.10017a40
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x10096088
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x10096032
mov bl, 1
jmp 0x1009604d

Function at 0x10096830
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x1022101c]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x10096895
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10096870
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10096895
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.101b075c
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.101b075c
add esp, 8
ret 4
Function at 0x100969e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [0x1022101c]
xor eax, esp
mov dword [esp + 4], eax
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, ecx
push esi
mov dword [ebx], 0
push edi
cmp dword [ebp], 0xffffffff
mov edi, dword [esp + 0x1c]
je 0x10096a75
mov esi, dword [esp + 0x20]
mov ecx, 0x100000
nop dword [eax]
nop word [eax + eax]
cmp esi, 0x100000
mov dword [esp + 0x10], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x14]
push ecx
push eax
push edi
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x10]
add dword [ebx], ecx
test eax, eax
je 0x10096a75
test ecx, ecx
je 0x10096a5e
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x10096a20
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.101b075c
add esp, 8
ret 0xc
mov ecx, dword [esp + 0x14]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.101b075c
add esp, 8
ret 0xc
Function at 0x100984a0
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x1022101c]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.101b076d
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [esp + 4], 0x11c
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x100984fc
cmp dword [esp + 8], 6
mov ecx, dword [esi]
setae dl
mov byte [ecx], dl
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
call fcn.101b075c
add esp, 0x120
ret
Function at 0x1009a9c0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c58a6
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x1022101c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x820], ecx
lea eax, [ebp - 0x810]
push eax
push 0x3fe
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ebx, eax
mov dword [ebp - 0x814], ebx
test ebx, ebx
je 0x1009aa9e
lea edi, [ebp - 0x810]
mov dword [ebp - 0x818], 0
xor esi, esi
mov dword [ebp - 0x81c], edi
mov dword [ebp - 0x818], esi
mov dword [ebp - 4], esi
cmp ebx, 0x3fe
jbe 0x1009aabc
xor ecx, ecx
lea eax, [ebx + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.101b0f90
add esp, 4
mov dword [ebp - 0x81c], eax
mov edi, eax
mov esi, edi
mov dword [ebp - 0x818], esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x1009aa8a
cmp eax, ebx
ja 0x1009aa8a
xor ecx, ecx
mov ebx, eax
mov dword [edi + eax*2], ecx
mov dword [ebp - 0x814], ebx
jmp 0x1009aaea
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x1009aa9e
push edi
call fcn.101b0f8b
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101b075c
mov esp, ebp
pop ebp
ret
lea eax, [ebx + ebx]
cmp eax, 0x800
jae 0x1009ab75
xor ecx, ecx
mov word [ebp + eax - 0x810], cx
add eax, 2
cmp eax, 0x800
jae 0x1009ab75
mov word [ebp + eax - 0x810], cx
xor ecx, ecx
xor edi, edi
test ebx, ebx
je 0x1009ab5a
mov esi, dword [ebp - 0x81c]
mov ebx, 2
mov eax, dword [ebp - 0x814]
cmp word [esi + ebx - 2], 0
jne 0x1009ab4c
cmp ecx, edi
je 0x1009ab4c
lea eax, [esi + ecx*2]
push eax
lea ecx, [ebp - 0x838]
call fcn.10003b60
mov byte [ebp - 4], 1
lea eax, [ebp - 0x838]
mov ecx, dword [ebp - 0x820]
push eax
call fcn.1000d1d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x838]
call fcn.10003b10
mov eax, dword [ebp - 0x814]
lea ecx, [edi + 1]
inc edi
add ebx, 2
cmp edi, eax
jb 0x1009ab03
mov esi, dword [ebp - 0x818]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x1009ab6e
push esi
call fcn.101b0f8b
add esp, 4
mov al, 1
jmp 0x1009aaa0
call fcn.101b1113
int3
Function at 0x1009bb50
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c5c3b
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x1022101c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi], 0
je 0x1009bb89
call fcn.1009bcf0
cmp byte [0x102248e4], 0
jne 0x1009bb9c
mov eax, 0x80000001
jmp 0x1009bccc
mov eax, dword [esi]
test eax, eax
jne 0x1009bc1c
push 8
call fcn.101b076d
mov edi, eax
add esp, 4
mov dword [ebp - 0x138], edi
mov dword [ebp - 4], 0
push 1
call fcn.101b076d
add esp, 4
mov dword [edi + 4], eax
mov byte [eax], 0
lea eax, [ebp - 0x130]
push 0x118
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x134], 0x11c
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1009bc0b
cmp dword [ebp - 0x130], 6
mov eax, dword [edi + 4]
setae cl
mov byte [eax], cl
mov dword [ebp - 4], 0xffffffff
mov dword [esi], edi
mov dword [edi], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x1009bcbb
call fcn.10099080
test al, al
jne 0x1009bc56
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esi]
push eax
add ecx, 4
call fcn.100995c0
test al, al
je 0x1009bcbb
mov ecx, dword [esi]
add ecx, 4
call fcn.10098bd0
call fcn.10099080
test al, al
je 0x1009bcbb
push str.Advapi32.dll
lea ecx, [ebp - 0x150]
call fcn.10003b60
mov dword [ebp - 4], 2
lea eax, [ebp - 0x150]
push eax
call fcn.10097c10
mov ecx, eax
call fcn.10097cd0
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x150]
call fcn.10003b10
test edi, edi
je 0x1009bcbb
push str.RegOpenCurrentUser
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1009bcbb
push dword [esi]
push dword [ebp + 8]
call eax
test eax, eax
je 0x1009bcbb
mov eax, dword [esi]
mov dword [eax], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x1009bcca
mov dword [eax], 0x80000001
mov eax, dword [esi]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.101b075c
mov esp, ebp
pop ebp
ret 4
Function at 0x1009bf40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c5cf6
mov eax, dword fs:[0]
push eax
sub esp, 0x64c
mov eax, dword [0x1022101c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x650]
mov ebx, dword [ebp + 0xc]
call fcn.10003bb0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x654]
push 4
call sym.FileAssociate.dll_public:_void___thiscall_RC::RCSQLiteConnection::__autoclassinit2_unsigned_int_
push 0x102249a4
lea ecx, [ebp - 0x654]
call fcn.10017a10
mov byte [ebp - 4], 1
mov ecx, 0x102249a8
call fcn.10003ac0
test al, al
jne 0x1009bfef
push 0x102249a8
call fcn.10003f50
lea ecx, [ebp - 0x650]
add esp, 4
cmp ecx, eax
je 0x1009c0b3
mov ecx, 0x102249a8
call fcn.10003c50
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x1009bfe6
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
jmp 0x1009c0a8
push 0x20c
lea eax, [ebp - 0x220]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x1009c146
xor eax, eax
push 0x412
push eax
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x638]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x638]
push 0x208
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x1009c091
test eax, eax
je 0x1009c091
add eax, eax
cmp eax, 0x412
jae 0x1009c189
xor ecx, ecx
mov word [ebp + eax - 0x638], cx
lea eax, [ebp - 0x638]
push eax
call fcn.10003f00
add esp, 4
push eax
lea eax, [ebp - 0x638]
jmp 0x1009c0a7
lea eax, [ebp - 0x220]
push eax
call fcn.10003f00
add esp, 4
push eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x650]
call fcn.10003cf0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x654]
call fcn.10017a40
push ebx
push edi
lea eax, [ebp - 0x650]
mov ecx, esi
push eax
call fcn.1009bed0
test al, al
je 0x1009c0da
mov bl, 1
jmp 0x1009c157
push 0x20c
lea eax, [ebp - 0x220]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x1009c155
xor eax, eax
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x220]
push eax
call fcn.10003f00
add esp, 4
lea ecx, [ebp - 0x650]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.10003cf0
push ebx
push edi
lea eax, [ebp - 0x650]
mov ecx, esi
push eax
call fcn.1009bed0
mov bl, al
jmp 0x1009c157
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x654]
call fcn.10017a40
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x650]
call fcn.10003b10
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101b075c
mov esp, ebp
pop ebp
ret 8
call fcn.101b1113
int3
Function at 0x1009d6d0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c5fff
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1022101c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [edi + 4]
push eax
lea ecx, [eax + 0x94]
call fcn.1009ddb0
mov esi, dword [edi + 4]
add esp, 4
sub esi, 0x94
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.10003b10
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.10003b10
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.10003b10
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.10003b10
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.10003b10
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.10003b10
mov eax, dword [ebp + 8]
add dword [edi + 4], 0xffffff6c
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x1009e380
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c61ef
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x1022101c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.10003b10
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.10003b10
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.10003b10
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.10003b10
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.10003b10
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.10003b10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1009f670
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c638f
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1022101c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
push esi
call fcn.10005450
mov dword [ebp - 4], 0
lea eax, [esi + 0x18]
push eax
lea ecx, [edi + 0x18]
call fcn.10005450
mov byte [ebp - 4], 1
lea eax, [esi + 0x30]
push eax
lea ecx, [edi + 0x30]
call fcn.10005450
mov byte [ebp - 4], 2
lea eax, [esi + 0x48]
push eax
lea ecx, [edi + 0x48]
call fcn.10005450
mov byte [ebp - 4], 3
lea ecx, [edi + 0x64]
mov al, byte [esi + 0x60]
mov byte [edi + 0x60], al
lea eax, [esi + 0x64]
push eax
call fcn.10005450
mov byte [ebp - 4], 4
lea eax, [esi + 0x7c]
push eax
lea ecx, [edi + 0x7c]
call fcn.10005450
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x100a0800
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push ebx
push ebp
mov ebx, ecx
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
lea ecx, [eax - 1]
push esi
mov ebp, ecx
mov dword [esp + 0x14], ecx
push edi
mov edi, edx
sar ebp, 1
mov dword [esp + 0x14], edi
mov esi, edi
cmp edi, ebp
jge 0x100a0871
add esi, esi
lea eax, [esi + 2]
lea eax, [eax + eax*2]
lea ecx, [ebx + eax*8]
lea edx, [ecx - 0x18]
call fcn.10008950
movzx eax, al
xor eax, 1
inc eax
add esi, eax
lea eax, [esi + esi*2]
lea eax, [ebx + eax*8]
push eax
call fcn.10003f50
add esp, 4
push eax
lea eax, [edi + edi*2]
lea ecx, [ebx + eax*8]
call fcn.10003b20
mov edi, esi
cmp esi, ebp
jl 0x100a0830
mov eax, dword [esp + 0x10]
cmp esi, ebp
jne 0x100a089b
test al, 1
jne 0x100a089b
lea eax, [eax + eax*2]
lea eax, [eax - 3]
lea eax, [ebx + eax*8]
push eax
call fcn.10003f50
add esp, 4
push eax
lea eax, [edi + edi*2]
lea ecx, [ebx + eax*8]
call fcn.10003b20
mov edi, dword [esp + 0x18]
push dword [esp + 0x1c]
call fcn.10003f50
add esp, 4
mov ecx, eax
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x14], edi
jge 0x100a08f0
lea esi, [edi - 1]
mov edx, ecx
sar esi, 1
lea eax, [esi + esi*2]
lea ebp, [ebx + eax*8]
mov ecx, ebp
call fcn.10008950
test al, al
je 0x100a08ec
push ebp
call fcn.10003f50
add esp, 4
push eax
lea eax, [edi + edi*2]
lea ecx, [ebx + eax*8]
call fcn.10003b20
mov edi, esi
mov ecx, dword [esp + 0x10]
cmp dword [esp + 0x14], esi
jl 0x100a08b3
mov ecx, dword [esp + 0x10]
push ecx
call fcn.10003f50
add esp, 4
push eax
lea eax, [edi + edi*2]
lea ecx, [ebx + eax*8]
call fcn.10003b20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x100a4d70
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c1758
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x1022101c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
cmp esi, 0xffffffff
jne 0x100a4da7
xor al, al
jmp 0x100a4e0a
and esi, 0xffffb1af
push esi
call fcn.10003ad0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x100a4dc2
mov al, 1
jmp 0x100a4e0a
lea ecx, [ebp - 0x28]
call fcn.10003bb0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.100a5430
test al, al
je 0x100a4df7
push esi
lea ecx, [ebp - 0x28]
call fcn.10003ad0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x100a4df7
mov bl, 1
jmp 0x100a4df9
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10003b10
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101b075c
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c1758
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x1022101c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.10003ad0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100a4eae
lea ecx, [ebp - 0x28]
call fcn.10003bb0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.100a5430
test al, al
je 0x100a4e9d
lea ecx, [ebp - 0x28]
call fcn.10003ad0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10003b10
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101b075c
mov esp, ebp
pop ebp
ret
Function at 0x100a4fe0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c6f50
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x1022101c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.10003ad0
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
je 0x100a5026
mov al, 1
jmp 0x100a511b
mov ecx, esi
call fcn.10003ad0
push eax
lea ecx, [ebp - 0x28]
call fcn.10003b60
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.100a4e30
mov ebx, eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10003b10
cmp ebx, 0xffffffff
jne 0x100a5065
xor al, al
jmp 0x100a511b
mov ecx, esi
call fcn.10003ad0
push eax
lea ecx, [ebp - 0x28]
call fcn.10003b60
mov dword [ebp - 4], 1
xor edx, edx
lea ecx, [ebp - 0x28]
call fcn.100a4d70
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10003b10
test bl, bl
je 0x100a505e
mov ecx, esi
call fcn.10003ad0
push eax
call edi
test eax, eax
jne 0x100a501f
lea ecx, [ebp - 0x28]
call fcn.10003bb0
mov dword [ebp - 4], 2
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.100a5430
test al, al
je 0x100a50dd
lea ecx, [ebp - 0x28]
call fcn.10003ad0
push eax
call edi
test eax, eax
je 0x100a50dd
mov bl, 1
jmp 0x100a510a
mov ecx, esi
call fcn.10003ad0
push eax
lea ecx, [ebp - 0x44]
call fcn.10003b60
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 0x2c]
call fcn.100a4d70
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.10003b10
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10003b10
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101b075c
mov esp, ebp
pop ebp
ret

Function at 0x100a5140
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x1022101c]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
mov ebx, dword [esp + 0x218]
lea eax, [esp + 4]
push esi
push edi
push 0x20c
push 0
push eax
mov esi, edx
mov edi, ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0xc]
mov ecx, esi
push eax
push 0
call fcn.10003ad0
push eax
mov ecx, edi
call fcn.10003ad0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x100a51d5
xor eax, eax
mov word [esp + 0x216], ax
lea eax, [esp + 0xc]
push eax
call fcn.10003f00
add esp, 4
mov ecx, ebx
push eax
lea eax, [esp + 0x10]
push eax
call fcn.10003cf0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.101b075c
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.101b075c
add esp, 0x210
ret
Function at 0x100a75a0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c766d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x1022101c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
call fcn.1008e200
mov dword [ebp - 4], 0
mov dword [ebx + 0xe4], 0xffffffff
mov dword [ebx + 0xe8], 0
push 0x38
mov byte [ebx + 0xec], 0
call fcn.101b076d
mov edi, eax
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 1
push 0x38
push 0
push edi
call sub.VCRUNTIME140.dll_memset
push 0x18
mov dword [edi], 0xbb8
mov dword [edi + 4], 0x3e80
mov dword [edi + 8], 0xafc8
mov dword [edi + 0xc], 0x3e8
mov word [edi + 0x10], 0
call fcn.101b076d
mov dword [edi + 0x14], eax
add esp, 0x14
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [edi + 0x14]
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov eax, dword [edi + 0x14]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov byte [ebp - 4], 2
lea esi, [edi + 0x30]
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
push 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [ebp - 0x18], esi
push 0
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.100be7d0
mov dword [esi], eax
mov byte [ebp - 4], 0
mov dword [ebx + 0xe0], edi
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret