joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d5780
Capabilities:
Query or enumerate registry value

Disassembly:
push 8
mov eax, 0x5a1ef1
call fcn.00574880
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.0040e1a0
and dword [ebp - 4], 0
mov esi, dword [ebp + 8]
cmp esi, 0x80000000
jne 0x4d57de
call fcn.0044bd0b
cmp eax, 1
jne 0x4d57de
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push str.SoftwareClasses_
push eax
call fcn.004162b5
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0040f3d4
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00406a20
inc esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [ebp - 0x10]
mov esi, eax
add ecx, 0xfffffff0
call fcn.00406a20
mov eax, esi
call fcn.0057484e
ret 0x10

Function at 0x4d5805
Capabilities:
Set registry value

Disassembly:
push 8
mov eax, 0x5a1ef1
call fcn.00574880
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.0040e1a0
and dword [ebp - 4], 0
mov esi, dword [ebp + 8]
cmp esi, 0x80000000
jne 0x4d5863
call fcn.0044bd0b
cmp eax, 1
jne 0x4d5863
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push str.SoftwareClasses_
push eax
call fcn.004162b5
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0040f3d4
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00406a20
inc esi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ecx, dword [ebp - 0x10]
mov esi, eax
add ecx, 0xfffffff0
call fcn.00406a20
mov eax, esi
call fcn.0057484e
ret 0x14

Function at 0x4dc9ae
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 0x4dca04
push 5
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x4dc9dd
call fcn.0041a743
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4dc9f2
call fcn.0041a743
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4dca04
call fcn.0041a743
call fcn.0044bcbd
cmp dword [eax + 0x3c], 0
je 0x4dca19
push esi
mov ecx, ebx
call fcn.004dc0d4
mov esi, eax
push dword [ebp + 0xc]
push esi
call fcn.004dcc03
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x4dca42
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x4dca4e
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 0x4dda43
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x60fe80]
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.005789a0
push 0xffffffffffffffff
push dword [ebx + 0xc]
lea eax, [esi + 0x24]
push 0x104
push eax
call fcn.0058243a
push eax
call fcn.0040f575
mov eax, dword [ebx + 4]
add esp, 0x20
cmp eax, dword [0x5c79c8]
je 0x4ddba1
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 0x4ddbb5
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4ddbb5
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 0x4ddaff
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x4ddaf3
lea edx, [ebp - 0x28]
push edx
push edi
push eax
call fcn.004dd691
neg eax
sbb eax, eax
and eax, dword [ebp - 0x28]
jmp 0x4ddafa
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4ddb01
mov eax, edi
mov ecx, esi
mov dword [ecx + 0x20], eax
lea eax, [ebp - 0x38]
push eax
call fcn.004ddd50
test eax, eax
je 0x4ddb28
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.004dd419
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x4ddb2c
mov ecx, edi
mov eax, edi
mov dword [esi], ecx
mov dword [esi + 4], eax
lea eax, [ebp - 0x40]
push eax
call fcn.004ddd50
test eax, eax
je 0x4ddb53
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.004dd419
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x4ddb57
mov ecx, edi
mov eax, edi
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x48]
push eax
call fcn.004ddd50
test eax, eax
je 0x4ddb7f
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
call fcn.004dd419
mov edi, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x4ddb81
mov ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x4ddb93
mov dword [esi], edi
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x4ddba1
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.005742be
leave
ret 4
xor eax, eax
jmp 0x4ddba4
Function at 0x4f21dc
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 0x4f2209
or dword [esi + 0x3c], 1
or dword [esi + 0x38], 2
jmp 0x4f221e
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4f221e
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.0042068b
jmp 0x4f22ef
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.0042068b
cmp eax, edi
jne 0x4f22f9
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 0x4f228b
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 0x4f22cf
mov eax, dword [ebp - 0x1c]
cmp eax, 0x202
je 0x4f22f9
cmp eax, 0x205
je 0x4f22f9
cmp eax, 0x201
je 0x4f22f9
cmp eax, 0x204
je 0x4f22f9
cmp eax, 0x100
jne 0x4f22b7
cmp dword [ebp - 0x18], 0x1b
je 0x4f22f9
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 0x4f22ef
ja 0x4f22e8
cmp eax, dword [0x6185fc]
jbe 0x4f22ef
mov dword [esi + 0x34], 1
cmp dword [esi + 0x34], 0
je 0x4f2240
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x34]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4f26d1
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [ecx + 0x14]
cmp dword [esi - 0xc], 0
je 0x4f2707
push ebx
mov ebx, dword [ecx + 8]
push edi
mov edi, dword [ecx + 0xc]
call fcn.00408eb0
test eax, eax
je 0x4f26ef
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 0x4f50bf
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x60f4e8], 0
push esi
push edi
je 0x4f5147
cmp dword [0x60f6ec], 0xfffffffe
jne 0x4f5133
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x4f5147
mov edi, 0x61861c
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x618634], 0
jne 0x4f514b
push 0
push 0
push 0x4f5151
call fcn.0058280d
add esp, 0xc
mov dword [0x618634], eax
test eax, eax
je 0x4f5123
cmp eax, 0xffffffff
je 0x4f5123
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [0x60f6ec], esi
jmp 0x4f512a
and dword [0x618634], 0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4f5147
mov eax, dword [ebp + 8]
mov dword [0x60f6ec], eax
cmp eax, 0xffffffff
jne 0x4f5147
and dword [0x618634], 0
pop edi
pop esi
pop ebp
ret
call fcn.00419500
int3
Function at 0x54fd1f
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.00416c59
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 0x54fd5b
call fcn.0054ff3c
mov dword [esi + 0xc], 1
jmp 0x54fd60
call fcn.0054ff3c
cmp dword [esi], 0
je 0x54fdab
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 0x54fd86
push edi
call fcn.00419d58
lea ecx, [edi + 1]
push ecx
jmp 0x54fd95
push 0xff
call fcn.00406ba0
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00412791
pop edi
jmp 0x54fdcf
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 0x54fdcf
push dword [esi]
push dword [ebp - 4]
call fcn.004b34e7
pop esi
leave
ret 0xc

Function at 0x54fe93
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.0054ff3c
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x54fedb
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00419d58
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00412791
jmp 0x54fee6
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004b34e7
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x55490e
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 0x55495b
push esi
mov ebx, 0x811c9dc5
xor edi, edi
call fcn.00581e50
xor edx, edx
mov dword [ebp - 4], 0xa
pop ecx
mov ecx, eax
div dword [ebp - 4]
inc eax
test ecx, ecx
je 0x554952
mov edx, ecx
movsx ecx, byte [esi + edi]
add edi, eax
imul ebx, ebx, 0x1000193
xor ebx, ecx
cmp edi, edx
jb 0x554940
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
call fcn.00419500
int3
Function at 0x557aff
Capabilities:
Get file system object information

Disassembly:
push 0x398
mov eax, 0x5b1166
call fcn.005748b3
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 0x557c90
mov eax, dword [ebp + 0x10]
sub eax, esi
je 0x557c62
sub eax, 1
je 0x557b7e
sub eax, 1
je 0x557b56
sub eax, 1
je 0x557b7e
push 0x5e9ed8
mov ecx, edi
call fcn.0040e1a0
mov eax, edi
call fcn.00574862
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 0x557b40
lea eax, [ebp - 0x28c]
push eax
jmp 0x557b45
lea eax, [ebp - 0x114]
push eax
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x557b40
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.004ddbb9
test eax, eax
je 0x557b40
lea ecx, [ebp - 0x3a0]
call fcn.004064d0
cmp dword [ebp + 0x10], 1
mov dword [ebp - 4], esi
jne 0x557c18
test byte [ebp - 0x21c], 0x18
jne 0x557c3a
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 [0x5b4a78]
mov ecx, ebx
call esi
jmp 0x557c3a
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 [0x5b4a78]
mov ecx, ebx
call esi
mov eax, dword [ebp - 0x3a0]
add eax, 0xfffffff0
push eax
call fcn.0040f814
pop ecx
mov ecx, dword [ebp - 0x3a0]
add eax, 0x10
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.00406a20
jmp 0x557b4c
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 0x557b40
lea eax, [ebp - 0x390]
jmp 0x557b7b
call fcn.00419500
int3

Function at 0x557e08
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.005708a4
call fcn.0044bd11
cmp dword [eax + 0x14], 0
jne 0x557e23
mov ecx, esi
pop esi
jmp fcn.0055710c
pop esi
ret
Function at 0x557fde
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x558124
mov ecx, 0x60fab8
call fcn.004b3b1f
mov esi, eax
test esi, esi
je 0x558119
xor eax, eax
cmp word [esi + 8], ax
jne 0x5580e3
push str.comctl32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x55809f
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [ebp + 0x10]
mov ecx, 0x3ff
and ax, cx
cmp ax, 0x11
jne 0x558065
push str.MS_UI_Gothic
call fcn.00558162
pop ecx
test eax, eax
je 0x558065
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 0x558080
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 0x55809f
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 0x5580a5
push ebx
push edi
push eax
call fcn.004d51ee
add esp, 0xc
jmp 0x5580a5
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.00419861
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 0x55811e
mov eax, dword [edi]
push eax
mov eax, dword [eax - 0xc]
inc eax
push eax
push ecx
call fcn.004b506e
mov ax, word [ebx]
add esp, 0xc
mov word [esi + 8], ax
xor eax, eax
jmp 0x5580e6
mov ebx, dword [ebp + 0xc]
mov edi, dword [esi + 4]
test edi, edi
je 0x5580f4
push edi
call fcn.00581e50
pop ecx
mov ecx, dword [ebp + 8]
push eax
push edi
call fcn.004067b0
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.00419500
call fcn.0041951a
int3
Function at 0x564ca9
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 8
mov eax, 0x5a5c1f
call fcn.00574880
mov edi, ecx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x564d8f
mov esi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x564d8f
cmp esi, 0x43
je 0x564ceb
cmp esi, 0x2d
jne 0x564d8f
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x564d8f
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.004064d0
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.00406df0
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 0x564d7d
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x564d7d
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.00406a20
push ebx
mov ecx, edi
call fcn.00417c36
call fcn.0057484e
ret 4

Function at 0x56fad7
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x60fe80]
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 0x56fb41
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 0x56fb26
lea eax, [ebp - 0x158]
push eax
jmp 0x56fb2b
push 0x5e0d20
call fcn.0040e1a0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.005742be
leave
ret 8
call fcn.00419500
int3

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

Disassembly:
push esi
mov esi, ecx
call fcn.00403620
call fcn.0044bd11
cmp dword [eax + 0x14], 0
jne 0x570041
mov ecx, esi
pop esi
jmp fcn.0056f881
pop esi
ret

Function at 0x57543f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x57547e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x57547e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x57547e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x57547e
cmp dword [ecx + 0x74], 0xe
jbe 0x57547e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x577455
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 0x577476
jl 0x57746d
test edi, edi
jne 0x577476
xor eax, eax
xor edx, edx
jmp 0x577537
cmp dword [ebx + 0x38], 0
je 0x57748b
push eax
push edi
push dword [ebp + 8]
call fcn.0057753d
jmp 0x577537
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x5774d2
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x5774d2
cmp eax, edi
jb 0x5774ac
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00578420
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 0x5774d8
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x57752c
mov ecx, ebx
call fcn.00576c6d
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x577517
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.005817aa
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 0x57752c
jmp 0x5774ea
test edx, edx
je 0x57752c
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.005817aa
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 0x58120f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00574a30
mov eax, dword [0x60fe80]
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.0058af87
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x581251
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x5813ad
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00575020
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 + 0x6199a8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.005927f3
mov ecx, dword [esi*4 + 0x6199a8]
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 0x5813a6
cmp eax, dword [ecx + edi + 0x24]
jne 0x5813a6
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 0x5813a6
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005927f3
add esp, 0x14
test edx, edx
jl 0x5813a6
jg 0x58131c
test eax, eax
jb 0x5813a6
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x5813a6
jl 0x581336
cmp dword [ebp - 0x1008], eax
ja 0x5813a6
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x581354
test ebx, ebx
je 0x58138d
cmp ecx, edi
jae 0x58138d
mov al, byte [ecx]
cmp al, 0xd
jne 0x58136e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x58137a
cmp byte [ecx + 1], 0xa
jne 0x58137a
inc ecx
jmp 0x58137a
movzx eax, al
movsx eax, byte [eax + 0x610158]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x581354
cmp edx, ebx
jne 0x581354
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x5813ab
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.005742be
leave
ret

Function at 0x590f39
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5e5fe0
push 0x5e5fd8
push str.FlsAlloc
push 0x1f
call fcn.00590d64
mov esi, eax
add esp, 0x10
test esi, esi
je 0x590f6d
push dword [ebp + 8]
mov ecx, esi
call dword [0x5b4a78]
call esi
jmp 0x590f73
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x590fb7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5e5ff0
push 0x5e5fe8
push str.FlsGetValue
push 0x21
call fcn.00590d64
mov esi, eax
add esp, 0x10
test esi, esi
je 0x590fee
push dword [ebp + 8]
mov ecx, esi
call dword [0x5b4a78]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]