joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f77c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x42f7c8
mov eax, esi
call fcn.00445044
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x42f7c8
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x42f7c8
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x42f907
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x42f808
cmp eax, 0x108
ja 0x42f808
mov eax, esi
call fcn.00445044
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x42f8fe
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x42f907
jmp 0x42f8fe
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x42f8e7
cmp eax, 0x20a
ja 0x42f8e7
test byte [esi + 0x50], 0x80
jne 0x42f83a
sub eax, 0x203
je 0x42f837
sub eax, 3
je 0x42f837
sub eax, 3
jne 0x42f83a
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x42f84e
dec eax
je 0x42f863
dec eax
je 0x42f880
dec eax
je 0x42f863
jmp 0x42f887
mov ecx, ebx
mov eax, dword [0x450fd0]
mov eax, dword [eax]
mov edx, esi
call fcn.0044e90c
jmp 0x42f8fe
cmp byte [esi + 0x5d], 1
jne 0x42f879
mov eax, esi
mov si, 0xffed
call fcn.00403674
jmp 0x42f907
or word [esi + 0x54], 1
jmp 0x42f8fe
and word [esi + 0x54], 0xfffe
jmp 0x42f8fe
mov eax, dword [0x452b10]
cmp byte [eax + 0x20], 0
je 0x42f8fe
mov eax, dword [0x452b10]
cmp dword [eax + 0x1c], 0
je 0x42f8fe
mov eax, dword [ebx]
mov edx, dword [0x452b10]
cmp eax, dword [edx + 0x1c]
jne 0x42f8fe
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.00444f88
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.00403674
jmp 0x42f907
cmp eax, 0xb00b
jne 0x42f8fe
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.0042e0ac
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x432e88
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x432ea4
cmp dword [esi + 4], 0
je 0x432ed1
test byte [ebx + 0x55], 1
jne 0x432ec3
mov eax, ebx
call fcn.00431a28
test eax, eax
jne 0x432ec3
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x432fe1
mov edx, esi
mov eax, ebx
call fcn.004329ac
jmp 0x432fe1
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x432fda
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00434cf8
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.0042f6b0
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00432e88
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00434cf8
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x432fe1
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x439600
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x451130]
cmp byte [eax + 0xc], 0
je 0x43976d
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x439766
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x452b64], 0
jne 0x439654
push 0x439774
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43977c
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x452b64], eax
cmp dword [0x450b18], 0
jne 0x43974f
push 0x43978c
call sub.kernel32.dll_LoadLibraryA
mov dword [0x450b18], eax
cmp dword [0x450b18], 0
je 0x43974f
push 0x439798
mov eax, dword [0x450b18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x452b68], eax
push 0x4397a8
mov eax, dword [0x450b18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x452b6c], eax
push 0x4397bc
mov eax, dword [0x450b18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x452b70], eax
push 0x4397d4
mov eax, dword [0x450b18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x452b74], eax
push 0x4397ec
mov eax, dword [0x450b18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x452b78], eax
push 0x439800
mov eax, dword [0x450b18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x452b7c], eax
push 0x439818
mov eax, dword [0x450b18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x452b80], eax
push 0x439830
mov eax, dword [0x450b18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x452b84], eax
push 0x43984c
mov eax, dword [0x450b18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x452b88], eax
push 0x439858
mov eax, dword [0x450b18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x452b8c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43976d
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x43d700
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.004041e0
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43d74f
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404450
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x444ef8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x444f48]
test si, 4
je 0x444f0c
or bl, 1
test si, 8
je 0x444f16
or bl, 4
test si, 1
je 0x444f20
or bl, 8
test si, 2
je 0x444f2a
or bl, 0x10
test si, 0x10
je 0x444f34
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x444f43
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x444f4c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x444f84]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x444f65
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x444f74
or bl, 4
test esi, 0x20000000
je 0x444f7f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44b648
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44b65a
add esp, 0xfffffff0
call fcn.0040378c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419570
mov eax, dword [0x450e0c]
mov dword [eax + 4], ebx
mov dword [eax], 0x44b9ec
mov eax, dword [0x450e18]
mov dword [eax + 4], ebx
mov dword [eax], 0x44b9f8
mov eax, ebx
call fcn.0044ba04
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411868]
call fcn.0040343c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411868]
call fcn.0040343c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411868]
call fcn.0040343c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411868]
call fcn.0040343c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411868]
call fcn.0040343c
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x447e1c
push eax
push 0
push 0
mov eax, dword [0x450f58]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41af94]
call fcn.0041c3fc
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41af94]
call fcn.0041c3fc
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41af94]
call fcn.0041c3fc
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044be54
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44bd1c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44bd1c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44bd1c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44b797
call fcn.004037e4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44bb00
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44bcab
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44bc8c
mov dl, 1
mov eax, dword [0x411c84]
call fcn.0040343c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004041e0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44bc7b
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00439960
test al, al
je 0x44bc6e
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x44bcbc
lea eax, [ebp - 0x254]
call fcn.00408c84
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44bc6e
xor eax, eax
push ebp
push 0x44bc67
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x44bcf4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44bc50
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404450
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44bc50
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404450
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44bc6e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44bb71
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415760
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44bcb2
lea eax, [ebp - 0x260]
call fcn.004041e0
ret

Function at 0x44c5f4
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x452bb0]
cmp byte [eax + 0xa5], 0
jne 0x44c665
cmp dword [0x452bc8], 0
jne 0x44c626
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44c5b0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x452bc8], eax
cmp dword [0x452bc4], 0
jne 0x44c641
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x452bc4], eax
cmp dword [0x452bcc], 0
jne 0x44c665
push esp
push 0
push 0
push 0x44c554
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x452bcc], eax
pop edx
ret
Function at 0x44ccf8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x452bb0]
cmp dword [eax + 0x30], 0
je 0x44cda2
cmp dword [ebx + 0x94], 0
jne 0x44cd9c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44cc88
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44cd9c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44cd62
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44cd9c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413bd0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44cd71
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44d900
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x44d935
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004042d0
jmp 0x44d942
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404234
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44ea54
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44ea95
mov eax, esi
call fcn.00434fd0
test al, al
je 0x44ea95
mov eax, dword [ebx + 0x84]
call fcn.00434cf8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44ea95
push 0
mov eax, dword [ebx + 0x84]
call fcn.00434cf8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x10013c9d
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
mov ebx, ecx
mov dword [ebp - 4], edi
mov esi, edi
call fcn.10013cfe
push dword [ebp - 4]
push edi
push 4
call dword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_OpenFileMappingW]
mov dword [ebx], eax
test eax, eax
je 0x100238ed
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_MapViewOfFile]
mov dword [ebx + 4], eax
test eax, eax
je 0x100238cc
cmp dword [ebx + 4], edi
je 0x1002390b
push dword [ebp - 4]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x100238e1
movzx esi, si
or esi, 0x80070000
mov ecx, ebx
call fcn.1001b590
jmp 0x10013ce5
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x10013ce5
movzx esi, si
or esi, 0x80070000
jmp 0x10013ce5
mov edi, 0x80004005
test esi, esi
jns 0x10013cee
mov edi, esi
jmp 0x10013cee

Function at 0x10013ea9
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x100630b8]
push esi
xor esi, esi
test eax, eax
jne 0x10013ec9
push esi
push esi
push 1
push esi
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov dword [0x100630b8], eax
test eax, eax
je 0x10013f1b
push eax
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ResetEvent]
lock inc dword [0x10062e7c]
push 0x100630c0
push esi
push 0x100630ac
push 0x10011eb0
push esi
push esi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
mov dword [0x100630bc], eax
test eax, eax
je 0x10013f09
push 0xffffffffffffffff
push dword [0x100630b8]
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
push dword [0x100630b8]
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov dword [0x100630b8], esi
pop esi
ret
Function at 0x10014e80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x10062340]
push ebx
mov bl, cl
cmp eax, 0xffffffff
je 0x10014eaf
push esi
push eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x10014ea9
test bl, bl
jne 0x10023f25
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0xc
call fcn.1001b624
mov esi, eax
add esp, 4
mov dword [ebp - 4], esi
test esi, esi
je 0x10023f43
push edi
mov edi, esi
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop edi
jmp 0x10023f45
xor esi, esi
push esi
push dword [0x10062340]
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
mov eax, esi
jmp 0x10014ea9

Function at 0x10014ec0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x10062340]
cmp eax, 0xffffffff
je 0x10014ed9
push eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test eax, eax
jne 0x10023f59
ret
push eax
call fcn.1001b64d
add esp, 4
push 0
push dword [0x10062340]
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
ret
Function at 0x10015b89
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
xor ebx, ebx
mov dword [ebp - 8], esi
push edi
mov dword [ebp - 0x10], ebx
mov ecx, ebx
mov eax, dword [esi + 0x14]
mov edi, dword [esi + 0x18]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edi
movzx eax, word [eax + 4]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x1002414d
mov eax, ebx
mov edi, ebx
test eax, eax
jne 0x10024178
mov esi, dword [ebp - 0x14]
mov ecx, ebx
mov eax, dword [ebp - 8]
movzx esi, word [esi + 6]
mov eax, dword [eax + 0x1c]
test esi, esi
jne 0x10024260
mov eax, edi
mov dword [edx + 0x10], ebx
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, edi
mov edi, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
cmp dword [eax], edx
mov edx, dword [ebp - 4]
jne 0x100241a4
cmp dword [ebp + 0xc], ebx
je 0x10024189
cmp dword [esi + 0x20], ebx
je 0x10024189
test byte [eax + 4], 1
jne 0x100241a4
imul esi, ecx, 0xc
lea edi, [ebp - 0x24]
add esi, dword [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp dword [ebp + 0xc], ebx
je 0x100241bc
mov eax, dword [ebp - 8]
cmp dword [eax + 0x20], ebx
je 0x100241bc
push 0xc
jmp 0x100241be
test byte [eax + 4], 1
lea edi, [ebp - 0x24]
mov esi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jne 0x100241b4
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x10], 1
inc ecx
add eax, 0xc
cmp ecx, edi
jb 0x10024152
mov eax, dword [ebp - 0x10]
jmp 0x10015bc0
xor eax, eax
inc eax
jmp 0x10015bc0
push 8
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x20]
pop eax
mov eax, dword [eax + ecx]
test al, 4
je 0x100241d5
and esi, 0xffffcfff
mov dword [ebp - 0x20], esi
test al, 2
je 0x100241e2
and esi, 0xfffff3ff
mov dword [ebp - 0x20], esi
test al, 1
je 0x100241ef
and esi, 0xfffffcff
mov dword [ebp - 0x20], esi
test al, 8
je 0x100241ff
and esi, 0xc0ffffff
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], esi
lea ecx, [ebp - 0x24]
mov edi, ebx
call fcn.1002e371
mov edx, dword [ebp - 4]
test eax, eax
je 0x10015bca
mov eax, dword [ebp - 0x1c]
mov dword [edx + 0xc], eax
mov eax, esi
shr eax, 0x1e
mov dword [edx + 8], eax
mov eax, esi
shr eax, 0x18
and al, 0x3f
mov byte [edx + 4], al
mov eax, esi
shr eax, 1
and eax, 1
mov dword [edx + 0x14], eax
mov eax, esi
shr eax, 0xc
and eax, 3
jne 0x10024256
mov eax, esi
shr eax, 0xa
and eax, 3
jne 0x10024256
shr esi, 8
and esi, 3
je 0x10024258
mov dword [edx], esi
jmp 0x10024258
mov dword [edx], eax
xor edi, edi
inc edi
jmp 0x10015bca
mov edx, dword [ebp + 8]
cmp dword [eax], edx
mov edx, dword [ebp - 4]
je 0x10024277
inc ecx
add eax, 0x10
cmp ecx, esi
jb 0x10024260
jmp 0x10015be1
xor ebx, ebx
inc ebx
jmp 0x10015be1
Function at 0x1001683a
Capabilities:
Get keyboard layout

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
mov eax, dword [0x10062338]
xor eax, esp
mov dword [esp + 0x88], eax
cmp byte [0x100635b7], 0
push ebx
push esi
push edi
mov edi, ecx
jne 0x100168a9
push 0x30
pop esi
push esi
xor ebx, ebx
lea eax, [esp + 0x1c]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [esp + 0x18], esi
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetGUIThreadInfo]
cmp dword [esp + 0x24], ebx
je 0x100168a9
push ebx
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThreadId]
cmp eax, esi
je 0x10024370
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1001bb90
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x1002437d
push ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov edi, eax
push 0x48
lea eax, [esp + 0x4c]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [esp + 0x14], ebx
xor eax, eax
lea ecx, [esp + 0x48]
mov word [esp + 0x10], ax
mov word [esp + 0xc], ax
call fcn.10029236
test eax, eax
js 0x100243c1
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x50]
call fcn.1002984a
push dword [esp + 0xc]
lea edx, [esp + 0x4c]
mov ecx, edi
push dword [esp + 0x14]
push dword [esp + 0x1c]
call fcn.1005c7f7
jmp 0x100168a9

Function at 0x1001855b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 0x20019
push ebx
push 0x1000837c
push 0x80000002
mov dword [ebp - 8], ebx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x100185c3
push esi
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x10008354
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x100185c3
cmp dword [ebp - 8], ebx
setne bl
mov al, bl
pop ebx
leave
ret
Function at 0x100185d0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
cmp dword [0x100629c4], 2
jne 0x1001863e
cmp byte [0x10063008], 0
jne 0x10018644
mov eax, dword [0x1006346c]
test eax, eax
je 0x10024af0
cmp dword [eax + 0x2c], 0
je 0x10018644
mov cl, 1
cmp byte [0x10063009], 0
jne 0x10024b0c
test cl, cl
je 0x10018625
mov edx, dword [ebp + 0x10]
xor cl, cl
push 0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call fcn.10018650
mov eax, dword [0x10062340]
cmp eax, 0xffffffff
je 0x1001863e
push eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test eax, eax
jne 0x10024b20
mov esp, ebp
pop ebp
ret 0x1c
xor cl, cl
jmp 0x100185ff
mov ecx, 0x10063468
call fcn.10013c9d
mov eax, dword [0x1006346c]
test eax, eax
je 0x10018644
jmp 0x100185f7
mov eax, dword [ebp + 0x1c]
cmp eax, dword [0x10063000]
je 0x10018625
jmp 0x1001860c
mov ecx, dword [eax]
test ecx, ecx
je 0x1001863e
sub esp, 0x14
push dword [ebp + 0xc]
push ecx
call fcn.10054dc4
jmp 0x1001863e