joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4014a0
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
sub esp, 0x40
push ebx
push esi
push edi
test ecx, ecx
jle 0x4014c8
mov eax, dword [ebp + 0x10]
lea edx, [ebp + 0x18]
dec ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0xc], eax
jmp 0x4014d6
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
test ecx, ecx
jle 0x4014ef
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x14], eax
jmp 0x4014fd
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
test ecx, ecx
jle 0x401516
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x1c], eax
jmp 0x401524
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
test ecx, ecx
jle 0x40153d
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x24], eax
jmp 0x40154b
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov eax, edx
mov dword [ebp - 0x30], 0
cdq
mov dword [ebp - 0x40], eax
mov eax, ecx
mov dword [ebp - 0x3c], edx
cdq
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov word [ebp - 8], fs
mov eax, 0x2b
mov fs, ax
mov dword [ebp - 4], esp
and esp, 0xfffffff0
push 0x33
call fcn.00401592

Function at 0x401850
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
sub esp, 0x808
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], edx
xor ebp, ebp
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x4018ab
mov edi, ecx
lea edx, [edi + 2]
nop
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x401870
sub edi, edx
sar edi, 1
cmp edi, 0x200
jb 0x40188c
mov edi, 0x1ff
push edi
push ecx
lea eax, [esp + 0x420]
push eax
lea ebp, [edi + edi]
call fcn.00401e70
add esp, 0xc
xor eax, eax
mov word [esp + ebp + 0x418], ax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0xc
jne 0x4018cd
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0x14
je 0x40193f
mov esi, dword [ebx]
cmp esi, ebx
je 0x40193f
test esi, esi
je 0x40193f
cmp word [esi + 0x24], 2
jbe 0x401939
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x401939
cmp dword [esi + 0x18], 0
je 0x401939
test ebp, ebp
je 0x4018f5
cmp ebp, eax
jne 0x401939
push edi
push dword [esi + 0x30]
lea eax, [esp + 0x20]
push eax
call fcn.00401e70
mov edx, dword [esp + 0x1c]
xor eax, eax
add esp, 0xc
mov word [esp + edi*2 + 0x18], ax
test edx, edx
je 0x40191a
cmp edx, dword [esi + 0x18]
jne 0x401939
cmp dword [esp + 0x14], eax
je 0x40194c
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push eax
call fcn.00401960
add esp, 8
test eax, eax
je 0x40194c
mov esi, dword [esi]
cmp esi, ebx
jne 0x4018d3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x808
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x808
ret
Function at 0x401f20
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Get windows directory from kuser_shared_data

Disassembly:
mov eax, dword [0x7f8208]
sub esp, 0x20c
push ebp
mov ebp, ecx
push esi
push edi
test eax, eax
je 0x4020cd
cmp dword [0x7f820c], 0
jne 0x4020b9
xor eax, eax
push 0x100
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], ax
mov byte [esp + 0x1e], al
lea eax, [esp + 0x20]
push eax
call fcn.004019c0
add esp, 0xc
xor edi, edi
xor eax, eax
nop
mov byte [esp + eax + 0x18], al
inc eax
cmp eax, 0x100
jb 0x401f70
xor esi, esi
mov edi, edi
mov dl, byte [esp + esi + 0x18]
mov eax, esi
and eax, 3
movzx ecx, dl
movzx eax, byte [eax + 0x41c0d4]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [esp + edi + 0x18]
mov byte [esp + esi + 0x18], al
inc esi
mov byte [esp + edi + 0x18], dl
cmp esi, 0x100
jb 0x401f80
xor esi, esi
xor edi, edi
xor edx, edx
lea eax, [esi + 1]
movzx esi, al
mov cl, byte [esp + esi + 0x18]
movzx eax, cl
add eax, edi
movzx edi, al
movzx eax, byte [esp + edi + 0x18]
mov byte [esp + esi + 0x18], al
mov byte [esp + edi + 0x18], cl
movzx eax, byte [esp + esi + 0x18]
movzx ecx, cl
add ecx, eax
movzx eax, cl
movzx eax, byte [esp + eax + 0x18]
xor al, byte [edx + 0x41c0d8]
mov byte [esp + edx + 0xc], al
inc edx
cmp edx, 0xb
jb 0x401fb5
push 0x200
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.004019c0
mov edx, 0x7ffe0030
add esp, 0xc
xor ecx, ecx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x402014
sub edx, esi
sar edx, 1
je 0x4020cd
mov esi, ebp
lea edi, [esi + 1]
mov edi, edi
mov al, byte [esi]
inc esi
test al, al
jne 0x402030
sub esi, edi
add edx, 0xc
add edx, esi
cmp edx, 0x200
ja 0x4020cd
xor eax, eax
push ebx
test edx, edx
je 0x402068
movzx ebx, word [eax + eax + 0x7ffe0030]
test bx, bx
je 0x402068
mov byte [esp + eax + 0x1c], bl
inc ecx
inc eax
cmp eax, edx
jb 0x402051
xor eax, eax
test edx, edx
je 0x402082
mov edi, edi
mov bl, byte [esp + eax + 0x10]
test bl, bl
je 0x402082
mov byte [esp + ecx + 0x1c], bl
inc eax
inc ecx
cmp eax, edx
jb 0x402070
xor eax, eax
test edx, edx
je 0x40209f
lea ecx, [esp + ecx + 0x1c]
lea esp, [esp]
mov bl, byte [eax + ebp]
test bl, bl
je 0x40209f
mov byte [ecx], bl
inc eax
inc ecx
cmp eax, edx
jb 0x402090
push 8
push 0
lea eax, [esp + 0x24]
push eax
call dword [0x7f8208]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x20c
ret
push 0x800
push 0
push ebp
call eax
pop edi
pop esi
pop ebp
add esp, 0x20c
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x20c
ret
Function at 0x402db0
Capabilities:
Check os version

Disassembly:
mov ecx, 1
mov edx, 0x7f8348
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x402ed9
cmp dword fs:[0xc0], eax
je 0x402ddb
mov dword [0x7f8344], 1
mov eax, dword fs:[0x18]
push ebx
push esi
mov ebx, 1
mov esi, dword [eax + 0x30]
mov eax, dword [esi + 0xa4]
mov dword [0x7f822c], eax
mov eax, dword [esi + 0xa8]
mov dword [0x7f8230], eax
movzx edx, word [esi + 0xac]
mov dword [0x7f8234], edx
mov eax, dword [esi + 0xb0]
mov dword [0x7f8238], eax
mov eax, dword [esi + 0x1f4]
test eax, eax
je 0x402e3b
push 0x7f
push eax
push 0x7f823c
call fcn.00401e70
mov edx, dword [0x7f8234]
add esp, 0xc
jmp 0x402e43
xor eax, eax
mov word [0x7f823c], ax
movzx eax, byte [esi + 0xaf]
mov ecx, 0xff
mov word [0x7f833c], ax
movzx eax, word [esi + 0xae]
and ax, cx
mov word [0x7f833e], ax
movzx eax, word [0x7ffe02d0]
mov word [0x7f8340], ax
mov ecx, eax
mov byte [0x7f8342], 0
cmp byte [0x7ffe0268], 0
je 0x402e8a
mov ebx, dword [0x7ffe0264]
pop esi
mov byte [0x7f8342], bl
cmp ebx, 1
pop ebx
jne 0x402ea4
and ecx, 0xffef
mov word [0x7f8340], cx
test edx, edx
jne 0x402ed9
call fcn.00402db0
cmp dword [0x7f822c], 6
ja 0x402ed9
jb 0x402ec1
cmp dword [0x7f8230], 4
jae 0x402ed9
call fcn.00402db0
cmp dword [0x7f822c], 0xa
jae 0x402ed9
mov dword [0x7f8234], 1
ret
Function at 0x403090
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
sub esp, 0xc08
push ebx
push ebp
mov dword [esp + 0xc], edx
xor edx, edx
mov dword [esp + 8], edx
push esi
push edi
test ecx, ecx
je 0x4030db
xor esi, esi
lea edi, [esp + 0x818]
mov al, byte [esi + ecx]
test al, al
je 0x4030cb
cbw
inc esi
mov word [edi], ax
add edi, 2
cmp esi, 0x1ff
jb 0x4030b1
jmp 0x4030d0
xor eax, eax
mov word [edi], ax
lea edx, [esp + 0x818]
mov dword [esp + 0x10], edx
xor edi, edi
xor ebp, ebp
test edx, edx
je 0x40312b
mov edi, edx
lea ecx, [edi + 2]
jmp 0x4030f0
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x4030f0
sub edi, ecx
sar edi, 1
cmp edi, 0x200
jb 0x40310c
mov edi, 0x1ff
push edi
push edx
lea eax, [esp + 0x420]
push eax
lea ebp, [edi + edi]
call fcn.00401e70
add esp, 0xc
xor eax, eax
mov word [esp + ebp + 0x418], ax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0xc
jne 0x40314d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0x14
je 0x4031c0
mov esi, dword [ebx]
cmp esi, ebx
je 0x4031c0
test esi, esi
je 0x4031c0
cmp word [esi + 0x24], 2
jbe 0x4031ba
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x4031ba
cmp dword [esi + 0x18], 0
je 0x4031ba
test ebp, ebp
je 0x403175
cmp ebp, eax
jne 0x4031ba
push edi
push dword [esi + 0x30]
lea eax, [esp + 0x20]
push eax
call fcn.00401e70
xor eax, eax
add esp, 0xc
mov word [esp + edi*2 + 0x18], ax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40319a
cmp eax, dword [esi + 0x18]
jne 0x4031ba
cmp dword [esp + 0x10], 0
je 0x4031cd
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push eax
call fcn.00401960
add esp, 8
test eax, eax
je 0x4031cd
mov esi, dword [esi]
cmp esi, ebx
jne 0x403153
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc08
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc08
ret
Function at 0x403810
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [0x7f8c5c]
sub esp, 0x11c
test eax, eax
jne 0x40390e
push ebx
push esi
push edi
push 0x100
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov word [esp + 0x2c], ax
lea eax, [esp + 0x30]
push eax
call fcn.004019c0
add esp, 0xc
xor edi, edi
xor eax, eax
lea ebx, [ebx]
mov byte [esp + eax + 0x28], al
inc eax
cmp eax, 0x100
jb 0x403860
xor esi, esi
mov edi, edi
mov dl, byte [esp + esi + 0x28]
mov eax, esi
and eax, 3
movzx ecx, dl
movzx eax, byte [eax + 0x41c100]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [esp + edi + 0x28]
mov byte [esp + esi + 0x28], al
inc esi
mov byte [esp + edi + 0x28], dl
cmp esi, 0x100
jb 0x403870
xor edi, edi
xor ebx, ebx
xor esi, esi
lea eax, [edi + 1]
movzx edi, al
mov cl, byte [esp + edi + 0x28]
movzx edx, cl
lea eax, [edx + ebx]
movzx ebx, al
movzx eax, byte [esp + ebx + 0x28]
mov byte [esp + edi + 0x28], al
mov byte [esp + ebx + 0x28], cl
movzx eax, byte [esp + edi + 0x28]
add eax, edx
movzx eax, al
movzx eax, byte [esp + eax + 0x28]
xor al, byte [esi + 0x41c104]
mov byte [esp + esi + 0xc], al
inc esi
cmp esi, 0x1a
jb 0x4038a5
xor edx, edx
lea ecx, [esp + 0xc]
call fcn.00401850
pop edi
pop esi
pop ebx
test eax, eax
je 0x403909
mov eax, dword [eax + 0x18]
test eax, eax
je 0x403909
mov dword [0x7f8c5c], eax
add esp, 0x11c
ret
mov eax, dword [0x7f8c5c]
add esp, 0x11c
ret
Function at 0x41b092
Capabilities:
Execute syscall

Disassembly:
mov edx, esp
sysenter
ret

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x4086ca
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x4086d9
pop dword [ebp - 0x18]
mov eax, 0x423231cb
sub eax, 0x41f1aaf2
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0xf532df03
add dword [ebp - 0x28], 0x591f6648
mov dword [ebp - 0x24], 0x80614773
add dword [ebp - 0x24], 0xb1d204d2
mov dword [ebp - 0x20], 0x6e303db0
sub dword [ebp - 0x20], 0x21e3f982
mov dword [ebp - 0x1c], 0xaa5fa0aa
add dword [ebp - 0x1c], 0x55a05f56
lea eax, [ebp - 0x28]
push eax
mov eax, 0xe583de4e
sub eax, 0xe5430dfa
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0xb0799768
add dword [ebp - 0x28], 0xc3f8d1ee
mov dword [ebp - 0x24], 0xfe91bba5
sub dword [ebp - 0x24], 0xbd255a30
mov dword [ebp - 0x20], 0x6951ea5e
add dword [ebp - 0x20], 0xfa1d820e
mov dword [ebp - 0x1c], 0xc405d759
sub dword [ebp - 0x1c], 0xc405d759
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0xe240ba7d
add eax, 0x1e0015cf
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x39499
push 0
call eax
mov ecx, 0x4f083b7
sub ecx, 0x4f03ca5
mov esi, eax
mov edi, 0x67a7e419
add edi, 0x9899cbe7
add edi, dword [ebp - 0x18]
mov ebx, 0x100460bb
xor dword [ebp - 4], edx
mov edx, dword [edi]
mov dword [ebp - 0x14], 0x1ad2583f
xor edx, ebx
xor dword [ebp - 0xc], eax
mov dword [esi], edx
sub dword [ebp - 4], esi
add esi, 0xf848cd53
add esi, 0x7b732b1
add edi, 4
loop 0x4087f5
add eax, 0xb6346d5d
add eax, 0x49cca1be
xor ebx, ebx
add ebx, eax
add eax, 0x6671aa46
add eax, 0x998e55bf
mov ecx, 0x400000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x10008300
Capabilities:
Delete registry value

Disassembly:
push ebp
lea ebp, [esp - 0x410]
sub esp, 0x410
push 0xfffffffffffffffe
push 0x1001dfd0
push 0x100109a0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x1001f170]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x40c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
push 0x103
push str.Your_Image_File_Name_Here_without_a_path
push esi
call fcn.1000c9b9
add esp, 0xc
test eax, eax
je 0x10008425
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10008371
sub eax, edx
cmp eax, 0x36a
jge 0x10008425
push esi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionImage_File_Execution_Options_s
lea eax, [ebp]
push eax
call fcn.1000c9d3
add esp, 0xc
mov esi, 0xfffffffe
mov dword [ebp - 4], esi
mov edi, 1
mov dword [ebp - 4], edi
push ebx
lea ecx, [ebp - 0x1c]
push ecx
push ebx
push 2
push edi
push ebx
push ebx
lea edx, [ebp]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x100083ca
mov dword [ebp - 4], esi
jmp 0x1000842c
mov dword [ebp - 4], 2
push str.Debugger
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], edi
call fcn.10008402
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x1000842e
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x40c]
xor ecx, ebp
call fcn.1000bd45
add ebp, 0x410
mov esp, ebp
pop ebp
ret
Function at 0x10008460
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x114]
sub esp, 0x114
push 0xfffffffffffffffe
push 0x1001e008
push 0x100109a0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x1001f170]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x110], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
push edi
lea eax, [ebp - 0x1c]
push eax
push edi
push 8
push 1
push edi
push edi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionImage_File_Execution_Options
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10008579
mov dword [ebp - 4], edi
mov dword [ebp - 4], 1
mov dword [ebp - 0x28], edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x24], 0x104
push 0x104
push 0
lea ecx, [ebp]
push ecx
call fcn.10013630
add esp, 0xc
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp]
push eax
push edi
mov ecx, dword [ebp - 0x1c]
push ecx
call ebx
mov esi, eax
test esi, esi
jne 0x1000852f
mov byte [ebp + 0x104], al
lea ecx, [ebp]
call fcn.10008300
test eax, eax
je 0x1000852f
inc dword [ebp - 0x20]
inc edi
mov dword [ebp - 0x28], edi
cmp esi, 0x103
jne 0x100084e3
mov dword [ebp - 4], 0
call fcn.10008553
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
jmp 0x1000857c
or eax, 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x110]
xor ecx, ebp
call fcn.1000bd45
add ebp, 0x114
mov esp, ebp
pop ebp
ret
Function at 0x1000ae90
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
call fcn.10009230
mov dword [esp + 8], eax
test eax, eax
je 0x1000afa8
push ebp
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push edi
lea eax, [esp + 0xc]
push eax
push str.SOFTWAREBkav
push 0x80000002
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x1000aef7
mov edx, dword [esp + 0xc]
push 4
lea ecx, [esp + 0x18]
push ecx
push 4
push 0
push str.fVetorVxhFullScanGUI
push edx
call edi
test eax, eax
jne 0x1000aef0
mov eax, dword [esp + 0xc]
push eax
jmp 0x1000aef5
mov ecx, dword [esp + 0xc]
push ecx
call ebp
cmp dword [0x10020188], 0
je 0x1000af2f
push 0x180
push 0x100
push str.C:_bkavfsvxh.mar
mov dword [0x10020188], 0
call fcn.1000cf14
add esp, 0xc
cmp eax, 0xffffffff
je 0x1000af2f
push eax
call fcn.100117ff
add esp, 4
lea edx, [esp + 0x10]
push edx
push str.SOFTWAREBkav
push 0x80000002
call esi
test eax, eax
jne 0x1000af6d
mov ecx, dword [esp + 0x10]
push 4
lea eax, [esp + 0x18]
push eax
push 4
push 0
push str.fVetorX5ExFullScanGUI
push ecx
call edi
test eax, eax
jne 0x1000af66
mov edx, dword [esp + 0x10]
push edx
jmp 0x1000af6b
mov eax, dword [esp + 0x10]
push eax
call ebp
cmp dword [0x1002018c], 0
pop edi
pop esi
pop ebp
je 0x1000afa8
push 0x180
push 0x100
push str.C:_bkavfsvx5ex.mar
mov dword [0x1002018c], 0
call fcn.1000cf14
add esp, 0xc
cmp eax, 0xffffffff
je 0x1000afa8
push eax
call fcn.100117ff
add esp, 4
add esp, 0xc
ret

Function at 0x1000afc0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push str.Op1mutx9
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0x1000aff4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Op1mutx9
call fcn.10009130
add esp, 4
mov eax, 1
jmp 0x1000aff6
xor eax, eax
mov dword [esp + 4], eax
test eax, eax
je 0x1000b07b
lea eax, [esp]
push eax
push str.SOFTWAREBkav
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1000b043
mov edx, dword [esp]
push 4
lea ecx, [esp + 8]
push ecx
push 4
push eax
push str.fSalityVFullScanGUI
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1000b039
mov eax, dword [esp]
push eax
jmp 0x1000b03d
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x10020190], 0
je 0x1000b07b
push 0x180
push 0x100
push str.C:_bkavfssalityv.mar
mov dword [0x10020190], 0
call fcn.1000cf14
add esp, 0xc
cmp eax, 0xffffffff
je 0x1000b07b
push eax
call fcn.100117ff
add esp, 4
add esp, 8
ret

Function at 0x1000b080
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push esi
mov esi, eax
mov edx, dword [esi + 0xa]
mov ecx, edx
shr edx, 2
or ecx, 0x45504d5a
lea eax, [esi + 0xe]
test edx, edx
jbe 0x1000b0a2
xor dword [eax], ecx
add eax, 4
sub edx, 1
jne 0x1000b098
mov esi, dword [esi + 0xa]
and esi, 3
mov edx, 0
jbe 0x1000b0bb
nop
xor byte [edx + eax], cl
inc edx
shr ecx, 4
cmp edx, esi
jb 0x1000b0b0
pop esi
ret
Function at 0x1000b430
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 0x80000001
jne 0x1000b440
mov eax, dword [0x100200a0]
mov edx, dword [esp + 8]
lea ecx, [esp + 4]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1000b496
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1000b48b
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
ret
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
ret

Function at 0x1000b4a0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 0x80000001
jne 0x1000b4b0
mov eax, dword [0x100200a0]
mov edx, dword [esp + 8]
lea ecx, [esp + 4]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x1000b4c8
xor eax, eax
ret
mov edx, dword [esp + 0x10]
mov eax, edx
push esi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000b4d2
mov ecx, dword [esp + 8]
sub eax, esi
inc eax
push eax
mov eax, dword [esp + 0x14]
push edx
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 8]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
ret

Function at 0x1000b510
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 0x80000001
jne 0x1000b520
mov eax, dword [0x100200a0]
mov edx, dword [esp + 8]
lea ecx, [esp + 4]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x1000b538
xor eax, eax
ret
mov edx, dword [esp + 0xc]
mov eax, edx
push esi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000b542
sub eax, esi
inc eax
push eax
mov eax, dword [esp + 0xc]
push edx
push 1
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 8]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
ret

Function at 0x1000b580
Capabilities:
Delete registry value

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 0x80000001
jne 0x1000b590
mov eax, dword [0x100200a0]
mov edx, dword [esp + 8]
lea ecx, [esp + 4]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x1000b5a8
xor eax, eax
ret
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 4]
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 8]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
ret
Function at 0x1000b900
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x410
mov eax, dword [0x1001f170]
xor eax, esp
mov dword [esp + 0x40c], eax
push esi
mov esi, dword [esp + 0x418]
push edi
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push str.SoftwareBkav
mov edi, 0x400
push 0x80000002
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1000b95f
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.1000bd45
add esp, 0x410
ret
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push str.szWindowsDir
push ecx
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000b9ac
mov edi, dword [esp + 0x420]
lea edx, [edi - 1]
push edx
lea eax, [esp + 0x18]
push eax
push esi
call fcn.1000bd60
push esi
mov byte [esi + edi - 1], 0
call fcn.10017cb0
add esp, 0x10
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x414]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.1000bd45
add esp, 0x410
ret

Function at 0x1000bb50
Capabilities:
Read file on windows

Disassembly:
movzx eax, word [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [edx + 0x3140]
inc ecx
push ecx
push eax
call fcn.10016b7a
add esp, 0xc
cmp eax, 0xffffffff
jne 0x1000bb7c
call fcn.1000cfe0
mov eax, dword [eax]
ret
xor eax, eax
ret

Function at 0x1000bc20
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
test edi, edi
jne 0x1000bc2d
xor eax, eax
add esp, 0xc
ret
push 0
lea eax, [esp + 4]
push eax
push 0
push 1
push 0
push 0
push 0
push 0x10021020
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1000bc27
mov ecx, dword [esp]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 8]
push edx
push eax
lea eax, [esp + 0x14]
push eax
push 0
push str.szFullScanMark
push ecx
call esi
test eax, eax
je 0x1000bc83
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
add esp, 0xc
ret
cmp dword [esp + 0xc], 1
jne 0x1000bcbc
cmp dword [esp + 8], ebx
jbe 0x1000bc94
mov dword [esp + 8], ebx
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push edi
lea ecx, [esp + 0x14]
push ecx
push 0
push str.szFullScanMark
push edx
call esi
test eax, eax
je 0x1000bcc3
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
add esp, 0xc
ret
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
pop esi
add esp, 0xc
ret