joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47ce80
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
not ebx
push edi
mov edi, dword [ebp + 0xc]
mov eax, ebx
test edi, edi
je 0x47cee3
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x47cec6
cmp edi, 2
jb 0x47cec6
cmp byte [esi], cl
jne 0x47cec6
cmp byte [esi + 1], cl
jne 0x47cec6
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x511d00]
jmp 0x47ce97
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x511d00]
test edi, edi
jne 0x47ce97
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x47cf18
nop word [eax + eax]
cmp cl, 0x23
jne 0x47ceff
cmp byte [esi], cl
jne 0x47ceff
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x511d00]
test cl, cl
jne 0x47cef0
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
Function at 0x47d2e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x14
xor edx, edx
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x10], edx
test esi, esi
je 0x47d300
cmp eax, esi
jae 0x47d475
mov cl, byte [eax]
mov byte [ebp - 3], cl
test cl, cl
je 0x47d475
movzx ecx, cl
xor ebx, ebx
shr ecx, 3
mov edx, esi
movsx ecx, byte [ecx + 0x512554]
test ecx, ecx
mov dword [ebp - 0xc], ecx
sete bl
add ebx, ecx
mov dword [ebp - 0x14], ebx
test esi, esi
jne 0x47d332
lea edx, [ebx + eax]
cmp eax, edx
lea esi, [eax + 1]
sbb cl, cl
and cl, byte [ebp - 3]
mov byte [ebp - 4], cl
cmp esi, edx
jae 0x47d347
mov bh, byte [esi]
jmp 0x47d349
xor bh, bh
lea esi, [eax + 2]
mov byte [ebp - 3], bh
cmp esi, edx
jae 0x47d357
mov ch, byte [esi]
jmp 0x47d359
xor ch, ch
lea esi, [eax + 3]
mov byte [ebp - 2], ch
cmp esi, edx
jae 0x47d367
mov bl, byte [esi]
jmp 0x47d369
xor bl, bl
movzx edx, ch
movzx ecx, cl
movzx esi, bh
movzx edi, bl
mov byte [ebp - 1], bl
mov ebx, dword [ebp - 0xc]
mov ebx, dword [ebx*4 + 0x512574]
and ebx, ecx
mov ecx, esi
and ecx, 0x3f
mov dword [ebp - 8], ebx
shl dword [ebp - 8], 6
and esi, 0xc0
or dword [ebp - 8], ecx
mov ecx, edx
shl dword [ebp - 8], 6
and ecx, 0x3f
or dword [ebp - 8], ecx
and edx, 0xc0
shl dword [ebp - 8], 6
mov ecx, edi
mov ebx, dword [ebp - 8]
and ecx, 0x3f
or ebx, ecx
shr edi, 2
mov ecx, dword [ebp - 0xc]
or edi, edx
shr edi, 2
or edi, esi
shr edi, 2
mov ecx, dword [ecx*4 + 0x51259c]
shr ebx, cl
mov esi, ebx
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 0xc]
cmp esi, dword [ebx*4 + 0x512588]
sbb ecx, ecx
xor edx, edx
and ecx, 0x40
or edi, ecx
mov ecx, esi
and ecx, 0xfffff800
cmp ecx, 0xd800
mov ecx, 0x80
cmove edx, ecx
mov ecx, 0xffff
or edi, edx
cmp ecx, esi
sbb ecx, ecx
and ecx, 0x100
or edi, ecx
mov ecx, dword [ebx*4 + 0x5125b0]
mov ebx, dword [ebp - 0x14]
xor edi, 0x2a
sar edi, cl
test edi, edi
je 0x47d45c
xor edx, edx
cmp byte [ebp - 4], dl
setne dl
xor ecx, ecx
cmp byte [ebp - 1], cl
setne cl
add edx, ecx
xor ecx, ecx
cmp byte [ebp - 2], cl
setne cl
add edx, ecx
xor ecx, ecx
cmp byte [ebp - 3], cl
setne cl
add edx, ecx
cmp ebx, edx
cmovl edx, ebx
add eax, edx
mov edx, dword [ebp - 0x10]
inc edx
jmp 0x47d2ee
add eax, ebx
test esi, esi
je 0x47d46b
mov edx, dword [ebp - 0x10]
inc edx
jmp 0x47d2ee
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47d4e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
dec eax
push ebx
mov ebx, dword [ebp + 8]
mov ecx, ebx
mov dword [ebp - 0x10], ecx
lea eax, [ebx + eax*2]
mov dword [ebp - 0x18], eax
cmp ebx, eax
mov eax, dword [ebp + 0x10]
jae 0x47d69e
push esi
mov esi, dword [ebp + 0x14]
push edi
nop dword [eax]
test esi, esi
je 0x47d51c
cmp eax, esi
jae 0x47d699
mov bl, byte [eax]
mov byte [ebp + 0xf], bl
test bl, bl
je 0x47d699
movzx ecx, bl
mov edx, esi
shr ecx, 3
xor ebx, ebx
movsx ecx, byte [ecx + 0x512554]
test ecx, ecx
mov dword [ebp - 0xc], ecx
sete bl
add ebx, ecx
mov dword [ebp - 0x14], ebx
test esi, esi
jne 0x47d54e
lea edx, [ebx + eax]
cmp eax, edx
lea esi, [eax + 1]
sbb cl, cl
and cl, byte [ebp + 0xf]
mov byte [ebp - 3], cl
cmp esi, edx
jae 0x47d563
mov bh, byte [esi]
jmp 0x47d565
xor bh, bh
lea esi, [eax + 2]
mov byte [ebp - 2], bh
cmp esi, edx
jae 0x47d573
mov ch, byte [esi]
jmp 0x47d575
xor ch, ch
lea esi, [eax + 3]
mov byte [ebp - 1], ch
cmp esi, edx
jae 0x47d583
mov bl, byte [esi]
jmp 0x47d585
xor bl, bl
movzx edx, ch
movzx ecx, cl
movzx esi, bh
movzx edi, bl
mov byte [ebp + 0xf], bl
mov ebx, dword [ebp - 0xc]
mov ebx, dword [ebx*4 + 0x512574]
and ebx, ecx
mov ecx, esi
and ecx, 0x3f
mov dword [ebp - 8], ebx
shl dword [ebp - 8], 6
and esi, 0xc0
or dword [ebp - 8], ecx
mov ecx, edx
shl dword [ebp - 8], 6
and ecx, 0x3f
or dword [ebp - 8], ecx
and edx, 0xc0
shl dword [ebp - 8], 6
mov ecx, edi
mov ebx, dword [ebp - 8]
and ecx, 0x3f
or ebx, ecx
shr edi, 2
mov ecx, dword [ebp - 0xc]
or edi, edx
shr edi, 2
or edi, esi
shr edi, 2
mov ecx, dword [ecx*4 + 0x51259c]
shr ebx, cl
mov esi, ebx
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 0xc]
cmp esi, dword [ebx*4 + 0x512588]
sbb ecx, ecx
xor edx, edx
and ecx, 0x40
or edi, ecx
mov ecx, esi
and ecx, 0xfffff800
cmp ecx, 0xd800
mov ecx, 0x80
cmove edx, ecx
mov ecx, 0xffff
or edi, edx
cmp ecx, esi
sbb ecx, ecx
and ecx, 0x100
or edi, ecx
mov ecx, dword [ebx*4 + 0x5125b0]
mov ebx, dword [ebp - 0x14]
xor edi, 0x2a
sar edi, cl
test edi, edi
je 0x47d676
xor edx, edx
mov esi, 0xfffd
cmp byte [ebp + 0xf], dl
setne dl
xor ecx, ecx
cmp byte [ebp - 1], cl
setne cl
add edx, ecx
xor ecx, ecx
cmp byte [ebp - 2], cl
setne cl
add edx, ecx
xor ecx, ecx
cmp byte [ebp - 3], cl
setne cl
add edx, ecx
cmp ebx, edx
cmovl edx, ebx
add eax, edx
jmp 0x47d67c
add eax, ebx
test esi, esi
je 0x47d696
mov ecx, dword [ebp - 0x10]
mov word [ecx], si
add ecx, 2
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x10], ecx
cmp ecx, dword [ebp - 0x18]
jb 0x47d510
jmp 0x47d699
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp + 8]
pop edi
pop esi
xor edx, edx
mov word [ecx], dx
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x47d6ac
mov dword [edx], eax
sub ecx, ebx
sar ecx, 1
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47f870
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x53b8], 0
lea esi, [edi + 0x53bc]
je 0x47f8eb
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x47f8a6
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.00492690
push dword [ebp + 0x10]
mov ecx, esi
mov dword [esi], 0
push dword [ebp + 0xc]
call fcn.00492060
mov edx, dword [esi]
mov ecx, 0x55b694
push dword [edi + 0x53b8]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x53c4]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebp
ret
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
call fcn.00492060
pop edi
pop esi
pop ebp
ret
Function at 0x484ba0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x55b690]
lea edx, [ebp - 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [eax + 0x3f04]
mov esi, 4
mov eax, dword [edi + 0xfc]
add edi, 0xfc
mov dword [ebp - 4], ecx
mov ebx, dword [edi + 8]
mov ebx, dword [ebx + eax*4 - 4]
not ebx
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x511d00]
sub esi, 1
jne 0x484bd5
mov eax, dword [0x55b690]
not ebx
cmp dword [eax + 0x3f28], ebx
jne 0x484c0d
push esi
push dword [ebp + 8]
push 4
push ebx
call fcn.0046df50
add esp, 0x10
mov ecx, dword [edi + 4]
mov esi, dword [edi]
cmp esi, ecx
jne 0x484c38
inc esi
test ecx, ecx
je 0x484c26
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x484c2b
mov eax, 8
cmp eax, esi
mov ecx, edi
cmovg esi, eax
push esi
call fcn.00492790
mov ecx, dword [edi]
mov eax, dword [edi + 8]
mov dword [eax + ecx*4], ebx
inc dword [edi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x484ce0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x55b690]
lea edx, [ebp - 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [eax + 0x3f04]
mov esi, 4
mov eax, dword [edi + 0xfc]
add edi, 0xfc
mov dword [ebp - 4], ecx
mov ebx, dword [edi + 8]
mov ebx, dword [ebx + eax*4 - 4]
not ebx
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x511d00]
sub esi, 1
jne 0x484d15
mov eax, dword [0x55b690]
not ebx
cmp dword [eax + 0x3f28], ebx
jne 0x484d4d
push esi
push dword [ebp + 8]
push 0xc
push ebx
call fcn.0046df50
add esp, 0x10
mov ecx, dword [edi + 4]
mov esi, dword [edi]
cmp esi, ecx
jne 0x484d78
inc esi
test ecx, ecx
je 0x484d66
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x484d6b
mov eax, 8
cmp eax, esi
mov ecx, edi
cmovg esi, eax
push esi
call fcn.00492790
mov ecx, dword [edi]
mov eax, dword [edi + 8]
mov dword [eax + ecx*4], ebx
inc dword [edi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x488230
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x55b690]
push esi
mov esi, dword [ebp + 8]
mov dword [eax + 0x536c], 0
test esi, esi
je 0x488289
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push edi
push eax
call fcn.00488290
push 0x512f4c
push esi
mov edi, eax
call fcn.0047ca30
mov esi, eax
add esp, 0xc
test esi, esi
je 0x488288
push esi
push dword [ebp + 8]
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
pop edi
pop esi
pop ebp
ret
Function at 0x48fa10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, dword [0x55b690]
cmp byte [edi + 0x5368], 0
lea eax, [edi + 0x20]
jne 0x48fb35
mov ecx, dword [eax]
push ebx
test ecx, ecx
je 0x48fb2d
push esi
push 0x512f48
push ecx
call fcn.0047ca30
mov esi, eax
add esp, 8
test esi, esi
je 0x48fb29
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push esi
call ebx
add esp, 4
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x48fb1f
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x48fb1f
push esi
call ebx
mov ebx, eax
add esp, 4
mov dword [ebp - 4], ebx
cmp ebx, 0xffffffff
je 0x48fb1f
push 0
push dword [ebp - 8]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x48fb1f
mov eax, dword [0x55b690]
test eax, eax
je 0x48fab5
inc dword [eax + 0xb0]
push dword [0x55b698]
push ebx
call dword [0x550190]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x48fb1f
push esi
push dword [ebp - 4]
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, dword [ebp - 4]
je 0x48fb0b
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov eax, dword [0x55b690]
test eax, eax
je 0x48faf9
dec dword [eax + 0xb0]
push dword [0x55b698]
push ebx
call dword [0x550194]
add esp, 8
jmp 0x48fb29
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
push dword [ebp - 4]
push ebx
call fcn.0047f060
add esp, 0xc
jmp 0x48faea
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
lea eax, [edi + 0x20]
pop esi
mov byte [edi + 0x5368], 1
pop ebx
movss xmm0, dword [edi + 0x536c]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x48fb86
subss xmm0, dword [edi + 0x18]
comiss xmm1, xmm0
movss dword [edi + 0x536c], xmm0
jb 0x48fb86
mov eax, dword [eax]
test eax, eax
je 0x48fb75
push eax
call fcn.00488230
add esp, 4
mov dword [edi + 0x536c], 0
pop edi
mov esp, ebp
pop ebp
ret
mov byte [edi + 0x98], 1
mov dword [edi + 0x536c], 0
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4b1070
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x506370
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5582e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x4c], ebx
jle 0x4b10cd
xor edi, edi
mov eax, dword [esi + 0x54]
mov ecx, dword [edi + eax]
test ecx, ecx
je 0x4b10c4
cmp byte [edi + eax + 8], 0
je 0x4b10c4
push ecx
call fcn.0047fa00
mov eax, dword [esi + 0x54]
add esp, 4
mov dword [edi + eax], 0
inc ebx
add edi, 0x78
cmp ebx, dword [esi + 0x4c]
jl 0x4b10a0
xor edx, edx
cmp dword [esi + 0x34], edx
jle 0x4b110d
mov eax, dword [esi + 0x3c]
mov edi, dword [eax + edx*4]
mov eax, dword [esi + 0x54]
mov ebx, dword [edi + 0x34]
cmp ebx, eax
jb 0x4b1107
mov ecx, dword [esi + 0x4c]
shl ecx, 4
sub ecx, dword [esi + 0x4c]
lea eax, [eax + ecx*8]
cmp ebx, eax
jae 0x4b1107
mov dword [edi + 0x34], 0
xor ecx, ecx
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + edx*4]
mov word [eax + 0x38], cx
inc edx
cmp edx, dword [esi + 0x34]
jl 0x4b10d4
mov eax, dword [esi + 0x54]
test eax, eax
je 0x4b1132
push eax
mov dword [esi + 0x50], 0
mov dword [esi + 0x4c], 0
call fcn.0047fa00
add esp, 4
mov dword [esi + 0x54], 0
mov eax, dword [esi + 0x48]
test eax, eax
je 0x4b1157
push eax
mov dword [esi + 0x44], 0
mov dword [esi + 0x40], 0
call fcn.0047fa00
add esp, 4
mov dword [esi + 0x48], 0
mov eax, dword [esi + 0x14]
mov dword [esi + 0x464], 0xffffffff
mov dword [esi + 0x460], 0xffffffff
test eax, eax
je 0x4b117b
push eax
call fcn.0047fa00
add esp, 4
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4b118b
push eax
call fcn.0047fa00
add esp, 4
xor ebx, ebx
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov byte [esi + 0x12], 0
cmp dword [esi + 0x34], ebx
jle 0x4b120e
mov eax, dword [esi + 0x3c]
mov edi, dword [eax + ebx*4]
test edi, edi
je 0x4b1208
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.004b1330
mov eax, dword [edi + 0x28]
mov byte [ebp - 4], 1
test eax, eax
je 0x4b11d0
push eax
call fcn.0047fa00
add esp, 4
mov eax, dword [edi + 0x1c]
mov byte [ebp - 4], 2
test eax, eax
je 0x4b11e4
push eax
call fcn.0047fa00
add esp, 4
mov eax, dword [edi + 8]
mov byte [ebp - 4], 3
test eax, eax
je 0x4b11f8
push eax
call fcn.0047fa00
add esp, 4
push edi
mov dword [ebp - 4], 0xffffffff
call fcn.0047fa00
add esp, 4
inc ebx
cmp ebx, dword [esi + 0x34]
jl 0x4b11a4
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4b1233
push eax
mov dword [esi + 0x38], 0
mov dword [esi + 0x34], 0
call fcn.0047fa00
add esp, 4
mov dword [esi + 0x3c], 0
mov byte [esi + 0x11], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b79d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x4b79f7
push eax
mov dword [esi + 4], 0
mov dword [esi], 0
call fcn.0047fa00
add esp, 4
mov dword [esi + 8], 0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b7a1c
push eax
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
call fcn.0047fa00
add esp, 4
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4b7a41
push eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
call fcn.0047fa00
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov eax, dword [esi + 0x44]
test eax, eax
je 0x4b7a82
push eax
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
call fcn.0047fa00
add esp, 4
mov dword [esi + 0x44], 0
mov eax, dword [esi + 0x50]
test eax, eax
je 0x4b7aa7
push eax
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
call fcn.0047fa00
add esp, 4
mov dword [esi + 0x50], 0
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x4b7acc
push eax
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
call fcn.0047fa00
add esp, 4
mov dword [esi + 0x5c], 0
lea ecx, [esi + 0x78]
pop esi
jmp fcn.004b1250
Function at 0x4ec0a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
mov ecx, 0x7fffffff
cmp dword [ebp + 8], ebx
jle 0x4ec0eb
mov edx, dword [ebp + 0x10]
imul edx, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0x10], edx
nop
mov eax, dword [edi + 4]
mov esi, ecx
imul eax, dword [edi]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
mov edx, edi
cmp eax, ecx
cmovl ecx, eax
cmp eax, esi
cmovge edx, ebx
add edi, 0xc
sub dword [ebp + 8], 1
mov ebx, edx
mov edx, dword [ebp + 0x10]
jne 0x4ec0c0
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

Function at 0x4ec750
Capabilities:
Register raw input devices

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5582e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0xc]
push edi
push eax
mov dword [0x55ec98], ebx
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x4ec7ab
lea eax, [ebp - 0xc]
push eax
push dword [ebx + 0x2ac]
call dword [sym.imp.USER32.dll_ScreenToClient]
movd xmm0, dword [ebp - 0xc]
cvtdq2pd xmm0, xmm0
movsd qword [0x55ec88], xmm0
movd xmm0, dword [ebp - 8]
cvtdq2pd xmm0, xmm0
movsd qword [0x55ec90], xmm0
cmp dword [ebx + 0x6c], 0x34001
jne 0x4ec7d0
mov eax, dword [ebx + 0x44]
test eax, eax
je 0x4ec7c0
push dword [eax + 4]
jmp 0x4ec7d2
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
jmp 0x4ec7d2
push 0
call dword [sym.imp.USER32.dll_SetCursor]
push ebx
call fcn.004e91b0
add esp, 4
lea eax, [ebp - 0x14]
push eax
push dword [ebx + 0x2ac]
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 0x14]
push eax
push dword [ebx + 0x2ac]
call dword [sym.imp.USER32.dll_ClientToScreen]
lea eax, [ebp - 0xc]
push eax
push dword [ebx + 0x2ac]
call dword [sym.imp.USER32.dll_ClientToScreen]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_ClipCursor]
cmp dword [ebx + 0x1e8], 0
je 0x4ec85f
mov eax, dword [ebx + 0x2ac]
push 0xc
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push 1
push eax
mov dword [ebp - 0x10], 0x20001
mov dword [ebp - 0xc], 0
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x4ec85f
push str.Win32:_Failed_to_register_raw_input_device
push 0x10008
call fcn.004eee10
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00501271
mov esp, ebp
pop ebp
ret
Function at 0x4ec870
Capabilities:
Register raw input devices

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x1e8], 0
je 0x4ec8bc
push 0xc
push 1
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x20001
push eax
mov dword [ebp - 8], 1
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x4ec8bc
push str.Win32:_Failed_to_remove_raw_input_device
push 0x10008
call fcn.004eee10
add esp, 8
push 0
mov dword [0x55ec98], 0
call dword [sym.imp.USER32.dll_ClipCursor]
cvttsd2si eax, qword [0x55ec90]
cvttsd2si ecx, qword [0x55ec88]
mov dword [ebp - 4], eax
mov dword [esi + 0x2e0], eax
lea eax, [ebp - 8]
push eax
push dword [esi + 0x2ac]
mov dword [ebp - 8], ecx
mov dword [esi + 0x2dc], ecx
call dword [sym.imp.USER32.dll_ClientToScreen]
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SetCursorPos]
cmp dword [esi + 0x6c], 0x34001
jne 0x4ec943
mov eax, dword [esi + 0x44]
test eax, eax
je 0x4ec92a
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SetCursor]
pop esi
mov esp, ebp
pop ebp
ret
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
pop esi
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.USER32.dll_SetCursor]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4ec950
Capabilities:
Register raw input devices

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push 0xc
push 1
mov dword [ebp - 0xc], 0x20001
mov eax, dword [eax + 0x2ac]
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 8], 0
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x4ec994
push str.Win32:_Failed_to_register_raw_input_device
push 0x10008
call fcn.004eee10
add esp, 8
mov esp, ebp
pop ebp
ret

Function at 0x4ecab0
Capabilities:
Log keystrokes via polling

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

Function at 0x4ee500
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
cmp eax, 0xffffffff
jne 0x4ee52a
push str.Win32:_Failed_to_allocate_TLS_index
push 0x10008
call fcn.004e71c0
add esp, 8
xor eax, eax
pop ebp
ret
mov dword [ecx], 1
mov eax, 1
pop ebp
ret
Function at 0x4ef0e0
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [0x5582e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x100
lea eax, [ebp - 0x124]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x6d1
push 0
push 0x55e5b2
call sub.VCRUNTIME140.dll_memset
mov eax, 0x55e652
lea ebx, [ebp - 0x160]
add esp, 0x18
mov dword [ebp - 0x164], eax
mov esi, 0x20
sub ebx, 0x480
nop dword [eax]
movsx edi, word [esi*2 + 0x55e2f8]
cmp edi, 0xffffffff
je 0x4ef274
cmp esi, 0x140
jb 0x4ef203
cmp esi, 0x14e
ja 0x4ef203
mov dword [ebp - 0x160], 0x60
mov dword [ebp - 0x15c], 0x61
mov dword [ebp - 0x158], 0x62
mov dword [ebp - 0x154], 0x63
mov dword [ebp - 0x150], 0x64
mov dword [ebp - 0x14c], 0x65
mov dword [ebp - 0x148], 0x66
mov dword [ebp - 0x144], 0x67
mov dword [ebp - 0x140], 0x68
mov dword [ebp - 0x13c], 0x69
mov dword [ebp - 0x138], 0x6e
mov dword [ebp - 0x134], 0x6f
mov dword [ebp - 0x130], 0x6a
mov dword [ebp - 0x12c], 0x6d
mov dword [ebp - 0x128], 0x6b
mov eax, dword [ebx]
jmp 0x4ef20c
push 1
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push 0
push 0x10
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x168], eax
push ecx
lea ecx, [ebp - 0x124]
push ecx
push edi
push eax
call dword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 0xffffffff
jne 0x4ef24a
push 0
push 0x10
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x124]
push eax
push edi
push dword [ebp - 0x168]
call dword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 1
jl 0x4ef26e
push 0
push 0
push 5
push dword [ebp - 0x164]
lea eax, [ebp - 0x24]
push 1
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0x164]
inc esi
add eax, 5
add ebx, 4
mov dword [ebp - 0x164], eax
cmp esi, 0x15c
jle 0x4ef140
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00501271
mov esp, ebp
pop ebp
ret