joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ad4a0
Capabilities:
Access peb ldr_data
Enumerate pe sections
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5048c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
push 0x2e
lea ecx, [esp + 0x1c]
call fcn.004ada60
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x30]
push 1
push 0x2e
push eax
mov ecx, edi
mov dword [esp + 0x34], 0
call fcn.004af3a0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov dword [esi + 4], ecx
mov dx, word [eax + 4]
mov word [esi + 8], dx
mov cx, word [eax + 6]
mov word [esi + 0xa], cx
mov dx, word [eax + 8]
mov word [esi + 0xc], dx
mov cx, word [eax + 0xa]
mov word [esi + 0xe], cx
mov dx, word [eax + 0xc]
mov word [esi + 0x10], dx
mov cx, word [eax + 0xe]
mov word [esi + 0x12], cx
mov edx, dword [eax + 0x10]
mov dword [esi + 0x14], edx
mov ecx, dword [eax + 0x14]
mov dword [esi + 0x18], ecx
mov edx, dword [eax + 0x18]
mov dword [esi + 0x1c], edx
mov cx, word [eax + 0x20]
mov dx, word [eax + 0x22]
mov bx, word [eax + 0x1c]
mov bp, word [eax + 0x1e]
mov word [esp + 0x30], cx
mov word [esi + 0x20], dx
mov cx, word [eax + 0x24]
mov word [esi + 0x22], cx
mov edx, dword [eax + 0x26]
mov dword [esi + 0x24], edx
mov eax, dword [eax + 0x2a]
lea ecx, [esp + 0x14]
mov dword [esi + 0x28], eax
call fcn.004adaa0
mov edx, dword [esi + 4]
mov ecx, 0x5730f0
cmp edx, dword [ecx]
je 0x4ad58c
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.004ada90
xor al, al
jmp 0x4ad61f
mov eax, dword [edi + 0x50]
and ebx, 0xffff
push 0
push ebx
lea ecx, [esi + 0x38]
mov dword [esp + 0x18], eax
call fcn.004adad0
mov eax, dword [esi + 0x3c]
push 1
push ebx
push eax
mov ecx, edi
call fcn.004af3a0
test bp, bp
je 0x4ad5d8
mov ebx, ebp
push 0
and ebx, 0xffff
lea ecx, [esi + 0x2c]
push ebx
call fcn.004adad0
mov eax, dword [esi + 0x30]
push 1
push ebx
push eax
mov ecx, edi
call fcn.004af3a0
mov ebx, dword [esp + 0x30]
test bx, bx
je 0x4ad600
and ebx, 0xffff
push 0
push ebx
lea ecx, [esi + 0x44]
call fcn.004adad0
mov esi, dword [esi + 0x48]
push 1
push ebx
push esi
mov ecx, edi
call fcn.004af3a0
mov ecx, dword [esp + 0x10]
mov eax, dword [edi + 0x50]
cmp eax, ecx
lea ecx, [esp + 0x14]
sete bl
mov dword [esp + 0x28], 0xffffffff
call fcn.004ada90
mov al, bl
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x4afc40
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x504e00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov ecx, dword [ecx + 0x1c]
lea edx, [esp]
push edx
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ecx, dword [esp]
mov dword [esp + 0x28], 0
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4afc9a
lea ecx, [esp]
mov dword [esp + 0x28], 0xffffffff
call fcn.004dbec1
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov eax, dword [0x574900]
push esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
push ecx
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 5
mov dword [esp + 0x10], 0x518dfc
call fcn.004b3a30
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
mov byte [esp + 0x30], 6
call fcn.004ac700
mov eax, dword [eax]
mov byte [esp + 0x2c], 7
push eax
call fcn.004b0070
add esp, 4
lea ecx, [esp + 8]
mov esi, eax
mov byte [esp + 0x2c], 6
call fcn.004dbec1
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call fcn.004b39b0
lea ecx, [esp + 4]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004dbec1
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x4afd30
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x504e50
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push edi
mov edi, eax
mov esi, ecx
and edi, 0xffff
test ax, ax
mov dword [esi + 0x50], edi
je 0x4afe59
mov ecx, dword [esi + 0x1c]
lea edx, [esp + 0x34]
push edx
mov eax, dword [ecx]
call dword [eax + 0x24]
mov eax, dword [esi + 0x20]
mov dword [esp + 0x2c], 0
cmp eax, 3
jne 0x4afd9a
mov eax, dword [esp + 0x34]
push eax
call fcn.004b02f0
add esp, 4
neg al
sbb eax, eax
add eax, 2
mov dword [esi + 0x20], eax
jmp 0x4afda1
mov dword [esi + 0x20], 2
cmp dword [esi + 0x20], 1
jne 0x4afdb9
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x4afdbc
push 0x67
mov ecx, esi
call fcn.004af640
jmp 0x4afdbc
mov dword [esi + 0x28], edi
mov eax, dword [0x574900]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x34]
mov byte [esp + 0x2c], 5
push ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0x518dfc
call fcn.004b3a30
lea edx, [esp + 8]
lea ecx, [esp + 0xc]
push edx
mov byte [esp + 0x30], 6
call fcn.004afe80
push eax
lea ecx, [esi + 0x2c]
mov byte [esp + 0x30], 7
call fcn.004dc008
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 6
call fcn.004dbec1
lea ecx, [esi + 0x3c]
call fcn.004adaa0
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call fcn.004b39b0
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004dbec1
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 4
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x20], 0
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4
Function at 0x4b0070
Capabilities:
Access peb ldr_data
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x504e98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov eax, dword [0x574900]
push esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x1c]
push eax
mov byte [esp + 0x40], 4
mov dword [esp + 0x20], 0x518dfc
call fcn.004b3a30
lea ecx, [esp + 0x44]
mov dword [esp + 0x3c], 5
push ecx
lea ecx, [esp + 0x20]
call fcn.004b01c0
mov esi, dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
lea edx, [esp + 0x10]
lea eax, [esp + 0xc]
push edx
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0xc]
push ecx
push edx
push eax
mov byte [esp + 0x50], 6
call esi
test eax, eax
jne 0x4b0174
push 0x5730e8
lea ecx, [esp + 0x48]
call fcn.004d3b53
mov cx, word [0x518e40]
push ecx
lea ecx, [esp + 0x48]
call fcn.004dc2d9
lea edx, [esp + 0x10]
lea eax, [esp + 0xc]
push edx
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0xc]
push ecx
push edx
push eax
call esi
test eax, eax
jne 0x4b0174
lea ecx, [esp + 0x44]
mov byte [esp + 0x3c], 5
call fcn.004dbec1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], 0xffffffff
call fcn.004b39b0
xor eax, eax
pop esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret
mov esi, dword [esp + 4]
lea ecx, [esp + 0x44]
imul esi, dword [esp + 8]
imul esi, dword [esp + 0xc]
mov dword [esp + 0x18], 0
mov byte [esp + 0x3c], 5
call fcn.004dbec1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], 0xffffffff
call fcn.004b39b0
mov ecx, dword [esp + 0x34]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x3c
ret

Function at 0x4b01e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
push 0
push 0
call ebp
mov esi, eax
test esi, esi
jne 0x4b01f9
pop esi
xor al, al
pop ebp
ret
push ebx
lea eax, [esi + esi]
push edi
push eax
call fcn.004dbbfa
add esp, 4
mov edi, eax
mov bl, 1
push edi
push esi
call ebp
test eax, eax
jne 0x4b0225
push edi
xor bl, bl
call fcn.004dbc23
add esp, 4
mov al, bl
pop edi
pop ebx
pop esi
pop ebp
ret
mov ecx, dword [esp + 0x14]
push edi
call fcn.004dc058
push edi
call fcn.004dbc23
add esp, 4
mov al, bl
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x4b0240
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
neg eax
sbb eax, eax
neg eax
ret
Function at 0x4b02f0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x504ee0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x574900]
push ebx
mov dword [esp + 8], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 4]
push eax
mov byte [esp + 0x28], 4
mov dword [esp + 8], 0x518dfc
call fcn.004b3a30
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 5
push ecx
lea ecx, [esp + 8]
call fcn.004b01c0
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
lea ecx, [esp + 0x2c]
sete bl
call fcn.004dbec1
lea ecx, [esp + 4]
mov dword [esp + 0x24], 0xffffffff
call fcn.004b39b0
mov ecx, dword [esp + 0x1c]
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret

Function at 0x4b03a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x504f28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x574900]
push ebx
mov dword [esp + 8], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 4]
push eax
mov byte [esp + 0x28], 4
mov dword [esp + 8], 0x518dfc
call fcn.004b3a30
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 5
push ecx
lea ecx, [esp + 8]
call fcn.004b01c0
push 0x5730e8
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 6
call fcn.004d3b53
mov dx, word [0x518e40]
lea ecx, [esp + 0x2c]
push edx
call fcn.004dc2d9
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelW]
test eax, eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], 5
setne bl
call fcn.004dbec1
lea ecx, [esp + 4]
mov dword [esp + 0x24], 0xffffffff
call fcn.004b39b0
mov ecx, dword [esp + 0x1c]
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x4b3dc0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x505178
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [esp + 0x2c]
push ebx
push esi
push eax
lea ecx, [esp + 0x38]
call fcn.004dbf35
mov cx, word [0x518e40]
mov dword [esp + 0x2c], 0
push ecx
lea ecx, [esp + 0x38]
call fcn.004d3ba3
mov eax, dword [0x574900]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0xc]
push edx
mov byte [esp + 0x30], 5
mov dword [esp + 0x10], 0x518dfc
call fcn.004b3a30
mov esi, dword [esp + 0x34]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 6
call fcn.004ac700
mov ecx, dword [eax]
push esi
push ecx
mov byte [esp + 0x34], 7
call fcn.004bf8a1
add esp, 8
or esi, 0xffffffff
test eax, eax
je 0x4b3e7e
mov edx, dword [esp + 0x34]
push edx
call fcn.004b02c0
add esp, 4
cmp eax, esi
sete al
test al, al
jne 0x4b3e7e
xor bl, bl
jmp 0x4b3e80
mov bl, 1
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 6
call fcn.004dbec1
test bl, bl
jne 0x4b3f06
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
call fcn.004ac700
mov eax, dword [eax]
mov byte [esp + 0x2c], 8
push eax
call fcn.004b3dc0
add esp, 4
lea ecx, [esp + 8]
test al, al
sete bl
mov byte [esp + 0x2c], 6
call fcn.004dbec1
test bl, bl
jne 0x4b3ed8
mov ecx, dword [esp + 0x34]
push ecx
call fcn.004b04c0
add esp, 4
test al, al
jne 0x4b3f06
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call fcn.004b39b0
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], esi
call fcn.004dbec1
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call fcn.004b39b0
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], esi
call fcn.004dbec1
mov ecx, dword [esp + 0x24]
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x4b7550
Capabilities:
Get file attributes
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
cmp word [edi], 0x2a
je 0x4b7587
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4b7581
mov dword [esi + 0x208], 2
xor al, al
jmp 0x4b76df
cmp word [edi], 0x2a
jne 0x4b758c
mov dword [ebp + 8], esi
mov edi, esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x4b759b
mov byte [ebp + 0x10], 1
xor ebx, ebx
cmp byte [ebp + 0x10], bl
je 0x4b75b0
mov eax, SysReAllocStringLen
mov dword [ebp - 8], 2
jmp 0x4b75bc
mov eax, 0xc0000000
mov dword [ebp - 8], 4
push ebx
push 0x80
push 3
push ebx
push 1
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4b75ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ax, 0x20
jne 0x4b7651
mov dword [esi + 0x208], 3
jmp 0x4b757a
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 0xc], ebx
mov dword [ebp - 4], eax
je 0x4b7617
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x208], 6
jmp 0x4b757a
cmp byte [ebp + 0xc], bl
je 0x4b7677
cmp eax, ebx
jne 0x4b7635
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
movzx eax, byte [ebp + 0x10]
push 1
push eax
push ebx
push ebx
jmp 0x4b7674
push ebx
push ebx
push ebx
push dword [ebp - 8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, ebx
mov dword [ebp + 0xc], eax
jne 0x4b7660
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x208], 0x17
jmp 0x4b757a
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp + 0x10]
push dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push edi
jmp 0x4b76d8
push eax
call fcn.004b991c
cmp eax, ebx
pop ecx
je 0x4b7696
push dword [ebp - 4]
push ebx
push eax
call fcn.004b9930
add esp, 0xc
cmp eax, ebx
mov dword [ebp + 0xc], eax
jne 0x4b76ac
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x208], 1
jmp 0x4b757a
lea ecx, [ebp - 8]
push ebx
push ecx
push dword [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp + 0x10]
push dword [ebp - 4]
push dword [ebp + 0xc]
push ebx
push ebx
mov ecx, esi
call fcn.004b73bc
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4bb92f
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x58cccc]
push ebx
push esi
push edi
xor esi, esi
push 1
cmp eax, esi
pop edi
je 0x4bba99
push eax
call dword [sym.imp.ole32.dll_OleIsCurrentClipboard]
test eax, eax
jne 0x4bba99
mov ax, word [0x58ccee]
or dword [ebp - 0x14], 0xffffffff
mov word [ebp - 0x20], ax
mov eax, dword [0x58cccc]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
test eax, eax
jne 0x4bb9b8
mov eax, dword [0x58cccc]
lea edx, [ebp - 0xc]
push edx
lea edx, [ebp - 0x20]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp - 8]
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x4bb9bb
mov esi, dword [ebp - 0x24]
mov ebx, dword [sym.imp.USER32.dll_GetActiveWindow]
cmp esi, 0xffff
jbe 0x4bb9fb
shr esi, 0xa
push esi
lea eax, [ebp - 0x224]
push str.There_is__u_Kb_of_data_currently_in_the_Clipboard._nWould_you_like_to_leave_this_data_for_other_applications_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x224]
push 0x24
push str.HexView32
push eax
call ebx
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4bb9fe
push 6
pop eax
cmp eax, 6
jne 0x4bba8c
mov eax, dword [0x58cccc]
or dword [ebp - 0x14], 0xffffffff
lea edx, [ebp - 0xc]
xor esi, esi
push edx
lea edx, [ebp - 0x20]
mov word [ebp - 0x20], di
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
push esi
call dword [sym.imp.ole32.dll_OleSetClipboard]
cmp dword [ebp - 8], esi
jne 0x4bba71
lea eax, [ebp - 0x224]
push str.Failed_to_allocate_sufficient_memory_to_complete_this_operation._nClipboard_contents_has_been_cleared.
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
pop ecx
lea eax, [ebp - 0x224]
pop ecx
push 0x30
push str.HexView32
push eax
call ebx
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x4bba9b
call ebx
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
push dword [ebp - 8]
push edi
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x4bba99
cmp eax, 7
jne 0x4bba99
push 0
call dword [sym.imp.ole32.dll_OleSetClipboard]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4c2003
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4c2023
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004c2049
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4c2046
test byte [esp + 8], 2
je 0x4c2046
call fcn.004c20bc
mov dword [eax], 0xd
call fcn.004c20c5
mov dword [eax], 5
jmp 0x4c201f
xor eax, eax
ret
Function at 0x4ceb40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x506ab0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov eax, edx
mov dword [esp + 0xc], ecx
mov edx, dword [esp + 0x2c]
push esi
push edi
mov ecx, eax
call fcn.0041b960
mov ebx, eax
mov dword [esp + 0x18], ebx
push ebx
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x30], 0
call fcn.004cf2a0
mov esi, eax
push esi
call fcn.004dbbfa
mov ebp, eax
add esp, 4
mov dword [esp + 0x1c], ebp
push ebx
mov edx, esi
mov ecx, ebp
mov byte [esp + 0x30], 1
call fcn.004cf2a0
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x34], 0
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.004dbbfa
mov edx, eax
lea edi, [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x10], edx
mov edx, ebp
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.004ce9d0
test al, al
mov byte [esp + 0x34], al
je 0x4cec6d
mov ecx, dword [esp + 0x10]
xor edx, edx
push ecx
xor ecx, ecx
call fcn.004cf2e0
mov edi, eax
lea edx, [edi + edi]
push edx
call fcn.004dbbfa
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x10]
mov edx, edi
push eax
mov ecx, esi
mov byte [esp + 0x30], 3
call fcn.004cf2e0
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
push eax
call fcn.004dbc23
push esi
call fcn.004bf93a
lea edx, [eax + eax + 2]
push edx
call fcn.004dbbfa
mov edi, eax
push esi
push edi
call fcn.004bf83f
mov eax, dword [esp + 0x28]
push esi
mov byte [esp + 0x44], 2
mov dword [eax], edi
call fcn.004dbc23
add esp, 0x18
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x2c], 1
push ecx
call fcn.004dbc23
push ebp
mov byte [esp + 0x34], 0
call fcn.004dbc23
push ebx
mov dword [esp + 0x38], 0xffffffff
call fcn.004dbc23
mov ecx, dword [esp + 0x30]
mov al, byte [esp + 0x40]
add esp, 0xc
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x4d2c20
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.004c0990
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4d2ceb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x4d2ceb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4d2c9e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4d2ca9
or bh, 8
and edi, 0x8000000
je 0x4d2cc4
mov eax, dword [0x590d3c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x4d2ceb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d30c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4d30eb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4d310f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4d312a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20