joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422037
Capabilities:
Packed with generic packer

Disassembly:
pushal
call 0x42203d
pop eax
sub eax, 0x3d
push eax
lea edi, [eax - 0x21000]
push edi
lea esi, [eax + 0x1e8]
or ebp, 0xffffffff
xor ebx, ebx
nop
nop
nop
nop
add ebx, ebx
jne 0x422063
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x422070
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
jmp 0x422058
mov eax, 1
add ebx, ebx
jne 0x422080
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
ja 0x422075
jne 0x422091
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x422075
xor ecx, ecx
sub eax, 3
jb 0x4220ff
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42211a
mov ebp, eax
add ebx, ebx
jne 0x4220b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4220bd
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4220e1
inc ecx
add ebx, ebx
jne 0x4220cd
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
ja 0x4220c2
jne 0x4220de
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4220c2
add ecx, 2
cmp eax, 0xfffff300
adc ecx, 1
lea edx, [edi + eax]
cmp eax, 0xfffffffc
jle 0x422104
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4220f1
jmp 0x422058
mov eax, ebp
jmp 0x4220a5
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x422104
add edi, ecx
jmp 0x422058
pop esi
pop ebp
sub edi, dword [edi - 4]
push edi
lea edi, [esi]
mov ecx, 0x593
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42212b
cmp byte [edi], 1
jne 0x42212b
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 0x422130
pop edi
mov eax, dword [edi]
or eax, eax
je 0x422195
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1f000]
add ebx, esi
push eax
add edi, 8
call dword [ebp]
xchg edx, eax
mov al, byte [edi]
inc edi
or al, al
je 0x422158
push edx
mov ecx, edi
jns 0x422185
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push edx
call dword [ebp + 4]
pop edx
mov dword [ebx], eax
add ebx, 4
jmp 0x422172
lea ebx, [esi - 4]
add edi, 4
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4221c6
cmp al, 0xef
ja 0x4221b9
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x42219b
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4221a8
popal
jmp 0x40619f
Function at 0x402d53
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x403488
call fcn.0040323c
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x4043a0
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x402d98
cmp eax, esi
jne 0x402d8b
xor esi, esi
inc esi
mov edi, esi
jmp 0x402d9b
push 0x3e8
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x402d6f
xor esi, esi
inc esi
cmp dword [0x4043a4], esi
jne 0x402dad
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x402de7
cmp dword [0x4043a4], ebx
jne 0x402de1
mov dword [0x4043a4], esi
push 0x4011a8
push 0x40119c
call fcn.00402ec2
pop ecx
pop ecx
test eax, eax
je 0x402de7
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x402ebc
mov dword [0x404034], esi
cmp dword [0x4043a4], esi
jne 0x402e0a
push 0x401198
push 0x401190
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x4043a4], 2
test edi, edi
jne 0x402e17
xor eax, eax
mov ecx, 0x4043a0
xchg dword [ecx], eax
cmp dword [0x4043a8], 0
je 0x402e43
push 0x4043a8
call fcn.00403090
pop ecx
test eax, eax
je 0x402e43
push ebx
push 2
push ebx
mov esi, dword [0x4043a8]
mov ecx, esi
call dword [0x40515c]
call esi
push dword [0x404040]
push dword [0x40403c]
push dword [0x404038]
call fcn.00401a43
add esp, 0xc
mov dword [0x404030], eax
cmp dword [0x404048], 0
jne 0x402ea1
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x404034], 0
jne 0x402eb5
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x404030]
mov dword [ebp - 4], 0xfffffffe
call fcn.00403284
ret
call fcn.00575000
jmp 0x402d53

Function at 0x402f94
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x4034a8
call fcn.0040340c
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x402ff4
cmp eax, 0xffffffff
je 0x402ff4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x402fed
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x402fed
cmp edx, 0x10000000
jae 0x402fed
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x402fea
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.00403451
ret 4

Function at 0x403040
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40307e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x403076
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x403080
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x403066
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4348f0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x476135
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4946b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0xf
push 0x434aa0
lea eax, [ebp - 0x10]
push eax
call fcn.0043a190
add esp, 8
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x28]
add ecx, 0x40
call fcn.00437410
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x28]
add ecx, 0x40
call fcn.004373e0
mov edx, dword [eax]
push edx
lea eax, [ebp - 0x1c]
push eax
call fcn.0043a1b0
add esp, 0x10
mov ecx, dword [ebp - 0x28]
cmp dword [ecx + 0x3c], 0
je 0x43499b
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x3c]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0
je 0x434994
push 1
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x20]
mov edx, dword [eax]
call edx
mov dword [ebp - 0x2c], eax
jmp 0x43499b
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x28]
add ecx, 0x70
call fcn.00401cc0
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x28]
add ecx, 0x50
call fcn.00437570
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x28]
add ecx, 0x40
call fcn.00437380
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x28]
add ecx, 0x30
call fcn.00401cc0
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x28]
add ecx, 0x2c
call fcn.00401cc0
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x28]
add ecx, 0x28
call fcn.00401cc0
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x28]
add ecx, 0x24
call fcn.00401cc0
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x28]
add ecx, 0x20
call fcn.00401cc0
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x28]
add ecx, 0x1c
call fcn.00401cc0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x28]
add ecx, 0x18
call fcn.00401cc0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x28]
add ecx, 0x14
call fcn.00401cc0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x28]
add ecx, 0x10
call fcn.00401cc0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x28]
add ecx, 0xc
call fcn.00401cc0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x28]
add ecx, 8
call fcn.00401cc0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x28]
add ecx, 4
call fcn.00401cc0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x28]
call fcn.00401cc0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x43b640
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x43b3c1
mov eax, 0xea7f3749
add eax, 0xe0111ed8
add eax, 1
call fcn.0043b688
and eax, ecx
sub ecx, eax
sub ecx, 0x19ec68c3
xor dword [edi], edx
dec eax
add edi, 1
add ecx, 0x3b2248f5
and ecx, ecx
cmp edi, esi
jne fcn.0043b640
add eax, 0xb0663f46
add ecx, 0xfb0ffb6
ret
Function at 0x100012e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x100012f9
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10001336
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x10001332
nop word [eax + eax]
cmp esi, edx
jae 0x10001336
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x10001320
cmp esi, edx
jb 0x1000133d
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x10001a00
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [edi + 0xc], 0
imul eax, dword [esi + 4], 0x3e8
mov dword [esi + 0x2b8], 2
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi], 0xb
je 0x10001b25
xor ebx, ebx
nop dword [eax + eax]
push esi
mov ecx, edi
mov dword [esi + 0x2b8], 3
call fcn.100021d0
test eax, eax
jne 0x10001a67
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0xa
jl 0x10001a40
cmp dword [edi + 0xc], 0
jne 0x10001a88
xor eax, eax
mov dword [esi + 0x2b8], 4
cmp dword [esi + 8], eax
setne al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
lea eax, [esp + 0x14]
push eax
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 1
push eax
push ebx
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi]
cmp eax, 0xc
ja case.0x10001acc.6
movzx eax, byte [eax + 0x10001b48]
jmp dword [eax*4 + 0x10001b34]
push esi
mov ecx, edi
call fcn.10003040
jmp case.0x10001acc.6
push esi
mov ecx, edi
call fcn.10003110
jmp case.0x10001acc.6
push esi
mov ecx, edi
call fcn.100032b0
jmp case.0x10001acc.6
push 0
push 0
push 0x10
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push dword [esp + 0x14]
push ebx
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov dword [esi + 0x2b8], 1
cmp dword [edi + 0x3c], 0
je 0x10001b25
push dword [edi + 0xc]
call fcn.10002440
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10001ad3
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [edi + 0xc], 0
imul eax, dword [esi + 4], 0x3e8
mov dword [esi + 0x2b8], 2
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi], 0xb
je 0x10001b25
xor ebx, ebx
nop dword [eax + eax]
push esi
mov ecx, edi
mov dword [esi + 0x2b8], 3
call fcn.100021d0
test eax, eax
jne 0x10001a67
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0xa
jl 0x10001a40
cmp dword [edi + 0xc], 0
jne 0x10001a88
xor eax, eax
mov dword [esi + 0x2b8], 4
cmp dword [esi + 8], eax
setne al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
lea eax, [esp + 0x14]
push eax
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 1
push eax
push ebx
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi]
cmp eax, 0xc
ja case.0x10001acc.6
movzx eax, byte [eax + 0x10001b48]
jmp dword [eax*4 + 0x10001b34]
push esi
mov ecx, edi
call fcn.10003040
jmp case.0x10001acc.6
push esi
mov ecx, edi
call fcn.10003110
jmp case.0x10001acc.6
push esi
mov ecx, edi
call fcn.100032b0
jmp case.0x10001acc.6
push 0
push 0
push 0x10
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push dword [esp + 0x14]
push ebx
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov dword [esi + 0x2b8], 1
cmp dword [edi + 0x3c], 0
je 0x10001b25
push dword [edi + 0xc]
call fcn.10002440
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10001add
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [edi + 0xc], 0
imul eax, dword [esi + 4], 0x3e8
mov dword [esi + 0x2b8], 2
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi], 0xb
je 0x10001b25
xor ebx, ebx
nop dword [eax + eax]
push esi
mov ecx, edi
mov dword [esi + 0x2b8], 3
call fcn.100021d0
test eax, eax
jne 0x10001a67
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0xa
jl 0x10001a40
cmp dword [edi + 0xc], 0
jne 0x10001a88
xor eax, eax
mov dword [esi + 0x2b8], 4
cmp dword [esi + 8], eax
setne al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
lea eax, [esp + 0x14]
push eax
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 1
push eax
push ebx
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi]
cmp eax, 0xc
ja case.0x10001acc.6
movzx eax, byte [eax + 0x10001b48]
jmp dword [eax*4 + 0x10001b34]
push esi
mov ecx, edi
call fcn.10003040
jmp case.0x10001acc.6
push esi
mov ecx, edi
call fcn.10003110
jmp case.0x10001acc.6
push esi
mov ecx, edi
call fcn.100032b0
jmp case.0x10001acc.6
push 0
push 0
push 0x10
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push dword [esp + 0x14]
push ebx
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov dword [esi + 0x2b8], 1
cmp dword [edi + 0x3c], 0
je 0x10001b25
push dword [edi + 0xc]
call fcn.10002440
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10001ae7
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [edi + 0xc], 0
imul eax, dword [esi + 4], 0x3e8
mov dword [esi + 0x2b8], 2
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi], 0xb
je 0x10001b25
xor ebx, ebx
nop dword [eax + eax]
push esi
mov ecx, edi
mov dword [esi + 0x2b8], 3
call fcn.100021d0
test eax, eax
jne 0x10001a67
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0xa
jl 0x10001a40
cmp dword [edi + 0xc], 0
jne 0x10001a88
xor eax, eax
mov dword [esi + 0x2b8], 4
cmp dword [esi + 8], eax
setne al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
lea eax, [esp + 0x14]
push eax
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 1
push eax
push ebx
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi]
cmp eax, 0xc
ja case.0x10001acc.6
movzx eax, byte [eax + 0x10001b48]
jmp dword [eax*4 + 0x10001b34]
push esi
mov ecx, edi
call fcn.10003040
jmp case.0x10001acc.6
push esi
mov ecx, edi
call fcn.10003110
jmp case.0x10001acc.6
push esi
mov ecx, edi
call fcn.100032b0
jmp case.0x10001acc.6
push 0
push 0
push 0x10
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push dword [esp + 0x14]
push ebx
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov dword [esi + 0x2b8], 1
cmp dword [edi + 0x3c], 0
je 0x10001b25
push dword [edi + 0xc]
call fcn.10002440
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10001af1
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [edi + 0xc], 0
imul eax, dword [esi + 4], 0x3e8
mov dword [esi + 0x2b8], 2
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi], 0xb
je 0x10001b25
xor ebx, ebx
nop dword [eax + eax]
push esi
mov ecx, edi
mov dword [esi + 0x2b8], 3
call fcn.100021d0
test eax, eax
jne 0x10001a67
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0xa
jl 0x10001a40
cmp dword [edi + 0xc], 0
jne 0x10001a88
xor eax, eax
mov dword [esi + 0x2b8], 4
cmp dword [esi + 8], eax
setne al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
lea eax, [esp + 0x14]
push eax
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 1
push eax
push ebx
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi]
cmp eax, 0xc
ja case.0x10001acc.6
movzx eax, byte [eax + 0x10001b48]
jmp dword [eax*4 + 0x10001b34]
push esi
mov ecx, edi
call fcn.10003040
jmp case.0x10001acc.6
push esi
mov ecx, edi
call fcn.10003110
jmp case.0x10001acc.6
push esi
mov ecx, edi
call fcn.100032b0
jmp case.0x10001acc.6
push 0
push 0
push 0x10
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push dword [esp + 0x14]
push ebx
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov dword [esi + 0x2b8], 1
cmp dword [edi + 0x3c], 0
je 0x10001b25
push dword [edi + 0xc]
call fcn.10002440
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10003110
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100253c8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x1003000c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
push ecx
add eax, 0xa4
mov byte [ebp - 0x10], 0
mov ecx, esp
push eax
call fcn.10004230
lea eax, [ebp + 8]
push eax
call fcn.100034c0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push 0
mov esi, dword [eax - 0xc]
mov dword [ebp - 0x14], esi
call dword [sym.imp.USER32.dll_OpenClipboard]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x10003251
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea eax, [esi*2 + 2]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x10003209
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], eax
cmp dword [ecx - 4], 1
jle 0x100031be
push dword [ecx - 0xc]
lea ecx, [ebp + 8]
call fcn.10004470
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
lea eax, [edx + edx]
push eax
push ecx
push dword [ebp - 0x18]
call fcn.10024610
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov ecx, dword [ebp - 0x18]
xor ebx, ebx
lea eax, [edx + edx]
push esi
mov word [eax + ecx], bx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
mov ecx, dword [ebp - 0x10]
test eax, eax
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
mov edx, 1
movzx ecx, cl
cmovne ecx, edx
mov dword [ebp - 0x10], ecx
mov esi, dword [sym.imp.USER32.dll_CloseClipboard]
call esi
push 0xffffffffffffffff
push 0
push 0xb1
push dword [edi + 0xc]
call ebx
push 0
push 0
push 0x303
push dword [edi + 0xc]
call ebx
push 0
push 0
push 0x302
push dword [edi + 0xc]
call ebx
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
call esi
cmp byte [ebp - 0x10], 0
jne 0x10003275
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x10003268
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.10004470
mov eax, dword [ebp + 8]
push eax
push 0x103
push 0xc
push dword [edi + 0xc]
call ebx
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10003297
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10003800
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1003000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov edx, ecx
mov dword [ebp - 0xc], 0
push esi
xor eax, eax
mov dword [ebp - 8], 7
push edi
mov word [ebp - 0x1c], ax
lea esi, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10003830
sub edx, esi
sar edx, 1
push edx
push ecx
lea ecx, [ebp - 0x1c]
call fcn.100042f0
mov eax, dword [ebp - 0xc]
lea edi, [ebp - 0x1c]
cmp dword [ebp - 8], 8
mov esi, 0x811c9dc5
mov edx, dword [ebp - 0x1c]
cmovae edi, edx
xor ecx, ecx
lea ebx, [eax + eax]
test ebx, ebx
je 0x10003878
movzx eax, byte [edi + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x10003867
mov eax, dword [ebp - 8]
cmp eax, 8
jb 0x100038b5
inc eax
cmp eax, 0x7fffffff
ja 0x100038c8
add eax, eax
cmp eax, 0x1000
jb 0x100038ac
test byte [ebp - 0x1c], 0x1f
jne 0x100038cd
mov eax, dword [edx - 4]
cmp eax, edx
jae 0x100038d2
sub edx, eax
cmp edx, 4
jb 0x100038d7
cmp edx, 0x23
ja 0x100038dc
mov edx, eax
push edx
call fcn.1000aa2e
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000aa33
mov esp, ebp
pop ebp
ret
call fcn.10010e27
call fcn.10010e27
call fcn.10010e27
call fcn.10010e27
call fcn.10010e27
int3

Function at 0x10003ca0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0
push 0
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
xor ebx, ebx
test edi, edi
jne 0x10003ccd
mov ecx, esi
call fcn.10004630
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4
js 0x10003d32
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or ecx, eax
jge 0x10003cea
push edi
mov ecx, esi
call fcn.10004c50
push edi
push dword [esi]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [esi]
test eax, eax
jne 0x10003d00
xor ecx, ecx
jmp 0x10003d12
push dword [eax - 8]
push eax
call fcn.1000e28e
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x10003d32
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x10003d32
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov ebx, 1
pop edi
pop esi
mov word [eax + ecx*2], dx
mov eax, ebx
pop ebx
pop ebp
ret 4
push 0x80070057
call fcn.10001170
int3