joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4de224
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
cmp byte [eax - 1], 0
je 0x4de238
mov ebx, 3
jmp 0x4de23d
mov ebx, 1
push ebx
push 0
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00405958
push eax
push 0x4de268
mov eax, dword [0x4fa3fc]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_ShellExecuteA
pop ebx
pop ebp
ret

Function at 0x4de270
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov byte [ebp - 1], cl
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
call fcn.00405948
mov eax, dword [ebp - 0xc]
call fcn.00405948
lea esi, [ebp - 0x48]
xor eax, eax
push ebp
push 0x4de431
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x4de409
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 8]
call fcn.00488c7c
mov edx, dword [ebp - 0x4c]
lea eax, [ebp - 8]
call fcn.00405520
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 0xc]
call fcn.00488c7c
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0xc]
call fcn.00405520
lea eax, [ebp - 0x54]
push eax
mov ecx, 7
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.004059b8
mov eax, dword [ebp - 0x54]
mov edx, 0x4de448
call fcn.004058a4
je 0x4de35b
lea eax, [ebp - 0x58]
push eax
mov ecx, 8
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.004059b8
mov eax, dword [ebp - 0x58]
mov edx, 0x4de458
call fcn.004058a4
je 0x4de35b
lea eax, [ebp - 0x5c]
push eax
mov ecx, 6
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.004059b8
mov eax, dword [ebp - 0x5c]
mov edx, 0x4de46c
call fcn.004058a4
jne 0x4de36c
mov eax, dword [0x4fa16c]
cmp dword [eax], 4
jg 0x4de36c
push ebp
call fcn.004de224
pop ecx
mov eax, esi
xor ecx, ecx
mov edx, 0x3c
call fcn.00403ba0
mov dword [esi], 0x3c
mov dword [esi + 4], 0x40
mov eax, 0x4de474
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 8]
call fcn.00405958
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0xc]
call fcn.00405958
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x60]
call fcn.0040ce8c
mov eax, dword [ebp - 0x60]
call fcn.00405958
mov dword [esi + 0x18], eax
cmp byte [ebp - 1], 0
je 0x4de3c7
mov dword [esi + 0x1c], 3
jmp 0x4de3ce
mov dword [esi + 0x1c], 1
or eax, 0xffffffff
call fcn.00403bc0
mov dword [esi + 8], eax
mov ebx, dword [esi + 8]
test ebx, ebx
jbe 0x4de3ce
push ebx
call sub.user32.dll_IsWindow
test eax, eax
jne 0x4de3ce
push esi
call sub.shell32.dll_ShellExecuteExA
test eax, eax
je 0x4de409
cmp byte [ebp + 8], 0
je 0x4de409
mov eax, dword [esi + 0x38]
test eax, eax
je 0x4de409
push 0xffffffffffffffff
push eax
call sub.kernel32.dll_WaitForSingleObject
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4de438
lea eax, [ebp - 0x60]
mov edx, 6
call fcn.004054ac
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004054ac
ret
Function at 0x4de47c
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov eax, dword [0x4fa698]
cmp dword [eax], 2
je 0x4de495
mov byte [esp], 1
jmp 0x4de56a
mov byte [esp], 0
lea eax, [esp + 4]
push eax
push 0xffffffffffffffff
push 8
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
mov ebx, eax
test ebx, ebx
jne 0x4de4d3
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3f0
jne 0x4de4d3
lea eax, [esp + 4]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
mov ebx, eax
test ebx, ebx
je 0x4de56a
mov eax, 0x400
call fcn.00402e98
mov esi, eax
lea eax, [esp + 8]
push eax
push 0x400
push esi
push 2
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_GetTokenInformation
mov ebx, eax
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_CloseHandle_1
test ebx, ebx
je 0x4de563
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
push 0x4f99b4
call sub.advapi32.dll_AllocateAndInitializeSid
mov ebx, dword [esi]
dec ebx
test ebx, ebx
jl 0x4de559
inc ebx
xor edi, edi
mov eax, dword [esi + edi*8 + 4]
push eax
mov eax, dword [esp + 0x10]
push eax
call sub.advapi32.dll_EqualSid
test eax, eax
je 0x4de555
mov byte [esp], 1
jmp 0x4de559
inc edi
dec ebx
jne 0x4de53c
mov eax, dword [esp + 0xc]
push eax
call sub.advapi32.dll_FreeSid
mov eax, esi
call fcn.00402ec8
mov al, byte [esp]
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x4de674
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4de700
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4de6e3
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004de60c
mov eax, dword [ebp - 0xc]
call fcn.00405958
push eax
call sub.kernel32.dll_GetFileAttributesA
test eax, eax
jns 0x4de6c9
call fcn.00404574
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4de6ea
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_SetErrorMode
ret
Function at 0x4ebec4
Capabilities:
Hash data with md5

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x58
call fcn.00403ba0
mov dword [ebx], 0x67452301
mov dword [ebx + 4], 0xefcdab89
mov dword [ebx + 8], 0x98badcfe
mov dword [ebx + 0xc], 0x10325476
pop ebx
ret

Function at 0x4f154c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x4f1665
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea edx, [ebp - 0x14]
mov eax, dword [0x4fa3fc]
mov eax, dword [eax]
call fcn.004689d4
mov eax, dword [ebp - 0x14]
call fcn.00405958
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x4f164f
push 2
push 0
push 0xfffffffffffffff6
push esi
call sub.kernel32.dll_SetFilePointer_1
lea eax, [ebp - 0xf]
xor ecx, ecx
mov edx, 0xb
call fcn.00403ba0
push 0
lea eax, [ebp - 4]
push eax
push 0xa
lea eax, [ebp - 0xf]
push eax
push esi
call sub.kernel32.dll_ReadFile_1
mov edx, 0x4f1674
lea eax, [ebp - 0xf]
call fcn.0040cf84
test eax, eax
jne 0x4f1604
push 2
push 0
push 0xfffffffffffffff2
push esi
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [ebp - 4]
push eax
push 4
push 0x520328
push esi
call sub.kernel32.dll_ReadFile_1
mov bl, 1
jmp 0x4f1649
mov edx, 0x4f1680
lea eax, [ebp - 0xf]
call fcn.0040cf84
test eax, eax
jne 0x4f1649
push 2
push 0
push 0xfffffffffffffff2
push esi
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [ebp - 4]
push eax
push 4
push 0x520328
push esi
call sub.kernel32.dll_ReadFile_1
push 0
push esi
call sub.kernel32.dll_GetFileSize_1
sub eax, dword [0x520328]
mov dword [0x520328], eax
mov bl, 1
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f166c
lea eax, [ebp - 0x14]
call fcn.00405488
ret
Function at 0x467240
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x46000]
push edi
jmp 0x46725a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x467261
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x467250
mov eax, 1
add ebx, ebx
jne 0x467273
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x467284
jne 0x4672a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4672a3
dec eax
add ebx, ebx
jne 0x467290
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x467268
add ebx, ebx
jne 0x46729f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4672f5
xor ecx, ecx
sub eax, 3
jb 0x4672bb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x46732a
sar eax, 1
mov ebp, eax
jmp 0x4672c6
add ebx, ebx
jne 0x4672c6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x467294
inc ecx
add ebx, ebx
jne 0x4672d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x467294
add ebx, ebx
jne 0x4672e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4672d6
jne 0x4672f2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4672d6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x467314
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x467306
jmp 0x467256
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x467314
add edi, ecx
jmp 0x467256
pop esi
mov edi, esi
mov ecx, 0x99
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x467332
cmp byte [edi], 5
jne 0x467332
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x467337
lea edi, [esi + 0x65000]
mov eax, dword [edi]
or eax, eax
je 0x4673af
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x67000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x670f0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x467364
mov ecx, edi
jns 0x467393
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x670f4]
or eax, eax
je 0x4673a9
mov dword [ebx], eax
add ebx, 4
jmp 0x467381
call dword [esi + 0x67104]
mov ebp, dword [esi + 0x670f8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4673e3
sub esp, 0xffffff80
jmp 0x4026a0
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40ed64
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x40eae0
add edx, edi
add edi, edi
call fcn.0040ed7e
xor dword [ecx], ebx
inc ecx
inc edx
cmp ecx, eax
jne fcn.0040ed64
ret
Function at 0x401120
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59b521
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x704608]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
mov dword [eax], vtable.CAmkProgDlg.0
mov dword [ebp - 4], 2
mov ecx, dword [0x706610]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [0x706610]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
add ecx, 0xe4
call fcn.00541aa3
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
add ecx, 0xd0
call fcn.004287f0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
add ecx, 0x7c
call fcn.00541927
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
call fcn.00540ed7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4018d0
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59b618
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x704608]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x64], ecx
mov eax, dword [ebp + 8]
mov dword [0x706628], eax
cmp dword [0x706618], 0
je 0x401931
cmp dword [0x7067fc], 0
je 0x401931
cmp dword [0x706628], 0
je 0x401927
push 8
mov ecx, dword [ebp - 0x64]
call fcn.00547ca3
jmp 0x401931
push 0
mov ecx, dword [ebp - 0x64]
call fcn.00547ca3
cmp dword [0x706628], 0
je 0x401a34
mov ecx, dword [0x706610]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
call fcn.0042eaf0
mov ecx, dword [ebp - 0x64]
mov dword [ecx + 0xdc], eax
mov dword [ecx + 0xe0], edx
mov edx, dword [ebp - 0x64]
add edx, 0xd4
push edx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [ebp - 0x64]
add eax, 0xd0
push eax
mov ecx, dword [0x7062a4]
add ecx, 0x7c
call fcn.00545682
lea ecx, [ebp - 0x18]
call fcn.00427ef0
mov dword [ebp - 4], 0
push 2
push 0x50
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x1c]
push edx
push str.HK_PauseRun
call fcn.0041f060
add esp, 0x14
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.0041e110
add esp, 0xc
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00402580
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.004287f0
lea ecx, [ebp - 0x10]
call fcn.00427ef0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x18]
push edx
push str.Paused__Press__s_to_Continue
lea eax, [ebp - 0x10]
push eax
call fcn.00402b00
add esp, 0xc
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x64]
add ecx, 0x7c
call fcn.00547c01
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004287f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004287f0
jmp 0x401a95
mov edx, dword [ebp - 0x64]
mov eax, dword [edx + 0xd0]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
push ecx
mov ecx, dword [ebp - 0x64]
add ecx, 0x7c
call fcn.00547c01
mov edx, dword [ebp - 0x64]
mov eax, dword [edx + 0xd8]
push eax
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx + 0xd4]
push edx
call dword [sym.imp.USER32.dll_SetCursorPos]
call fcn.0042eaf0
mov ecx, dword [ebp - 0x64]
sub eax, dword [ecx + 0xdc]
sbb edx, dword [ecx + 0xe0]
mov dword [0x7068d0], eax
mov dword [0x7068d4], edx
mov edx, dword [0x706610]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x401ef0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [0x7062a4], 0
push 0
push 0
push 0
push 0x401f40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
cmp dword [0x7062a4], 0
jne 0x401f32
push 0x7065fc
push 0x32
push 0xa
call fcn.004058e0
add esp, 0xc
jmp 0x401f16
mov esp, ebp
pop ebp
ret
Function at 0x403250
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4032bc
lea ecx, [ebp - 0x1c]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov dword [ebp - 0x14], 1
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 2
push 0
push 0
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4032bc
xor eax, eax
jmp 0x4032d4
push 0x80020003
mov eax, dword [ebp + 8]
or eax, 0x10
push eax
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret

Function at 0x404750
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59b978
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x704608]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x10]
call fcn.00427ef0
mov dword [ebp - 4], 0
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x404820
mov eax, dword [0x70667c]
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40481a
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
movsx eax, byte [edx]
test eax, eax
je 0x404810
xor ecx, ecx
mov word [ebp - 0x20], cx
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.00404390
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jle 0x4047ee
movzx ecx, word [ebp - 0x20]
test ecx, ecx
jne 0x4047f0
jmp 0x404810
mov dx, word [ebp - 0x20]
mov word [ebp - 0x4e], dx
movzx eax, word [ebp - 0x4e]
push eax
lea ecx, [ebp - 0x10]
call fcn.00428890
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
jmp 0x4047bd
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 0x10]
sub eax, 0x10
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
push ecx
call fcn.004028e0
add esp, 4
mov dword [ebp - 0x58], eax
mov edx, dword [ebp - 0x58]
add edx, 0x10
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov ecx, dword [ebp - 0x24]
or ecx, 1
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004287f0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x40b8f0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c36b
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x704608]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x6c], ecx
push 0xa4
call fcn.00540e54
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
je 0x40b942
mov ecx, dword [ebp - 0x18]
call fcn.0040b580
mov dword [ebp - 0x70], eax
jmp 0x40b949
mov dword [ebp - 0x70], 0
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x6c]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.0040b9c0
mov eax, dword [ebp - 0x10]
add eax, 0x30
mov dword [ebp - 0x68], eax
push 1
mov ecx, dword [ebp - 0x68]
call fcn.0041ff80
mov ecx, dword [ebp - 0x68]
mov dword [ecx + 0xc], 0
mov edx, dword [ebp - 0x68]
mov dword [edx + 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0x30
push eax
mov ecx, dword [ebp - 0x6c]
add ecx, 0x30
call fcn.004057e0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x41d910
Capabilities:
Acquire debug privileges
Allocate thread local storage
Get common file path
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d586
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x704608]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xf0], ecx
push 0
push 0x7063f0
call fcn.0041d7f0
add esp, 8
push 0x7063f0
mov ecx, 0x7067dc
call fcn.00427fc0
push 0
push 0x1a
push 0x104
mov ecx, 0x7067d8
call fcn.00428410
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
mov ecx, 0x7067d8
call fcn.00427e10
push 1
push str.SeDebugPrivilege
call fcn.0041d880
add esp, 8
mov dword [0x7062d8], 0x114
push 0x7062d8
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
call fcn.0054cd5c
mov eax, dword [eax + 4]
mov dword [ebp - 0xc8], eax
call fcn.0054cd5c
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0xcc], ecx
mov edx, 0x80
movzx eax, dx
push eax
mov ecx, dword [ebp - 0xcc]
push ecx
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [0x7062d4], eax
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
push 0
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0xf0]
add eax, 0xa4
push eax
call sub.gdiplus.dll_GdiplusStartup
push 0
call fcn.0054bf2f
add esp, 4
push 0
lea ecx, [ebp - 0x98]
push ecx
call fcn.0042e400
add esp, 8
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x98]
mov eax, dword [edx - 0xc]
mov dword [ebp - 0xd0], eax
xor ecx, ecx
cmp dword [ebp - 0xd0], 0
sete cl
movzx edx, cl
test edx, edx
jne 0x41da67
mov eax, dword [ebp - 0x98]
push eax
call fcn.0042fad0
add esp, 4
jmp 0x41da74
push 0x5babec
call fcn.0042fad0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x98]
call fcn.004287f0
mov dword [ebp - 0xb0], vtable.VObj.0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xb0], vtable.ExprItem.0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xb0], vtable.AnyArray.0
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0xd8], ecx
mov edx, dword [ebp - 0xd8]
mov dword [edx], 0
mov eax, dword [ebp - 0xd8]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0xd8]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 0xb0]
mov eax, dword [edx + 4]
mov dword [0x7062d0], eax
lea ecx, [ebp - 0xb0]
call fcn.0041dbd0
push 0
call fcn.00562b8d
add esp, 4
push eax
call fcn.00560dd1
add esp, 4
mov ecx, dword [ebp - 0xf0]
mov edx, dword [ecx + 0x44]
push edx
call fcn.004f99b0
add esp, 4
call fcn.004734b0
call fcn.004c61d0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x706604], eax
push 0
lea ecx, [ebp - 0x94]
call fcn.00429c20
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0xf0]
lea ecx, [ebp - 0x94]
mov dword [eax + 0x20], ecx
push 0
mov edx, 0x66
movzx eax, dx
push eax
lea ecx, [ebp - 0x94]
call fcn.0054188f
push 0
lea ecx, [ebp - 0x94]
call fcn.00543f9e
mov ecx, dword [0x706604]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x706604], 0
mov dword [ebp - 0xb4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00540ed7
mov eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret