joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c4a0
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 0x41c52b
movzx eax, byte [edi + 1]
mov dword [esp + 0x10], esi
lea esi, [edi + 1]
push eax
call fcn.00459310
add esp, 4
test eax, eax
je 0x41c515
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.00459310
add esp, 4
test eax, eax
jne 0x41c4f0
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x14]
cmp esi, edi
jbe 0x41c527
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41c523
neg eax
mov dword [esp + 0x18], eax
sub esi, edi
jmp 0x41c577
movzx eax, al
push eax
call fcn.00459310
add esp, 4
test eax, eax
je 0x41c571
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.00459310
add esp, 4
test eax, eax
jne 0x41c540
mov edx, dword [esp + 0x14]
mov ecx, edi
mov dword [esp + 0x10], edi
cmp ecx, edx
jbe 0x41c573
mov dword [esp + 0x18], esi
jmp 0x41c573
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 + 0x51f380]
addsd xmm0, xmm1
movsd qword [esp + 8], xmm0
jne 0x41c615
movzx eax, byte [esi + 1]
inc esi
push eax
mov edi, 0xa
call fcn.00459310
add esp, 4
test eax, eax
je 0x41c60c
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 + 0x51f380]
movzx eax, byte [esi]
push eax
divsd xmm1, xmm0
movsd xmm0, qword [esp + 0xc]
addsd xmm0, xmm1
movsd qword [esp + 0xc], xmm0
call fcn.00459310
add esp, 4
test eax, eax
jne 0x41c5c0
movsd xmm0, qword [esp + 8]
xorps xmm1, xmm1
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
test ecx, ecx
je 0x41c641
cmp esi, edx
jbe 0x41c641
cmp byte [esp + 0x1f], 0x2d
jne 0x41c63d
ucomisd xmm0, xmm1
lahf
test ah, 0x44
jnp 0x41c63d
xorps xmm0, xmmword [0x51efd0]
movsd qword [ecx], xmm0
sub esi, edx
pop edi
mov eax, esi
pop esi
add esp, 0x18
ret
Function at 0x41ff90
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0
push 0
call fcn.0044a380
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 0x420022
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 0x42000b
push dword [esi]
btr eax, ecx
mov byte [esi + 0x44], al
call fcn.00476330
push 0
push str.SDL_MOUSE_FOCUS_CLICKTHROUGH
call fcn.0043b670
add esp, 0xc
test eax, eax
je 0x42001e
mov edx, dword [esp + 0x18]
test ebx, ebp
je 0x42001e
push edx
push 0
push 0
push dword [esi]
call fcn.0044b3b0
add esp, 0x10
mov ebp, dword [esp + 0x10]
push 2
call edi
test ax, ax
js 0x420085
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 0x420072
push dword [esi]
btr eax, ecx
mov byte [esi + 0x44], al
call fcn.00476330
push 0
push str.SDL_MOUSE_FOCUS_CLICKTHROUGH
call fcn.0043b670
add esp, 0xc
test eax, eax
je 0x420085
mov edx, dword [esp + 0x18]
test ebx, ebp
je 0x420085
push edx
push 0
push 0
push dword [esi]
call fcn.0044b3b0
add esp, 0x10
push 4
call edi
test ax, ax
js 0x4200cc
movzx eax, byte [esi + 0x44]
test al, 2
je 0x4200b7
push dword [esi]
btr eax, 1
mov byte [esi + 0x44], al
call fcn.00476330
push 0
push str.SDL_MOUSE_FOCUS_CLICKTHROUGH
call fcn.0043b670
add esp, 0xc
test eax, eax
je 0x4200cc
test bl, 2
je 0x4200cc
push 2
push 0
push 0
push dword [esi]
call fcn.0044b3b0
add esp, 0x10
push 5
call edi
test ax, ax
js 0x420113
movzx eax, byte [esi + 0x44]
test al, 8
je 0x4200fe
push dword [esi]
btr eax, 3
mov byte [esi + 0x44], al
call fcn.00476330
push 0
push str.SDL_MOUSE_FOCUS_CLICKTHROUGH
call fcn.0043b670
add esp, 0xc
test eax, eax
je 0x420113
test bl, 8
je 0x420113
push 4
push 0
push 0
push dword [esi]
call fcn.0044b3b0
add esp, 0x10
push 6
call edi
test ax, ax
js 0x42015a
movzx eax, byte [esi + 0x44]
test al, 0x10
je 0x420145
push dword [esi]
btr eax, 4
mov byte [esi + 0x44], al
call fcn.00476330
push 0
push str.SDL_MOUSE_FOCUS_CLICKTHROUGH
call fcn.0043b670
add esp, 0xc
test eax, eax
je 0x42015a
test bl, 0x10
je 0x42015a
push 5
push 0
push 0
push dword [esi]
call fcn.0044b3b0
add esp, 0x10
pop edi
mov dword [esi + 0x28], 0xffffffff
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4209d0
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.00441c20
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 0x420be4
cmp ecx, dword [esp + 0x38]
jne 0x420be4
cmp eax, esi
jne 0x420b78
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 0x420a56
cmp dword [esp + 0x10], 0
mov eax, ecx
cmove eax, ebx
or byte [edi + 0x44], al
push 2
call esi
test ax, ax
je 0x420a6f
cmp dword [esp + 0x10], 0
mov eax, 4
cmove ebx, eax
or byte [edi + 0x44], bl
push 4
call esi
test ax, ax
je 0x420a7c
or byte [edi + 0x44], 2
push 5
call esi
test ax, ax
je 0x420a89
or byte [edi + 0x44], 8
push 6
call esi
test ax, ax
je 0x420a96
or byte [edi + 0x44], 0x10
push ebp
call fcn.004425e0
add esp, 4
call fcn.0044a360
cmp dword [eax + 0x54], 0
jne 0x420afa
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.00475280
push dword [esp + 0x20]
push dword [esp + 0x20]
push 0
push 0
push ebp
call fcn.0044b3d0
add esp, 0x20
push edi
call fcn.0041ff90
push ebp
call fcn.00476330
push dword [edi + 0x7c]
call fcn.00470670
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
add esp, 0xc
push 0x14
call esi
and eax, 1
push eax
push 0x2000
call fcn.00442870
add esp, 8
push 0x90
call esi
and eax, 1
push eax
push 0x1000
call fcn.00442870
add esp, 8
push 0x91
call esi
and eax, 1
push eax
push 0x8000
call fcn.00442870
push 1
push dword [edi]
call fcn.00476600
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.004425e0
add esp, 4
call fcn.0044a360
cmp dword [eax + 0x54], 0
je 0x420b9e
push 0
call fcn.0044b7e0
add esp, 4
call fcn.004726f0
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetClipCursor]
test eax, eax
je 0x420bdd
push 0x10
lea esi, [edi + 0x5c]
lea eax, [esp + 0x20]
push esi
push eax
call fcn.0041cb10
add esp, 0xc
test eax, eax
jne 0x420bdd
push eax
call dword [sym.imp.USER32.dll_ClipCursor]
push 0x10
push 0
push esi
call fcn.00459450
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 0x429d90
Capabilities:
Contain obfuscated stackstrings
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc4
movaps xmm0, xmmword [0x5210b0]
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 0x429f4f
mov dl, 0x58
jmp 0x429f59
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 0x429f82
add edx, ecx
test bl, 2
je 0x429f8d
mov eax, ecx
shr eax, 1
add edx, eax
test bl, 1
je 0x429f97
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 0x429fc1
mov eax, 0x7fff
add esp, 0xc4
ret
mov eax, 0xffff8000
cmp ecx, eax
cmovl ecx, eax
mov ax, cx
add esp, 0xc4
ret
Function at 0x438b30
Capabilities:
Hash data using djb2

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x18
or eax, 0xffffffff
test ecx, ecx
jne 0x438c81
mov ecx, dword [0x57d534]
test ecx, ecx
jne 0x438b5d
push str.no_gesture_touch_devices_registered
call fcn.0041b670
add esp, 4
add esp, 0x18
ret
push ebx
push ebp
push esi
xor esi, esi
mov dword [esp + 0x28], esi
push edi
test ecx, ecx
jle 0x438c6e
xor ebp, ebp
mov dword [esp + 0x10], ebp
mov ebx, dword [0x57d530]
mov dword [esp + 0x20], ebx
mov eax, dword [ebx + ebp + 0x201c]
imul edi, eax, 0x208
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], edi
lea eax, [edi + 0x208]
push eax
push dword [ebx + ebp + 0x2020]
call fcn.00458e40
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
jne 0x438bc0
push eax
call fcn.0041b5a0
add esp, 4
jmp 0x438c4f
push 0x200
push dword [esp + 0x34]
mov dword [ebx + ebp + 0x2020], eax
add eax, edi
push eax
mov dword [esp + 0x20], eax
call fcn.0041cb70
mov ebp, dword [esp + 0x20]
add esp, 0xc
mov edi, 0x1505
xor ebx, ebx
nop word [eax + eax]
movss xmm0, dword [ebp + ebx*8]
mov esi, edi
shl esi, 5
add esi, edi
call fcn.0050d360
movss xmm0, dword [ebp + ebx*8 + 4]
add esi, eax
mov edi, esi
shl edi, 5
add edi, esi
call fcn.0050d360
inc ebx
add edi, eax
cmp ebx, 0x40
jl 0x438bf0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x10]
mov esi, dword [esp + 0x2c]
mov dword [ecx + eax + 0x200], edi
mov dword [ecx + eax + 0x204], 0
mov eax, dword [esp + 0x20]
inc dword [eax + ebp + 0x201c]
mov eax, dword [esp + 0x24]
test eax, eax
js 0x438c76
inc esi
add ebp, 0x2028
mov dword [esp + 0x2c], esi
mov dword [esp + 0x10], ebp
cmp esi, dword [0x57d534]
jl 0x438b75
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret
add esp, 0x18
mov dword [esp + 4], ecx
jmp fcn.00438c90

Function at 0x438c90
Capabilities:
Hash data using djb2

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov eax, dword [ebx + 0x201c]
imul esi, eax, 0x208
mov dword [esp + 8], eax
lea eax, [esi + 0x208]
push eax
push dword [ebx + 0x2020]
call fcn.00458e40
add esp, 8
test eax, eax
jne 0x438ccd
push eax
call fcn.0041b5a0
add esp, 4
pop esi
pop ebx
pop ecx
ret
push ebp
push edi
push 0x200
push dword [esp + 0x20]
lea ebp, [esi + eax]
mov dword [ebx + 0x2020], eax
push ebp
call fcn.0041cb70
add esp, 0xc
mov edi, 0x1505
xor ebx, ebx
movss xmm0, dword [ebp + ebx*8]
mov esi, edi
shl esi, 5
add esi, edi
call fcn.0050d360
movss xmm0, dword [ebp + ebx*8 + 4]
add esi, eax
mov edi, esi
shl edi, 5
add edi, esi
call fcn.0050d360
inc ebx
add edi, eax
cmp ebx, 0x40
jl 0x438cf1
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov dword [ebp + 0x200], edi
pop edi
mov dword [ebp + 0x204], 0
inc dword [ecx + 0x201c]
pop ebp
pop esi
pop ebx
pop ecx
ret
Function at 0x458e90
Capabilities:
Query environment variable

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
test esi, esi
je 0x458eef
cmp byte [esi], 0
je 0x458eef
push dword [0x57e2f0]
push dword [0x57e2ec]
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edi, eax
test edi, edi
je 0x458eef
cmp edi, dword [0x57e2f0]
jbe 0x458ee7
push edi
push dword [0x57e2ec]
call fcn.00458e40
add esp, 8
test eax, eax
je 0x458eef
push edi
push eax
push esi
mov dword [0x57e2ec], eax
mov dword [0x57e2f0], edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov eax, dword [0x57e2ec]
pop edi
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
Function at 0x45f870
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 8]
mov dword [esp + 8], 0
mov edx, dword [esi + 0x28]
mov ecx, edx
neg ecx
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0xc]
sbb ecx, ecx
and ecx, 0x10000
test eax, eax
je 0x45f8b3
push edi
lea edi, [esp + 0xc]
push edi
push ecx
push esi
push 0x45f840
push edx
push 0
call eax
add esp, 0x18
pop edi
jmp 0x45f8c8
lea eax, [esp + 8]
push eax
push ecx
push esi
push 0x45f840
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
pop esi
test eax, eax
jne 0x45f8de
push str.Not_enough_resources_to_create_thread
call fcn.0041b670
add esp, 4
ret
xor eax, eax
ret

Function at 0x460390
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub esp, 8
cmp dword [0x57e3ac], 0
jne 0x4603d0
push 0
push 0x4604b0
push str.SDL_TIMER_RESOLUTION
mov dword [0x57e3ac], 1
call fcn.0043b410
add esp, 0xc
push 0x57e3b8
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0x57e3b0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esp]
sub ecx, dword [0x57e3b0]
mov eax, dword [esp + 4]
sbb eax, dword [0x57e3b4]
push 0
push 0x3e8
push eax
push ecx
call fcn.0050cf40
push dword [0x57e3bc]
push dword [0x57e3b8]
push edx
push eax
call fcn.0050d020
add esp, 8
ret
Function at 0x4663b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
push edi
xor edi, edi
test esi, esi
je 0x46646a
push ebp
nop word [eax + eax]
movzx edx, byte [ebx + edi]
mov ebp, 0
movzx ecx, al
xor edx, ecx
mov ecx, 0xedb88320
test dl, 1
cmovne ecx, ebp
shr edx, 1
xor ecx, edx
mov edx, 0xedb88320
test cl, 1
cmovne edx, ebp
shr ecx, 1
xor edx, ecx
mov ecx, 0xedb88320
test dl, 1
cmovne ecx, ebp
shr edx, 1
xor ecx, edx
mov edx, 0xedb88320
test cl, 1
cmovne edx, ebp
shr ecx, 1
xor edx, ecx
mov ecx, 0xedb88320
test dl, 1
cmovne ecx, ebp
shr edx, 1
xor ecx, edx
mov edx, 0xedb88320
test cl, 1
cmovne edx, ebp
shr ecx, 1
xor edx, ecx
mov ecx, 0xedb88320
test dl, 1
cmovne ecx, ebp
shr edx, 1
xor ecx, edx
shr eax, 7
xor eax, ecx
mov edx, 0xff000000
shr eax, 1
test cl, 1
mov ecx, 0x12b88320
cmovne ecx, edx
inc edi
xor eax, ecx
cmp edi, esi
jb 0x4663d0
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x46fd90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x18]
xor esi, esi
test edi, edi
je 0x46fead
push ebx
mov ebx, dword [esp + 0x14]
nop word [eax + eax]
mov dl, byte [esi + ebp]
xor dl, bl
mov al, dl
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr dl, 1
and eax, 0xa001
movzx ecx, ax
mov al, dl
xor al, cl
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr cx, 1
and eax, 0xa001
shr dl, 1
xor ax, cx
movzx ecx, ax
mov al, dl
xor al, cl
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr cx, 1
and eax, 0xa001
shr dl, 1
xor ax, cx
movzx ecx, ax
mov al, dl
xor al, cl
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr cx, 1
and eax, 0xa001
shr dl, 1
xor ax, cx
movzx ecx, ax
mov al, dl
xor al, cl
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr cx, 1
and eax, 0xa001
shr dl, 1
xor ax, cx
movzx ecx, ax
mov al, dl
xor al, cl
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr cx, 1
and eax, 0xa001
shr dl, 1
xor ax, cx
movzx ecx, ax
mov al, dl
xor al, cl
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr cx, 1
and eax, 0xa001
shr dl, 1
xor ax, cx
movzx ecx, ax
xor dl, cl
and dl, 1
movzx eax, dl
neg eax
sbb eax, eax
shr cx, 1
and eax, 0xa001
xor ax, cx
shr bx, 8
movzx ecx, ax
inc esi
xor bx, cx
movzx ebx, bx
cmp esi, edi
jb 0x46fdb0
mov ax, bx
pop ebx
pop edi
pop esi
pop ebp
ret
mov ax, word [esp + 0x10]
pop edi
pop esi
pop ebp
ret

Function at 0x46fec0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
call sub.KERNEL32.dll_GetCurrentThreadId
push dword [0x57ceb8]
mov esi, eax
xor edi, edi
call fcn.0044bfa0
mov ecx, dword [0x57cebc]
add esp, 4
test ecx, ecx
je 0x41e734
cmp dword [ecx], esi
je 0x41e731
mov ecx, dword [ecx + 8]
test ecx, ecx
jne 0x41e713
push dword [0x57ceb8]
call fcn.0044bfe0
add esp, 4
mov eax, edi
pop edi
pop esi
ret
mov edi, dword [ecx + 4]
push dword [0x57ceb8]
call fcn.0044bfe0
add esp, 4
mov eax, edi
pop edi
pop esi
ret
cmp dword [0x57e48c], 0
jne 0x41e6f0
mov eax, dword [0x568380]
cmp eax, 0xffffffff
je 0x46fedf
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
ret
xor eax, eax
ret
Function at 0x46ff70
Capabilities:
Set thread local storage value

Disassembly:
push ebx
push esi
call sub.KERNEL32.dll_GetCurrentThreadId
push dword [0x57ceb8]
mov esi, eax
xor ebx, ebx
call fcn.0044bfa0
mov ecx, dword [0x57cebc]
add esp, 4
xor edx, edx
test ecx, ecx
je 0x41e822
cmp dword [ecx], esi
je 0x41e868
mov edx, ecx
mov ecx, dword [ecx + 8]
test ecx, ecx
jne 0x41e815
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x41e8d9
push 0xc
call fcn.00458e00
add esp, 4
test eax, eax
je 0x41e8cd
mov ecx, dword [0x57cebc]
mov dword [eax + 4], edi
pop edi
push dword [0x57ceb8]
mov dword [eax], esi
mov dword [eax + 8], ecx
mov dword [0x57cebc], eax
call fcn.0044bfe0
add esp, 4
mov eax, ebx
pop esi
pop ebx
ret
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41e886
push dword [0x57ceb8]
mov dword [ecx + 4], eax
call fcn.0044bfe0
add esp, 4
mov eax, ebx
pop esi
pop ebx
ret
mov eax, dword [ecx + 8]
test edx, edx
je 0x41e8ac
push ecx
mov dword [edx + 8], eax
call fcn.00458de0
add esp, 4
push dword [0x57ceb8]
call fcn.0044bfe0
add esp, 4
mov eax, ebx
pop esi
pop ebx
ret
push ecx
mov dword [0x57cebc], eax
call fcn.00458de0
add esp, 4
push dword [0x57ceb8]
call fcn.0044bfe0
add esp, 4
mov eax, ebx
pop esi
pop ebx
ret
push 0
call fcn.0041b5a0
add esp, 4
mov ebx, eax
pop edi
push dword [0x57ceb8]
call fcn.0044bfe0
add esp, 4
mov eax, ebx
pop esi
pop ebx
ret
cmp dword [0x57e48c], 0
jne 0x41e7f0
push dword [esp + 4]
push dword [0x568380]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x46ff9e
mov dword [esp + 4], str.TlsSetValue__
jmp fcn.00470490
xor eax, eax
ret
Function at 0x4711e0
Capabilities:
Log keystrokes via input method manager

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x10]
push esi
movzx eax, word [ebx + 0xf0]
push edi
mov edi, dword [esp + 0x1c]
push 0
push 0
push edi
push ebp
mov dword [esp + 0x24], eax
call sub.IMM32.dll_ImmGetCompositionStringW
mov esi, eax
test esi, esi
jle 0x471233
cmp dword [ebx + 0x7c], esi
jge 0x471233
mov eax, dword [ebx + 0x78]
test eax, eax
je 0x471221
push eax
call fcn.00458de0
add esp, 4
lea eax, [esi + 2]
push eax
call fcn.00458e00
add esp, 4
mov dword [ebx + 0x78], eax
mov dword [ebx + 0x7c], esi
push dword [ebx + 0x7c]
push dword [ebx + 0x78]
push edi
push ebp
call sub.IMM32.dll_ImmGetCompositionStringW
push 0
xor esi, esi
test eax, eax
push 0
push 0x80
cmovns esi, eax
push ebp
shr esi, 1
call sub.IMM32.dll_ImmGetCompositionStringW
movzx edx, ax
mov eax, dword [esp + 0x14]
mov dword [ebx + 0xa0], edx
cmp eax, 0x404
je 0x471273
cmp eax, 0x804
jne 0x4712b3
test edx, edx
je 0x4712b3
mov eax, dword [ebx + 0x7c]
shr eax, 1
cmp edx, eax
jae 0x4712b3
mov eax, dword [ebx + 0x78]
mov ecx, 0x3000
movzx eax, word [eax]
cmp ax, cx
je 0x471295
cmp eax, 0x20
jne 0x4712b3
inc edx
cmp edx, esi
jae 0x4712b2
nop word [eax + eax]
mov eax, dword [ebx + 0x78]
lea ecx, [eax + edx*2]
inc edx
mov ax, word [ecx]
mov word [ecx - 2], ax
cmp edx, esi
jl 0x4712a0
dec esi
mov eax, dword [ebx + 0x78]
xor ecx, ecx
mov word [eax + esi*2], cx
cmp dword [ebx + 0xa0], ecx
jne 0x471334
test esi, esi
jle 0x471334
xor esi, esi
push esi
push esi
push 0x10
push ebp
call sub.IMM32.dll_ImmGetCompositionStringW
mov edi, eax
test edi, edi
jle 0x47132e
lea ecx, [edi + 2]
push ecx
call fcn.00458e00
add esp, 4
mov ebp, eax
push edi
push ebp
push 0x10
push dword [esp + 0x24]
call sub.IMM32.dll_ImmGetCompositionStringW
xor ecx, ecx
mov al, byte [ecx + ebp]
cmp al, 1
je 0x471307
cmp al, 3
je 0x471307
inc ecx
cmp ecx, edi
jl 0x4712f7
mov esi, ecx
cmp ecx, edi
jge 0x471322
nop dword [eax]
mov al, byte [esi + ebp]
cmp al, 1
je 0x47131b
cmp al, 3
jne 0x471325
inc esi
cmp esi, edi
jl 0x471310
cmp ecx, edi
cmove esi, edi
push ebp
call fcn.00458de0
add esp, 4
mov dword [ebx + 0xa0], esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x471e10
Capabilities:
Get keyboard layout

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push 0
movzx edi, word [esi + 0xf0]
and edi, 0x3ff
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov ecx, dword [esi + 0xf0]
cmp eax, ecx
je 0x471e66
movzx edx, ax
mov ecx, edx
mov dword [esi + 0xf0], eax
and ecx, 0x3ff
cmp ecx, 0x12
je 0x471e5c
mov ecx, 0x804
cmp dx, cx
je 0x471e5c
mov ecx, 1
jmp 0x471e5e
xor ecx, ecx
mov dword [esi + 0xc0], ecx
mov ecx, eax
cmp dword [esi + 0x110], 0
jne 0x471e80
xor eax, eax
cmp ecx, 0xe0060404
setne al
mov dword [esi + 0xbc], eax
push esi
call fcn.004720f0
movzx eax, word [esi + 0xf0]
add esp, 4
and eax, 0x3ff
cmp edi, eax
je 0x471ea2
push esi
call fcn.00470f50
add esp, 4
pop edi
pop esi
ret