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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x576f24]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x40e83c
lea eax, [ebp - 0x20c]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, 0x103
ja 0x40e83c
test eax, eax
je 0x40e83c
push 0x2f
push esi
call fcn.0044768a
add esp, 8
test eax, eax
je 0x40e83c
add eax, 2
cmp word [eax], 0
je 0x40e83c
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x54933c
push edi
call fcn.00406f60
add esp, 0x10
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424790
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.00424790
mov esp, ebp
pop ebp
ret

Function at 0x40ea00
Capabilities:
Extract resource via kernel32 functions
Import public key

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push str.CERTIFICATE
push 0xc7
push 0
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40ea92
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40ea92
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40ea92
push ebx
push 0
push 1
push 0
push 0
lea ebx, [edi + 0xa54]
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x40ea91
push dword [ebp - 4]
push esi
push 1
call dword [sym.imp.CRYPT32.dll_CertCreateCertificateContext]
mov esi, eax
test esi, esi
je 0x40ea91
lea ecx, [edi + 0xa58]
push ecx
mov ecx, dword [esi + 0xc]
add ecx, 0x38
push ecx
push 1
push dword [ebx]
call dword [sym.imp.CRYPT32.dll_CryptImportPublicKeyInfo]
push esi
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40eaa0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x576f24]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 8], 0
je 0x40eacd
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424790
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, 0x103
ja 0x40eb47
test eax, eax
je 0x40eb47
lea edi, [esi + 0x410]
push edi
push 0
push str.UkUpdate
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x40eb47
push esi
push 0x40e2d0
push edi
lea eax, [esi + 0x10]
mov dword [esi + 0xa34], 0
push eax
lea ecx, [esi + 0xa38]
call fcn.00402bd0
test eax, eax
je 0x40eb47
pop edi
mov dword [esi + 8], 1
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424790
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.00424790
mov esp, ebp
pop ebp
ret
Function at 0x40f230
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x576f24]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x320]
mov dword [ebp - 0x320], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea ecx, [ebp - 0x328]
xor eax, eax
cmp dword [ebp - 0x310], 2
push ecx
lea ecx, [ebp - 0x324]
setne al
push ecx
push 0
push 3
push 0
push 0
push 0
add eax, 0x80000001
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x40f2a3
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424790
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 8], 0
push esi
je 0x40f301
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f2c7
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push 0x5499b4
push dword [ebp - 0x324]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb esi, esi
inc esi
jmp 0x40f331
push 0x5499b4
push dword [ebp - 0x324]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0
push 0
push 0
push 0
push 0x5499b4
push dword [ebp - 0x324]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
neg eax
sbb esi, esi
neg esi
push dword [ebp - 0x324]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00424790
mov esp, ebp
pop ebp
ret
Function at 0x40f820
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x576f24]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
lea ecx, [ebp - 0x11c]
cmp dword [ebp - 0x108], 2
push ecx
push 3
push 0
setne al
add eax, 0x80000001
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40f886
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424790
mov esp, ebp
pop ebp
ret
push esi
push 0
push 0
push 0
push 0
push 0x5499b4
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x11c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
pop esi
sete al
xor ecx, ebp
call fcn.00424790
mov esp, ebp
pop ebp
ret
Function at 0x40f9f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 4]
mov esi, ecx
push eax
push 0
push 3
push 0
push 0
push 0
push str.SoftwarePkLongUniKey
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x40fa26
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
push esi
push 4
push 0
push str.ShowDlg
push dword [ebp - 4]
call edi
push 4
lea eax, [esi + 4]
push eax
push 4
push 0
push str.Vietnamese
push dword [ebp - 4]
call edi
push 4
lea eax, [esi + 8]
push eax
push 4
push 0
push str.CodeTable
push dword [ebp - 4]
call edi
push 4
lea eax, [esi + 0xc]
push eax
push 4
push 0
push str.SwitchKey
push dword [ebp - 4]
call edi
push 4
lea eax, [esi + 0x10]
push eax
push 4
push 0
push str.InputMethod
push dword [ebp - 4]
call edi
push 4
lea eax, [esi + 0x14]
push eax
push 4
push 0
push str.FreeMarking
push dword [ebp - 4]
call edi
push 4
lea eax, [esi + 0x18]
push eax
push 4
push 0
push str.ModernStyle
push dword [ebp - 4]
call edi
push 4
lea eax, [esi + 0x1c]
push eax
push 4
push 0
push str.VietGUI
push dword [ebp - 4]
call edi
push 4
lea eax, [esi + 0x20]
push eax
push 4
push 0
push str.InConvCharset
push dword [ebp - 4]
call edi
push 4
lea eax, [esi + 0x24]
push eax
push 4
push 0
push str.OutConvCharset
push dword [ebp - 4]
call edi
push 4
lea eax, [esi + 0x28]
push eax
push 4
push 0
push str.ClipboardConvert
push dword [ebp - 4]
call edi
push 4
lea eax, [esi + 0x2c]
push eax
push 4
push 0
push str.MacroEnabled
push dword [ebp - 4]
call edi
push 4
lea eax, [esi + 0x40]
push eax
push 4
push 0
push str.AutoNonVnRestore
push dword [ebp - 4]
call edi
push 4
lea eax, [esi + 0x30]
push eax
push 4
push 0
push str.UseUnicodeClipboard
push dword [ebp - 4]
call edi
push 4
lea eax, [esi + 0x34]
push eax
push 4
push 0
push str.AlwaysMacro
push dword [ebp - 4]
call edi
push 4
lea eax, [esi + 0x38]
push eax
push 4
push 0
push str.UseIME
push dword [ebp - 4]
call edi
push 4
lea eax, [esi + 0x3c]
push eax
push 4
push 0
push str.SpellCheckEnabled
push dword [ebp - 4]
call edi
push 4
lea eax, [esi + 0x44]
push eax
push 4
push 0
push str.AutoUpdate
push dword [ebp - 4]
call edi
push 4
lea eax, [esi + 0x48]
push eax
push 4
push 0
push str.Notification
push dword [ebp - 4]
call edi
push 4
lea eax, [esi + 0x4c]
push eax
push 4
push 0
push str.AutoUpcaseMacro
push dword [ebp - 4]
call edi
push 4
lea eax, [esi + 0x50]
push eax
push 4
push 0
push str.SoundOnSwitch
push dword [ebp - 4]
call edi
push 4
lea eax, [esi + 0x54]
push eax
push 4
push 0
push str.PerAppMode
push dword [ebp - 4]
call edi
lea edx, [esi + 0x58]
mov eax, edx
lea ebx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40fbf0
sub eax, ebx
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push str.MacroPath
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [esi + 0x268]
call fcn.0040f230
add esp, 4
mov eax, 1
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4129c0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x576f24]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
xor esi, esi
mov dword [ebp - 0x10c], edi
test eax, eax
jne 0x412ab6
push esi
call fcn.00471600
add esp, 4
mov ebx, eax
push 0x8000
push esi
call fcn.00471600
push eax
call fcn.00480cbe
add esp, 8
push eax
call fcn.0048144e
add esp, 8
test edi, edi
jne 0x412ad6
push 1
call fcn.00471600
add esp, 4
mov dword [ebp - 0x108], eax
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00412800
push 0
mov edi, eax
call fcn.00471600
add esp, 0x14
cmp ebx, eax
je 0x412a52
push ebx
call fcn.004710bd
add esp, 4
push 1
call fcn.00471600
mov ecx, dword [ebp - 0x108]
add esp, 4
cmp ecx, eax
je 0x412b73
push ecx
call fcn.004710bd
add esp, 4
test edi, edi
jne 0x412b61
push dword [ebp - 0x10c]
call fcn.004812bc
push dword [ebp - 0x10c]
push esi
call fcn.00481326
add esp, 0xc
test eax, eax
je 0x412b6a
push esi
call fcn.004812bc
push esi
call fcn.00470c1a
add esp, 8
mov edi, 4
jmp 0x412b73
push 0x557a34
push eax
call fcn.00470efe
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x412a14
lea edi, [eax + 3]
jmp 0x412b73
lea edx, [ebp - 0x104]
mov ecx, edi
sub edx, edi
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x412ae0
lea eax, [ebp - 0x104]
push 0x5c
push eax
call fcn.004482f0
add esp, 8
test eax, eax
jne 0x412b0a
mov byte [ebp - 0x104], al
jmp 0x412b0d
mov byte [eax], 0
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.0048602c
mov esi, eax
add esp, 8
test esi, esi
jne 0x412b2f
push ebx
call fcn.004710bd
lea edi, [esi + 4]
jmp 0x412b70
push 0x557a38
push esi
call fcn.00470efe
add esp, 8
mov dword [ebp - 0x108], eax
test eax, eax
jne 0x412a2c
push ebx
call fcn.004710bd
push esi
call fcn.00470c1a
add esp, 8
mov edi, 4
jmp 0x412b73
push esi
call fcn.004812bc
add esp, 4
push esi
call fcn.00470c1a
add esp, 4
push 0
call fcn.00471600
add esp, 4
cmp ebx, eax
jne 0x412b9f
push 0x8000
push 0
call fcn.00471600
push eax
call fcn.00480cbe
add esp, 8
push eax
call fcn.0048144e
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00424790
mov esp, ebp
pop ebp
ret
Function at 0x412bc0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b10bb
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x576f24]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
lea edi, [eax + 0x50]
mov dword [edi + 4], 0
mov dword [edi], 0
lea esi, [eax + 0x58]
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov dword [esi], 0
mov dword [0x586858], 0
xorps xmm0, xmm0
movups xmmword [0x5867f8], xmm0
mov dword [0x5868c0], 0
movups xmmword [0x586808], xmm0
mov dword [0x5867f8], 1
movups xmmword [0x586818], xmm0
mov dword [0x586808], 1
movups xmmword [0x586828], xmm0
mov dword [0x586818], 1
movups xmmword [0x586848], xmm0
mov dword [0x586830], 1
movups xmmword [0x586860], xmm0
mov dword [0x586848], 1
movups xmmword [0x586870], xmm0
mov dword [0x586858], 1
movups xmmword [0x586880], xmm0
mov dword [0x586860], 1
movups xmmword [0x586890], xmm0
mov dword [0x586870], 1
movups xmmword [0x5868b0], xmm0
mov dword [0x586880], 1
movups xmmword [0x586838], xmm0
mov dword [0x586898], 1
movups xmmword [0x5868a0], xmm0
mov dword [0x5868b0], 1
mov dword [0x5868c0], 1
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov dword [eax + 0x30], 0
mov dword [eax + 0x34], 0
mov dword [eax + 0x38], 0
mov dword [eax + 0x3c], 0
mov dword [eax + 0x40], 0
mov dword [eax + 0x44], 0
mov dword [eax + 0x4c], 0
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
add eax, 0x60
push eax
mov byte [ebp - 4], 1
call fcn.00413640
add esp, 4
mov ecx, edi
push 8
push 0x57364c
call fcn.00415320
push 8
push 0x57364c
mov ecx, esi
call fcn.00415320
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41a320
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
push 0x5871c0
call dword [sym.imp.USER32.dll_GetKeyboardState]
movzx eax, byte [0x5871d1]
shr al, 7
mov byte [0x5872d6], al
movzx eax, byte [0x5871d2]
shr al, 7
mov byte [0x5872d7], al
movzx eax, byte [0x5871d0]
shr al, 7
mov byte [0x587358], al
movzx eax, byte [0x587260]
shr al, 7
mov byte [0x587359], al
movzx eax, byte [0x587261]
shr al, 7
test byte [0x58721b], 0x80
mov byte [0x58735a], al
jne 0x41a397
test byte [0x58721c], 0x80
mov byte [0x58735b], 0
je 0x41a39e
mov byte [0x58735b], 1
ret
Function at 0x41a600
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x586998
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x87c
call fcn.004247c8
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
je 0x41a639
mov dword [eax + 0x868], 0
mov dword [eax + 0x86c], 0
jmp 0x41a63b
xor eax, eax
push esi
push 0x87c
push 0
push eax
mov dword [0x5871bc], eax
call fcn.00447530
mov ecx, dword [0x5871bc]
add esp, 0xc
lea ecx, [ecx + 0x3c]
call fcn.004117d0
mov ecx, dword [0x5871bc]
lea eax, [ecx + 0x444]
add ecx, 0x3c
push eax
call fcn.004117a0
mov eax, dword [0x5871bc]
mov dword [eax + 0x440], 1
mov ecx, dword [0x5871bc]
lea ecx, [ecx + 0x868]
call fcn.00411f20
mov eax, dword [0x5871bc]
add eax, 8
push eax
call fcn.00419fe0
push 0
call fcn.0041bc20
push 0xc
call fcn.0041bca0
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyA]
add esp, 0xc
push 0
push 8
call esi
push 0
push 0x11
mov dword [0x586968], eax
call esi
push 0
push 0x10
mov dword [0x58696c], eax
call esi
push 0
push 0xa0
mov dword [0x586970], eax
call esi
push 0
push 0xa1
mov dword [0x586974], eax
call esi
push 0
push 0x56
mov dword [0x586978], eax
call esi
push 0
push 0x2d
mov dword [0x586980], eax
call esi
mov dword [0x58697c], eax
call fcn.004ad280
mov eax, dword [0x5871bc]
mov ecx, 0x5893e8
mov dword [0x587364], eax
mov dword [0x587360], 0x41d510
call fcn.004206d0
cmp byte [0x586988], 0
pop esi
je 0x41a74c
push 0x40
push 2
push str.unikey_log.txt
mov ecx, 0x575548
call fcn.0041ea00
mov esp, ebp
pop ebp
ret
Function at 0x41af20
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov byte [0x586989], 1
cmp dword [0x5871b0], 0
je 0x41af84
cmp byte [0x587358], 0
je 0x41af49
push 1
call fcn.0041b130
add esp, 4
xor ecx, ecx
cmp byte [0x5872d5], cl
je 0x41af6a
lea eax, [ebp - 1]
mov byte [ebp - 1], 0xb7
push 1
push eax
call fcn.0041ba90
add esp, 8
mov ecx, 1
mov eax, dword [0x5871b0]
push 0
add eax, ecx
push eax
push dword [0x586968]
push 8
call fcn.0041b890
add esp, 0x10
cmp dword [0x5871b8], 1
jne 0x41afa9
push dword [0x5871b4]
push 0x5869b0
call fcn.0041ba90
add esp, 8
call fcn.0041a930
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [0x5871bc]
push edi
mov ecx, dword [esi + 0x844]
test ecx, ecx
je 0x41afdf
cmp ecx, 4
je 0x41afdf
mov edi, dword [0x5871b4]
push edi
push 0x5869b0
call fcn.0041ba90
add esp, 8
pop edi
pop esi
call fcn.0041a930
mov esp, ebp
pop ebp
ret
mov eax, dword [0x5871b4]
cdq
sub eax, edx
mov edi, eax
sar edi, 1
test ecx, ecx
je 0x41b00d
cmp ecx, 4
je 0x41b00d
push edi
push 0x5869b0
call fcn.0041ba90
add esp, 8
pop edi
pop esi
call fcn.0041a930
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 0
jne 0x41b03e
cmp dword [esi + 0x85c], 0
je 0x41b03e
cmp byte [0x58698b], 0
je 0x41b03e
push edi
push 0x5869b0
call fcn.0041bb50
add esp, 8
pop edi
pop esi
call fcn.0041a930
mov esp, ebp
pop ebp
ret
push ebx
mov byte [0x575526], 0
push dword [esi + 0x84c]
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea eax, [edi + edi]
mov dword [ebp - 0x10], eax
add eax, 2
push eax
push 2
call esi
lea ecx, [edi + 1]
mov ebx, eax
push ecx
push 2
mov dword [ebp - 0x14], ebx
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
mov dword [ebp - 8], eax
call esi
push dword [ebp - 8]
mov ebx, eax
call esi
xor edx, edx
mov esi, eax
test edi, edi
jle 0x41b0cb
mov dword [ebp - 0xc], 0xff
nop dword [eax + eax]
mov ax, word [edx*2 + 0x5869b0]
mov word [ebx + edx*2], ax
movzx eax, word [edx*2 + 0x5869b0]
cmp ax, word [ebp - 0xc]
movzx ecx, al
mov eax, 0x3f
cmova ecx, eax
mov byte [edx + esi], cl
inc edx
cmp edx, edi
jl 0x41b0a0
mov eax, dword [ebp - 0x10]
xor ecx, ecx
push dword [ebp - 0x14]
push 0xd
mov word [eax + ebx], cx
mov byte [esi + edi], cl
mov esi, dword [sym.imp.USER32.dll_SetClipboardData]
call esi
push dword [ebp - 8]
push 1
call esi
call dword [sym.imp.USER32.dll_CloseClipboard]
call fcn.0041ed70
pop ebx
pop edi
pop esi
call fcn.0041a930
mov esp, ebp
pop ebp
ret
Function at 0x41f5a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b1be0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x576f24]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push 8
mov dword [ebx], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004247c8
mov esi, eax
add esp, 4
test esi, esi
je 0x41f5f9
push 1
mov dword [ebp - 4], 0
call fcn.0042691e
add esp, 4
mov dword [esi + 4], eax
jmp 0x41f5fb
xor esi, esi
mov ecx, ebx
mov dword [ebx + 0x34], esi
call fcn.0041cc40
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
lea esi, [eax + 8]
lea ebx, [eax + 4]
mov dword [eax + 0x2c], edx
mov dword [eax + 0xc], ebx
lea edi, [eax + 0x14]
mov dword [eax], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [eax + 0x48], 0
mov byte [eax + 0x3d], 0
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x4c], 0
mov eax, dword [0x589510]
mov ecx, dword [0x589514]
mov dword [edx + 0x40], eax
mov eax, edx
mov dword [edx + 0x44], ecx
mov dword [edx + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x420550
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b1dbd
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x576f24]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.004247c8
mov edi, eax
add esp, 4
test edi, edi
je 0x4205ed
push 1
mov dword [ebp - 4], 0
call fcn.0042691e
add esp, 4
mov dword [edi + 4], eax
jmp 0x4205ef
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov edi, dword [edi + 4]
mov ecx, edi
mov dword [ebp - 0x10], edi
mov eax, dword [edi]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.00417650
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov dword [ebp - 4], 0xffffffff
mov bl, al
test edi, edi
je 0x42064a
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x42064a
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], bl
jne 0x420666
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x420689
cmp byte [ebp + 0xc], 0
je 0x420675
push esi
call fcn.00426f31
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x420695
mov esi, str.ios_base::badbit_set
jmp 0x4206a5
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.0041e910
add esp, 8
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.00418670
push 0x567a80
lea eax, [ebp - 0x28]
push eax
call fcn.004474c3
int3