joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5f82b0
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x661540]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x1a
jbe 0x5f8346
call fcn.00401c03
mov dword [eax], 0xf
xor eax, eax
je 0x5f82e0
mov dword [ebp - 0x14], 1
jmp 0x5f82e7
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
jne 0x5f8316
push str.__Invalid_Drive_Index___0_
push 0x6251c4
push 0
push 0x1f
push str.minkernelcrtsucrt_srcdesktopcrtmiscgetcwd.cpp
push 2
call fcn.00402ab8
add esp, 0x18
cmp eax, 1
jne 0x5f8316
int3
cmp dword [ebp - 0x18], 0
jne 0x5f8346
call fcn.00404c5a
mov dword [eax], 0xd
push 0
push 0x1f
push str.minkernelcrtsucrt_srcdesktopcrtmiscgetcwd.cpp
push str.is_valid_drive
push str.__Invalid_Drive_Index___0_
call fcn.004084bd
add esp, 0x14
xor eax, eax
jmp 0x5f839f
cmp dword [ebp + 8], 0
jne 0x5f8353
mov eax, 1
jmp 0x5f839f
mov eax, dword [ebp + 8]
add eax, 0x40
mov word [ebp - 0x10], ax
mov cx, word [ebp - 0x10]
mov word [ebp - 0xc], cx
mov edx, 0x3a
mov word [ebp - 0xa], dx
mov eax, 0x5c
mov word [ebp - 8], ax
xor ecx, ecx
mov word [ebp - 6], cx
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x5f8396
cmp dword [ebp - 0x1c], 1
jne 0x5f839a
xor eax, eax
jmp 0x5f839f
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403eb3
mov esp, ebp
pop ebp
ret
Function at 0x48c975
Capabilities:
Encode data using xor

Disassembly:
mov byte [bp + si], bl
inc ebp
aaa
arpl word [ebx + 0x551d5e6d], ax
in eax, 0xc0
xor al, 0x9a
fisub word [ebp - 0x54c903fd]
movsd dword es:[edi], dword [esi]
add edi, esp
stosd dword es:[edi], eax
dec edx
dec esi
jp 0x48ca0c
pop ss
inc ebx
lodsd eax, dword [esi]
in eax, dx
mov ebp, ebp
mov al, 0x71
jno 0x48c9f7
sub cl, byte [edx]
invalid
movsb byte es:[edi], byte [esi]
outsd dx, dword [esi]
dec ecx

Function at 0x48cb61
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov al, 0xe9
invalid
cmp ch, byte [edx + 0x1c1dc163]
mov ebx, 0x97174bb6
mov al, byte [0xccda57c1]
jns 0x48cb20
push eax
or al, byte [ecx + 0x6e]
mov byte [eax + 0x79], dh
invalid

Function at 0x4bc6b9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c53c8
cmp edx, dword [eax]
je 0x4bc6db
add eax, 8
inc ecx
cmp eax, 0x4c5458
jl 0x4bc6cc
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c53c8]
jne 0x4bc809
mov eax, dword [0x4cadd0]
cmp eax, 1
je 0x4bc7e3
test eax, eax
jne 0x4bc70c
cmp dword [0x4c52f0], 1
je 0x4bc7e3
cmp edx, 0xfc
je 0x4bc809
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bc743
lea eax, [ebp - 0x1a4]
push 0x4c1a40
push eax
call fcn.004bd0a0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bd530
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bc786
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bd530
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c1a3c
push edi
call fcn.004bf400
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4c1a20
push eax
call fcn.004bd0a0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bd0b0
lea eax, [ebp - 0xa0]
push 0x4c1a1c
push eax
call fcn.004bd0b0
push dword [esi + 0x4c53cc]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bd0b0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4c19f4
push eax
call fcn.004bf374
add esp, 0x2c
pop edi
jmp 0x4bc809
lea eax, [ebp + 8]
lea esi, [esi + 0x4c53cc]
push 0
push eax
push dword [esi]
call fcn.004bd530
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40129f
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x4012da
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4012c1
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x4012d2
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x4012dc
inc edi
add eax, 0x28
cmp edi, esi
jb 0x4012b7
xor eax, eax
pop edi
pop esi
ret

Function at 0x401620
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.0040126f
push eax
push esi
push dword [ebp + 8]
call fcn.00401224
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.0040126f
push eax
push esi
push dword [ebp + 8]
call fcn.00401224
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.0040125f
and dh, byte [eax - 0x6277e5c2]
jl 0x4016e4
invalid
invalid

Function at 0x403620
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
test eax, eax
je 0x40363d
mov eax, dword [esp + 4]
push eax
call fcn.00403dd0
add esp, 4
cmp eax, 1
jne 0x403675
xor eax, eax
ret
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0x403680
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [esp + 4]
push edx
call fcn.00403d80
add esp, 4
cmp eax, 1
jne 0x403675
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
ret
mov eax, 1
ret
Function at 0x405950
Capabilities:
Find taskbar

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
mov eax, dword [esi + 0x1088]
dec eax
je 0x405975
dec eax
je 0x40596d
dec eax
jne 0x405981
mov eax, dword [esi + 0x20]
push 3
push eax
jmp 0x40597b
mov ecx, dword [esi + 0x20]
push 2
push ecx
jmp 0x40597b
mov edx, dword [esi + 0x20]
push 1
push edx
call dword [sym.imp.USER32.dll_KillTimer]
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push 1
push 0
push 0
push edx
push eax
mov ecx, esi
call sub.MFC42u.DLL_CWnd::MoveWindow
push 0
mov ecx, esi
call sub.MFC42u.DLL_CWnd::ShowWindow
mov dword [esi + 0x1088], 0
pop esi
add esp, 0x10
ret

Function at 0x4059d0
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
lea eax, [esp]
mov dword [esp], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x405a07
cmp dword [esp + 0x10], 2
jne 0x405a07
cmp dword [esp + 4], 6
jb 0x405a07
mov eax, 1
add esp, 0x114
ret
xor eax, eax
add esp, 0x114
ret
Function at 0x4091c0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret
Function at 0x40b080
Capabilities:
Get common file path
Get disk information

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x244
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.0040b880
add esp, 8
test eax, eax
je 0x40b18d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, eax
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x4d]
mov byte [esp + 0x4c], 0
lea edx, [esp + 0x4c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x200
push edx
mov dword [esp + 0x10], esi
mov byte [esp + 0x14], 0
mov dword [esp + 0x15], 0
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, dword [esp + 0x254]
test esi, esi
mov dword [edi], 0
je 0x40b188
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ebx, 0x41
test byte [esp + 0x10], 1
je 0x40b179
mov eax, dword [esp + 0x54]
and eax, 0xff
cmp ebx, eax
je 0x40b179
push ebx
lea ecx, [esp + 0x18]
push str._c:_
push ecx
call esi
add esp, 0xc
lea edx, [esp + 0x14]
push edx
call ebp
cmp eax, 4
je 0x40b179
push ebx
lea eax, [esp + 0x38]
push str.._c:
push eax
call sub.MSVCRT.dll_sprintf
lea ecx, [esp + 0x28]
lea edx, [esp + 0x40]
push ecx
push edx
call fcn.0040b880
add esp, 0x14
test eax, eax
je 0x40b179
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
cmp eax, ecx
jne 0x40b179
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
cmp ecx, eax
jne 0x40b179
mov byte [edi], bl
inc edi
mov eax, dword [esp + 0x10]
inc ebx
shr eax, 1
mov dword [esp + 0x10], eax
jne 0x40b108
pop ebp
pop ebx
mov byte [edi], 0
pop edi
pop esi
add esp, 0x244
ret

Function at 0x40b880
Capabilities:
Get disk information via ioctl

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40b8e1
mov edx, dword [esp + 0x10]
push edi
lea ecx, [esp + 0x10]
push 0
push ecx
push 0xc
push edx
push 0
push 0
push 0x2d1080
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
pop edi
je 0x40b8e1
test ebx, ebx
jne 0x40b8e1
pop esi
mov eax, 1
pop ebx
ret
pop esi
xor eax, eax
pop ebx
ret
Function at 0x4037f8
Capabilities:
Create directory

Disassembly:
push 0x4c
mov eax, 0x55c7ad
call fcn.0055b22a
mov edi, ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, dword [ebp + 0xc]
mov dl, bl
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x58], esi
cmp dword [eax + 4], ebx
je 0x403831
mov eax, dword [eax]
mov ecx, dword [eax]
cmp dword [ecx + 4], ebx
je 0x40382f
mov ecx, dword [ecx]
call fcn.0041e8cc
test al, al
je 0x403831
mov dl, 1
cmp dword [edi + 0x44], 3
jne 0x403847
test dl, dl
je 0x403847
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 4], ebx
mov word [eax], cx
jmp 0x403852
lea eax, [edi + 0x5c]
mov ecx, esi
push eax
call fcn.0041c6b4
mov eax, dword [ebp - 0x50]
cmp dword [eax + 4], ebx
jbe 0x40395c
test ebx, ebx
je 0x40386c
mov ecx, esi
call fcn.00402f0c
mov eax, dword [ebp - 0x50]
mov eax, dword [eax]
mov ecx, esi
mov eax, dword [eax + ebx*4]
push eax
mov dword [ebp - 0x54], eax
call fcn.0041c8f8
mov ecx, dword [ebp - 0x50]
mov eax, dword [ecx + 4]
dec eax
cmp ebx, eax
jne 0x403894
cmp byte [edi + 0x8c], 0
je 0x403894
mov dl, 1
jmp 0x403896
xor dl, dl
cmp dword [esi + 4], 0
mov byte [ebp - 0x49], dl
jne 0x4038b0
test dl, dl
je 0x40394f
mov byte [edi + 0x3a], 1
jmp 0x40394f
cmp dword [edi + 0x44], 3
jne 0x4038ce
test ebx, ebx
jne 0x4038ce
mov ecx, dword [ebp - 0x54]
cmp dword [ecx + 4], 2
jne 0x4038ce
mov ecx, dword [ecx]
call fcn.0041e8cc
test al, al
jne 0x40389f
and dword [ebp - 0x54], 0
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4038e8
call fcn.0041dffe
mov dword [ebp - 0x54], eax
cmp byte [ebp - 0x49], 0
je 0x40394f
mov esi, dword [esi]
lea ecx, [ebp - 0x48]
call fcn.0041d5da
lea ecx, [ebp - 0x20]
call fcn.0041c570
and dword [ebp - 4], 0
lea ecx, [ebp - 0x48]
push 0
push esi
call fcn.0041d8f3
test al, al
je 0x403921
mov eax, dword [ebp - 0x28]
shr eax, 4
mov byte [ebp - 0x49], 1
test al, 1
jne 0x403925
mov byte [ebp - 0x49], 0
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x20]
call fcn.0054b686
cmp byte [ebp - 0x49], 0
mov esi, dword [ebp - 0x58]
pop ecx
jne 0x40394f
push esi
push str.Cannot_create_folder
push dword [ebp - 0x54]
mov ecx, edi
mov byte [edi + 0x3a], 1
call fcn.00403a72
mov eax, dword [ebp - 0x50]
inc ebx
cmp ebx, dword [eax + 4]
jb 0x40385e
call fcn.0055b1d9
ret 8
Function at 0x404c27
Capabilities:
Set file attributes

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x3a], 0
jne 0x404c88
cmp dword [esi + 0x98], 0
je 0x404c88
cmp byte [esi + 0x40], 0
jne 0x404c88
cmp byte [esi + 0x31], 0
je 0x404c88
cmp byte [esi + 0xd0], 0
je 0x404c88
mov eax, dword [esi + 0xcc]
push edi
lea edi, [esi + 0x94]
test eax, 0xf0000000
je 0x404c67
and eax, 0x3fff
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x404c87
call fcn.0041dffe
push edi
push str.Cannot_set_file_attribute
push eax
mov ecx, esi
call fcn.00403a72
pop edi
pop esi
ret
Function at 0x40a7d8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
setne al
pop ebp
ret 4

Function at 0x40b119
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x11
mov esi, ecx
call dword [sym.imp.USER32.dll_GetKeyState]
mov edx, dword [ebp + 8]
shr eax, 0xf
and al, 1
movzx ecx, word [edx + 0xc]
mov edx, ecx
cmp edx, 8
je 0x40b15e
cmp edx, 0x52
je 0x40b14d
cmp ecx, 0x76
jne 0x40b15a
mov ecx, esi
call fcn.0040bd16
jmp 0x40b165
test al, al
je 0x40b15a
mov ecx, esi
call fcn.0040bb72
jmp 0x40b165
xor al, al
jmp 0x40b167
mov ecx, esi
call fcn.0040bc0c
mov al, 1
pop esi
pop ebp
ret 4

Function at 0x40cce0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55d941
mov eax, dword fs:[0]
push eax
push ecx
push ecx
push ebx
push esi
push edi
mov eax, dword [0x578040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 0xc]
setne cl
mov dword [ebp - 0x14], eax
mov byte [ebp - 0xd], cl
mov byte [esi + 0x19], cl
lea ecx, [esi + 0x30]
push eax
call fcn.0041c64c
mov eax, dword [ebp + 0x14]
lea edi, [esi + 0x94]
sub eax, 0
je 0x40cd55
sub eax, 1
je 0x40cd50
sub eax, 1
je 0x40cd4b
sub eax, 1
jne 0x40cd58
lea edi, [esi + 0x88]
jmp 0x40cd58
lea edi, [esi + 0x7c]
jmp 0x40cd58
lea edi, [esi + 0x70]
jmp 0x40cd58
lea edi, [esi + 0x64]
mov ebx, dword [esi + 0x48]
add ebx, 0x178
lea esi, [ebx + 0x98]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
lea ecx, [ebx + 0x44]
call fcn.0041c6b4
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x40cd89
push ecx
lea ecx, [ebx + 0x50]
call fcn.0041c64c
jmp 0x40cd95
mov eax, dword [ebx + 0x50]
and dword [ebx + 0x54], 0
xor ecx, ecx
mov word [eax], cx
mov al, byte [ebp - 0xd]
push esi
mov byte [ebx + 3], al
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, ebx
call fcn.0040e77e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x4108d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x578040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
cmp eax, dword [esi + 0xb4]
jne 0x41090d
cmp dword [ecx + 8], 0xffffff65
jne 0x41090d
movzx eax, word [ecx + 0xc]
sub eax, 0x2d
je 0x410951
sub eax, 0x14
je 0x41091e
dec eax
sub eax, 1
je 0x410951
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0054b598
leave
ret 8
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
je 0x41090d
push 2
pop eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x2c]
push eax
push 0xffffffffffffffff
push 0x102b
push dword [esi + 0xb4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov al, 1
jmp 0x41090f
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
je 0x41090d
mov ecx, esi
call fcn.00410969
jmp 0x41094d

Function at 0x410969
Capabilities:
Open clipboard

Disassembly:
push 0x1c
mov eax, 0x55d6c5
call fcn.0055b22a
mov ebx, ecx
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
xor esi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], esi
push 2
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], esi
push 0xffffffffffffffff
jmp 0x41099f
push edi
lea ecx, [ebp - 0x1c]
call fcn.00407ae4
push 2
push edi
push 0x100c
push dword [ebx + 0xb4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
test edi, edi
jns 0x410993
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
lea ecx, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0041c570
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
mov edi, eax
test edi, edi
jne 0x4109ef
push esi
push esi
push 0x1004
push dword [ebx + 0xb4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
mov eax, dword [ebp - 0x18]
test edi, edi
je 0x410a23
cmp esi, eax
jae 0x4109fb
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + esi*4]
jmp 0x4109fd
mov ecx, esi
mov eax, dword [ebx + 0xbc]
push dword [eax + ecx*4]
lea ecx, [ebp - 0x28]
call fcn.0041c8f8
push 0x569980
lea ecx, [ebp - 0x28]
call fcn.0041c936
mov eax, dword [ebp - 0x18]
inc esi
cmp esi, edi
jb 0x4109ef
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x410a54
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x410a4e
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
push eax
call fcn.0041681d
pop ecx
call dword [sym.imp.USER32.dll_CloseClipboard]
push dword [ebp - 0x28]
call fcn.0054b686
push dword [ebp - 0x1c]
call fcn.0054b686
pop ecx
pop ecx
call fcn.0055b1d9
ret
Function at 0x4156be
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x578040]
xor eax, ebp
mov dword [ebp - 4], eax
or dword [ebp - 0x2b4], 0xffffffff
push esi
mov esi, dword [ebp + 8]
test edx, edx
jne 0x4156e3
push 0x20
pop edx
push 0x4010
push 0x2b4
lea eax, [ebp - 0x2b8]
push eax
push edx
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, dword [ebp - 0x2b4]
mov dword [esi], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0054b598
leave
ret

Function at 0x4159e9
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x578040]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, cl
or eax, 0x4010
push eax
push 0x2b4
lea eax, [ebp - 0x2b8]
push eax
push 0x10
push 0x569658
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054b598
leave
ret

Function at 0x41681d
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
mov edi, edx
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x41686f
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x416868
push dword [ebp + 8]
push edi
push eax
call fcn.0054d870
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x416868
mov al, 1
jmp 0x416871
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor al, al
pop edi
pop esi
pop ebp
ret

Function at 0x417463
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x578040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x4174b7
push str.SetDefaultDllDirectories
push 0x569c30
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4174b7
push 0xc00
mov ecx, esi
call dword [0x5613b4]
call esi
test eax, eax
jne 0x417551
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x417551
cmp eax, 0x104
ja 0x417551
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x2d6], cx
je 0x4174ee
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
mov cl, byte [str.userenv]
mov esi, str.userenv
test cl, cl
je 0x417551
push ebx
push edi
lea edi, [ebp - 0x2d4]
push 0x6c
lea edi, [edi + eax*2]
pop ebx
mov edx, edi
inc esi
movzx eax, cl
mov cl, byte [esi]
inc esi
mov word [edx], ax
lea edx, [edx + 2]
test cl, cl
jne 0x41750e
push 0x2e
pop eax
push 0x64
mov word [edx], ax
pop eax
mov word [edx + 2], ax
xor eax, eax
push 8
push eax
mov word [edx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov word [edx + 4], bx
mov word [edx + 6], bx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov cl, byte [esi]
test cl, cl
jne 0x41750b
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0054b598
leave
ret
Function at 0x41947e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x578040]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00419097
test al, al
jne 0x41949b
xor eax, eax
jmp 0x419503
push ebx
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
push 0x20119
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionThemesPersonalize
push SysReAllocStringLen
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x419500
lea eax, [ebp - 0x10]
mov dword [ebp - 8], ebx
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 4
push eax
push ebx
push str.AppsUseLightTheme
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4194f7
cmp dword [ebp - 8], 4
jne 0x4194f7
cmp dword [ebp - 0xc], ebx
sete bl
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054b598
leave
ret

Function at 0x41adb5
Capabilities:
Parse pe header

Disassembly:
push 0x28
push 0x573f00
call fcn.0055b810
mov edi, edx
push 0x1c
lea eax, [ebp - 0x38]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x34]
cmp word [ecx], ax
jne 0x41ae2b
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x41ae2b
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp edi, eax
jb 0x41ae2b
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp edi, eax
jae 0x41ae2b
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x41ae34
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41b0a1
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x578040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [0x60b2d4]
jmp 0x41b0d2
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x41b0e5
mov esi, dword [esi + 4]
test esi, esi
jne 0x41b0b9
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0054b598
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41b0d8