joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a8c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov byte [ebp - 5], 1
call fcn.0040d490
mov byte [ebp - 5], al
movzx eax, byte [ebp - 5]
test eax, eax
je 0x40a8ea
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x40a910
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jbe 0x40a90d
mov edx, dword [ebp + 0xc]
push edx
call fcn.0040a870
add esp, 4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x40aa30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ff7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
mov eax, dword [ebp + 8]
mov word [eax], 0
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x40ab0f
movzx eax, byte [0x483258]
test eax, eax
je 0x40aa95
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x40aa93
mov eax, dword [ebp + 8]
mov word [eax], 0
jmp 0x40aaff
lea ecx, [ebp - 0x11c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x40aaff
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.00401b80
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0x128], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x128]
call fcn.0040a540
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00436111
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x120]
call fcn.004015c0
cmp dword [ebp - 0x10], 0
je 0x40ab0f
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x40adf0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
lea eax, [ebp - 0x200]
mov dword [ebp - 0x204], eax
cmp dword [ebp + 0xc], 0
je 0x40ae8f
push 0x444e78
mov ecx, dword [ebp + 0xc]
call fcn.004015e0
cmp dword [ebp + 8], 0
je 0x40ae8f
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40ae8f
movzx edx, byte [0x483258]
test edx, edx
je 0x40ae66
push 0x100
lea eax, [ebp - 0x200]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x40ae64
lea edx, [ebp - 0x200]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.004015e0
jmp 0x40ae8f
push 0x100
mov eax, dword [ebp - 0x204]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x40ae8f
mov edx, dword [ebp - 0x204]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.004017c0
mov esp, ebp
pop ebp
ret
Function at 0x40bbe0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ffca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40bda8
mov eax, dword [ebp - 0x10]
push eax
call fcn.004361fa
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jle 0x40bda8
mov ecx, dword [ebp - 0x14]
lea edx, [ecx + ecx + 2]
push edx
call fcn.004355c1
add esp, 4
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40bda8
mov byte [ebp - 0x19], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
jmp 0x40bc67
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0
je 0x40bc80
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x40bd96
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax + edx*2]
cmp ecx, 0x22
jne 0x40bc9b
movzx edx, byte [ebp - 0x19]
neg edx
sbb edx, edx
inc edx
mov byte [ebp - 0x19], dl
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
movzx edx, word [ecx + eax*2]
cmp edx, 0x20
jne 0x40bcb2
movzx eax, byte [ebp - 0x19]
test eax, eax
je 0x40bcc4
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x10]
movzx eax, word [edx + ecx*2]
test eax, eax
jne 0x40bd91
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], 0
jmp 0x40bcdc
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x20]
jge 0x40bd14
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov ax, word [edx + ecx*2]
mov word [ebp - 0x30], ax
movzx ecx, word [ebp - 0x30]
cmp ecx, 0x22
je 0x40bd12
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
mov cx, word [ebp - 0x30]
mov word [eax + edx*2], cx
mov edx, dword [ebp - 0x2c]
add edx, 1
mov dword [ebp - 0x2c], edx
jmp 0x40bcd3
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
mov word [ecx + eax*2], 0
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [ebp - 0x38]
call fcn.00401ad0
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040a590
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.004015c0
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x10]
movzx eax, word [edx + ecx*2]
test eax, eax
je 0x40bd88
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x10]
movzx eax, word [edx + ecx*2 + 2]
cmp eax, 0x20
je 0x40bd7d
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x10]
movzx eax, word [edx + ecx*2 + 2]
test eax, eax
jne 0x40bd88
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
jmp 0x40bd50
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x24], edx
jmp 0x40bc5e
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.004355bc
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40be80
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 4
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0x20000005
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x40beb8
mov eax, dword [ebp - 0xc]
jmp 0x40bec3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40c450
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov byte [ebp - 5], 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40c501
mov edx, dword [ebp - 4]
push edx
call fcn.004355c1
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40c501
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40c4ef
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x18]
push eax
push 0x4451bc
mov ecx, dword [ebp - 0x10]
push ecx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40c4ef
mov byte [ebp - 5], 1
cmp dword [ebp + 0xc], 0
je 0x40c4de
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 8]
mov dword [edx], ecx
cmp dword [ebp + 0x10], 0
je 0x40c4ef
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xc]
mov dword [edx], ecx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.004355bc
add esp, 4
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret

Function at 0x40cb70
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov dword [ebp - 4], 0
lea eax, [ebp - 0x198]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x40cbf6
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x19c], eax
cmp dword [ebp - 0x19c], 0
je 0x40cbf0
mov edx, dword [ebp - 0x19c]
movsx eax, word [edx + 0xa]
cmp eax, 4
jl 0x40cbf0
mov ecx, dword [ebp - 0x19c]
movsx edx, word [ecx + 0xa]
push edx
mov eax, dword [ebp - 0x19c]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
push edx
lea eax, [ebp - 4]
push eax
call fcn.00435680
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
call fcn.0040cc00
add esp, 4
mov dword [ebp - 4], eax
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40ee60
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x40ee7c
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040db20
add esp, 0x1c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x40ef1a
push 0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x40ef10
mov eax, dword [ebp - 0xc]
add eax, 1
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40ef10
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 8], eax
push 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0xc]
add eax, 1
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [ebp + 0xc], 0
je 0x40ef10
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0xc]
mov dword [ecx], edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x410300
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
cmp dword [ebp + 8], 0
je 0x4103cd
cmp dword [ebp + 0xc], 0
je 0x4103cd
cmp dword [ebp + 0x10], 0
je 0x4103cd
lea eax, [ebp - 0x208]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.0040abe0
add esp, 8
mov edx, dword [ebp + 0x10]
push edx
call fcn.00429310
add esp, 4
movzx eax, al
test eax, eax
je 0x41034f
jmp 0x4103cd
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x208]
push ecx
call fcn.0040db20
add esp, 0x1c
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0xffffffff
je 0x4103c1
push 0
lea edx, [ebp - 0x210]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x14], 0
je 0x4103bf
lea ecx, [ebp - 0x208]
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.004015e0
jmp 0x4103cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x214], eax
mov esp, ebp
pop ebp
ret
Function at 0x410f80
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0xcf0000
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x28]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0
mov edx, dword [ebp + 0x24]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
mov eax, dword [0x483250]
push eax
call fcn.00417b10
add esp, 0x34
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x411085
cmp dword [ebp - 0x18], 0
jne 0x410ff3
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x18], ecx
push 0
push 0
mov edx, dword [ebp + 0x20]
push edx
push 0
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [0x483268]
push eax
mov ecx, dword [0x483264]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.00406cb0
add esp, 0x30
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41103d
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp 0x411085
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x144], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.004163e0
add esp, 8
push 5
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
push str.onInitializationComplete
push 0x445f18
mov ecx, dword [ebp - 4]
call fcn.004057a0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x413580
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov byte [ebp - 0x15], 1
mov byte [ebp - 1], 1
lea ecx, [ebp - 0x24]
call fcn.0040f8f0
push section.mProject
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4135b6
mov eax, dword [0x483254]
mov dword [0x488004], eax
jmp 0x413625
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 0xc], eax
mov byte [ebp - 1], 0
push 0x3fe
mov ecx, dword [ebp - 0xc]
push ecx
push 0x488008
call fcn.00436240
add esp, 0xc
push 0
push 0x5a7e
push 0x7d1
mov edx, dword [0x488004]
push edx
call dword [sym.imp.USER32.dll_PostThreadMessageA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x413625
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x5a4
jne 0x413625
mov eax, dword [0x483254]
mov dword [0x488004], eax
mov dword [section.mProject], 0
mov byte [ebp - 1], 1
mov cl, byte [ebp - 1]
mov byte [ebp - 0x25], cl
lea ecx, [ebp - 0x24]
call fcn.0040a550
mov al, byte [ebp - 0x25]
mov esp, ebp
pop ebp
ret
Function at 0x413b70
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov dword [edx], eax
mov ecx, dword [ebp - 8]
cmp dword [ecx], 0xffffffff
je 0x413c5f
push 0
push 0
push 0
movzx edx, byte [ebp + 0xc]
neg edx
sbb edx, edx
and edx, 0xfffffffe
add edx, 4
push edx
push 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
je 0x413c53
push 0
push 0
push 0
movzx ecx, byte [ebp + 0xc]
neg ecx
sbb ecx, ecx
and ecx, 2
add ecx, 2
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [ebp - 8]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 8], 0
je 0x413c46
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
mov edx, dword [ebp - 8]
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], ecx
mov eax, dword [ebp - 4]
xor edx, edx
mov cl, 0x20
call fcn.00436990
mov ecx, dword [ebp - 8]
or eax, dword [ecx + 0x10]
or edx, dword [ecx + 0x14]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], edx
jmp 0x413c5f
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret 8
Function at 0x413f30
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4406a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x414080
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov byte [ebp - 0x11], 0
mov eax, dword [ebp + 8]
push eax
call fcn.004361fa
add esp, 4
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
shl ecx, 1
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x413fe2
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x413fe2
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00436111
add esp, 8
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x10]
push eax
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x11], al
movzx ecx, byte [ebp - 0x11]
test ecx, ecx
jne 0x413fe2
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
movzx eax, byte [ebp - 0x11]
test eax, eax
jne 0x41407a
mov ecx, dword [ebp - 0x18]
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x41407a
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x41407a
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040cd00
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
call fcn.0040cd60
push eax
mov edx, dword [ebp - 0x24]
push edx
call fcn.00435a20
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040cd30
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [ebp - 0x20]
push ecx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x41407a
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x414090
Capabilities:
Open clipboard

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4406ba
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov dword [ebp - 0x10], 0
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x41415c
call fcn.00414200
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x414156
call fcn.00414170
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x414156
mov eax, dword [ebp - 0x14]
push eax
call fcn.00435fa0
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
call fcn.004355c1
add esp, 4
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401b80
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x28]
call fcn.0040a540
push eax
mov edx, dword [ebp - 0x10]
push edx
call fcn.00436111
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004015c0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.004355bc
add esp, 4
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x414170
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4141ee
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4141ee
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00435fa0
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4141e4
mov edx, dword [ebp - 0x10]
add edx, 1
push edx
call fcn.004355c1
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4141e4
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00435a20
add esp, 8
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x414200
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], 0
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41427f
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x41427f
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004361fa
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x414275
mov edx, dword [ebp - 0x10]
lea eax, [edx + edx + 2]
push eax
call fcn.004355c1
add esp, 4
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x414275
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.00436111
add esp, 8
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x414c90
Capabilities:
Initialize iwebbrowser2

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x4852a0], 0
jne 0x414ce0
push 0x4852a0
push 0x4522f4
push 4
push 0
push 0x4522c4
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x414cde
push 0xffffffffffffffff
mov eax, dword [0x4852a0]
mov ecx, dword [eax]
mov edx, dword [0x4852a0]
push edx
call dword [ecx + 0xa4]
mov eax, dword [0x4852a0]
jmp 0x414d2a
jmp 0x414d28
push 0xffffffffffffffff
mov eax, dword [0x4852a0]
mov ecx, dword [eax]
mov edx, dword [0x4852a0]
push edx
call dword [ecx + 0xa4]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x414d21
mov eax, dword [0x4852a0]
mov ecx, dword [eax]
mov edx, dword [0x4852a0]
push edx
call dword [ecx + 8]
mov dword [0x4852a0], 0
call fcn.00414c90
jmp 0x414d2a
mov eax, dword [0x4852a0]
jmp 0x414d2a
xor eax, eax
mov esp, ebp
pop ebp
ret