joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42d160
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
cmp dword [0x4ffd58], 0
jne 0x42d1f8
lea eax, [ebp - 8]
mov dword [0x4ffd58], 1
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov dword [0x4ffd5c], eax
test eax, eax
je 0x42d1b0
push 0x4ffd48
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.0049b730
divsd xmm0, qword [0x4a84d0]
jmp 0x42d1f0
xor eax, eax
mov dword [ebp - 0x30], 0x107b2
mov dword [ebp - 0x26], eax
mov word [ebp - 0x22], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x2a], 1
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov ecx, dword [ebp - 0xc]
xor eax, eax
or eax, dword [ebp - 0x10]
movsd xmm0, qword [0x4a84c8]
mov dword [0x4ffd48], eax
mov dword [0x4ffd4c], ecx
movsd qword [0x4ffd50], xmm0
cmp dword [0x4ffd5c], 0
je 0x42d213
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
jmp 0x42d225
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov edx, dword [ebp - 0x1c]
xor ecx, ecx
or ecx, dword [ebp - 0x20]
sub ecx, dword [0x4ffd48]
sbb edx, dword [0x4ffd4c]
call fcn.0049b730
divsd xmm0, qword [0x4ffd50]
call fcn.0049b630
push 0
push 0xf4240
push edx
push eax
call fcn.0049bae0
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor eax, eax
mov dword [ecx + 4], edx
mov dword [ecx + 8], 0
mov esp, ebp
pop ebp
ret
Function at 0x42d760
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49dff5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
xor ecx, eax
lea eax, [ebp - 0x14]
imul ebx, ecx, 0x1000193
mov ecx, esi
push ebx
push edi
push eax
call fcn.00401b80
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x42d7e5
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [eax], ecx
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [esi + 8], 0xfffffff
je 0x42d8b5
lea eax, [esi + 4]
mov dword [ebp - 0x1c], eax
push 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
call fcn.0049b32d
mov ecx, dword [edi]
add esp, 4
mov dword [ebp - 0x18], eax
add eax, 8
mov dword [ebp + 0xc], eax
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov cx, word [ecx]
mov word [eax + 4], cx
mov eax, dword [esi + 8]
inc eax
mov dword [ebp - 4], 1
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4a0960]
mov eax, dword [esi + 0x1c]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4a0960]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, dword [esi]
jbe 0x42d888
mov ecx, esi
call fcn.004366d0
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.00401b80
mov ecx, dword [eax]
jmp 0x42d88b
mov ecx, dword [ebp - 0x14]
push dword [ebp - 0x18]
push ecx
push ebx
mov ecx, esi
call fcn.004030f0
mov ecx, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [ecx], eax
mov eax, ecx
mov byte [ecx + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
push str.unordered_map_set_too_long
call sub.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__
int3
Function at 0x42d970
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e025
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
xor ecx, eax
lea eax, [ebp - 0x1c]
imul ebx, ecx, 0x1000193
mov ecx, esi
push ebx
push edi
push eax
call fcn.00401b80
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x42da8d
cmp dword [esi + 8], 0xfffffff
je 0x42daa3
lea eax, [esi + 4]
mov dword [ebp - 0x14], eax
push 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.0049b32d
mov dword [ebp - 0x10], eax
add esp, 4
lea ecx, [eax + 8]
mov eax, dword [edi]
mov dword [ecx], eax
mov word [ecx + 4], 1
mov eax, dword [esi + 8]
inc eax
mov dword [ebp - 4], 1
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4a0960]
mov eax, dword [esi + 0x1c]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4a0960]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, dword [esi]
jbe 0x42da7d
mov ecx, esi
call fcn.004366d0
mov edi, dword [ebp - 0x10]
mov ecx, esi
push ebx
lea eax, [edi + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00401b80
mov ecx, dword [eax]
jmp 0x42da83
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x10]
push edi
push ecx
push ebx
mov ecx, esi
call fcn.004030f0
mov ecx, dword [ebp - 0xc]
add eax, 0xc
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.unordered_map_set_too_long
call sub.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__
int3
Function at 0x43fb10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
lea edx, [ebp + 8]
mov esi, 4
mov eax, dword [edi + 0xf4]
mov ebx, dword [edi + 0xfc]
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 + 0x4b0240]
sub esi, 1
jne 0x43fb32
mov eax, dword [edi]
not ebx
cmp dword [eax + 0x4000], ebx
jne 0x43fb67
push esi
push dword [ebp + 8]
push 4
push ebx
call fcn.0043d840
add esp, 0x10
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov edx, ecx
push esi
push edi
lea esi, [ebp - 0x10]
mov edi, 0x10
movss xmm1, dword [edx + 0x110]
movss xmm0, dword [eax]
movss xmm2, dword [edx + 0x114]
subss xmm0, xmm1
mov ecx, dword [edx + 0xf4]
movss dword [ebp - 0x10], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, xmm2
movss dword [ebp - 0xc], xmm0
movss xmm0, dword [eax + 8]
subss xmm0, xmm1
movss dword [ebp - 8], xmm0
movss xmm0, dword [eax + 0xc]
mov eax, dword [edx + 0xfc]
subss xmm0, xmm2
mov edx, dword [eax + ecx*4 - 4]
movss dword [ebp - 4], xmm0
not edx
nop
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x4b0240]
sub edi, 1
jne 0x43fc40
pop edi
not edx
pop esi
mov eax, edx
mov esp, ebp
pop ebp
ret 4
Function at 0x440440
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x440452
mov dword [edi], 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00440540
mov esi, eax
add esp, 8
test esi, esi
jne 0x44046a
pop edi
pop esi
pop ebp
ret
push ebx
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 + 0x10], eax
cmp eax, 0xffffffff
je 0x44052e
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 0x44052e
push esi
call ebx
mov ebx, eax
add esp, 4
cmp ebx, 0xffffffff
je 0x44052e
push 0
push dword [ebp + 0x10]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x44052e
mov eax, dword [ebp + 0x14]
add eax, ebx
push eax
call fcn.00442bf0
add esp, 4
mov dword [ebp + 0x10], eax
test eax, eax
je 0x44052e
push esi
push ebx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, ebx
je 0x4404fe
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [ebp + 0x10]
push eax
call fcn.00442c80
add esp, 8
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, dword [ebp + 0x14]
test eax, eax
jle 0x440516
push eax
mov eax, dword [ebp + 0x10]
add eax, ebx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test edi, edi
je 0x440526
mov dword [edi], ebx
mov eax, dword [ebp + 0x10]
pop ebx
pop edi
pop esi
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x440900
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 0x440963
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x440946
cmp edi, 2
jb 0x440946
cmp byte [esi], cl
jne 0x440946
cmp byte [esi + 1], cl
jne 0x440946
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x4b0240]
jmp 0x440917
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x4b0240]
test edi, edi
jne 0x440917
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x440998
nop word [eax + eax]
cmp cl, 0x23
jne 0x44097f
cmp byte [esi], cl
jne 0x44097f
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 + 0x4b0240]
test cl, cl
jne 0x440970
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
Function at 0x440b80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x10
xor ecx, ecx
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
test esi, esi
je 0x440ba0
cmp eax, esi
jae 0x440cf7
mov bl, byte [eax]
test bl, bl
je 0x440cf7
movzx ecx, bl
mov edx, esi
shr ecx, 3
movsx edi, byte [ecx + 0x4b0c64]
xor ecx, ecx
test edi, edi
mov dword [ebp - 8], edi
sete cl
add ecx, edi
mov dword [ebp - 0xc], ecx
test esi, esi
jne 0x440bcf
lea edx, [ecx + eax]
cmp eax, edx
lea esi, [eax + 1]
sbb cl, cl
and cl, bl
mov byte [ebp - 4], cl
cmp esi, edx
jae 0x440be6
mov bl, byte [esi]
mov byte [ebp - 1], bl
jmp 0x440bea
mov byte [ebp - 1], 0
lea esi, [eax + 2]
cmp esi, edx
jae 0x440bf5
mov ch, byte [esi]
jmp 0x440bf7
xor ch, ch
lea ebx, [eax + 3]
mov byte [ebp - 3], ch
cmp ebx, edx
jae 0x440c05
mov bl, byte [ebx]
jmp 0x440c07
xor bl, bl
mov edi, dword [edi*4 + 0x4b0c84]
movzx esi, byte [ebp - 1]
movzx edx, ch
movzx ecx, cl
and edi, ecx
mov byte [ebp - 2], bl
shl edi, 6
mov ecx, esi
and ecx, 0x3f
movzx ebx, bl
or edi, ecx
and esi, 0xc0
shl edi, 6
mov ecx, edx
and ecx, 0x3f
and edx, 0xc0
or edi, ecx
mov ecx, ebx
and ecx, 0x3f
shr ebx, 2
or ebx, edx
shl edi, 6
or edi, ecx
shr ebx, 2
mov ecx, dword [ebp - 8]
or ebx, esi
mov esi, dword [ebp - 8]
shr ebx, 2
mov ecx, dword [ecx*4 + 0x4b0cac]
shr edi, cl
cmp edi, dword [esi*4 + 0x4b0c98]
sbb ecx, ecx
xor edx, edx
and ecx, 0x40
or ebx, ecx
mov ecx, edi
and ecx, 0xfffff800
cmp ecx, 0xd800
mov ecx, 0x80
cmove edx, ecx
mov ecx, 0xffff
or ebx, edx
cmp ecx, edi
sbb ecx, ecx
and ecx, 0x100
or ebx, ecx
mov ecx, dword [esi*4 + 0x4b0cc0]
xor ebx, 0x2a
sar ebx, cl
test ebx, ebx
je 0x440ce9
xor edx, edx
cmp byte [ebp - 2], dl
setne dl
xor ecx, ecx
cmp byte [ebp - 3], cl
setne cl
add edx, ecx
xor ecx, ecx
cmp byte [ebp - 1], cl
setne cl
add edx, ecx
xor ecx, ecx
cmp byte [ebp - 4], cl
setne cl
add edx, ecx
cmp dword [ebp - 0xc], edx
cmovl edx, dword [ebp - 0xc]
mov ecx, edx
add eax, ecx
mov ecx, dword [ebp - 0x10]
inc ecx
jmp 0x440b8e
mov ecx, dword [ebp - 0xc]
add eax, ecx
mov ecx, dword [ebp - 0x10]
inc ecx
jmp 0x440b8e
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x440d60
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 - 0x14], ecx
lea eax, [ebx + eax*2]
mov dword [ebp - 0x18], eax
cmp ebx, eax
mov eax, dword [ebp + 0x10]
jae 0x440f16
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
push edi
nop dword [eax]
test esi, esi
je 0x440d9c
cmp eax, esi
jae 0x440f11
mov bl, byte [eax]
mov byte [ebp + 0xf], bl
test bl, bl
je 0x440f11
movzx ecx, bl
mov edx, esi
shr ecx, 3
xor ebx, ebx
movsx ecx, byte [ecx + 0x4b0c64]
test ecx, ecx
mov dword [ebp - 0xc], ecx
sete bl
add ebx, ecx
test esi, esi
jne 0x440dcb
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 0x440de3
mov ch, byte [esi]
mov byte [ebp + 0xf], ch
jmp 0x440de7
mov byte [ebp + 0xf], 0
lea esi, [eax + 2]
cmp esi, edx
jae 0x440df2
mov ch, byte [esi]
jmp 0x440df4
xor ch, ch
lea esi, [eax + 3]
mov byte [ebp - 2], ch
cmp esi, edx
jae 0x440e02
mov al, byte [esi]
jmp 0x440e04
xor al, al
movzx esi, byte [ebp + 0xf]
movzx edx, ch
movzx ecx, cl
movzx edi, al
mov byte [ebp - 1], al
mov eax, dword [ebp - 0xc]
mov eax, dword [eax*4 + 0x4b0c84]
and eax, ecx
mov ecx, esi
and ecx, 0x3f
mov dword [ebp - 8], eax
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 eax, dword [ebp - 8]
and ecx, 0x3f
or eax, 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 + 0x4b0cac]
shr eax, cl
mov esi, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
cmp esi, dword [eax*4 + 0x4b0c98]
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 [eax*4 + 0x4b0cc0]
mov eax, dword [ebp - 0x10]
xor edi, 0x2a
sar edi, cl
test edi, edi
je 0x440ef4
xor edx, edx
mov esi, 0xfffd
cmp byte [ebp - 1], dl
setne dl
xor ecx, ecx
cmp byte [ebp - 2], cl
setne cl
add edx, ecx
xor ecx, ecx
cmp byte [ebp + 0xf], 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
mov ebx, edx
mov ecx, dword [ebp - 0x14]
add eax, ebx
mov dword [ebp - 0x10], eax
mov word [ecx], si
add ecx, 2
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x14], ecx
cmp ecx, dword [ebp - 0x18]
jb 0x440d90
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 0x440f24
mov dword [edx], eax
sub ecx, ebx
sar ecx, 1
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x442b00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
cmp dword [esi + 0x5e88], 0
lea ecx, [esi + 0x5e8c]
je 0x442b65
push 0
call fcn.0044f940
push dword [ebp + 0x10]
lea ecx, [esi + 0x5e8c]
push dword [ebp + 0xc]
call fcn.0044f230
mov edx, dword [esi + 0x5e8c]
mov ecx, 0x4ffd64
push dword [esi + 0x5e88]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [esi + 0x5e94]
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]
push dword [ebp + 0xc]
call fcn.0044f230
pop edi
pop esi
pop ebp
ret
Function at 0x44a3d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4ffd68]
push esi
mov esi, dword [ebp + 8]
mov dword [eax + 0x5e1c], 0
test esi, esi
je 0x44a429
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push edi
push eax
call fcn.0044a430
push 0x4b198c
push esi
mov edi, eax
call fcn.00440540
mov esi, eax
add esp, 0xc
test esi, esi
je 0x44a428
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 0x45e6b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x45e6d7
push eax
mov dword [esi + 4], 0
mov dword [esi], 0
call fcn.00442c80
add esp, 4
mov dword [esi + 8], 0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x45e6fc
push eax
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
call fcn.00442c80
add esp, 4
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0x20]
test eax, eax
je 0x45e721
push eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
call fcn.00442c80
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov eax, dword [esi + 0x78]
test eax, eax
je 0x45e762
push eax
mov dword [esi + 0x74], 0
mov dword [esi + 0x70], 0
call fcn.00442c80
add esp, 4
mov dword [esi + 0x78], 0
mov eax, dword [esi + 0x84]
test eax, eax
je 0x45e790
push eax
mov dword [esi + 0x80], 0
mov dword [esi + 0x7c], 0
call fcn.00442c80
add esp, 4
mov dword [esi + 0x84], 0
mov eax, dword [esi + 0x40]
test eax, eax
je 0x45e7b5
push eax
mov dword [esi + 0x3c], 0
mov dword [esi + 0x38], 0
call fcn.00442c80
add esp, 4
mov dword [esi + 0x40], 0
lea ecx, [esi + 0x5c]
pop esi
jmp fcn.0045a690
Function at 0x46f370
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 0x46f3bb
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 0x46f390
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

Function at 0x46fb60
Capabilities:
Register raw input devices

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push ebx
push edi
mov edi, dword [ebp + 8]
push eax
mov dword [0x502298], edi
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x46fbb1
lea eax, [ebp - 8]
push eax
push dword [edi + 0x2b4]
call dword [sym.imp.USER32.dll_ScreenToClient]
movd xmm0, dword [ebp - 8]
cvtdq2pd xmm0, xmm0
movsd qword [0x502288], xmm0
movd xmm0, dword [ebp - 4]
cvtdq2pd xmm0, xmm0
movsd qword [0x502290], xmm0
mov eax, dword [edi + 0x70]
cmp eax, 0x34001
je 0x46fbca
cmp eax, 0x34004
je 0x46fbca
push dword [0x5022ac]
jmp 0x46fbe4
mov eax, dword [edi + 0x44]
test eax, eax
je 0x46fbd6
push dword [eax + 4]
jmp 0x46fbe4
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push edi
call fcn.0046b4e0
add esp, 4
lea eax, [ebp - 0x10]
push eax
push dword [edi + 0x2b4]
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 0x10]
push eax
push dword [edi + 0x2b4]
call dword [sym.imp.USER32.dll_ClientToScreen]
lea eax, [ebp - 8]
push eax
push dword [edi + 0x2b4]
call dword [sym.imp.USER32.dll_ClientToScreen]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_ClipCursor]
mov dword [0x50229c], edi
cmp dword [edi + 0x1f0], 0
je 0x46fc77
mov eax, dword [edi + 0x2b4]
push 0xc
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push 1
push eax
mov dword [ebp - 0xc], 0x20001
mov dword [ebp - 8], 0
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x46fc77
push str.Win32:_Failed_to_register_raw_input_device
push 0x10008
call fcn.00472400
add esp, 8
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46fc80
Capabilities:
Register raw input devices

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
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 0x46fcbf
push str.Win32:_Failed_to_remove_raw_input_device
push 0x10008
call fcn.00472400
add esp, 8
mov esp, ebp
pop ebp
ret
Function at 0x46fcd0
Capabilities:
Register raw input devices

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x1f0], 0
je 0x46fd1c
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 0x46fd1c
push str.Win32:_Failed_to_remove_raw_input_device
push 0x10008
call fcn.00472400
add esp, 8
push 0
mov dword [0x502298], 0
call dword [sym.imp.USER32.dll_ClipCursor]
cvttsd2si eax, qword [0x502290]
mov dword [0x50229c], 0
cvttsd2si ecx, qword [0x502288]
mov dword [ebp - 4], eax
mov dword [esi + 0x2ec], eax
lea eax, [ebp - 8]
push eax
push dword [esi + 0x2b4]
mov dword [ebp - 8], ecx
mov dword [esi + 0x2e8], ecx
call dword [sym.imp.USER32.dll_ClientToScreen]
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SetCursorPos]
mov eax, dword [esi + 0x70]
cmp eax, 0x34001
je 0x46fd98
cmp eax, 0x34004
je 0x46fd98
push dword [0x5022ac]
call dword [sym.imp.USER32.dll_SetCursor]
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x44]
test eax, eax
je 0x46fdad
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

Function at 0x46fdd0
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 + 0x2b4]
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 0x46fe14
push str.Win32:_Failed_to_register_raw_input_device
push 0x10008
call fcn.00472400
add esp, 8
mov esp, ebp
pop ebp
ret

Function at 0x46fe90
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
test ax, ax
push 0x12
cmovns edi, esi
call ebx
mov ebx, edi
or ebx, 4
test ax, ax
push 0x5c
cmovns 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 0x4719b0
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 0x4719da
push str.Win32:_Failed_to_allocate_TLS_index
push 0x10008
call fcn.00469c80
add esp, 8
xor eax, eax
pop ebp
ret
mov dword [ecx], 1
mov eax, 1
pop ebp
ret