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

Disassembly:
mov edx, dword [esp + 4]
xor eax, eax
test edx, edx
je 0x100bf1d1
mov cl, byte [edx]
test cl, cl
je 0x100bf1d1
ror eax, 0x1f
lea edx, [edx + 1]
movzx ecx, cl
xor eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x100bf1c0
ret

Function at 0x100bf465
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x18
mov eax, dword [ecx]
inc eax
push esi
cmp eax, 0xa
ja case.0x100bf434.0
jmp dword [eax*4 + 0x100bf5e8]
movsd xmm1, qword [ecx + 8]
xorps xmm0, xmm0
comisd xmm0, xmm1
jbe 0x100bf450
xorps xmm1, xmmword [0x102329b0]
movsd xmm0, qword [0x1023a4f8]
minsd xmm0, xmm1
pop esi
add esp, 0x18
jmp fcn.101f5480
mov edx, dword [ecx + 8]
test dl, 1
je 0x100bf472
and edx, 0xfffffffe
add edx, ecx
xor ecx, ecx
test edx, edx
je 0x100bf491
mov al, byte [edx]
test al, al
je 0x100bf491
nop
ror ecx, 0x1f
lea edx, [edx + 1]
movzx eax, al
xor ecx, eax
mov al, byte [edx]
test al, al
jne 0x100bf480
mov eax, ecx
pop esi
add esp, 0x18
ret
mov eax, dword [ecx + 8]
pop esi
add esp, 0x18
ret
mov eax, dword [ecx + 8]
xorps xmm3, xmm3
movsd xmm2, qword [0x102329b0]
movsd xmm0, qword [eax]
comisd xmm3, xmm0
jbe 0x100bf4bb
xorps xmm0, xmm2
movsd xmm4, qword [0x1023a4f8]
movaps xmm1, xmm4
minsd xmm1, xmm0
movsd xmm0, qword [eax + 8]
comisd xmm3, xmm0
movsd qword [esp + 4], xmm1
jbe 0x100bf4de
xorps xmm0, xmm2
movaps xmm1, xmm4
minsd xmm1, xmm0
movsd xmm0, qword [eax + 0x10]
comisd xmm3, xmm0
movsd qword [esp + 0xc], xmm1
jbe 0x100bf4f9
xorps xmm0, xmm2
movaps xmm1, xmm4
minsd xmm1, xmm0
movsd qword [esp + 0x14], xmm1
movsd xmm1, qword [eax + 0x18]
comisd xmm3, xmm1
jbe 0x100bf514
xorps xmm1, xmm2
minsd xmm4, xmm1
movaps xmm0, xmm4
call fcn.101f5480
movsd xmm0, qword [esp + 0x14]
mov esi, eax
call fcn.101f5480
movsd xmm0, qword [esp + 0xc]
xor esi, eax
call fcn.101f5480
movsd xmm0, qword [esp + 4]
xor esi, eax
call fcn.101f5480
xor eax, esi
pop esi
add esp, 0x18
ret
mov eax, dword [ecx + 8]
test al, 1
je 0x100bf55a
and eax, 0xfffffffe
add eax, ecx
mov eax, dword [eax + 4]
pop esi
add esp, 0x18
ret
mov esi, dword [ecx + 8]
xor edx, edx
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x100bf585
mov al, byte [ecx]
test al, al
je 0x100bf585
ror edx, 0x1f
lea ecx, [ecx + 1]
movzx eax, al
xor edx, eax
mov al, byte [ecx]
test al, al
jne 0x100bf574
mov esi, dword [esi + 0x18]
xor ecx, ecx
test esi, esi
je 0x100bf5a5
mov al, byte [esi]
test al, al
je 0x100bf5a5
ror ecx, 0x1f
lea esi, [esi + 1]
movzx eax, al
xor ecx, eax
mov al, byte [esi]
test al, al
jne 0x100bf594
xor ecx, edx
mov eax, ecx
pop esi
add esp, 0x18
ret
mov eax, dword [ecx + 8]
test al, 1
je 0x100bf5ba
and eax, 0xfffffffe
add eax, ecx
pop esi
add esp, 0x18
mov dword [esp + 4], eax
jmp sym.project.dll_FcLangSetHash
mov eax, dword [ecx + 8]
test al, 1
je 0x100bf5d3
and eax, 0xfffffffe
add eax, ecx
pop esi
add esp, 0x18
mov dword [esp + 4], eax
jmp fcn.100d47b0
xor eax, eax
pop esi
add esp, 0x18
ret
Function at 0x100bf562
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x18
mov eax, dword [ecx]
inc eax
push esi
cmp eax, 0xa
ja case.0x100bf434.0
jmp dword [eax*4 + 0x100bf5e8]
movsd xmm1, qword [ecx + 8]
xorps xmm0, xmm0
comisd xmm0, xmm1
jbe 0x100bf450
xorps xmm1, xmmword [0x102329b0]
movsd xmm0, qword [0x1023a4f8]
minsd xmm0, xmm1
pop esi
add esp, 0x18
jmp fcn.101f5480
mov edx, dword [ecx + 8]
test dl, 1
je 0x100bf472
and edx, 0xfffffffe
add edx, ecx
xor ecx, ecx
test edx, edx
je 0x100bf491
mov al, byte [edx]
test al, al
je 0x100bf491
nop
ror ecx, 0x1f
lea edx, [edx + 1]
movzx eax, al
xor ecx, eax
mov al, byte [edx]
test al, al
jne 0x100bf480
mov eax, ecx
pop esi
add esp, 0x18
ret
mov eax, dword [ecx + 8]
pop esi
add esp, 0x18
ret
mov eax, dword [ecx + 8]
xorps xmm3, xmm3
movsd xmm2, qword [0x102329b0]
movsd xmm0, qword [eax]
comisd xmm3, xmm0
jbe 0x100bf4bb
xorps xmm0, xmm2
movsd xmm4, qword [0x1023a4f8]
movaps xmm1, xmm4
minsd xmm1, xmm0
movsd xmm0, qword [eax + 8]
comisd xmm3, xmm0
movsd qword [esp + 4], xmm1
jbe 0x100bf4de
xorps xmm0, xmm2
movaps xmm1, xmm4
minsd xmm1, xmm0
movsd xmm0, qword [eax + 0x10]
comisd xmm3, xmm0
movsd qword [esp + 0xc], xmm1
jbe 0x100bf4f9
xorps xmm0, xmm2
movaps xmm1, xmm4
minsd xmm1, xmm0
movsd qword [esp + 0x14], xmm1
movsd xmm1, qword [eax + 0x18]
comisd xmm3, xmm1
jbe 0x100bf514
xorps xmm1, xmm2
minsd xmm4, xmm1
movaps xmm0, xmm4
call fcn.101f5480
movsd xmm0, qword [esp + 0x14]
mov esi, eax
call fcn.101f5480
movsd xmm0, qword [esp + 0xc]
xor esi, eax
call fcn.101f5480
movsd xmm0, qword [esp + 4]
xor esi, eax
call fcn.101f5480
xor eax, esi
pop esi
add esp, 0x18
ret
mov eax, dword [ecx + 8]
test al, 1
je 0x100bf55a
and eax, 0xfffffffe
add eax, ecx
mov eax, dword [eax + 4]
pop esi
add esp, 0x18
ret
mov esi, dword [ecx + 8]
xor edx, edx
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x100bf585
mov al, byte [ecx]
test al, al
je 0x100bf585
ror edx, 0x1f
lea ecx, [ecx + 1]
movzx eax, al
xor edx, eax
mov al, byte [ecx]
test al, al
jne 0x100bf574
mov esi, dword [esi + 0x18]
xor ecx, ecx
test esi, esi
je 0x100bf5a5
mov al, byte [esi]
test al, al
je 0x100bf5a5
ror ecx, 0x1f
lea esi, [esi + 1]
movzx eax, al
xor ecx, eax
mov al, byte [esi]
test al, al
jne 0x100bf594
xor ecx, edx
mov eax, ecx
pop esi
add esp, 0x18
ret
mov eax, dword [ecx + 8]
test al, 1
je 0x100bf5ba
and eax, 0xfffffffe
add eax, ecx
pop esi
add esp, 0x18
mov dword [esp + 4], eax
jmp sym.project.dll_FcLangSetHash
mov eax, dword [ecx + 8]
test al, 1
je 0x100bf5d3
and eax, 0xfffffffe
add eax, ecx
pop esi
add esp, 0x18
mov dword [esp + 4], eax
jmp fcn.100d47b0
xor eax, eax
pop esi
add esp, 0x18
ret
Function at 0x100c6770
Capabilities:
Hash data using djb2

Disassembly:
mov ecx, dword [esp + 4]
mov eax, 0x1505
push edi
lea edx, [ecx + 0x2c]
lea edi, [ecx + 0x234]
cmp edx, edi
je 0x100c67a0
push esi
movzx esi, word [edx]
add edx, 2
test esi, esi
je 0x100c679f
mov ecx, eax
shl eax, 5
add eax, esi
add eax, ecx
cmp edx, edi
jne 0x100c6788
pop esi
and eax, 0x7fffffff
pop edi
ret
Function at 0x100ca850
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
xor eax, eax
mov edx, dword [esi + 4]
cmp edx, 8
jb 0x100ca864
lea edx, [eax + 8]
jmp 0x100ca868
test edx, edx
jle 0x100ca87a
lea ecx, [esi + 8]
nop dword [eax + eax]
xor eax, dword [ecx]
lea ecx, [ecx + 4]
sub edx, 1
jne 0x100ca870
mov ecx, dword [esi]
pop esi
test ecx, ecx
je 0x100ca884
xor eax, dword [ecx + 4]
ret

Function at 0x100ce590
Capabilities:
Create directory

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov ecx, esi
push edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100ce5a0
sub ecx, edx
je 0x100ce628
push esi
call sym.project.dll_FcStrDirname
mov edi, eax
add esp, 4
test edi, edi
je 0x100ce628
push 0
push edi
call fcn.1020ab96
add esp, 8
test eax, eax
je 0x100ce5e6
push 0
push edi
call fcn.1020ab96
add esp, 8
cmp eax, 0xffffffff
jne 0x100ce617
push edi
call fcn.100ce590
add esp, 4
test eax, eax
je 0x100ce617
push esi
call fcn.1020bf3f
add esp, 4
test eax, eax
jne 0x100ce617
push 0x1ed
push esi
call fcn.1020ebba
add esp, 8
test eax, eax
jne 0x100ce617
push edi
lea esi, [eax + 1]
call sym.project.dll_FcStrFree
add esp, 4
mov eax, esi
pop edi
pop esi
pop ecx
ret
push edi
xor esi, esi
call sym.project.dll_FcStrFree
add esp, 4
mov eax, esi
pop edi
pop esi
pop ecx
ret
pop edi
xor eax, eax
pop esi
pop ecx
ret
Function at 0x100d5ae0
Capabilities:
Create directory

Disassembly:
sub esp, 0x3c
mov eax, dword [0x102d94c0]
xor eax, esp
mov dword [esp + 0x38], eax
push esi
mov esi, dword [esp + 0x44]
push dword [esi + 8]
call fcn.1020bf3f
add esp, 4
test eax, eax
jns 0x100d5b65
lea eax, [esp + 0xc]
push eax
push dword [esi + 8]
call fcn.100d4870
add esp, 8
test eax, eax
js 0x100d5b53
push 0
call fcn.10207acd
sub eax, dword [esp + 0x30]
add esp, 4
cmp eax, 0x258
jle 0x100d5b53
push dword [esi + 8]
call fcn.10210c38
add esp, 4
test eax, eax
jne 0x100d5b53
push esi
call sym.project.dll_FcAtomicLock
add esp, 4
pop esi
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.101f469d
add esp, 0x3c
ret
xor eax, eax
pop esi
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.101f469d
add esp, 0x3c
ret
push dword [esi + 4]
call fcn.1020c2de
mov ecx, dword [esp + 0x40]
add esp, 4
mov eax, 1
pop esi
xor ecx, esp
call fcn.101f469d
add esp, 0x3c
ret

Function at 0x100d5b90
Capabilities:
Move file

Disassembly:
push esi
mov esi, dword [esp + 8]
push dword [esi]
call fcn.1020c2de
push dword [esi]
push dword [esi + 4]
call fcn.1020c19c
xor ecx, ecx
add esp, 0xc
test eax, eax
setns cl
mov eax, ecx
pop esi
ret
Function at 0x100dc030
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [eax + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 0x78]
test eax, eax
je 0x100dc055
push dword [edi + 0x74]
call eax
add esp, 4
push ebx
push esi
mov esi, dword [edi + 0x54]
test esi, esi
je 0x100dc0bb
nop
mov ebx, dword [esi + 4]
xor edx, edx
mov eax, dword [ebx + 0x60]
mov eax, dword [eax + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x54]
test eax, eax
je 0x100dc0b4
mov ecx, dword [eax + 8]
cmp eax, esi
je 0x100dc087
mov edx, eax
mov eax, ecx
test eax, eax
jne 0x100dc076
jmp 0x100dc0b4
test edx, edx
jne 0x100dc090
mov dword [ebx + 0x54], ecx
jmp 0x100dc093
mov dword [edx + 8], ecx
mov eax, dword [esi + 0x14]
test eax, eax
je 0x100dc0a0
push esi
call eax
add esp, 4
push esi
call fcn.100dc450
mov eax, dword [esp + 0x20]
push esi
push eax
mov eax, dword [eax + 8]
call eax
add esp, 0xc
mov esi, dword [edi + 0x54]
test esi, esi
jne 0x100dc060
lea eax, [edi + 0x6c]
test eax, eax
je 0x100dc13e
test ebp, ebp
je 0x100dc13e
mov ebx, dword [eax]
test ebx, ebx
je 0x100dc131
nop dword [eax]
mov esi, dword [ebx + 8]
mov eax, dword [ebx + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x100dc0e7
push esi
call eax
add esp, 4
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x3c]
test eax, eax
je 0x100dc0fb
push esi
call eax
add esp, 4
mov eax, dword [esi + 0x28]
test eax, eax
je 0x100dc10c
push eax
mov eax, dword [ebp + 8]
push ebp
call eax
add esp, 8
mov dword [esi + 0x28], 0
mov eax, dword [ebp + 8]
push esi
push ebp
call eax
mov eax, dword [ebp + 8]
push ebx
push ebp
call eax
mov eax, dword [esp + 0x2c]
add esp, 0x10
mov ebx, eax
test eax, eax
jne 0x100dc0d0
lea eax, [edi + 0x6c]
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [edi + 0x30]
mov dword [edi + 0x58], 0
test eax, eax
je 0x100dc152
push edi
call eax
add esp, 4
push ebp
push edi
call fcn.100dbfb0
mov eax, dword [esp + 0x18]
add esp, 8
mov eax, dword [eax + 0x34]
test eax, eax
je 0x100dc16d
push edi
call eax
add esp, 4
mov esi, dword [edi + 0x68]
mov eax, dword [edi + 8]
mov dword [esp + 0x20], eax
test esi, esi
je 0x100dc19f
mov eax, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
test eax, eax
je 0x100dc18b
push esi
call eax
add esp, 4
test dword [esp + 0x20], 0x400
jne 0x100dc19f
mov eax, dword [ebx + 8]
push esi
push ebx
call eax
add esp, 8
mov eax, dword [edi + 0x80]
mov dword [edi + 0x68], 0
pop esi
pop ebx
test eax, eax
je 0x100dc1c6
push eax
mov eax, dword [ebp + 8]
push ebp
call eax
add esp, 8
mov dword [edi + 0x80], 0
mov eax, dword [ebp + 8]
push edi
push ebp
call eax
add esp, 8
pop edi
pop ebp
pop ecx
ret
Function at 0x1012bde0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x14
xorps xmm0, xmm0
push ebx
push ebp
mov ebp, dword [esp + 0x20]
lea ebx, [ebp + 0x33c]
movups xmmword [ebx], xmm0
push esi
movq qword [ebx + 0x10], xmm0
movzx ecx, word [ebp + 0x98]
mov eax, dword [ebp + 0x9c]
shl ecx, 4
add ecx, eax
push edi
cmp eax, ecx
jae 0x1012bfcd
cmp dword [eax], 0x42444620
jne 0x1012be25
mov esi, dword [eax + 0xc]
test esi, esi
jne 0x1012be39
add eax, 0x10
cmp eax, ecx
jb 0x1012be16
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
add esp, 0x14
ret
push dword [eax + 8]
mov edi, dword [esp + 0x30]
push edi
call fcn.100db430
add esp, 8
test eax, eax
jne 0x1012bfcd
cmp esi, 8
jb 0x1012bfcd
push ebx
push esi
push edi
call fcn.100daab0
add esp, 0xc
mov dword [esp + 0x20], eax
test eax, eax
jne 0x1012bfcd
mov eax, dword [ebx]
lea ecx, [eax + esi]
mov dword [ebp + 0x340], ecx
mov ecx, eax
movzx edi, byte [ecx + 2]
movzx eax, byte [ecx + 3]
movzx edx, byte [ecx + 5]
shl edi, 8
or edi, eax
movzx eax, byte [ecx + 4]
shl eax, 8
or edx, eax
movzx eax, byte [ecx + 6]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 7]
movzx ecx, byte [ecx + 1]
shl edx, 8
or edx, eax
mov eax, dword [ebx]
movzx eax, byte [eax]
shl eax, 8
or ecx, eax
cmp ecx, 1
jne 0x1012bfb5
cmp edx, 8
jb 0x1012bfb5
lea eax, [edx - 8]
shr eax, 2
cmp eax, edi
jb 0x1012bfb5
lea eax, [edx + 1]
cmp eax, esi
ja 0x1012bfb5
mov eax, dword [ebx]
sub esi, edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [ebp + 0x34c], edi
mov dword [ebp + 0x348], esi
lea ecx, [eax + edx]
mov dword [ebp + 0x344], ecx
lea edx, [eax + 8]
lea eax, [edx + edi*4]
mov dword [esp + 0x10], eax
cmp edi, 2
jb 0x1012bf71
lea esi, [edi - 2]
xor ebx, ebx
shr esi, 1
inc esi
xor ebp, ebp
movzx ecx, byte [edx + 2]
sub edi, 2
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
lea eax, [ecx + ecx*4]
movzx ecx, byte [edx + 6]
lea ebx, [ebx + eax*2]
shl ecx, 8
movzx eax, byte [edx + 7]
add edx, 8
or ecx, eax
lea eax, [ecx + ecx*4]
lea ebp, [ebp + eax*2]
sub esi, 1
jne 0x1012bf25
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x14], ebx
mov esi, dword [ebp + 0x344]
lea ebx, [ebp + 0x33c]
jmp 0x1012bf73
mov esi, ecx
test edi, edi
je 0x1012bf90
movzx ecx, byte [edx + 2]
movzx eax, byte [edx + 3]
mov edx, dword [esp + 0x10]
shl ecx, 8
or ecx, eax
lea eax, [ecx + ecx*4]
lea edx, [edx + eax*2]
jmp 0x1012bf94
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x18]
add eax, edx
cmp eax, esi
ja 0x1012bfb5
mov eax, dword [esp + 0x20]
pop edi
pop esi
mov byte [ebp + 0x350], 1
pop ebp
pop ebx
add esp, 0x14
ret
push ebx
push dword [esp + 0x30]
call fcn.100db3f0
xorps xmm0, xmm0
add esp, 8
movups xmmword [ebx], xmm0
movq qword [ebx + 0x10], xmm0
mov eax, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x10136320
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x10136334
lea eax, [esi + 0x28]
pop esi
add esp, 0xc
ret
push ebx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10136363
pop ebx
mov eax, 1
pop esi
add esp, 0xc
ret
push ebp
push edi
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10136475
mov ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x10136475
mov eax, dword [esp + 0x14]
jl 0x1013639c
cmp eax, 0x7fffffff
ja 0x10136475
or eax, ecx
je 0x10136475
push 0
push 0
push 0
push 2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
test edi, edi
je 0x10136475
mov ecx, dword [esp + 0x14]
push 0
push 0
push 0
push 4
push edi
mov dword [esi + 4], ecx
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push edi
mov dword [esi], eax
call ebp
cmp dword [esi], 0
je 0x101363ed
mov eax, 0x101364f0
jmp 0x1013643d
push dword [esi + 4]
mov eax, dword [esi + 0x1c]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi], eax
test eax, eax
je 0x10136475
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
xor edi, edi
nop dword [eax + eax]
push 0
lea eax, [esp + 0x14]
push eax
mov eax, dword [esi + 4]
sub eax, edi
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call ebp
test eax, eax
je 0x10136460
add edi, dword [esp + 0x10]
cmp edi, dword [esi + 4]
jne 0x10136410
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x101364c0
push ebx
mov dword [esi + 0x18], eax
call ebp
mov eax, dword [esi]
pop edi
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x20]
pop ebp
mov dword [esi + 0x10], eax
xor eax, eax
pop ebx
mov dword [esi + 0x14], 0
pop esi
add esp, 0xc
ret
push dword [esi]
mov eax, dword [esi + 0x1c]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call ebp
pop edi
pop ebp
pop ebx
mov dword [esi], 0
mov eax, 0x51
mov dword [esi + 4], 0
mov dword [esi + 8], 0
pop esi
add esp, 0xc
ret
Function at 0x1013de30
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x102f1ea0], 0
jne 0x1013de49
push 0
push 0x10001
call fcn.1013e230
add esp, 8
ret
jmp fcn.1013ecb0

Function at 0x1013deb0
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x102f1ea0], 0
jne 0x1013dec9
push 0
push 0x10001
call fcn.1013e230
add esp, 8
ret
jmp 0x1013f3c0
call dword [sym.imp.USER32.dll_WaitMessage]
jmp fcn.1013ecb0

Function at 0x1013e530
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x102f1ea0], 0
jne 0x1013e5dd
push 0x2220
push 0
push 0x102f1ea0
call fcn.101f69f0
movq xmm0, qword [0x102d9144]
add esp, 0xc
mov eax, dword [0x102d914c]
movq qword [0x102f1ea4], xmm0
mov dword [0x102f1eac], eax
call fcn.10142f40
test eax, eax
je 0x1013e5e3
push 0x102f314c
call fcn.1013e750
add esp, 4
test eax, eax
je 0x1013e5e3
push 0x102f313c
call fcn.1013e770
add esp, 4
test eax, eax
je 0x1013e5e3
push 0x102f3144
call fcn.1013e770
add esp, 4
test eax, eax
je 0x1013e5e3
push 0x102f40c0
push 0x102f313c
call fcn.1013e820
add esp, 8
call fcn.1013c660
mov dword [0x102f1ea0], 1
call fcn.10141f80
mov dword [0x102f3168], eax
mov dword [0x102f316c], edx
call fcn.1013dc90
mov eax, 1
ret
call fcn.1013e610
xor eax, eax
ret

Function at 0x1013e770
Capabilities:
Allocate thread local storage

Disassembly:
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, dword [esp + 4]
mov dword [ecx + 4], eax
cmp eax, 0xffffffff
jne 0x1013e797
push str.Win32:_Failed_to_allocate_TLS_index
push 0x10008
call fcn.10142cf0
add esp, 8
xor eax, eax
ret
mov dword [ecx], 1
mov eax, 1
ret
Function at 0x1013e850
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
push edi
push ebx
push ebp
push esi
call fcn.1013f700
add esp, 0xc
test eax, eax
je 0x1013e981
mov edi, dword [esp + 0x1c]
cmp dword [edi], 0
je 0x1013e8f4
mov eax, dword [edi + 4]
cmp eax, 0x36001
jne 0x1013e89d
call fcn.10143e90
test eax, eax
je 0x1013e981
push ebx
push edi
push esi
call fcn.10143a90
jmp 0x1013e8d7
cmp eax, 0x36002
jne 0x1013e8bb
call fcn.101450c0
test eax, eax
je 0x1013e981
push ebx
push edi
push esi
call fcn.10144c30
jmp 0x1013e8d7
cmp eax, 0x36003
jne 0x1013e8e2
call fcn.10145c10
test eax, eax
je 0x1013e981
push ebx
push edi
push esi
call fcn.10145a00
add esp, 0xc
test eax, eax
je 0x1013e981
push edi
push esi
call fcn.1013bbc0
add esp, 8
test eax, eax
je 0x1013e981
cmp dword [esi + 0x3c], 0
je 0x1013e954
push 8
push dword [esi + 0x2ac]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 0x2ac]
call dword [sym.imp.USER32.dll_BringWindowToTop]
push dword [esi + 0x2ac]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push dword [esi + 0x2ac]
call dword [sym.imp.USER32.dll_SetFocus]
push esi
call fcn.1013f4c0
push esi
call fcn.1013fe70
add esp, 8
cmp dword [ebp + 0x28], 0
je 0x1013e977
push esi
call fcn.1013c5d0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret
cmp dword [ebp + 0x10], 0
je 0x1013e977
push 8
push dword [esi + 0x2ac]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp + 0x18], 0
je 0x1013e977
push esi
call fcn.1013ea40
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x1013fbb0
Capabilities:
Register raw input devices

Disassembly:
sub esp, 0x14
mov eax, dword [0x102d94c0]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 4]
push edi
push eax
mov dword [0x102f3f58], ebx
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x1013fc0e
lea eax, [esp + 8]
push eax
push dword [ebx + 0x2ac]
call dword [sym.imp.USER32.dll_ScreenToClient]
movd xmm0, dword [esp + 8]
cvtdq2pd xmm0, xmm0
movsd qword [0x102f3f48], xmm0
movd xmm0, dword [esp + 0xc]
cvtdq2pd xmm0, xmm0
movsd qword [0x102f3f50], xmm0
cmp dword [ebx + 0x68], 0x34001
jne 0x1013fc33
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x1013fc23
push dword [eax + 4]
jmp 0x1013fc35
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
jmp 0x1013fc35
push 0
call dword [sym.imp.USER32.dll_SetCursor]
push ebx
call fcn.1013c5d0
add esp, 4
lea eax, [esp + 8]
push eax
push dword [ebx + 0x2ac]
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [esp + 8]
push eax
push dword [ebx + 0x2ac]
call dword [sym.imp.USER32.dll_ClientToScreen]
lea eax, [esp + 0x10]
push eax
push dword [ebx + 0x2ac]
call dword [sym.imp.USER32.dll_ClientToScreen]
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_ClipCursor]
cmp dword [ebx + 0x1e8], 0
je 0x1013fcca
mov eax, dword [ebx + 0x2ac]
push 0xc
mov dword [esp + 0x14], eax
lea eax, [esp + 0xc]
push 1
push eax
mov dword [esp + 0x14], 0x20001
mov dword [esp + 0x18], 0
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x1013fcca
push str.Win32:_Failed_to_register_raw_input_device
push 0x10008
call fcn.10142cf0
add esp, 8
mov ecx, dword [esp + 0x18]
pop edi
pop ebx
xor ecx, esp
call fcn.101f469d
add esp, 0x14
ret

Function at 0x1013fce0
Capabilities:
Register raw input devices

Disassembly:
sub esp, 0xc
push 0xc
push 1
lea eax, [esp + 8]
mov dword [esp + 8], 0x20001
push eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 0
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x1013fd20
push str.Win32:_Failed_to_remove_raw_input_device
push 0x10008
call fcn.10142cf0
add esp, 8
add esp, 0xc
ret
Function at 0x1013fd30
Capabilities:
Register raw input devices

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
cmp dword [esi + 0x1e8], 0
je 0x1013fd7e
push 0xc
push 1
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x20001
push eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 0
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x1013fd7e
push str.Win32:_Failed_to_remove_raw_input_device
push 0x10008
call fcn.10142cf0
add esp, 8
push 0
mov dword [0x102f3f58], 0
call dword [sym.imp.USER32.dll_ClipCursor]
cvttsd2si eax, qword [0x102f3f50]
cvttsd2si ecx, qword [0x102f3f48]
mov dword [esp + 8], eax
mov dword [esi + 0x2dc], eax
lea eax, [esp + 4]
push eax
push dword [esi + 0x2ac]
mov dword [esp + 0xc], ecx
mov dword [esi + 0x2d8], ecx
call dword [sym.imp.USER32.dll_ClientToScreen]
push dword [esp + 8]
push dword [esp + 8]
call dword [sym.imp.USER32.dll_SetCursorPos]
cmp dword [esi + 0x68], 0x34001
jne 0x1013fe0a
mov eax, dword [esi + 0x40]
test eax, eax
je 0x1013fdf1
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SetCursor]
pop esi
add esp, 0xc
ret
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
pop esi
add esp, 0xc
ret
push 0
call dword [sym.imp.USER32.dll_SetCursor]
pop esi
add esp, 0xc
ret

Function at 0x1013fe20
Capabilities:
Register raw input devices

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
push 0xc
push 1
mov dword [esp + 8], 0x20001
mov eax, dword [eax + 0x2ac]
mov dword [esp + 0x10], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0x10], 0
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x1013fe66
push str.Win32:_Failed_to_register_raw_input_device
push 0x10008
call fcn.10142cf0
add esp, 8
add esp, 0xc
ret

Function at 0x1013ff90
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
push esi
push edi
push 0x10
call ebp
movzx esi, ax
push 0x11
shr esi, 0xf
call ebp
mov edi, esi
or edi, 2
test ax, ax
push 0x12
cmovns edi, esi
call ebp
mov ebx, edi
or ebx, 4
test ax, ax
push 0x5c
cmovns ebx, edi
call ebp
push 0x5b
mov si, ax
call ebp
mov edi, ebx
or edi, 8
or si, ax
push 0x14
cmovns edi, ebx
call ebp
mov esi, edi
or esi, 0x10
test al, 1
push 0x90
cmove esi, edi
call ebp
mov ecx, esi
or ecx, 0x20
test al, 1
pop edi
cmove ecx, esi
pop esi
pop ebp
mov eax, ecx
pop ebx
ret