joyce8/EMBER2024-capa huggingface dataset:
Function at 0x465720
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push 0x270
mov eax, 0x4e09b2
call fcn.004b5417
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x274], ecx
test eax, eax
jne 0x465749
xor eax, eax
call fcn.004b549a
ret 0x10
push eax
lea ecx, [ebp - 0x264]
call fcn.0044bc85
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x264]
mov eax, dword [eax - 0xc]
test eax, eax
jne 0x465777
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x264]
call fcn.0040d610
jmp 0x46573f
dec eax
push eax
lea ecx, [ebp - 0x264]
call fcn.0040c870
cmp ax, 0x5c
je 0x465797
push 0x5c
lea ecx, [ebp - 0x264]
call fcn.004452a8
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x26c]
call fcn.004420c1
mov byte [ebp - 4], 1
push 0x4fc718
lea ecx, [ebp - 0x26c]
call fcn.00444b0f
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x270], eax
cmp eax, 0xffffffff
jne 0x4657ef
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x26c]
call fcn.0040d610
jmp 0x465766
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp word [ebp - 0x234], 0x2e
jne 0x465833
cmp word [ebp - 0x232], 0
je 0x46581d
cmp word [ebp - 0x232], 0x2e
jne 0x465833
cmp word [ebp - 0x230], 0
jne 0x465833
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x270]
call ebx
mov edi, eax
jmp 0x4658ed
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x268]
call fcn.004420c1
mov byte [ebp - 4], 2
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x268]
call fcn.00444b0f
test byte [ebp - 0x260], 0x10
je 0x46587e
mov ecx, dword [ebp - 0x274]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x268]
call fcn.00465720
jmp 0x4658cd
push 0x80
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test esi, esi
je 0x4658ae
mov ecx, dword [ebp - 0x244]
xor eax, eax
lea edi, [ebp - 0x27c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x240]
add dword [esi], eax
adc dword [esi + 4], ecx
cmp dword [ebp + 0xc], 0
push dword [ebp - 0x268]
je 0x4658c7
mov ecx, dword [ebp - 0x274]
call fcn.004654ad
jmp 0x4658cd
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x270]
call ebx
mov edi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x268]
call fcn.0040d610
test edi, edi
jne 0x4657f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x270]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, 0x12
je 0x465935
xor esi, esi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x26c]
call fcn.0040d610
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x264]
call fcn.0040d610
mov eax, esi
jmp 0x465741
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor esi, esi
inc esi
jmp 0x465910
Function at 0x46698e
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
push ebx
push edi
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 4]
push eax
push dword [edi + 4]
mov dword [ebp - 4], 1
call fcn.00466913
pop ecx
pop ecx
cmp dword [ebp - 4], ebx
je 0x466ada
push esi
mov esi, 0x104
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x14]
mov ecx, edi
mov dword [ebp - 8], eax
call fcn.0046670a
test eax, eax
jne 0x466ad9
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
ja 0x466ad9
push esi
lea eax, [ebp - 0x328]
push ebx
push eax
call fcn.004b47e0
push esi
lea eax, [ebp - 0x120]
push ebx
push eax
call fcn.004b47e0
push esi
lea eax, [ebp - 0x224]
push ebx
push eax
call fcn.004b47e0
mov eax, dword [edi + 4]
or dword [ebp - 0x10], 0xffffffff
add esp, 0x24
mov dword [ebp - 0x328], ebx
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 8], eax
call fcn.004437ed
mov eax, dword [eax + 0x98]
cmp eax, ebx
je 0x466a6d
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x120]
push ecx
lea ecx, [ebp - 0x328]
push ecx
push dword [ebp - 8]
call eax
add esp, 0x14
mov eax, dword [ebp - 0x10]
cmp eax, 0xffffffff
jne 0x466a8b
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 4]
push eax
push dword [edi + 4]
call fcn.00466913
jmp 0x466ace
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x120]
push ecx
lea ecx, [ebp - 0x328]
push ecx
inc eax
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 0x186a0
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x466ad0
lea eax, [ebp - 4]
push eax
push dword [edi + 4]
call fcn.00466913
mov dword [ebp - 0xc], 1
pop ecx
pop ecx
cmp dword [ebp - 4], ebx
jne 0x4669cd
pop esi
mov ecx, edi
call fcn.0046670a
test eax, eax
je 0x466ae8
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
pop edi
pop ebx
leave
ret 4
Function at 0x466cd7
Capabilities:
Check if file exists

Disassembly:
push 0x214
mov eax, 0x4e0b37
call fcn.004b5417
call fcn.004437ed
mov ebx, eax
test ebx, ebx
je 0x466dac
and dword [ebp - 0x21c], 0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004b47e0
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x4f8b74
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x466d86
lea eax, [ebp - 0x220]
push eax
call fcn.00466c52
pop ecx
and dword [ebp - 4], 0
push dword [eax]
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.0040b640
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.0040d610
lea eax, [ebp - 0x218]
push eax
mov ecx, ebx
call fcn.0043eab8
test eax, eax
je 0x466da6
xor eax, eax
inc eax
cmp dword [ebx + 0x18], eax
jne 0x466da6
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x21c]
call fcn.004b549a
ret
Function at 0x468d16
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x18
mov eax, 0x4e0fc7
call fcn.004b53ae
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], 0x60
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
mov esi, dword [ebp + 8]
cmp dword [ebp + 0x10], ebx
je 0x468d76
call fcn.0046894f
cmp byte [eax + 0xc], bl
je 0x468d76
push ecx
movzx ecx, word [ebp + 0x10]
mov eax, esp
mov dword [ebp + 8], esp
push ecx
mov dword [eax], ecx
mov eax, esp
lea ecx, [ebp - 0x1c]
mov dword [ebp + 0x10], esp
mov dword [eax], esi
call fcn.00467e58
cmp al, 1
jne 0x468d72
mov dword [ebp - 0x14], 0xf0
cmp al, bl
jne 0x468d92
push ecx
movzx ecx, word [ebp + 0xc]
mov eax, esp
mov dword [ebp + 0x10], esp
push ecx
mov dword [eax], ecx
mov eax, esp
lea ecx, [ebp - 0x1c]
mov dword [ebp + 0x10], esp
mov dword [eax], esi
call fcn.00467e58
cmp al, 1
jne 0x468eae
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [0x541380]
call esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp + 0x10], eax
cmp eax, ebx
je 0x468eae
push dword [ebp - 0x18]
push dword [0x541380]
call esi
push dword [ebp - 0x1c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call fcn.004b4be0
add esp, 0xc
mov dword [ebp + 8], ebx
mov byte [ebp - 4], 2
lea eax, [ebp + 8]
push eax
push ebx
push dword [ebp + 0x10]
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jl 0x468e91
push ebx
push dword [ebp + 8]
call fcn.00468033
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x468e91
mov ecx, esi
call fcn.00467ee4
mov ecx, esi
mov dword [ebp - 0x24], eax
call fcn.00467f09
push ebx
mov dword [ebp - 0x20], eax
movzx eax, word [edi + 0x18]
push ebx
push ebx
push eax
push dword [ebp - 0x14]
lea eax, [ebp - 0x24]
push eax
call fcn.0046894f
mov ecx, eax
call fcn.0046808c
test al, al
je 0x468e6c
push ebx
push 1
push ebx
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push esi
call fcn.0046e0db
mov edi, eax
add esp, 0x18
cmp edi, ebx
je 0x468e6c
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov esi, edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
mov ecx, esi
mov dword [ebp + 0xc], ebx
call fcn.00468069
test eax, eax
je 0x468e85
mov dword [ebp - 0x10], ebx
cmp esi, ebx
je 0x468e91
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov byte [ebp - 4], bl
lea ecx, [ebp + 8]
call fcn.00486aaf
mov esi, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00467e9a
mov eax, esi
call fcn.004b5486
ret 0xc
Function at 0x46a02c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push 0xff
mov dword [ebp - 0x108], eax
lea eax, [ebp - 0x103]
push ebx
push eax
mov byte [ebp - 0x104], bl
call fcn.004b47e0
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
xor edi, edi
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov esi, dword [sym.imp.USER32.dll_keybd_event]
test eax, eax
je 0x46a092
test byte [ebp - 0xf2], 0x80
jne 0x46a092
push ebx
inc edi
push edi
push ebx
push 0x12
call esi
push dword [ebp - 0x108]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov dword [ebp - 0x108], eax
cmp edi, ebx
je 0x46a0b0
push ebx
push 3
push ebx
push 0x12
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x108]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b48bf
leave
ret

Function at 0x46a0c5
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call fcn.00469f60
pop ecx
test eax, eax
jne 0x46a0db
pop ebp
jmp fcn.0046a02c
pop ebp
ret

Function at 0x46a127
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x114
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.004b47e0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 5
jne 0x46a17e
cmp dword [ebp - 0x110], 2
jne 0x46a17e
xor eax, eax
inc eax
jmp 0x46a180
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b48bf
leave
ret

Function at 0x46a1ab
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2018
call fcn.004b4f50
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2014], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x2010], eax
cmp edi, ebx
jne 0x46a1e6
xor al, al
jmp 0x46a285
push esi
mov esi, 0x1fff
push esi
lea eax, [ebp - 0x2003]
push ebx
push eax
mov byte [ebp - 0x2004], bl
call fcn.004b47e0
add esp, 0xc
lea eax, [ebp - 0x2018]
push eax
push edi
mov dword [ebp - 0x2018], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, ebx
je 0x46a282
cmp eax, esi
ja 0x46a282
lea ecx, [ebp - 0x2004]
push ecx
push eax
push ebx
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x46a27e
lea eax, [ebp - 0x200c]
push eax
lea eax, [ebp - 0x2008]
push eax
push 0x4f8b70
lea eax, [ebp - 0x2004]
push eax
mov dword [ebp - 0x2008], ebx
mov dword [ebp - 0x200c], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x46a27e
mov eax, dword [ebp - 0x2008]
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 0x2014]
mov dword [edx], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x2010]
mov dword [ecx], eax
mov bl, 1
mov al, bl
jmp 0x46a284
xor al, al
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004b48bf
leave
ret
Function at 0x46a2b6
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.004b4f50
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x200c]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x46a33a
cmp eax, 0x1fff
ja 0x46a33a
lea ecx, [ebp - 0x2004]
push ecx
push eax
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x46a33a
lea eax, [ebp - 0x2010]
push eax
lea eax, [ebp - 0x2008]
push eax
push 0x4f8b70
lea eax, [ebp - 0x2004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x46a33a
mov eax, dword [ebp - 0x2008]
mov ecx, dword [eax + 0xc]
mov dword [esi], ecx
mov eax, dword [eax + 8]
mov dword [esi + 4], eax
xor eax, eax
inc eax
jmp 0x46a33c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004b48bf
leave
ret

Function at 0x46a34a
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x46a379
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x46a379
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x46a37b
mov eax, esi
pop esi
pop ebp
ret

Function at 0x46a59d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x20]
mov dword [ebp - 0x210], eax
mov eax, dword [ebp + 0x18]
push 0x22
mov dword [ebp - 0x218], eax
pop eax
cmp ax, word [esi]
jne 0x46a637
push esi
call fcn.004b5ec7
pop ecx
cmp eax, 0x104
jae 0x46a637
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004b47e0
push esi
call fcn.004b5ec7
dec eax
dec eax
push eax
lea eax, [esi + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004bab11
lea eax, [ebp - 0x20c]
push eax
call fcn.0043b8a5
add esp, 0x20
test eax, eax
jne 0x46a640
test edi, edi
je 0x46a633
push esi
call edi
xor eax, eax
jmp 0x46a65d
push esi
call fcn.0043b8a5
pop ecx
jmp 0x46a628
push dword [ebp + 0x1c]
push dword [ebp - 0x218]
push dword [ebp - 0x210]
push esi
push dword [ebp - 0x214]
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b48bf
leave
ret

Function at 0x46a6c4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x46a6d9
push 0x32
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebp
ret
push dword [ebp + 8]
call fcn.0043b8a5
pop ecx
test eax, eax
je 0x46a6d5
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop ebp
ret
Function at 0x46b05d
Capabilities:
Create process on windows
Read .ini file

Disassembly:
push 0x14
mov eax, 0x4e1390
call fcn.004b53ae
mov eax, dword [0x53fbf8]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x46b07b
cmp word [eax], 0
jne 0x46b082
mov dword [ebp - 0x20], str.http:__www.360totalsecurity.com_d_ts__s__s_
lea ecx, [ebp - 0x18]
call fcn.0040c7d0
and dword [ebp - 4], 0
push 0x400
lea ecx, [ebp - 0x18]
call fcn.00444b2e
mov esi, eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0044dfc9
mov byte [ebp - 4], 1
mov eax, dword [eax]
mov dword [esp], str.config.ini
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0040d610
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.0040c8c0
lea ecx, [ebp - 0x14]
call fcn.0040c7d0
mov byte [ebp - 4], 2
mov esi, 0x80
push esi
lea ecx, [ebp - 0x14]
call fcn.00444b2e
push dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
push eax
push 0x50ea8c
push str.language
mov ebx, 0x4f9df8
push ebx
call edi
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.0040c8c0
lea ecx, [ebp - 0x10]
call fcn.0040c7d0
mov byte [ebp - 4], 3
push esi
lea ecx, [ebp - 0x10]
call fcn.00444b2e
push dword [ebp - 0x18]
push esi
push eax
push 0x50ea8c
push str.channel
push ebx
call edi
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.0040c8c0
lea ecx, [ebp - 0x10]
call fcn.00445121
mov eax, dword [ebp - 0x14]
xor esi, esi
cmp dword [eax - 0xc], esi
je 0x46b19d
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], esi
je 0x46b19d
lea ecx, [ebp - 0x1c]
call fcn.0040c7d0
mov byte [ebp - 4], 4
push dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x14]
push dword [ebp - 0x20]
push eax
call fcn.0040e3f0
add esp, 0x10
push 5
push esi
push esi
push dword [ebp - 0x1c]
push str.Open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.0040d610
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.0040d610
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0040d610
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040d610
call fcn.004b5486
ret
Function at 0x46c3c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 2
xor ebx, ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
cmp edi, ebx
je 0x46c441
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x46c438
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x46c438
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 8], eax
test eax, eax
je 0x46c431
push ebx
call fcn.004b55bf
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x46c431
push ebx
push dword [ebp + 8]
push eax
call fcn.004b4be0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor ebx, ebx
xor esi, esi
cmp dword [ebp - 4], ebx
je 0x46c47e
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
push 0x4f8b70
push dword [ebp - 4]
mov dword [ebp + 8], ebx
mov dword [ebp - 8], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x46c475
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push 0xd
pop ecx
rep movsd dword es:[edi], dword [esi]
xor esi, esi
inc esi
push dword [ebp - 4]
call fcn.004b54e2
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x46c4a7
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x56c
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 0x11c
push edi
lea eax, [ebp - 0x530]
mov ebx, ecx
push 0
push eax
mov dword [ebp - 0x534], ebx
call fcn.004b47e0
push edi
push 0
push esi
mov dword [ebp - 0x530], edi
call fcn.004b47e0
add esp, 0x18
push esi
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esi + 4], 5
jne 0x46c511
mov ecx, ebx
call fcn.0046c2c4
test eax, eax
je 0x46c511
and dword [ebx + 4], 0
jmp 0x46c5e1
lea eax, [ebp - 0x530]
push eax
mov ecx, ebx
call fcn.0046c38c
mov ebx, dword [esi + 4]
mov eax, dword [ebp - 0x52c]
imul ebx, ebx, 0xa
add ebx, dword [esi + 8]
imul eax, eax, 0xa
add eax, dword [ebp - 0x528]
cmp eax, ebx
mov dword [ebp - 0x538], eax
jle 0x46c558
push edi
lea eax, [ebp - 0x530]
push eax
push esi
call fcn.004b4be0
mov ebx, dword [ebp - 0x538]
add esp, 0xc
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.004b47e0
mov edi, dword [ebp - 0x534]
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
mov ecx, edi
call fcn.0046c304
test eax, eax
jl 0x46c5dd
lea eax, [ebp - 0x56c]
push eax
lea eax, [ebp - 0x414]
push eax
mov ecx, edi
call fcn.0046c3c0
test eax, eax
je 0x46c5dd
mov ecx, dword [ebp - 0x55c]
movzx edx, word [ebp - 0x55c]
shr ecx, 0x10
mov eax, ecx
imul eax, eax, 0xa
add eax, edx
cmp ebx, eax
jge 0x46c5dd
mov eax, dword [ebp - 0x558]
shr eax, 0x10
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
mov dword [edi + 4], 1
jmp 0x46c5e1
and dword [edi + 4], 0
mov ecx, dword [ebp - 4]
pop edi
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.004b48bf
leave
ret 4

Function at 0x46c60f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
cmp word [esi], 0
push edi
jne 0x46c64a
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsQHSafeMain.exe
push 0x80000002
mov dword [ebp - 4], 0x207
mov dword [ebp - 8], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [esi + 0x208]
cmp word [eax], 0
mov edi, 0x104
jne 0x46c66b
push esi
push 0x4f9eb0
push edi
push eax
call fcn.00411380
add esp, 0x10
lea eax, [esi + 0x410]
cmp word [eax], 0
jne 0x46c67f
push esi
push edi
push eax
call fcn.0040b640
pop edi
pop esi
leave
ret
Function at 0x46de42
Capabilities:
Accept command line arguments

Disassembly:
push 0x220
mov eax, 0x4e1c1d
call fcn.004b5417
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
call esi
push str._elevated
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x46de87
push 0x40
push dword [0x53fca8]
push dword [0x53fcb0]
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
call fcn.004b549a
ret
call esi
push eax
lea ecx, [ebp - 0x21c]
call fcn.0044bc85
xor ebx, ebx
mov dword [ebp - 4], ebx
push str.__elevated
lea ecx, [ebp - 0x21c]
call fcn.00444b0f
call fcn.0043b72a
test al, al
je 0x46df09
mov ecx, dword [ebp + 8]
cmp ecx, 0xffffffff
je 0x46df09
xor eax, eax
lea edi, [ebp - 0x228]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x228], eax
push 0x3e8
lea eax, [ebp - 0x22c]
push eax
push ebx
mov dword [ebp - 0x22c], ecx
call fcn.0046d828
add esp, 0xc
test eax, eax
je 0x46df09
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.0040d610
mov al, bl
jmp 0x46de81
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.004b47e0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x46def3
call fcn.0046dcff
test al, al
je 0x46df67
push 1
push ebx
push dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
push eax
push str.runas
push ebx
call fcn.0046b9ff
add esp, 0x18
jmp 0x46def1
call fcn.0046ddbf
test al, al
jne 0x46df47
cmp byte [ebp + 0x10], 1
jne 0x46def3
push 0x40
push dword [0x53fca8]
push dword [0x53fcb0]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x46def3

Function at 0x46e3b1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x46e3be
xor al, al
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x46e3df
push dword [ebp + 8]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
neg eax
sbb al, al
inc al
pop ebp
ret
shr al, 4
and al, 1
pop ebp
ret