joyce8/EMBER2024-capa huggingface dataset:
Function at 0x448e9b
Capabilities:
Get graphical window text

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push edi
xor edi, edi
push edi
push edi
push 0x147
push dword [ebp]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
or eax, 0xffffffff
cmp ebx, eax
je 0x448f2a
push 0xfffffffffffffff0
push dword [ebp]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test al, 1
jne 0x448f2a
push esi
push dword [ebp]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
lea ecx, [esi*2 + 2]
push ecx
push edi
push dword [0x871bf4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
lea ecx, [esi + 1]
push ecx
xor eax, eax
push edi
mov word [edi], ax
push dword [ebp]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push edi
or esi, 0xffffffff
push esi
push 0x158
push dword [ebp]
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 0
push dword [0x871bf4]
cmp eax, esi
cmove ebx, esi
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop edi
mov eax, ebx
pop ebp
cdq
pop ebx
ret 4

Function at 0x44a1df
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push dword [0x876528]
call fcn.0045c655
xor ebx, ebx
mov esi, eax
cmp dword [0x8741f4], ebx
jne 0x44a2b1
xor ebp, ebp
inc ebp
mov dword [0x8741f4], ebp
call fcn.0044f6b8
mov edi, 0xa8
push edi
push ebx
push 0x874148
call fcn.0042d490
add esp, 0xc
mov dword [0x874148], 0x13
lea eax, [esp + 0x10]
mov dword [0x87414c], edi
mov dword [0x874158], 0x44a12a
mov dword [0x87415c], 0x44a46f
push eax
mov dword [0x8741b0], 0x44a102
mov dword [0x8741b4], 0x44a3b4
mov dword [0x874154], 0x44a0dd
mov dword [0x8741d8], 0x44a147
mov dword [0x8741f8], ebp
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x44a2b1
cmp dword [esp + 0x20], ebp
je 0x44a2ab
cmp dword [esp + 0x20], 2
jne 0x44a2b1
cmp dword [esp + 0x14], 5
jb 0x44a2ab
jne 0x44a2b1
cmp dword [esp + 0x18], ebx
jne 0x44a2b1
mov dword [0x8741f8], ebx
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
call fcn.00453b1b
mov eax, dword [esp + 0x140]
push ebx
push dword [0x871bf8]
or eax, 0x50010000
push 0xffffffffffffffff
push dword [esi]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push eax
push ebx
push str.BUTTON
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, eax
test edi, edi
je 0x44a385
mov ebp, dword [esp + 0x128]
push ebp
push dword [0x876518]
call fcn.0045c833
mov esi, dword [esp + 0x13c]
mov ebx, eax
mov dword [ebx + 0x10], esi
test esi, esi
je 0x44a356
push esi
call fcn.0045818f
test eax, eax
je 0x44a356
push 0
push 0
push esi
call fcn.00457df0
jmp 0x44a358
xor eax, eax
push 0x449e34
push 0xfffffffffffffffc
mov dword [ebx + 0x18], eax
and dword [ebx + 0x14], 0
and dword [ebx + 0x1c], 0
push edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x874148
push edi
push ebx
push ebp
mov dword [0x8741f0], eax
call fcn.0044f2ab
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret 0x1c
Function at 0x450572
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4bc
lea eax, [ebp - 0x208]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov eax, dword [ebp + 8]
or eax, 0x4000
push eax
push 0x2b4
lea eax, [ebp - 0x4bc]
push eax
push 0
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
leave
ret 4

Function at 0x4505b5
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x450631
cmp dword [0x875d90], 1
je 0x450631
push ebx
mov ebx, 0x875d98
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [0x875db4]
and dword [0x875dbc], 0
mov dword [0x875db8], esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [0x875db0]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [0x875db4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x450629
push 0
push dword [0x875d94]
mov dword [0x875d90], 1
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop esi
ret 4
Function at 0x4508fd
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [0x8758b8], 0
jne 0x4509ce
push ebx
push ebp
push esi
xor ebp, ebp
inc ebp
push 0x876548
mov dword [0x8758b8], ebp
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov eax, 0x640
push eax
push 8
push dword [0x871bf4]
mov dword [0x875d7c], eax
mov dword [0x8758bc], 0x1f4
call esi
mov dword [0x875d8c], eax
mov eax, dword [0x8758bc]
add eax, eax
push eax
push 8
push dword [0x871bf4]
call esi
xor ebx, ebx
mov dword [0x875d88], eax
push 0x875d98
mov dword [0x875d80], ebx
mov dword [0x875d84], ebp
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push ebp
push ebx
call esi
push ebx
push ebx
push ebp
push ebx
mov dword [0x875db0], eax
call esi
mov dword [0x875db4], eax
cmp dword [0x875db0], ebx
je 0x4509c5
test eax, eax
je 0x4509c5
lea eax, [esp + 0xc]
mov dword [0x875d90], ebx
push eax
push ebx
push ebx
push 0x45035b
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x875d94], eax
jmp 0x4509cb
mov dword [0x875d90], ebp
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x4509d0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x450a75
cmp dword [esp + 0xc], 0
je 0x450a75
cmp dword [0x875d90], 1
je 0x450a75
push edi
push 0x1f
push 0
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov edi, eax
cmp edi, 0xffffffff
je 0x450a74
push ebp
mov ebp, 0x875d98
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [0x875db4]
mov dword [0x875db8], esi
mov dword [0x875dbc], edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [0x875db0]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [0x875db4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x450a6c
push 0
push dword [0x875d94]
mov dword [0x875d90], 1
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
pop edi
pop esi
ret 8
Function at 0x450f95
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x4510dd
xor ecx, ecx
cmp word [eax], cx
je 0x4510dd
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call fcn.0058a856
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call fcn.0042267c
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x450fee
cmp eax, 3
jne 0x451028
cmp word [esp + 0xa], 0x3a
jne 0x451028
cmp eax, 2
jne 0x45100c
lea eax, [esp + 8]
push 0x5b6398
push eax
call fcn.0058a825
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4510dd
push 0xfffffffffffffffe
pop edi
jmp 0x4510dd
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x45103d
cmp ax, bx
jne 0x451047
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x451030
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x451086
test byte [esp + 0x21c], 0x10
je 0x45106d
push 0xfffffffffffffffe
pop edi
jmp 0x45107d
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4510db
cmp word [esp + 0x10], bp
jne 0x451094
cmp word [esp + 0x12], bp
je 0x4510b3
cmp word [esp + 0x10], bx
jne 0x4510a2
cmp word [esp + 0x12], bx
je 0x4510b3
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x4510db
cmp word [esp + 0x12], ax
jne 0x4510db
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x4510c8
test al, 0x10
je 0x4510db
jmp 0x4510d8
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4510db
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4

Function at 0x4510ec
Capabilities:
Set file attributes

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
je 0x4510fa
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 8
Function at 0x45116f
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebx
mov ebx, eax
mov eax, dword [0x875dc8]
push esi
push edi
test eax, eax
jne 0x451195
push 0x45129e
push 0x10
push 0x258
call fcn.0045c8c7
mov dword [0x875dc8], eax
mov edi, dword [esp + 0x10]
push edi
push eax
call fcn.0045c833
mov esi, eax
test esi, esi
je 0x451296
cmp dword [esp + 0x14], ebx
mov eax, 0x5b9268
push ebp
cmovne eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
test ebp, ebp
je 0x4511cd
xor ecx, ecx
cmp word [ebp], cx
jne 0x4511d6
mov ebp, 0x5bbf2c
mov dword [esp + 0x1c], ebp
push eax
call fcn.0042267c
push ebp
mov dword [esp + 0x20], eax
call fcn.0042267c
add eax, dword [esp + 0x20]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x871bf4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x451283
push dword [esp + 0x14]
push ebp
call fcn.0058a803
pop ecx
pop ecx
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x451236
mov eax, dword [esp + 0x14]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x451236
push 0x5b6398
push ebp
call fcn.0058a825
pop ecx
pop ecx
push dword [esp + 0x1c]
push ebp
call fcn.0058a825
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x45125b
xor ecx, ecx
mov dword [esi + 4], ecx
jmp 0x45126f
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 2
jne 0x451271
mov dword [esi + 4], 1
mov ebx, esi
push ebp
push ecx
push dword [0x871bf4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
jne 0x451295
cmp edi, 0xffffffff
cmove edi, esi
push edi
push dword [0x875dc8]
call fcn.0045c7a6
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
ret 0xc

Function at 0x45146d
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x451496
test byte [esp + 8], 2
je 0x45148a
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x451498
xor eax, eax
ret 8
Function at 0x451b6a
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x451be2
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call fcn.0058a856
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.0042267c
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x451bc3
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x451bc0
cmp ecx, 0x5c
je 0x451bc0
cmp ecx, 0x2f
jne 0x451bcd
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x451bad
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x451be4
xor eax, eax
leave
ret 4

Function at 0x451c01
Capabilities:
Copy file

Disassembly:
cmp dword [esp + 4], 0
je 0x451c21
cmp dword [esp + 8], 0
je 0x451c21
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x451c23
xor eax, eax
ret 8

Function at 0x451e66
Capabilities:
Check os version

Disassembly:
sub esp, 0x34c
push ebp
push esi
push edi
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x114
push eax
mov esi, 0xc8
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x451fcf
mov eax, dword [esp + 0x1c]
sub eax, 1
je 0x451fb2
sub eax, 1
jne 0x451fcf
lea eax, [esp + 0x120]
xor edi, edi
push eax
call fcn.00451e1f
pop ecx
test eax, eax
je 0x451edd
cmp byte [esp + 0x23a], 1
mov ecx, dword [esp + 0x124]
mov eax, dword [esp + 0x128]
mov ebp, dword [esp + 0x12c]
jne 0x451f13
inc edi
jmp 0x451f13
lea eax, [esp + 0x23c]
mov dword [esp + 0x23c], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x451fcf
mov ecx, dword [esp + 0x10]
xor edx, edx
mov eax, dword [esp + 0x14]
inc edx
cmp byte [esp + 0x356], dl
cmove edi, edx
sub ecx, 3
je 0x451fae
sub ecx, 1
je 0x451faa
sub ecx, 1
je 0x451f8c
sub ecx, 1
je 0x451f50
sub ecx, 4
jne 0x451fcf
test eax, eax
jne 0x451fcf
cmp ebp, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x451fcf
sub eax, 0
je 0x451f7f
sub eax, 1
je 0x451f72
sub eax, 1
je 0x451f6b
sub eax, 1
jne 0x451fcf
push 0x69
pop esi
push 0x64
jmp 0x451f84
push 0x5a
pop esi
push 0x5f
jmp 0x451f77
push 0x50
pop esi
push 0x55
test edi, edi
pop eax
cmove esi, eax
jmp 0x451fcf
push 0x4b
pop esi
push 0x46
test edi, edi
pop eax
cmovne esi, eax
jmp 0x451fcf
sub eax, 0
je 0x451fa6
sub eax, 1
je 0x451fa2
sub eax, 1
jne 0x451fcf
push 0x41
pop esi
push 0x3c
jmp 0x451f84
push 0x3c
jmp 0x451fce
push 0x32
jmp 0x451fce
push 0x14
jmp 0x451fce
push 5
jmp 0x451fce
mov eax, dword [esp + 0x14]
test eax, eax
je 0x451fcc
cmp eax, 0xa
je 0x451fc8
cmp eax, 0x5a
jne 0x451fcf
push 0x28
jmp 0x451fce
push 0x1e
jmp 0x451fce
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x34c
ret
Function at 0x452267
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x87651c]
call fcn.0045c7f5
mov esi, eax
test esi, esi
je 0x452343
cmp dword [ebp + 0xc], 0
je 0x4522b3
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x4522a4
cmp dword [esi + 0x1c], 0
jne 0x4522a4
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x452343
test byte [ebp + 0x10], 3
push ebx
push 4
pop ebx
je 0x4522d1
push ebx
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.00452b57
cmp dword [esi + 0x3c], 0xffffffff
je 0x4522f5
xor eax, eax
cmp dword [esi + 0x3c], 0x1000000
sete al
xor ecx, ecx
cmp dword [esi + 0x3c], 0x20000000
sete cl
or dword [esi + 0x3c], 0xffffffff
jmp 0x45230d
push dword [esi]
call dword [sym.imp.USER32.dll_IsZoomed]
push dword [esi]
mov dword [ebp + 8], eax
call dword [sym.imp.USER32.dll_IsIconic]
mov ecx, eax
mov eax, dword [ebp + 8]
test dword [ebp + 0x10], 0x2000000
je 0x452328
test eax, eax
je 0x45231e
push 8
jmp 0x45232e
push 7
test ecx, ecx
pop eax
cmovne ebx, eax
jmp 0x452339
test eax, eax
je 0x452331
push 3
pop ebx
jmp 0x452339
xor ebx, ebx
test ecx, ecx
setne bl
inc ebx
push ebx
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x452cd7
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
xor edi, edi
call dword [sym.imp.USER32.dll_GetFocus]
mov ebp, dword [esp + 0x3c]
mov ebx, eax
and dword [esp + 0x10], edi
push str.PB_WindowID
push ebp
call dword [sym.imp.USER32.dll_GetPropW]
mov esi, eax
push 9
pop eax
test esi, esi
je 0x452d6d
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x452d6a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x452d6a
lea eax, [esi - 1]
push eax
push dword [0x87651c]
call fcn.0045c7f5
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x452d6c
mov ecx, dword [edi + 4]
add ecx, 4
pop esi
cmp word [ecx - 2], si
jne 0x452d5a
mov edx, 0xfa01
cmp word [ecx], dx
je 0x452d65
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x452d4a
jmp 0x452d6a
and dword [esp + 0x10], 0
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x452e13
push eax
call esi
test al, al
jns 0x452e13
push 0x11
call esi
test al, al
js 0x452e13
push 0x10
call esi
test al, al
js 0x452e13
push 0x12
call esi
test al, al
js 0x452e13
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x452e13
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call fcn.00423d80
add esp, 0xc
test eax, eax
je 0x452de7
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call fcn.00423d80
add esp, 0xc
test eax, eax
jne 0x452dfe
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x452e54
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call fcn.00595c74
pop ecx
pop ecx
test eax, eax
je 0x452e54
test ebp, ebp
je 0x452e37
push 0x11
call esi
test al, al
js 0x452e2f
push 0x10
call esi
test al, al
js 0x452e2f
push 0x12
call esi
test al, al
jns 0x452e37
push 1
push ebp
call fcn.00452e60
test ebx, ebx
je 0x452e4b
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x452e54
test edi, edi
je 0x452e54
mov eax, dword [edi + 8]
jmp 0x452e56
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4

Function at 0x456202
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor esi, esi
push esi
mov ebx, esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x456243
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
je 0x45623b
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x45623b
push esi
call fcn.0042267c
pop ecx
mov ebx, eax
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x456246
mov edi, dword [ebp + 8]
push dword [ebp + 8]
push ebx
call fcn.0045d350
test esi, esi
je 0x45626e
lea ecx, [ebx*2 + 2]
push ecx
push esi
push eax
call fcn.00430c10
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x456273
xor ecx, ecx
mov word [eax], cx
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4566b9
Capabilities:
Set thread local storage value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
push edi
mov edi, ebx
test esi, esi
je 0x456716
push esi
call dword [esi + 0x58]
mov ecx, dword [esi + 0x80]
mov edi, eax
mov dword [esi + 0x94], ecx
mov ecx, dword [esi + 0x84]
mov dword [esi + 0x98], ecx
test edi, edi
jne 0x456716
mov eax, dword [esi + 0x70]
test eax, eax
je 0x4566f5
push ebx
push esi
call eax
push esi
push ebx
push dword [0x871bf4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
push dword [0x8765d0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x8765d4], ebx
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x45671e
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [0x8765d0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov eax, dword [ebp + 0x18]
cmp eax, dword [esi + 0xac]
je 0x456746
push eax
push esi
mov dword [esi + 0xac], eax
call dword [esi + 0x40]
push dword [ebp + 0x14]
mov eax, dword [esi + 0x90]
push dword [ebp + 0x10]
add eax, dword [ebp + 0xc]
push eax
mov eax, dword [esi + 0x8c]
add eax, dword [ebp + 8]
push eax
push esi
call dword [esi + 4]
pop esi
pop ebp
ret 0x14

Function at 0x456bf9
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
push esi
push edi
xor edi, edi
push edi
push pe_nt_image_headers32
push 3
push edi
push 1
push closesocket
push dword [esp + 0x2c]
mov ebp, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x456c7d
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
push edi
push dword [0x871bf4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x456c75
push ebp
lea eax, [esp + 0x1c]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x456c66
cmp dword [esp + 0x18], ebx
jne 0x456c66
push ebx
push edi
push dword [esp + 0x1c]
call fcn.004568a0
mov ebp, eax
push edi
push 0
push dword [0x871bf4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc
Function at 0x457278
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
push ebx
mov ebx, dword [esp + 0x5c]
push ebp
xor ebp, ebp
push esi
test ebx, ebx
je 0x45728c
mov esi, ebx
jmp 0x45729e
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
test esi, esi
je 0x45738c
lea eax, [esp + 0x18]
push eax
push 0x18
pop eax
push eax
push dword [esp + 0x68]
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x457381
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0x30]
push edi
mov edi, dword [esp + 0x24]
push 0x2c
push 0
push eax
mov dword [esp + 0x20], ebp
call fcn.0042d490
add esp, 0xc
mov dword [esp + 0x34], 0x28
xor eax, eax
mov dword [esp + 0x38], ebp
inc eax
mov dword [esp + 0x3c], edi
mov word [esp + 0x40], ax
xor ecx, ecx
push 0x18
pop eax
push ecx
push ecx
mov word [esp + 0x4a], ax
lea eax, [esp + 0x18]
push eax
push ecx
lea eax, [esp + 0x44]
mov dword [esp + 0x54], ecx
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ebp, eax
mov dword [esp + 0x18], ebp
test ebp, ebp
je 0x457380
push 0
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x18]
push edi
push 0
push dword [esp + 0x78]
push esi
call dword [sym.imp.GDI32.dll_GetDIBits]
imul edi, dword [esp + 0x14]
test edi, edi
jle 0x457380
mov ebp, dword [esp + 0x10]
push 3
pop ebx
movzx ecx, byte [ebp + 1]
xor edx, edx
movzx eax, byte [ebp + 2]
add eax, ecx
movzx ecx, byte [ebp]
add eax, ecx
div ebx
mov byte [ebp], al
mov ecx, dword [esp + 0x10]
mov byte [ecx + 1], al
mov ecx, dword [esp + 0x10]
mov byte [ecx + 2], al
mov ebp, dword [esp + 0x10]
add ebp, ebx
mov dword [esp + 0x10], ebp
sub edi, 1
jne 0x457344
mov ebx, dword [esp + 0x68]
mov ebp, dword [esp + 0x18]
pop edi
test ebx, ebx
jne 0x45738c
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x50
ret 8