joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100ed9db
Capabilities:
Enumerate files on windows

Disassembly:
push 0x2c8
mov eax, 0x10138490
call fcn.101108dc
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2a0], eax
push 0x18
mov eax, dword [esi + 4]
sub eax, dword [esi]
cdq
pop ebx
idiv ebx
and dword [ebp - 0x294], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x29c], ecx
mov dword [ebp - 0x2a4], esi
test eax, eax
je 0x100edb50
xor ebx, ebx
mov dword [ebp - 0x298], ebx
push 0x1014b034
push ecx
lea eax, [ebp - 0x2bc]
push eax
call fcn.1003a3c0
mov ecx, dword [esi]
and dword [ebp - 4], 0
add ecx, ebx
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.1003a3c0
add esp, 0x18
lea ecx, [ebp - 0x2bc]
mov byte [ebp - 4], 2
call fcn.10015273
cmp dword [ebp - 0x18], 0
je 0x100edb58
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x290]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x100edb58
mov esi, dword [ebp - 0x29c]
mov ebx, dword [ebp - 0x2a0]
test byte [ebp - 0x290], 0x10
jne 0x100edaf1
push 0x1014b034
lea eax, [ebp - 0x2d4]
push esi
push eax
call fcn.1003a3c0
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 3
push ecx
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.1003a3c0
add esp, 0x18
lea ecx, [ebp - 0x2d4]
mov byte [ebp - 4], 5
call fcn.10015273
lea eax, [ebp - 0x40]
mov ecx, ebx
push eax
call fcn.1003a3c0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.10015273
lea eax, [ebp - 0x290]
push eax
push edi
call dword [sym.imp.kernel32.dll_FindNextFileW]
test eax, eax
jne 0x100eda98
push edi
call dword [sym.imp.kernel32.dll_FindClose]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10015273
mov esi, dword [ebp - 0x2a4]
push 0x18
pop ecx
mov edi, dword [ebp - 0x294]
mov eax, dword [esi + 4]
inc edi
sub eax, dword [esi]
cdq
idiv ecx
mov ebx, dword [ebp - 0x298]
add ebx, ecx
mov dword [ebp - 0x294], edi
mov ecx, dword [ebp - 0x29c]
mov dword [ebp - 0x298], ebx
cmp edi, eax
jb 0x100eda27
mov al, 1
call fcn.10110886
ret
lea ecx, [ebp - 0x28]
call fcn.10015273
xor al, al
jmp 0x100edb52
Function at 0x100f0c3b
Capabilities:
Get storage device properties

Disassembly:
push 0x54
mov eax, 0x10138dcb
call fcn.101108dc
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push str..PhysicalDrive0
mov dword [ebp - 0x48], eax
call dword [sym.imp.kernel32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100f0c70
xor al, al
jmp 0x100f0dee
push ebx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x30], ebx
push eax
push 8
lea eax, [ebp - 0x40]
mov dword [ebp - 0x38], ebx
push eax
push 0xc
lea eax, [ebp - 0x38]
mov dword [ebp - 0x34], ebx
push eax
push 0x2d1400
xorps xmm0, xmm0
mov dword [ebp - 0x14], ebx
push edi
movlpd qword [ebp - 0x40], xmm0
call dword [sym.imp.kernel32.dll_DeviceIoControl]
test eax, eax
jne 0x100f0cae
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x100f0c69
mov esi, dword [ebp - 0x3c]
push esi
call fcn.1003a3c0
push esi
push ebx
push eax
mov dword [ebp - 0x44], eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
lea eax, [ebp - 0x14]
push ebx
push eax
push esi
mov esi, dword [ebp - 0x44]
lea eax, [ebp - 0x38]
push esi
push 0xc
push eax
push 0x2d1400
push edi
call dword [sym.imp.kernel32.dll_DeviceIoControl]
test eax, eax
jne 0x100f0cee
push esi
call fcn.101109bc
pop ecx
jmp 0x100f0ca5
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], bl
mov dword [ebp - 4], ebx
test eax, eax
je 0x100f0dca
cmp eax, dword [esi + 4]
jae 0x100f0dca
add eax, esi
lea ecx, [ebp - 0x60]
push eax
call fcn.1003a3c0
lea ecx, [ebp - 0x2c]
cmp ecx, eax
je 0x100f0d30
mov byte [ebp - 0x44], bl
push dword [ebp - 0x44]
push eax
call fcn.1003a3c0
lea ecx, [ebp - 0x60]
call fcn.1001524d
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x2c]
test eax, eax
je 0x100f0d5d
lea edx, [eax + ecx]
mov eax, ecx
cmp ecx, edx
jae 0x100f0d5d
cmp byte [eax], 0x20
jne 0x100f0d89
inc eax
cmp eax, edx
jb 0x100f0d53
or eax, 0xffffffff
push eax
push ebx
lea ecx, [ebp - 0x2c]
call fcn.1003a3c0
cmp dword [ebp - 0x18], 0x10
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
cmovae edx, dword [ebp - 0x2c]
test eax, eax
je 0x100f0d9b
dec eax
or ecx, 0xffffffff
cmp eax, ecx
cmovb ecx, eax
add ecx, edx
jmp 0x100f0d92
sub eax, ecx
jmp 0x100f0d60
cmp ecx, edx
je 0x100f0d9b
dec ecx
cmp byte [ecx], 0x20
je 0x100f0d8d
sub ecx, edx
jmp 0x100f0d9e
or ecx, 0xffffffff
lea eax, [ecx + 1]
push eax
lea ecx, [ebp - 0x2c]
call fcn.1003a3c0
push dword [ebp - 0x48]
lea eax, [ebp - 0x2c]
push eax
call fcn.1003a3c0
push esi
call fcn.101109bc
add esp, 0xc
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov bl, 1
jmp 0x100f0dd8
push esi
call fcn.101109bc
pop ecx
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x100f0dec
inc ecx
push ecx
push dword [ebp - 0x2c]
call fcn.1003a3c0
pop ecx
pop ecx
mov al, bl
call fcn.10110886
ret
Function at 0x100f1e17
Capabilities:
Get hostname

Disassembly:
push 0x43c
mov eax, 0x1013909f
call fcn.101108dc
mov edi, dword [ebp + 8]
mov ecx, edi
push 0xf
push str.unknown_machine
call fcn.1003a3c0
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x414], 0x100
lea eax, [ebp - 0x414]
mov esi, 0xff
push eax
lea eax, [ebp - 0x210]
push eax
push 5
call dword [sym.imp.kernel32.dll_GetComputerNameExW]
test eax, eax
je 0x100f1f4d
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x448]
call fcn.1003a3c0
and dword [ebp - 4], 0
cmp dword [ebp - 0x438], 0
je 0x100f1ebd
cmp dword [ebp - 0x434], 8
lea eax, [ebp - 0x448]
push edi
cmovae eax, dword [ebp - 0x448]
push eax
call fcn.1003a3c0
pop ecx
pop ecx
xor esi, esi
jmp 0x100f1f40
push 0x200
lea eax, [ebp - 0x410]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x418], 0x100
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x410]
push eax
push 1
call dword [sym.imp.kernel32.dll_GetComputerNameExW]
test eax, eax
je 0x100f1f40
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x430]
call fcn.1003a3c0
cmp dword [ebp - 0x420], 0
mov byte [ebp - 4], 1
je 0x100f1f35
cmp dword [ebp - 0x41c], 8
lea eax, [ebp - 0x430]
push edi
cmovae eax, dword [ebp - 0x430]
push eax
call fcn.1003a3c0
pop ecx
pop ecx
xor esi, esi
lea ecx, [ebp - 0x430]
call fcn.10015273
lea ecx, [ebp - 0x448]
call fcn.10015273
jmp 0x100f1f50
xor esi, esi
inc esi
mov eax, esi
call fcn.10110886
ret
Function at 0x100f37fc
Capabilities:
Get hostname

Disassembly:
push 0x224
mov eax, 0x101394c4
call fcn.101108dc
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x214]
push 0x202
push 0
xor ebx, ebx
push eax
inc ebx
mov byte [esi], 0
call sub.VCRUNTIME140.dll_memset
and dword [ebp - 0x220], 0
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x218], 0x100
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
and dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x214]
push eax
push 2
call dword [sym.imp.kernel32.dll_GetComputerNameExW]
test eax, eax
je 0x100f388a
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x230]
call fcn.1003a3c0
cmp dword [ebp - 0x220], 0
je 0x100f388a
mov byte [esi], bl
xor ebx, ebx
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x100f38aa
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x230]
call fcn.1003a3c0
pop ecx
pop ecx
mov eax, ebx
call fcn.10110886
ret
Function at 0x100f3d52
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013957b
mov eax, dword fs:[0]
push eax
mov eax, 0x1010
call fcn.101113d0
mov eax, dword [0x101d9548]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
lea eax, [ebp - 0x810]
mov esi, 0x800
mov dword [ebp - 4], edi
push esi
push edi
push eax
mov dword [ebp - 0x1014], edi
call sub.VCRUNTIME140.dll_memset
push esi
lea eax, [ebp - 0x1010]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
lea eax, [ebp + 8]
mov dword [ebp - 0x101c], eax
mov esi, 0x400
lea eax, [ebp - 0x1014]
mov dword [ebp - 0x1018], eax
lea eax, [ebp - 0x810]
push esi
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
test eax, eax
je 0x100f3df4
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x101c]
call fcn.100ef3da
test eax, eax
jne 0x100f3e18
push esi
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x100f3e18
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x101c]
call fcn.100ef3da
mov esi, dword [ebp - 0x1014]
lea ecx, [ebp + 8]
call fcn.10015273
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10110860
leave
ret
Function at 0x100f5a9a
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x58
mov eax, 0x101399b7
call fcn.1011094a
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov eax, ebx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
lea edx, [ebp - 0x20]
push edx
push ebx
lea edx, [ebp - 0x18]
push edx
push ebx
lea edx, [ebp - 0x1c]
push edx
push ebx
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x100f5baa
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1003a3c0
pop ecx
push dword [ebp - 0x20]
mov esi, eax
call fcn.1003a3c0
pop ecx
mov edi, eax
lea eax, [ebp - 0x20]
push eax
push edi
lea eax, [ebp - 0x18]
push eax
push ebx
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x2c]
push esi
push dword [ebp - 0x24]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x100f5b87
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], edi
mov word [esi + eax*2], cx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x64]
call fcn.10039f82
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 4], 1
call fcn.1003a3c0
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], bl
call fcn.10015273
lea ecx, [ebp - 0x64]
call fcn.10015273
push esi
call fcn.101109bc
push edi
call fcn.101109bc
mov eax, dword [ebp - 0x24]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x24], eax
jmp 0x100f5ac5
xor ebx, ebx
push esi
inc ebx
call fcn.101109bc
push edi
call fcn.101109bc
pop ecx
pop ecx
jmp 0x100f5baa
mov eax, ebx
call fcn.10110897
ret
Function at 0x100f65c0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x10139bb2
call fcn.1011094a
mov esi, dword [ebp + 0xc]
xor edi, edi
mov eax, dword [ebp + 0x10]
inc edi
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, esi
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x20], ecx
jb 0x100f65e8
mov eax, dword [esi]
lea edx, [ebp - 0x18]
xor ebx, ebx
push edx
push ebx
push ebx
push ebx
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100f6661
mov eax, dword [ebp - 0x18]
xor ecx, ecx
push 2
inc eax
mov dword [ebp - 4], ebx
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1003a3c0
cmp dword [esi + 0x14], 8
mov ebx, eax
pop ecx
jb 0x100f6624
mov esi, dword [esi]
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x20]
push ebx
push 0
push 0
push esi
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100f6648
mov ecx, dword [ebp - 0x1c]
push ebx
call fcn.1003a3c0
xor edi, edi
push ebx
call fcn.101109bc
pop ecx
jmp 0x100f6661
mov eax, edi
call fcn.10110897
ret

Function at 0x100f671b
Capabilities:
Set registry value

Disassembly:
push 0x3c
mov eax, 0x10139c0d
call fcn.1011094a
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
mov esi, dword [eax]
mov edi, dword [eax + 4]
cmp esi, edi
je 0x100f67b5
push esi
lea ecx, [ebp - 0x44]
call fcn.1003aba6
cmp dword [ebp - 0x18], 8
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x44]
cmovae edx, dword [ebp - 0x2c]
cmp dword [ebp - 0x30], 8
mov byte [ebp - 4], 1
cmovae ecx, dword [ebp - 0x44]
add eax, eax
push eax
mov eax, dword [ebp - 0x48]
push edx
push 1
push ebx
push ecx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x2c]
test eax, eax
je 0x100f6790
xor ebx, ebx
inc ebx
call fcn.10015273
lea ecx, [ebp - 0x44]
call fcn.10015273
jmp 0x100f67b5
mov byte [ebp - 4], bl
call fcn.10015273
lea ecx, [ebp - 0x44]
call fcn.10015273
add esi, 0x30
jmp 0x100f673a
mov eax, ebx
call fcn.10110897
ret
Function at 0x100f69aa
Capabilities:
Read file on windows

Disassembly:
push 0x48
mov eax, 0x10139d1b
call fcn.101108dc
mov esi, dword [ebp + 8]
xor eax, eax
and dword [ebp - 0x14], 0
xor ebx, ebx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x18], eax
cmp byte [esi + 0x90], al
je 0x100f6a3b
mov edi, dword [ebp + 0x14]
cmp byte [esi + 0x91], 0
je 0x100f6a3b
push 0
lea ecx, [ebp - 0x14]
add eax, edx
push ecx
mov ecx, dword [ebp - 0x1c]
push edi
push eax
push ecx
call dword [sym.imp.kernel32.dll_ReadFile]
mov dword [ebp - 0x20], eax
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [ebp - 0x14]
cmp eax, 0x6d
je 0x100f6a0f
test ecx, ecx
jne 0x100f6a15
jmp 0x100f6a24
cmp dword [ebp - 0x20], 0
je 0x100f6a67
cmp ecx, edi
je 0x100f6a3b
add dword [ebp - 0x18], ecx
sub edi, ecx
cmp ebx, 0x64
jg 0x100f6a43
inc ebx
push 0xa
call dword [sym.imp.kernel32.dll_Sleep]
cmp byte [esi + 0x90], 0
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
jne 0x100f69db
mov al, 1
call fcn.10110886
ret
push str.Terminate_channel
lea ecx, [ebp - 0x3c]
call fcn.1003a3c0
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 1
push eax
mov ecx, esi
call fcn.100f7b91
lea ecx, [ebp - 0x3c]
jmp 0x100f6a86
push str.Terminate_channel
lea ecx, [ebp - 0x54]
call fcn.1003a3c0
and dword [ebp - 4], 0
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
call fcn.100f7b91
lea ecx, [ebp - 0x54]
or dword [ebp - 4], 0xffffffff
call fcn.10015273
mov ecx, esi
call fcn.100f6ce5
xor al, al
jmp 0x100f6a3d
Function at 0x100fd8c9
Capabilities:
Check if file exists

Disassembly:
push 0x38
mov eax, 0x1013add4
call fcn.101108dc
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x40]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
and dword [ebp - 0x30], 0
and dword [ebp - 0x2c], 0
push eax
mov dword [ebp - 0x44], esi
call fcn.1003a3c0
and dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
push 1
push 0x101551e4
call fcn.1003a3c0
push 2
push 0x101a27c8
lea ecx, [ebp - 0x40]
call fcn.1003a3c0
push 1
push 0x101551e4
lea ecx, [ebp - 0x40]
call fcn.1003a3c0
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x100fd930
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x40]
push eax
call fcn.1003a3c0
push 1
push 0x1014f9dc
lea ecx, [ebp - 0x40]
call fcn.1003a3c0
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
jb 0x100fd955
mov eax, dword [ebx]
push dword [ebx + 0x10]
lea ecx, [ebp - 0x40]
push eax
call fcn.1003a3c0
push 7
xor ebx, ebx
xor eax, eax
pop edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], edi
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.1003a3c0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
pop ecx
cmovae eax, dword [ebp - 0x28]
pop ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, esi
test eax, eax
jne 0x100fd9d9
push 0x1014a0f1
call fcn.1003a3c0
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x100fd9c1
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x28]
call fcn.1003a3c0
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], edi
cmp eax, 0x10
jb 0x100fda1c
inc eax
push eax
jmp 0x100fda12
lea eax, [ebp - 0x40]
push eax
call fcn.1003a3c0
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x100fd9fc
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x28]
call fcn.1003a3c0
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], edi
mov word [ebp - 0x28], ax
cmp ecx, 0x10
jb 0x100fda1c
inc ecx
push ecx
push dword [ebp - 0x40]
call fcn.1003a3c0
pop ecx
pop ecx
mov eax, esi
call fcn.10110886
ret
Function at 0x10101f43
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x1013b7c5
call fcn.101108a8
mov edi, ecx
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push dword [ebp + 8]
push eax
call fcn.1003a3c0
xor ecx, ecx
add esp, 0xc
mov ebx, dword [eax]
mov dword [eax], ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ecx
cmp dword [ebp - 0x10], ecx
je 0x10101f82
push 8
push dword [ebp - 0x10]
call fcn.1003a3c0
pop ecx
pop ecx
xor ecx, ecx
lea esi, [edi + 4]
push esi
push ecx
push ebx
push 0x10101ec0
push ecx
push ecx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [edi], eax
test eax, eax
je 0x10101fa6
call fcn.10110871
ret 8
and dword [esi], 0
push 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x1010d445
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x1a0
mov eax, 0x1013d9d8
call fcn.101108dc
and dword [ebp - 4], 0
mov ebx, dword [ebp + 8]
mov ecx, ebx
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x194], ebx
and dword [ebp - 0x18c], 0
push 0x1014a0f1
mov dword [ebp - 0x190], eax
call fcn.1003a3c0
and dword [ebp - 4], 0
lea eax, [ebp - 0x188]
push eax
push 0x20019
push 0
push esi
push edi
mov dword [ebp - 0x18c], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1010d5a2
cmp dword [ebp - 0x188], eax
je 0x1010d5a2
and dword [ebp - 0x118], eax
mov esi, 0x104
push esi
push eax
lea eax, [ebp - 0x114]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x11c], esi
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x118]
push eax
push 0
push dword [ebp - 0x190]
push dword [ebp - 0x188]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1010d596
xor esi, esi
inc esi
cmp dword [ebp - 0x118], esi
jne 0x1010d596
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x134]
call fcn.1003a3c0
push 0x50
lea eax, [ebp - 0x184]
mov dword [ebp - 4], esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x184]
call fcn.1005a532
lea eax, [ebp - 0x134]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x1ac]
push eax
lea ecx, [ebp - 0x184]
call fcn.1003a3c0
push eax
mov ecx, ebx
call fcn.1003a3c0
lea ecx, [ebp - 0x1ac]
call fcn.1001524d
lea ecx, [ebp - 0x184]
call fcn.1005a61a
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 0
call fcn.10015273
push dword [ebp - 0x188]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
call fcn.10110886
ret

Function at 0x1010dfb4
Capabilities:
Check if file exists

Disassembly:
push 0x6c
mov eax, 0x1013dc21
call fcn.101108dc
and dword [ebp - 4], 0
lea eax, [ebp - 0x78]
push 0x50
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x78]
call fcn.1005a532
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
mov eax, dword [ebp + 0x18]
cmovae ecx, dword [ebp + 8]
add eax, ecx
mov byte [ebp - 4], 1
push eax
push ecx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x78]
call fcn.100ecef6
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
lea ecx, [ebp - 0x28]
setne bl
call fcn.10015273
lea ecx, [ebp - 0x78]
call fcn.1005a61a
lea ecx, [ebp + 8]
call fcn.1001524d
mov al, bl
call fcn.10110886
ret
Function at 0x1010f859
Capabilities:
Get file size

Disassembly:
push 0x74
mov eax, 0x1013dff4
call fcn.101108dc
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x80]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push 0x50
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x80]
call fcn.1005a532
push esi
lea eax, [ebp - 0x30]
mov dword [ebp - 4], ebx
push eax
lea ecx, [ebp - 0x80]
call fcn.1003a3c0
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
push ebx
cmovae eax, dword [ebp - 0x30]
push 0x80
push 3
push ebx
push 3
push SysReAllocString
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.kernel32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1010f8e4
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.kernel32.dll_GetFileSizeEx]
test eax, eax
je 0x1010f8dd
mov eax, dword [ebp - 0x18]
mov bl, 1
mov ecx, dword [ebp - 0x14]
mov dword [edi], eax
mov dword [edi + 4], ecx
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
lea ecx, [ebp - 0x30]
call fcn.10015273
lea ecx, [ebp - 0x80]
call fcn.1005a61a
mov al, bl
call fcn.10110886
ret

Function at 0x1010f8fc
Capabilities:
Check if file exists

Disassembly:
push 0x6c
mov eax, 0x1013e033
call fcn.101108dc
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x78]
push 0x50
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x78]
call fcn.1005a532
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push esi
push eax
lea ecx, [ebp - 0x78]
call fcn.1003a3c0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
lea ecx, [ebp - 0x28]
setne bl
call fcn.10015273
lea ecx, [ebp - 0x78]
call fcn.1005a61a
mov al, bl
call fcn.10110886
ret