joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10043fb1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x84], 0
mov esi, dword [ebx + 0x8c]
mov edi, dword [ebx + 0x88]
je 0x10043ff9
call fcn.1002efbc
push 5
push dword [ebx + 0x84]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10043ff9
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x10044006
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor eax, eax
inc eax
test esi, esi
je 0x10044042
mov edx, 0xffff
lea ecx, [esi + 0xc]
cmp word [esi + 2], dx
jne 0x10044025
movzx edi, word [esi + 0x12]
movzx edx, word [esi + 0x14]
jmp 0x1004402e
movzx edx, word [ecx]
mov ecx, esi
movzx edi, word [esi + 0xa]
test dword [ecx], 0x1801
jne 0x10044040
test di, di
jne 0x10044040
test dx, dx
je 0x10044042
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10044047
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [esi + 0x84], edi
test edi, 0xffff0000
jne 0x10044072
cmp dword [esi + 0x80], 0
jne 0x10044072
movzx eax, di
mov dword [esi + 0x80], eax
call fcn.1002efbc
push 5
push edi
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x100440a2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100440a2
push ebx
push dword [ebp + 0xc]
mov ecx, esi
push eax
call fcn.1004430e
jmp 0x100440a4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x100440ab
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
call fcn.1002efbc
push 5
push dword [ebp + 8]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x100440eb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100440eb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.100440f3
jmp 0x100440ed
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
Function at 0x100443e3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x1018b384
call fcn.101644fc
mov edi, ecx
mov dword [ebp - 0x24], edi
mov ebx, dword [edi + 0x8c]
mov esi, dword [edi + 0x88]
mov dword [ebp - 0x18], ebx
call fcn.1002efbc
cmp dword [edi + 0x84], 0
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x20], eax
je 0x10044442
call fcn.1002efbc
push 5
push dword [edi + 0x84]
mov ebx, dword [eax + 0xc]
push ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10044456
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [ebp - 0x18]
mov esi, eax
test esi, esi
je 0x10044452
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 0x18], eax
test ebx, ebx
jne 0x1004445e
or eax, 0xffffffff
jmp 0x100445b0
mov ecx, edi
call fcn.100449ee
mov ebx, eax
mov dword [ebp - 0x2c], ebx
call fcn.1003717f
xor esi, esi
and dword [ebp - 0x1c], esi
and dword [ebp - 0x28], esi
mov dword [ebp - 0x14], esi
test ebx, ebx
je 0x100444ea
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebx, eax
je 0x100444ea
push ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x100444ea
push esi
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x14], 1
call fcn.1002a91a
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x100444e7
mov ecx, dword [esi]
mov esi, dword [ecx + 0x150]
mov ecx, esi
call dword [0x10199948]
mov ecx, dword [ebp - 0x1c]
call esi
test eax, eax
je 0x100444e7
mov esi, dword [ebp - 0x1c]
mov ecx, esi
call fcn.1003d403
test eax, eax
je 0x100444e7
push 0
mov ecx, esi
call fcn.1003d1d6
mov dword [ebp - 0x28], 1
mov esi, dword [ebp - 0x14]
and dword [ebp - 4], 0
push edi
call fcn.10036e1e
push ebx
call fcn.10038433
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.10044386
test eax, eax
jne 0x10044533
cmp dword [edi + 0x9c], eax
jne 0x10044533
call fcn.1002efbc
push ebx
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
call fcn.10038433
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.10044386
and dword [edi + 0x9c], 0
jmp 0x1004455e
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x28], 0
je 0x10044572
mov ecx, dword [ebp - 0x1c]
push 1
call fcn.1003d1d6
test esi, esi
je 0x1004457f
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
test ebx, ebx
je 0x10044595
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [edi + 0x20]
jne 0x10044595
push ebx
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [edi]
mov esi, dword [eax + 0x60]
mov ecx, esi
call dword [0x10199948]
mov ecx, edi
call esi
mov ecx, edi
call fcn.100449a5
mov eax, dword [edi + 0x68]
call fcn.10164461
ret
Function at 0x1004629a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 4], ebx
test byte [edi + 4], 1
mov esi, dword [edi + 0xc]
jne 0x100462f0
push 5
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x100462c9
call fcn.100357a7
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x100462de
call fcn.100357a7
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x100462f0
call fcn.100357a7
call fcn.1002efbc
cmp dword [eax + 0x3c], 0
je 0x10046305
push esi
mov ecx, ebx
call fcn.100459c0
mov esi, eax
push dword [ebp + 0xc]
push esi
call fcn.100464eb
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x1004632e
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x1004633a
mov esi, ebx
mov dword [eax + 0x88], ebx
or dword [edi + 4], 1
mov dword [edi + 0xc], esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x1004890b
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.1003d27e
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x10048947
call fcn.10048b28
mov dword [esi + 0xc], 1
jmp 0x1004894c
call fcn.10048b28
cmp dword [esi], 0
je 0x10048997
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
mov edi, eax
mov ecx, esi
test edi, edi
jle 0x10048972
push edi
call fcn.1002fc11
lea ecx, [edi + 1]
push ecx
jmp 0x10048981
push 0xff
call fcn.100299f1
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.1002d4c1
pop edi
jmp 0x100489bb
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x100489bb
push dword [esi]
push dword [ebp - 4]
call fcn.10031b18
pop esi
leave
ret 0xc

Function at 0x10048a7f
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.10048b28
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x10048ac7
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.1002fc11
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.1002d4c1
jmp 0x10048ad2
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.10031b18
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x1004b342
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x1004b488
mov ecx, 0x102404f0
call fcn.1002e92f
mov esi, eax
test esi, esi
je 0x1004b47d
xor eax, eax
cmp word [esi + 8], ax
jne 0x1004b447
push str.comctl32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x1004b403
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [ebp + 0x10]
mov ecx, 0x3ff
and ax, cx
cmp ax, 0x11
jne 0x1004b3c9
push str.MS_UI_Gothic
call fcn.1004b4c6
pop ecx
test eax, eax
je 0x1004b3c9
mov eax, edi
neg eax
push 0xfc11
sbb eax, eax
and eax, 0xe
add eax, 0x3ee
push eax
push 5
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
jne 0x1004b3e4
neg edi
push 5
sbb edi, edi
and edi, 0xe
add edi, 0x3ee
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1004b403
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
test eax, eax
je 0x1004b409
push ebx
push edi
push eax
call fcn.1004abce
add esp, 0xc
jmp 0x1004b409
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push 2
mov eax, dword [eax - 0xc]
inc eax
push eax
call fcn.1002e3f2
pop ecx
pop ecx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, eax
mov dword [esi + 4], ecx
test ecx, ecx
je 0x1004b482
mov eax, dword [edi]
push eax
mov eax, dword [eax - 0xc]
inc eax
push eax
push ecx
call fcn.1002f31d
mov ax, word [ebx]
add esp, 0xc
mov word [esi + 8], ax
xor eax, eax
jmp 0x1004b44a
mov ebx, dword [ebp + 0xc]
mov edi, dword [esi + 4]
test edi, edi
je 0x1004b458
push edi
call fcn.10169548
pop ecx
mov ecx, dword [ebp + 8]
push eax
push edi
call fcn.10029b12
movzx ecx, word [esi + 8]
mov edx, 0xffff
xor eax, eax
mov word [ebx], cx
pop edi
cmp cx, dx
pop esi
setne al
pop ebx
pop ebp
ret 0xc
call fcn.1002a167
call fcn.1002a181
int3
Function at 0x1005a846
Capabilities:
Get file system object information

Disassembly:
push 0x6f8
mov eax, 0x1018c572
call fcn.101644c6
mov ebx, ecx
mov ecx, dword [ebp + 0x14]
xor esi, esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x700], edi
test ecx, ecx
je 0x1005a9d7
mov eax, dword [ebp + 0x10]
sub eax, esi
je 0x1005a9a9
sub eax, 1
je 0x1005a8c5
sub eax, 1
je 0x1005a89d
sub eax, 1
je 0x1005a8c5
push 0x10199c54
mov ecx, edi
call fcn.100290da
mov eax, edi
call fcn.10164475
ret 0x10
push 0x408
push 0x2b4
lea eax, [ebp - 0x6fc]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x1005a887
lea eax, [ebp - 0x4e8]
push eax
jmp 0x1005a88c
lea eax, [ebp - 0x218]
push eax
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x1005a887
push esi
lea eax, [ebp - 0x448]
mov dword [ebp - 0x448], esi
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x444], esi
push eax
mov dword [ebp - 0x440], esi
mov dword [ebp - 0x43c], esi
mov dword [ebp - 0x438], esi
mov dword [ebp - 0x434], esi
call fcn.10041392
test eax, eax
je 0x1005a887
lea ecx, [ebp - 0x700]
call fcn.10029137
cmp dword [ebp + 0x10], 1
mov dword [ebp - 4], esi
jne 0x1005a95f
test byte [ebp - 0x428], 0x18
jne 0x1005a981
mov eax, dword [ebx]
lea ecx, [ebp - 0x700]
push ecx
push dword [ebp - 0x42c]
mov esi, dword [eax + 0x1a0]
mov ecx, esi
push dword [ebp - 0x430]
call dword [0x10199948]
mov ecx, ebx
call esi
jmp 0x1005a981
mov eax, dword [ebx]
lea ecx, [ebp - 0x700]
push ecx
lea ecx, [ebp - 0x440]
push ecx
mov esi, dword [eax + 0x1a4]
mov ecx, esi
call dword [0x10199948]
mov ecx, ebx
call esi
mov eax, dword [ebp - 0x700]
add eax, 0xfffffff0
push eax
call fcn.1002aaae
pop ecx
mov ecx, dword [ebp - 0x700]
add eax, 0x10
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.10029ac1
jmp 0x1005a893
push 0x208
push 0x2b4
lea eax, [ebp - 0x6fc]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x1005a887
lea eax, [ebp - 0x6f0]
jmp 0x1005a8c2
call fcn.1002a167
int3

Function at 0x1005ab4f
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.100aaa32
call fcn.1002f010
cmp dword [eax + 0x14], 0
jne 0x1005ab6a
mov ecx, esi
pop esi
jmp fcn.10059e68
pop esi
ret

Function at 0x1005b4e5
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c0
mov eax, dword [0x10240fd8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2bc], esi
test eax, eax
je 0x1005b54f
push 0x208
push 0x2b4
lea ecx, [ebp - 0x2b8]
push ecx
push 0
push dword [eax + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, esi
test eax, eax
je 0x1005b534
lea eax, [ebp - 0x2ac]
push eax
jmp 0x1005b539
push 0x101a2f28
call fcn.100290da
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10163bcb
leave
ret 8
call fcn.1002a167
int3
Function at 0x1005ba34
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.10010180
call fcn.1002f010
cmp dword [eax + 0x14], 0
jne 0x1005ba4f
mov ecx, esi
pop esi
jmp fcn.1005b28f
pop esi
ret
Function at 0x10064a62
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push edi
test esi, esi
jne 0x10064a7b
call fcn.1002efbc
mov esi, dword [eax + 0xc]
push 0x101a4628
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x10064abd
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10064abd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x10064abd
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.10064ac6
jmp 0x10064abf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1010131e
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
xor eax, eax
push ebx
push esi
mov esi, ecx
push edi
push 1
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1010134b
or dword [esi + 0x3c], 1
or dword [esi + 0x38], 2
jmp 0x10101360
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x10101360
or dword [esi + 0x3c], 2
or dword [esi + 0x38], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov edi, dword [ebp + 8]
mov ebx, eax
mov dword [ebp - 4], edx
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.10038433
jmp 0x10101431
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.10038433
cmp eax, edi
jne 0x1010143b
push 1
push 0x209
push 0x200
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x101013cd
push 1
push 0x109
push 0x100
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x10101411
mov eax, dword [ebp - 0x1c]
cmp eax, 0x202
je 0x1010143b
cmp eax, 0x205
je 0x1010143b
cmp eax, 0x201
je 0x1010143b
cmp eax, 0x204
je 0x1010143b
cmp eax, 0x100
jne 0x101013f9
cmp dword [ebp - 0x18], 0x1b
je 0x1010143b
push dword [ebp - 8]
lea eax, [esi + 0x24]
push dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
sub eax, ebx
sbb edx, dword [ebp - 4]
test edx, edx
jb 0x10101431
ja 0x1010142a
cmp eax, dword [0x10248c00]
jbe 0x10101431
mov dword [esi + 0x34], 1
cmp dword [esi + 0x34], 0
je 0x10101382
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x34]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x10101813
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [ecx + 0x14]
cmp dword [esi - 0xc], 0
je 0x10101849
push ebx
mov ebx, dword [ecx + 8]
push edi
mov edi, dword [ecx + 0xc]
call fcn.1002a91a
test eax, eax
je 0x10101831
mov eax, dword [eax + 0x20]
push 1
push edi
push ebx
push esi
push 0
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
pop edi
sbb eax, eax
pop ebx
inc eax
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x1011b6b6
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.1017474f
pop ecx
test eax, eax
jne 0x1011b6f8
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.1002d74c
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1011b6be
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
leave
ret

Function at 0x10122bff
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 8
mov eax, 0x1018be2f
call fcn.10164493
mov edi, ecx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x10122ceb
mov esi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x10122ceb
cmp esi, 0x43
je 0x10122c41
cmp esi, 0x2d
jne 0x10122ceb
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x10122ceb
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.10029137
movzx eax, byte [edi + 0xe6]
and dword [ebp - 4], 0
push eax
movzx eax, byte [edi + 0xe5]
push eax
movzx eax, byte [edi + 0xe4]
push eax
lea eax, [ebp - 0x10]
push str.RGB__d___d___d_
push eax
call fcn.1002acb6
mov esi, dword [ebp - 0x10]
add esp, 0x14
lea eax, [esi - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [eax + 4]
lea eax, [eax*2 + 2]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x10122cd9
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x10122cd9
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
call fcn.10029ac1
push ebx
mov ecx, edi
call fcn.10120080
call fcn.10164461
ret 4
Function at 0x10177da0
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101c9388
push 0x101c9380
push str.FlsAlloc
push 0x1e
call fcn.10177c21
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10177dd4
push dword [ebp + 8]
mov ecx, esi
call dword [0x10199948]
call esi
jmp 0x10177dda
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10177e1e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101c9398
push 0x101c9390
push str.FlsGetValue
push 0x20
call fcn.10177c21
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10177e55
push dword [ebp + 8]
mov ecx, esi
call dword [0x10199948]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1017c7f8
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1017c895
push ebx
push esi
call fcn.1017c7c1
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1017c70a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1017c842
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1017c894
push edi
push eax
call fcn.101767b7
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1017c862
call fcn.10176088
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1017c893
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1017c70a
add esp, 0x20
test eax, eax
jne 0x1017c881
push edi
call fcn.10176088
jmp 0x1017c889
push ebx
call fcn.10176088
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1017c898
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1017c8a9
pop esi
ret
push ebx
push edi
push esi
call fcn.1017c7c1
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.101767b7
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1017c8d1
push ebx
push esi
push edi
call fcn.10165870
add esp, 0xc
push 0
call fcn.10176088
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1017cc95
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1017c8e6

Function at 0x10182060
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1018208d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1018208d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret