joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40260c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
lea edx, [ebp - 0x88]
mov eax, pe_nt_image_headers32
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], edx
call sub.msys_1.0.dll_memset
mov dword [ebp - 0x8c], 1
mov eax, dword [0x409140]
mov dword [ebp - 0x90], eax
mov eax, dword [0x40913c]
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x90], 0
jne 0x402669
mov dword [esp], 1
call sub.msys_1.0.dll_exit
lea eax, [ebp - 0x90]
dec dword [eax]
cmp dword [ebp - 0x90], 0
js 0x40281e
mov eax, dword [ebp - 0x94]
mov eax, dword [eax]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x8c]
mov dword [esp + 8], eax
lea eax, [ebp - 0x88]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x98]
mov dword [esp], eax
call sub.msys_opts_25.dll_option_strneqvcmp
test eax, eax
setne al
movzx eax, al
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], 0
jne 0x4026fe
mov eax, dword [ebp - 0x8c]
add eax, dword [ebp - 0x98]
movsx eax, byte [eax]
add eax, dword [sym.imp.msys_1.0.dll__ctype_]
inc eax
movsx eax, byte [eax]
and eax, 8
test eax, eax
jne 0x402810
mov eax, dword [ebp - 0x8c]
add eax, dword [ebp - 0x98]
cmp byte [eax], 0x5b
je 0x402810
lea eax, [ebp - 0x88]
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x8c], 0
mov eax, dword [ebp - 0x98]
movsx eax, byte [eax]
add eax, dword [sym.imp.msys_1.0.dll__ctype_]
inc eax
movsx eax, byte [eax]
and eax, 7
test eax, eax
jne 0x402751
mov eax, dword [ebp - 0x98]
cmp byte [eax], 0x5f
je 0x402751
mov eax, dword [ebp - 0x98]
cmp byte [eax], 0x2d
je 0x402751
mov eax, dword [ebp - 0x98]
cmp byte [eax], 0x5e
je 0x402751
jmp 0x402780
lea eax, [ebp - 0x8c]
inc dword [eax]
mov eax, dword [ebp - 0xa0]
mov ecx, eax
mov eax, dword [ebp - 0x98]
mov edx, eax
lea eax, [ebp - 0x98]
inc dword [eax]
movzx eax, byte [edx]
mov byte [ecx], al
lea eax, [ebp - 0xa0]
inc dword [eax]
jmp 0x402714
mov eax, dword [ebp - 0xa0]
mov byte [eax], 0
mov eax, dword [ebp - 0x98]
cmp byte [eax], 0x5b
je 0x402810
mov eax, dword [ebp - 0x98]
mov dword [esp], eax
call sub.msys_1.0.dll_strlen
add eax, dword [ebp - 0x8c]
add eax, 0xa
mov dword [esp], eax
call sub.msys_1.0.dll_malloc
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x98]
mov dword [esp + 0x10], eax
mov eax, dword [0x406684]
sub eax, 0xffffff80
mov eax, dword [eax + 0x18]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x88]
mov dword [esp + 8], eax
mov dword [esp + 4], str._s__d__s
mov eax, dword [ebp - 0xa0]
mov dword [esp], eax
call sub.msys_1.0.dll_sprintf
mov eax, dword [ebp - 0x94]
mov eax, dword [eax]
mov dword [esp], eax
call sub.msys_1.0.dll_free
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0xa0]
mov dword [edx], eax
lea eax, [ebp - 0x94]
add dword [eax], 4
jmp 0x402669
leave
ret
Function at 0x402f12
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [esp + 4], 0x1b6
mov eax, dword [0x406684]
add eax, 0x40
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.msys_1.0.dll_chmod
test eax, eax
jne 0x402f57
mov dword [esp + 4], 0x406c0a
mov eax, dword [0x406684]
add eax, 0x40
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.msys_1.0.dll_fopen
mov dword [ebp - 4], eax
jmp 0x402f92
mov eax, dword [0x406684]
add eax, 0x40
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.msys_1.0.dll_unlink
mov dword [esp + 4], 0x406bb0
mov eax, dword [0x406684]
add eax, 0x40
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.msys_1.0.dll_fopen
mov dword [ebp - 4], eax
mov eax, dword [0x409120]
mov dword [0x409128], eax
cmp dword [ebp - 4], 0
jne 0x402fb3
mov eax, dword [0x406684]
add eax, 0x40
mov eax, dword [eax + 0x18]
mov dword [esp + 4], eax
mov dword [esp], str.opening__s_for_write_append_n
call fcn.00403b43
mov eax, dword [ebp - 4]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov edx, dword [0x409128]
mov eax, dword [0x409124]
sub eax, edx
mov dword [esp + 4], eax
mov eax, dword [0x409128]
mov dword [esp], eax
call sub.msys_1.0.dll_fwrite
mov eax, dword [ebp - 4]
mov dword [esp], eax
call sub.msys_1.0.dll_fclose
mov dword [esp + 4], 0x124
mov eax, dword [0x406684]
add eax, 0x40
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.msys_1.0.dll_chmod
leave
ret

Function at 0x403aec
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [0x40665c]
mov dword [esp + 8], eax
mov dword [esp + 4], str._s_error:
mov eax, dword [0x409164]
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.msys_1.0.dll_fprintf
mov eax, dword [ebp - 4]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [0x409164]
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.msys_1.0.dll_vfprintf
mov dword [esp], 1
call sub.msys_1.0.dll_exit

Function at 0x403b43
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 8], eax
call sub.msys_1.0.dll___errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.msys_1.0.dll_strerror
mov ebx, eax
call sub.msys_1.0.dll___errno
mov dword [esp + 0x10], ebx
mov eax, dword [eax]
mov dword [esp + 0xc], eax
mov eax, dword [0x40665c]
mov dword [esp + 8], eax
mov dword [esp + 4], str._s_fserr__d___s_:
mov eax, dword [0x409164]
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.msys_1.0.dll_fprintf
mov eax, dword [ebp - 8]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [0x409164]
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.msys_1.0.dll_vfprintf
mov dword [esp], 1
call sub.msys_1.0.dll_exit
Function at 0x403e05
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, 0x1024
call fcn.00404790
mov dword [ebp - 0x100c], 0
mov eax, dword [0x406684]
add eax, 0xc0
mov eax, dword [eax + 0x1c]
add eax, 8
mov dword [ebp - 0x1010], eax
mov dword [esp], 0
call sub.msys_1.0.dll_isatty
test eax, eax
je 0x403e71
mov eax, dword [0x409164]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.getdefs_error:__no_inputs_were_specified_and_stdin_is_a_tty_n
call sub.msys_1.0.dll_fputs
mov dword [esp + 4], 1
mov dword [esp], 0x406640
mov eax, dword [0x406694]
call eax
mov eax, dword [0x409164]
mov eax, dword [eax + 4]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x1000
lea eax, [ebp - 0x1008]
mov dword [esp], eax
call sub.msys_1.0.dll_fgets
test eax, eax
je 0x404063
lea ebx, [ebp - 0x1008]
lea eax, [ebp - 0x1008]
mov dword [esp], eax
call sub.msys_1.0.dll_strlen
lea eax, [ebx + eax]
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
dec eax
cmp byte [eax], 0xa
je 0x403ee8
mov eax, dword [0x409164]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.getdefs_error:_input_line_not_newline_terminated_n
call sub.msys_1.0.dll_fputs
mov dword [esp], 1
call sub.msys_1.0.dll_exit
lea eax, [ebp - 0x1008]
cmp eax, dword [ebp - 0x1014]
jae 0x403f1b
mov eax, dword [ebp - 0x1014]
dec eax
movsx eax, byte [eax]
add eax, dword [sym.imp.msys_1.0.dll__ctype_]
inc eax
movsx eax, byte [eax]
and eax, 8
test eax, eax
je 0x403f1b
lea eax, [ebp - 0x1014]
dec dword [eax]
jmp 0x403ee8
mov eax, dword [ebp - 0x1014]
mov byte [eax], 0
lea eax, [ebp - 0x1008]
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
movsx eax, byte [eax]
add eax, dword [sym.imp.msys_1.0.dll__ctype_]
inc eax
movsx eax, byte [eax]
and eax, 8
test eax, eax
je 0x403f54
lea eax, [ebp - 0x1014]
inc dword [eax]
jmp 0x403f30
mov eax, dword [ebp - 0x1014]
cmp byte [eax], 0
je 0x403e71
mov eax, dword [ebp - 0x1014]
cmp byte [eax], 0x23
je 0x403e71
mov dword [esp + 4], 4
mov eax, dword [ebp - 0x1014]
mov dword [esp], eax
call sub.msys_1.0.dll_access
test eax, eax
je 0x403f91
jmp 0x403e71
lea eax, [ebp - 0x100c]
inc dword [eax]
cmp dword [ebp - 0x100c], 1
jne 0x403fbd
mov ebx, dword [ebp - 0x1010]
lea eax, [ebp - 0x1008]
mov dword [esp], eax
call sub.msys_1.0.dll_strdup
mov dword [ebx], eax
jmp 0x403e71
mov eax, dword [0x406684]
add eax, 0xc0
mov word [eax + 4], 3
mov eax, dword [0x406684]
add eax, 0xc0
mov word [eax + 6], 3
mov edx, dword [0x406684]
add edx, 0xc0
mov eax, dword [0x406684]
add eax, 0xc0
mov eax, dword [eax + 0x10]
and eax, 0xffffff80
mov dword [edx + 0x10], eax
mov edx, dword [0x406684]
add edx, 0xc0
mov eax, dword [0x406684]
add eax, 0xc0
mov eax, dword [eax + 0x10]
or eax, 1
mov dword [edx + 0x10], eax
mov ebx, dword [0x406684]
add ebx, 0xc0
lea eax, [ebp - 0x1008]
mov dword [esp], eax
call sub.msys_1.0.dll_strdup
mov dword [ebx + 0x18], eax
mov edx, dword [0x406684]
add edx, 0xc0
mov eax, dword [0x406684]
add eax, 0xc0
mov dword [esp + 4], eax
mov dword [esp], 0x406640
mov eax, dword [edx + 0x28]
call eax
jmp 0x403e71
add esp, 0x1024
pop ebx
pop ebp
ret
Function at 0x404ae0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
lea edi, [ebp - 0x1a8]
push esi
push ebx
sub esp, 0x2dc
mov dword [esp], 0xfffffff4
call sub.KERNEL32.dll_GetStdHandle
sub esp, 4
mov esi, eax
mov eax, 0x104
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleFileNameA
sub esp, 0xc
cmp esi, 0xffffffff
mov ebx, eax
je 0x404d11
test ebx, ebx
jle 0x404b50
mov dword [esp], edi
lea ebx, [ebp - 0x2b8]
mov dword [esp + 4], ebx
call sub.msys_1.0.dll_cygwin_conv_to_posix_path
test eax, eax
je 0x404c44
nop
lea esi, [esi]
mov eax, dword [ebp + 8]
mov edi, pe_nt_image_headers32
lea ecx, [ebp + 0xc]
mov dword [esp + 4], edi
lea edi, [ebp - 0x98]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
mov dword [esp], edi
call sub.msys_1.0.dll_vsnprintf
cmp byte [ebp - 0x2b8], 0
mov dword [ebp - 0x2c0], eax
mov byte [ebp - 0x19], 0
je 0x404c50
mov dword [esp], esi
xor ecx, ecx
lea eax, [ebp - 0x2bc]
mov dword [esp + 0x10], ecx
mov ebx, 0x18
mov edx, str.Cygwin_runtime_failure:
mov dword [esp + 8], ebx
lea ebx, [ebp - 0x2b8]
mov dword [esp + 0xc], eax
mov dword [esp + 4], edx
call sub.KERNEL32.dll_WriteFile
sub esp, 0x14
mov ecx, ebx
jmp 0x404bd0
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
mov eax, edx
and eax, 0x80808080
je 0x404bd0
and edx, 0x8080
jne 0x404bf6
shr eax, 0x10
add ecx, 2
mov dword [esp + 4], ebx
add al, al
lea eax, [ebp - 0x2bc]
sbb ecx, 3
sub ecx, ebx
xor edx, edx
mov dword [esp + 0x10], edx
xor ebx, ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
mov dword [esp], esi
call sub.KERNEL32.dll_WriteFile
sub esp, 0x14
mov ecx, 2
mov edx, 0x407cf8
mov dword [esp + 0x10], ebx
lea ebx, [ebp - 0x2bc]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
jmp 0x404c99
mov byte [ebp - 0x2b8], 0
jmp 0x404b50
mov dword [esp], esi
xor ebx, ebx
mov ecx, str.Cygwin_runtime_failure:
mov dword [esp + 0x10], ebx
mov eax, 0x18
lea ebx, [ebp - 0x2bc]
mov dword [esp + 4], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
call sub.KERNEL32.dll_WriteFile
sub esp, 0x14
xor edx, edx
mov eax, 0x12
mov dword [esp + 0x10], edx
mov ecx, str._unknown_module_:
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], esi
call sub.KERNEL32.dll_WriteFile
mov edx, dword [ebp - 0x2c0]
sub esp, 0x14
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 4], edi
mov edi, 1
mov dword [esp + 8], edx
mov dword [esp], esi
mov dword [esp + 0xc], ebx
call sub.KERNEL32.dll_WriteFile
sub esp, 0x14
mov ecx, 1
mov edx, 0x407cfb
mov dword [esp + 8], ecx
xor eax, eax
mov dword [esp + 4], edx
mov dword [esp], esi
mov esi, 0xe0000269
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ebx
call sub.KERNEL32.dll_WriteFile
sub esp, 0x14
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], 0xe
call sub.msys_1.0.dll_cygwin_internal
call sub.msys_1.0.dll_abort
mov dword [esp], 0xe
mov edx, 1
mov ecx, 0xe0000269
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
call sub.msys_1.0.dll_cygwin_internal
jmp 0x404b2a
Function at 0x430004
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
mov ebx, 0x408e84
mov ecx, 0x1c6100f6
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x50590df8
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x407281
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x461124], 0
jne 0x4072bf
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x407295
mov dword [ecx*4 + 0x461120], eax
inc ecx
cmp ecx, 0x100
jl 0x407290
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x4072ec
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x461120]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4072cd
not eax
pop ebp
ret 0xc

Function at 0x43f15a
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [pe_dos_header]
mov eax, dword ds:[eax + 0x34]
mov ebp, dword ds:[eax + 0xb8]
jmp 0x43f168
push eax
push ecx
push esi
push ebp
mov eax, dword fs:[0x30]
test eax, eax
js 0x43f14a
mov eax, dword ds:[eax + 0xc]
mov esi, dword ds:[eax + 0x1c]
lodsd eax, dword [esi]
mov ebp, dword ds:[eax + 8]
mov dword [ebx + 0x60], ebp
mov eax, ebp
cmp word [eax], 0x5a4d
jne 0x43f145
add eax, 0x3c
mov ecx, dword [eax]
add ecx, dword [ebx + 0x60]
cmp word [ecx], 0x4550
jne 0x43f145
add ecx, 0x78
mov esi, dword [ecx]
add esi, dword [ebx + 0x60]
add esi, 0x18
lodsd eax, dword [esi]
mov dword [ebx + 0x64], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x68], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x6c], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x70], eax
pop ebp
pop esi
pop ecx
pop eax
ret
Function at 0x430006
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x20366cad
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x3f563a1c
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219

Function at 0x401000
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [esp + 0xe], 8
call dword [sym.imp.user32.dll_GetKeyboardState]
call fcn.004023d8
sub ecx, edx
call fcn.00403680
mov ebx, 0x7eff
inc ebx
call dword [fcn.0040365c]
add byte [eax], al
add byte [eax], al
mov bl, 0x31
inc eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], dl
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [esi + 0x4032], dh
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax + 0x36], ah
inc eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax - 0x6f6f6f70], dl
nop
nop
nop
nop
jmp 0x5a1285

Function at 0x4023d8
Capabilities:
Terminate process

Disassembly:
mov edx, eax
xor edi, edi
xor esi, esi
push dword [0x403657]
call dword [sym.imp.winmm.dll_waveInClose]
add eax, 5
inc eax
test eax, 0xb
jne 0x402401
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
mov edx, eax
mov dword [0x401037], eax
ret
Function at 0x4609fdbd
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x460ec018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
or dword [edi + 0x60], 0x80
call fcn.460e3c11
xor eax, eax
push 0x10
mov word [0x460ec784], ax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4609fe12
push 0xa1
call dword [sym.imp.USER32.dll_GetKeyState]
xor ecx, ecx
test ax, ax
setns cl
inc ecx
movzx eax, cx
or word [0x460ec784], ax
mov ecx, dword [edi + 0xbc]
xor eax, eax
test ecx, ecx
je 0x4609fec7
and dword [edi + 0x60], 0xfffffdff
cmp dword [ecx + 0x38], eax
mov edx, dword [edi + 0x60]
sete al
shr edx, 0xf
push eax
and edx, 1
push edx
call fcn.460ce06f
mov ecx, dword [edi + 0xbc]
and dword [edi + 0x60], 0xffff7fff
push 1
call fcn.460cea62
mov eax, dword [edi + 0x48]
test eax, eax
je 0x4609feb7
mov eax, dword [eax + 0x18]
test eax, eax
je 0x4609feb7
mov eax, dword [eax + 0x28]
lea ecx, [ebp - 0xc]
push ecx
push 0x460851a0
push eax
mov esi, dword [eax]
mov ecx, dword [esi]
call dword [0x460ed508]
call dword [esi]
test eax, eax
jne 0x4609feb7
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x460ed508]
call esi
cmp dword [ebp - 8], 0
je 0x4609fea4
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x460ed508]
call esi
push 0
push 0x100
mov ecx, edi
call fcn.460a04ec
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.460ea320
mov esp, ebp
pop ebp
ret
Function at 0x460b0608
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x460ec018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
mov dword [ebp - 0x24], edi
cmp ebx, 0xfffffffe
jne 0x460b0649
mov eax, dword [edi + 0x9c]
test eax, eax
jle 0x460b0645
dec eax
push eax
push 0
push esi
call fcn.460adf06
mov ebx, eax
jmp 0x460b0654
xor ebx, ebx
jmp 0x460b0654
cmp ebx, 0xffffffff
jne 0x460b0654
mov ebx, dword [edi + 0x9c]
push esi
push ebx
mov ecx, edi
call fcn.460ae80d
test eax, eax
je 0x460b0795
mov eax, dword [edi + 0x9c]
dec eax
mov dword [ebp - 0x20], eax
cmp eax, ebx
jle 0x460b06c7
lea ecx, [edi + 0xb8]
dec eax
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
push eax
call fcn.4608ab71
push edi
mov esi, eax
call fcn.460a93e1
mov ecx, dword [esi]
push dword [ebp - 0x18]
xor ecx, dword [eax]
and ecx, 1
xor dword [eax], ecx
mov ecx, dword [ebp - 0x1c]
call fcn.4608ab71
push edi
lea esi, [eax + 4]
call fcn.460a93e1
dec edi
lea ecx, [eax + 4]
mov eax, dword [esi]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
dec eax
mov dword [ebp - 0x18], eax
cmp edi, ebx
jg 0x460b0683
mov edi, dword [ebp - 0x24]
lea esi, [edi + 0xb8]
push ebx
mov ecx, esi
call fcn.460a93e1
push ebx
mov ecx, esi
and dword [eax], 0xfffffffe
call fcn.460a93e1
and dword [eax + 4], 0
test byte [edi + 0x5c], 1
jne 0x460b0737
mov eax, dword [edi + 0x9c]
cmp eax, 1
jle 0x460b0765
dec eax
cmp ebx, eax
jge 0x460b070a
lea eax, [ebx + 1]
mov ecx, esi
push eax
call fcn.4608ab71
test byte [eax], 1
jne 0x460b0725
mov eax, dword [edi + 0x9c]
dec eax
cmp ebx, eax
jne 0x460b0765
lea eax, [ebx - 1]
mov ecx, esi
push eax
call fcn.4608ab71
test byte [eax], 1
je 0x460b0765
push ebx
push ebx
mov eax, 0xff676983
mov ecx, edi
push eax
push eax
call fcn.460af13c
jmp 0x460b0765
push ebx
mov ecx, edi
call fcn.460abd09
test eax, eax
je 0x460b0765
lea eax, [ebp - 0x14]
push eax
push ebx
call fcn.460b04d4
mov eax, dword [edi + 0x8c]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push 1
push eax
push dword [edi + 8]
call dword [sym.imp.USER32.dll_InvalidateRect]
or dword [edi + 0x5c], 0x1000
lea eax, [ebx + 1]
mov dword [edi + 0x68], eax
mov ecx, 0x8000
mov eax, dword [edi]
push 0
mov dword [edi + 0x64], ecx
push ecx
mov esi, dword [eax + 0x98]
mov ecx, esi
call dword [0x460ed508]
mov ecx, edi
call esi
mov eax, ebx
jmp 0x460b07b0
mov ecx, dword [edi]
push 0
push 0xfffffffffffffffe
mov esi, dword [ecx + 0x98]
mov ecx, esi
call dword [0x460ed508]
mov ecx, edi
call esi
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.460ea320
mov esp, ebp
pop ebp
ret 8
Function at 0x460b15cf
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x460ec018]
xor eax, esp
mov dword [esp + 0x18], eax
and dword [esp + 4], 0
push ebx
mov ebx, ecx
push esi
push edi
mov esi, dword [ebx]
mov edi, dword [esi + 0x48]
test edi, edi
je 0x460b15fd
mov edi, dword [edi + 0x14]
jmp 0x460b15ff
xor edi, edi
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.460bbf46
mov ecx, dword [esp + 0x1c]
cmp dword [esp + 0x18], ecx
jl 0x460b1622
xor eax, eax
jmp 0x460b1793
mov eax, ecx
sub eax, dword [esp + 0x18]
cmp eax, 1
jne 0x460b165d
mov eax, dword [esi + 0x48]
mov dword [esp + 0x14], eax
test eax, eax
je 0x460b165d
push ecx
mov ecx, eax
call fcn.460b80b0
push dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
mov esi, eax
call fcn.460b80b0
sub esi, eax
je 0x460b165d
mov dword [esp + 0x14], 1
jmp 0x460b1662
and dword [esp + 0x14], 0
test edi, edi
je 0x460b168f
mov esi, dword [edi]
lea eax, [esp + 0x10]
push eax
push 2
lea eax, [esp + 0x20]
mov ecx, dword [esi + 0x28]
push eax
push edi
call dword [0x460ed508]
call dword [esi + 0x28]
mov edi, eax
test edi, edi
jne 0x460b168f
mov ecx, dword [esp + 0x10]
xor esi, esi
jmp 0x460b16ce
mov eax, dword [ebp + 8]
xor esi, esi
mov ecx, dword [ebx]
cmp dword [eax + 0x38], esi
jne 0x460b16a5
call fcn.460a006f
jmp 0x460b161b
push 3
mov edx, eax
call fcn.4609a1e5
mov edi, eax
mov ecx, edi
neg edi
mov dword [esp + 0x10], ecx
sbb edi, edi
and edi, 0x7ff8fff2
add edi, 0x8007000e
test eax, eax
je 0x460b1791
test ecx, ecx
je 0x460b1791
call fcn.460e4707
mov edi, eax
test edi, edi
je 0x460b1773
mov ecx, dword [ebx]
lea eax, [esp + 0x20]
push eax
mov byte [ebx + 0xd], 1
call fcn.460a0455
test eax, eax
jne 0x460b1773
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x460b1773
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x460b1773
movzx eax, word [0x460ec034]
push esi
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
mov eax, dword [ebx]
test dword [eax + 0x6c], 0xff8ffeff
je 0x460b1752
movzx eax, word [0x460ec020]
push esi
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
movzx eax, word [0x460ec048]
push esi
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
cmp dword [esp + 0x14], 0
je 0x460b176b
push esi
push 8
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov edi, esi
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x460b178a
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x460ed508]
call esi
mov eax, dword [esp + 0x10]
mov dword [ebx + 8], eax
mov eax, edi
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.460ea320
mov esp, ebp
pop ebp
ret 4