joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f3fb8
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55b938
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5b93d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
push dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
call fcn.004f3e53
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 8
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
add eax, 8
push eax
mov ecx, dword [ebp - 0x18]
call fcn.004f3e53
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
add eax, 0x10
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.004f3e53
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
add eax, 0x18
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
add eax, 0x18
push eax
mov ecx, dword [ebp - 0x20]
call fcn.004f3db6
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x10]
add eax, 0x20
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
add eax, 0x20
push eax
mov ecx, dword [ebp - 0x24]
call fcn.004f3e53
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x10]
add eax, 0x28
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
add eax, 0x28
push eax
mov ecx, dword [ebp - 0x28]
call fcn.004f3e53
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x10]
add eax, 0x30
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
add eax, 0x30
push eax
mov ecx, dword [ebp - 0x2c]
call fcn.004f3e53
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x10]
add eax, 0x38
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
add eax, 0x38
push eax
mov ecx, dword [ebp - 0x30]
call fcn.004f3db6
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov cl, byte [ecx + 0x40]
mov byte [eax + 0x40], cl
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
leave
ret 4

Function at 0x4f40d7
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55b9a4
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x5b93d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.004f3ea2
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.004f3ea2
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call fcn.004f3ea2
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.004f3e05
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
call fcn.004f3ea2
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0x28
call fcn.004f3ea2
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.004f3ea2
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x10]
add ecx, 0x38
call fcn.004f3e05
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
leave
ret
Function at 0x5035af
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0xa0]
test eax, eax
jne 0x5035e1
push str.Cant_write_to_an_unopened_stdin_pipe._Please_set_open_stdintrue_when_constructing_the_process.
lea ecx, [ebp - 0x20]
call fcn.00504e77
push 0x5b4418
lea eax, [ebp - 0x20]
push eax
call fcn.00520b1d
mov eax, dword [ebp - 8]
add eax, 0xa4
push eax
lea ecx, [ebp - 0xc]
call fcn.0040e892
mov ecx, dword [ebp - 8]
add ecx, 0xe8
call fcn.004f1db1
movzx eax, al
test eax, eax
je 0x50365c
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
add ecx, 0xe8
call fcn.00407d38
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x503638
cmp dword [ebp - 0x14], 0
jne 0x50364b
mov byte [ebp - 1], 0
lea ecx, [ebp - 0xc]
call fcn.00410aae
mov al, byte [ebp - 1]
jmp 0x50366b
mov byte [ebp - 2], 1
lea ecx, [ebp - 0xc]
call fcn.00410aae
mov al, byte [ebp - 2]
jmp 0x50366b
mov byte [ebp - 3], 0
lea ecx, [ebp - 0xc]
call fcn.00410aae
mov al, byte [ebp - 3]
leave
ret 8

Function at 0x503715
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55d026
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x5b93d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x240], ecx
mov eax, dword [ebp - 0x240]
add eax, 0x10
push eax
lea ecx, [ebp - 0x24c]
call fcn.0040e892
mov eax, dword [ebp - 0x240]
cmp dword [eax], 0
jbe 0x50384a
mov eax, dword [ebp - 0x240]
movzx eax, byte [eax + 0xc]
test eax, eax
jne 0x50384a
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0
je 0x503839
push 0x22c
push 0
lea eax, [ebp - 0x23c]
push eax
call fcn.00520810
add esp, 0xc
mov dword [ebp - 0x23c], 0x22c
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x244]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x50382d
mov eax, dword [ebp - 0x240]
mov ecx, dword [ebp - 0x224]
cmp ecx, dword [eax]
jne 0x503817
push dword [ebp - 0x234]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x248], eax
cmp dword [ebp - 0x248], 0
je 0x503817
push 2
push dword [ebp - 0x248]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x248]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x244]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x5037ce
push dword [ebp - 0x244]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 2
mov eax, dword [ebp - 0x240]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [ebp - 0x24c]
call fcn.00410aae
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051dfa2
leave
ret 4
Function at 0x5045fb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55d0e8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x5b93d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
push dword [eax + 0xd4]
call fcn.0051e3d4
pop ecx
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
call fcn.00405ab3
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov eax, dword [eax + 0xd4]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x14]
call fcn.00407d38
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
add ecx, 0xe0
call fcn.00407d38
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
push 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x504698
cmp dword [ebp - 0x18], 0
jne 0x50469a
jmp 0x5046c6
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
add eax, 0x40
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x14]
call fcn.00407d38
mov dword [ebp - 0x34], eax
push dword [ebp - 0x30]
push dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
call fcn.004e77d7
jmp 0x504646
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004f117f
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
leave
ret

Function at 0x5046f5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55d112
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x5b93d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
push dword [eax + 0xd4]
call fcn.0051e3d4
pop ecx
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
call fcn.00405ab3
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov eax, dword [eax + 0xd4]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x14]
call fcn.00407d38
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
add ecx, 0xe4
call fcn.00407d38
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
push 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x504792
cmp dword [ebp - 0x18], 0
jne 0x504794
jmp 0x5047c0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
add eax, 0x68
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x14]
call fcn.00407d38
mov dword [ebp - 0x34], eax
push dword [ebp - 0x30]
push dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
call fcn.004e77d7
jmp 0x504740
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004f117f
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
leave
ret
Function at 0x504c58
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55d13c
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x5b93d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
push dword [ebp + 8]
call fcn.00406b1d
pop ecx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00504def
pop ecx
pop ecx
and dword [ebp - 4], 0
mov dword [ebp - 0x18], 0x504b64
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
push 0
lea ecx, [ebp - 0x14]
call fcn.0050484c
push eax
push dword [ebp - 0x18]
push 0
push 0
call fcn.0052d969
add esp, 0x18
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
je 0x504cd8
lea ecx, [ebp - 0x14]
call fcn.0050485a
jmp 0x504ce6
mov eax, dword [ebp - 0x10]
and dword [eax + 4], 0
push 6
call fcn.0050a019
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0050480d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
leave
ret 4

Function at 0x504d01
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55d166
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x5b93d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
push dword [ebp + 8]
call fcn.00406b1d
pop ecx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00504def
pop ecx
pop ecx
and dword [ebp - 4], 0
mov dword [ebp - 0x18], 0x504bde
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
push 0
lea ecx, [ebp - 0x14]
call fcn.005048df
push eax
push dword [ebp - 0x18]
push 0
push 0
call fcn.0052d969
add esp, 0x18
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
je 0x504d81
lea ecx, [ebp - 0x14]
call fcn.005048ed
jmp 0x504d8f
mov eax, dword [ebp - 0x10]
and dword [eax + 4], 0
push 6
call fcn.0050a019
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.005048a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
leave
ret 4

Function at 0x5050d3
Capabilities:
Open clipboard

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov byte [eax], 0
and dword [ebp - 8], 0
jmp 0x5050ef
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 5
jge 0x505114
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x50510a
mov eax, dword [ebp - 4]
mov byte [eax], 1
jmp 0x505114
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x5050e8
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
test eax, eax
jne 0x505138
call fcn.004eda8b
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x505138
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
push 0
call dword [ebp - 0x10]
pop ecx
mov eax, dword [ebp - 4]
leave
ret 4
Function at 0x505204
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55d198
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5b93d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], ecx
mov byte [ebp - 0xd], 0
call fcn.004ed951
cmp dword [ebp + 8], eax
jne 0x505305
cmp dword [ebp + 0x10], 0
jbe 0x505300
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jle 0x505300
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
shl eax, 1
push eax
lea ecx, [ebp - 0x1c]
call fcn.00506c33
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00506c7c
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x24], eax
push dword [ebp - 0x18]
push dword [ebp - 0x24]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ecx, [ebp - 0x1c]
call fcn.00506c7c
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [ebp - 0x1c]
call fcn.00506c7c
push eax
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x5052da
mov byte [ebp - 0xe], 1
jmp 0x5052de
mov byte [ebp - 0xe], 0
mov al, byte [ebp - 0xe]
mov byte [ebp - 0xd], al
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x5052f4
lea ecx, [ebp - 0x1c]
call fcn.00506c6d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00506c51
jmp 0x5053b2
mov eax, dword [ebp + 0x10]
add eax, 8
push eax
lea ecx, [ebp - 0x14]
call fcn.00506c33
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00506c7c
test eax, eax
je 0x5053a6
lea ecx, [ebp - 0x14]
call fcn.00506c7c
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x5053a6
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov edx, dword [ebp - 0x20]
mov dword [edx], eax
mov dword [edx + 4], ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x20]
add eax, 8
push eax
call fcn.00520290
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.00506c7c
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [ebp - 0x14]
call fcn.00506c7c
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x50538c
mov byte [ebp - 0xf], 1
jmp 0x505390
mov byte [ebp - 0xf], 0
mov al, byte [ebp - 0xf]
mov byte [ebp - 0xd], al
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x5053a6
lea ecx, [ebp - 0x14]
call fcn.00506c6d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00506c51
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
leave
ret 0xc
Function at 0x50560b
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
and dword [ebp - 4], 0
call fcn.004ed951
cmp dword [ebp + 8], eax
jne 0x5056c7
push 0xd
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x50567d
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x50567b
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x50567b
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [ebp - 0x18]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 4], eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x5056c2
push 1
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x5056c2
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x5056c2
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x5056c2
push dword [ebp - 0x1c]
call fcn.00522b30
pop ecx
inc eax
mov dword [ebp - 4], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x50574f
call fcn.004ed94a
cmp dword [ebp + 8], eax
je 0x50574f
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x50574f
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x50574f
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov dword [ebp - 0x14], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x50574f
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x14]
jbe 0x505735
push 0x18b
push str.lib_clip_clip_win.cpp
push str.len___total_size
call fcn.00523662
add esp, 0xc
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x14]
jbe 0x505746
mov eax, dword [ebp - 0x14]
sub eax, 8
mov dword [ebp - 4], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 4]
leave
ret 4
Function at 0x505f89
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 0x18], ecx
push 0x583d48
call dword [sym.imp.USER32.dll_RegisterClipboardFormatA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x506008
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x506008
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x506008
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov dword [ebp - 0x10], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x14], eax
push dword [ebp + 8]
push 0
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.0050670e
add esp, 0x10
mov byte [ebp - 1], al
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
movzx eax, byte [ebp - 1]
test eax, eax
je 0x506008
mov al, 1
jmp 0x506030
lea ecx, [ebp - 0x40]
call fcn.00506c8a
lea ecx, [ebp - 0x40]
call fcn.00506f77
movzx eax, al
test eax, eax
jne 0x506023
xor al, al
jmp 0x506030
push dword [ebp + 8]
lea ecx, [ebp - 0x40]
call fcn.00506fa2
mov al, 1
leave
ret 4
Function at 0x5080e8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55d412
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x5b93d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp + 8]
lea ecx, [ebp - 0x40]
call fcn.004fbbed
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x50], eax
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x54]
call fcn.004fc16d
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
call fcn.0041c138
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x28]
call fcn.00410a3c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004f7c74
cmp dword [ebp - 0x44], 0xffffffff
je 0x50817a
mov eax, dword [ebp - 0x44]
and eax, 0x10
je 0x50817a
mov dword [ebp - 0x48], 1
jmp 0x50817e
and dword [ebp - 0x48], 0
mov al, byte [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051dfa2
leave
ret

Function at 0x508198
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5b93d4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
mov ecx, dword [ebp + 8]
call fcn.0041198c
movsx eax, byte [eax]
cmp eax, 0x5c
je 0x5081cc
push 0
mov ecx, dword [ebp + 8]
call fcn.0041198c
movsx eax, byte [eax]
cmp eax, 0x2f
jne 0x5081f4
push 1
mov ecx, dword [ebp + 8]
call fcn.0041198c
movsx eax, byte [eax]
cmp eax, 0x5c
je 0x5081f0
push 1
mov ecx, dword [ebp + 8]
call fcn.0041198c
movsx eax, byte [eax]
cmp eax, 0x2f
jne 0x5081f4
mov al, 1
jmp 0x50824a
mov ecx, dword [ebp + 8]
call fcn.00417983
cmp eax, 3
jb 0x508248
push 3
push 0
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
call fcn.0044b368
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
call fcn.0041c127
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 4
jne 0x508231
mov dword [ebp - 0x24], 1
jmp 0x508235
and dword [ebp - 0x24], 0
mov al, byte [ebp - 0x24]
mov byte [ebp - 0x1d], al
lea ecx, [ebp - 0x1c]
call fcn.00410a23
mov al, byte [ebp - 0x1d]
jmp 0x50824a
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051dfa2
leave
ret
Function at 0x508323
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55d49c
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x5b93d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
and dword [ebp - 0x264], 0
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x5083e3
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x260]
call fcn.004fbe0a
mov dword [ebp - 0x26c], eax
mov eax, dword [ebp - 0x26c]
mov dword [ebp - 0x270], eax
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x264]
or eax, 1
mov dword [ebp - 0x264], eax
mov eax, dword [ebp - 0x270]
mov dword [ebp - 0x274], eax
lea eax, [ebp - 0x248]
push eax
mov ecx, dword [ebp - 0x274]
call fcn.004fc262
mov dword [ebp - 0x278], eax
mov eax, dword [ebp - 0x264]
or eax, 2
mov dword [ebp - 0x264], eax
mov eax, dword [ebp - 0x278]
mov dword [ebp - 0x268], eax
jmp 0x50840f
lea ecx, [ebp - 0x230]
call fcn.0040e585
mov dword [ebp - 0x27c], eax
mov eax, dword [ebp - 0x264]
or eax, 4
mov dword [ebp - 0x264], eax
mov eax, dword [ebp - 0x27c]
mov dword [ebp - 0x268], eax
mov eax, dword [ebp - 0x268]
mov dword [ebp - 0x280], eax
push dword [ebp - 0x280]
mov ecx, dword [ebp + 8]
call fcn.0040df66
mov eax, dword [ebp - 0x264]
or eax, 8
mov dword [ebp - 0x264], eax
mov eax, dword [ebp - 0x264]
and eax, 4
je 0x508455
and dword [ebp - 0x264], 0xfffffffb
lea ecx, [ebp - 0x230]
call fcn.00410a23
mov eax, dword [ebp - 0x264]
and eax, 2
je 0x508472
and dword [ebp - 0x264], 0xfffffffd
lea ecx, [ebp - 0x248]
call fcn.00410a23
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x264]
and eax, 1
je 0x508493
and dword [ebp - 0x264], 0xfffffffe
lea ecx, [ebp - 0x260]
call fcn.004f7c74
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051dfa2
leave
ret

Function at 0x50879b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
add eax, 4
push eax
push 0
push dword [ebp + 8]
push 0x508845
push 0
push 0
call fcn.0052d969
add esp, 0x18
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
leave
ret 4

Function at 0x508827
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x508843
push 0
mov eax, dword [ebp - 4]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
leave
ret

Function at 0x535832
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005357b4

Function at 0x537819
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0053768f

Function at 0x540317
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0053fe6a