joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40688b
Capabilities:
Enumerate process modules

Disassembly:
push 0x4c0
mov eax, 0x44589c
call fcn.00444606
mov dword [ebp - 0x44c], edx
mov eax, ecx
mov dword [ebp - 0x450], eax
xor esi, esi
push eax
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
cmp eax, 0xffffffff
jne 0x4068d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x18
jne 0x4069ef
mov eax, dword [ebp - 0x450]
inc esi
cmp esi, 5
jge 0x4069ef
jmp 0x4068aa
mov dword [ebp - 0x1c], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x1c]
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 0x20], eax
xor esi, esi
lea eax, [ebp - 0x20]
mov dword [ebp - 0x460], esi
mov dword [ebp - 0x45c], eax
mov byte [ebp - 0x458], 1
push 0x14
mov dword [ebp - 4], esi
call fcn.004085cb
mov ecx, dword [ebp - 0x20]
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x454], ebx
mov edi, ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
inc eax
mov dword [ebx], vtable.std::_Ref_count_resource_std::nullptr_t__class__struct_HINSTANCE______cdecl_Process::GetRemoteModuleHandle_unsigned_long_int__wchar_t_const__::_2::_lambda_1__.0
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x10], esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x428]
mov dword [esp], 0x200
push esi
push eax
mov dword [ebp - 0x448], 0x428
mov dword [ebp - 0x444], esi
mov dword [ebp - 0x440], esi
mov dword [ebp - 0x43c], esi
mov dword [ebp - 0x438], esi
mov dword [ebp - 0x434], esi
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x42c], esi
call fcn.00423300
push 0x208
lea eax, [ebp - 0x228]
push esi
push eax
call fcn.00423300
add esp, 0x18
lea eax, [ebp - 0x448]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
mov edi, dword [ebp - 0x44c]
jmp 0x4069d4
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0042839f
pop ecx
pop ecx
test eax, eax
je 0x4069da
lea eax, [ebp - 0x448]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
je 0x4069f9
jmp 0x4069b1
mov esi, dword [ebp - 0x42c]
mov ecx, ebx
call fcn.004016ba
mov eax, esi
call fcn.004445b5
ret
mov ecx, str.CreateModuleSnapshot_failed
call fcn.0040845b
mov edx, dword [ebp - 0x450]
lea ecx, [ebp - 0x46c]
call fcn.0040659d
mov esi, eax
push str.Didnt_find_the_module
lea ecx, [ebp - 0x484]
mov byte [ebp - 4], 2
call fcn.00404366
push edi
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x49c]
call fcn.00404f15
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x4b4]
mov edx, eax
mov dword [esp], str._in_process_id
call fcn.00404f15
push esi
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x4cc]
call fcn.00406b82
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.00408531
int3
Function at 0x4090bc
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4090fb
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4090fb
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4090fb
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4090fb
cmp dword [ecx + 0x74], 0xe
jbe 0x4090fb
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40a6b9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x457040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0xffff
push edi
mov edi, ecx
cmp bx, si
jne 0x40a6e4
push ebx
call fcn.0040a69f
pop ecx
jmp 0x40a739
mov eax, dword [edi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x40a70d
mov edx, dword [edi + 0x30]
mov eax, dword [edx]
lea eax, [ecx + eax*2]
cmp ecx, eax
jae 0x40a70d
dec dword [edx]
mov edx, dword [edi + 0x20]
mov eax, dword [ebp + 8]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], ax
jmp 0x40a739
cmp dword [edi + 0x4c], 0
je 0x40a736
mov ecx, edi
call fcn.0040a32d
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x40a74a
push dword [edi + 0x4c]
push esi
call fcn.00409d4c
pop ecx
pop ecx
test al, al
je 0x40a736
movzx ebx, si
mov ax, bx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004085b8
leave
ret 4
mov word [ebp - 0x28], si
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x4481a8]
mov ecx, dword [ebp - 0x2c]
call esi
sub eax, 0
je 0x40a7a5
sub eax, 1
je 0x40a7a5
dec eax
sub eax, 1
jne 0x40a736
push dword [edi + 0x4c]
push dword [ebp - 0x28]
call fcn.00409d4c
pop ecx
pop ecx
test al, al
je 0x40a736
mov eax, dword [ebp + 8]
movzx ebx, ax
jmp 0x40a736
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x40a7c6
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.00427195
add esp, 0x10
cmp esi, eax
jne 0x40a736
lea eax, [ebp - 0x28]
mov byte [edi + 0x3e], 1
cmp dword [ebp - 0x34], eax
je 0x40a736
mov eax, dword [ebp + 8]
jmp 0x40a739

Function at 0x414599
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
push esi
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], edx
jbe 0x4145bc
movzx eax, byte [esi + edx]
xor eax, ecx
imul ecx, eax, 0x1000193
inc edx
cmp edx, dword [ebp + 0x10]
jb 0x4145aa
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x42251a
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.0042bf1e
mov eax, dword [eax + 0x14]
test eax, eax
je 0x42255d
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push 2
push ecx
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x42255d
sub eax, 1
je 0x422558
sub eax, 1
je 0x422554
xor eax, eax
leave
ret
push 3
jmp 0x42255f
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x435472
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00435123

Function at 0x43547d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004352ad

Function at 0x43801b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00437b6e

Function at 0x4448a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4448cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4448cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10001550
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp byte [esi + 4], 0
je 0x100016bc
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x100016bc
mov ecx, dword [esi + 0x3cc]
xor edx, edx
div ecx
mov dword [ebp - 4], eax
test edx, edx
jne 0x100016bc
mov edx, dword [ebp + 0x14]
push ebx
push edi
cmp edx, 1
jne 0x10001618
mov edi, dword [ebp + 8]
xor edx, edx
mov ebx, dword [ebp + 0xc]
mov dword [ebp + 0x14], edx
mov dword [ebp - 4], edi
mov dword [ebp + 8], ebx
test eax, eax
je 0x100016ba
lea ebx, [esi + 0x3f4]
nop
cmp byte [esi + 4], 0
mov eax, ebx
je 0x100015d5
xor edx, edx
test ecx, ecx
jle 0x100015d5
sub edi, ebx
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor byte [eax - 1], cl
inc edx
cmp edx, dword [esi + 0x3cc]
jl 0x100015c0
mov edi, dword [ebp - 4]
push dword [ebp + 8]
mov ecx, esi
push ebx
call fcn.100016d0
push dword [esi + 0x3cc]
push dword [ebp + 8]
push ebx
call fcn.1002d660
mov ecx, dword [esi + 0x3cc]
xor edx, edx
mov eax, dword [ebp + 0x10]
add edi, ecx
div ecx
inc dword [ebp + 0x14]
add esp, 0xc
add dword [ebp + 8], ecx
mov dword [ebp - 4], edi
cmp dword [ebp + 0x14], eax
jb 0x100015b0
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x10
cmp edx, 2
jne 0x10001687
mov eax, dword [ebp + 8]
xor ebx, ebx
mov edi, dword [ebp + 0xc]
mov dword [ebp + 8], eax
cmp dword [ebp - 4], ebx
jbe 0x100016ba
lea eax, [esi + 0x3f4]
push edi
push eax
mov ecx, esi
call fcn.100016d0
push dword [ebp + 8]
mov ecx, esi
push edi
call fcn.10001d90
push dword [esi + 0x3cc]
lea eax, [esi + 0x3f4]
push edi
push eax
call fcn.1002d660
mov ecx, dword [esi + 0x3cc]
xor edx, edx
mov eax, dword [ebp + 0x10]
inc ebx
div ecx
add dword [ebp + 8], ecx
add esp, 0xc
add edi, ecx
cmp ebx, eax
lea eax, [esi + 0x3f4]
jb 0x10001637
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [ebp + 8]
xor edi, edi
mov eax, dword [ebp + 0xc]
mov dword [ebp + 8], eax
cmp dword [ebp - 4], edi
jbe 0x100016ba
push eax
push ebx
mov ecx, esi
call fcn.100016d0
mov ecx, dword [esi + 0x3cc]
xor edx, edx
mov eax, dword [ebp + 0x10]
inc edi
div ecx
add dword [ebp + 8], ecx
add ebx, ecx
cmp edi, eax
mov eax, dword [ebp + 8]
jb 0x10001697
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10002f80
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
mov edi, dword [ebp + 8]
xor bl, bl
cmp dword [edi + 0x10], 0
je 0x100030ba
push esi
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x10], 0
je 0x100030b1
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x10002faf
mov eax, dword [esi]
lea ecx, [ebp - 8]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 4], eax
test eax, eax
je 0x100030b1
push 0x1007076c
push eax
call fcn.10016a3d
add esp, 8
mov dword [ebp + 8], eax
test eax, eax
je 0x100030b1
cmp dword [esi + 0x14], 0x10
jb 0x10002fe5
mov esi, dword [esi]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x10003097
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x10056684
push dword [ebp + 8]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x10003097
mov eax, dword [ebp - 0xc]
push 0x1007076c
push 0x80
movzx ecx, word [eax]
movzx eax, word [eax + 2]
shl ecx, 0x10
or ecx, eax
mov dword [ebp - 4], ecx
call fcn.10016a3d
mov esi, eax
add esp, 8
test esi, esi
je 0x10003099
cmp dword [edi + 0x14], 0x10
jb 0x10003049
mov edi, dword [edi]
push edi
push dword [ebp - 4]
push str.StringFileInfo_08lx_s
push 0x80
push esi
call fcn.100030f0
add esp, 0x14
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp + 8]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x10003093
mov edx, dword [ebp - 0x14]
mov ecx, edx
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003080
sub ecx, edi
push ecx
mov ecx, dword [ebp + 0x10]
push edx
call fcn.10001e90
mov bl, 1
jmp 0x10003099
xor esi, esi
push dword [ebp + 8]
call fcn.10016a07
add esp, 4
test esi, esi
je 0x100030b1
push esi
call fcn.10016a07
add esp, 4
pop esi
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10004520
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
xor al, al
push esi
mov esi, ecx
mov byte [ebp - 1], al
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10004534
sub esi, edx
push ecx
sar esi, 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10004555
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
xor ecx, ecx
lea edi, [esi + 1]
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100169fe
add esp, 4
mov ebx, eax
test edi, edi
je 0x1000458d
mov ecx, edi
xor eax, eax
shr ecx, 1
mov edi, ebx
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
lea edi, [esi + 1]
push dword [ebp + 8]
push edi
push ebx
call fcn.1003204f
add esp, 0xc
xor edi, edi
nop dword [eax]
movzx eax, word [ebx + edi*2]
cmp eax, 0x5c
je 0x100045ae
cmp eax, 0x2f
jne 0x100045ef
mov dword [ebp - 0xc], eax
xor eax, eax
push ebx
mov word [ebx + edi*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100045e8
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x10004607
mov eax, dword [ebp + 0xc]
mov byte [ebp - 1], 1
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x100045e8
mov dword [ebp - 8], ebx
lea edx, [ebp - 8]
mov eax, dword [ecx]
push edx
call dword [eax + 8]
mov eax, dword [ebp - 0xc]
mov word [ebx + edi*2], ax
inc edi
cmp edi, esi
jbe 0x100045a0
push ebx
call fcn.10016a07
mov al, byte [ebp - 1]
add esp, 4
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov byte [ebp - 1], 0
call fcn.10016a07
mov al, byte [ebp - 1]
add esp, 4
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10004720
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1006e090]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
mov dword [ebp - 0x210], esi
call fcn.1002dbe0
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
add esp, 0xc
or ecx, 0x8000
cmp byte [ebp + 0x10], 0
cmove ecx, dword [ebp + 0xc]
push eax
push 0
push 0
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
test eax, eax
je 0x100047a0
xor eax, eax
mov word [esi], ax
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100169ed
mov esp, ebp
pop ebp
ret
xor eax, eax
lea ecx, [ebp - 0x20c]
mov word [esi], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100047b0
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10002af0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.100169ed
mov esp, ebp
pop ebp
ret
Function at 0x10004a60
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x1006e090]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x10004aec
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.1002dbe0
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x10004aec
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x10004ae5
nop dword [eax]
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.10038d5a
add esp, 8
test eax, eax
je 0x10004afe
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10004ac0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100169ed
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x228]
xor ecx, ebp
pop edi
pop esi
call fcn.100169ed
mov esp, ebp
pop ebp
ret
Function at 0x10006730
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10050318
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x1006e090]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x50], eax
test edi, edi
jne 0x10006777
xor al, al
jmp 0x1000689b
cmp dword [ecx + 0x14], 0
lea esi, [ecx + 4]
ja 0x100067c7
lea eax, [ebp - 0x40]
push eax
call fcn.10004850
mov edi, eax
add esp, 4
cmp esi, edi
je 0x100067bc
mov ecx, esi
call fcn.100027b0
movups xmm0, xmmword [edi]
xor eax, eax
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
lea ecx, [ebp - 0x40]
call fcn.100027b0
mov edi, dword [ebp - 0x48]
push esi
lea ecx, [ebp - 0x28]
call fcn.10002df0
push 0xa
push str.Software_
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.10002630
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100067f0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.10002630
mov esi, dword [ebp - 0x4c]
test esi, esi
je 0x1000683d
push 1
push 0x1005667c
lea ecx, [ebp - 0x28]
call fcn.10002630
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10006824
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.10002630
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x44]
push ecx
push 0xf003f
lea eax, [ebp - 0x28]
mov dword [ebp - 0x44], 0
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10006891
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x1000687d
push eax
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x10006888
push 0
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x28]
call fcn.100027b0
mov al, 1
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.100169ed
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10006d20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x1006e090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x14]
cmp dword [edi + 0x14], 0
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
ja 0x10006db9
lea eax, [ebp - 0x1c]
push eax
call fcn.10004850
mov esi, eax
lea ebx, [edi + 4]
add esp, 4
cmp ebx, esi
je 0x10006dae
mov ecx, ebx
call fcn.100027b0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebx], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebx + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x1c]
call fcn.100027b0
mov ebx, dword [ebp - 0x30]
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
jb 0x10006dc4
mov eax, dword [eax]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x20]
push ecx
push 0xf013f
push 0
push eax
push 0x80000003
call esi
test eax, eax
jne 0x10006e03
lea eax, [ebp - 0x24]
push eax
push 0xf013f
push 0
push str.SoftWare
push dword [ebp - 0x20]
call esi
test eax, eax
je 0x10006e18
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100169ed
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0x28]
push 0
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push ebx
push dword [ebp - 0x24]
call esi
test eax, eax
je 0x10006e60
push dword [ebp - 0x24]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x20]
call esi
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100169ed
mov esp, ebp
pop ebp
ret 0x10
push 0
lea eax, [ebp - 0x2c]
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push dword [ebp - 0x34]
push dword [ebp - 0x28]
call esi
test eax, eax
je 0x10006ea9
push dword [ebp - 0x28]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x24]
call esi
push dword [ebp - 0x20]
call esi
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100169ed
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [ebp - 0x38]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10006eb1
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp - 0x3c]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x2c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x28]
call esi
push dword [ebp - 0x24]
call esi
push dword [ebp - 0x20]
call esi
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100169ed
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10007d50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100504c8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x1006e090]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x58]
push eax
call fcn.10008300
mov ecx, eax
call fcn.10005b40
sub esp, 0x18
mov dword [ebp - 4], 0
lea eax, [ebp - 0x58]
mov ecx, esp
push eax
call fcn.10002df0
call fcn.10003b30
add esp, 0x18
mov esi, eax
lea eax, [ebp - 0x40]
mov edi, edx
push eax
call fcn.10008300
mov ecx, eax
call fcn.10005470
sub esp, 0x18
mov byte [ebp - 4], 1
lea eax, [ebp - 0x40]
mov ecx, esp
push eax
call fcn.10002df0
call fcn.10003b30
add esp, 0x18
test edx, edx
jl 0x10007df1
jg 0x10007ddf
test eax, eax
je 0x10007df1
push edx
push eax
call fcn.10012570
add esp, 8
test eax, eax
jne 0x10007ed0
test edi, edi
jg 0x10007e2e
jl 0x10007dfb
test esi, esi
jne 0x10007e2e
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x5c], esp
push 0
call fcn.10038f4e
push edx
push eax
push esi
call fcn.100039a0
add esp, 0x10
mov byte [ebp - 4], 2
call fcn.10008300
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.10006470
jmp 0x10007ed0
push 0xc
push edi
push esi
call fcn.10012490
add esp, 0xc
test eax, eax
je 0x10007ed0
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x5c], esp
push 0
call fcn.10038f4e
push edx
push eax
push esi
call fcn.100039a0
add esp, 0x10
mov byte [ebp - 4], 3
call fcn.10008300
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.10006470
lea eax, [ebp - 0x28]
push eax
call fcn.10008300
mov ecx, eax
call fcn.100051d0
push 0xd
push 0x10056ad0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.10002630
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10007ec8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0xffffffffffffffff
push 0
push eax
push str._8882471530
call fcn.10012300
add esp, 0x14
lea ecx, [ebp - 0x28]
call fcn.100027b0
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x10007f06
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10007efc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10007f6b
push edx
push ecx
call fcn.1001642e
add esp, 8
mov edx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x10007f50
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10007f46
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10007f70
push edx
push ecx
call fcn.1001642e
add esp, 8
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.100169ed
mov esp, ebp
pop ebp
ret
call fcn.10031d09
call fcn.10031d09
int3
Function at 0x1000d6f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10050860
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x1006e090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.1001645f
mov edi, eax
add esp, 4
test edi, edi
je 0x1000d79b
push 1
mov dword [ebp - 4], 0
call fcn.100154e0
mov dword [edi + 4], eax
add esp, 4
mov dword [esi + 0x30], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret