joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100d136a
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 0x100d1397
or dword [esi + 0x3c], 1
or dword [esi + 0x38], 2
jmp 0x100d13ac
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x100d13ac
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.10020a42
jmp 0x100d147d
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.10020a42
cmp eax, edi
jne 0x100d1487
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 0x100d1419
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 0x100d145d
mov eax, dword [ebp - 0x1c]
cmp eax, 0x202
je 0x100d1487
cmp eax, 0x205
je 0x100d1487
cmp eax, 0x201
je 0x100d1487
cmp eax, 0x204
je 0x100d1487
cmp eax, 0x100
jne 0x100d1445
cmp dword [ebp - 0x18], 0x1b
je 0x100d1487
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 0x100d147d
ja 0x100d1476
cmp eax, dword [0x101e7494]
jbe 0x100d147d
mov dword [esi + 0x34], 1
cmp dword [esi + 0x34], 0
je 0x100d13ce
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x34]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100d2480
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [ecx + 0x14]
cmp dword [esi - 0xc], 0
je 0x100d24b6
push ebx
mov ebx, dword [ecx + 8]
push edi
mov edi, dword [ecx + 0xc]
call fcn.100092a0
test eax, eax
je 0x100d249e
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 0x100d9983
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x101de690], 0
push esi
push edi
je 0x100d9a0b
cmp dword [0x101de78c], 0xfffffffe
jne 0x100d99f7
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x100d9a0b
mov edi, 0x101e74c4
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x101e74dc], 0
jne 0x100d9a0f
push 0
push 0
push 0x100d9a15
call fcn.1015d1a8
add esp, 0xc
mov dword [0x101e74dc], eax
test eax, eax
je 0x100d99e7
cmp eax, 0xffffffff
je 0x100d99e7
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [0x101de78c], esi
jmp 0x100d99ee
and dword [0x101e74dc], 0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x100d9a0b
mov eax, dword [ebp + 8]
mov dword [0x101de78c], eax
cmp eax, 0xffffffff
jne 0x100d9a0b
and dword [0x101e74dc], 0
pop edi
pop esi
pop ebp
ret
call fcn.1001c241
int3
Function at 0x100e4bad
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 0x100e4d34
je 0x100e4d5b
sub eax, 0xa1
je 0x100e4d5b
sub eax, 1
je 0x100e4d5b
dec eax
sub eax, 1
je 0x100e4d5b
sub eax, 1
je 0x100e4d5b
dec eax
sub eax, 1
je 0x100e4d5b
sub eax, 1
je 0x100e4d5b
sub eax, 0x58
jne 0x100e4d99
cmp dword [edi + 0xc0], 0xffffffff
je 0x100e4d5b
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x100e4d5b
mov eax, dword [esi + 8]
sub eax, 0x21
je 0x100e4c89
sub eax, 1
jne 0x100e4d5b
mov eax, dword [edi + 0xc0]
lea ebx, [eax + 1]
jmp 0x100e4c78
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 [0x1018ba08]
mov ecx, edi
call esi
test eax, eax
jne 0x100e4cd5
mov eax, dword [edi + 0xc0]
inc ebx
mov ecx, dword [edi + 0xbc]
add eax, ecx
cmp ebx, eax
jl 0x100e4c4e
jmp 0x100e4db3
mov ecx, dword [edi + 0xc0]
lea ebx, [ecx - 1]
add ebx, dword [edi + 0xbc]
cmp ebx, ecx
jle 0x100e4db3
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 [0x1018ba08]
mov ecx, edi
call esi
test eax, eax
jne 0x100e4cd5
dec ebx
cmp ebx, dword [edi + 0xc0]
jg 0x100e4ca0
jmp 0x100e4db3
mov eax, dword [edi]
push dword [ebp - 4]
mov dword [edi + 0x24c], 1
mov esi, dword [eax + 0x214]
mov ecx, esi
call dword [0x1018ba08]
mov ecx, edi
call esi
mov eax, dword [edi]
mov esi, dword [eax + 0x210]
mov ecx, esi
call dword [0x1018ba08]
mov ecx, edi
call esi
mov ecx, eax
call fcn.10026373
mov eax, dword [edi]
push dword [edi + 0xc0]
mov esi, dword [eax + 0x270]
mov ecx, esi
call dword [0x1018ba08]
mov ecx, edi
call esi
and dword [edi + 0x24c], 0
jmp 0x100e4db3
sub eax, 0x200
je 0x100e4d5b
sub eax, 1
je 0x100e4d5b
sub eax, 1
je 0x100e4d5b
dec eax
sub eax, 1
je 0x100e4d5b
sub eax, 1
je 0x100e4d5b
dec eax
sub eax, 1
je 0x100e4d5b
sub eax, 1
jne 0x100e4d99
mov eax, dword [edi + 0xfc]
test eax, eax
je 0x100e4d7a
cmp dword [eax + 0x20], ebx
je 0x100e4d7a
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 0x100e4d99
cmp dword [eax + 0x20], ebx
je 0x100e4d99
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [esi + 4], 0x203
jne 0x100e4db8
lea eax, [edi + 0x2250]
test eax, eax
je 0x100e4daf
mov ebx, dword [eax + 0x20]
cmp dword [esi], ebx
jne 0x100e4db8
xor eax, eax
inc eax
jmp 0x100e4dc0
push esi
mov ecx, edi
call fcn.1006b8b8
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x101117ed
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 4
mov eax, 0x1017cb9d
call fcn.10151c88
mov edi, ecx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x101118ce
mov esi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x101118ce
cmp esi, 0x43
je 0x1011182f
cmp esi, 0x2d
jne 0x101118ce
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x101118ce
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.10006850
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.10007d90
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 dword [ebp - 0x10], eax
test eax, eax
je 0x101118bc
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x101118bc
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x10]
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.10001e50
push ebx
mov ecx, edi
call fcn.1001e865
call fcn.10151c56
ret 4
Function at 0x10114389
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x101dee80]
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.10153f10
push 0xffffffffffffffff
push dword [ebx + 0xc]
lea eax, [esi + 0x24]
push 0x104
push eax
call fcn.1015e2b2
push eax
call fcn.1000a4a0
mov eax, dword [ebx + 4]
add esp, 0x20
cmp eax, dword [0x1019997c]
je 0x101144ea
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 0x101144fe
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x101144fe
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
mov eax, dword [ebx + 0xc]
cmp dword [eax - 0xc], edi
je 0x10114445
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x10114439
lea edx, [ebp - 0x28]
push edx
push edi
push eax
call fcn.1011413a
neg eax
sbb eax, eax
and eax, dword [ebp - 0x28]
jmp 0x10114440
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10114447
mov eax, edi
mov ecx, esi
mov dword [ecx + 0x20], eax
lea eax, [ebp - 0x38]
push eax
call fcn.1011463f
test eax, eax
je 0x10114473
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.10113fc1
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi], ecx
mov dword [esi + 4], eax
jmp 0x10114478
mov dword [esi], edi
mov dword [esi + 4], edi
lea eax, [ebp - 0x40]
push eax
call fcn.1011463f
test eax, eax
je 0x101144a0
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.10113fc1
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
jmp 0x101144a6
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
lea eax, [ebp - 0x48]
push eax
call fcn.1011463f
test eax, eax
je 0x101144c8
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
call fcn.10113fc1
mov edi, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x101144ca
mov ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x101144dc
mov dword [esi], edi
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x101144ea
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10151c48
leave
ret 4
xor eax, eax
jmp 0x101144ed
Function at 0x10117f87
Capabilities:
Get file system object information

Disassembly:
push 0x398
mov eax, 0x1018755b
call fcn.10151cbb
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 0x10118118
mov eax, dword [ebp + 0x10]
sub eax, esi
je 0x101180ea
sub eax, 1
je 0x10118006
sub eax, 1
je 0x10117fde
sub eax, 1
je 0x10118006
push 0x101be5e4
mov ecx, edi
call fcn.10009f1e
mov eax, edi
call fcn.10151c6a
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 0x10117fc8
lea eax, [ebp - 0x28c]
push eax
jmp 0x10117fcd
lea eax, [ebp - 0x114]
push eax
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x10117fc8
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.10114502
test eax, eax
je 0x10117fc8
lea ecx, [ebp - 0x3a0]
call fcn.10006850
cmp dword [ebp + 0x10], 1
mov dword [ebp - 4], esi
jne 0x101180a0
test byte [ebp - 0x21c], 0x18
jne 0x101180c2
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 [0x1018ba08]
mov ecx, ebx
call esi
jmp 0x101180c2
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 [0x1018ba08]
mov ecx, ebx
call esi
mov eax, dword [ebp - 0x3a0]
add eax, 0xfffffff0
push eax
call fcn.1000a5ec
pop ecx
mov ecx, dword [ebp - 0x3a0]
add eax, 0x10
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.10001e50
jmp 0x10117fd4
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 0x10117fc8
lea eax, [ebp - 0x390]
jmp 0x10118003
call fcn.1001c241
int3

Function at 0x10118290
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.1014c8ab
call fcn.100279d0
cmp dword [eax + 0x14], 0
jne 0x101182ab
mov ecx, esi
pop esi
jmp fcn.10117599
pop esi
ret
Function at 0x101183a6
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.10025a77
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 0x101183e2
call fcn.101185c3
mov dword [esi + 0xc], 1
jmp 0x101183e7
call fcn.101185c3
cmp dword [esi], 0
je 0x10118432
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [ebp + 0x10]
mov edi, eax
mov ecx, esi
test edi, edi
jle 0x1011840d
push edi
call fcn.1001a6d4
lea ecx, [edi + 1]
push ecx
jmp 0x1011841c
push 0xff
call fcn.10007690
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.10017a5b
pop edi
jmp 0x10118456
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 0x10118456
push dword [esi]
push dword [ebp - 4]
call fcn.100960b5
pop esi
leave
ret 0xc

Function at 0x1011851a
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.101185c3
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x10118562
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.1001a6d4
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.10017a5b
jmp 0x1011856d
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.100960b5
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x1011ae04
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x1011af4a
mov ecx, 0x101dea40
call fcn.100272f0
mov esi, eax
test esi, esi
je 0x1011af3f
xor eax, eax
cmp word [esi + 8], ax
jne 0x1011af09
push str.comctl32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x1011aec5
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [ebp + 0x10]
mov ecx, 0x3ff
and ax, cx
cmp ax, 0x11
jne 0x1011ae8b
push str.MS_UI_Gothic
call fcn.1011af88
pop ecx
test eax, eax
je 0x1011ae8b
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 0x1011aea6
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 0x1011aec5
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 0x1011aecb
push ebx
push edi
push eax
call fcn.1009ac2c
add esp, 0xc
jmp 0x1011aecb
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.10019b19
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 0x1011af44
mov eax, dword [edi]
push eax
mov eax, dword [eax - 0xc]
inc eax
push eax
push ecx
call fcn.100954bf
mov ax, word [ebx]
add esp, 0xc
mov word [esi + 8], ax
xor eax, eax
jmp 0x1011af0c
mov ebx, dword [ebp + 0xc]
mov edi, dword [esi + 4]
test edi, edi
je 0x1011af1a
push edi
call fcn.1015d250
pop ecx
mov ecx, dword [ebp + 8]
push eax
push edi
call fcn.10007a90
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.1001c241
call fcn.1001c25b
int3

Function at 0x1011b04b
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.101658c2
pop ecx
test eax, eax
jne 0x1011b08d
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.10001d20
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1011b053
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 0x10128a2d
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x10128a7a
push esi
mov ebx, 0x811c9dc5
xor edi, edi
call fcn.1015d250
xor edx, edx
mov dword [ebp - 4], 0xa
pop ecx
mov ecx, eax
div dword [ebp - 4]
inc eax
test ecx, ecx
je 0x10128a71
mov edx, ecx
movsx ecx, byte [esi + edi]
add edi, eax
imul ebx, ebx, 0x1000193
xor ebx, ecx
cmp edi, edx
jb 0x10128a5f
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
call fcn.1001c241
int3

Function at 0x10149e20
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x101dee80]
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 0x10149e8a
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 0x10149e6f
lea eax, [ebp - 0x158]
push eax
jmp 0x10149e74
push 0x101b3fc8
call fcn.10009f1e
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10151c48
leave
ret 8
call fcn.1001c241
int3

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

Disassembly:
push esi
mov esi, ecx
call fcn.10005290
call fcn.100279d0
cmp dword [eax + 0x14], 0
jne 0x1014a38d
mov ecx, esi
pop esi
jmp fcn.10149bca
pop esi
ret
Function at 0x101667ac
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10151e30
mov eax, dword [0x101dee80]
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.1016638a
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x101667ee
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1016694a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10152420
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 + 0x101e8108]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1016f123
mov ecx, dword [esi*4 + 0x101e8108]
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 0x10166943
cmp eax, dword [ecx + edi + 0x24]
jne 0x10166943
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 0x10166943
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1016f123
add esp, 0x14
test edx, edx
jl 0x10166943
jg 0x101668b9
test eax, eax
jb 0x10166943
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10166943
jl 0x101668d3
cmp dword [ebp - 0x1008], eax
ja 0x10166943
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x101668f1
test ebx, ebx
je 0x1016692a
cmp ecx, edi
jae 0x1016692a
mov al, byte [ecx]
cmp al, 0xd
jne 0x1016690b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10166917
cmp byte [ecx + 1], 0xa
jne 0x10166917
inc ecx
jmp 0x10166917
movzx eax, al
movsx eax, byte [eax + 0x101df1a0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x101668f1
cmp edx, ebx
jne 0x101668f1
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10166948
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10151c48
leave
ret

Function at 0x1016719b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x101671da
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x101671da
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x101671da
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x101671da
cmp dword [ecx + 0x74], 0xe
jbe 0x101671da
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1016d68d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101ba598
push 0x101ba590
push str.FlsAlloc
push 0x1f
call fcn.1016d4b8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1016d6c1
push dword [ebp + 8]
mov ecx, esi
call dword [0x1018ba08]
call esi
jmp 0x1016d6c7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1016d70b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101ba5a8
push 0x101ba5a0
push str.FlsGetValue
push 0x21
call fcn.1016d4b8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1016d742
push dword [ebp + 8]
mov ecx, esi
call dword [0x1018ba08]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1016d74a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101ba5b0
push 0x101ba5a8
push str.FlsSetValue
push 0x22
call fcn.1016d4b8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1016d784
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1018ba08]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]