joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4035b0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp word [edi], 0x5a4d
je 0x4035ca
xor eax, eax
jmp 0x40374a
mov ebx, dword [edi + 0x3c]
add ebx, edi
cmp dword [ebx], 0x4550
je 0x4035de
xor eax, eax
jmp 0x40374a
cmp word [ebx + 0x14], 0xe0
jne 0x4035ee
cmp word [ebx + 0x18], 0x10b
je 0x4035f5
xor eax, eax
jmp 0x40374a
mov dword [0x4534ec], edi
mov ebx, dword [edi + 0x3c]
mov esi, edi
add ebx, esi
mov eax, dword [ebx + 0x78]
mov dword [ebp - 0x18], eax
push ebx
mov edx, dword [ebp - 0x18]
push edx
call fcn.00403534
add esp, 8
test eax, eax
jne 0x403620
xor eax, eax
jmp 0x40374a
mov edx, dword [0x4534ec]
push edx
push ebx
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.0040357c
add esp, 0xc
mov ebx, dword [ebx + 0x78]
test ebx, ebx
jne 0x403652
push 0x10
push 0
push str.Error_in_GetProcAddressDirectly__
push 0
call fcn.0040ef7a
xor eax, eax
jmp 0x40374a
add ebx, esi
mov edx, dword [ebx + 0x24]
add edx, esi
mov dword [ebp - 4], edx
mov ecx, dword [ebx + 0x20]
add ecx, esi
mov dword [ebp - 0xc], ecx
mov eax, dword [ebx + 0x1c]
add eax, esi
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0xc]
mov ecx, edx
shr ecx, 0x10
test cx, cx
je 0x40371c
xor esi, esi
mov eax, dword [ebp - 8]
mov edx, eax
mov dword [ebp - 0x28], edx
jmp 0x40370e
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
test eax, eax
je 0x403709
xor edx, edx
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp - 0x28]
mov eax, ecx
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0xc]
mov ecx, edx
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 4]
mov edx, eax
mov dword [ebp - 0x1c], edx
jmp 0x403700
mov ecx, dword [ebp - 0x1c]
movzx eax, word [ecx]
cmp esi, eax
jne 0x4036f5
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx]
add ecx, edi
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x4036f5
test cl, cl
je 0x4036ea
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x4036f5
add eax, 2
add edx, 2
test cl, cl
jne 0x4036ce
jne 0x4036f5
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
add eax, edi
jmp 0x40374a
inc dword [ebp - 0x14]
add dword [ebp - 0x20], 4
add dword [ebp - 0x1c], 2
mov edx, dword [ebx + 0x18]
dec edx
cmp edx, dword [ebp - 0x14]
jae 0x4036b4
inc esi
add dword [ebp - 0x28], 4
mov ecx, dword [ebx + 0x14]
dec ecx
cmp esi, ecx
jbe 0x40368c
jmp 0x403748
xor esi, esi
mov eax, dword [ebp - 8]
jmp 0x403740
mov ecx, dword [ebx + 0x10]
add ecx, esi
cmp edx, ecx
jne 0x40373c
cmp dword [eax], 0
je 0x40373c
mov edx, dword [eax]
shl edx, 6
add edi, edx
mov eax, edi
jmp 0x40374a
inc esi
add eax, 4
mov ecx, dword [ebx + 0x14]
dec ecx
cmp esi, ecx
jbe 0x403723
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403918
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
or al, al
je 0x403931
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x403c60
Capabilities:
Check for software breakpoints
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, fcn.00401aa4
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov al, byte [esi]
cmp al, 0xcc
je 0x403d13
mov eax, 0x401734
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x403d13
mov eax, 0x403ecc
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x403d13
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
xor ebx, ebx
mov edi, 0x20
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov edx, dword [edx]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
jmp 0x403d13
add ebx, 0x9e3779b9
mov eax, ecx
shl eax, 4
add eax, dword [ebp - 0x10]
lea esi, [ebx + ecx]
xor eax, esi
mov esi, ecx
shr esi, 5
add esi, dword [ebp - 0x14]
xor eax, esi
add edx, eax
mov eax, edx
shl eax, 4
add eax, dword [ebp - 0x18]
lea esi, [ebx + edx]
xor eax, esi
mov esi, edx
shr esi, 5
add esi, dword [ebp - 0x1c]
xor eax, esi
add ecx, eax
mov eax, edi
add edi, 0xffffffff
test eax, eax
jg 0x403cdb
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov edx, dword [ebp + 8]
mov dword [edx + 4], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403d30
Capabilities:
Check for software breakpoints
Decrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, fcn.00401aa4
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov al, byte [esi]
cmp al, 0xcc
je 0x403de6
mov eax, 0x401734
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x403de6
mov eax, fcn.00403d30
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x403de6
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ebx, 0xc6ef3720
mov edi, 0x20
mov ecx, dword [edx]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
jmp 0x403de6
mov eax, ecx
shl eax, 4
add eax, dword [ebp - 0x18]
lea esi, [ebx + ecx]
xor eax, esi
mov esi, ecx
shr esi, 5
add esi, dword [ebp - 0x1c]
xor eax, esi
sub edx, eax
mov eax, edx
shl eax, 4
add eax, dword [ebp - 0x10]
lea esi, [ebx + edx]
xor eax, esi
mov esi, edx
shr esi, 5
add esi, dword [ebp - 0x14]
xor eax, esi
sub ecx, eax
sub ebx, 0x9e3779b9
mov eax, edi
add edi, 0xffffffff
test eax, eax
jg 0x403dae
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404010
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov eax, dword [ebp + 8]
cmp ecx, edx
jbe 0x404028
xor byte [eax], 0xf5
inc edx
inc eax
cmp ecx, edx
ja 0x40401f
pop ebp
ret

Function at 0x40cd88
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0x452678
sub eax, eax
test esi, esi
je 0x40ce68
sub eax, 1
test ecx, ecx
je 0x40ce66
test esi, 3
je 0x40cdc6
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x40cdab
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x40ce4d
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x40cdd4
mov ecx, edx
test ecx, ecx
je 0x40ce66
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x40ce53
not eax
mov dword [esp + 0x1c], eax
popal
ret
Function at 0x40d14c
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0040d1cf
jae 0x40d15a
xor ecx, ecx
call fcn.0040d1cf
jae 0x40d189
xor eax, eax
call fcn.0040d1cf
jae 0x40d199
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0040d1cf
adc al, al
jae 0x40d17b
jne 0x40d1c5
stosb byte es:[edi], al
jmp 0x40d15d
call fcn.0040d1db
sub ecx, ebx
jne 0x40d1a2
call fcn.0040d1d9
jmp 0x40d1c1
lodsb al, byte [esi]
shr eax, 1
je 0x40d1eb
adc ecx, ecx
jmp 0x40d1be
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.0040d1d9
cmp eax, 0x7d00
jae 0x40d1be
cmp ah, 5
jae 0x40d1bf
cmp eax, 0x7f
ja 0x40d1c0
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x40d15d
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret

Function at 0x40d518
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor ecx, ecx
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov esi, dword [ebx]
mov eax, dword [eax]
mov edx, dword [edx + 4]
mov dword [ebp - 4], esi
mov esi, dword [ebx + 4]
mov dword [ebp - 8], esi
mov esi, dword [ebx + 8]
mov dword [ebp - 0xc], esi
mov ebx, dword [ebx + 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, 0x20
jmp 0x40d587
add ecx, 0x9e3779b9
mov esi, edx
shl esi, 4
add esi, dword [ebp - 4]
lea edi, [ecx + edx]
xor esi, edi
mov edi, edx
shr edi, 5
add edi, dword [ebp - 8]
xor esi, edi
add eax, esi
mov esi, eax
shl esi, 4
add esi, dword [ebp - 0xc]
lea edi, [ecx + eax]
xor esi, edi
mov edi, eax
shr edi, 5
add edi, dword [ebp - 0x10]
xor esi, edi
add edx, esi
mov esi, ebx
add ebx, 0xffffffff
test esi, esi
jg 0x40d54f
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4666fc
Capabilities:
Packed with generic packer

Disassembly:
jmp 0x46a2a4
push 0x17e3068f
nop
bswap edx
mov edx, dword [esp + 4]
pushal
push dword [esp]
jmp 0x465928
Function at 0x473339
Capabilities:
Resolve function by parsing pe exports

Disassembly:
lea esp, [esp + 0x3c]
jp 0x4764b4
push esi
push dword [esp]
mov dword [esp + 4], 0x47a747
mov byte [esp], 0xf5
push dword [esp]
mov byte [esp], ch
call fcn.0047339d
push 0x25a08bc0
mov dword [esp], 0x47a747
call 0x47a9ff
leave
push edi
push ebp
movsd dword es:[edi], dword [esi]
push edi
xchg esp, eax
stosb byte es:[edi], al
jno 0x476529
xor byte [edi], bl
pop eax
invalid
push 0xbd4b544e
pop ss
mov edx, 0x319ff658
int1
and eax, 0xdc93b24c
and eax, dword [edx + 0x40e005a3]
sub bh, bl
jae 0x476512
fld st(2)
xor byte [ebp - 0x79], bh
lar ebp, word [esi]
les edi, [ecx + ebp*2 - 0x6bc08e3d]
invalid

Function at 0x47335e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
pushal
mov dword [esp + 0x20], edi
aad 0xef
mov dword [esp + 0x1c], ebx
neg ah
rol ax, cl
bsr ax, dx
sub al, bh
mov dword [esp + 0x18], edx
and ax, si
neg ah
daa
mov eax, dword [ebp + 8]
cmc
test eax, eax
pushal
push eax
pushfd
jmp 0x47a45b
lea esp, [esp + 0x40]
je 0x47b631
ror dx, cl
rcl dl, 5
mov esi, dword [eax + 0x3c]
and dl, bl
add esi, eax
sal dl, 1
xor dl, 0xb0
mov edx, dword [esi + 0x78]
test bh, cl
stc
push esp
mov word [esp], 0xdb68
test edx, edx
call fcn.004789b7
test edi, edx
bt eax, 0x19
movsx edx, cl
sub eax, eax
Function at 0x4012ca
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_PostMessageA]
push 1
push ebx
push ebx
push ebx
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
mov ecx, dword [0x473b34]
mov eax, 0x8000
test word [ecx + 4], ax
je 0x401344
mov byte [ebp - 8], 0x10
mov byte [ebp - 7], 0x11
mov byte [ebp - 6], 0x12
mov byte [ebp - 5], 1
mov byte [ebp - 4], 2
xor edi, edi
xor esi, esi
movzx eax, byte [ebp + esi - 8]
push eax
call fcn.0043382e
test al, al
jne 0x40132e
inc esi
cmp esi, 5
jb 0x401317
jmp 0x401336
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 5
je 0x401344
inc edi
cmp edi, 0xc8
jl 0x401315
mov eax, dword [0x473b34]
movzx esi, word [eax + 4]
and esi, 0x19
je 0x4013fb
push dword [0x473b30]
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x473b28], eax
cmp eax, ebx
jne 0x401375
push 0xfffffffffffffffe
call fcn.0044e825
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4013fb
dec esi
je 0x40136e
sub esi, 7
je 0x4013e4
sub esi, 8
jne 0x4013fb
push dword [0x473b30]
mov esi, dword [sym.imp.USER32.dll_FindWindowA]
mov edi, 0x46095c
push edi
call esi
cmp eax, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jne 0x4013cb
push 0x19
push dword [0x473b28]
call ebx
cmp eax, 0x102
jne 0x4013f2
push dword [0x473b30]
push edi
call esi
test eax, eax
je 0x4013ad
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push 0xffffffffffffffff
push dword [0x473b28]
call ebx
jmp 0x4013f2
push 0xffffffffffffffff
push dword [0x473b28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x40136e
push 2
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401acd
Capabilities:
Allocate or change rwx memory

Disassembly:
cmp dword [0x473c00], 0
jne 0x401af0
push 0x40
push 0x3000
push dword [0x474140]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x473bfc], eax
mov ecx, dword [0x473c00]
mov eax, dword [0x473bfc]
mov edx, dword [0x474140]
add eax, ecx
add ecx, 0xa
add edx, 0xfffffff6
mov dword [0x473c00], ecx
cmp ecx, edx
jbe 0x401b1a
and dword [0x473c00], 0
cmp byte [esp + 0xc], 0
mov cx, word [esp + 8]
mov word [eax + 1], cx
mov cx, word [esp + 4]
mov word [eax + 3], cx
mov byte [eax], 0x68
mov byte [eax + 5], 0xe9
mov ecx, 0x402de9
jne 0x401b44
mov ecx, 0x402dd8
sub ecx, eax
sub ecx, 0xa
mov dword [eax + 6], ecx
ret 0xc
Function at 0x4024e7
Capabilities:
Check mutex on windows

Disassembly:
mov eax, 0x45cc2b
call fcn.0044e550
sub esp, 0x34
push ebx
push esi
push 1
xor ebx, ebx
push ebx
push dword [ebp + 0x14]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call fcn.004309ee
mov esi, eax
add esp, 0x14
cmp esi, ebx
jne 0x402523
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
lea ecx, [ebp - 0x40]
call fcn.00401be7
mov dword [ebp - 4], ebx
push dword [0x474160]
lea ecx, [ebp - 0x40]
push dword [ebp + 0xc]
call fcn.0043811a
push dword [ebp - 0x40]
call fcn.004317e6
mov dword [esp], str.QME_temp_file
push ebx
push ebx
mov byte [ebp - 0xd], al
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x402589
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.004014ed
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401bf7
jmp 0x402513
cmp byte [ebp - 0xd], bl
je 0x4025b9
push ebx
push 0xffffffffffffffff
push ebx
push dword [ebp - 0x40]
lea ecx, [ebp - 0x30]
call fcn.004390aa
cmp eax, dword [ebp - 0x14]
jne 0x4025b9
push dword [ebp - 0x14]
push dword [ebp - 0x30]
push esi
call fcn.0044eda5
add esp, 0xc
test eax, eax
je 0x40263f
lea ecx, [ebp - 0x20]
call fcn.00401974
mov byte [ebp - 4], 2
push ebx
push ebx
push 2
push dword [ebp - 0x40]
lea ecx, [ebp - 0x20]
call fcn.004362c8
test eax, eax
jne 0x4025f7
test dword [ebp + 0x10], 0x100
je 0x4025e6
cmp byte [ebp - 0xd], bl
jne 0x402633
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.0040199e
jmp 0x402570
push dword [ebp - 0x14]
lea ecx, [ebp - 0x20]
push esi
call fcn.00435a91
test al, al
jne 0x402633
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.0040199e
xor esi, esi
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.004014ed
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401bf7
mov eax, esi
jmp 0x402515
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.0040199e
test byte [ebp + 0x10], 1
je 0x402653
push ebx
push ebx
push dword [ebp - 0x40]
call fcn.00436f29
mov esi, eax
jmp 0x402615
xor esi, esi
inc esi
jmp 0x402615
Function at 0x403a90
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov edi, ecx
mov ecx, 0x473b90
call fcn.004039da
test al, al
je 0x403ab3
push 3
pop ebx
jmp 0x403abc
mov ecx, edi
call fcn.00403a26
mov ebx, eax
push 5
push dword [ebp + 0x18]
push dword [ebp + 8]
call fcn.0042d4b0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x403b08
mov ecx, esi
call fcn.004032bf
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x38], ecx
mov dword [esi + 0x34], ebx
mov ecx, dword [edi + 0x18]
mov dword [esi + 0x40], ecx
inc dword [edi + 0x18]
test byte [ebp + 0x14], 8
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x44], ecx
mov ecx, dword [edi]
mov dword [ebp - 4], eax
mov dword [ecx + ebx*4], esi
jne 0x403b1f
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x403b1f
cmp dword [ebp + 0x10], 0
je 0x403b1f
mov ecx, dword [ebp + 0x10]
call fcn.004032e4
push dword [ebp + 0x10]
call sym.qmmacro.exe_q_free
pop ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x404250
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x45cd27
call fcn.0044e550
push ecx
mov edx, ecx
xor eax, eax
mov dword [edx], 0x460e40
push esi
push edi
mov dword [ebp - 0x10], edx
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov dword [ebp - 4], eax
lea edi, [edx + 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov byte [ebp - 4], 1
lea esi, [edx + 0x30]
push 7
pop ecx
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword fs:[0x24]
mov dword [esi + 0x14], eax
mov byte [ebp - 4], 2
movzx eax, byte [ebp + 8]
or dword [edx + 0x18], 0xffffffff
mov dword [edx + 4], 1
mov dword [edx + 0x14], eax
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, edx
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x404989
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x45cd91
call fcn.0044e550
push ecx
xor edx, edx
push edi
mov dword [ebp - 0x10], ecx
mov dword [ecx], edx
mov dword [ecx + 4], edx
mov dword [ecx + 8], edx
mov dword [ebp - 4], edx
xor eax, eax
lea edi, [ecx + 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov byte [ebp - 4], 1
mov dword [ecx + 0x1c], edx
mov byte [ebp - 4], 2
xor eax, eax
lea edi, [ecx + 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov byte [ebp - 4], 3
xor eax, eax
lea edi, [ecx + 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov byte [ebp - 4], 4
xor eax, eax
lea edi, [ecx + 0x40]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
or dword [ebp - 4], 0xffffffff
mov eax, ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
leave
ret
Function at 0x4049ed
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x45cd91
call fcn.0044e550
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 4
call fcn.00432927
mov byte [ebp - 4], 3
lea ecx, [esi + 0x30]
call fcn.0042b651
mov byte [ebp - 4], 2
lea ecx, [esi + 0x20]
call fcn.0042b651
mov byte [ebp - 4], 1
push dword [esi + 0x1c]
call sym.qmmacro.exe_q_free
pop ecx
mov byte [ebp - 4], 0
lea ecx, [esi + 0xc]
call fcn.0042b651
or dword [ebp - 4], 0xffffffff
push dword [esi]
call sym.qmmacro.exe_q_free
pop ecx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x405341
Capabilities:
Open clipboard

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
cmp byte [ebp + 0xc], al
push esi
sete al
push edi
xor esi, esi
dec eax
and eax, 0x64
add eax, 0x64
mov edi, eax
test edi, edi
jle 0x40537b
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x405394
mov ecx, dword [ebp + 8]
lea eax, [esi + 0xa]
push eax
call fcn.004052e3
inc esi
cmp esi, edi
jl 0x40535d
cmp byte [ebp + 0xc], 0
je 0x40538e
mov ecx, dword [ebp + 8]
push 0x212
call fcn.004052f9
xor al, al
pop edi
pop esi
pop ebp
ret
mov al, 1
jmp 0x405390

Function at 0x405398
Capabilities:
Read clipboard data

Disassembly:
mov eax, 0x45da10
call fcn.0044e550
sub esp, 0x10
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x4053b1
mov eax, esi
jmp 0x4053b4
push 0xd
pop eax
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp + 0x10], eax
test eax, eax
jne 0x4053c9
xor al, al
jmp 0x40549a
push ebx
mov ebx, dword [ebp + 0xc]
push edi
cmp esi, 2
jne 0x405423
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ebp - 4], 0
push 0
push dword [ebx]
push dword [ebp + 0x10]
call sym.qmmacro.exe_SaveBitmap
add esp, 0xc
test eax, eax
je 0x405404
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0042b651
jmp 0x405496
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp + 8]
push 0x1f9
call fcn.004052f9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0042b651
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
jne 0x405436
xor al, al
jmp 0x405498
test esi, esi
jne 0x405444
push edi
mov ecx, ebx
call fcn.0042c1fe
jmp 0x40548d
cmp esi, 0xd
jne 0x405456
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
add esi, esi
jmp 0x405473
cmp esi, 1
je 0x40546b
cmp esi, 7
je 0x40546b
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalSize]
jmp 0x405471
push edi
call fcn.0042e7b0
mov esi, eax
push 2
push esi
mov ecx, ebx
call fcn.0042b7c7
test esi, esi
je 0x40548d
push esi
push edi
push dword [ebx]
call fcn.0044ea40
add esp, 0xc
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov al, 1
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x4055e0
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push edi
mov edi, ecx
push 0xd
mov byte [edi + 0x14], 1
mov dword [edi + 0x18], eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp + 8], eax
test eax, eax
je 0x40563e
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x40563d
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
push 2
add esi, esi
push esi
mov ecx, edi
call fcn.0042b7c7
test esi, esi
je 0x405633
push esi
push ebx
push dword [edi]
call fcn.0044ea40
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop esi
pop ebx
pop edi
pop ebp
ret 4

Function at 0x40582a
Capabilities:
Write clipboard data

Disassembly:
mov eax, 0x45ce2b
call fcn.0044e550
push ecx
push ecx
push ebx
push esi
push 0xffffffffffffffff
push str.qm_mutex_key
mov esi, ecx
push 0x473b4c
lea ecx, [ebp - 0x14]
call fcn.00436695
xor ebx, ebx
mov dword [ebp - 4], ebx
push ebx
push 1
push esi
call fcn.00405341
add esp, 0xc
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [ebp + 8]
mov byte [ebp - 0xd], 1
cmp dword [eax], ebx
je 0x405891
lea ecx, [ebp + 0xc]
push ecx
push eax
call fcn.004054a7
pop ecx
pop ecx
cmp eax, ebx
je 0x40588e
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x405891
mov byte [ebp - 0xd], bl
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp byte [ebp - 0xd], bl
jne 0x4058a8
push 0x213
mov ecx, esi
call fcn.004052f9
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], ebx
pop esi
pop ebx
je 0x4058bc
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 8