joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408f60
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
mov ebx, ecx
mov eax, edx
push 0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U_WithStatus]
test eax, eax
js 0x40905e
lea eax, [ebp - 0x18]
mov edx, 1
push eax
push ecx
push 0
push 4
push 0x80
push 7
push 0x130089
mov ecx, ebx
call fcn.00408b20
mov esi, eax
test esi, esi
jns 0x408fd9
lea eax, ds:[ebp - 0x14]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414c55
mov esp, ebp
pop ebp
ret
movzx edi, word [ebp - 0x14]
add edi, 0x12
call fcn.00407de0
push edi
push 0xc
push eax
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
mov byte [esi], 1
mov dword [esi + 4], 0
movzx ecx, word [ebp - 0x14]
mov dword [esi + 8], ecx
movzx ecx, word [ebp - 0x14]
push ecx
push dword [ebp - 0x10]
lea ecx, [esi + 0xc]
push ecx
call fcn.00416670
add esp, 0xc
lea eax, [ebp - 0xc]
push 0xa
push edi
mov edi, dword [ebp - 0x18]
push esi
push eax
push edi
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
mov esi, eax
cmp esi, 0xc00000d4
jne 0x40904b
mov edx, dword [ebp - 0x1c]
mov ecx, ebx
call fcn.00408c00
mov esi, eax
test esi, esi
js 0x40904b
mov ecx, ebx
call fcn.00408d40
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
push edi
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414c55
mov esp, ebp
pop ebp
ret

Function at 0x409080
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov eax, edx
xor esi, esi
xor edx, edx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
push edi
test eax, eax
jne 0x4090dc
mov edi, edi
test ecx, ecx
jne 0x4090dc
mov eax, 0xc000000d
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00414c55
mov esp, ebp
pop ebp
ret 4
xor edi, edi
test eax, eax
je 0x409114
test ecx, ecx
jne 0x409114
lea ecx, [ebp - 0x40]
push ecx
push ecx
push edi
push 0x204000
push 0x80
push 7
push 0x100
lea edx, [edi + 1]
mov ecx, eax
call fcn.00408b20
test eax, eax
js 0x40913d
mov esi, dword [ebp - 0x40]
mov ecx, esi
mov edi, ecx
push 4
push 0x28
lea eax, [ebp - 0x34]
mov dword [ebp - 0x14], 0x80
push eax
lea eax, [ebp - 0x3c]
push eax
push ecx
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
mov ebx, eax
test edi, edi
je 0x40913b
push esi
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, ebx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414c55
mov esp, ebp
pop ebp
ret 4
Function at 0x409150
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [edx]
mov edx, dword [edx + 4]
push 0xe
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push 8
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0xc], edx
push eax
push ecx
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414c55
mov esp, ebp
pop ebp
ret

Function at 0x4091a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0
push 0x4000
push ecx
mov ebx, edx
mov dword [ebp - 0x14], esi
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov dword [ebp - 0x18], eax
test eax, eax
js 0x4092f0
push edi
test ebx, ebx
je 0x4091fc
mov eax, 0x7ffffffe
mov ecx, ebx
cmp word [ecx], 0
je 0x4091f1
add ecx, 2
sub eax, 1
jne 0x4091e3
add eax, eax
mov edi, 0xfffffffc
sub edi, eax
jmp 0x4091fe
xor edi, edi
mov eax, dword [ebp - 8]
mov ecx, 0x7ffffffe
mov dword [ebp - 0xc], eax
lea esp, [esp]
cmp word [eax], 0
je 0x40921e
add eax, 2
sub ecx, 1
jne 0x409210
lea eax, [ecx + ecx]
mov esi, edi
sub esi, eax
mov eax, 2
sub esi, 4
cmove esi, eax
mov dword [ebp - 0x10], esi
call fcn.00407de0
lea ecx, ds:[esi + 0x12]
push ecx
push 0xc
push eax
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
lock inc dword [eax + 4]
mov ecx, dword [ebp - 0x10]
lea esi, [eax + 8]
mov dword [eax], 0
lea edx, [esi + 8]
mov eax, dword [ebp - 0xc]
mov dword [esi], ecx
mov dword [esi + 4], edx
test eax, eax
je 0x40927d
push ecx
push eax
push edx
call fcn.00416670
mov ecx, dword [esi + 4]
add esp, 0xc
mov eax, dword [esi]
xor edx, edx
mov word [ecx + eax], dx
jmp 0x409282
xor eax, eax
mov word [edx], ax
mov eax, dword [esi]
mov ecx, dword [esi + 4]
shr eax, 1
inc eax
mov edx, eax
lea esp, [esp]
cmp word [ecx], 0
je 0x40929e
add ecx, 2
sub eax, 1
jne 0x409290
mov ecx, dword [esi + 4]
sub edx, eax
lea eax, [edx + edx]
xor edx, edx
mov dword [esi], eax
mov word [eax + ecx], dx
test ebx, ebx
je 0x4092cc
mov ecx, dword [esi]
lea eax, [edi + 2]
push eax
mov eax, dword [esi + 4]
shr ecx, 1
push ebx
lea eax, [eax + ecx*2]
push eax
call fcn.00416670
add esp, 0xc
add dword [esi], edi
mov eax, dword [ebp - 0x14]
push dword [ebp - 8]
mov dword [eax], esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414c55
mov esp, ebp
pop ebp
ret 4
mov ecx, dword ds:[ebp - 4]
mov dword [esi], 0
xor ecx, ebp
pop esi
pop ebx
call fcn.00414c55
mov esp, ebp
pop ebp
ret 4
Function at 0x40a980
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
push 0
mov eax, ecx
push 0x1001
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov dword ds:[ebp - 4], eax
test eax, eax
jne 0x40a9bc
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov esp, ebp
pop ebp
ret 4
push ebx
lea eax, [eax*2 - 2]
push esi
test eax, eax
mov esi, 2
push edi
cmovne esi, eax
call fcn.00407de0
lea ecx, ds:[esi + 0x12]
push ecx
push 0xc
push eax
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
lea eax, [edi + 4]
lock inc dword [eax]
push dword [ebp - 4]
lea ebx, [edi + 8]
mov dword [edi], 0
lea ecx, [ebx + 8]
mov dword [ebx], esi
push ecx
push 0x1001
push dword [ebp - 8]
xor eax, eax
mov dword [ebx + 4], ecx
mov word [ecx], ax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
mov eax, dword [ebp + 8]
je 0x40aa2a
pop edi
mov dword [eax], ebx
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [eax], 0
lea ecx, [edi + 4]
or eax, 0xffffffff
lock xadd dword [ecx], eax
add eax, 0xffffffff
jne 0x40aa5f
mov esi, dword [edi]
test esi, esi
je 0x40aa50
push ebx
mov ecx, esi
call dword [0x427534]
call esi
call fcn.00407de0
push edi
push 0
push eax
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword fs:[0x18]
pop edi
pop esi
pop ebx
mov eax, dword [eax + 0x34]
mov esp, ebp
pop ebp
ret 4
Function at 0x40aa80
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
lea eax, [esp + 0x28]
mov byte [esp + 0x13], 0
push eax
push ecx
mov esi, edx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edx, eax
mov dword [esp + 0x14], edx
test edx, edx
jne 0x40aacb
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00414c55
mov esp, ebp
pop ebp
ret 4
mov ecx, 0x7ffffffe
mov eax, esi
cmp word [eax], 0
je 0x40aae5
add eax, 2
sub ecx, 1
jne 0x40aad2
lea eax, ds:[ecx + ecx]
mov dword [esp + 0x1c], esi
mov ebx, 0xfffffffc
xor edi, edi
sub ebx, eax
mov dword [esp + 0x18], ebx
cmp dword [esp + 0x28], edi
jle 0x40abc2
lea ebx, [ebx]
mov esi, dword [edx + edi*4]
mov ecx, 0x7ffffffe
mov eax, esi
lea ebx, [ebx]
cmp word [eax], 0
je 0x40ab2e
add eax, 2
sub ecx, 1
jne 0x40ab20
lea eax, [ecx + ecx]
mov ecx, 0xfffffffc
sub ecx, eax
cmp ecx, 4
jb 0x40abb3
movzx eax, word [esi]
mov edx, eax
cmp eax, 0x2f
je 0x40ab4c
cmp edx, 0x2d
jne 0x40abaf
movzx eax, word [esi + 2]
add esi, 2
add ecx, 0xfffffffe
mov edx, eax
cmp eax, 0x2d
jne 0x40ab60
add esi, 2
cmp edx, 0x2d
lea eax, [ecx - 2]
cmovne eax, ecx
cmp eax, ebx
jb 0x40abaf
push 1
lea edx, [esp + 0x1c]
mov dword [esp + 0x28], esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], ebx
call fcn.00409aa0
test al, al
je 0x40abaf
mov eax, ebx
mov byte [esp + 0x13], 1
shr eax, 1
movzx eax, word [esi + eax*2]
test ax, ax
je 0x40abbe
jmp 0x40aba0
cmp eax, 0x3a
je 0x40abbe
cmp eax, 0x3d
je 0x40abbe
cmp eax, 0x20
je 0x40abbe
mov edx, dword [esp + 0x14]
inc edi
cmp edi, dword [esp + 0x28]
jl 0x40ab10
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0x2c]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00414c55
mov esp, ebp
pop ebp
ret 4
Function at 0x40ac00
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.00415be0
add esp, 0xc
push 0
push 1
push 0x433db8
call dword [sym.imp.ntdll.dll_RtlRunOnceBeginInitialize]
jmp 0x40ac40
test eax, eax
jns 0x40ae86
push 0
push 0
push 0x433db8
call dword [sym.imp.ntdll.dll_RtlRunOnceBeginInitialize]
jmp 0x40ac60
cmp eax, 0x103
jne 0x40ae86
lea eax, ds:[ebp - 0x120]
mov dword [ebp - 0x120], 0x11c
push eax
call dword [sym.imp.ntdll.dll_RtlGetVersion]
test eax, eax
js 0x40ae76
mov eax, dword [ebp - 0x11c]
cmp eax, 6
jne 0x40accc
mov eax, dword ds:[ebp - 0x118]
cmp eax, 3
jne 0x40acb4
mov dword [0x433d94], 0x603
jmp 0x40ae76
cmp eax, 4
jne 0x40ae6c
mov dword [0x433d94], 0xa00
jmp 0x40ae76
cmp eax, 0xa
jne 0x40ae6c
cmp dword ds:[ebp - 0x118], 0
jne 0x40ae6c
mov eax, dword [ebp - 0x114]
cmp eax, 0x5867
jb 0x40ad05
mov dword [0x433d94], 0xb02
lea ecx, [ecx]
jmp 0x40ae76
cmp eax, 0x585d
jb 0x40ad1b
mov dword [0x433d94], 0xb01
jmp 0x40ae76
jmp 0x40ad20
cmp eax, 0x55f0
jb 0x40ad36
mov dword [0x433d94], 0xb00
jmp 0x40ae76
cmp eax, 0x4f7c
jb 0x40ad4c
mov dword [0x433d94], 0xa0e
jmp 0x40ae76
cmp eax, 0x4a65
jb 0x40ad65
mov dword [0x433d94], 0xa0d
lea ecx, [ecx]
jmp 0x40ae76
cmp eax, 0x4a64
jb 0x40ad7b
mov dword [0x433d94], 0xa0c
jmp 0x40ae76
jmp 0x40ad80
cmp eax, 0x4a63
jb 0x40ad96
mov dword [0x433d94], 0xa0b
jmp 0x40ae76
cmp eax, 0x4a62
jb 0x40adac
mov dword [0x433d94], 0xa0a
jmp 0x40ae76
cmp eax, 0x4a61
jb 0x40adc5
mov dword [0x433d94], 0xa09
lea ecx, [ecx]
jmp 0x40ae76
cmp eax, 0x47bb
jb 0x40addb
mov dword [0x433d94], 0xa08
jmp 0x40ae76
jmp 0x40ade0
cmp eax, 0x47ba
jb 0x40adf6
mov dword [0x433d94], 0xa07
jmp 0x40ae76
cmp eax, 0x4563
jb 0x40ae09
mov dword [0x433d94], 0xa06
jmp 0x40ae76
cmp eax, 0x42ee
jb 0x40ae1c
mov dword [0x433d94], 0xa05
jmp 0x40ae76
lea esp, [esp]
cmp eax, 0x3fab
jb 0x40ae33
mov dword [0x433d94], 0xa04
jmp 0x40ae76
cmp eax, 0x3ad7
jb 0x40ae46
mov dword [0x433d94], 0xa03
jmp 0x40ae76
cmp eax, 0x3839
jb 0x40ae59
mov dword [0x433d94], 0xa02
jmp 0x40ae76
cmp eax, 0x295a
sbb eax, eax
add eax, 0xa01
mov dword [0x433d94], eax
jmp 0x40ae76
mov dword [0x433d94], 0xffffffff
push 0
push 0
push 0x433db8
call dword [sym.imp.ntdll.dll_RtlRunOnceComplete]
mov ecx, dword [ebp - 4]
mov eax, dword [0x433d94]
xor ecx, ebp
call fcn.00414c55
mov esp, ebp
pop ebp
ret
Function at 0x40b060
Capabilities:
Map section object

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x10], 0
push eax
mov esi, edx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0
call fcn.00409580
test eax, eax
jns 0x40b0b5
mov dword [esi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414c55
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
mov edx, 1
push eax
mov eax, dword [ebp - 0x1c]
push ecx
push 0
push 0
mov ecx, dword [eax + 4]
push 0x80
push 5
push 0x80000000
mov dword [ebp - 0x1c], eax
call fcn.00408b20
lea ecx, [ecx]
test eax, eax
js 0x40b09e
mov ebx, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
push ebx
push 0x11000000
push 2
push 0
push 0
push 5
push eax
call dword [sym.imp.ntdll.dll_NtCreateSection]
nop
test eax, eax
js 0x40b09e
call fcn.0040ac00
cmp eax, 0xa04
push 2
sbb eax, eax
and eax, 0xfffc0000
add eax, 0x40000
push eax
push 2
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
xor edi, edi
cmp eax, 0x40000003
cmovne edi, eax
test edi, edi
jns 0x40b161
mov dword [esi], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414c55
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
or eax, 2
mov dword [esi], eax
push dword [ebp - 0x1c]
call fcn.00407f40
push dword [ebp - 0x18]
call dword [sym.imp.ntdll.dll_NtClose]
push ebx
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414c55
mov esp, ebp
pop ebp
ret

Function at 0x40b2a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x38], 0
push eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x804500
mov dword [ebp - 0x34], str.runas
mov dword [ebp - 0x24], 5
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.00414c55
mov esp, ebp
pop ebp
ret 4
Function at 0x40c180
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov edi, ecx
mov bl, dl
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov esi, eax
and esi, 0x20000000
mov dword [esp + 0x10], esi
test bl, bl
jne 0x40c27e
push edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40c27e
test esi, esi
jne 0x40c27e
lea eax, ds:[esp + 0x24]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x40c25f
push 3
push edi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
je 0x40c25f
lea esp, [esp]
cmp esi, edi
je 0x40c25f
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x40c250
lea eax, ds:[esp + 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x40c250
push 0xffffffffffffffec
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test al, 8
jne 0x40c250
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
jne 0x40c27a
push 3
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
jne 0x40c200
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00414c55
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x10]
xor eax, eax
test esi, esi
setne al
lea eax, [eax*4 + 5]
push eax
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
jne 0x40c2b7
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 5
jne 0x40c2b7
push 0
push 0xf120
push 0x112
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00414c55
mov esp, ebp
pop ebp
ret
Function at 0x40d640
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 0x18], esi
push edi
test edx, edx
je 0x40d6a9
mov ecx, 0x7ffffffe
mov eax, edx
cmp word [eax], 0
je 0x40d68e
add eax, 2
sub ecx, 1
jne 0x40d680
lea eax, [ecx + ecx]
mov dword [ebp - 0xc], edx
mov ecx, 0xfffffffc
sub ecx, eax
movzx eax, cx
mov word [ebp - 0x10], ax
add eax, 2
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 2
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov edi, edi
test eax, eax
jns 0x40d6d6
cmp eax, 0x80000005
je 0x40d6d6
cmp eax, 0xc0000023
jne 0x40d76b
mov esi, dword [ebp - 0x14]
call fcn.00407de0
push esi
push 0xc
push eax
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push edi
push 2
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov dword [ebp - 0x18], eax
test eax, eax
js 0x40d759
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x40d728
push dword ds:[edi + 8]
lea eax, [edi + 0xc]
push eax
push ecx
call fcn.00416670
add esp, 0xc
test ebx, ebx
je 0x40d74d
mov eax, dword [edi + 4]
cmp eax, 1
je 0x40d743
cmp eax, 2
je 0x40d743
cmp eax, 7
je 0x40d743
mov eax, dword [edi + 8]
jmp 0x40d74b
mov eax, dword [edi + 8]
add eax, 2
shr eax, 1
mov dword [ebx], eax
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x40d759
mov eax, dword [edi + 4]
mov dword [ecx], eax
call fcn.00407de0
push edi
push 0
push eax
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414c55
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40d780
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
mov dword [ebp - 0x10], 6
mov ax, si
mov dword [ebp - 8], 0
shr ax, 4
inc ax
movzx eax, ax
push edi
mov dword [ebp - 0xc], eax
mov edi, ecx
lea eax, [ebp - 0x18]
push eax
push 3
lea eax, [ebp - 0x10]
push eax
push edi
call dword [sym.imp.ntdll.dll_LdrFindResource_U]
test eax, eax
js 0x40d7ec
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
push edi
call dword [sym.imp.ntdll.dll_LdrAccessResource]
xor edx, edx
mov edi, eax
test edi, edi
cmovns edx, dword [ebp - 0x1c]
test eax, eax
jns 0x40d805
mov dword [ebx], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414c55
mov esp, ebp
pop ebp
ret 4
and esi, 0xf
jbe 0x40d81e
lea ebx, [ebx]
movzx eax, word [edx]
lea edx, [edx + eax*2]
add edx, 2
sub esi, 1
jne 0x40d810
movzx ecx, word [edx]
mov esi, 0xfffc
lea eax, [ecx - 1]
cmp ax, si
ja 0x40d894
lea eax, [edx + 2]
test ecx, ecx
mov dword [ebp - 0x24], eax
mov esi, 2
lea eax, [ecx + ecx]
cmovne esi, eax
mov dword [ebp - 0x20], esi
call fcn.00407de0
lea ecx, [esi + 0x12]
push ecx
push 0xc
push eax
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
lock inc dword [eax + 4]
mov edx, dword [ebp - 0x24]
lea esi, [eax + 8]
mov ecx, dword [ebp - 0x20]
mov dword [eax], 0
lea eax, [esi + 8]
mov dword [esi], ecx
mov dword [esi + 4], eax
test edx, edx
je 0x40d88d
push ecx
push edx
push eax
call fcn.00416670
mov ecx, dword [esi]
add esp, 0xc
mov eax, dword [esi + 4]
xor edx, edx
mov word [ecx + eax], dx
jmp 0x40d89b
xor ecx, ecx
mov word [eax], cx
jmp 0x40d89b
mov edi, 0x80000005
xor esi, esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
mov dword [ebx], esi
xor ecx, ebp
pop esi
pop ebx
call fcn.00414c55
mov esp, ebp
pop ebp
ret 4
Function at 0x4113a0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
push 0
mov dl, 1
mov dword [ebp - 4], edi
mov ecx, str.IsPlaySound
mov dword [ebp - 8], esi
call fcn.00402340
test al, al
je 0x4113e6
mov eax, dword fs:[0x18]
push 0xe2007
mov eax, dword [eax + 0x30]
push dword [eax + 8]
push 1
call dword [sym.imp.WINMM.dll_PlaySoundW]
push 0
xor dl, dl
mov ecx, str.CopyToClipboard
call fcn.00402340
test al, al
je 0x41142e
push esi
call dword [sym.imp.USER32.dll_OpenClipboard]
nop
test eax, eax
je 0x41142e
call dword [sym.imp.USER32.dll_EmptyClipboard]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push edi
call dword [sym.imp.USER32.dll_CopyImage]
test eax, eax
je 0x411428
push eax
push 2
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
call fcn.0040ff20
xor edx, edx
mov ecx, str.FilenameType
mov edi, eax
call fcn.00402420
mov ecx, dword [edi + 4]
xor edx, edx
test eax, eax
cmovns edx, eax
mov eax, 1
cmp edx, eax
cmovg edx, eax
call fcn.00410060
or esi, 0xffffffff
test eax, eax
je 0x4114a9
mov edx, edi
mov edi, eax
test edx, edx
je 0x4114a9
lea ebx, ds:[edx - 8]
mov ecx, esi
lea eax, [ebx + 4]
lock xadd dword [eax], ecx
lea eax, [ecx - 1]
test eax, eax
jne 0x4114a9
mov esi, dword [ebx]
test esi, esi
je 0x411495
push edx
mov ecx, esi
call dword [0x427534]
call esi
call fcn.00407de0
push ebx
push 0
push eax
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
or esi, 0xffffffff
push dword [edi + 4]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.00411040
lea ebx, [edi - 8]
lea eax, [ebx + 4]
lock xadd dword [eax], esi
lea eax, [esi - 1]
test eax, eax
jne 0x4114e8
mov esi, dword [ebx]
test esi, esi
je 0x4114d9
push edi
mov ecx, esi
call dword [0x427534]
call esi
call fcn.00407de0
push ebx
push 0
push eax
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8