joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e440
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x42e4de
cmp dword [ebp + 0xc], edi
je 0x42e4de
push esi
push 0x58
push 8
push dword [0x521bbc]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp + 8]
mov esi, eax
or dword [esi + 4], 0xffffffff
mov dword [esi], edi
call sub.MSVCRT.dll__wcsdup
push dword [ebp + 0xc]
mov dword [esi + 8], eax
call sub.MSVCRT.dll__wcsdup
push dword [ebp + 0x14]
mov dword [esi + 0xc], eax
call sub.MSVCRT.dll__wcsdup
mov dword [esi + 0x38], eax
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x24], eax
test al, 1
je 0x42e4cd
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x42e656
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x42e4c5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, esi
jmp 0x42e4dd
push esi
call fcn.0042e701
jmp 0x42e4dc
push esi
call fcn.0042e4f7
push esi
mov edi, eax
call fcn.0042e701
pop ecx
pop ecx
pop esi
mov eax, edi
pop edi
pop ebp
ret 0x10

Function at 0x42e4f7
Capabilities:
Delete file

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
xor ebx, ebx
push edi
mov ebp, dword [esi + 0xc]
push dword [esi + 8]
mov dword [esp + 0x18], ebp
call fcn.004d2ea0
push dword [esi + 0x38]
mov dword [esp + 0x20], eax
call fcn.004d2ea0
mov dword [esp + 0x10], eax
call fcn.0049d570
mov edi, eax
test edi, edi
je 0x42e62c
push ebx
push pe_nt_image_headers32
push 2
push ebx
push 1
push 0xc0000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x42e617
test byte [esi + 0x24], 2
mov dword [esi + 0x10], ebp
jne 0x42e569
push 1
push 0x34
push edi
call fcn.004a04c0
add esp, 0xc
mov eax, dword [0x521f58]
test eax, eax
je 0x42e581
push eax
push 0x2714
push edi
call fcn.004a04c0
add esp, 0xc
mov eax, dword [0x521f5c]
test eax, eax
je 0x42e5b2
cmp dword [0x521f60], ebx
je 0x42e5b2
push eax
push 0x27bf
push edi
call fcn.004a04c0
push dword [0x521f60]
push 0x27c0
push edi
call fcn.004a04c0
add esp, 0x18
push dword [esp + 0x1c]
push 0x2712
push edi
call fcn.004a04c0
push dword [esp + 0x1c]
push 0x2722
push edi
call fcn.004a04c0
push 0x42e665
push 0x4e2b
push edi
call fcn.004a04c0
push esi
push 0x2711
push edi
call fcn.004a04c0
push edi
call fcn.0049d610
add esp, 0x34
test eax, eax
jne 0x42e602
cmp dword [esi + 4], 0xfffffffb
je 0x42e602
xor ebx, ebx
inc ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x42e617
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call fcn.0049d530
pop ecx
cmp ebx, 1
jne 0x42e62c
mov dword [esi + 4], 0xfffffffe
jmp 0x42e63b
xor ecx, ecx
cmp dword [esi + 4], 0xfffffffb
setne cl
add ecx, 0xfffffffc
mov dword [esi + 4], ecx
push dword [esp + 0x1c]
call fcn.004d2e90
push dword [esp + 0x10]
call fcn.004d2e90
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
pop ecx
ret
Function at 0x42f1c7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x42f261
push ebx
push esi
push 0x58
push 8
push dword [0x521bbc]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp + 8]
mov esi, eax
xor ebx, ebx
inc ebx
or dword [esi + 4], 0xffffffff
mov dword [esi], ebx
call sub.MSVCRT.dll__wcsdup
push dword [ebp + 0x10]
mov dword [esi + 8], eax
call sub.MSVCRT.dll__wcsdup
mov dword [esi + 0x38], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x24], eax
mov dword [esi + 0x50], ebx
pop ecx
pop ecx
test bl, al
je 0x42f24f
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x42f3bc
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x42f23c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42f23f
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x42f247
mov edi, esi
jmp 0x42f25f
push esi
call fcn.0042e701
jmp 0x42f25e
push esi
call fcn.0042f276
push esi
mov edi, eax
call fcn.0042e701
pop ecx
pop ecx
pop esi
pop ebx
mov eax, edi
pop edi
pop ebp
ret 0xc

Function at 0x42f7df
Capabilities:
Create thread
Reference http user-agent string

Disassembly:
push edi
xor edi, edi
cmp dword [esp + 0xc], edi
je 0x42f8bc
push ebx
push ebp
push esi
push 0x58
push 8
push dword [0x521bbc]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [esp + 0x18]
mov esi, eax
xor ebp, ebp
inc ebp
or dword [esi + 4], 0xffffffff
mov dword [esi], ebp
call sub.MSVCRT.dll__wcsdup
mov dword [esi + 8], eax
mov dword [esp], str.Mozilla_5.0_Gecko_41.0_Firefox_41.0
call sub.MSVCRT.dll__wcsdup
mov ebx, dword [esp + 0x24]
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0x18]
pop ecx
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x48], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x24], ecx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x44], eax
test cl, 1
je 0x42f8a9
test ebx, ebx
je 0x42f873
push ebx
push edi
push dword [0x521bbc]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x40], eax
test eax, eax
je 0x42f86e
push ebx
push dword [esp + 0x20]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
cmp dword [esi + 0x40], edi
je 0x42f8a0
lea eax, [esp + 0x18]
push eax
push edi
push esi
push 0x42f8c2
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x42f898
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42f89c
mov ebp, dword [esp + 0x18]
test ebp, ebp
jne 0x42f8b7
push esi
call fcn.0042e701
pop ecx
jmp 0x42f8b9
mov eax, dword [esp + 0x1c]
push esi
mov dword [esi + 0x40], eax
call fcn.0042f451
pop ecx
mov edi, esi
pop esi
pop ebp
pop ebx
mov eax, edi
pop edi
ret 0x18
Function at 0x42fa8e
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
cmp word [0x521f64], 0
jne 0x42fb50
push edi
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WSOCK32.DLL_WSAStartup]
xor edi, edi
inc edi
test eax, eax
jne 0x42fac3
mov word [0x521f64], di
jmp 0x42facb
xor eax, eax
mov word [0x521f64], ax
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x521f80], eax
test eax, eax
je 0x42fb4f
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4ef168
push eax
call esi
push 0x4ef174
push dword [0x521f80]
mov dword [0x521f70], eax
call esi
push str.getnameinfo
push dword [0x521f80]
mov dword [0x521f74], eax
call esi
push str.WSAStringToAddressA
push dword [0x521f80]
mov dword [0x521f78], eax
call esi
cmp dword [0x521f70], 0
mov dword [0x521f7c], eax
pop esi
je 0x42fb4f
cmp dword [0x521f74], 0
je 0x42fb4f
cmp dword [0x521f78], 0
je 0x42fb4f
test eax, eax
je 0x42fb4f
mov dword [0x521f68], edi
pop edi
movsx eax, word [0x521f64]
add esp, 0x190
ret

Function at 0x430319
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x522dec]
call fcn.00441970
mov ebx, eax
test ebx, ebx
je 0x43037d
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x430342
push dword [esp + 0xc]
push ebx
call eax
jmp 0x43037d
push esi
push edi
push dword [ebx]
call dword [sym.imp.USER32.DLL_GetWindowTextLengthW]
push dword [esp + 0x14]
mov edi, eax
push edi
call fcn.00442050
mov esi, eax
lea ecx, [edi + 1]
push ecx
xor eax, eax
push esi
mov word [esi], ax
push dword [ebx]
call dword [sym.imp.USER32.DLL_GetWindowTextW]
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
sub edi, eax
push edi
call fcn.00442130
pop edi
pop esi
pop ebx
ret 8
Function at 0x4347b9
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push dword [0x522dd0]
call fcn.00441330
xor ebp, ebp
mov esi, eax
cmp dword [0x5225e8], ebp
jne 0x434895
xor ebx, ebx
inc ebx
mov dword [0x5225e8], ebx
call fcn.00436d80
mov edi, 0xa4
push edi
push ebp
push 0x5225f0
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x5225f0], 0x13
lea eax, [esp + 0x10]
mov dword [0x5225f4], edi
mov dword [0x522600], 0x434704
mov dword [0x522604], 0x434a4f
push eax
mov dword [0x522658], 0x4346df
mov dword [0x52265c], 0x43499a
mov dword [0x5225fc], 0x4346ba
mov dword [0x522680], 0x43471f
mov dword [0x522694], ebx
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x434895
cmp dword [esp + 0x20], ebx
je 0x43487d
cmp dword [esp + 0x20], 2
jne 0x434895
cmp dword [esp + 0x14], 5
jae 0x434885
mov dword [0x522694], ebp
jmp 0x434895
jne 0x434895
mov eax, dword [esp + 0x18]
neg eax
sbb eax, eax
and dword [0x522694], eax
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.004391da
mov eax, dword [esp + 0x140]
push ebp
push dword [0x521bc0]
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 ebp
push str.BUTTON
push ebp
call dword [sym.imp.USER32.DLL_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x43496b
push dword [esp + 0x128]
push dword [0x522dec]
call fcn.004419af
mov edi, dword [esp + 0x13c]
mov esi, eax
mov dword [esi + 0x10], edi
test edi, edi
je 0x43493a
push edi
call fcn.0043cad6
test eax, eax
je 0x43493a
push ebp
push ebp
push edi
call fcn.0043c720
mov dword [esi + 0x18], eax
jmp 0x43493d
mov dword [esi + 0x18], ebp
push 0x434409
push 0xfffffffffffffffc
push ebx
mov dword [esi + 0x14], ebp
mov dword [esi + 0x1c], ebp
call dword [sym.imp.USER32.DLL_SetWindowLongW]
push 0x5225f0
push ebx
push esi
push dword [esp + 0x134]
mov dword [0x5225ec], eax
call fcn.00436467
mov ebx, eax
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x114
ret 0x1c
Function at 0x438790
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
call dword [sym.imp.USER32.DLL_GetFocus]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
mov ebx, eax
test ebx, ebx
je 0x43880a
push 9
call esi
test al, al
jns 0x43880a
push 0x11
call esi
test al, al
js 0x43880a
push 0x10
call esi
test al, al
js 0x43880a
push 0x12
call esi
test al, al
js 0x43880a
push 5
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.USER32.DLL_GetClassNameW]
push 4
lea eax, [ebp - 0x10]
push str.Rich
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x43880a
push eax
push eax
push 0x44e
push ebx
call dword [sym.imp.USER32.DLL_SendMessageW]
test eax, 0x800
jne 0x43880a
xor eax, eax
jmp 0x43888b
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x438832
push 0x11
call esi
test al, al
js 0x43882a
push 0x10
call esi
test al, al
js 0x43882a
push 0x12
call esi
test al, al
jns 0x438832
push 1
push edi
call fcn.00438893
mov esi, dword [sym.imp.USER32.DLL_GetPropW]
test ebx, ebx
je 0x438848
push str.PB_Hotkey
push ebx
call esi
test eax, eax
jne 0x438888
push str.PB_WindowID
push edi
call esi
mov esi, eax
test esi, esi
je 0x438888
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x438888
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 4], eax
jne 0x438888
lea eax, [esi - 1]
push eax
push dword [0x522dfc]
call fcn.00441970
test eax, eax
je 0x438888
mov eax, dword [eax + 8]
jmp 0x43888a
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4392f2
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 0x43943a
xor ecx, ecx
cmp word [eax], cx
je 0x43943a
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x43934b
cmp eax, 3
jne 0x439385
cmp word [esp + 0xa], 0x3a
jne 0x439385
cmp eax, 2
jne 0x439369
lea eax, [esp + 8]
push 0x4ef720
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x43943a
push 0xfffffffffffffffe
pop edi
jmp 0x43943a
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x43939a
cmp ax, bx
jne 0x4393a4
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x43938d
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x4393e3
test byte [esp + 0x21c], 0x10
je 0x4393ca
push 0xfffffffffffffffe
pop edi
jmp 0x4393da
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x439438
cmp word [esp + 0x10], bp
jne 0x4393f1
cmp word [esp + 0x12], bp
je 0x439410
cmp word [esp + 0x10], bx
jne 0x4393ff
cmp word [esp + 0x12], bx
je 0x439410
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x439438
cmp word [esp + 0x12], ax
jne 0x439438
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x439425
test al, 0x10
je 0x439438
jmp 0x439435
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x439438
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 0x439449
Capabilities:
Copy file

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

Function at 0x439487
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x4394b0
test byte [esp + 8], 2
je 0x4394a4
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 0x4394b2
xor eax, eax
ret 8
Function at 0x439545
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x5228f8]
push esi
test eax, eax
jne 0x43956a
push 0x439672
push 0x10
push 0x258
call fcn.00441a43
mov dword [0x5228f8], eax
push dword [esp + 0xc]
push eax
call fcn.004419af
mov esi, eax
test esi, esi
je 0x43966b
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x43958c
mov edi, 0x4dadc8
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x43959c
xor eax, eax
cmp word [ebx], ax
jne 0x4395a1
mov ebx, 0x4ef724
push edi
call sub.MSVCRT.dll_wcslen
push ebx
mov dword [esp + 0x24], eax
call sub.MSVCRT.dll_wcslen
add eax, dword [esp + 0x24]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x521bbc]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x439652
push edi
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x439602
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x439606
push 0x4ef720
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
jmp 0x439606
mov edi, dword [esp + 0x18]
push ebx
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x43962a
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x439640
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x43963e
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x521bbc]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x439669
cmp dword [esp + 0x14], 0xffffffff
je 0x43965d
mov esi, dword [esp + 0x14]
push esi
push dword [0x5228f8]
call fcn.00441921
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc

Function at 0x4397a5
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x43981d
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcslen
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x4397fe
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x4397fb
cmp ecx, 0x5c
je 0x4397fb
cmp ecx, 0x2f
jne 0x439808
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x4397e8
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x43981f
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x4398a0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x4398dc
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4
Function at 0x439be0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x439cd4
cmp word [edx], 0
je 0x439cd4
mov ecx, dword [esp + 0x10]
push esi
cmp ecx, 0x19
jne 0x439c6d
mov esi, dword [esp + 0xc]
mov ecx, edx
push edi
cmp dword [esi + 4], 0
lea edi, [ecx + 2]
je 0x439c40
jmp 0x439c20
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x439c20
sub ecx, edi
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.00439d50
pop edi
pop esi
pop ecx
ret 0xc
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x439c40
sub ecx, edi
lea eax, [esp + 8]
push 0
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
push edx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
cmp ecx, 2
lea ecx, [esp + 0x10]
setne al
push ecx
dec eax
and eax, 0xfde9
push edx
push eax
call fcn.00439e60
mov esi, eax
test esi, esi
je 0x439ccb
mov eax, dword [esp + 0xc]
cmp dword [eax + 4], 0
je 0x439ca8
push dword [esp + 0x10]
push esi
push eax
call fcn.00439d50
mov dword [esp + 4], eax
jmp 0x439cbc
push 0
lea ecx, [esp + 8]
push ecx
push dword [esp + 0x18]
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
push 0
push dword [0x521bbc]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 0xc
xor eax, eax
pop ecx
ret 0xc

Function at 0x439d50
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
mov dword [esp + 4], 0
cmp dword [esi + 0x1c], 0
jne 0x439e57
cmp dword [esi + 0x14], 1
jne 0x439d9b
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0xc]
push 1
neg eax
cdq
push ecx
push eax
push dword [esi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
push edi
mov edi, dword [esp + 0x20]
cmp eax, edi
jle 0x439e18
mov ecx, dword [esi + 8]
add ecx, dword [esi + 4]
sub ecx, eax
mov eax, edi
dec eax
je 0x439e03
dec eax
je 0x439dec
sub eax, 2
je 0x439dd7
push edi
push dword [esp + 0x20]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov ax, word [eax]
mov word [ecx], ax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov al, byte [eax]
mov byte [ecx], al
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
push esi
call fcn.004398a0
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x439e45
push 0
lea eax, [esp + 0xc]
push eax
push edi
push dword [esp + 0x28]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0xc
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
push edi
push dword [esp + 0x20]
add ecx, eax
jmp 0x439dc1
xor eax, eax
pop esi
add esp, 0xc
ret 0xc
Function at 0x43abf6
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push edi
xor edi, edi
push edi
call dword [sym.imp.USER32.DLL_OpenClipboard]
test eax, eax
je 0x43ac6b
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x43ac14
mov esi, 0x4dadc8
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
lea ebp, [eax*2 + 2]
push ebp
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x43ac62
call dword [sym.imp.USER32.DLL_EmptyClipboard]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x43ac62
push ebp
push esi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 0xd
call dword [sym.imp.USER32.DLL_SetClipboardData]
mov edi, eax
call dword [sym.imp.USER32.DLL_CloseClipboard]
pop esi
pop ebp
pop ebx
mov eax, edi
pop edi
ret 4

Function at 0x43b521
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 0x80000000
push dword [esp + 0x2c]
mov ebp, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x43b5a5
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
push edi
push dword [0x521bbc]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x43b59d
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 0x43b58e
cmp dword [esp + 0x18], ebx
jne 0x43b58e
push ebx
push edi
push dword [esp + 0x1c]
call fcn.0043b102
mov ebp, eax
push edi
push 0
push dword [0x521bbc]
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 0x43cc34
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x522904], eax
test eax, eax
je 0x43cc62
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x522900], eax
lea eax, [ebp - 0x114]
mov dword [0x522908], 1
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x43ccc4
cmp dword [ebp - 0x104], 1
jne 0x43cc99
and dword [0x522908], 0
jmp 0x43ccdc
cmp dword [ebp - 0x104], 2
jne 0x43ccc4
cmp dword [ebp - 0x110], 5
jb 0x43cc90
jne 0x43ccc4
mov eax, dword [ebp - 0x10c]
neg eax
sbb eax, eax
and eax, dword [0x522908]
mov dword [0x522908], eax
jmp 0x43ccc9
mov eax, dword [0x522908]
test eax, eax
je 0x43ccdc
call fcn.0043c50f
neg eax
sbb eax, eax
and dword [0x522908], eax
mov esp, ebp
pop ebp
ret