joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47ece0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4d4597
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x6bcc14
mov dword [esi + 4], ebx
lea ecx, [esi + 0x1c]
mov dword [esp + 0x16c], ebx
call fcn.004bfac5
lea ecx, [esi + 0x24]
mov byte [esp + 0x16c], 1
call fcn.004bfac5
mov edi, dword [0x4d6684]
push 7
mov byte [esp + 0x170], 2
mov dword [esi], 0x6bcc00
call edi
push 0xe
mov dword [esi + 0x2c], eax
call edi
push 0xf
mov dword [esi + 0x30], eax
call edi
push 4
mov dword [esi + 0x34], eax
call edi
push 0xd
mov dword [esi + 0x38], eax
call edi
push 0x14
mov dword [esi + 0x3c], eax
call edi
push 0x10
mov dword [esi + 0x40], eax
call edi
push 0x11
mov dword [esi + 0x44], eax
call edi
push 0xf
mov dword [esi + 0x48], eax
call edi
push 0x14
mov dword [esi + 0x4c], eax
call edi
push 0x10
mov dword [esi + 0x50], eax
call edi
mov dword [esi + 0x54], eax
mov eax, 0x14
mov ecx, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
mov ecx, 0x55
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
push 0x29
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x20], 0x154
call dword [0x4d6570]
lea ecx, [esp + 0xb0]
push ecx
call dword [0x4d6078]
mov ecx, esi
mov dword [esi + 0x10], eax
mov dword [esi + 8], ebx
call fcn.0047f800
mov eax, esi
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x164
ret
Function at 0x483890
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d4bf0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00483440
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004834c0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004834c0
lea ecx, [esi + 0xc]
call fcn.004c1a1b
lea ecx, [esi + 0x10]
call fcn.004c1a1b
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00484a50
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00484a50
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00484a50
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004c1a90
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004c1a90
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x48de06
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
cmp edx, eax
mov dword [ebp - 0x14], eax
jae 0x48df27
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
cmp edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jae 0x48df0b
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 8], edi
shr edi, 2
and edi, esi
mov dword [ebp + 0x10], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 8]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp + 0x10]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 8]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
add ecx, 8
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, 0xffc03fc0
jne 0x48de5d
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
cmp edx, dword [ebp - 0x14]
mov dword [ebp + 0xc], edx
jb 0x48de3b
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18
Function at 0x323d058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x323d1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x323d07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x323d06a
add dl, dl
jne 0x323d089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x323d0dc
xor eax, eax
add dl, dl
jne 0x323d096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x323d17d
add dl, dl
jne 0x323d0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x323d0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x323d0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x323d0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x323d0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x323d075
mov eax, 1
add dl, dl
jne 0x323d0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x323d0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x323d0e1
sub eax, ebx
mov ebx, 1
jne 0x323d128
mov ecx, 1
add dl, dl
jne 0x323d10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x323d119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x323d105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x323d075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x323d13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x323d14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x323d136
cmp eax, 0x7d00
jae 0x323d16d
cmp eax, 0x500
jb 0x323d168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x323d075
cmp eax, 0x7f
ja 0x323d170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x323d075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x323d19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x323d075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x42b224
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x438e80]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0042b1b9
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004162c0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x42b273
cmp dword [ebp - 0x1c], 5
jb 0x42b28b
jmp 0x42b287
cmp dword [ebp - 0x10], 1
jne 0x42b28b
cmp dword [ebp - 0x1c], 4
ja 0x42b287
jne 0x42b28b
cmp dword [ebp - 0x18], 0
jbe 0x42b28b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4327a4
call fcn.0042b08d
test eax, eax
jge 0x42b2ac
mov byte [0x43a368], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00416063
add ebp, 0x78
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x47da80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x46b015
lea edi, [esi - 0x6a015]
push edi
or ebp, 0xffffffff
jmp 0x47daa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x47daa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47da98
mov eax, 1
add ebx, ebx
jne 0x47dabb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x47dacc
jne 0x47daeb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47daeb
dec eax
add ebx, ebx
jne 0x47dad8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x47dab0
add ebx, ebx
jne 0x47dae7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x47db3d
xor ecx, ecx
sub eax, 3
jb 0x47db03
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x47db72
sar eax, 1
mov ebp, eax
jmp 0x47db0e
add ebx, ebx
jne 0x47db0e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47dadc
inc ecx
add ebx, ebx
jne 0x47db1c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47dadc
add ebx, ebx
jne 0x47db29
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x47db1e
jne 0x47db3a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x47db1e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x47db5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x47db4e
jmp 0x47da9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x47db5c
add edi, ecx
jmp 0x47da9e
pop esi
mov edi, esi
mov ecx, 0x2108
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x47db7a
cmp byte [edi], 4
jne 0x47db7a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x47db7f
lea edi, [esi + 0x7b000]
mov eax, dword [edi]
or eax, eax
je 0x47dbf7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7dac0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7dafc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x47dbac
mov ecx, edi
jns 0x47dbdb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7db04]
or eax, eax
je 0x47dbf1
mov dword [ebx], eax
add ebx, 4
jmp 0x47dbc9
call dword [esi + 0x7db00]
mov ebp, dword [esi + 0x7db08]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x47dc2b
sub esp, 0xffffff80
jmp 0x401e00
Function at 0x100fe92
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push esi
xor esi, esi
cmp dword [eax - 8], esi
je 0x100fed4
push edi
push esi
push 0x80
push 3
push esi
push esi
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x100fed3
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x10200cd
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x10aa090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x42c], 0
and dword [ebp - 0x428], 0
push ebx
push esi
push edi
mov dword [ebp - 0x43c], eax
mov eax, dword [ebp + 0xc]
push eax
mov ebx, 0x104
xor edi, edi
push ebx
lea eax, [ebp - 0x20c]
inc edi
push eax
mov esi, ecx
mov dword [ebp - 0x438], edi
call fcn.01007d34
test eax, eax
jl 0x10201e3
push 0x1020338
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.0100f954
test eax, eax
jl 0x10201e3
push str.KillbitList
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.0100f954
test eax, eax
jl 0x10201e3
lea eax, [ebp - 0x42c]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x20c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10201aa
push esi
push dword [ebp - 0x42c]
lea edi, [ebp - 0x434]
call fcn.010201ec
test eax, eax
jl 0x10201aa
test dword [ebp - 0x434], 0x400
jne 0x10506b9
and dword [ebp - 0x438], 0
cmp dword [ebp - 0x42c], 0
je 0x10201bf
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x428], 0
jne 0x10507e3
mov eax, dword [ebp - 0x438]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100449b
leave
ret 8
mov eax, edi
jmp 0x10201d2
lea eax, [ebp - 0x428]
push eax
push esi
call dword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
jl 0x10201aa
and dword [ebp - 0x430], 0
lea eax, [ebp - 0x20c]
push eax
push ebx
lea eax, [ebp - 0x414]
push eax
mov dword [ebp - 0x440], 0x4e
call fcn.01007d34
test eax, eax
jl 0x10201aa
push 0x1020338
push ebx
lea eax, [ebp - 0x414]
push eax
call fcn.0100f954
test eax, eax
jl 0x10201aa
push dword [ebp - 0x428]
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.0100f954
test eax, eax
jl 0x10201aa
lea eax, [ebp - 0x440]
push eax
push dword [ebp - 0x428]
lea eax, [ebp - 0x414]
push 0
push 0x20000002
push 0x10557a4
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x10201aa
mov esi, 0x101ecf8
lea edi, [ebp - 0x424]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x424]
movsd dword es:[edi], dword [esi]
push eax
push dword [ebp - 0x428]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jl 0x10201aa
lea eax, [ebp - 0x424]
push eax
push dword [ebp - 0x42c]
lea edi, [ebp - 0x434]
call fcn.010201ec
test eax, eax
jl 0x10507b6
test dword [ebp - 0x434], 0x400
je 0x10507ce
inc dword [ebp - 0x430]
cmp dword [ebp - 0x430], 0xa
jge 0x10201aa
jmp 0x10506d6
mov edi, dword [ebp - 0x43c]
lea esi, [ebp - 0x424]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x10201aa
push dword [ebp - 0x428]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x10201cc
Function at 0x10201ec
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [edi], esi
call dword [sym.imp.ole32.dll_StringFromCLSID]
cmp eax, esi
mov dword [ebp - 0xc], eax
jl 0x1020238
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1050667
mov dword [ebp - 0xc], 1
cmp dword [ebp - 4], esi
jne 0x10506ab
cmp dword [ebp - 8], esi
pop esi
je 0x1020250
push dword [ebp - 8]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0xc]
leave
ret 8
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0xc]
push eax
push esi
push str.Compatibility_Flags
push dword [ebp - 4]
mov dword [ebp - 0x10], 4
mov dword [ebp + 0xc], esi
mov dword [ebp + 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1020238
cmp dword [ebp + 0xc], 4
jne 0x1020238
mov eax, dword [ebp + 8]
mov dword [edi], eax
jmp 0x1020238
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1020241
Function at 0x1020341
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x10aa090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x234], eax
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x224]
push ecx
push 0x20019
mov dword [ebp - 0x22c], eax
xor eax, eax
push eax
push 0x1020410
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
push ebx
mov dword [ebp - 0x238], 1
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10203d6
push edi
push esi
push dword [ebp - 0x224]
lea edi, [ebp - 0x230]
call fcn.010201ec
test eax, eax
jl 0x10203d5
test dword [ebp - 0x230], 0x400
jne 0x10507fa
and dword [ebp - 0x238], 0
pop edi
cmp dword [ebp - 0x224], 0
pop esi
pop ebx
je 0x10203ed
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x220], 0
jne 0x105096e
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x238]
xor ecx, ebp
call fcn.0100449b
leave
ret 0xc
lea eax, [ebp - 0x220]
push eax
push esi
call dword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
jl 0x10203d5
and dword [ebp - 0x228], 0
push 0x1d
pop ecx
mov esi, 0x1020410
lea edi, [ebp - 0x20c]
rep movsd dword es:[edi], dword [esi]
push 0x192
lea eax, [ebp - 0x196]
push 0
push eax
movsw word es:[edi], word [esi]
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x1020338
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x23c], 0x4e
call fcn.0100f954
test eax, eax
jl 0x10203d5
push dword [ebp - 0x220]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0100f954
test eax, eax
jl 0x10203d5
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x220]
lea eax, [ebp - 0x20c]
push 0
push 0x20000002
push 0x10557a4
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x10203d5
mov esi, 0x101ecf8
lea edi, [ebp - 0x21c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x21c]
movsd dword es:[edi], dword [esi]
push eax
push dword [ebp - 0x220]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jl 0x10203d5
cmp dword [ebp - 0x22c], 0
je 0x1050919
push dword [ebp - 0x22c]
lea ecx, [ebp - 0x21c]
push dword [ebp - 0x234]
call fcn.010200cd
test eax, eax
jne 0x10203d5
push dword [ebp - 0x22c]
lea ecx, [ebp - 0x21c]
call fcn.0102025c
test eax, eax
jne 0x1050959
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x224]
lea edi, [ebp - 0x230]
call fcn.010201ec
test eax, eax
jl 0x1050941
test dword [ebp - 0x230], 0x400
je 0x1050959
inc dword [ebp - 0x228]
cmp dword [ebp - 0x228], 0xa
jge 0x10203d5
jmp 0x1050817
mov edi, dword [ebp - 0x234]
lea esi, [ebp - 0x21c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x10203d5
push dword [ebp - 0x220]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x10203fa
Function at 0x1021e20
Capabilities:
Get file attributes

Disassembly:
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1021e06
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
je 0x1021e06
xor ecx, ecx
mov word [eax], cx
push dword [edi]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0100f954
mov esi, eax
and esi, ebx
jne 0x1021e0e
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
and esi, 0x10
test esi, esi
je 0x104ba02
and dword [edi], 0
jmp 0x1021e5b
mov esi, eax
and esi, ebx
jne 0x1021e0e
jmp 0x1021e5b
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10aa090]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
cmp dword [0x10aa0b4], esi
jne 0x1021e72
push ebx
push edi
mov edi, 0x10ab4f4
mov ebx, 0xffff
xor eax, eax
cmp dword [edi - 4], eax
jne 0x1021e5b
cmp dword [edi], eax
jne 0x1021dae
add edi, 0x30
cmp edi, 0x10ab7c4
jl 0x1021e4c
pop edi
mov dword [0x10aa0b4], 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0100449b
leave
ret
lea eax, [ebp - 0x20c]
push eax
push dword [edi + 4]
push dword [edi]
call fcn.01007d34
jmp 0x1021e13
Function at 0x102ab0d
Capabilities:
Get keyboard layout

Disassembly:
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100449b
leave
ret 0xc
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc8
mov eax, dword [0x10aa090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
and dword [ebp - 0xc8], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc4], eax
lea eax, [ebp - 0xc0]
push eax
mov ecx, edi
call fcn.0102ac86
test eax, eax
je 0x102a86a
push 0x74
pop esi
push esi
lea eax, [ebp - 0x78]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp - 0xc4]
lea eax, [ebp - 0x78]
push ebx
push dword [ebp + 8]
mov ecx, edi
push eax
push 0
push 0x43a
mov dword [ebp - 0x78], esi
call fcn.0102ac49
mov eax, dword [ebp - 0xbe]
or dword [ebp - 0x74], 0x2000000
or dword [ebp - 0x74], 0x80000000
or dword [ebp - 0x74], 0x20000000
shl eax, 0xa
or eax, dword [ebp - 0xc0]
movzx esi, ax
movzx eax, si
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0xb8]
push eax
push 0x20
lea eax, [ebp - 0x5e]
push eax
call fcn.01007d34
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
cmp dword [ebp - 0xc8], 0
movzx eax, ax
jne 0x102abfa
cmp ax, si
je 0x1053902
xor ecx, ecx
cmp cx, word [ebp - 0xbe]
jne 0x102abfa
xor eax, esi
test eax, 0x3ff
je 0x102ac1b
push dword [ebp - 0xc4]
lea eax, [ebp - 0x78]
push ebx
push dword [ebp + 8]
mov ecx, edi
push eax
push 0x10
push 0x444
call fcn.0102ac49
jmp 0x102ab3a
lea eax, [ebp - 0x78]
push eax
mov ecx, edi
call fcn.0102a7d9
push dword [ebp - 0xc4]
lea eax, [ebp - 0x78]
push ebx
push dword [ebp + 8]
mov ecx, edi
push eax
push 0
push 0x444
call fcn.0102ac49
jmp 0x102abfa
mov dword [ebp - 0xc8], 1
jmp 0x102ac1b
Function at 0x1046519
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], 4
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
cmp eax, esi
je 0x104658f
cmp word [eax], si
je 0x104658f
lea ecx, [ebp - 4]
push ecx
push 0x20019
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x104658f
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x1046598
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1046586
cmp dword [ebp - 8], 4
jne 0x1046586
cmp dword [ebp - 0xc], 1
jne 0x1046586
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 4