joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46cea9
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x46d041
cmp ebp, ebx
jle 0x46d041
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x46cf07
dec eax
or eax, 0xfffffff8
inc eax
je 0x46cf0e
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, 0x80000001
jns 0x46cf1d
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x46cf24
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.004a43db
add esp, 4
cmp eax, ebx
je 0x46cf45
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.004a43db
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x46d037
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x46d01e
mov al, byte [edx]
cmp al, 0xc0
jbe 0x46d00a
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x46cfff
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x46d00d
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x46d00d
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x46cfa9
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x46cf9a
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x475229
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ac190
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push esi
push edi
mov esi, ecx
call fcn.00472e29
mov ebx, eax
test ebx, ebx
mov dword [esp + 0xc], ebx
jne 0x475282
mov eax, dword [esp + 0x68]
xor ecx, ecx
mov ebx, eax
xor edx, edx
xor esi, esi
xor edi, edi
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc
push ebp
mov ecx, ebx
call fcn.00470179
mov ebp, dword [esp + 0x70]
mov edi, eax
add edi, ebp
mov ecx, ebx
mov dword [esp + 0x28], edi
call fcn.00470169
mov edx, dword [esp + 0x74]
mov ecx, esi
add eax, edx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x20]
push eax
call fcn.004748d9
mov ebp, dword [eax]
lea edx, [esp + 0x38]
push edx
mov ecx, dword [eax + 4]
mov eax, dword [esi + 0x1c]
push eax
mov dword [esp + 0x24], ecx
call dword [fcn.004ae418]
push 0
lea ecx, [esp + 0x4c]
call fcn.004ab063
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
mov dword [esp + 0x70], 0
call fcn.004840e9
add esp, 0xc
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x18]
call fcn.00472889
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x38]
push 2
push edx
push eax
mov byte [esp + 0x70], 1
call dword [fcn.004ae0e4]
mov ecx, ebx
call fcn.004700e9
mov ebx, eax
mov eax, edi
cmp eax, ebx
jge 0x47534d
push edi
mov ecx, esi
call fcn.00472999
push eax
push ebp
mov ecx, esi
call fcn.00472b59
cmp eax, dword [esp + 0x40]
jg 0x475349
inc edi
mov ebp, eax
cmp edi, ebx
jl 0x475327
mov eax, ebx
jmp 0x475353
cmp edi, ebx
jl 0x475351
mov eax, ebx
jmp 0x475353
mov eax, edi
lea ecx, [eax - 1]
mov eax, dword [esp + 0x28]
cmp eax, ecx
jle 0x475364
mov dword [esp + 0x30], eax
jmp 0x47536f
cmp edi, ebx
jl 0x47536a
mov edi, ebx
dec edi
mov dword [esp + 0x30], edi
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
call fcn.004700a9
mov ebp, eax
mov eax, dword [esp + 0x2c]
cmp eax, ebp
mov edi, eax
jge 0x4753b6
push edi
mov ecx, esi
call fcn.004728b9
push eax
push ebx
mov ecx, esi
call fcn.00472c89
cmp eax, dword [esp + 0x44]
jg 0x4753ae
inc edi
mov ebx, eax
cmp edi, ebp
jl 0x475388
mov eax, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x4753c0
cmp edi, ebp
jl 0x4753ba
mov eax, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x4753c0
mov eax, dword [esp + 0x2c]
mov ecx, edi
dec ecx
cmp eax, ecx
jle 0x4753c9
mov ecx, eax
jmp 0x4753d2
cmp edi, ebp
jl 0x4753cf
mov edi, ebp
lea ecx, [edi - 1]
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x28]
mov edx, esi
mov dword [edx], edi
mov dword [edx + 4], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x14]
call fcn.004728a9
lea ecx, [esp + 0x48]
mov dword [esp + 0x64], 0xffffffff
call fcn.004ab0d5
mov ecx, dword [esp + 0x5c]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc
Function at 0x47b309
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ac648
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x47b342
inc eax
mov dword [esi + 0x10], eax
jmp 0x47b455
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x47b356
mov eax, 0xffffffc7
jmp 0x47b457
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x47b367
cmp dword [esi + 8], eax
jne 0x47b356
cmp dword [esi + 8], eax
jne 0x47b380
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x47b380
mov eax, 0xffffffc7
jmp 0x47b457
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x47b394
push eax
mov ecx, ebx
call fcn.0047ab39
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.0044a8c9
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x47b3c5
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.0044a8e9
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0047a2a9
test eax, eax
mov dword [esp + 0x38], eax
je 0x47b3f8
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4c0270
call fcn.0044aac9
mov eax, dword [esp + 0x38]
jmp 0x47b457
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0047b169
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x47b43c
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0047b189
mov esi, eax
test esi, esi
jne 0x47b46c
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0047b169
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x47b40e
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4c0270
call fcn.0044aac9
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4c0270
call fcn.0044aac9
mov eax, esi
jmp 0x47b457
Function at 0x484749
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4acc78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [fcn.004ae418]
push 0
lea ecx, [esp + 0x20]
call fcn.004ab063
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.004840e9
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004aaf91
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004a7852
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004a7852
push 1
push 0
push 0
mov ecx, esi
call fcn.004a77fa
push 1
push 0
push 1
mov ecx, esi
call fcn.004a77fa
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004ab0d5
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x4848c9
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4acc98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004ab063
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.004840e9
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004aaf91
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [fcn.004ae418]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x48498d
cmp dword [esp + 0x40], 1
jne 0x48498b
cmp ecx, eax
jge 0x48498d
mov eax, ecx
cmp eax, 0xc8
jge 0x484999
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00484749
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [fcn.004ae41c]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004ab0d5
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x487c49
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x487c7c
push esi
call fcn.0048ad39
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x487c75
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x487d02
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x487ceb
mov eax, dword [esi + 8]
test eax, eax
je 0x487ca0
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x487ce7
cmp eax, 2
je 0x487ceb
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x487c93
cmp eax, 3
je 0x487cc6
cmp eax, 1
jne 0x487c93
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x487c93
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x487c93
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00487d29
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x487d11
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00487d29
add esp, 4
pop esi
ret
Function at 0x100273c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x18]
push esi
xor esi, esi
neg eax
sbb eax, eax
mov ecx, 0x208
and eax, 6
push ecx
inc eax
push 0x40
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], eax
call dword [fcn.01001048]
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x1002777
xor eax, eax
jmp 0x100287e
cmp dword [ebp + 0xc], esi
je 0x1002786
push dword [ebp + 0xc]
push eax
call dword [fcn.01001058]
push ebx
push edi
lea eax, [ebp + 0x18]
push eax
xor eax, eax
cmp dword [ebp + 0x10], esi
mov ebx, 0x20019
setne al
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, 0x80000001
push 0x1001370
add eax, edi
push eax
call esi
test eax, eax
jne 0x10027d6
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
cmp dword [ebp + 0x10], ecx
jne 0x1002816
lea eax, [ebp + 0x18]
push eax
push ebx
push ecx
push 0x10012f8
push edi
call esi
test eax, eax
mov edi, dword [ebp - 4]
jne 0x1002812
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
jmp 0x1002819
mov edi, dword [ebp - 4]
cmp word [edi], cx
jne 0x1002822
xor esi, esi
jmp 0x1002873
cmp word [edi], cx
mov esi, edi
mov eax, edi
je 0x1002870
jmp 0x1002839
xor ecx, ecx
jmp 0x1002839
cmp word [esi], 0x2c
je 0x1002844
inc esi
inc esi
cmp word [esi], cx
jne 0x1002831
cmp word [esi], 0x2c
jne 0x100284d
mov word [esi], cx
inc esi
inc esi
jmp 0x100284d
inc eax
inc eax
cmp word [eax], 0x20
je 0x100284b
push dword [ebp - 0x14]
push ecx
push dword [ebp + 0x14]
push ecx
push eax
call fcn.01002454
test eax, eax
je 0x1002868
inc dword [ebp - 8]
cmp word [esi], 0
mov eax, esi
jne 0x100282d
mov esi, dword [ebp - 8]
push edi
call dword [fcn.01001044]
pop edi
mov eax, esi
pop ebx
pop esi
leave
ret 0x14
Function at 0x1002df2
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 4]
push eax
mov ebx, 0x20019
push ebx
push 0
push 0x1001370
mov edi, 0x80000002
push edi
mov dword [ebp - 0xc], 1
call esi
test eax, eax
jne 0x1002e53
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x1001644
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push ebx
push 0
push 0x10012f8
push edi
call esi
test eax, eax
pop edi
pop esi
pop ebx
jne 0x1002e95
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x1001644
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
leave
ret

Function at 0x1002e9f
Capabilities:
Encrypt data using dpapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10060f0]
push ebx
push esi
push edi
push 0x10016b4
mov dword [ebp - 4], eax
call dword [fcn.01001064]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x1002eec
push 0x10016a0
push edi
call dword [fcn.01001060]
mov esi, eax
cmp esi, ebx
je 0x1002ee5
call dword [0x10010dc]
push eax
push 0x7020420
call esi
push edi
call dword [fcn.0100105c]
xor eax, eax
mov byte [ebp - 0xc], bl
lea edi, [ebp - 0xb]
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 8
stosb byte es:[edi], al
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], eax
pop eax
lea ecx, [ebp - 0x1c]
push ecx
push eax
push ebx
push ebx
push ebx
mov dword [ebp - 0x14], eax
push ebx
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
cmp dword [eax + 0x1d4], ebx
jne 0x1002f4d
push 0x1001670
push ebx
push 0x100002
call dword [0x10010e8]
mov esi, eax
cmp esi, ebx
je 0x1002f4d
push esi
call dword [0x10010e4]
push esi
call dword [fcn.0100106c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01004e6a
leave
ret
Function at 0x1002f5f
Capabilities:
Get keyboard layout
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x10060f0]
push 0x1000
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x100309a
push ebx
push esi
xor ebx, ebx
push ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov esi, eax
call dword [0x10010d8]
cmp ax, si
je 0x1003098
push edi
push 5
pop ecx
push 7
mov esi, 0x1001790
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
pop ecx
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x48]
push eax
push ebx
push 0x2001f
push ebx
movsw word es:[edi], word [esi]
push ebx
push ebx
mov esi, 0x1001774
lea edi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push 0x1001710
mov edi, 0x80000001
push edi
call esi
test eax, eax
jne 0x1003097
push 0x1c
lea eax, [ebp - 0x40]
push eax
push 1
push ebx
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x48]
mov dword [ebp - 0x58], 0x31
mov dword [ebp - 0x4c], 0x33
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x44]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push 0x10016e0
push edi
call esi
test eax, eax
jne 0x1003097
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
mov esi, 0x10016d0
push esi
push dword [ebp - 0x44]
mov dword [ebp - 0x50], 6
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100306c
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntdll.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
jne 0x100308e
push 4
lea eax, [ebp - 0x58]
push eax
push 1
push ebx
push esi
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x100308e
push ebx
push ebx
push ebx
push 0x5b
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor eax, eax
inc eax
call fcn.01004e6a
leave
ret

Function at 0x10030ac
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
cmp dword [0x10060e4], esi
je 0x100311d
lea eax, [ebp - 8]
push eax
push 1
push esi
push 0x10017c0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1003117
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x10017a8
push dword [ebp - 8]
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100310e
cmp dword [ebp - 4], esi
setne al
mov dword [0x100610c], eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x10060e4], esi
mov eax, dword [0x100610c]
pop esi
leave
ret
Function at 0x100312a
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0xf01ff
call dword [fcn.010010d4]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1003211
push dword [ebp - 0x10]
call fcn.0100482c
test eax, eax
mov dword [ebp - 8], eax
je 0x1003208
push ebx
push esi
mov esi, dword [sym.imp.ntdll.dll_wcslen]
push edi
mov ebx, 0x1001828
push ebx
call esi
mov edi, 0x1001204
push edi
mov dword [ebp - 4], eax
call esi
push dword [ebp - 8]
add dword [ebp - 4], eax
call esi
mov ecx, dword [ebp - 4]
add ecx, eax
add esp, 0xc
lea eax, [ecx + ecx + 2]
push eax
push 0x40
call dword [fcn.01001048]
mov esi, eax
test esi, esi
je 0x10031fd
push ebx
push esi
call dword [sym.imp.ntdll.dll_wcscpy]
push edi
mov edi, dword [sym.imp.ntdll.dll_wcscat]
push esi
call edi
push dword [ebp - 8]
push esi
call edi
add esp, 0x18
lea eax, [ebp - 0xc]
push eax
push 2
push 0
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10031f6
push 4
lea eax, [ebp + 8]
push eax
push 4
push 0
push 0x100161c
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [fcn.01001044]
push dword [ebp - 8]
call fcn.010041a9
pop edi
pop esi
pop ebx
push dword [ebp - 0x10]
call dword [fcn.0100106c]
leave
ret 4

Function at 0x100339c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x10060f0]
push ebx
mov ebx, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x214]
push eax
push 0x20019
xor edi, edi
push edi
push str.SystemCurrentControlSetControlSession_ManagerMemory_Management
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1003432
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x21c]
push eax
push edi
push str.TempPageFile
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100341e
cmp dword [ebp - 0x21c], 4
jne 0x100341e
cmp dword [ebp - 0x218], 4
je 0x1003424
mov dword [ebp - 0x210], edi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1003438
mov dword [ebp - 0x210], edi
cmp dword [ebp - 0x210], 1
jne 0x100346f
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x641
push ebx
call dword [sym.imp.USER32.dll_LoadStringW]
push 1
push edi
push 1
lea eax, [ebp - 0x20c]
push eax
push 0x1001988
call fcn.0100273c
push ebx
call fcn.01002a1b
call fcn.01002e9f
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.01004e6a
leave
ret 4