joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100010bc
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebx
push ecx
push 1
pop eax
cpuid
test ecx, 0x40000000
setne al
test al, al
je 0x100010d9
rdrand eax
rdrand edx
pop ecx
pop ebx
ret
push 7
pop eax
xor ecx, ecx
cpuid
test ebx, 0x40000
setne al
test al, al
je 0x100010f6
rdseed eax
rdseed edx
pop ecx
pop ebx
ret
rdtsc
mov ecx, eax
ror ecx, 0xd
rdtsc
mov edx, eax
rol edx, 0xd
mov eax, ecx
pop ecx
pop ebx
ret

Function at 0x100011b4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push edx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
xor dword [ecx], 0x1903dff6
not dword [ecx]
add ecx, 4
dec edx
jne 0x100011bf
pop edx
pop ecx
pop ebp
ret 8

Function at 0x10001310
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push ecx
push edx
push esi
push edi
lea edi, [ebp - 0x104]
xor al, al
stosb byte es:[edi], al
mov ecx, 0x2a
mov al, 0xff
rep stosb byte es:[edi], al
mov al, 0x3e
stosb byte es:[edi], al
mov ecx, 3
mov al, 0xff
rep stosb byte es:[edi], al
mov al, 0x3f
stosb byte es:[edi], al
mov ecx, 0xa
mov al, 0x34
stosb byte es:[edi], al
inc al
loop 0x10001346
mov ecx, 3
mov al, 0xff
rep stosb byte es:[edi], al
xor al, al
stosb byte es:[edi], al
mov ecx, 3
mov al, 0xff
rep stosb byte es:[edi], al
mov ecx, 0x1a
xor al, al
stosb byte es:[edi], al
inc al
loop 0x10001367
mov dl, al
mov ecx, 6
mov al, 0xff
rep stosb byte es:[edi], al
mov ecx, 0x1a
mov al, dl
stosb byte es:[edi], al
inc al
loop 0x1000137e
mov ecx, 0x85
mov al, 0xff
rep stosb byte es:[edi], al
mov edi, dword [ebp + 8]
xor eax, eax
mov esi, edi
mov al, byte [edi]
add edi, 4
test al, al
jne 0x10001393
lea ebx, [edi - 4]
mov eax, 0x3d
sub ebx, esi
je 0x10001425
cmp al, byte [esi + ebx - 1]
sete dl
jne 0x100013b5
mov byte [esi + ebx - 1], ah
cmp al, byte [esi + ebx - 2]
sete al
jne 0x100013c2
mov byte [esi + ebx - 2], ah
add al, dl
mov edi, dword [ebp + 0xc]
shr ebx, 2
lea edx, [ebx + ebx*2]
sub edx, eax
push edx
mov dword [ebp - 4], ebx
mov ecx, dword [esi]
movzx edx, cl
movzx ebx, ch
push edi
lea edi, [ebp - 0x104]
mov al, byte [edx + edi]
mov ah, byte [ebx + edi]
shr ecx, 0x10
add esi, 4
movzx edx, cl
movzx ecx, ch
mov bl, byte [edx + edi]
mov bh, byte [ecx + edi]
pop edi
mov dl, ah
mov dh, bl
shl al, 2
shr bl, 2
shl dh, 6
shl ah, 4
shr dl, 4
or bh, dh
or al, dl
or ah, bl
mov byte [edi], al
mov byte [edi + 2], bh
mov byte [edi + 1], ah
dec dword [ebp - 4]
lea edi, [edi + 3]
jne 0x100013d3
pop eax
pop edi
pop esi
pop edx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10001430
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push ecx
push edx
push esi
push edi
lea edi, [ebp - 0x44]
mov eax, 0x44434241
stosd dword es:[edi], eax
mov eax, 0x48474645
stosd dword es:[edi], eax
mov eax, 0x4c4b4a49
stosd dword es:[edi], eax
mov eax, 0x504f4e4d
stosd dword es:[edi], eax
mov eax, 0x54535251
stosd dword es:[edi], eax
mov eax, 0x58575655
stosd dword es:[edi], eax
mov eax, 0x62615a59
stosd dword es:[edi], eax
mov eax, 0x66656463
stosd dword es:[edi], eax
mov eax, 0x6a696867
stosd dword es:[edi], eax
mov eax, 0x6e6d6c6b
stosd dword es:[edi], eax
mov eax, 0x7271706f
stosd dword es:[edi], eax
mov eax, 0x76757473
stosd dword es:[edi], eax
mov eax, 0x7a797877
stosd dword es:[edi], eax
mov eax, 0x33323130
stosd dword es:[edi], eax
mov eax, 0x37363534
stosd dword es:[edi], eax
mov eax, 0x2f2b3938
stosd dword es:[edi], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [ebp - 4], 0
jne 0x100014b2
jmp 0x1000150d
mov al, byte [esi]
mov dl, byte [esi + 1]
mov bl, byte [esi + 2]
mov ah, al
mov dh, dl
mov bh, bl
and ah, 3
and dh, 0xf
and bh, 0x3f
shr al, 2
shr dl, 4
shr bl, 6
shl ah, 4
shl dh, 2
or ah, dl
or bl, dh
movzx edx, al
movzx ecx, ah
push esi
lea esi, [ebp - 0x44]
mov al, byte [edx + esi]
mov ah, byte [ecx + esi]
movzx edx, bl
movzx ecx, bh
mov bl, byte [edx + esi]
mov bh, byte [ecx + esi]
pop esi
and eax, 0xffff
shl ebx, 0x10
add esi, 3
or eax, ebx
stosd dword es:[edi], eax
sub dword [ebp - 4], 3
jns 0x100014aa
cmp dword [ebp - 4], 0
je 0x1000151f
add edi, dword [ebp - 4]
mov byte [edi], 0x3d
inc edi
inc dword [ebp - 4]
jne 0x10001516
mov eax, edi
mov word [eax], 0
sub eax, dword [ebp + 0x10]
pop edi
pop esi
pop edx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10008c50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
push 1
push 0
push 0
call dword [0x10019070]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10008d2f
lea eax, [ebp - 0x54]
mov dword [eax], 0x1971dfa2
mov dword [eax + 4], 0x1970df83
mov dword [eax + 8], 0x1966df82
mov dword [eax + 0xc], 0x194adf92
mov dword [eax + 0x10], 0x1970df98
mov dword [eax + 0x14], 0x1962df82
mov dword [eax + 0x18], 0x196fdf9a
mov dword [eax + 0x1c], 0x1971df93
mov dword [eax + 0x20], 0x1903dff6
mov ecx, 9
xor dword [eax], 0x1903dff6
add eax, 4
dec ecx
jne 0x10008cca
push 0x14
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 4]
call dword [0x10019078]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10008d2f
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0xc]
push eax
push 0x24
lea eax, [ebp - 0x30]
push eax
push 0
push dword [ebp - 8]
call dword [0x10019088]
test eax, eax
jne 0x10008d10
jmp 0x10008d2f
cmp dword [ebp - 0x2c], 1
jne 0x10008d2b
push 0
push 0
push dword [ebp - 8]
call dword [0x10019080]
test eax, eax
jne 0x10008d29
jmp 0x10008d2f
jmp 0x10008cee
jmp 0x10008d2f
cmp dword [ebp - 8], 0
je 0x10008d3e
push dword [ebp - 8]
call dword [0x10019094]
cmp dword [ebp - 4], 0
je 0x10008d4d
push dword [ebp - 4]
call dword [0x10019094]
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret

Function at 0x100106d8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 8]
lea esi, str.c0aZ1h_
push dword [esi - 4]
call fcn.10006828
mov edi, eax
test edi, edi
je 0x10010789
push esi
push edi
mov ecx, dword [esi - 4]
lodsb al, byte [esi]
xor al, 0x30
stosb byte es:[edi], al
dec ecx
test ecx, ecx
jne 0x10010708
pop edi
pop esi
mov esi, dword [esi - 4]
push dword [ebp + 0xc]
pop dword [ebp - 8]
lea eax, [esi*2]
push eax
push 8
push ebx
call dword [ebp - 8]
mov esi, eax
test esi, esi
je 0x10010783
push esi
push edi
call fcn.10010af0
add esp, 8
lea esi, [esi + 0x83]
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.10010798
mov dword [0x10018c3c], eax
lea esi, [esi + 0x41]
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.10010798
mov dword [0x10018c34], eax
lea esi, [esi + 0xd7]
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.10010798
mov dword [0x10018c38], eax
mov dword [ebp - 4], 1
push edi
call fcn.10006844
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x100108a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov eax, 0xfffefdfc
mov ecx, 0x40
mov ebx, dword [ebp + 0x10]
mov dword [ebx + ecx*4 - 4], eax
sub eax, 0x4040404
dec ecx
jne 0x100108b3
mov edi, dword [ebp + 0xc]
mov esi, 0x40
xor ebx, ebx
push ebp
mov ebp, dword [ebp + 0x10]
mov eax, ecx
xor edx, edx
div esi
mov al, cl
mov dl, byte [edi + edx]
add dl, byte [ebp + eax]
add dl, bl
mov bl, byte [ebp + edx]
mov dl, byte [ebp + ebx]
xchg byte [ebp + eax], dl
mov byte [ebp + ebx], dl
inc ecx
cmp ecx, 0x300
jne 0x100108cd
pop ebp
xor ecx, ecx
mov edi, dword [ebp + 8]
mov esi, 0x20
push ebp
mov ebp, dword [ebp + 0x10]
mov eax, ecx
xor edx, edx
div esi
mov al, cl
mov dl, byte [edi + edx]
add dl, byte [ebp + eax]
add dl, bl
mov bl, byte [ebp + edx]
mov dl, byte [ebp + ebx]
xchg byte [ebp + eax], dl
mov byte [ebp + ebx], dl
inc ecx
cmp ecx, 0x300
jne 0x10010906
pop ebp
xor ecx, ecx
mov edi, dword [ebp + 0xc]
mov esi, 0x40
push ebp
mov ebp, dword [ebp + 0x10]
mov eax, ecx
xor edx, edx
div esi
mov al, cl
mov dl, byte [edi + edx]
add dl, byte [ebp + eax]
add dl, bl
mov bl, byte [ebp + edx]
mov dl, byte [ebp + ebx]
xchg byte [ebp + eax], dl
mov byte [ebp + ebx], dl
inc ecx
cmp ecx, 0x300
jne 0x1001093f
pop ebp
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x10010974
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor eax, eax
mov ebx, dword [ebp + 0x14]
xor ecx, ecx
xor edx, edx
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
test esi, esi
je 0x100109c0
push ebp
mov ebp, dword [ebp + 0x10]
mov dl, byte [ebp + ecx]
add dl, bl
mov bl, byte [ebp + edx]
mov dl, byte [ebp + ebx]
mov dl, byte [ebp + edx]
inc dl
mov al, byte [ebp + edx]
xor byte [edi], al
mov dl, byte [ebp + ebx]
xchg byte [ebp + ecx], dl
mov byte [ebp + ebx], dl
inc cl
inc edi
dec esi
test esi, esi
jne 0x10010991
pop ebp
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x100109c8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ebx, 6
lodsd eax, dword [esi]
bswap eax
ror eax, 0xd
mov edx, eax
not edx
lodsd eax, dword [esi]
rol eax, 0xb
bswap eax
xor eax, edx
stosd dword es:[edi], eax
lodsd eax, dword [esi]
rol eax, 9
bswap eax
mov edx, eax
not edx
stosd dword es:[edi], eax
lodsd eax, dword [esi]
rol eax, 7
bswap eax
xor eax, edx
mov edx, eax
not edx
stosd dword es:[edi], eax
rol eax, 5
xor eax, edx
stosd dword es:[edi], eax
lea esi, [edi - 0x10]
dec ebx
test ebx, ebx
jne 0x100109d9
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x10010af0
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x10010b14
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10010afc
add dl, dl
jne 0x10010b1f
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10010b70
xor eax, eax
add dl, dl
jne 0x10010b2c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10010c0d
add dl, dl
jne 0x10010b3b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10010b46
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10010b51
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10010b5c
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10010b66
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10010b0b
mov eax, 1
add dl, dl
jne 0x10010b7e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10010b89
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10010b75
sub eax, ebx
mov ebx, 1
jne 0x10010bbc
mov ecx, 1
add dl, dl
jne 0x10010ba2
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10010bad
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10010b99
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10010b0b
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x10010bd3
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10010bde
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10010bca
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10010b0b
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x10010c2e
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 0x10010b0b
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret
Function at 0x10003950
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax + 4]
mov esi, dword [esi + 4]
je 0x10003988
test esi, esi
je 0x100039cc
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x100039cc
push 8
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [esi + 0xe4], 1
jmp 0x100039ab
test esi, esi
je 0x100039cc
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x100039cc
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [esi + 0xe4], 0
cmp dword [0x100b0ff0], 0
je 0x100039cc
push 0x1c1f6f8
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
mov dword [0x100b0ff0], 0
xor eax, eax
pop esi
pop ebp
ret 8
Function at 0x10005a30
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
mov esi, eax
cmp dword [eax + 0x14], 0xf
jbe 0x10005a42
mov esi, dword [eax]
mov edi, dword [eax + 0x10]
xor ecx, ecx
mov edx, 0x811c9dc5
test edi, edi
je 0x10005a61
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x10005a50
pop edi
mov eax, edx
pop esi
pop ebp
ret 4
Function at 0x10005af0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100876e5
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x100ab040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edx, dword [ebp + 0xc]
mov edi, edx
cmp dword [edx + 0x14], 0xf
jbe 0x10005b27
mov edi, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
cmp dword [edx + 0x10], ecx
jbe 0x10005b45
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, dword [edx + 0x10]
jb 0x10005b33
push esi
push edx
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.10005d50
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x10005b76
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [ebx + 8], 0x7ffffff
je 0x10005ca8
lea eax, [ebx + 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
push 0x20
mov dword [ebp - 0x18], 0
call fcn.1005a6f0
add esp, 4
mov edi, eax
mov dword [ebp - 0x18], edi
push dword [ebp + 0xc]
lea ecx, [edi + 8]
call fcn.10004d70
mov dword [ebp - 4], 1
mov eax, dword [ebx + 8]
inc eax
movss xmm3, dword [ebx]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10099c90]
mov eax, dword [ebx + 0x1c]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
addsd xmm1, qword [eax*8 + 0x10099c90]
movaps xmm2, xmm0
cvtpd2ps xmm1, xmm1
divss xmm2, xmm1
comiss xmm2, xmm3
jbe 0x10005c4a
divss xmm0, xmm3
call fcn.10005eb0
call fcn.100868b0
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [ebx + 0x1c]
cmp eax, ecx
jae 0x10005c2e
cmp eax, 0x200
jae 0x10005c2c
shl eax, 3
cmp eax, ecx
jae 0x10005c2e
mov eax, ecx
push eax
mov ecx, ebx
call fcn.10005260
push esi
lea eax, [edi + 8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.10005d50
mov edx, dword [eax]
jmp 0x10005c4d
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 4]
inc dword [ebx + 8]
mov dword [edi + 4], eax
mov dword [edi], edx
mov dword [eax], edi
mov dword [edx + 4], edi
mov ecx, dword [ebx + 0xc]
mov dword [ebp + 0xc], eax
mov eax, dword [ebx + 0x18]
and eax, esi
mov esi, dword [ecx + eax*8]
cmp esi, dword [ebx + 4]
jne 0x10005c75
mov dword [ecx + eax*8], edi
jmp 0x10005c87
cmp esi, edx
jne 0x10005c7e
mov dword [ecx + eax*8], edi
jmp 0x10005c8b
mov edx, dword [ebp + 0xc]
cmp dword [ecx + eax*8 + 4], edx
jne 0x10005c8b
mov dword [ecx + eax*8 + 4], edi
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov byte [eax + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.unordered_map_set_too_long
call fcn.10044409
int3
Function at 0x10005e70
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
xor ecx, ecx
test esi, esi
je 0x10005e9b
mov edx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x10005e84
pop edi
mov eax, edx
pop esi
pop ebp
ret
mov eax, dword [ebp + 8]
pop esi
pop ebp
ret

Function at 0x10008a70
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
call fcn.10006630
test eax, eax
je 0x10008ba1
mov ecx, esi
call fcn.1000b490
lea edi, [esi + 0x3c]
push edi
call dword [sym.imp.USER32.dll_GetKeyboardState]
movsx ecx, byte [edi + 0x10]
sar ecx, 0x1f
and ecx, 0x10000
mov edx, ecx
or edx, 0x20000
test byte [edi + 0x14], 1
cmove edx, ecx
mov eax, edx
or eax, 0x40000
cmp byte [edi + 0x11], 0
cmovge eax, edx
mov ecx, eax
or ecx, 0x80000
cmp byte [edi + 0x12], 0
cmovge ecx, eax
mov eax, ecx
or eax, 0x40000000
test ebx, ebx
cmovns eax, ecx
mov ecx, dword [ebp + 8]
mov edx, eax
mov dword [ebp + 0xc], edx
cmp ecx, 0x14
jne 0x10008aff
mov dword [ebp + 0xc], edx
test ebx, ebx
js 0x10008aff
xor edx, 0x20000
mov dword [ebp + 0xc], edx
push ebx
call fcn.100085d0
add esp, 4
test eax, eax
je 0x10008b11
movzx eax, ax
jmp 0x10008b54
push 0
push 0
push 8
push 0x100b11a8
push 0x100b10a8
mov esi, edi
mov ecx, 0x40
push ebx
push dword [ebp + 8]
mov edi, 0x100b10a8
rep movsd dword es:[edi], dword [esi]
mov word [0x100b10b9], 0
call dword [sym.imp.USER32.dll_ToUnicodeEx]
cmp eax, 1
jne 0x10008b98
movzx eax, word [0x100b11a8]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp - 4]
mov ecx, dword [esi + 0x180]
or edx, eax
cmp dword [ecx + 0x38], 0xffffffff
je 0x10008b88
cmp dword [ecx], 0
je 0x10008b88
push dword [ecx]
push edx
push 0x8004
call fcn.1000c1b0
neg eax
sbb ecx, ecx
mov eax, dword [ebp + 0x10]
neg ecx
mov dword [eax], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov dword [eax], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100099d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10087b60
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x100ab040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
lea eax, [ebp - 0x26c]
push eax
push dword [0x100b0fec]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x288], eax
mov dword [ebp - 0x270], 0
lea eax, [ebp - 0x270]
mov dword [ebp - 4], 0
push eax
push 0x100980f4
push 0x17
push 0
push 0x1008e5e0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x10009b9c
mov esi, dword [ebp - 0x270]
lea eax, [ebp - 0x278]
push eax
push 0x20019
xor edi, edi
mov dword [ebp - 0x284], esi
push edi
push str.SYSTEMCurrentControlSetControlKeyboard_Layouts
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x10009b40
mov esi, 0xe0200c04
nop
cmp esi, 0xe0ff0c04
ja 0x10009b3a
push esi
push str._08X
lea eax, [ebp - 0x24]
push 9
push eax
call fcn.10009950
add esp, 0x10
lea eax, [ebp - 0x274]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x278]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10009b24
lea eax, [ebp - 0x27c]
mov dword [ebp - 0x27c], 0x40
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x280]
push eax
push 0
push str.Ime_File
push dword [ebp - 0x274]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10009b24
cmp dword [ebp - 0x280], 1
jne 0x10009b24
lea eax, [ebp - 0x64]
push str.TypeDuck.ime
push eax
call fcn.1006e823
add esp, 8
test eax, eax
cmove edi, esi
push dword [ebp - 0x274]
call ebx
add esi, 0x10000
test edi, edi
je 0x10009a90
mov esi, dword [ebp - 0x284]
push dword [ebp - 0x278]
call ebx
push 0
mov eax, dword [esi]
lea ecx, [ebp - 0x26c]
push 1
push 0
push edi
push 0
push dword [ebp - 0x288]
push ecx
push 8
push 0x100980c8
push 0x10097d44
push 0xc04
push 0x10097d54
push esi
call dword [eax + 0x20]
test eax, eax
js 0x10009b9c
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x270]
test eax, eax
je 0x10009b95
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 1
jmp 0x10009bb5
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x270]
test eax, eax
je 0x10009bb3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005a59c
mov esp, ebp
pop ebp
ret
Function at 0x10009c40
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
mov eax, dword [0x100ab040]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x10], 0x100
lea ecx, [esp + 0xc]
mov eax, edx
push ecx
push eax
push ebx
mov dword [esp + 0x20], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x10009c95
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.1005a59c
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [esp + 0x18]
push eax
xor esi, esi
lea eax, [esp + 0x14]
push esi
push esi
push esi
push eax
lea eax, [esp + 0x34]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
jne 0x10009d00
nop word [eax + eax]
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x20]
mov byte [esp + 0x11f], 0
call fcn.10009c40
mov esi, eax
test esi, esi
jne 0x10009d00
lea eax, [esp + 0x18]
mov dword [esp + 0x10], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
je 0x10009cc0
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10009d1b
push dword [esp + 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov ecx, dword [esp + 0x124]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1005a59c
mov esp, ebp
pop ebp
ret