joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006ac0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x1009f08]
mov eax, dword [0x1008004]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x41c], edi
jae 0x1006ca6
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x1009f20]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x424], ebx
je 0x1006ca6
and dword [ebp - 0x414], 0
and dword [ebp - 0x420], 0
cmp dword [ebp + 0x10], 0
jne 0x1006b31
xor eax, eax
jmp 0x1006cba
test al, 0x20
je 0x1006b44
push 2
push 0
push 0
push ecx
call fcn.010066f6
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x1006c04
and dword [ebp - 0x40c], 0
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0x410], edi
jbe 0x1006c80
mov ecx, dword [ebp - 0x410]
xor edi, edi
sub ecx, dword [ebp - 0x41c]
lea eax, [ebp - 0x408]
cmp ecx, dword [ebp + 0x10]
jae 0x1006bb3
mov edx, dword [ebp - 0x410]
inc dword [ebp - 0x410]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x1006ba1
inc dword [ebp - 0x420]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x424]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x1006b7d
mov edi, eax
lea eax, [ebp - 0x408]
sub edi, eax
push 0
lea eax, [ebp - 0x418]
push eax
push edi
lea eax, [ebp - 0x408]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1006c32
mov eax, dword [ebp - 0x418]
add dword [ebp - 0x414], eax
cmp eax, edi
jl 0x1006c3e
mov eax, dword [ebp - 0x410]
sub eax, dword [ebp - 0x41c]
cmp eax, dword [ebp + 0x10]
jb 0x1006b69
jmp 0x1006c3e
push 0
lea ecx, [ebp - 0x418]
push ecx
push dword [ebp + 0x10]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1006c32
mov eax, dword [ebp - 0x418]
and dword [ebp - 0x40c], 0
mov dword [ebp - 0x414], eax
jmp 0x1006c3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp - 0x414]
test eax, eax
jne 0x1006c9e
cmp dword [ebp - 0x40c], eax
je 0x1006c7a
push 5
pop eax
cmp dword [ebp - 0x40c], eax
jne 0x1006c6c
mov dword [0x10088a8], 9
mov dword [0x10088ac], eax
jmp 0x1006cb7
push dword [ebp - 0x40c]
call fcn.0100679c
pop ecx
jmp 0x1006cb7
mov edi, dword [ebp - 0x41c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x1006c92
cmp byte [edi], 0x1a
je 0x1006b2a
mov dword [0x10088a8], 0x1c
jmp 0x1006cb0
sub eax, dword [ebp - 0x420]
jmp 0x1006cba
mov dword [0x10088a8], 9
and dword [0x10088ac], 0
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01001ed6
leave
ret
Function at 0x402e80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402e95
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402ed4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x402ed0
lea ebx, [ebx]
cmp esi, edx
jae 0x402ed4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x402ec0
cmp esi, edx
jb 0x402ed9
xor eax, eax
pop esi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret

Function at 0x40fdc4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x40fe09
call fcn.00416adc
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40fe09
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x40fe25
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004218c5
mov ebx, eax
test edi, edi
je 0x40fe23
test esi, esi
je 0x40fe23
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x419943
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.00416adc
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41997a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.0041999b
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x426c89
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.004147fa
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x426cc5
call fcn.00426ea8
mov dword [esi + 0xc], 1
jmp 0x426cca
call fcn.00426ea8
cmp dword [esi], 0
je 0x426d13
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x426ced
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00409ec0
jmp 0x426cfe
push 0xff
mov ecx, esi
call fcn.00402b80
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00403da0
jmp 0x426d37
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x426d37
push dword [esi]
push dword [ebp - 4]
call fcn.004201af
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x426dfd
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.00426ea8
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x426e45
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00409ec0
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00403da0
jmp 0x426e50
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004201af
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4c9322
Capabilities:
Get file system object information

Disassembly:
push 0x4c8
mov eax, 0x5a98c6
call fcn.0052d215
mov ebx, ecx
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00403660
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x4d0], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x4d0]
push 0
push 0x5ec790
call fcn.004056a0
cmp eax, 0xffffffff
jne 0x4c93d6
push 0
push 0x5be7e0
lea ecx, [ebp - 0x4d0]
call fcn.004056a0
cmp eax, 0xffffffff
jne 0x4c93d6
push 0
push 0x5b96fc
lea ecx, [ebp - 0x4d0]
call fcn.004056a0
cmp eax, 0xffffffff
jne 0x4c93d6
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00403660
pop ecx
lea edi, [eax + 0x10]
mov dword [ebp - 0x4d4], edi
xor ecx, ecx
mov byte [ebp - 4], 1
push ecx
lea eax, [ebp - 0x218]
push eax
push 0x104
push ecx
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x4c93b2
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
lea ecx, [edi - 0x10]
mov ebx, eax
call fcn.00402760
jmp 0x4c9405
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x4d0]
call fcn.00403560
lea ecx, [edi - 0x10]
mov byte [ebp - 4], 0
call fcn.00402760
mov esi, dword [ebp - 0x4d0]
push 0x105
push 0x2b4
lea eax, [ebp - 0x4cc]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x4c93fc
mov ebx, dword [ebp - 0x4cc]
jmp 0x4c9405
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
mov ebx, eax
lea ecx, [esi - 0x10]
call fcn.00402760
mov eax, ebx
call fcn.0052d1c4
ret

Function at 0x4d7d4f
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x4d7d8a
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4d7d71
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x4d7d82
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x4d7d8c
inc edi
add eax, 0x28
cmp edi, esi
jb 0x4d7d67
xor eax, eax
pop edi
pop esi
ret

Function at 0x4d85c3
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
inc dword [eax]
Function at 0x4d8879
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test eax, 0xf8fffff9
lea eax, [ebp - 0x664]
push eax
call fcn.004d7d1f
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004d7cd4
add esp, 0xc
mov dword [ebp - 0x67c], eax
and byte [ebp - 0x524], 0
and byte [ebp - 0x523], 0
mov byte [ebp - 0x522], 0x15
and byte [ebp - 0x521], 0
mov byte [ebp - 0x520], 0xa2
mov byte [ebp - 0x51f], 0x8f
mov byte [ebp - 0x51e], 0x8b
mov byte [ebp - 0x51d], 0x9a
mov byte [ebp - 0x51c], 0xac
mov byte [ebp - 0x51b], 0x98
mov byte [ebp - 0x51a], 0x8f
mov byte [ebp - 0x519], 0x8f
mov byte [ebp - 0x518], 0xea
lea eax, [ebp - 0x524]
push eax
call fcn.004d7d1f
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004d7cd4
add esp, 0xc
mov dword [ebp - 0x39c], eax
call fcn.004d7d0f
lodsb al, byte [esi]
xchg ebx, eax
and dl, byte [ecx]
and byte [ebp - 0x514], 0
and byte [ebp - 0x513], 0
mov byte [ebp - 0x512], 0xe3
and byte [ebp - 0x511], 0
mov byte [ebp - 0x510], 0x5b
mov byte [ebp - 0x50f], 0x79
mov byte [ebp - 0x50e], 0x68
mov byte [ebp - 0x50d], 0x5a
mov byte [ebp - 0x50c], 0x75
mov byte [ebp - 0x50b], 0x70
mov byte [ebp - 0x50a], 0x79
mov byte [ebp - 0x509], 0x4f
mov byte [ebp - 0x508], 0x75
mov byte [ebp - 0x507], 0x66
mov byte [ebp - 0x506], 0x79
mov byte [ebp - 0x505], 0x1c
lea eax, [ebp - 0x514]
push eax
call fcn.004d7d1f
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004d7cd4
add esp, 0xc
mov dword [ebp - 0x33c], eax
call fcn.004d7d0f
hlt
Function at 0x4d8c70
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
adc al, 0xc6
test dword [ebx + 0x55fffffc], ebp
lea eax, [ebp - 0x36c]
push eax
call fcn.004d7d1f
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004d7cd4
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.004d7d0f
mov esp, 0x68607f90
add al, 1
add byte [eax], al
lea eax, [ebp - 0x12c]
push eax
call dword [ebp - 0x3d4]
mov dword [ebp - 0x28], eax
call fcn.004d7d0f
sub ch, ch
in eax, dx
jnp 0x4d8d83
and byte [ebp - 0x20], 0
and byte [ebp - 0x1f], 0
mov byte [ebp - 0x1e], 0x1d
and byte [ebp - 0x1d], 0
mov byte [ebp - 0x1c], 0xa5
mov byte [ebp - 0x1b], 0x87
mov byte [ebp - 0x1a], 0x96
mov byte [ebp - 0x19], 0xb6
mov byte [ebp - 0x18], 0x87
mov byte [ebp - 0x17], 0x8f
mov byte [ebp - 0x16], 0x92
mov byte [ebp - 0x15], 0xb2
mov byte [ebp - 0x14], 0x83
mov byte [ebp - 0x13], 0x96
mov byte [ebp - 0x12], 0x8a
mov byte [ebp - 0x11], 0xa3
mov byte [ebp - 0x10], 0xe2
lea eax, [ebp - 0x20]
push eax
call fcn.004d7d1f
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004d7cd4
add esp, 0xc
mov dword [ebp - 0x370], eax
lea eax, [ebp - 0x654]
push eax
push 0x104
call dword [ebp - 0x370]
mov dword [ebp - 0x550], eax
mov eax, dword [ebp - 0x28]
movsx eax, byte [ebp + eax - 0x12d]
cmp eax, 0x5c
jne 0x4d8dbb
mov eax, dword [ebp - 0x28]
dec eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x550]
movsx eax, byte [ebp + eax - 0x655]
cmp eax, 0x5c
jne 0x4d8ddb
mov eax, dword [ebp - 0x550]
dec eax
mov dword [ebp - 0x550], eax
and dword [ebp - 0x338], 0
and dword [ebp - 0x3d0], 0
jmp 0x4d8df8

Function at 0x4d95fa
Capabilities:
Contain obfuscated stackstrings

Disassembly:
std
lea eax, [ebp - 0x744]
push eax
call fcn.004d7d1f
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004d7cd4
add esp, 0xc
mov dword [ebp - 0x704], eax
and byte [ebp - 0x6f4], 0
and byte [ebp - 0x6f3], 0
mov byte [ebp - 0x6f2], 0x43
and byte [ebp - 0x6f1], 0
mov byte [ebp - 0x6f0], 0xeb
mov byte [ebp - 0x6ef], 0xce
mov byte [ebp - 0x6ee], 0xd5
invalid
Function at 0x53eb48
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x616040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00531373
mov dword [ebp - 0x14], eax
cmp dword [0x621774], esi
jne 0x53ec3b
push 0x800
push esi
push 0x5e5590
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x53ebc8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x53ed1b
push esi
push esi
push 0x5e5590
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x53ed1b
push 0x5e55a8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x53ed1b
push eax
call ebx
push 0x5e55b4
push edi
mov dword [0x621774], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x5e55c4
push edi
mov dword [0x621778], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x62177c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x621784], eax
test eax, eax
je 0x53ec38
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x621780], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x53ec60
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x53ec53
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x53ec75
push 4
pop eax
jmp 0x53ed1d
cmp dword [ebp - 0x14], esi
je 0x53ec75
push dword [0x621774]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x53ec5a
mov eax, dword [0x621780]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x53ecd3
cmp dword [0x621784], edi
je 0x53ecd3
push eax
call ebx
push dword [0x621784]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x53ecd3
test eax, eax
je 0x53ecd3
call ecx
test eax, eax
je 0x53ecc8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x53ecc8
test byte [ebp - 8], 1
jne 0x53ecd3
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x53ed03
mov eax, dword [0x621778]
cmp eax, edi
je 0x53ed00
push eax
call ebx
test eax, eax
je 0x53ed00
call eax
mov esi, eax
test esi, esi
je 0x53ed00
mov eax, dword [0x62177c]
cmp eax, edi
je 0x53ed00
push eax
call ebx
test eax, eax
je 0x53ed00
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x621774]
call ebx
test eax, eax
je 0x53ed1b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x53ed1d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00527e2c
mov esp, ebp
pop ebp
ret
Function at 0x547040
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ae378
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x616040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
cmp dword [edi + 0x80], 0
jne 0x5471c3
call fcn.00414851
test eax, 0x800
jne 0x5471c3
push 0xd
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x5471c3
push dword [edi + 0x74]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x5471c3
push 0xd
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
mov dword [ebp - 0x30], esi
test esi, esi
jne 0x5470d7
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push 0x60bae4
push eax
call fcn.0052d791
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x38], eax
test eax, eax
jne 0x5470f9
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push 0x60bae4
push eax
call fcn.0052d791
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 1
test ebx, ebx
jne 0x54712f
mov dword [ebp - 0x1c], ebx
mov word [ebp + ebx*2 - 0x2c], ax
jmp 0x547139
push ecx
push ebx
lea ecx, [ebp - 0x2c]
call fcn.004022d0
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x547145
lea eax, [ebp - 0x2c]
push ebx
push dword [ebp - 0x38]
push eax
call fcn.0052efb0
add esp, 0xc
xor esi, esi
mov eax, dword [ebp - 0x1c]
cmp esi, eax
jge 0x5471a1
cmp eax, esi
ja 0x547169
push str.invalid_string_position
call fcn.00546d3a
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x547175
lea eax, [ebp - 0x2c]
movzx eax, word [eax + esi*2]
test eax, eax
je 0x5471a1
push eax
mov ecx, edi
call fcn.00546f30
test eax, eax
jne 0x54719e
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [ebp - 0x2c]
call fcn.00401fe0
mov eax, 1
jmp 0x5471c5
inc esi
jmp 0x547154
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call fcn.00546e90
cmp dword [ebp - 0x18], 8
jb 0x5471bd
push dword [ebp - 0x2c]
call fcn.0040d50c
add esp, 4
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00527e2c
mov esp, ebp
pop ebp
ret 4
Function at 0x54f740
Capabilities:
Delete file

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x49c]
cmp esi, dword [edi + 0x4a0]
je 0x54f770
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea esp, [esp]
push dword [esi]
call ebx
add esi, 0x1c
cmp esi, dword [edi + 0x4a0]
jne 0x54f760
pop ebx
pop edi
pop esi
ret

Function at 0x555850
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5af701
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x616040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
push 0
mov dword [esi + 0x88], edi
call fcn.004174cb
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
mov eax, dword [ebp + 8]
movzx eax, ax
push eax
call fcn.004176e1
call fcn.00416adc
mov eax, dword [eax + 4]
cmp word [eax + 0xd4], 0
jbe 0x55593b
call fcn.00414e1f
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x5558d4
push 0x80004005
call fcn.00402740
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp + 0xc]
mov dword [ebp + 8], 0
push eax
lea ecx, [ebp - 0x18]
call fcn.0041751a
call fcn.00416adc
lea ecx, [ebp - 0x18]
mov eax, dword [eax + 4]
movzx eax, word [eax + 0xd4]
push eax
push dword [ebp + 0xc]
mov dword [ebp + 8], eax
call fcn.00417749
mov byte [ebp - 4], 0
or ecx, 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x55593b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp word [eax], 1
jne 0x555965
mov ecx, 0xffff
cmp word [eax + 2], cx
jne 0x555965
cmp dword [0x62202c], 0
je 0x555965
or dword [eax + 8], 0x400000
push 0
push edi
push eax
mov ecx, esi
call fcn.00419bdc
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.00417506
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x5559a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5af72c
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
mov eax, dword [0x616040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
lea ecx, [ebp - 0x20]
mov dword [esi + 0x78], 0
call fcn.004174cb
push 0x65
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.004176e1
call fcn.00416adc
mov eax, dword [eax + 4]
cmp word [eax + 0xd4], 0
jbe 0x555a83
call fcn.00414e1f
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x555a1c
push 0x80004005
call fcn.00402740
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0
push eax
lea ecx, [ebp - 0x20]
call fcn.0041751a
call fcn.00416adc
lea ecx, [ebp - 0x20]
mov eax, dword [eax + 4]
movzx eax, word [eax + 0xd4]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.00417749
mov byte [ebp - 4], 0
or ecx, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x555a83
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp word [eax], 1
jne 0x555aad
mov ecx, 0xffff
cmp word [eax + 2], cx
jne 0x555aad
cmp dword [0x62202c], 0
je 0x555aad
or dword [eax + 8], 0x400000
push 0
push dword [esi + 0x88]
mov ecx, esi
push eax
call fcn.00419f11
mov ecx, esi
call fcn.00419c52
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.00417506
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret