joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100565a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp ecx, dword [edi + 4]
jge 0x100565b9
mov esi, edi
mov edi, eax
jmp 0x100565bb
mov esi, eax
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x10]
cmp eax, dword [ebx + 8]
jg 0x100565cb
mov eax, ebx
jmp 0x100565d5
push eax
push ebx
call fcn.100073e0
add esp, 8
test eax, eax
jne 0x100565dd
pop edi
pop esi
pop ebx
ret
xor eax, eax
cmp dword [edi + 4], eax
jle 0x100565f9
mov edx, dword [esi]
mov ecx, dword [edi]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [edi + 4]
jl 0x100565e4
cmp eax, dword [esi + 4]
jge 0x10056610
mov edi, edi
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [esi + 4]
jl 0x10056600
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
test eax, eax
jle 0x10056631
mov ecx, dword [ebx]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x1005662e
dec eax
test eax, eax
jg 0x10056620
mov dword [ebx + 4], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x10078cb4
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0x94
mov eax, 0x10459f56
call fcn.1043ac1f
push 0x40
push 0x1000
push dword [0x1041f370]
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
mov dword [ebp - 0xa0], edi
mov dword [ebp - 4], esi
test edi, edi
jne 0x10078d15
mov dword [ebp - 0x90], str._1576
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x8c]
call fcn.100783c3
push 0x10725f48
lea eax, [ebp - 0x8c]
push eax
call fcn.1043aaeb
push dword [0x1041f370]
mov ebx, 0x1041f370
push ebx
push edi
call fcn.1043a410
add esp, 0xc
sub edi, ebx
lea eax, [edi + 0x1041f374]
mov dword [0x1077e374], eax
mov dword [edi + 0x1041f380], 0x10078c76
mov dword [edi + 0x1041f384], esi
lea ebx, [edi + 0x1041f388]
mov dword [ebp - 0x94], ebx
lea edi, [edi + 0x1041f378]
mov dword [ebp - 0x90], edi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x9c]
call fcn.10079e4d
mov byte [ebp - 4], 2
push esi
push ebx
push edi
push dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [eax]
call fcn.1008a7ef
mov byte [ebp - 4], 3
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x98]
test ecx, ecx
je 0x10078d99
call fcn.10076eba
mov dword [ebp - 4], esi
jmp 0x10078e4a
mov eax, dword [edi]
mov dword [0x10781540], eax
mov dword [ebp - 0xa0], esi
or dword [ebp - 4], 0xffffffff
call fcn.1043ab71
ret
Function at 0x1008343c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x1008344c
mov edx, dword [eax]
jmp 0x1008344e
mov edx, eax
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
lea ecx, [edx + ecx*2]
jb 0x1008345c
mov eax, dword [eax]
push ebx
push esi
mov esi, ecx
xor edx, edx
sub esi, eax
push edi
xor edi, edi
inc esi
shr esi, 1
mov ebx, edi
cmp eax, ecx
cmova esi, edx
test esi, esi
je 0x10083496
mov edx, edi
mov ecx, edi
shr ecx, 2
shl edx, 6
add edx, ecx
movzx ecx, word [eax]
add ecx, 0x9e3779b9
lea eax, [eax + 2]
add ecx, edx
xor edi, ecx
inc ebx
cmp ebx, esi
jne 0x10083475
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x1008a7ef
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1045df55
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x1072a790]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov eax, dword [0x1072a790]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x28], ebx
mov eax, dword [ebp + 0x10]
lea ecx, [ebx + 0xc]
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], eax
mov eax, dword [ecx]
mov byte [esp + 0x24], 0
call dword [eax]
mov byte [esp + 0x24], 1
and dword [esp + 0x60], 0
add ebx, 0x28
mov esi, dword [ebx]
mov eax, dword [esi]
mov dword [esp + 0x14], eax
jmp 0x1008a872
mov ecx, dword [ebp + 8]
cmp dword [eax + 0x14], ecx
je 0x1008a8bd
lea ecx, [esp + 0x14]
call fcn.10085891
mov eax, dword [esp + 0x14]
cmp eax, esi
jne 0x1008a85d
mov eax, dword [ebp + 8]
mov ecx, edi
mov edx, dword [esp + 0x18]
mov dword [edi], eax
call fcn.102e6acd
test eax, eax
jne 0x1008a8f4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x105218a3
push eax
lea ecx, [esp + 0x30]
call fcn.100783c3
mov byte [esp + 0x60], 2
mov dword [esp + 0x2c], vtable.._AV2617____________________________________________.0
mov byte [esp + 0x60], 0
lea eax, [esp + 0x2c]
push 0x107267e0
jmp 0x1008a8ee
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x10521877
push eax
lea ecx, [esp + 0x30]
call fcn.100783c3
mov byte [esp + 0x60], 1
mov dword [esp + 0x2c], vtable.._AV2617____________________________________________.0
mov byte [esp + 0x60], 0
lea eax, [esp + 0x2c]
push 0x107267e0
push eax
call fcn.1043aaeb
mov eax, dword [esp + 0x18]
mov ecx, ebx
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
push edi
push eax
call fcn.1008c0d1
mov esi, dword [esp + 0x14]
cmp esi, dword [ebx]
je 0x1008a918
mov eax, dword [edi]
cmp eax, dword [esi + 0x10]
jae 0x1008a940
push ecx
lea eax, [esp + 0x18]
mov dword [esp + 0x18], edi
push eax
push ecx
mov ecx, ebx
call fcn.1008c57b
push eax
add eax, 0x10
mov ecx, ebx
push eax
push esi
lea eax, [esp + 0x20]
push eax
call fcn.1008c5e1
mov esi, dword [esp + 0x14]
mov eax, dword [ebp + 8]
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x18], eax
lea eax, [esp + 0x18]
mov esi, dword [esp + 0x28]
push eax
lea ecx, [esi + 0x30]
call fcn.1008bddc
mov edx, dword [ebp + 0x14]
mov dword [eax], edx
or dword [esp + 0x60], 0xffffffff
lea ecx, [esi + 0xc]
mov eax, dword [ecx]
mov byte [esp + 0x24], 0
call dword [eax + 8]
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.10436e26
mov esp, ebp
pop ebp
ret 0x10
Function at 0x100949a8
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x1072a790]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
test esi, esi
je 0x10094a87
push 6
pop ecx
xor eax, eax
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
or eax, 0xffffffff
mov dword [esp + 0x38], 0x1c
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x38]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Thread32First]
jmp 0x10094a7c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x44], eax
jne 0x10094a70
push dword [esp + 0x40]
push 0
push 0x40
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x10094a70
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x24]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetThreadTimes]
test eax, eax
je 0x10094a69
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x1c], eax
ja 0x10094a69
jb 0x10094a55
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x18], eax
jae 0x10094a69
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x38]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10094a00
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x54]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10436e26
mov esp, ebp
pop ebp
ret
Function at 0x10095e42
Capabilities:
Get disk size

Disassembly:
push 0x64
mov eax, 0x1045fb60
call fcn.1043abb3
mov esi, ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.1008097d
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.104366e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
push eax
call fcn.1008097d
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
push 0
push ebx
call fcn.1007a42c
mov byte [ebp - 4], 6
xor edi, edi
push edi
push ebx
lea ecx, [ebp - 0x28]
call fcn.1007a42c
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
call fcn.1008097d
mov byte [ebp - 4], 9
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.10434860
pop ecx
pop ecx
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x28]
push edi
push ebx
call fcn.1007a42c
cmp dword [ebp + 8], edi
jne 0x10095ecb
cmp dword [ebp + 0xc], edi
jne 0x10095f24
mov edx, esi
lea ecx, [ebp - 0x40]
call fcn.100964ae
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x14], 8
jb 0x10095ee1
mov eax, dword [eax]
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x68]
push ecx
lea ecx, [ebp - 0x60]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
cmp eax, ebx
jne 0x10095f00
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x5c], eax
jmp 0x10095f08
xorps xmm0, xmm0
movlpd qword [ebp - 0x60], xmm0
mov ecx, dword [ebp - 0x60]
cmp ecx, dword [ebp + 0xc]
setb bl
mov byte [ebp - 4], 6
push edi
push 1
lea ecx, [ebp - 0x40]
call fcn.1007a42c
test bl, bl
je 0x10095f28
xor bl, bl
jmp 0x10095f2a
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
push 0
push 1
call fcn.1007a42c
mov al, bl
call fcn.1043ab62
ret

Function at 0x10095f42
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
push edi
xor edi, edi
mov dword [ebp - 8], ecx
and dword [ebp - 4], edi
test esi, esi
je 0x10095f7c
push 0
lea eax, [ebp - 4]
push eax
push esi
lea eax, [edi + ebx]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10095f85
add edi, dword [ebp - 4]
mov ecx, dword [ebp - 8]
sub esi, dword [ebp - 4]
jne 0x10095f5b
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
jmp 0x10095f7e
Function at 0x1009602a
Capabilities:
Get file size

Disassembly:
push 0x44
mov eax, 0x1045fbe8
call fcn.1043abb3
mov dword [ebp - 0x50], edx
mov esi, ecx
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 4], ebx
call fcn.10081df3
test al, al
jne 0x10096063
or dword [ebp - 4], 0xffffffff
xor eax, eax
jmp 0x1009619b
cmp dword [esi + 0x14], 8
jb 0x1009606d
mov eax, dword [esi]
jmp 0x1009606f
mov eax, esi
push ebx
push ebx
push 3
push ebx
push edi
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100960b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x28
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 0x14], 8
jb 0x1009609e
mov esi, dword [esi]
push ebx
push ebx
push 3
push ebx
push dword [ebp - 0x40]
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x100960ca
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100960db
or ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
or dword [ebp - 4], 0xffffffff
mov eax, ebx
jmp 0x1009619b
push esi
lea ecx, [ebp - 0x4c]
call fcn.1009694f
mov dword [ebp - 0x40], edi
mov byte [ebp - 4], 3
mov ecx, edi
mov edx, dword [ebp - 0x4c]
push esi
call fcn.1009640e
pop ecx
mov byte [ebp - 0x39], al
mov byte [ebp - 4], bl
test edi, edi
je 0x10096110
cmp edi, 0xffffffff
je 0x10096110
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x39]
test al, al
jne 0x10096143
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], str._735
push eax
lea ecx, [ebp - 0x38]
call fcn.100783c3
mov byte [ebp - 4], 4
mov dword [ebp - 0x38], vtable.._AV2690____________________________________________________.0
mov byte [ebp - 4], bl
lea eax, [ebp - 0x38]
push 0x10726894
push eax
call fcn.1043aaeb
mov edi, dword [ebp - 0x4c]
lea ecx, [ebp - 0x2c]
push esi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
push edi
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.1007a193
mov byte [ebp - 4], 5
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x50]
push eax
call fcn.10079f2f
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x2c]
push ebx
push 1
call fcn.1007a274
or dword [ebp - 4], 0xffffffff
test edi, edi
je 0x10096199
push edi
call fcn.1041f321
pop ecx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov eax, esi
call fcn.1043ab62
ret
Function at 0x100961d2
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1045fc3d
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x1072a790]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov eax, dword [0x1072a790]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov dword [esp + 0x18], edx
mov esi, ecx
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x60], ebx
call fcn.10081df3
test al, al
je 0x1009625a
cmp dword [esi + 0x14], 8
jb 0x10096235
mov esi, dword [esi]
push ebx
push ebx
push 3
push ebx
push edi
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10096266
or ebx, eax
or dword [esp + 0x60], 0xffffffff
mov eax, ebx
jmp 0x10096375
push edi
lea ecx, [esp + 0x20]
call fcn.1009694f
cmp byte [ebp + 0xc], 0
mov dword [esp + 0x28], esi
je 0x100962bd
mov byte [esp + 0x60], 1
lea ecx, [esp + 0x2c]
push edi
push esi
call fcn.1009f6ed
mov byte [esp + 0x60], 2
mov ecx, esi
mov edx, dword [esp + 0x1c]
push edi
call fcn.1009640e
pop ecx
mov byte [esp + 0x17], al
mov byte [esp + 0x60], 1
lea ecx, [esp + 0x2c]
call fcn.1009f813
mov byte [esp + 0x60], bl
test esi, esi
je 0x100962e7
cmp esi, 0xffffffff
je 0x100962e7
jmp 0x100962e0
mov byte [esp + 0x60], 3
mov ecx, esi
mov edx, dword [esp + 0x1c]
push edi
call fcn.1009640e
pop ecx
mov byte [esp + 0x17], al
mov byte [esp + 0x60], bl
test esi, esi
je 0x100962eb
cmp esi, 0xffffffff
je 0x100962eb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x17]
test al, al
jne 0x10096325
lea eax, [esp + 0x18]
mov dword [esp + 0x18], str._736
push eax
lea ecx, [esp + 0x30]
call fcn.100783c3
mov byte [esp + 0x60], 4
mov dword [esp + 0x2c], vtable.._AV2690____________________________________________________.0
mov byte [esp + 0x60], bl
lea eax, [esp + 0x2c]
push 0x10726894
push eax
call fcn.1043aaeb
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x2c]
mov eax, edi
shr eax, 1
push eax
push esi
call fcn.10079d49
mov byte [esp + 0x60], 5
mov ecx, dword [esp + 0x18]
push eax
call fcn.100807b4
mov byte [esp + 0x60], bl
lea ecx, [esp + 0x2c]
push ebx
push 1
call fcn.1007a42c
or dword [esp + 0x60], 0xffffffff
test esi, esi
je 0x10096373
push esi
call fcn.1041f321
pop ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov eax, edi
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.10436e26
mov esp, ebp
pop ebp
ret
Function at 0x1009640e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
push edi
xor edi, edi
mov dword [ebp - 8], ecx
and dword [ebp - 4], edi
test esi, esi
je 0x1009644d
push 0
lea eax, [ebp - 4]
push eax
push esi
lea eax, [edi + ebx]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10096456
mov eax, dword [ebp - 4]
test eax, eax
je 0x10096456
mov ecx, dword [ebp - 8]
add edi, eax
sub esi, eax
jne 0x10096427
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
jmp 0x1009644f

Function at 0x1009661c
Capabilities:
Get file version info

Disassembly:
push 0x21c
mov eax, 0x1045fdab
call fcn.1043abb3
mov dword [ebp - 0x21c], edx
mov esi, ecx
and dword [ebp - 4], 0
cmp dword [esi + 0x10], 0
je 0x10096688
cmp dword [esi + 0x14], 8
jb 0x10096647
mov eax, dword [esi]
jmp 0x10096649
mov eax, esi
lea ecx, [ebp - 0x220]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x10096688
push ebx
call fcn.1041fa39
mov edi, eax
pop ecx
test edi, edi
je 0x10096688
cmp dword [esi + 0x14], 8
jb 0x10096672
mov esi, dword [esi]
push edi
push ebx
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x100966a2
push edi
call fcn.1043791f
pop ecx
xor bl, bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
push 0
push 1
call fcn.1007a42c
mov al, bl
call fcn.1043ab62
ret
and dword [ebp - 0x218], 0
lea eax, [ebp - 0x228]
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueW]
push eax
lea eax, [ebp - 0x218]
push eax
push 0x10544f50
push edi
call esi
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.1043c810
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
mov ecx, dword [ebp - 0x218]
cmovae eax, dword [ebp + 8]
push eax
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x210]
push 0x10544f18
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
and dword [ebp - 0x214], 0
lea eax, [ebp - 0x224]
add esp, 0x20
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
push edi
call esi
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
je 0x10096758
mov esi, dword [ebp - 0x214]
test esi, esi
je 0x10096758
push esi
call fcn.100763f0
pop ecx
mov ecx, dword [ebp - 0x21c]
push eax
push esi
call fcn.1007a34b
push edi
call fcn.1043791f
pop ecx
jmp 0x1009668a
Function at 0x10096764
Capabilities:
Create directory
Get common file path

Disassembly:
push 0x24c
mov eax, 0x1045fe5a
call fcn.1043abb3
mov edi, edx
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x258], esi
xor eax, eax
mov dword [ebp - 0x254], ebx
push 0x208
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x21e]
push ebx
push eax
call fcn.1043c810
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x100967d7
push 0x10544fbc
mov ecx, esi
call fcn.10079d71
mov dword [ebp - 4], ebx
mov dword [ebp - 0x254], 1
jmp 0x1009687a
push edi
lea edx, [ebp - 0x220]
lea ecx, [ebp - 0x250]
call fcn.1007ebac
pop ecx
mov dword [ebp - 4], 1
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x238]
call fcn.1008097d
mov byte [ebp - 4], 2
lea eax, [ebp - 0x238]
cmp dword [ebp - 0x224], 8
push ebx
cmovae eax, dword [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10096842
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10096842
push 0x10544fdc
mov ecx, esi
call fcn.10079d71
jmp 0x10096850
lea eax, [ebp - 0x238]
mov ecx, esi
push eax
call fcn.1008083e
xor eax, eax
inc eax
mov dword [ebp - 0x254], eax
mov byte [ebp - 4], al
lea ecx, [ebp - 0x238]
push ebx
push eax
call fcn.1007a42c
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x250]
push ebx
push 1
call fcn.1007a42c
mov eax, esi
call fcn.1043ab62
ret

Function at 0x10096882
Capabilities:
Get common file path
Get program files directory
Get startup folder

Disassembly:
push 0x214
mov eax, 0x1045b087
call fcn.1043abb3
mov esi, ecx
xor ecx, ecx
mov dword [ebp - 4], ecx
xor eax, eax
mov dword [ebp - 0x21c], ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ecx
mov dword [ebp - 0x220], esi
mov word [esi], ax
mov dword [ebp - 4], ecx
lea eax, [ebp - 0x218]
push eax
push ecx
push ecx
push 0x26
push ecx
mov dword [ebp - 0x21c], 1
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x100968f2
lea eax, [ebp - 0x218]
push eax
call fcn.100763f0
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.1007a34b
mov eax, esi
call fcn.1043ab62
ret

Function at 0x100968fa
Capabilities:
Get file size

Disassembly:
push ebx
xor ebx, ebx
push edi
mov edi, edx
cmp dword [ecx + 0x10], ebx
jne 0x10096909
xor al, al
jmp 0x1009694c
cmp dword [ecx + 0x14], 8
jb 0x10096911
mov ecx, dword [ecx]
push esi
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10096949
test esi, esi
je 0x10096949
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [edi], 0xffffffff
setne al
jmp 0x1009694b
xor al, al
pop esi
pop edi
pop ebx
ret
Function at 0x10098450
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x214
mov eax, 0x1045b087
call fcn.1043abb3
mov edi, ecx
xor esi, esi
mov dword [ebp - 4], esi
xor eax, eax
mov dword [ebp - 0x21c], esi
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], esi
mov dword [ebp - 0x220], edi
mov word [edi], ax
mov dword [ebp - 4], esi
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push esi
push eax
mov dword [ebp - 0x21c], 1
call fcn.1043c810
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push 0x1c
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
lea eax, [ebp - 0x218]
push eax
call fcn.100763f0
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
call fcn.1007a34b
test esi, esi
jns 0x100984f3
mov esi, 0x10545a78
push esi
call fcn.100763f0
pop ecx
push eax
push esi
mov ecx, edi
call fcn.1007a34b
mov eax, edi
call fcn.1043ab62
ret

Function at 0x1009865c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov ecx, SysReAllocString
call fcn.10098945
pop ecx
test al, al
jne 0x1009867b
xor al, al
jmp 0x100986de
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x10]
test eax, eax
jne 0x1009869e
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x10098690
mov eax, dword [eax]
push 1
push 0x10545e14
push 1
push 0
push eax
jmp 0x100986ba
cmp dword [ecx + 0x14], 8
jb 0x100986a6
mov ecx, dword [ecx]
mov edx, dword [ebp + 8]
cmp dword [edx + 0x14], 8
jb 0x100986b1
mov edx, dword [edx]
add eax, eax
push eax
push ecx
push 1
push 0
push edx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
test eax, eax
je 0x100986d2
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10098677
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg eax
sbb al, al
inc al
mov esp, ebp
pop ebp
ret

Function at 0x100986e2
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
lea eax, [ebp - 1]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, SysReAllocString
push edi
push 0
push eax
push esi
mov edi, edx
mov bl, 1
call fcn.100988dc
add esp, 0xc
test al, al
jne 0x10098711
xor al, al
jmp 0x1009876f
cmp byte [ebp - 1], 0
je 0x1009870d
push 0
lea eax, [ebp - 8]
mov edx, edi
push 0xf003f
push eax
mov ecx, SysReAllocString
call fcn.10098980
add esp, 0xc
test al, al
je 0x1009870d
cmp dword [ebp - 8], 0
je 0x1009870d
cmp dword [esi + 0x14], 8
jb 0x10098743
mov esi, dword [esi]
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x1009875e
push dword [ebp - 8]
call esi
xor bl, bl
push dword [ebp - 8]
call esi
xor edx, edx
movzx ecx, bl
test eax, eax
cmovne ecx, edx
mov al, cl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret