joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4938a5
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 0x493944
mov eax, dword [esi + 0x34c]
test eax, eax
je 0x493940
mov eax, dword [eax + 0x20]
test eax, eax
je 0x493940
cmp dword [ebx], eax
jne 0x493940
mov eax, dword [ebx + 4]
sub eax, 1
je 0x49391a
sub eax, 1
je 0x4938ea
sub eax, 1
jne 0x493940
mov edi, 0x428e
jmp 0x49391f
push 0x11
mov edi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x49391f
mov eax, dword [esi]
mov esi, dword [eax + 0x340]
mov ecx, esi
call dword [0x572954]
mov ecx, dword [ebp - 4]
call esi
test eax, eax
je 0x49391f
add edi, 3
jmp 0x49391f
mov edi, 0x3ea0
push edi
mov ecx, 0x5caa1c
call fcn.00403020
test eax, eax
je 0x493944
mov eax, dword [0x5caa1c]
mov dword [ebx + 0xc], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
xor eax, eax
jmp 0x493939
call fcn.00411c72
int3

Function at 0x49bd56
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5c3000]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [edi - 0x60]
cmp eax, 9
ja 0x49bd82
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x49bdad
cmp dword [0x5c978c], 0
jne 0x49bdad
lea eax, [edi - 0x41]
cmp eax, 0x19
jbe 0x49bda9
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x49bda9
push edi
call fcn.005549b0
pop ecx
jmp 0x49be24
mov eax, edi
jmp 0x49be24
push 4
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00544f80
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x49be33
push esi
call fcn.004237bf
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.00543097
leave
ret 4
call fcn.00411c72
int3

Function at 0x4ba28f
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x4ba2b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4ba2bf
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop esi
leave
ret
lea ecx, [esi + 0xc]
call fcn.00403b90
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.004c0148
int3
Function at 0x4ba59a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
jne 0x4ba5ab
xor eax, eax
jmp 0x4ba5c7
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4ba5cc
mov eax, dword [ebp - 4]
pop esi
leave
ret 8
lea ecx, [esi + 0xc]
call fcn.00403b90
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.004c0148
int3

Function at 0x4ba66a
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
push 0
push dword [ebp + 0xc]
mov eax, dword [edi]
push dword [ebp + 8]
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x572954]
mov ecx, edi
call esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x4ba69d
pop edi
pop esi
pop ebp
ret 8
lea ecx, [edi + 0xc]
call fcn.00403b90
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.004c0148
int3

Function at 0x4ba776
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
test esi, esi
je 0x4ba7a1
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4ba7a7
cmp dword [ebp - 4], esi
jne 0x4ba7be
pop edi
pop esi
leave
ret 8
lea ecx, [edi + 0xc]
call fcn.00403b90
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.004c0148
lea ecx, [edi + 0xc]
call fcn.00403b90
push eax
push 0xffffffffffffffff
push 0xd
call fcn.004bfd9e
int3
Function at 0x4bc126
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x4bc26c
mov ecx, 0x5c2850
call fcn.00428508
mov esi, eax
test esi, esi
je 0x4bc261
xor eax, eax
cmp word [esi + 8], ax
jne 0x4bc22b
push str.comctl32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x4bc1e7
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [ebp + 0x10]
mov ecx, 0x3ff
and ax, cx
cmp ax, 0x11
jne 0x4bc1ad
push 0x587be4
call fcn.004bc2aa
pop ecx
test eax, eax
je 0x4bc1ad
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 0x4bc1c8
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 0x4bc1e7
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 0x4bc1ed
push ebx
push edi
push eax
call fcn.0049b4d6
add esp, 0xc
jmp 0x4bc1ed
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push 2
mov eax, dword [eax - 0xc]
inc eax
push eax
call fcn.00411fa8
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 0x4bc266
mov eax, dword [edi]
push eax
mov eax, dword [eax - 0xc]
inc eax
push eax
push ecx
call fcn.0042704d
mov ax, word [ebx]
add esp, 0xc
mov word [esi + 8], ax
xor eax, eax
jmp 0x4bc22e
mov ebx, dword [ebp + 0xc]
mov edi, dword [esi + 4]
test edi, edi
je 0x4bc23c
push edi
call fcn.0054d5bb
pop ecx
mov ecx, dword [ebp + 8]
push eax
push edi
call fcn.004033f0
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.00411c72
call fcn.00411c8c
int3
Function at 0x4c079e
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x5c3000]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x230
xor edi, edi
push edi
push esi
call fcn.00544f80
push 0xffffffffffffffff
push dword [ebx + 0xc]
lea eax, [esi + 0x24]
push 0x104
push eax
call fcn.0054da10
push eax
call fcn.00402f90
mov eax, dword [ebx + 4]
add esp, 0x20
cmp eax, dword [0x587608]
je 0x4c08fc
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 0x4c0910
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4c0910
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 0x4c085a
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x4c084e
lea edx, [ebp - 0x28]
push edx
push edi
push eax
call fcn.004c054f
neg eax
sbb eax, eax
and eax, dword [ebp - 0x28]
jmp 0x4c0855
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4c085c
mov eax, edi
mov ecx, esi
mov dword [ecx + 0x20], eax
lea eax, [ebp - 0x38]
push eax
call fcn.004c0a4f
test eax, eax
je 0x4c0883
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.004c03d6
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x4c0887
mov ecx, edi
mov eax, edi
mov dword [esi], ecx
mov dword [esi + 4], eax
lea eax, [ebp - 0x40]
push eax
call fcn.004c0a4f
test eax, eax
je 0x4c08ae
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.004c03d6
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x4c08b2
mov ecx, edi
mov eax, edi
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x48]
push eax
call fcn.004c0a4f
test eax, eax
je 0x4c08da
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
call fcn.004c03d6
mov edi, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x4c08dc
mov ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x4c08ee
mov dword [esi], edi
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x4c08fc
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.00543097
leave
ret 4
xor eax, eax
jmp 0x4c08ff
Function at 0x4cbd6f
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 0x4cbd9c
or dword [esi + 0x3c], 1
or dword [esi + 0x38], 2
jmp 0x4cbdb1
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4cbdb1
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.00409e65
jmp 0x4cbe82
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.00409e65
cmp eax, edi
jne 0x4cbe8c
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 0x4cbe1e
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 0x4cbe62
mov eax, dword [ebp - 0x1c]
cmp eax, 0x202
je 0x4cbe8c
cmp eax, 0x205
je 0x4cbe8c
cmp eax, 0x201
je 0x4cbe8c
cmp eax, 0x204
je 0x4cbe8c
cmp eax, 0x100
jne 0x4cbe4a
cmp dword [ebp - 0x18], 0x1b
je 0x4cbe8c
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 0x4cbe82
ja 0x4cbe7b
cmp eax, dword [0x5cab90]
jbe 0x4cbe82
mov dword [esi + 0x34], 1
cmp dword [esi + 0x34], 0
je 0x4cbdd3
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x34]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4cce85
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [ecx + 0x14]
cmp dword [esi - 0xc], 0
je 0x4ccebb
push ebx
mov ebx, dword [ecx + 8]
push edi
mov edi, dword [ecx + 0xc]
call fcn.00408661
test eax, eax
je 0x4ccea3
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 0x4d4298
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x5c2828], 0
push esi
push edi
je 0x4d4320
cmp dword [0x5c2978], 0xfffffffe
jne 0x4d430c
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x4d4320
mov edi, 0x5cabc0
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x5cabd8], 0
jne 0x4d4324
push 0
push 0
push 0x4d432a
call fcn.0054e6c3
add esp, 0xc
mov dword [0x5cabd8], eax
test eax, eax
je 0x4d42fc
cmp eax, 0xffffffff
je 0x4d42fc
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [0x5c2978], esi
jmp 0x4d4303
and dword [0x5cabd8], 0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4d4320
mov eax, dword [ebp + 8]
mov dword [0x5c2978], eax
cmp eax, 0xffffffff
jne 0x4d4320
and dword [0x5cabd8], 0
pop edi
pop esi
pop ebp
ret
call fcn.00411c72
int3
Function at 0x4dbc45
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 0x4dbdcc
je 0x4dbdf3
sub eax, 0xa1
je 0x4dbdf3
sub eax, 1
je 0x4dbdf3
dec eax
sub eax, 1
je 0x4dbdf3
sub eax, 1
je 0x4dbdf3
dec eax
sub eax, 1
je 0x4dbdf3
sub eax, 1
je 0x4dbdf3
sub eax, 0x58
jne 0x4dbe31
cmp dword [edi + 0xc0], 0xffffffff
je 0x4dbdf3
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x4dbdf3
mov eax, dword [esi + 8]
sub eax, 0x21
je 0x4dbd21
sub eax, 1
jne 0x4dbdf3
mov eax, dword [edi + 0xc0]
lea ebx, [eax + 1]
jmp 0x4dbd10
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 [0x572954]
mov ecx, edi
call esi
test eax, eax
jne 0x4dbd6d
mov eax, dword [edi + 0xc0]
inc ebx
mov ecx, dword [edi + 0xbc]
add eax, ecx
cmp ebx, eax
jl 0x4dbce6
jmp 0x4dbe4b
mov ecx, dword [edi + 0xc0]
lea ebx, [ecx - 1]
add ebx, dword [edi + 0xbc]
cmp ebx, ecx
jle 0x4dbe4b
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 [0x572954]
mov ecx, edi
call esi
test eax, eax
jne 0x4dbd6d
dec ebx
cmp ebx, dword [edi + 0xc0]
jg 0x4dbd38
jmp 0x4dbe4b
mov eax, dword [edi]
push dword [ebp - 4]
mov dword [edi + 0x24c], 1
mov esi, dword [eax + 0x214]
mov ecx, esi
call dword [0x572954]
mov ecx, edi
call esi
mov eax, dword [edi]
mov esi, dword [eax + 0x210]
mov ecx, esi
call dword [0x572954]
mov ecx, edi
call esi
mov ecx, eax
call fcn.0040f0c0
mov eax, dword [edi]
push dword [edi + 0xc0]
mov esi, dword [eax + 0x270]
mov ecx, esi
call dword [0x572954]
mov ecx, edi
call esi
and dword [edi + 0x24c], 0
jmp 0x4dbe4b
sub eax, 0x200
je 0x4dbdf3
sub eax, 1
je 0x4dbdf3
sub eax, 1
je 0x4dbdf3
dec eax
sub eax, 1
je 0x4dbdf3
sub eax, 1
je 0x4dbdf3
dec eax
sub eax, 1
je 0x4dbdf3
sub eax, 1
jne 0x4dbe31
mov eax, dword [edi + 0xfc]
test eax, eax
je 0x4dbe12
cmp dword [eax + 0x20], ebx
je 0x4dbe12
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 0x4dbe31
cmp dword [eax + 0x20], ebx
je 0x4dbe31
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esi + 4], 0x203
jne 0x4dbe50
lea eax, [edi + 0x2250]
test eax, eax
je 0x4dbe47
mov ebx, dword [eax + 0x20]
cmp dword [esi], ebx
jne 0x4dbe50
xor eax, eax
inc eax
jmp 0x4dbe58
push esi
mov ecx, edi
call fcn.004722b0
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x507ce6
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 8
mov eax, 0x5660ab
call fcn.0054340e
mov edi, ecx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x507dd2
mov esi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x507dd2
cmp esi, 0x43
je 0x507d28
cmp esi, 0x2d
jne 0x507dd2
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x507dd2
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.00402ea0
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 0x593080
push eax
call fcn.00403a00
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 0x507dc0
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x507dc0
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.00403b50
push ebx
mov ecx, edi
call fcn.00424a32
call fcn.005433dc
ret 4
Function at 0x50b3d1
Capabilities:
Get file system object information

Disassembly:
push 0x6f8
mov eax, 0x56e089
call fcn.00543441
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 0x50b562
mov eax, dword [ebp + 0x10]
sub eax, esi
je 0x50b534
sub eax, 1
je 0x50b450
sub eax, 1
je 0x50b428
sub eax, 1
je 0x50b450
push 0x5a59f4
mov ecx, edi
call fcn.00406540
mov eax, edi
call fcn.005433f0
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 0x50b412
lea eax, [ebp - 0x4e8]
push eax
jmp 0x50b417
lea eax, [ebp - 0x218]
push eax
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x50b412
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.004c0914
test eax, eax
je 0x50b412
lea ecx, [ebp - 0x700]
call fcn.00402ea0
cmp dword [ebp + 0x10], 1
mov dword [ebp - 4], esi
jne 0x50b4ea
test byte [ebp - 0x428], 0x18
jne 0x50b50c
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 [0x572954]
mov ecx, ebx
call esi
jmp 0x50b50c
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 [0x572954]
mov ecx, ebx
call esi
mov eax, dword [ebp - 0x700]
add eax, 0xfffffff0
push eax
call fcn.00406330
pop ecx
mov ecx, dword [ebp - 0x700]
add eax, 0x10
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.00403b50
jmp 0x50b41e
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 0x50b412
lea eax, [ebp - 0x6f0]
jmp 0x50b44d
call fcn.00411c72
int3

Function at 0x50b6da
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.0053e7f0
call fcn.00424e74
cmp dword [eax + 0x14], 0
jne 0x50b6f5
mov ecx, esi
pop esi
jmp fcn.0050a9de
pop esi
ret

Function at 0x50b7ca
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.0055515f
pop ecx
test eax, eax
jne 0x50b80c
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.0042048b
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x50b7d2
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 0x525275
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c0
mov eax, dword [0x5c3000]
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 0x5252df
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 0x5252c4
lea eax, [ebp - 0x2ac]
push eax
jmp 0x5252c9
push 0x598158
call fcn.00406540
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00543097
leave
ret 8
call fcn.00411c72
int3

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

Disassembly:
push esi
mov esi, ecx
call fcn.004027d0
call fcn.00424e74
cmp dword [eax + 0x14], 0
jne 0x5257df
mov ecx, esi
pop esi
jmp fcn.0052501f
pop esi
ret

Function at 0x543ed2
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x543f11
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x543f11
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x543f11
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x543f11
cmp dword [ecx + 0x74], 0xe
jbe 0x543f11
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x558cb5
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5a2da8
push 0x5a2da0
push str.FlsAlloc
push 0x1f
call fcn.00558b34
mov esi, eax
add esp, 0x10
test esi, esi
je 0x558ce9
push dword [ebp + 8]
mov ecx, esi
call dword [0x572954]
call esi
jmp 0x558cef
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x558d33
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5a2db8
push 0x5a2db0
push str.FlsGetValue
push 0x21
call fcn.00558b34
mov esi, eax
add esp, 0x10
test esi, esi
je 0x558d6a
push dword [ebp + 8]
mov ecx, esi
call dword [0x572954]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x558d72
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5a2dc0
push 0x5a2db8
push str.FlsSetValue
push 0x22
call fcn.00558b34
mov esi, eax
add esp, 0x10
test esi, esi
je 0x558dac
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x572954]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]