joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45e850
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x10]
push ebp
push 0x45ea16
push dword fs:[0]
mov dword fs:[0], esp
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x34]
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0x2c]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
test al, al
je 0x45e8a0
call fcn.00403fac
jmp 0x45ea1d
mov eax, dword [esi + 0x34]
mov edx, dword [esi + 0x30]
mov edi, eax
imul edi, edx
dec edi
xor ecx, ecx
xor edx, edx
mov eax, esi
call fcn.00468ecc
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov dword [ebp - 0x10], eax
xor eax, eax
mov al, bl
cmp eax, 5
ja case.default.0x45e8d6
jmp dword [eax*4 + 0x45e8dd]
add dword [ebp - 0xc], 2
mov ebx, edi
test ebx, ebx
jl case.default.0x45e8d6
inc ebx
mov eax, dword [ebp - 0xc]
mov al, byte [eax]
mov edx, dword [ebp - 0x10]
mov byte [edx], al
inc dword [ebp - 0x10]
add dword [ebp - 0xc], 4
dec ebx
jne 0x45e904
jmp case.default.0x45e8d6
inc dword [ebp - 0xc]
mov ebx, edi
test ebx, ebx
jl case.default.0x45e8d6
inc ebx
mov eax, dword [ebp - 0xc]
mov al, byte [eax]
mov edx, dword [ebp - 0x10]
mov byte [edx], al
inc dword [ebp - 0x10]
add dword [ebp - 0xc], 4
dec ebx
jne 0x45e92b
jmp case.default.0x45e8d6
mov ebx, edi
test ebx, ebx
jl case.default.0x45e8d6
inc ebx
mov eax, dword [ebp - 0xc]
mov al, byte [eax]
mov edx, dword [ebp - 0x10]
mov byte [edx], al
inc dword [ebp - 0x10]
add dword [ebp - 0xc], 4
dec ebx
jne 0x45e94f
jmp case.default.0x45e8d6
add dword [ebp - 0xc], 3
mov ebx, edi
test ebx, ebx
jl case.default.0x45e8d6
inc ebx
mov eax, dword [ebp - 0xc]
mov al, byte [eax]
mov edx, dword [ebp - 0x10]
mov byte [edx], al
inc dword [ebp - 0x10]
add dword [ebp - 0xc], 4
dec ebx
jne 0x45e977
jmp case.default.0x45e8d6
mov ebx, edi
test ebx, ebx
jl case.default.0x45e8d6
inc ebx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov eax, ecx
and eax, 0xff0000
shr eax, 0x10
mov edx, ecx
and edx, 0xff00
shr edx, 8
add eax, edx
and ecx, 0xff
add eax, ecx
mov ecx, eax
mov eax, ecx
mov ecx, 3
xor edx, edx
div ecx
mov ecx, eax
mov eax, dword [ebp - 0x10]
mov byte [eax], cl
inc dword [ebp - 0x10]
add dword [ebp - 8], 4
dec ebx
jne 0x45e994
jmp case.default.0x45e8d6
mov ebx, edi
test ebx, ebx
jl case.default.0x45e8d6
inc ebx
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.004677b4
mov edx, dword [ebp - 0x10]
mov byte [edx], al
inc dword [ebp - 0x10]
add dword [ebp - 8], 4
dec ebx
jne 0x45e9df
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ea1d
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xc]
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47c438
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xffffff00
mov ebx, eax
push esp
push pe_nt_image_headers32
call sub._qM4__1L0VL4hrqNmR___bs__K_GetTempPathA
mov edx, ebx
mov eax, esp
call fcn.004093d0
add esp, 0x100
pop ebx
ret
Function at 0x4956c0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x4171ec]
call fcn.00404e7c
xor eax, eax
push ebp
push 0x495804
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4a6110], 0
jne 0x495713
mov ecx, dword [0x4a67c4]
mov dl, 1
mov eax, dword [0x407b04]
call fcn.0040c2b4
call fcn.00403f00
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00403170
mov eax, ebx
call fcn.00404d48
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x495814
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.004060e0
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404d58
test eax, eax
jle 0x4957ab
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub._qM4__1L0VL4hrqNmR___bs__K_GetComputerNameA
test eax, eax
je 0x4957a4
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404794
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.0040477c
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408948
test eax, eax
jne 0x4957a4
mov ebx, 0x15
jmp 0x4957b0
mov ebx, 0x10
jmp 0x4957b0
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x4a6110]
call fcn.00495618
mov eax, dword [ebp - 8]
call fcn.00495618
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.004060f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49580b
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404530
lea eax, [ebp - 0x10]
mov edx, dword [0x4171ec]
call fcn.00404f4c
ret
Function at 0x77d077
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea ebp, [ebp + 0xb0]
mov ax, cx
stc
bswap edi
xchg esi, eax
jmp 0x77d01f

Function at 0x77d1a3
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov edx, dword [esp + 5]
pop ebp
push dword [esp + 5]
mov bh, al
mov cx, 0x5c3e
jmp 0x77d1af
sub esp, 0xf
lea eax, [esi*4]
jmp 0x77d18d
setge dh
neg ch
xchg dword [esp + 9], ebx
xchg byte [esp + 0x13], bl
lea eax, [ebx*4]
mov dh, byte [esp + 0xc]
jmp 0x77d216
setne dh
xchg ebx, edi
bswap ebp
cpuid
dec ebx
lea eax, [eax + edi]
jmp 0x77d1d7
lea eax, [ebx + ebp]
pop word [esp]
bswap esi
push word [esp + 0xf]
mov word [esp + 0x11], cx
xchg word [esp + 1], bp
jmp 0x77d1ed

Function at 0x77d4de
Capabilities:
Execute anti-debugging instructions

Disassembly:
seto bl
jmp 0x77d548
cld
mov byte [esp], bh
rcr al, 5
mov word [esp], bx
push word [esp + 1]
jmp 0x77d52d
add esp, 0
cpuid
mov word [esp + 3], bx
add esp, 3
bswap ecx
mov ah, al
jmp 0x77d504
lea edi, reloc.MSVCRT.dll___dllonexit
mov edi, 0xbb4a6df
xchg esi, ebp
setle bl
xchg esi, eax
pop ebp
jmp 0x77d576
lea esp, [esp]
mov edi, dword [esp + 4]
bsf ebp, esi
neg cl
lea esp, [esp + 2]
lea edi, reloc.MSVCRT.dll___dllonexit
jmp 0x77d51a
bswap edi
xchg byte [esp], dh
mov byte [esp], dl
inc eax
clc
ror edi, cl
jmp 0x77d5b4
xchg esi, eax
cpuid
mov ebp, dword [esp]
setae bl
inc cx
mov bl, 1
jmp 0x77d560
mov edi, dword [esp]
mov ebx, edx
lea esp, [esp]
neg ax
mov bl, ah
mov byte [esp], dh
jmp 0x77d5ce
mov bh, 0xc6
mov eax, dword [esp]
sete al
lea ecx, [ecx*4]
lea ecx, reloc.MSVCRT.dll___dllonexit
lea esi, [ebx + edi]
jmp 0x77d598
inc cl
btr ecx, esi
neg dx
mov ah, byte [esp]
mov bl, byte [esp]
xor di, 0xe3cb
jmp 0x77d626
mov bl, 0xaa
mov esi, 0x429dfc65
mov al, bh
lea ecx, [edi*4]
mov cx, dx
add esp, 0
jmp 0x77d602

Function at 0x77d9b5
Capabilities:
Access peb ldr_data

Disassembly:
lea esp, [esp]
pushal
mov byte [esp + 0x19], al
lea esp, [esp + 2]
mov dword [esp + 0x2c], edi
lea esp, [esp + 0x2c]
jmp 0x77dc57
pop word [esp]
mov word [esp], ax
jmp 0x77d989
mov eax, dword [eax]
mov eax, dword [eax + 8]
push eax
jmp 0x77c06a
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
jmp 0x77dab2
Function at 0x4116b2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x57db60]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4116f2
cmp byte [ebx], 0xa
jne 0x4116f2
or byte [edi + eax + 0x28], 4
jmp 0x4116f7
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4117f6
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4117d9
inc eax
cmp dl, 0xd
je 0x411723
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x411749
cmp eax, ecx
jae 0x411757
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x41170b
jmp 0x4117f6
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4117d4
cmp dword [ebp - 0x10], 0
je 0x4117d4
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x57db60]
test byte [eax + edi + 0x28], 0x48
je 0x4117ae
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x411799
mov byte [esi], dl
jmp 0x4117aa
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x57db60]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4117f6
cmp byte [ebp - 1], 0xa
jne 0x4117bd
cmp esi, ebx
jne 0x4117bd
mov byte [esi], 0xa
jmp 0x4117f5
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00411622
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4117f6
mov byte [esi], 0xd
jmp 0x4117f5
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x57db60]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4117f3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4117f6
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4117ff
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x57db60]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x411845
cmp word [ebx], dx
jne 0x411845
or byte [eax + edi + 0x28], 4
jmp 0x41184a
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4119ad
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x41198d
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x41188b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4118c1
cmp eax, edx
jae 0x4118cf
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x411866
jmp 0x4119ad
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x411988
cmp dword [ebp - 0x18], 0
je 0x411988
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x57db60]
test byte [eax + edi + 0x28], 0x48
je 0x41195e
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x411922
mov word [esi], cx
jmp 0x411959
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x57db60]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x57db60]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x57db60]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4119ad
pop eax
cmp word [ebp - 4], ax
jne 0x41196e
cmp esi, ebx
jne 0x41196e
mov word [esi], ax
jmp 0x4119aa
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00411622
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4119ad
push 0xd
pop eax
jmp 0x411969
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x57db60]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4119a7
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4119ad
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41bb70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x18
xor eax, eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
push esi
push edi
mov dl, byte [eax]
lea ecx, [eax + 1]
cmp dl, 0x2d
mov byte [esp + 0x1f], dl
cmovne ecx, eax
xor esi, esi
mov edi, ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], edi
mov al, byte [edi]
cmp al, 0x2d
jne 0x41bbfb
movzx eax, byte [edi + 1]
mov dword [esp + 0x10], esi
lea esi, [edi + 1]
push eax
call fcn.00458680
add esp, 4
test eax, eax
je 0x41bbe5
xor edi, edi
nop word [eax + eax]
movsx eax, byte [esi]
lea ecx, [edi - 6]
inc esi
lea ecx, [edi + ecx*4]
lea edi, [eax + ecx*2]
movzx eax, byte [esi]
push eax
call fcn.00458680
add esp, 4
test eax, eax
jne 0x41bbc0
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x14]
cmp esi, edi
jbe 0x41bbf7
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41bbf3
neg eax
mov dword [esp + 0x18], eax
sub esi, edi
jmp 0x41bc47
movzx eax, al
push eax
call fcn.00458680
add esp, 4
test eax, eax
je 0x41bc41
nop dword [eax + eax]
movsx eax, byte [edi]
lea ecx, [esi - 6]
inc edi
lea ecx, [esi + ecx*4]
lea esi, [eax + ecx*2]
movzx eax, byte [edi]
push eax
call fcn.00458680
add esp, 4
test eax, eax
jne 0x41bc10
mov edx, dword [esp + 0x14]
mov ecx, edi
mov dword [esp + 0x10], edi
cmp ecx, edx
jbe 0x41bc43
mov dword [esp + 0x18], esi
jmp 0x41bc43
mov edx, edi
mov esi, edi
sub esi, edx
mov eax, dword [esp + 0x18]
xorps xmm1, xmm1
add esi, dword [esp + 0xc]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
cmp byte [esi], 0x2e
addsd xmm0, qword [eax*8 + 0x520270]
addsd xmm0, xmm1
movsd qword [esp + 8], xmm0
jne 0x41bce5
movzx eax, byte [esi + 1]
inc esi
push eax
mov edi, 0xa
call fcn.00458680
add esp, 4
test eax, eax
je 0x41bcdc
nop dword [eax]
movsx eax, byte [esi]
inc esi
sub eax, 0x30
movd xmm0, edi
cvtdq2pd xmm0, xmm0
lea edi, [edi + edi*4]
add edi, edi
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x520270]
movzx eax, byte [esi]
push eax
divsd xmm1, xmm0
movsd xmm0, qword [esp + 0xc]
addsd xmm0, xmm1
movsd qword [esp + 0xc], xmm0
call fcn.00458680
add esp, 4
test eax, eax
jne 0x41bc90
movsd xmm0, qword [esp + 8]
xorps xmm1, xmm1
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
test ecx, ecx
je 0x41bd11
cmp esi, edx
jbe 0x41bd11
cmp byte [esp + 0x1f], 0x2d
jne 0x41bd0d
ucomisd xmm0, xmm1
lahf
test ah, 0x44
jnp 0x41bd0d
xorps xmm0, xmmword [0x520280]
movsd qword [ecx], xmm0
sub esi, edx
pop edi
mov eax, esi
pop esi
add esp, 0x18
ret
Function at 0x41f5d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0
push 0
call fcn.00449900
add esp, 8
mov ebx, eax
push 0x17
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ebp, eax
push 1
mov dword [esp + 0x14], ebp
call edi
mov esi, dword [esp + 0x18]
test ax, ax
js 0x41f662
movzx eax, byte [esi + 0x44]
test ebp, ebp
mov ebp, 1
setne cl
lea edx, [ecx*2 + 1]
movzx ecx, dl
dec ecx
mov dword [esp + 0x18], edx
shl ebp, cl
test eax, ebp
je 0x41f64b
push dword [esi]
btr eax, ecx
mov byte [esi + 0x44], al
call fcn.00475630
push 0
push str.SDL_MOUSE_FOCUS_CLICKTHROUGH
call fcn.0043ac50
add esp, 0xc
test eax, eax
je 0x41f65e
mov edx, dword [esp + 0x18]
test ebx, ebp
je 0x41f65e
push edx
push 0
push 0
push dword [esi]
call fcn.0044a8e0
add esp, 0x10
mov ebp, dword [esp + 0x10]
push 2
call edi
test ax, ax
js 0x41f6c5
test ebp, ebp
mov ebp, 1
sete al
lea edx, [eax*2 + 1]
movzx eax, byte [esi + 0x44]
movzx ecx, dl
dec ecx
mov dword [esp + 0x18], edx
shl ebp, cl
test eax, ebp
je 0x41f6b2
push dword [esi]
btr eax, ecx
mov byte [esi + 0x44], al
call fcn.00475630
push 0
push str.SDL_MOUSE_FOCUS_CLICKTHROUGH
call fcn.0043ac50
add esp, 0xc
test eax, eax
je 0x41f6c5
mov edx, dword [esp + 0x18]
test ebx, ebp
je 0x41f6c5
push edx
push 0
push 0
push dword [esi]
call fcn.0044a8e0
add esp, 0x10
push 4
call edi
test ax, ax
js 0x41f70c
movzx eax, byte [esi + 0x44]
test al, 2
je 0x41f6f7
push dword [esi]
btr eax, 1
mov byte [esi + 0x44], al
call fcn.00475630
push 0
push str.SDL_MOUSE_FOCUS_CLICKTHROUGH
call fcn.0043ac50
add esp, 0xc
test eax, eax
je 0x41f70c
test bl, 2
je 0x41f70c
push 2
push 0
push 0
push dword [esi]
call fcn.0044a8e0
add esp, 0x10
push 5
call edi
test ax, ax
js 0x41f753
movzx eax, byte [esi + 0x44]
test al, 8
je 0x41f73e
push dword [esi]
btr eax, 3
mov byte [esi + 0x44], al
call fcn.00475630
push 0
push str.SDL_MOUSE_FOCUS_CLICKTHROUGH
call fcn.0043ac50
add esp, 0xc
test eax, eax
je 0x41f753
test bl, 8
je 0x41f753
push 4
push 0
push 0
push dword [esi]
call fcn.0044a8e0
add esp, 0x10
push 6
call edi
test ax, ax
js 0x41f79a
movzx eax, byte [esi + 0x44]
test al, 0x10
je 0x41f785
push dword [esi]
btr eax, 4
mov byte [esi + 0x44], al
call fcn.00475630
push 0
push str.SDL_MOUSE_FOCUS_CLICKTHROUGH
call fcn.0043ac50
add esp, 0xc
test eax, eax
je 0x41f79a
test bl, 0x10
je 0x41f79a
push 5
push 0
push 0
push dword [esi]
call fcn.0044a8e0
add esp, 0x10
pop edi
mov dword [esi + 0x28], 0xffffffff
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x41ffe0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x20
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
mov edi, dword [ebp + 0xa4]
mov esi, dword [edi + 4]
mov dword [esp + 0x18], esi
call fcn.00441180
xor ebx, ebx
cmp eax, ebp
sete bl
call dword [sym.imp.USER32.dll_GetForegroundWindow]
xor ecx, ecx
cmp eax, esi
sete cl
cmp ebx, ecx
je 0x4201f4
cmp ecx, dword [esp + 0x38]
jne 0x4201f4
cmp eax, esi
jne 0x420188
push 0x17
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 1
mov dword [esp + 0x14], eax
call esi
mov ecx, 4
lea ebx, [ecx - 3]
test ax, ax
je 0x420066
cmp dword [esp + 0x10], 0
mov eax, ecx
cmove eax, ebx
or byte [edi + 0x44], al
push 2
call esi
test ax, ax
je 0x42007f
cmp dword [esp + 0x10], 0
mov eax, 4
cmove ebx, eax
or byte [edi + 0x44], bl
push 4
call esi
test ax, ax
je 0x42008c
or byte [edi + 0x44], 2
push 5
call esi
test ax, ax
je 0x420099
or byte [edi + 0x44], 8
push 6
call esi
test ax, ax
je 0x4200a6
or byte [edi + 0x44], 0x10
push ebp
call fcn.00441b30
add esp, 4
call fcn.004498e0
cmp dword [eax + 0x54], 0
jne 0x42010a
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x18], ecx
push eax
push dword [edi]
call fcn.00474580
push dword [esp + 0x20]
push dword [esp + 0x20]
push 0
push 0
push ebp
call fcn.0044a900
add esp, 0x20
push edi
call fcn.0041f5d0
push ebp
call fcn.00475630
push dword [edi + 0x7c]
call fcn.0046f980
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
add esp, 0xc
push 0x14
call esi
and eax, 1
push eax
push 0x2000
call fcn.00441dc0
add esp, 8
push 0x90
call esi
and eax, 1
push eax
push 0x1000
call fcn.00441dc0
add esp, 8
push 0x91
call esi
and eax, 1
push eax
push 0x8000
call fcn.00441dc0
push 1
push dword [edi]
call fcn.00475900
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00401033
add esp, 0x20
ret
push 0
mov dword [edi + 0x58], 1
call fcn.00441b30
add esp, 4
call fcn.004498e0
cmp dword [eax + 0x54], 0
je 0x4201ae
push 0
call fcn.0044acf0
add esp, 4
call fcn.004719f0
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetClipCursor]
test eax, eax
je 0x4201ed
push 0x10
lea esi, [edi + 0x5c]
lea eax, [esp + 0x20]
push esi
push eax
call fcn.0041c1e0
add esp, 0xc
test eax, eax
jne 0x4201ed
push eax
call dword [sym.imp.USER32.dll_ClipCursor]
push 0x10
push 0
push esi
call fcn.004587c0
add esp, 0xc
mov dword [edi + 0x58], 0
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00401033
add esp, 0x20
ret
Function at 0x4291d0
Capabilities:
Contain obfuscated stackstrings
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc4
movaps xmm0, xmmword [0x521f90]
mov eax, 0x7fff
push ebx
push esi
mov esi, dword [esp + 0xd0]
mov word [esp + 0xb8], ax
movups xmmword [esp + 0xbc], xmm0
mov dword [esp + 8], 0x80007
mov al, byte [esi]
mov dword [esp + 0xc], 0xa0009
mov dword [esp + 0x10], 0xc000b
mov dword [esp + 0x14], 0xe000d
mov dword [esp + 0x18], 0x110010
mov dword [esp + 0x1c], 0x150013
mov dword [esp + 0x20], 0x190017
mov dword [esp + 0x24], 0x1f001c
mov dword [esp + 0x28], 0x250022
mov dword [esp + 0x2c], 0x2d0029
mov dword [esp + 0x30], 0x370032
mov dword [esp + 0x34], 0x42003c
mov dword [esp + 0x38], 0x500049
mov dword [esp + 0x3c], 0x610058
mov dword [esp + 0x40], 0x76006b
mov dword [esp + 0x44], 0x8f0082
mov dword [esp + 0x48], 0xad009d
mov dword [esp + 0x4c], 0xd100be
mov dword [esp + 0x50], 0xfd00e6
mov dword [esp + 0x54], 0x1330117
mov dword [esp + 0x58], 0x1730151
mov dword [esp + 0x5c], 0x1c10198
mov dword [esp + 0x60], 0x22001ee
mov dword [esp + 0x64], 0x2920256
mov dword [esp + 0x68], 0x31c02d4
mov dword [esp + 0x6c], 0x3c3036c
mov dword [esp + 0x70], 0x48e0424
mov dword [esp + 0x74], 0x5830502
mov dword [esp + 0x78], 0x6ab0610
mov dword [esp + 0x7c], 0x8120756
mov dword [esp + 0x80], 0x9c308e0
mov dword [esp + 0x84], 0xbd00abd
mov dword [esp + 0x88], 0xe4c0cff
mov dword [esp + 0x8c], 0x114c0fba
mov dword [esp + 0x90], 0x14ee1307
mov dword [esp + 0x94], 0x19541706
mov dword [esp + 0x98], 0x1ea51bdc
mov dword [esp + 0x9c], 0x251521b6
mov dword [esp + 0xa0], 0x2cdf28ca
mov dword [esp + 0xa4], 0x364b315b
mov dword [esp + 0xa8], 0x41b23bb9
mov dword [esp + 0xac], 0x4f7e4844
mov dword [esp + 0xb0], 0x602f5771
mov dword [esp + 0xb4], 0x746269ce
cmp al, 0x58
jle 0x42938f
mov dl, 0x58
jmp 0x429399
xor ecx, ecx
movzx edx, al
test al, al
cmovs edx, ecx
mov bl, byte [esp + 0xd8]
movsx eax, dl
movzx ecx, word [esp + eax*2 + 8]
movzx eax, bl
mov al, byte [esp + eax + 0xbc]
add al, dl
mov edx, ecx
shr edx, 3
mov byte [esi], al
test bl, 4
je 0x4293c2
add edx, ecx
test bl, 2
je 0x4293cd
mov eax, ecx
shr eax, 1
add edx, eax
test bl, 1
je 0x4293d7
shr ecx, 2
add edx, ecx
movsx eax, word [esp + 0xd4]
mov ecx, edx
neg ecx
test bl, 8
pop esi
cmove ecx, edx
add ecx, eax
pop ebx
cmp ecx, 0x7fff
jle 0x429401
mov eax, 0x7fff
add esp, 0xc4
ret
mov eax, 0xffff8000
cmp ecx, eax
cmovl ecx, eax
mov ax, cx
add esp, 0xc4
ret