joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d189ba1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x6d208610]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov esi, ecx
call fcn.6d18913e
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push edi
call dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [esi + 0x18], eax
cmp eax, 0xffffffff
je 0x6d189c67
mov edi, dword [sym.imp.kernel32.dll_ReadFile]
push ebx
lea ecx, [ebp - 0x28]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push eax
call edi
movzx ecx, byte [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov edx, 0x100
imul cx, dx
shr eax, 8
movzx eax, al
add ax, cx
xor ecx, ecx
mov word [ebp - 0xc], ax
mov dword [ebp - 0x24], ebx
cmp cx, ax
jae 0x6d189c44
push ebx
lea eax, [ebp - 0x28]
push eax
push 0x10
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0x18]
call edi
cmp dword [ebp - 0x20], 0x70616d63
je 0x6d189c44
movzx eax, word [ebp - 0xc]
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], eax
jl 0x6d189c1f
lea eax, [ebp - 0x18]
push eax
call fcn.6d1891cb
mov eax, dword [ebp - 0x18]
pop ecx
mov ecx, esi
mov dword [esi + 0x1c], eax
call fcn.6d18984f
push dword [esi + 0x18]
mov dword [esi + 0x1c], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
mov dword [esi + 0x18], ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.6d1c0acb
leave
ret 4
Function at 0x6d18d67c
Capabilities:
Get keyboard layout

Disassembly:
push 0x14
mov eax, 0x6d1c3136
call fcn.6d1c0ca9
xor edi, edi
mov dword [ebp - 4], edi
call fcn.6d1acfff
call fcn.6d180d61
movzx eax, word [0x6d20a934]
push eax
call sub.java.dll_getJavaIDFromLangID
mov esi, dword [ebp + 8]
pop ecx
lea ecx, [ebp - 0x12]
push ecx
push dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x2a4]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x1c], edi
je 0x6d18d6f4
push eax
push dword [ebp - 0x1c]
call sub.MSVCR100.dll_strcmp
pop ecx
pop ecx
test eax, eax
jne 0x6d18d6f4
push dword [ebp - 0x18]
mov eax, dword [esi]
push dword [ebp + 0x10]
push esi
call dword [eax + 0x2a8]
mov bl, 1
push dword [ebp - 0x1c]
call dword [sym.imp.MSVCR100.dll_free]
pop ecx
mov al, bl
jmp 0x6d18d7a9
mov ebx, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
push edi
push edi
call ebx
lea esi, [eax + 1]
mov eax, esi
shl eax, 2
push eax
call fcn.6d180d61
mov edi, eax
pop ecx
lea eax, [edi + 4]
push eax
lea eax, [esi - 1]
push eax
call ebx
call fcn.6d180d61
and dword [ebp - 0x20], 0
mov dword [edi], eax
mov byte [ebp - 0x11], 0
mov eax, dword [ebp - 0x20]
cmp eax, esi
jge 0x6d18d775
lea ebx, [edi + eax*4]
movzx eax, word [ebx]
push eax
call sub.java.dll_getJavaIDFromLangID
pop ecx
test eax, eax
je 0x6d18d797
push dword [ebp - 0x18]
push eax
call sub.MSVCR100.dll_strcmp
pop ecx
pop ecx
test eax, eax
jne 0x6d18d797
push dword [ebx]
movzx eax, byte [ebp + 0x14]
push eax
push 0x9823
mov ecx, 0x6d20b1d0
call fcn.6d17bdbd
test eax, eax
je 0x6d18d775
push dword [ebx]
call fcn.6d19d7c0
pop ecx
mov byte [ebp - 0x11], 1
push dword [ebp - 0x18]
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2a8]
push edi
call dword [sym.imp.MSVCR100.dll_free]
mov bl, byte [ebp - 0x11]
pop ecx
jmp 0x6d18d6e3
inc dword [ebp - 0x20]
jmp 0x6d18d728
call fcn.6d1c0d4e
ret 0x10
Function at 0x6d18d7b7
Capabilities:
Get keyboard layout

Disassembly:
push 0x1c
mov eax, 0x6d1c3151
call fcn.6d1c0ca9
xor esi, esi
mov dword [ebp - 4], esi
call fcn.6d1acfff
call fcn.6d180d61
push esi
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
call esi
mov ebx, eax
mov edi, ebx
shl edi, 2
push edi
mov dword [ebp - 0x28], ebx
call fcn.6d180d61
pop ecx
push eax
push ebx
mov dword [ebp - 0x24], eax
call esi
xor eax, eax
push edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], eax
call fcn.6d180d61
mov ebx, eax
pop ecx
mov dword [ebp - 0x20], ebx
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x28]
jge 0x6d18d856
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x24]
movzx eax, word [eax + ecx*4]
push eax
call sub.java.dll_getJavaIDFromLangID
mov edi, eax
pop ecx
test edi, edi
je 0x6d18d851
xor esi, esi
cmp esi, dword [ebp - 0x14]
jge 0x6d18d846
push edi
push dword [ebx + esi*4]
call sub.MSVCR100.dll_strcmp
pop ecx
pop ecx
test eax, eax
je 0x6d18d843
inc esi
jmp 0x6d18d82c
cmp esi, dword [ebp - 0x14]
jne 0x6d18d851
inc dword [ebp - 0x1c]
inc dword [ebp - 0x14]
mov dword [ebx + esi*4], edi
inc dword [ebp - 0x18]
jmp 0x6d18d80b
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push str.java_util_Locale
push esi
call dword [eax + 0x18]
mov ecx, dword [esi]
xor ebx, ebx
push ebx
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
push esi
call dword [ecx + 0x2b0]
mov edi, dword [sym.imp.MSVCR100.dll_free]
mov dword [ebp + 8], eax
cmp ebx, dword [ebp - 0x1c]
jge 0x6d18d8ad
mov eax, dword [ebp - 0x20]
push dword [eax + ebx*4]
push esi
call fcn.6d18d523
pop ecx
pop ecx
mov ecx, dword [esi]
push eax
push ebx
push dword [ebp + 8]
push esi
call dword [ecx + 0x2b8]
mov eax, dword [ebp - 0x20]
push dword [eax + ebx*4]
call edi
pop ecx
inc ebx
jmp 0x6d18d880
push dword [ebp - 0x28]
mov eax, dword [esi]
push esi
call dword [eax + 0x5c]
push dword [ebp - 0x24]
call edi
push dword [ebp - 0x20]
call edi
mov eax, dword [ebp + 8]
pop ecx
pop ecx
jmp 0x6d18d8d4
call fcn.6d1c0d4e
ret 8
Function at 0x6d192858
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x38c]
sub esp, 0x40c
mov eax, dword [0x6d208610]
xor eax, ebp
mov dword [ebp + 0x388], eax
push esi
mov esi, ecx
mov ecx, dword [esi + 0xc08]
push edi
call fcn.6d1a5ef6
mov edi, eax
test edi, edi
je 0x6d192a29
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.6d1a5f00
cmp ebx, 8
jne 0x6d1928f5
mov ecx, dword [esi + 0xc08]
call fcn.6d1a5ef6
mov ebx, eax
lea eax, [ebp - 0x78]
push eax
push ebx
call fcn.6d1926d1
pop ecx
pop ecx
mov ecx, dword [esi + 0xc08]
push ebx
mov edi, eax
call fcn.6d1a5f00
cmp edi, dword [esi + 0xc00]
jne 0x6d1928fc
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 0x6d1928fc
xor eax, eax
jmp 0x6d192a28
mov eax, 0x100
cmp edi, eax
jle 0x6d192907
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.6d180d61
cmp eax, 1
jne 0x6d192941
push 2
jmp 0x6d192984
cmp eax, 2
jne 0x6d19294a
push 3
jmp 0x6d192984
push str.FORCEGRAY
call dword [sym.imp.MSVCR100.dll_getenv]
pop ecx
test eax, eax
je 0x6d192982
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 0x6d192965
sub edi, 0x14
sub dword [ebp - 0x7c], edx
mov dword [ebp - 0x80], edx
push 1
jmp 0x6d192984
push 0
mov ecx, dword [esi + 0xc08]
call fcn.6d1a6479
mov ecx, dword [ebp - 0x80]
cmp ecx, dword [ebp - 0x7c]
jg 0x6d1929c8
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 0x6d19299e
push 0x20
lea ebx, [esi + 0x400]
push edi
push ebx
call fcn.6d180d61
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 0x6d1929f7
cmp eax, 1
jne 0x6d192a25
test edi, edi
je 0x6d192a25
mov eax, dword [edi + 0x10]
test eax, eax
je 0x6d192a0e
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.6d180d61
add esp, 0xc
xor eax, eax
inc eax
pop ebx
mov ecx, dword [ebp + 0x388]
pop edi
xor ecx, ebp
pop esi
call fcn.6d1c0acb
add ebp, 0x38c
leave
ret
Function at 0x6d19afa6
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 0x6d19affb
mov eax, dword [ebp]
cmp eax, dword [ebp + 4]
jne 0x6d19affb
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 0x6d19d5b0
Capabilities:
Log keystrokes via polling

Disassembly:
test byte [0x6d20b3c4], 1
jne 0x6d19d5cd
or dword [0x6d20b3c4], 1
push 0x17
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [0x6d20b3c0], 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 0x6d19d5e7
mov esi, 8
push 0x10
call edi
shr eax, 8
test al, al
je 0x6d19d5f5
or esi, 4
push 1
call edi
shr eax, 8
test al, al
je 0x6d19d60e
xor eax, eax
cmp dword [0x6d20b3c0], eax
setne al
inc eax
or esi, eax
push 2
call edi
shr eax, 8
test al, al
je 0x6d19d628
mov ecx, dword [0x6d20b3c0]
neg ecx
sbb ecx, ecx
add ecx, 2
or esi, ecx
push 4
call edi
shr eax, 8
test al, al
je 0x6d19d636
or esi, 0x10
pop edi
mov eax, esi
pop esi
ret

Function at 0x6d19e3c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6d1c1bf8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6d208610]
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 0x6d19e417
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 0x6d19e460
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x6d1c1bf8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6d208610]
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 0x6d19e4b6
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 0x6d19f090
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d1c43c0
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x6d208610]
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.6d1acfff
call fcn.6d180d61
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.6d1a59c2
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 0x6d19f157
call esi
cmp al, 5
jb 0x6d19f11c
call esi
shr eax, 8
cmp al, 1
jae 0x6d19f122
call esi
cmp al, 5
jbe 0x6d19f143
call esi
cmp al, 6
jb 0x6d19f12f
push str.__Windows_Vista_
jmp 0x6d19f15c
push str.__Windows_XP_
push 0x80
lea eax, [ebp + edi*2 - 0x114]
push eax
jmp 0x6d19f169
push str.__Windows_2000_
push 0x80
lea ecx, [ebp + edi*2 - 0x114]
push ecx
jmp 0x6d19f169
push str.__Unknown_
push 0x80
lea edx, [ebp + edi*2 - 0x114]
push edx
call fcn.6d1a59c2
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 0x6d19f1a3
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.6d1c0acb
mov esp, ebp
pop ebp
ret 8
Function at 0x6d19f380
Capabilities:
Access peb ldr_data
Get ntdll base address
Log keystrokes via polling

Disassembly:
push 0xffffffffffffffff
push 0x6d1c4465
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6d208610]
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.6d1acff9
add esp, 4
mov dword [esp + 0x18], eax
mov byte [esp + 0x24], 3
cmp eax, ebx
je 0x6d19f49f
mov ecx, eax
call fcn.6d17275e
jmp 0x6d19f4a1
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.6d180665
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 0x6d19f8f0
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.6d17fc27
mov esi, eax
add esp, 4
test esi, esi
je 0x6d19f91c
mov edx, dword [esi]
mov eax, dword [edx + 0x98]
push edi
mov ecx, esi
call eax
cmp eax, 2
je 0x6d19f948
mov eax, dword [edi + 4]
cmp eax, 0x200
jb 0x6d19f92d
cmp eax, 0x20e
jbe 0x6d19f93b
cmp eax, 0xa0
jb 0x6d19f953
cmp eax, 0xa9
ja 0x6d19f953
push edi
push esi
mov ecx, ebx
call fcn.6d19db70
test eax, eax
je 0x6d19f986
pop edi
pop esi
mov eax, 1
pop ebx
ret 4
cmp eax, 0x100
jb 0x6d19f986
cmp eax, 0x109
ja 0x6d19f986
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 0x6d1a0fb0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x6d1c1c28
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6d208610]
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 0x6d1a100a
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 0x6d1a101a
mov eax, dword [esp + 0x24]
mov dword [esi + 0x38], eax
jmp 0x6d1a1031
mov eax, dword [ecx + 0x24]
test eax, eax
je 0x6d1a102a
mov ecx, eax
mov eax, dword [eax + 0x24]
test eax, eax
jne 0x6d1a1021
mov edx, dword [esp + 0x24]
mov dword [ecx + 0x24], edx
or ebx, 0xffffffff
cmp dword [esi + 0x1c], ebx
jle 0x6d1a1052
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 0x6d1a10c5
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 0x6d1a0df0
push 0x100000
push 0
call dword [sym.imp.MSVCR100.dll__beginthreadex]
add esp, 0x18
test eax, eax
jne 0x6d1a10aa
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 0x6d1a10e0
Capabilities:
Set global application hook

Disassembly:
push 0xffffffffffffffff
push 0x6d1c466e
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6d208610]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [0x6d20b1f0], 0
je 0x6d1a11df
cmp dword [0x6d20b1e0], 0
jne 0x6d1a11df
test byte [0x6d209858], 1
jne 0x6d1a1157
or dword [0x6d209858], 1
mov ecx, 0x6d209854
mov dword [esp + 0x1c], 0
call fcn.6d1bf3d6
push 0x6d1c59d6
call fcn.6d180d61
add esp, 4
mov dword [esp + 0x1c], 0xffffffff
mov ecx, 0x6d209854
call fcn.6d180d61
mov ebx, dword [esp + 0x24]
test ebx, ebx
jne 0x6d1a1176
push 1
lea ecx, [esi + 0x1a8]
call fcn.6d19e3c0
call fcn.6d1a0f50
call fcn.6d1ad0b4
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 0x6d1a11f7
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 [0x6d20b1cc]
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 [0x6d20b1dc], ebx
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov ecx, dword [0x6d20b34c]
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 [0x6d20b1e0], eax
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x6d20b1e4], eax
mov eax, dword [0x6d20b1e0]
push eax
push 0
push 0x6d1a0c60
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x6d20b218], eax
call fcn.6d1a7db1
mov eax, 1
jmp 0x6d1a11e1

Function at 0x6d1a59fc
Capabilities:
Check os version

Disassembly:
push 0xc
mov eax, 0x6d1c4aa9
call fcn.6d1c0ca9
mov eax, dword [0x6d20806c]
cmp eax, 0xfffffffe
jne 0x6d1a5a81
call dword [sym.imp.kernel32.dll_GetVersion]
cmp al, 6
jae 0x6d1a5a27
and dword [0x6d20806c], 0
xor eax, eax
jmp 0x6d1a5a81
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
call fcn.6d180d61
pop ecx
cmp eax, ebx
jl 0x6d1a5a4b
mov ebx, dword [ebp - 0x14]
jmp 0x6d1a5a4b
push 0x10002
push dword [0x6d20b1cc]
mov dword [0x6d20806c], 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.6d1c0d4e
ret
Function at 0x6d1a5b71
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x5b4]
sub esp, 0x634
mov eax, dword [0x6d208610]
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 0x6d1a5bbb
mov eax, str.EUDC932
jmp 0x6d1a5c1f
mov ecx, 0x804
cmp ax, cx
je 0x6d1a5c1a
mov ecx, 0x1004
cmp ax, cx
je 0x6d1a5c1a
mov ecx, 0xc04
cmp ax, cx
je 0x6d1a5c13
mov ecx, 0x404
cmp ax, cx
je 0x6d1a5c13
mov ecx, 0x1404
cmp ax, cx
je 0x6d1a5c13
mov ecx, 0x412
cmp ax, cx
jne 0x6d1a5bfe
mov eax, str.EUDC949
jmp 0x6d1a5c1f
mov ecx, 0x409
cmp ax, cx
jne 0x6d1a5ccf
mov eax, str.EUDC1252
jmp 0x6d1a5c1f
mov eax, str.EUDC950
jmp 0x6d1a5c1f
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 0x6d1a5ccf
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 0x6d1a5ccf
cmp dword [ebp - 0x80], 1
jne 0x6d1a5ccf
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 0x6d1a5cea
push str.SystemRoot
call dword [sym.imp.MSVCR100.dll__wgetenv]
pop ecx
test eax, eax
je 0x6d1a5ccf
lea ecx, [ebp + 0x3bc]
push ecx
push eax
push str._s_s
lea eax, [ebp + 0x198]
push 0x104
push eax
call fcn.6d1a59c2
add esp, 0x14
cmp eax, 0xffffffff
jne 0x6d1a5d32
xor eax, eax
mov ecx, dword [ebp + 0x5b0]
pop esi
xor ecx, ebp
pop ebx
call fcn.6d1c0acb
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 0x6d1a5d38
push 0x105
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x6d1a5ccf
lea eax, [ebp - 0x74]
push eax
push str._sFONTSEUDC.TTE
lea eax, [ebp + 0x198]
push 0x104
push eax
call fcn.6d1a59c2
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 0x6d1a5cd1

Function at 0x6d1a5e16
Capabilities:
Check os version

Disassembly:
mov dword [0x6d20806c], 0xfffffffe
jmp fcn.6d1a59fc

Function at 0x6d1a65f1
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [ecx]
cmp dword [eax + 4], 8
jle 0x6d1a65fc
xor eax, eax
ret
mov ecx, dword [ecx + 4]
jmp fcn.6d192858