joyce8/EMBER2024-capa huggingface dataset:
Function at 0x301618ea
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x3002450c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x214]
push eax
push 1
xor ebx, ebx
push ebx
push 0x30039890
push reloc.OLEAUT32.dll_SysReAllocString
mov word [ebp - 0x210], bx
mov dword [ebp - 0x214], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x3016192f
xor eax, eax
jmp 0x301619aa
cmp byte [ebp + 8], bl
je 0x30161939
xor eax, eax
inc eax
jmp 0x301619aa
push esi
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
push 0x3003985c
push dword [ebp - 0x214]
mov dword [ebp - 0x21c], 0x208
mov dword [ebp - 0x218], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x214]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
pop esi
jne 0x3016192b
cmp dword [ebp - 0x218], 1
je 0x3016199a
push ebx
push 0x37733964
call fcn.3010aa60
jmp 0x3016192b
lea eax, [ebp - 0x210]
push eax
mov word [ebp - 8], bx
call fcn.3010b6b6
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.30136bd1
leave
ret 4
Function at 0x301635db
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
xor ebx, ebx
cmp edi, ebx
je 0x301635ec
mov dword [edi], ebx
push dword [0x30262eb8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
jne 0x301636a4
mov esi, dword [ebp + 8]
cmp esi, ebx
jne 0x30163688
mov eax, dword [ebp + 0x10]
sub eax, ebx
je 0x30163616
dec eax
je 0x30163632
dec eax
jne 0x3016362b
push 8
push ebx
push dword [0x3027f720]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebx
jne 0x30163636
mov eax, 0x8007000e
jmp 0x301636ac
push 0x10
jmp 0x30163618
mov eax, dword [ebp + 0x10]
sub eax, ebx
mov edi, 0x80004005
je 0x30163648
dec eax
je 0x30163666
dec eax
jne 0x3016365b
mov dword [esi + 4], 1
mov dword [esi], 0x30039bd8
xor edi, edi
cmp edi, ebx
jge 0x30163694
mov ecx, esi
call fcn.3016342b
mov eax, edi
jmp 0x301636ac
push dword [ebp + 0xc]
and dword [esi + 0xc], 0xfffffffc
mov ecx, esi
mov dword [esi + 4], 1
mov dword [esi], 0x30039bbc
mov dword [esi + 8], ebx
call fcn.301632aa
mov edi, eax
jmp 0x30163657
xor ecx, ecx
lea eax, [esi + 4]
inc ecx
lock xadd dword [eax], ecx
jmp 0x30163697
mov edi, dword [ebp + 0x14]
push esi
push dword [0x30262eb8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp edi, ebx
je 0x301636aa
mov dword [edi], esi
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x30168131
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov esi, eax
call fcn.301f2b5a
movzx ebx, ax
test bx, bx
jne 0x30168151
xor al, al
jmp 0x301681c7
push edi
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.USER32.dll_VkKeyScanExW]
call esi
movzx edi, ax
cmp di, 0xffff
movzx eax, di
mov dword [ebp + 8], eax
je 0x30168173
and edi, 0xff
movzx eax, bx
imul eax, eax, 0x10001
push eax
push dword [ebp + 0xc]
call esi
movzx ebx, ax
cmp bx, 0xffff
je 0x301681c4
mov al, bl
and ax, 0xff
cmp ax, di
jne 0x301681c4
cmp word [ebp + 0xc], 0x7f
ja 0x301681c0
push dword [ebp + 0xc]
call fcn.3011674f
push dword [ebp + 0xc]
mov si, ax
call fcn.3011673c
cmp si, ax
jne 0x301681c0
xor eax, eax
cmp word [ebp + 8], bx
sete al
jmp 0x301681c6
mov al, 1
jmp 0x301681c6
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x3016d133
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x3002450c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x60], ebx
push edi
jne 0x3016d19a
push 0x105
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x107
lea eax, [ebp - 0x214]
push eax
push 0x3003a3bc
call fcn.30125676
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea eax, [ebp - 0x214]
push eax
call edi
cmp eax, ebx
mov dword [esi + 0x60], eax
jne 0x3016d19a
push 0x3003a3a8
call edi
mov dword [esi + 0x60], eax
mov esi, dword [esi + 0x60]
cmp esi, ebx
mov edi, dword [sym.imp.USER32.dll_LoadCursorW]
je 0x3016d1d0
mov eax, dword [ebp + 8]
sub eax, ebx
je 0x3016d1c2
dec eax
dec eax
je 0x3016d1be
dec eax
je 0x3016d1ba
push 2
pop eax
jmp 0x3016d1c5
push 4
jmp 0x3016d1b7
push 3
jmp 0x3016d1b7
xor eax, eax
inc eax
movzx eax, ax
push eax
push esi
call edi
cmp eax, ebx
jne 0x3016d1e4
cmp dword [ebp + 8], ebx
je 0x3016d1dc
push 0x7f00
jmp 0x3016d1e1
push 0x7f88
push ebx
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.30136bd1
leave
ret 4
Function at 0x30171fcf
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0
lea ecx, [esi + 0x94]
call fcn.30139c1e
mov ecx, esi
pop esi
jmp sym.OFFDIAG.exe_protected:_void___thiscall_NetUI::HWNDHost::SyncVisible_void_

Function at 0x301720ea
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x3002450c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x30172210
test byte [esi + 0x32], 4
jne 0x30172210
test byte [esi + 0xc4], 8
je 0x30172210
push ebx
push edi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
cmp edi, 0x40
lea ebx, [ebp - 0x84]
jb 0x3017214d
push 2
push edi
call fcn.30146413
mov ebx, eax
test ebx, ebx
je 0x3017220e
test edi, edi
jle 0x30172162
inc edi
push edi
push ebx
push dword [esi + 0x9c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x30172166
and word [ebx], 0
lea eax, [ebp - 0x8c]
push eax
mov ecx, esi
call sym.OFFDIAG.exe_public:_wchar_t_const____thiscall_NetUI::Element::GetTextString_class_NetUI::Value___
mov edi, eax
test edi, edi
jne 0x3017217f
mov edi, 0x30002678
push edi
push ebx
call fcn.301251a6
test eax, eax
je 0x301721f3
push edi
push dword [esi + 0x9c]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.30171e80
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x301721f3
mov eax, dword [0x30264320]
movzx ecx, byte [eax + 4]
push edi
and ecx, 3
push ecx
push eax
mov ecx, esi
mov dword [ebp - 0x88], edi
call sym.OFFDIAG.exe_public:_class_NetUI::Value____thiscall_NetUI::Node::GetValue_struct_NetUI::PropertyInfo_const___int__unsigned_char_
push eax
lea ecx, [ebp - 0x88]
call fcn.301393f1
push dword [ebp - 0x88]
call sym.OFFDIAG.exe_public:_static_bool___stdcall_NetUI::Value::IsNull_class_NetUI::Value_const__
test al, al
jne 0x301721e4
push edi
mov ecx, esi
call sym.OFFDIAG.exe_public:_long_int___thiscall_NetUI::Textbox::SetIsDirty_bool_
mov ecx, dword [ebp - 0x88]
cmp ecx, edi
je 0x301721f3
call sym.OFFDIAG.exe_public:_void___thiscall_NetUI::BaseValue::Release_void_
mov ecx, dword [ebp - 0x8c]
call sym.OFFDIAG.exe_public:_void___thiscall_NetUI::BaseValue::Release_void_
lea eax, [ebp - 0x84]
cmp ebx, eax
je 0x3017220e
push ebx
call sym.OFFDIAG.exe_void___stdcall_NetUI::HFree_void__
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.30136bd1
leave
ret
Function at 0x3017cca7
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 0xd0]
test ecx, ecx
je 0x3017ccca
cmp dword [ecx + 0xb8], 0
jne 0x3017ccca
xor eax, eax
jmp 0x3017cd55
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 8]
inc esi
cmp dword [edi + 4], 0x100
mov eax, esi
jne 0x3017cd4a
test ecx, ecx
je 0x3017ccf3
cmp dword [ecx + 0x7c], 0
je 0x3017ccf3
mov eax, ecx
mov eax, dword [eax + 0x7c]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x14]
cmp dword [edi + 8], 9
jne 0x3017cd4a
test eax, eax
je 0x3017cd4a
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
and dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x10
mov word [ebp - 8], 9
mov dword [ebp - 0x10], 2
mov dword [ebp - 0x20], ebx
call esi
test ax, ax
jns 0x3017cd30
or dword [ebp - 0xc], 0xc
push 0x11
call esi
test ax, ax
jns 0x3017cd3d
or dword [ebp - 0xc], 3
lea eax, [ebp - 0x20]
push eax
mov ecx, ebx
call sym.OFFDIAG.exe_public_virtual:_void___thiscall_NetUI::Element::OnInput_struct_NetUI::InputEvent__
xor eax, eax
xor ecx, ecx
test eax, eax
sete cl
pop edi
pop esi
mov eax, ecx
pop ebx
leave
ret 4

Function at 0x30182f50
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
call fcn.30182b52
mov ecx, dword [esi + 0xc]
test cx, 0x400
je 0x30182f84
or eax, 0xffffffff
and cl, 0x40
neg cl
push 0x293
push eax
push eax
push eax
push eax
sbb ecx, ecx
neg ecx
dec ecx
push ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
pop esi
ret
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret
Function at 0x3019b7d5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push dword [ebp + 0xc]
mov esi, ecx
push dword [ebp + 8]
lea ecx, [ebp - 8]
call fcn.3019727a
push 0xffffffffffffffff
push 0x2e
lea ecx, [ebp - 8]
call fcn.3015b874
cmp eax, 0xffffffff
jne 0x3019b808
lea ecx, [ebp - 8]
call fcn.3015b4a5
xor al, al
jmp 0x3019b83b
push ebx
mov ecx, esi
call fcn.3019b74c
xor ebx, ebx
cmp eax, ebx
je 0x3019b840
cmp word [eax], bx
je 0x3019b840
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0xffffffffffffffff
push eax
call fcn.30162ae8
test eax, eax
jge 0x3019b85e
lea ecx, [ebp - 8]
call fcn.3015b4a5
xor al, al
pop ebx
pop esi
leave
ret 0xc
push dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.3015bc2d
test eax, eax
jge 0x3019b85e
lea ecx, [ebp - 8]
call fcn.3015b4a5
mov al, bl
jmp 0x3019b83a
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, ebx
jne 0x3019b86c
mov eax, 0x30002678
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x3019b852
test al, 0x10
jne 0x3019b852
mov bl, 1
jmp 0x3019b852
Function at 0x301ac1f1
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x3002450c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x114
lea eax, [ebp - 0x118]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
inc eax
cmp dword [ebp - 0x114], 5
ja 0x301ac249
jne 0x301ac247
cmp dword [ebp - 0x110], eax
jae 0x301ac249
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.30136bd1
leave
ret

Function at 0x301b2692
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
mov edi, ecx
mov eax, dword [edi]
test eax, eax
je 0x301b26a6
mov ebx, dword [eax - 8]
jmp 0x301b26a8
xor ebx, ebx
mov ecx, dword [ebp + 8]
test ecx, ecx
jl 0x301b2763
cmp ecx, ebx
jge 0x301b2763
dec ebx
test ebx, ebx
push esi
mov dword [ebp + 8], ebx
jle 0x301b2733
cmp ecx, ebx
jge 0x301b26e0
mov edx, ebx
sub edx, ecx
lea eax, [eax + ecx*8]
shl edx, 3
push edx
lea ecx, [eax + 8]
push ecx
push eax
call sub.MSVCR80.dll_memmove
add esp, 0xc
push dword [0x30262eb8]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call esi
test eax, eax
je 0x301b272c
push dword [0x30262eb8]
call esi
mov esi, dword [edi]
push 0
push 0xffffffffffffffff
push 0
mov dword [ebp - 4], eax
mov eax, dword [eax]
push 8
push ebx
sub esi, 8
mov dword [ebp - 8], eax
call fcn.30193a0d
mov ecx, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push esi
call dword [eax + 8]
test eax, eax
mov ebx, dword [ebp + 8]
je 0x301b272c
add eax, 8
mov dword [edi], eax
mov eax, dword [edi]
mov dword [eax - 8], ebx
jmp 0x301b275d
push dword [0x30262eb8]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call esi
test eax, eax
je 0x301b275a
push dword [0x30262eb8]
call esi
mov ecx, dword [edi]
mov edx, dword [eax]
sub ecx, 8
push ecx
mov ecx, eax
call dword [edx + 0x10]
and dword [edi], 0
xor eax, eax
inc eax
pop esi
jmp 0x301b2765
xor eax, eax
pop edi
pop ebx
leave
ret 4

Function at 0x301b276b
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x30262eb8]
mov edi, ecx
call esi
test eax, eax
je 0x301b27c6
push dword [0x30262eb8]
call esi
mov esi, eax
mov eax, dword [edi]
xor ecx, ecx
cmp eax, ecx
je 0x301b279f
add eax, 0xfffffff8
mov dword [ebp - 4], eax
jmp 0x301b27a2
mov dword [ebp - 4], ecx
push ebx
mov ebx, dword [esi]
push ecx
push 0xffffffffffffffff
push ecx
push 8
push dword [ebp + 8]
call fcn.30193a0d
push eax
push dword [ebp - 4]
mov ecx, esi
call dword [ebx + 8]
test eax, eax
pop ebx
je 0x301b27d1
add eax, 8
mov dword [edi], eax
mov eax, dword [edi]
mov ecx, dword [ebp + 8]
mov dword [eax - 8], ecx
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 8

Function at 0x301b2868
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.301b2692
Function at 0x301b29e3
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
push 2
mov dword [edi], 0x300cf1f0
lea esi, [edi + 0x20]
pop ebx
mov eax, dword [esi]
test eax, eax
je 0x301b2a03
push eax
call fcn.301ecc4b
and dword [esi], 0
add esi, 4
dec ebx
jne 0x301b29f4
mov eax, dword [edi + 0xc]
test eax, eax
je 0x301b2a16
push eax
call fcn.301636b3
push dword [0x3026b738]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and dword [eax + 0x16c], 0
mov ecx, edi
pop edi
pop esi
pop ebx
jmp fcn.301ec04a

Function at 0x301b2d6c
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x194]
push edi
push dword [0x3026b738]
shl esi, 0x1f
sar esi, 0x1f
call ebx
mov eax, dword [edi + 0x16c]
test eax, eax
je 0x301b2da2
push dword [eax + 0xc]
call fcn.30163415
test esi, esi
jne 0x301b2db3
call fcn.301b2d58
push edi
mov ecx, eax
call fcn.301ec086
push edi
call fcn.301b2d0d
push 0
call fcn.30163415
push 0
push dword [0x3026b738]
call ebx
pop edi
test esi, esi
pop esi
pop ebx
jne 0x301b2dde
dec dword [0x3027f7d4]
jne 0x301b2dde
call fcn.301b2ce0
pop ebp
ret 4
Function at 0x301b2de2
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 4], 0x8004000a
mov dword [esi], ebx
call fcn.3015eb10
test eax, eax
je 0x301b2e22
push dword [0x3026b738]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
inc dword [eax + 0x190]
mov eax, dword [eax + 0x16c]
mov dword [esi], eax
xor eax, eax
jmp 0x301b2fdb
cmp dword [ebp + 0xc], ebx
jne 0x301b2e41
call fcn.301b2c73
cmp eax, ebx
jne 0x301b2e3a
mov eax, 0x8007000e
jmp 0x301b2fdb
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
cmp eax, ebx
push edi
je 0x301b2e51
cmp eax, 2
jne 0x301b2e66
xor esi, esi
cmp eax, 2
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ebx
jne 0x301b2e72
cmp dword [ecx + 0x10], ebx
je 0x301b2e72
mov dword [ebp - 4], 0x80070057
jmp 0x301b2f9f
xor edx, edx
dec eax
inc edx
cmp edx, eax
mov eax, dword [ecx + 0xc]
sbb edi, edi
neg edi
sub eax, ebx
je 0x301b2e8b
dec eax
jne 0x301b2ea4
push 2
pop ebx
jmp 0x301b2ea4
push 0x1000
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp + 8]
mov ebx, eax
neg ebx
sbb ebx, ebx
and ebx, 0xfffffffe
inc ebx
inc ebx
mov ecx, dword [ecx + 0x10]
test ecx, ecx
je 0x301b2f33
push ecx
call fcn.3015eb30
mov esi, eax
test esi, esi
jne 0x301b2ec7
mov dword [ebp - 4], 0x80070057
jmp 0x301b2f7d
and dword [ebp - 0x10], 0
mov ecx, esi
call fcn.301b295d
cmp dword [esi + 0x18], 2
jne 0x301b2ee8
mov dword [ebp - 4], 0x80070057
mov dword [ebp - 0x10], 1
jmp 0x301b2f00
xor ecx, ecx
lea eax, [esi + 4]
inc ecx
lock xadd dword [eax], ecx
lea eax, [ebp - 0x18]
push eax
push ebx
push edi
push dword [esi + 0xc]
call fcn.301635db
dec dword [esi + 8]
mov ecx, esi
call fcn.3015eab5
cmp dword [ebp - 0x10], 0
jne 0x301b2f7d
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
call fcn.301ec2f8
test eax, eax
mov dword [ebp - 4], eax
jl 0x301b2f7d
cmp dword [ebp + 0xc], 0
je 0x301b2f4d
mov eax, dword [ebp - 8]
mov dword [0x3027f7cc], eax
jmp 0x301b2f63
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
push 0
call fcn.301635db
test eax, eax
jge 0x301b2f10
mov dword [ebp - 4], 0x8007000e
jmp 0x301b2f7d
mov edi, dword [ebp - 8]
call fcn.301b2d58
push edi
mov ecx, eax
call fcn.301ec069
inc dword [0x3027f7d4]
test esi, esi
jne 0x301b2fba
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.301b2b36
test eax, eax
mov dword [ebp - 4], eax
jge 0x301b2fb5
cmp dword [ebp - 8], 0
je 0x301b2f8f
push dword [ebp - 8]
call fcn.301b2d6c
and dword [ebp - 8], 0
cmp dword [ebp - 0xc], 0
je 0x301b2f9d
push dword [ebp - 0xc]
call fcn.301636b3
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
jne 0x301b2fb0
call fcn.301b2c73
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 4]
jmp 0x301b2fda
mov esi, dword [ebp - 0x14]
jmp 0x301b2fc1
mov ecx, esi
call fcn.301b2a3a
cmp dword [ebp + 0xc], 0
jne 0x301b2fd3
call fcn.301b2c73
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x301b3fdb
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 0x10]
and dword [ebx], 0
test byte [ecx + 0x38], 0x80
jne 0x301b3ff6
push 2
pop eax
jmp 0x301b4162
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 8]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
sub eax, 0
je 0x301b40d9
dec eax
jne 0x301b4119
mov eax, dword [edi + 4]
push 8
mov dword [ebp + 0x10], eax
call sub.gdiplus.dll_GdipAlloc
test eax, eax
je 0x301b4031
mov ecx, eax
call fcn.301b3f1d
mov edi, eax
jmp 0x301b4033
xor edi, edi
test edi, edi
je 0x301b4119
mov ecx, dword [ebp + 0x10]
push edi
call fcn.301b3eda
mov eax, dword [ebp + 0xc]
mov dword [ebx], edi
mov esi, dword [esi]
mov ecx, dword [eax]
mov edx, dword [esi]
cmp ecx, edx
mov dword [ebp - 0x14], ecx
jg 0x301b4059
mov dword [ebp - 0x14], edx
mov ecx, dword [eax + 8]
mov edx, dword [esi + 8]
cmp ecx, edx
mov dword [ebp - 0xc], ecx
jl 0x301b4069
mov dword [ebp - 0xc], edx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 0x14], ecx
jge 0x301b4099
mov ecx, dword [eax + 4]
mov edx, dword [esi + 4]
cmp ecx, edx
mov dword [ebp - 0x10], ecx
jg 0x301b4081
mov dword [ebp - 0x10], edx
mov eax, dword [eax + 0xc]
mov esi, dword [esi + 0xc]
cmp eax, esi
mov dword [ebp - 8], eax
jl 0x301b4091
mov dword [ebp - 8], esi
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x10], eax
jl 0x301b40a7
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.301b39c3
mov ecx, dword [ebp + 0x10]
push 1
lea eax, [ebp - 0x24]
push eax
call fcn.301b3e7b
mov ecx, dword [ebp + 0x10]
call fcn.301b3ef9
neg eax
sbb eax, eax
and eax, 0xfffffffe
add eax, 3
jmp 0x301b4160
mov eax, dword [edi + 4]
push dword [0x3026b738]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
call ebx
mov edi, eax
add edi, 0xc
mov ecx, edi
call fcn.301ebe4f
test eax, eax
mov dword [ebp + 8], eax
je 0x301b4119
push eax
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_GetClipRgn]
cmp eax, 0xffffffff
jne 0x301b411d
push dword [ebp + 8]
mov ecx, edi
call fcn.301ebe9e
xor eax, eax
jmp 0x301b4160
test eax, eax
jne 0x301b412f
push dword [ebp + 8]
mov ecx, edi
call fcn.301ebe9e
xor eax, eax
jmp 0x301b4132
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
push dword [0x3026b738]
call ebx
push dword [esi + 0x20]
mov edi, dword [eax + 8]
push dword [esi + 0x1c]
mov ecx, dword [esi + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.301ec7f4
push 1
push edi
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_ExtSelectClipRgn]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x301b4167
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
test byte [ecx + 0x38], 0x80
je 0x301b41d1
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax + 8]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
sub eax, 0
je 0x301b41a5
dec eax
jne 0x301b41d0
mov ecx, dword [esi + 4]
push 0
push dword [ebp + 0xc]
call fcn.301b3eb8
cmp dword [ebp + 0xc], 0
je 0x301b41d0
mov ecx, dword [ebp + 0xc]
push 1
call fcn.301b3b82
jmp 0x301b41d0
push 5
push dword [ebp + 0xc]
push dword [esi + 4]
call dword [sym.imp.GDI32.dll_ExtSelectClipRgn]
cmp dword [ebp + 0xc], 0
je 0x301b41d0
push dword [0x3026b738]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [ebp + 0xc]
lea ecx, [eax + 0xc]
call fcn.301ebe9e
pop esi
pop ebp
ret 8
Function at 0x301b6555
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
mov esi, ecx
je 0x301b65bf
mov eax, dword [edi]
push 0
mov ecx, edi
call dword [eax]
mov eax, dword [esi + 0x1000]
mov dword [esi + eax*4], edi
inc dword [esi + 0x1000]
cmp dword [esi + 0x1000], 0x400
jl 0x301b65bf
push dword [0x30262eb8]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call edi
test eax, eax
je 0x301b65b5
push dword [0x30262eb8]
call edi
mov edx, dword [eax]
push 0x50
lea ecx, [esi + 0x800]
push ecx
push 0x200
mov ecx, eax
call dword [edx + 0x14]
add dword [esi + 0x1000], 0xfffffe00
pop edi
pop esi
pop ebp
ret 4

Function at 0x301b6dea
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1000]
mov eax, dword [esi]
test eax, eax
jg 0x301b6e20
push dword [0x30262eb8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [eax]
push 0x50
push 0x200
push edi
push esi
mov ecx, eax
call dword [edx + 0xc]
mov eax, dword [esi]
test eax, eax
jne 0x301b6e20
xor edi, edi
jmp 0x301b6e3e
dec eax
push 0x50
mov dword [esi], eax
mov edi, dword [edi + eax*4]
push 0
push edi
call sub.MSVCR80.dll_memset
add esp, 0xc
test edi, edi
je 0x301b6e3e
mov ecx, edi
call fcn.301b5939
mov eax, edi
pop edi
pop esi
ret

Function at 0x301b7f28
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call fcn.3015eaf8
test eax, eax
je 0x301b7feb
mov esi, dword [eax + 0x20]
test esi, esi
je 0x301b7feb
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x301b7feb
cmp dword [esi + 0x4c], 0
je 0x301b7f68
push dword [ebp + 0xc]
push ebx
call fcn.301b7ea2
jmp 0x301b7fed
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 1
call edi
test ax, ax
jl 0x301b7f89
push 4
call edi
test ax, ax
jl 0x301b7f89
push 2
call edi
test ax, ax
jge 0x301b7feb
mov eax, dword [ebp + 0xc]
test eax, eax
mov dword [esi + 0x4c], ebx
je 0x301b7f9e
mov ecx, dword [eax]
mov dword [esi + 0x50], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x54], eax
mov ecx, ebx
call fcn.3015fefc
mov edi, eax
mov ecx, edi
call fcn.301b7a40
and dword [ebp - 0xc], 0
mov ecx, edi
call fcn.3015fefc
mov esi, dword [eax + 0x50]
call fcn.3015eaf8
push eax
push esi
push 1
lea ecx, [ebp - 0xc]
call fcn.301b2a98
test eax, eax
je 0x301b7fde
push 0
lea eax, [ebp + 8]
push eax
mov ecx, edi
call fcn.301b7e05
lea ecx, [ebp - 0xc]
call fcn.301b2a51
xor eax, eax
inc eax
jmp 0x301b7fed
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8