joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004fb6f
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101aedcc
mov eax, dword fs:[0]
push eax
mov eax, 0x1018
call fcn.10180f30
mov eax, dword [0x1021ae44]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ecx + 0x58], 0
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x101c], edi
mov dword [ebp - 0x1024], eax
je 0x1004fca3
push 0
push edx
call fcn.1004fcf0
mov ebx, eax
test ebx, ebx
jne 0x1004fbd7
push esi
jmp 0x1004fccb
call fcn.10040368
push eax
lea ecx, [ebp - 0x1014]
call fcn.1000fb30
xor ecx, ecx
lea eax, [ebp - 0x1018]
push eax
push ecx
lea eax, [ebp - 0x1020]
mov dword [ebp - 4], ecx
push eax
push ecx
push dword [ebp - 0x1024]
mov dword [ebp - 0x1020], ecx
push ebx
mov dword [ebp - 0x1018], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x101c], eax
test eax, eax
jne 0x1004fc62
push dword [ebp - 0x1018]
lea ecx, [ebp - 0x1014]
call fcn.1000fd30
lea ecx, [ebp - 0x1018]
push ecx
push eax
lea eax, [ebp - 0x1020]
push eax
push 0
push dword [ebp - 0x1024]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x1014]
mov dword [ebp - 0x101c], eax
call fcn.1001c0d0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x101c], 0
jne 0x1004fc90
mov esi, dword [ebp - 0x1014]
add esi, 0xfffffff0
push esi
call fcn.1000ff20
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.1000ff80
jmp 0x1004fcd2
push esi
mov ecx, edi
call fcn.1000f730
mov ecx, dword [ebp - 0x1014]
lea ecx, [ecx - 0x10]
jmp 0x1004fc89
test esi, esi
jne 0x1004fcac
mov esi, 0x101f3bf8
push dword [ecx + 0x6c]
lea ecx, [ebp - 0x1010]
push 0x1000
push ecx
push esi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x1010]
push eax
mov ecx, edi
call fcn.1000f730
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1018029b
leave
ret 0x10
Function at 0x10050f1b
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x101aeecc
call fcn.10180dcc
mov esi, ecx
mov dword [ebp - 0x14], esi
lea eax, [esi + 0x1c]
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [ebp + 8]
test ebx, ebx
jle 0x10051025
cmp ebx, dword [esi + 0xc]
jge 0x10051025
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x10050f72
cmp ebx, dword [edi + 8]
jl 0x10051013
cmp dword [ebp + 0xc], 0
je 0x10051013
xor ebx, ebx
jmp 0x10050fac
xor ebx, ebx
push 0x10
mov dword [ebp - 4], ebx
call fcn.10050979
mov edi, eax
test edi, edi
je 0x10050f8c
mov dword [edi], vtable.CThreadData.0
jmp 0x10050f8e
mov edi, ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0x14]
push edi
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
call fcn.10050e47
mov ecx, dword [esi + 0x14]
mov dword [eax], ecx
mov dword [esi + 0x14], edi
mov esi, dword [ebp - 0x14]
cmp dword [edi + 0xc], ebx
jne 0x10050fc7
push 4
push dword [esi + 0xc]
call fcn.100401b7
pop ecx
pop ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x10050fdf
push 2
push 4
push dword [esi + 0xc]
call fcn.100401b7
pop ecx
pop ecx
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x1005104c
mov ecx, dword [edi + 8]
mov dword [edi + 0xc], edx
mov eax, dword [esi + 0xc]
sub eax, ecx
shl eax, 2
push eax
lea eax, [edx + ecx*4]
push ebx
push eax
call fcn.10184050
mov eax, dword [esi + 0xc]
add esp, 0xc
mov dword [edi + 8], eax
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ebx, dword [ebp + 8]
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x10051025
cmp ebx, dword [edi + 8]
jge 0x10051025
mov eax, dword [ebp + 0xc]
mov dword [ecx + ebx*4], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.10180d2a
ret 8
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.1003f96b
int3
Function at 0x1006cefd
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.1004c5d6
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x1006cf39
call fcn.1006d118
mov dword [esi + 0xc], 1
jmp 0x1006cf3e
call fcn.1006d118
cmp dword [esi], 0
je 0x1006cf87
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x1006cf61
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.10045a2e
jmp 0x1006cf72
push 0xff
mov ecx, esi
call fcn.1000fd30
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.1001c0d0
jmp 0x1006cfab
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x1006cfab
push dword [esi]
push dword [ebp - 4]
call fcn.10055877
pop esi
leave
ret 0xc

Function at 0x1006d06f
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.1006d118
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x1006d0b7
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.10045a2e
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.1001c0d0
jmp 0x1006d0c2
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.10055877
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x1007167b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
mov edi, dword [esi + 0xc]
jne 0x100716d1
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x100716aa
call fcn.100423a1
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x100716bf
call fcn.100423a1
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x100716d1
call fcn.100423a1
call fcn.1004f78f
cmp dword [eax + 0x3c], 0
je 0x100716e6
push edi
mov ecx, ebx
call fcn.10070dab
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.100718b8
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x1007170f
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x1007171b
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x100872ab
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x1021ae44]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [esi - 0x60]
cmp eax, 9
ja 0x100872da
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x10087307
cmp dword [0x10222824], 0
jne 0x10087307
lea eax, [esi - 0x41]
cmp eax, 0x19
jbe 0x10087303
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jb 0x10087303
push esi
call fcn.10193e2e
pop ecx
jmp 0x10087374
mov eax, esi
jmp 0x10087374
xor eax, eax
mov word [ebp - 0x10c], ax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
call fcn.1004a958
push dword [eax + 0x30]
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 1
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
push esi
call dword [sym.imp.USER32.dll_ToAsciiEx]
mov al, byte [ebp - 0x10c]
mov byte [ebp - 0x108], al
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 0x107], 0
call dword [sym.imp.USER32.dll_CharUpperA]
movsx eax, byte [ebp - 0x108]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1018029b
leave
ret 4
Function at 0x100b06e3
Capabilities:
Get file system object information

Disassembly:
push 0x394
mov eax, 0x101b3ac6
call fcn.10180d95
mov ebx, ecx
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x3a0], edi
test ecx, ecx
je 0x100b087a
mov eax, dword [ebp + 0x10]
xor esi, esi
sub eax, esi
je 0x100b084c
sub eax, 1
je 0x100b0762
sub eax, 1
je 0x100b073a
sub eax, 1
je 0x100b0762
push 0x101f3bf8
mov ecx, edi
call fcn.1000f730
mov eax, edi
call fcn.10180d3f
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 0x100b0724
lea eax, [ebp - 0x28c]
push eax
jmp 0x100b0729
lea eax, [ebp - 0x114]
push eax
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x100b0724
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.10105528
test eax, eax
je 0x100b0724
call fcn.10040368
push eax
lea ecx, [ebp - 0x3a0]
call fcn.1000fb30
cmp dword [ebp + 0x10], 1
mov dword [ebp - 4], esi
jne 0x100b0802
test byte [ebp - 0x21c], 0x18
jne 0x100b0824
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 [0x101bca14]
mov ecx, ebx
call esi
jmp 0x100b0824
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 [0x101bca14]
mov ecx, ebx
call esi
mov eax, dword [ebp - 0x3a0]
add eax, 0xfffffff0
push eax
call fcn.1000ff20
pop ecx
mov ecx, dword [ebp - 0x3a0]
add eax, 0x10
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.1000ff80
jmp 0x100b0730
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 0x100b0724
lea eax, [ebp - 0x390]
jmp 0x100b075f
call fcn.1003f951
int3

Function at 0x100b0a0d
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.10158624
call fcn.1004f7e3
cmp dword [eax + 0x14], 0
jne 0x100b0a28
mov ecx, esi
pop esi
jmp fcn.100afd32
pop esi
ret

Function at 0x100b7835
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 0x100b784e
call fcn.1004f78f
mov esi, dword [eax + 0xc]
push 0x101c9578
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x100b7890
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100b7890
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x100b7890
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.100b7899
jmp 0x100b7892
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x100e0b12
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ecx
mov ecx, 0x104
mov eax, dword [esi + 4]
cmp eax, ecx
ja 0x100e0ca5
je 0x100e0ccb
cmp eax, 0xa1
jb 0x100e0d09
cmp eax, 0xa2
jbe 0x100e0ccb
cmp eax, 0xa3
jbe 0x100e0d09
cmp eax, 0xa5
jbe 0x100e0ccb
cmp eax, 0xa6
jbe 0x100e0d09
cmp eax, 0xa8
jbe 0x100e0ccb
cmp eax, 0x100
jne 0x100e0d09
cmp dword [edi + 0xc0], 0xffffffff
je 0x100e0ccb
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x100e0ccb
mov eax, dword [esi + 8]
sub eax, 0x21
je 0x100e0bfa
sub eax, 1
jne 0x100e0ccb
mov eax, dword [edi + 0xc0]
lea ebx, [eax + 1]
jmp 0x100e0be9
mov eax, ebx
cdq
idiv ecx
mov eax, dword [edi]
mov ecx, edx
mov dword [ebp - 4], ecx
push ecx
mov esi, dword [eax + 0x27c]
mov ecx, esi
call dword [0x101bca14]
mov ecx, edi
call esi
test eax, eax
jne 0x100e0c46
mov eax, dword [edi + 0xc0]
inc ebx
mov ecx, dword [edi + 0xbc]
add eax, ecx
cmp ebx, eax
jl 0x100e0bbf
jmp 0x100e0d23
mov ecx, dword [edi + 0xc0]
lea ebx, [ecx - 1]
add ebx, dword [edi + 0xbc]
cmp ebx, ecx
jle 0x100e0d23
mov eax, ebx
cdq
idiv dword [edi + 0xbc]
mov eax, dword [edi]
mov ecx, edx
mov dword [ebp - 4], ecx
push ecx
mov esi, dword [eax + 0x27c]
mov ecx, esi
call dword [0x101bca14]
mov ecx, edi
call esi
test eax, eax
jne 0x100e0c46
dec ebx
cmp ebx, dword [edi + 0xc0]
jg 0x100e0c11
jmp 0x100e0d23
mov eax, dword [edi]
push dword [ebp - 4]
mov dword [edi + 0x24c], 1
mov esi, dword [eax + 0x214]
mov ecx, esi
call dword [0x101bca14]
mov ecx, edi
call esi
mov eax, dword [edi]
mov esi, dword [eax + 0x210]
mov ecx, esi
call dword [0x101bca14]
mov ecx, edi
call esi
mov ecx, eax
call fcn.1004ced0
mov eax, dword [edi]
push dword [edi + 0xc0]
mov esi, dword [eax + 0x270]
mov ecx, esi
call dword [0x101bca14]
mov ecx, edi
call esi
and dword [edi + 0x24c], 0
jmp 0x100e0d23
cmp eax, 0x200
jb 0x100e0d09
cmp eax, 0x202
jbe 0x100e0ccb
cmp eax, 0x203
jbe 0x100e0d09
cmp eax, 0x205
jbe 0x100e0ccb
add eax, 0xfffffdf9
cmp eax, 1
ja 0x100e0d09
mov eax, dword [edi + 0xfc]
test eax, eax
je 0x100e0cea
cmp dword [eax + 0x20], ebx
je 0x100e0cea
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [edi + 0xf8]
test eax, eax
je 0x100e0d09
cmp dword [eax + 0x20], ebx
je 0x100e0d09
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [esi + 4], 0x203
jne 0x100e0d28
lea eax, [edi + 0x2250]
test eax, eax
je 0x100e0d1f
mov ebx, dword [eax + 0x20]
cmp dword [esi], ebx
jne 0x100e0d28
xor eax, eax
inc eax
jmp 0x100e0d30
push esi
mov ecx, edi
call fcn.100db127
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x100fd535
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.100059d0
call fcn.1004f7e3
cmp dword [eax + 0x14], 0
jne 0x100fd550
mov ecx, esi
pop esi
jmp fcn.100fcdab
pop esi
ret
Function at 0x101053a6
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x1021ae44]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x128
xor edi, edi
push edi
push esi
call fcn.10184050
push 0xffffffffffffffff
push dword [ebx + 0xc]
lea eax, [esi + 0x24]
push 0x104
push eax
call fcn.1018f50b
push eax
call fcn.1001b740
mov eax, dword [ebx + 4]
add esp, 0x20
cmp eax, dword [0x101c3e98]
je 0x10105510
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x10105524
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10105524
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x1c], eax
mov eax, dword [ebx + 0xc]
cmp dword [eax - 0xc], edi
jne 0x1010543f
mov eax, edi
jmp 0x1010546e
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x1010545c
lea edx, [ebp - 0x28]
push edx
push edi
push eax
call fcn.101051a1
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, dword [ebp - 0x28]
jmp 0x10105465
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
lea eax, [ecx + 1]
neg eax
sbb eax, eax
and eax, ecx
mov dword [esi + 0x20], eax
lea eax, [ebp - 0x38]
push eax
call fcn.1004b98d
test eax, eax
je 0x10105493
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.1004b1a9
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x10105497
mov ecx, edi
mov eax, edi
mov dword [esi], ecx
mov dword [esi + 4], eax
lea eax, [ebp - 0x40]
push eax
call fcn.1004b98d
test eax, eax
je 0x101054be
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.1004b1a9
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x101054c2
mov ecx, edi
mov eax, edi
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x48]
push eax
call fcn.1004b98d
test eax, eax
je 0x101054ea
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
call fcn.1004b1a9
mov edi, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x101054ec
mov ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x101054fe
mov dword [esi], edi
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x10105510
mov eax, edi
mov dword [esi + 0x10], eax
mov eax, ecx
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1018029b
leave
ret 4
xor eax, eax
jmp 0x10105513
Function at 0x1011e9a0
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.101948c0
pop ecx
test eax, eax
jne 0x1011e9e2
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.1000f3e0
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1011e9a8
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 0x1014225f
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 4], esi
push edi
test ebx, ebx
je 0x10142313
mov eax, dword [esi + 0x34c]
test eax, eax
je 0x1014230f
mov eax, dword [eax + 0x20]
test eax, eax
je 0x1014230f
cmp dword [ebx], eax
jne 0x1014230f
mov eax, dword [ebx + 4]
sub eax, 1
je 0x101422de
sub eax, 1
je 0x101422ac
sub eax, 1
jne 0x1014230f
mov edi, 0x428e
jmp 0x101422e3
push 0x11
mov edi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x101422e3
mov eax, dword [esi]
mov esi, dword [eax + 0x340]
mov ecx, esi
call dword [0x101bca14]
mov ecx, dword [ebp - 4]
call esi
test eax, eax
je 0x101422e3
add edi, 3
jmp 0x101422e3
mov edi, 0x3ea0
push edi
call fcn.1004ba8d
test eax, eax
je 0x10142313
push edi
push eax
mov ecx, 0x10223eac
call fcn.1000f4d0
test eax, eax
je 0x10142313
mov eax, dword [0x10223eac]
mov dword [ebx + 0xc], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
xor eax, eax
jmp 0x10142308
call fcn.1003f951
int3

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

Disassembly:
push 8
mov eax, 0x101b52da
call fcn.10180d61
mov esi, ecx
mov dword [ebp - 0x14], esi
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x1016f67e
mov edi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x1016f67e
cmp edi, 0x43
je 0x1016f5e3
cmp edi, 0x2d
jne 0x1016f67e
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1016f67e
call dword [sym.imp.USER32.dll_EmptyClipboard]
call fcn.10040368
push eax
lea ecx, [ebp - 0x10]
call fcn.1000fb30
movzx eax, byte [esi + 0xe6]
and dword [ebp - 4], 0
push eax
movzx eax, byte [esi + 0xe5]
push eax
movzx eax, byte [esi + 0xe4]
push eax
lea eax, [ebp - 0x10]
push str.RGB__d___d___d_
push eax
call fcn.1000f9d0
mov esi, dword [ebp - 0x10]
add esp, 0x14
mov eax, dword [esi - 0xc]
inc eax
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.1000ff80
mov esi, dword [ebp - 0x14]
push ebx
mov ecx, esi
call fcn.1003fffa
call fcn.10180d2a
ret 4

Function at 0x1019a3af
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1019a225
Function at 0x3923310
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x24
mov eax, dword [ecx + 4]
push ebx
push esi
mov dword [esp + 0x14], edx
lea esi, [ecx + 4]
mov edx, dword [ecx]
add esi, 4
xor eax, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], eax
push edi
movd xmm0, edx
mov edi, eax
pshufd xmm0, xmm0, 0
movdqa xmmword [esp + 0x20], xmm0
test al, 3
je 0x3923350
and edi, 0xfffffffc
add edi, 4
mov eax, dword [0x392dea8]
test eax, eax
jne 0x3923374
mov ecx, 0xbb398380
call fcn.03923f20
mov edx, 0x97f883e
mov ecx, eax
call fcn.03923e80
mov dword [0x392dea8], eax
call eax
mov ebx, eax
mov eax, dword [0x392dcec]
test eax, eax
jne 0x392339c
mov ecx, 0xbb398380
call fcn.03923f20
mov edx, 0xe9233692
mov ecx, eax
call fcn.03923e80
mov dword [0x392dcec], eax
push edi
push 8
push ebx
call eax
mov dword [esp + 0xc], eax
test eax, eax
je 0x3923452
shr edi, 2
xor edx, edx
lea ecx, [esi + edi*4]
mov edi, eax
mov ebx, ecx
sub ebx, esi
add ebx, 3
shr ebx, 2
cmp esi, ecx
mov ecx, eax
cmova ebx, edx
test ebx, ebx
je 0x3923442
cmp ebx, 8
jb 0x3923427
lea eax, [esi - 4]
lea eax, [eax + ebx*4]
cmp ecx, eax
ja 0x39233e6
lea eax, [ecx - 4]
lea eax, [eax + ebx*4]
cmp eax, esi
jae 0x3923427
movdqa xmm1, xmmword [esp + 0x20]
mov eax, ebx
and eax, 7
mov dword [esp + 0xc], ebx
sub dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
lea ecx, [ecx]
movdqu xmm0, xmmword [esi]
add edx, 8
pxor xmm0, xmm1
movdqu xmmword [edi], xmm0
movdqu xmm0, xmmword [esi + 0x10]
add esi, 0x20
pxor xmm0, xmm1
movdqu xmmword [edi + 0x10], xmm0
add edi, 0x20
cmp edx, eax
jb 0x3923400
cmp edx, ebx
jae 0x3923442
sub edi, esi
lea ecx, [ecx]
mov eax, dword [esi]
lea esi, [esi + 4]
xor eax, dword [esp + 0x14]
inc edx
mov dword [edi + esi - 4], eax
cmp edx, ebx
jb 0x3923430
mov edx, dword [esp + 0x18]
test edx, edx
je 0x3923450
mov eax, dword [esp + 0x1c]
mov dword [edx], eax
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret