joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005c705
Capabilities:
Get file system object information

Disassembly:
push 0x6f8
mov eax, 0x1019699f
call fcn.10165ff7
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 0x1005c896
mov eax, dword [ebp + 0x10]
sub eax, esi
je 0x1005c868
sub eax, 1
je 0x1005c784
sub eax, 1
je 0x1005c75c
sub eax, 1
je 0x1005c784
push 0x101dae3c
mov ecx, edi
call fcn.1002ae6e
mov eax, edi
call fcn.10165fa6
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 0x1005c746
lea eax, [ebp - 0x4e8]
push eax
jmp 0x1005c74b
lea eax, [ebp - 0x218]
push eax
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x1005c746
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.10043122
test eax, eax
je 0x1005c746
lea ecx, [ebp - 0x700]
call fcn.1002aecb
cmp dword [ebp + 0x10], 1
mov dword [ebp - 4], esi
jne 0x1005c81e
test byte [ebp - 0x428], 0x18
jne 0x1005c840
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 [0x101a49d8]
mov ecx, ebx
call esi
jmp 0x1005c840
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 [0x101a49d8]
mov ecx, ebx
call esi
mov eax, dword [ebp - 0x700]
add eax, 0xfffffff0
push eax
call fcn.1002c839
pop ecx
mov ecx, dword [ebp - 0x700]
add eax, 0x10
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.1002b852
jmp 0x1005c752
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 0x1005c746
lea eax, [ebp - 0x6f0]
jmp 0x1005c781
call fcn.1002bef2
int3

Function at 0x1005ca0e
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.100ac67a
call fcn.10030d66
cmp dword [eax + 0x14], 0
jne 0x1005ca29
mov ecx, esi
pop esi
jmp fcn.1005bd12
pop esi
ret

Function at 0x1005d3a4
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c0
mov eax, dword [0x101fd000]
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 0x1005d40e
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 0x1005d3f3
lea eax, [ebp - 0x2ac]
push eax
jmp 0x1005d3f8
push 0x101ae030
call fcn.1002ae6e
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1016550f
leave
ret 8
call fcn.1002bef2
int3
Function at 0x1005d8f3
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.10002720
call fcn.10030d66
cmp dword [eax + 0x14], 0
jne 0x1005d90e
mov ecx, esi
pop esi
jmp fcn.1005d14e
pop esi
ret
Function at 0x100667fc
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 0x10066815
call fcn.10030d12
mov esi, dword [eax + 0xc]
push 0x101af728
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x10066857
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10066857
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x10066857
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.10066860
jmp 0x10066859
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1008e7fe
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 0x1008e985
je 0x1008e9ac
sub eax, 0xa1
je 0x1008e9ac
sub eax, 1
je 0x1008e9ac
dec eax
sub eax, 1
je 0x1008e9ac
sub eax, 1
je 0x1008e9ac
dec eax
sub eax, 1
je 0x1008e9ac
sub eax, 1
je 0x1008e9ac
sub eax, 0x58
jne 0x1008e9ea
cmp dword [edi + 0xc0], 0xffffffff
je 0x1008e9ac
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x1008e9ac
mov eax, dword [esi + 8]
sub eax, 0x21
je 0x1008e8da
sub eax, 1
jne 0x1008e9ac
mov eax, dword [edi + 0xc0]
lea ebx, [eax + 1]
jmp 0x1008e8c9
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 [0x101a49d8]
mov ecx, edi
call esi
test eax, eax
jne 0x1008e926
mov eax, dword [edi + 0xc0]
inc ebx
mov ecx, dword [edi + 0xbc]
add eax, ecx
cmp ebx, eax
jl 0x1008e89f
jmp 0x1008ea04
mov ecx, dword [edi + 0xc0]
lea ebx, [ecx - 1]
add ebx, dword [edi + 0xbc]
cmp ebx, ecx
jle 0x1008ea04
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 [0x101a49d8]
mov ecx, edi
call esi
test eax, eax
jne 0x1008e926
dec ebx
cmp ebx, dword [edi + 0xc0]
jg 0x1008e8f1
jmp 0x1008ea04
mov eax, dword [edi]
push dword [ebp - 4]
mov dword [edi + 0x24c], 1
mov esi, dword [eax + 0x214]
mov ecx, esi
call dword [0x101a49d8]
mov ecx, edi
call esi
mov eax, dword [edi]
mov esi, dword [eax + 0x210]
mov ecx, esi
call dword [0x101a49d8]
mov ecx, edi
call esi
mov ecx, eax
call fcn.1003f324
mov eax, dword [edi]
push dword [edi + 0xc0]
mov esi, dword [eax + 0x270]
mov ecx, esi
call dword [0x101a49d8]
mov ecx, edi
call esi
and dword [edi + 0x24c], 0
jmp 0x1008ea04
sub eax, 0x200
je 0x1008e9ac
sub eax, 1
je 0x1008e9ac
sub eax, 1
je 0x1008e9ac
dec eax
sub eax, 1
je 0x1008e9ac
sub eax, 1
je 0x1008e9ac
dec eax
sub eax, 1
je 0x1008e9ac
sub eax, 1
jne 0x1008e9ea
mov eax, dword [edi + 0xfc]
test eax, eax
je 0x1008e9cb
cmp dword [eax + 0x20], ebx
je 0x1008e9cb
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [edi + 0xf8]
test eax, eax
je 0x1008e9ea
cmp dword [eax + 0x20], ebx
je 0x1008e9ea
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esi + 4], 0x203
jne 0x1008ea09
lea eax, [edi + 0x2250]
test eax, eax
je 0x1008ea00
mov ebx, dword [eax + 0x20]
cmp dword [esi], ebx
jne 0x1008ea09
xor eax, eax
inc eax
jmp 0x1008ea11
push esi
mov ecx, edi
call fcn.100867e9
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100acd1e
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x101fd000]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [edi - 0x60]
cmp eax, 9
ja 0x100acd4a
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x100acd75
cmp dword [0x10204d6c], 0
jne 0x100acd75
lea eax, [edi - 0x41]
cmp eax, 0x19
jbe 0x100acd71
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x100acd71
push edi
call fcn.1017bc10
pop ecx
jmp 0x100acdec
mov eax, edi
jmp 0x100acdec
push 4
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.101695f0
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x100acdfb
push esi
call fcn.1002e444
push dword [eax + 0x30]
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 0
push edi
mov esi, eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push esi
push 1
push 2
lea ecx, [ebp - 0x108]
push ecx
lea ecx, [ebp - 0x104]
push ecx
push eax
push edi
call dword [sym.imp.USER32.dll_ToUnicodeEx]
xor eax, eax
mov word [ebp - 0x106], ax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
movzx eax, word [ebp - 0x108]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.1016550f
leave
ret 4
call fcn.1002bef2
int3
Function at 0x100c9867
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 0xe4]
test ecx, ecx
je 0x100c99c5
push esi
push edi
push 0x101bb5d0
call fcn.1003185b
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], eax
je 0x100c9900
mov edi, dword [ebx + 0x168]
jmp 0x100c98ec
mov esi, dword [edi + 8]
mov edi, dword [edi]
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x100c98ec
push esi
call fcn.1003a1de
push eax
push 0x101fc888
call fcn.100317bc
mov dword [ebp - 0xc], eax
pop ecx
pop ecx
test eax, eax
je 0x100c98ec
mov ecx, dword [eax]
mov esi, dword [ecx + 0x1a0]
mov ecx, esi
call dword [0x101a49d8]
mov ecx, dword [ebp - 0xc]
call esi
test eax, eax
jle 0x100c98ec
push 4
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_ShowWindow]
test edi, edi
jne 0x100c989b
lea ecx, [ebx + 0x164]
call fcn.10040548
jmp 0x100c99c3
mov eax, dword [ebx + 0xcc]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x100c99c3
lea eax, [ebx + 0xc8]
lea ecx, [ebp - 0xc]
push ecx
mov ecx, eax
call fcn.100327cf
mov edi, dword [eax]
test edi, edi
jne 0x100c992c
xor esi, esi
jmp 0x100c992f
mov esi, dword [edi + 0x20]
push esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x100c99b3
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x100c99b3
cmp dword [ebp - 0x10], 0
jne 0x100c9988
push edi
push 0x101fc888
call fcn.100317bc
mov edi, eax
pop ecx
pop ecx
mov ecx, dword [edi]
mov esi, dword [ecx + 0x1a8]
mov ecx, esi
call dword [0x101a49d8]
mov ecx, edi
call esi
push eax
push 0x101b06c8
call fcn.100317bc
pop ecx
pop ecx
test eax, eax
je 0x100c99b3
mov esi, dword [ebp - 4]
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
lea eax, [ebp - 8]
lea esi, [ebx + 0x164]
push eax
mov ecx, esi
call fcn.100c89d7
test eax, eax
jne 0x100c99b3
lea eax, [ebp - 8]
mov ecx, esi
push eax
call fcn.100c6b0d
cmp dword [ebp - 0xc], 0
lea eax, [ebx + 0xc8]
jne 0x100c9917
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10102dba
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 0x10102de7
or dword [esi + 0x3c], 1
or dword [esi + 0x38], 2
jmp 0x10102dfc
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x10102dfc
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.1003a1de
jmp 0x10102ecd
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.1003a1de
cmp eax, edi
jne 0x10102ed7
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 0x10102e69
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 0x10102ead
mov eax, dword [ebp - 0x1c]
cmp eax, 0x202
je 0x10102ed7
cmp eax, 0x205
je 0x10102ed7
cmp eax, 0x201
je 0x10102ed7
cmp eax, 0x204
je 0x10102ed7
cmp eax, 0x100
jne 0x10102e95
cmp dword [ebp - 0x18], 0x1b
je 0x10102ed7
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 0x10102ecd
ja 0x10102ec6
cmp eax, dword [0x102061c8]
jbe 0x10102ecd
mov dword [esi + 0x34], 1
cmp dword [esi + 0x34], 0
je 0x10102e1e
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x34]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x101032af
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [ecx + 0x14]
cmp dword [esi - 0xc], 0
je 0x101032e5
push ebx
mov ebx, dword [ecx + 8]
push edi
mov edi, dword [ecx + 0xc]
call fcn.1002c6a5
test eax, eax
je 0x101032cd
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 0x10109b7e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x101fc77c], 0
push esi
push edi
je 0x10109c06
cmp dword [0x101fcab8], 0xfffffffe
jne 0x10109bf2
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x10109c06
mov edi, 0x102061f4
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x1020620c], 0
jne 0x10109c0a
push 0
push 0
push 0x10109c10
call fcn.10170fdb
add esp, 0xc
mov dword [0x1020620c], eax
test eax, eax
je 0x10109be2
cmp eax, 0xffffffff
je 0x10109be2
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [0x101fcab8], esi
jmp 0x10109be9
and dword [0x1020620c], 0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10109c06
mov eax, dword [ebp + 8]
mov dword [0x101fcab8], eax
cmp eax, 0xffffffff
jne 0x10109c06
and dword [0x1020620c], 0
pop edi
pop esi
pop ebp
ret
call fcn.1002bef2
int3
Function at 0x101131e2
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 0x10113281
mov eax, dword [esi + 0x34c]
test eax, eax
je 0x1011327d
mov eax, dword [eax + 0x20]
test eax, eax
je 0x1011327d
cmp dword [ebx], eax
jne 0x1011327d
mov eax, dword [ebx + 4]
sub eax, 1
je 0x10113257
sub eax, 1
je 0x10113227
sub eax, 1
jne 0x1011327d
mov edi, 0x428e
jmp 0x1011325c
push 0x11
mov edi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x1011325c
mov eax, dword [esi]
mov esi, dword [eax + 0x340]
mov ecx, esi
call dword [0x101a49d8]
mov ecx, dword [ebp - 4]
call esi
test eax, eax
je 0x1011325c
add edi, 3
jmp 0x1011325c
mov edi, 0x3ea0
push edi
mov ecx, 0x10206250
call fcn.1002b6a7
test eax, eax
je 0x10113281
mov eax, dword [0x10206250]
mov dword [ebx + 0xc], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
xor eax, eax
jmp 0x10113276
call fcn.1002bef2
int3

Function at 0x1011d179
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.1017bc40
pop ecx
test eax, eax
jne 0x1011d1bb
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.1002f492
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1011d181
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 0x1012468f
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 8
mov eax, 0x1019625c
call fcn.10165fc4
mov edi, ecx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x1012477b
mov esi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x1012477b
cmp esi, 0x43
je 0x101246d1
cmp esi, 0x2d
jne 0x1012477b
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1012477b
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.1002aecb
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.1002ca41
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 0x10124769
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x10124769
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.1002b852
push ebx
mov ecx, edi
call fcn.10121b15
call fcn.10165f92
ret 4
Function at 0x1017c653
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10166140
mov eax, dword [0x101fd000]
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.1017c231
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1017c695
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1017c7f1
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10166320
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 + 0x10206f88]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10183aa1
mov ecx, dword [esi*4 + 0x10206f88]
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 0x1017c7ea
cmp eax, dword [ecx + edi + 0x24]
jne 0x1017c7ea
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 0x1017c7ea
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10183aa1
add esp, 0x14
test edx, edx
jl 0x1017c7ea
jg 0x1017c760
test eax, eax
jb 0x1017c7ea
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1017c7ea
jl 0x1017c77a
cmp dword [ebp - 0x1008], eax
ja 0x1017c7ea
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1017c798
test ebx, ebx
je 0x1017c7d1
cmp ecx, edi
jae 0x1017c7d1
mov al, byte [ecx]
cmp al, 0xd
jne 0x1017c7b2
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1017c7be
cmp byte [ecx + 1], 0xa
jne 0x1017c7be
inc ecx
jmp 0x1017c7be
movzx eax, al
movsx eax, byte [eax + 0x101fd3f8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1017c798
cmp edx, ebx
jne 0x1017c798
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1017c7ef
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1016550f
leave
ret

Function at 0x1017d058
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101d5e88
push 0x101d5e80
push str.FlsAlloc
push 0x1f
call fcn.10180a0e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10180c17
push dword [ebp + 8]
mov ecx, esi
call dword [0x101a49d8]
call esi
jmp 0x10180c1d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10180c61
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101d5e98
push 0x101d5e90
push str.FlsGetValue
push 0x21
call fcn.10180a0e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10180c98
push dword [ebp + 8]
mov ecx, esi
call dword [0x101a49d8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10180ca0
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101d5ea0
push 0x101d5e98
push str.FlsSetValue
push 0x22
call fcn.10180a0e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10180cda
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x101a49d8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10183d75
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x10206f88]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10183db5
cmp byte [ebx], 0xa
jne 0x10183db5
or byte [edi + eax + 0x28], 4
jmp 0x10183dba
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x10183eb9
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10183e9c
inc eax
cmp dl, 0xd
je 0x10183de6
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10183e0c
cmp eax, ecx
jae 0x10183e1a
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x10183dce
jmp 0x10183eb9
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10183e97
cmp dword [ebp - 0x10], 0
je 0x10183e97
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10206f88]
test byte [eax + edi + 0x28], 0x48
je 0x10183e71
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10183e5c
mov byte [esi], dl
jmp 0x10183e6d
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10206f88]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10183eb9
cmp byte [ebp - 1], 0xa
jne 0x10183e80
cmp esi, ebx
jne 0x10183e80
mov byte [esi], 0xa
jmp 0x10183eb8
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10183abf
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10183eb9
mov byte [esi], 0xd
jmp 0x10183eb8
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10206f88]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10183eb6
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10183eb9
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret