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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
cmp dword [ebp + 8], esi
je 0x10019a9f
call fcn.10010f00
push 0xf0
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x10019a9f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10019aa7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
mov ecx, ebx
call fcn.10024e51
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x1001a4ac
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x1001a538
cmp dword [esi + 0x20], 0
je 0x1001a538
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1001a538
cmp dword [ebp + 8], 0
je 0x1001a538
xor edi, edi
mov ebx, edi
call fcn.10010f00
push str.AFX_DIALOG_LAYOUT
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 8], eax
test eax, eax
je 0x1001a51c
mov ebx, dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 8]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1001a538
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.100259b2
mov edi, eax
add esp, 0xc
test edi, edi
je 0x1001a534
mov ecx, esi
call fcn.1001a24a
mov eax, edi
jmp 0x1001a53a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x10021bd0
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 0x10021c18
call fcn.10010f00
push 5
push dword [ebx + 0x84]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x10021c18
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x10021c25
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor eax, eax
inc eax
test esi, esi
je 0x10021c61
mov edx, 0xffff
lea ecx, [esi + 0xc]
cmp word [esi + 2], dx
jne 0x10021c44
movzx edi, word [esi + 0x12]
movzx edx, word [esi + 0x14]
jmp 0x10021c4d
movzx edx, word [ecx]
mov ecx, esi
movzx edi, word [esi + 0xa]
test dword [ecx], 0x1801
jne 0x10021c5f
test di, di
jne 0x10021c5f
test dx, dx
je 0x10021c61
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10021c66
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 0x10021c91
cmp dword [esi + 0x80], 0
jne 0x10021c91
movzx eax, di
mov dword [esi + 0x80], eax
call fcn.10010f00
push 5
push edi
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x10021cc1
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10021cc1
push ebx
push dword [ebp + 0xc]
mov ecx, esi
push eax
call fcn.10021f28
jmp 0x10021cc3
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x10021cca
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
call fcn.10010f00
push 5
push dword [ebp + 8]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x10021d0a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10021d0a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.10021d12
jmp 0x10021d0c
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
Function at 0x10021ffd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x1016bac7
call fcn.10143759
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.10010f00
cmp dword [edi + 0x84], 0
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x20], eax
je 0x1002205c
call fcn.10010f00
push 5
push dword [edi + 0x84]
mov ebx, dword [eax + 0xc]
push ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x10022070
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [ebp - 0x18]
mov esi, eax
test esi, esi
je 0x1002206c
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 0x18], eax
test ebx, ebx
jne 0x10022078
or eax, 0xffffffff
jmp 0x100221ca
mov ecx, edi
call fcn.10022607
mov ebx, eax
mov dword [ebp - 0x2c], ebx
call fcn.1001874b
xor esi, esi
and dword [ebp - 0x1c], esi
and dword [ebp - 0x28], esi
mov dword [ebp - 0x14], esi
test ebx, ebx
je 0x10022104
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebx, eax
je 0x10022104
push ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x10022104
push esi
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x14], 1
call fcn.10011fc2
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x10022101
mov ecx, dword [esi]
mov esi, dword [ecx + 0x150]
mov ecx, esi
call dword [0x10179940]
mov ecx, dword [ebp - 0x1c]
call esi
test eax, eax
je 0x10022101
mov esi, dword [ebp - 0x1c]
mov ecx, esi
call fcn.10015fbe
test eax, eax
je 0x10022101
push 0
mov ecx, esi
call fcn.10015d91
mov dword [ebp - 0x28], 1
mov esi, dword [ebp - 0x14]
and dword [ebp - 4], 0
push edi
call fcn.10018418
push ebx
call fcn.10019acd
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.10021fa0
test eax, eax
jne 0x1002214d
cmp dword [edi + 0x9c], eax
jne 0x1002214d
call fcn.10010f00
push ebx
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
call fcn.10019acd
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.10021fa0
and dword [edi + 0x9c], 0
jmp 0x10022178
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x28], 0
je 0x1002218c
mov ecx, dword [ebp - 0x1c]
push 1
call fcn.10015d91
test esi, esi
je 0x10022199
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
test ebx, ebx
je 0x100221af
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [edi + 0x20]
jne 0x100221af
push ebx
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [edi]
mov esi, dword [eax + 0x60]
mov ecx, esi
call dword [0x10179940]
mov ecx, edi
call esi
mov ecx, edi
call fcn.100225be
mov eax, dword [edi + 0x68]
call fcn.101436be
ret
Function at 0x1002753c
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 0x10027592
push 5
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x1002756b
call fcn.10020169
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x10027580
call fcn.10020169
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x10027592
call fcn.10020169
call fcn.10010f00
cmp dword [eax + 0x3c], 0
je 0x100275a7
push esi
mov ecx, ebx
call fcn.10026c62
mov esi, eax
push dword [ebp + 0xc]
push esi
call fcn.1002778d
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x100275d0
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x100275dc
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 0x1002a67c
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x1002a7c2
mov ecx, 0x101c62dc
call fcn.10011d03
mov esi, eax
test esi, esi
je 0x1002a7b7
xor eax, eax
cmp word [esi + 8], ax
jne 0x1002a781
push str.comctl32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x1002a73d
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [ebp + 0x10]
mov ecx, 0x3ff
and ax, cx
cmp ax, 0x11
jne 0x1002a703
push str.MS_UI_Gothic
call fcn.1002a800
pop ecx
test eax, eax
je 0x1002a703
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 0x1002a71e
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 0x1002a73d
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 0x1002a743
push ebx
push edi
push eax
call fcn.10028dce
add esp, 0xc
jmp 0x1002a743
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push 1
mov eax, dword [eax - 0xc]
inc eax
push eax
call fcn.10010601
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 0x1002a7bc
mov eax, dword [edi]
push eax
mov eax, dword [eax - 0xc]
inc eax
push eax
push ecx
call fcn.10011369
mov ax, word [ebx]
add esp, 0xc
mov word [esi + 8], ax
xor eax, eax
jmp 0x1002a784
mov ebx, dword [ebp + 0xc]
mov edi, dword [esi + 4]
test edi, edi
je 0x1002a792
push edi
call fcn.1014cfd0
pop ecx
mov ecx, dword [ebp + 8]
push eax
push edi
call fcn.1000f4eb
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.1000fb55
call fcn.1000fb6f
int3
Function at 0x1002bcdb
Capabilities:
Get file system object information

Disassembly:
push 0x398
mov eax, 0x1016c00e
call fcn.10143723
mov ebx, ecx
mov ecx, dword [ebp + 0x14]
xor esi, esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x3a0], edi
test ecx, ecx
je 0x1002be6c
mov eax, dword [ebp + 0x10]
sub eax, esi
je 0x1002be3e
sub eax, 1
je 0x1002bd5a
sub eax, 1
je 0x1002bd32
sub eax, 1
je 0x1002bd5a
push 0x101a9a70
mov ecx, edi
call fcn.1000e625
mov eax, edi
call fcn.101436d2
ret 0x10
push 0x408
push 0x160
lea eax, [ebp - 0x39c]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x1002bd1c
lea eax, [ebp - 0x28c]
push eax
jmp 0x1002bd21
lea eax, [ebp - 0x114]
push eax
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x1002bd1c
push esi
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], esi
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x238], esi
push eax
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x228], esi
call fcn.1001701c
test eax, eax
je 0x1002bd1c
lea ecx, [ebp - 0x3a0]
call fcn.1000e720
cmp dword [ebp + 0x10], 1
mov dword [ebp - 4], esi
jne 0x1002bdf4
test byte [ebp - 0x21c], 0x18
jne 0x1002be16
mov eax, dword [ebx]
lea ecx, [ebp - 0x3a0]
push ecx
push dword [ebp - 0x220]
mov esi, dword [eax + 0x1a0]
mov ecx, esi
push dword [ebp - 0x224]
call dword [0x10179940]
mov ecx, ebx
call esi
jmp 0x1002be16
mov eax, dword [ebx]
lea ecx, [ebp - 0x3a0]
push ecx
lea ecx, [ebp - 0x234]
push ecx
mov esi, dword [eax + 0x1a4]
mov ecx, esi
call dword [0x10179940]
mov ecx, ebx
call esi
mov eax, dword [ebp - 0x3a0]
add eax, 0xfffffff0
push eax
call fcn.1001092a
pop ecx
mov ecx, dword [ebp - 0x3a0]
add eax, 0x10
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.1000f46e
jmp 0x1002bd28
push 0x208
push 0x160
lea eax, [ebp - 0x39c]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x1002bd1c
lea eax, [ebp - 0x390]
jmp 0x1002bd57
call fcn.1000fb55
int3

Function at 0x1002bfe4
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.1006f8f5
call fcn.10010f4e
cmp dword [eax + 0x14], 0
jne 0x1002bfff
mov ecx, esi
pop esi
jmp fcn.1002b2c0
pop esi
ret

Function at 0x1003a4d1
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x101c6dd4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x168], esi
test eax, eax
je 0x1003a53b
push 0x208
push 0x160
lea ecx, [ebp - 0x164]
push ecx
push 0
push dword [eax + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, esi
test eax, eax
je 0x1003a520
lea eax, [ebp - 0x158]
push eax
jmp 0x1003a525
push 0x10180e28
call fcn.1000e625
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10143002
leave
ret 8
call fcn.1000fb55
int3
Function at 0x1003aa20
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.100031f0
call fcn.10010f4e
cmp dword [eax + 0x14], 0
jne 0x1003aa3b
mov ecx, esi
pop esi
jmp fcn.1003a27b
pop esi
ret
Function at 0x10043a8e
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 0x10043aa7
call fcn.10010f00
mov esi, dword [eax + 0xc]
push 0x10182390
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x10043ae9
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10043ae9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x10043ae9
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.10043af2
jmp 0x10043aeb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x100e056e
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 0x100e059b
or dword [esi + 0x3c], 1
or dword [esi + 0x38], 2
jmp 0x100e05b0
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x100e05b0
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.10019acd
jmp 0x100e0681
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.10019acd
cmp eax, edi
jne 0x100e068b
push 1
push 0x209
push 0x200
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x100e061d
push 1
push 0x109
push 0x100
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x100e0661
mov eax, dword [ebp - 0x1c]
cmp eax, 0x202
je 0x100e068b
cmp eax, 0x205
je 0x100e068b
cmp eax, 0x201
je 0x100e068b
cmp eax, 0x204
je 0x100e068b
cmp eax, 0x100
jne 0x100e0649
cmp dword [ebp - 0x18], 0x1b
je 0x100e068b
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 0x100e0681
ja 0x100e067a
cmp eax, dword [0x10226f88]
jbe 0x100e0681
mov dword [esi + 0x34], 1
cmp dword [esi + 0x34], 0
je 0x100e05d2
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x34]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x100e0a63
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [ecx + 0x14]
cmp dword [esi - 0xc], 0
je 0x100e0a99
push ebx
mov ebx, dword [ecx + 8]
push edi
mov edi, dword [ecx + 0xc]
call fcn.10011fc2
test eax, eax
je 0x100e0a81
mov eax, dword [eax + 0x20]
push 1
push edi
push ebx
push esi
push 0
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
pop edi
sbb eax, eax
pop ebx
inc eax
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x100e74f8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x101c656c], 0
push esi
push edi
je 0x100e757f
cmp dword [0x101c68a8], 0xfffffffe
jne 0x100e756c
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x100e757f
mov edi, 0x10226fb4
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x10226fcc], 0
jne 0x100e7583
push 0
push 0
push 0x100e7589
call fcn.1014e420
add esp, 0xc
mov dword [0x10226fcc], eax
test eax, eax
je 0x100e755c
cmp eax, 0xffffffff
je 0x100e755c
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [0x101c68a8], esi
jmp 0x100e7563
and dword [0x10226fcc], 0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x100e757f
mov eax, dword [ebp + 8]
mov dword [0x101c68a8], eax
inc eax
neg eax
sbb eax, eax
and dword [0x10226fcc], eax
pop edi
pop esi
pop ebp
ret
call fcn.1000fb55
int3
Function at 0x100faad2
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.10155222
pop ecx
test eax, eax
jne 0x100fab14
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.100032b0
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100faada
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
leave
ret

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

Disassembly:
push 8
mov eax, 0x10170052
call fcn.101436f0
mov edi, ecx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x101020fc
mov esi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x101020fc
cmp esi, 0x43
je 0x10102058
cmp esi, 0x2d
jne 0x101020fc
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x101020fc
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.1000e720
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.100118b7
mov esi, dword [ebp - 0x10]
add esp, 0x14
lea eax, [esi - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [eax + 4]
inc eax
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x101020ea
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x101020ea
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
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.1000f46e
push ebx
mov ecx, edi
call fcn.100ff49c
call fcn.101436be
ret 4
Function at 0x1014563d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x1014565e
jl 0x10145655
test edi, edi
jne 0x1014565e
xor eax, eax
xor edx, edx
jmp 0x1014571f
cmp dword [ebx + 0x38], 0
je 0x10145673
push eax
push edi
push dword [ebp + 8]
call fcn.10145725
jmp 0x1014571f
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x101456ba
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x101456ba
cmp eax, edi
jb 0x10145694
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.10146b50
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x101456c0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x10145714
mov ecx, ebx
call fcn.10144eaa
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x101456ff
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.10155cdc
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x10145714
jmp 0x101456d2
test edx, edx
je 0x10145714
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.10155cdc
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x1014a116
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1014a155
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1014a155
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1014a155
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1014a155
cmp dword [ecx + 0x74], 0xe
jbe 0x1014a155
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x101564b4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10143db0
mov eax, dword [0x101c6dd4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.10155adc
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x101564f6
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10156652
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10143bc0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x10227db0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10161ab8
mov ecx, dword [esi*4 + 0x10227db0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x1015664b
cmp eax, dword [ecx + edi + 0x24]
jne 0x1015664b
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1015664b
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10161ab8
add esp, 0x14
test edx, edx
jl 0x1015664b
jg 0x101565c1
test eax, eax
jb 0x1015664b
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1015664b
jl 0x101565db
cmp dword [ebp - 0x1008], eax
ja 0x1015664b
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x101565f9
test ebx, ebx
je 0x10156632
cmp ecx, edi
jae 0x10156632
mov al, byte [ecx]
cmp al, 0xd
jne 0x10156613
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1015661f
cmp byte [ecx + 1], 0xa
jne 0x1015661f
inc ecx
jmp 0x1015661f
movzx eax, al
movsx eax, byte [eax + 0x101c7210]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x101565f9
cmp edx, ebx
jne 0x101565f9
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10156650
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10143002
leave
ret

Function at 0x10159c71
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101a5970
push 0x101a5968
push str.FlsAlloc
push 0x1f
call fcn.10159a9c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10159ca5
push dword [ebp + 8]
mov ecx, esi
call dword [0x10179940]
call esi
jmp 0x10159cab
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4