joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43fe3b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x20], 0
push esi
mov esi, dword [ecx + 0xb4]
mov dword [ebp - 4], esi
je 0x43feae
mov eax, dword [ebp + 0xc]
imul esi, dword [ebp + 0x10]
imul eax, dword [ebp + 0x18]
add eax, dword [ebp + 8]
push ebx
lea edx, [eax + edx*4]
push edi
mov eax, dword [ecx + 0xac]
imul eax, dword [ebp + 0x14]
add eax, dword [ecx + 0xa8]
mov edi, edx
add eax, esi
cmp dword [ebp + 0x1c], 0
jle 0x43fe9d
mov ebx, dword [ebp + 0x1c]
mov dword [ebp + 0x10], ebx
mov bl, byte [edi + 2]
xor byte [eax + 2], bl
mov bl, byte [edi + 1]
xor byte [eax + 1], bl
mov bl, byte [edi]
xor byte [eax], bl
add eax, dword [ebp - 4]
add edi, 4
dec dword [ebp + 0x10]
jne 0x43fe82
dec dword [ebp + 0x20]
inc dword [ebp + 0x14]
add edx, dword [ebp + 0xc]
cmp dword [ebp + 0x20], 0
jne 0x43fe62
pop edi
pop ebx
pop esi
leave
ret 0x1c

Function at 0x440c3a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x20], 0
mov edx, dword [ecx + 0xb4]
je 0x440cb6
push ebx
imul eax, eax, 3
push esi
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x18]
add edi, dword [ebp + 8]
mov esi, edx
imul esi, dword [ebp + 0x10]
add eax, edi
mov edi, eax
mov dword [ebp + 0x18], eax
mov eax, dword [ecx + 0xac]
imul eax, dword [ebp + 0x14]
add eax, dword [ecx + 0xa8]
add eax, esi
cmp dword [ebp + 0x1c], 0
jle 0x440c9e
mov ebx, dword [ebp + 0x1c]
mov dword [ebp + 0x10], ebx
mov bl, byte [edi + 2]
xor byte [eax + 2], bl
mov bl, byte [edi + 1]
xor byte [eax + 1], bl
mov bl, byte [edi]
xor byte [eax], bl
add edi, 3
add eax, edx
dec dword [ebp + 0x10]
jne 0x440c84
mov edi, dword [ebp + 0x18]
dec dword [ebp + 0x20]
add edi, dword [ebp + 0xc]
inc dword [ebp + 0x14]
cmp dword [ebp + 0x20], 0
mov dword [ebp + 0x18], edi
jne 0x440c66
pop edi
pop esi
pop ebx
pop ebp
ret 0x1c

Function at 0x440d12
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
imul eax, eax, 3
cmp dword [ebp + 0x1c], 0
mov dword [ebp - 4], eax
je 0x440da2
mov eax, dword [ebp + 0x10]
imul ecx, ecx, 3
imul eax, dword [ebp + 0x18]
add eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, edx
imul esi, esi, 3
add ecx, eax
push edi
mov edi, ecx
mov dword [ebp + 0xc], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xac]
imul ecx, dword [ebp + 0x14]
add ecx, dword [eax + 0xa8]
mov edx, dword [ebp - 4]
add ecx, esi
test edx, edx
jle 0x440d8a
mov eax, 0xff
sub eax, dword [ebp + 0x20]
mov dword [ebp + 0x18], edx
mov dword [ebp - 8], eax
movzx eax, byte [ecx]
movzx edx, byte [edi]
imul eax, dword [ebp - 8]
imul edx, dword [ebp + 0x20]
add eax, edx
cdq
mov ebx, 0xff
idiv ebx
inc edi
mov byte [ecx], al
inc ecx
dec dword [ebp + 0x18]
jne 0x440d69
mov edi, dword [ebp + 0xc]
dec dword [ebp + 0x1c]
add edi, dword [ebp + 0x10]
inc dword [ebp + 0x14]
cmp dword [ebp + 0x1c], 0
mov dword [ebp + 0xc], edi
jne 0x440d3f
pop edi
pop esi
pop ebx
leave
ret 0x1c
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x265a5ae9
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x67581fa6
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x6356e2
Capabilities:
Execute anti-debugging instructions

Disassembly:
jmp 0x635697
call 0x635121
jmp 0x63570e
pop eax
sub eax, 0x6e303e7f
jmp 0x6356f4
call 0x6356e2
push edx
dec edi
jo 0x63573f
outsb dx, byte [esi]
dec ebx
jns 0x635724
js 0x635722
add bl, ch
iretd
call 0x635706
inc ecx
inc esp
push esi
inc ecx
push eax
dec ecx
xor esi, dword [edx]
insb byte es:[edi], dx
insb byte es:[edi], dx
add bh, bh
nop
stc
sbb ebp, dword [esi]
outsb dx, byte [esi]
jmp 0x6356cf
pop ecx
jmp 0x63572e
invalid
jle 0x63571e
call fcn.0061e400
jmp 0x63511c
sub ecx, 0x1001ae05
mov dword [ecx + reloc.MSVCRT.dll_strncpy], eax
jmp 0x635773
ficomp word [ebp + 0x44ff61c3]
and al, 8
movzx ebx, byte [eax]
jmp 0x63578b
add ebx, 0x68a0a576
cmp ebx, 0x68a0a642
jmp fcn.00635af9

Function at 0x635706
Capabilities:
Execute anti-debugging instructions

Disassembly:
jmp 0x635697
call 0x635121
jmp 0x63570e
pop eax
sub eax, 0x6e303e7f
jmp 0x6356f4
call 0x6356e2
push edx
dec edi
jo 0x63573f
outsb dx, byte [esi]
dec ebx
jns 0x635724
js 0x635722
add bl, ch
iretd
call 0x635706
inc ecx
inc esp
push esi
inc ecx
push eax
dec ecx
xor esi, dword [edx]
insb byte es:[edi], dx
insb byte es:[edi], dx
add bh, bh
nop
stc
sbb ebp, dword [esi]
outsb dx, byte [esi]
jmp 0x6356cf
pop ecx
jmp 0x63572e
invalid
jle 0x63571e
call fcn.0061e400
jmp 0x63511c
sub ecx, 0x1001ae05
mov dword [ecx + reloc.MSVCRT.dll_strncpy], eax
jmp 0x635773
ficomp word [ebp + 0x44ff61c3]
and al, 8
movzx ebx, byte [eax]
jmp 0x63578b
add ebx, 0x68a0a576
cmp ebx, 0x68a0a642
jmp fcn.00635af9

Function at 0x635998
Capabilities:
Execute anti-debugging instructions

Disassembly:
call fcn.006351dc
jmp 0x635983
not cx
lea ecx, [ebx*4]
mov ecx, ebx
mov ecx, dword [esp]
call 0x635998
cmp dword [ecx + reloc.MSVCRT.dll_strncpy], ecx
sbb ebx, dword [edx + 0x2b9a6f08]
jg 0x6359a4
jmp [edi + 0xa]
outsd dx, dword [esi]
or bh, cl
mov ecx, 0xaf5ccd52
mov dh, 0x50
call fcn.0061e400
jmp 0x6351d7

Function at 0x635b48
Capabilities:
Execute anti-debugging instructions

Disassembly:
call 0x635298
pop eax
jmp 0x635b1b
add dword [esp], 6
jmp 0x635293
sub eax, 0x1001af7c
add eax, 0xe13f6d2c
pop ebx
add eax, 0x2ec24af1
mov dword [ebx], eax
jmp 0x635b05
jmp 0x635ae3

Function at 0x637431
Capabilities:
Check for trap flag exception

Disassembly:
push ebx
jmp 0x61deda
pushfd
or dword [esp], reloc.MSVCRT.dll_strncpy
popfd
cpuid
nop
jmp 0x61def1
pop ebx
ret
jmp 0x61dece

Function at 0x69ab5c
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xf
stc
neg bl
btc ebx, ebx
jmp 0x69ac59
lea esp, [esp + 3]
xchg dword [esp + 0xc], ebp
call fcn.0069ac06
neg dword [edx + reloc.MSVCRT.dll_strncpy]
in eax, dx
jp 0x69ac59
cmpsd dword [esi], dword es:[edi]
invalid
Function at 0x431001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
call 0x43100c
nop
pop eax
nop
nop
nop
nop
nop
add eax, reloc.kernel32.dll_GetDateFormatA
sub eax, 0x403e10
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43101e
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219

Function at 0x411ab0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.sect_1
lea edi, [esi - 0xb000]
push edi
or ebp, 0xffffffff
jmp 0x411ad2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x411ad9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x411ac8
mov eax, 1
add ebx, ebx
jne 0x411aeb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x411ae0
jne 0x411afc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x411ae0
xor ecx, ecx
sub eax, 3
jb 0x411b10
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x411b82
mov ebp, eax
add ebx, ebx
jne 0x411b1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x411b28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x411b4c
inc ecx
add ebx, ebx
jne 0x411b38
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x411b2d
jne 0x411b49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x411b2d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x411b6c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x411b5d
jmp 0x411ace
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x411b6c
add edi, ecx
jmp 0x411ace
pop esi
mov edi, esi
mov ecx, 0x203
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x411b8a
cmp byte [edi], 0xa
jne 0x411b8a
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 eax, ebx
loop 0x411b8f
lea edi, [esi + 0xf000]
mov eax, dword [edi]
or eax, eax
je 0x411bfe
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x113a4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x11408]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x411bbc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1140c]
or eax, eax
je 0x411bf8
mov dword [ebx], eax
add ebx, 4
jmp 0x411bd9
call dword [esi + 0x11410]
popal
jmp 0x403ae7
Function at 0x5138c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x10d000]
push edi
or ebp, 0xffffffff
jmp 0x5138e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5138e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5138d8
mov eax, 1
add ebx, ebx
jne 0x5138fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5138f0
jne 0x51390c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5138f0
xor ecx, ecx
sub eax, 3
jb 0x513920
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x513992
mov ebp, eax
add ebx, ebx
jne 0x51392b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x513938
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x51395c
inc ecx
add ebx, ebx
jne 0x513948
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x51393d
jne 0x513959
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x51393d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x51397c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x51396d
jmp 0x5138de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x51397c
add edi, ecx
jmp 0x5138de
pop esi
mov edi, esi
mov ecx, 0x298
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x51399a
cmp byte [edi], 1
jne 0x51399a
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 0x51399f
lea edi, [esi + 0x111000]
mov eax, dword [edi]
or eax, eax
je 0x513a17
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1191dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x119290]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5139cc
mov ecx, edi
jns 0x5139fb
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 + 0x119294]
or eax, eax
je 0x513a11
mov dword [ebx], eax
add ebx, 4
jmp 0x5139e9
call dword [esi + 0x1192a4]
mov ebp, dword [esi + 0x119298]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x513a4b
sub esp, 0xffffff80
jmp 0x4037bf
Function at 0x1001a36
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
cmp dword [ebp + 8], edi
je 0x1001aac
mov ebx, dword [ebp + 0xc]
cmp ebx, edi
je 0x1001aac
cmp ebx, 0xffffffff
je 0x1001aac
push 0x3c
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, edi
pop ecx
je 0x1001a6d
push dword [ebp + 8]
mov ecx, eax
call fcn.01001689
mov esi, eax
jmp 0x1001a6f
xor esi, esi
push edi
push edi
push 1
push edi
mov dword [esi + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, edi
mov dword [esi + 8], eax
je 0x1001aa2
lea eax, [esi + 0x14]
push eax
push edi
push esi
push 0x10018c2
push edi
push edi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
cmp eax, 0xffffffff
mov dword [esi + 0x10], eax
jne 0x1001abc
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
xor esi, esi
mov eax, dword [8]
cmp eax, edi
je 0x1001abc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x1001be4
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x10012a8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001c70
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x1001288
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x1001c70
cmp dword [ebp - 0xc], 4
jne 0x1001c70
cmp dword [ebp - 8], 4
jne 0x1001c70
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
imul eax, eax, 0xea60
test eax, eax
mov dword [ecx], eax
jne 0x1001c63
mov dword [ecx], 0x1b7740
mov eax, 0x5265c00
cmp dword [ecx], eax
jbe 0x1001c79
mov dword [ecx], eax
jmp 0x1001c79
mov eax, dword [ebp + 8]
mov dword [eax], 0x1b7740
xor eax, eax
inc eax
leave
ret 4

Function at 0x1001c85
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x10012a8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001cf7
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x1001310
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x1001cf7
cmp dword [ebp - 0xc], 4
jne 0x1001cf7
cmp dword [ebp - 8], 4
jne 0x1001cf7
xor eax, eax
cmp dword [ebp - 0x10], 1
setne al
leave
ret
xor eax, eax
inc eax
leave
ret
Function at 0x1001f17
Capabilities:
Impersonate user

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
push 0x426f
mov esi, ecx
call fcn.01001e90
push dword [ebp + 0x14]
push 0
push 2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_LogonUserW]
mov edi, eax
test edi, edi
je 0x1001f4f
mov ecx, esi
call fcn.01001ba0
jmp 0x1001f6f
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x426d
mov ecx, esi
call fcn.01001e90
push 1
mov ecx, esi
call fcn.01001da1
mov eax, edi
pop edi
pop esi
pop ebp
ret 0x10

Function at 0x1002293
Capabilities:
Create thread

Disassembly:
mov edi, edi
push esi
mov esi, ecx
or dword [esi + 0x24], 0xffffffff
push edi
xor edi, edi
call fcn.01001c85
test eax, eax
je 0x10022dd
lea eax, [esi + 0x30]
push eax
mov ecx, esi
call fcn.01001be4
cmp eax, 1
jne 0x10022e0
mov ecx, esi
call fcn.01001ba0
lea eax, [esi + 0x28]
push eax
push edi
push esi
push 0x1001d01
push edi
push edi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
cmp eax, 0xffffffff
mov dword [esi + 0x24], eax
je 0x10022e0
xor edi, edi
inc edi
mov eax, edi
pop edi
pop esi
ret
Function at 0x10027e6
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2b4
mov eax, dword [0x1007008]
push ebx
push esi
push edi
xor edi, edi
push edi
mov dword [ebp - 4], eax
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
push edi
push 1
push edi
call esi
cmp eax, edi
mov dword [ebx + 0x38], eax
jne 0x1002822
xor eax, eax
jmp 0x1002994
push edi
push edi
push 1
push edi
call esi
cmp eax, edi
mov dword [ebx + 0x30], eax
je 0x100281b
push edi
push edi
push 1
push edi
call esi
cmp eax, edi
mov dword [ebx + 0x2c], eax
je 0x100281b
push edi
push edi
push 1
push edi
call esi
cmp eax, edi
mov dword [ebx + 0x34], eax
je 0x100281b
push edi
push edi
push 1
push edi
call esi
mov edx, eax
xor eax, eax
cmp edx, edi
mov dword [ebx + 0x3c], edx
je 0x1002994
mov esi, 0xab
mov ecx, esi
lea edi, [ebp - 0x2b0]
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x30]
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0x34]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0x38]
sub esp, 0x2ac
mov ecx, esi
mov edi, esp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
lea esi, [ebp - 0x2b0]
mov dword [ebp - 0x28], 0x1e
rep movsd dword es:[edi], dword [esi]
call fcn.0100235f
xor esi, esi
cmp eax, esi
mov dword [ebx + 0xc], eax
je 0x100281b
lea eax, [ebp - 0x2b4]
push eax
mov ecx, ebx
call fcn.01002590
test eax, eax
je 0x100281b
mov ecx, ebx
call fcn.01002641
push 0x58
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
je 0x10028f4
xor ecx, ecx
mov cx, word [ebx + 0x12]
push ecx
xor ecx, ecx
mov cx, word [ebx + 0x10]
push ecx
push dword [ebx + 0xc]
mov ecx, eax
call fcn.0100300e
jmp 0x10028f6
xor eax, eax
push 0x18
mov dword [ebx + 8], eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
je 0x100290e
mov ecx, eax
call fcn.01003fa3
jmp 0x1002910
xor eax, eax
push dword [ebp - 0x2b4]
mov ecx, eax
push ebx
mov dword [ebx + 4], eax
call fcn.0100448f
test eax, eax
je 0x100281b
push dword [ebp - 0x2b4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx + 8]
mov eax, dword [ecx]
call dword [eax]
test eax, eax
je 0x100281b
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x30]
mov dword [ebx + eax*4 + 0x1c], ecx
inc dword [ebx + 0x18]
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x38]
mov dword [ebx + eax*4 + 0x1c], ecx
inc dword [ebx + 0x18]
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x3c]
mov dword [ebx + eax*4 + 0x1c], ecx
inc dword [ebx + 0x18]
lea eax, [ebx + 0x44c]
push eax
push esi
push ebx
push 0x100277d
push esi
push esi
call dword [sym.imp.msvcrt.dll__beginthreadex]
xor ecx, ecx
add esp, 0x18
cmp eax, 0xffffffff
setne cl
mov dword [ebx + 0x448], eax
mov eax, ecx
mov ecx, dword [ebp - 4]
call fcn.01004d84
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1003736
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
movzx ax, byte [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor edi, edi
push eax
call dword [sym.imp.USER32.dll_VkKeyScanW]
mov ebx, eax
movsx esi, bx
cmp esi, 0xffff
je 0x100379d
movzx eax, bl
push edi
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov ecx, esi
shr ecx, 8
xor edx, edx
test cl, 1
je 0x1003777
push 0x10
pop edx
test cl, 2
je 0x100377f
or edx, 8
test cl, 4
je 0x1003787
or edx, 2
mov ecx, dword [ebp - 4]
push edx
push dword [ebp + 8]
push eax
movzx ax, bl
push eax
push 1
call fcn.010034ba
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x100406e
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x10040d3
or dword [ebp - 4], 0xffffffff
push ebx
push edi
lea ecx, [ebp - 4]
push ecx
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push 0
push dword [esi + 4]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
test ebx, ebx
je 0x10040d1
cmp dword [esi + 0xc], 0
je 0x10040c6
push dword [esi + 8]
push dword [ebp - 4]
call fcn.01004816
and dword [esi + 0xc], 0
cmp dword [ebp - 4], 0xffffffff
je 0x10040d1
push dword [ebp - 4]
call edi
pop edi
pop ebx
mov eax, dword [esi + 0x14]
test eax, eax
je 0x10040e1
push eax
call dword [sym.imp.USER32.dll_CloseDesktop]
mov esi, dword [esi + 0x10]
test esi, esi
je 0x10040ef
push esi
call dword [sym.imp.USER32.dll_CloseWindowStation]
pop esi
leave
ret

Function at 0x10040f7
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x10012a8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1004169
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x10013dc
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x1004169
cmp dword [ebp - 0xc], 4
jne 0x1004169
cmp dword [ebp - 8], 4
jne 0x1004169
xor eax, eax
cmp dword [ebp - 0x10], 1
setne al
leave
ret
xor eax, eax
inc eax
leave
ret
Function at 0x1004173
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push 0x20a
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov dword [esp], 0x105
push eax
mov dword [ebp - 4], eax
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edi, eax
test edi, edi
je 0x10041d4
push esi
mov esi, 0x1001414
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [edi + eax + 2]
lea eax, [edi + edi]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
test ebx, ebx
pop ecx
je 0x10041d3
push esi
push dword [ebp - 4]
push 0x1001408
push edi
push ebx
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x14
pop esi
push dword [ebp - 4]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
mov eax, ebx
pop ebx
leave
ret
Function at 0x10044ff
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x1001470
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1004570
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x1001444
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x1004570
cmp dword [ebp - 0xc], 4
jne 0x1004570
cmp dword [ebp - 8], 4
jne 0x1004570
cmp dword [ebp - 0x10], 1
jne 0x1004570
xor al, al
leave
ret
mov al, 1
leave
ret

Function at 0x10046ad
Capabilities:
Get session user name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
and dword [ebx], 0
push esi
push edi
mov dword [ebp + 8], 0x100
mov eax, dword [ebp + 8]
add eax, eax
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov esi, eax
lea eax, [ebp + 8]
push eax
push esi
push 2
call sub.Secur32.dll_GetUserNameExW
movzx edi, al
test edi, edi
jne 0x10046f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xc0000023
je 0x10046c2
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x10046fb
mov dword [ebx], esi
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x1004d84
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1007008]
jne 0x1004d95
test ecx, 0xffff0000
jne 0x1004d95
ret
jmp fcn.01004d9f