joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42572d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
xor dword [0x436518], 0x815ce2fb
mov eax, dword [0x436070]
mov dword [0x434148], eax
inc dword [0x434630]
mov ecx, dword [0x434630]
mov eax, dword [0x437d48]
and eax, 0xb7ec7f0
shl eax, 3
cmp eax, ecx
jge 0x425780
mov ecx, dword [0x4346b4]
mov eax, dword [0x434c64]
or ecx, 0xaeefcfef
imul eax, ecx
mov dword [0x434c64], eax
inc dword [0x4346b4]
cmp dword [ebp + 8], 0
je 0x4258d6
push ebx
push esi
push edi
lea esi, [ebp + 8]
xor ebx, ebx
dec dword [0x434ac0]
mov eax, dword [0x434ac0]
mov ecx, dword [0x4353a4]
sub ecx, 0x1d523d7c
and ecx, eax
or dword [0x437488], ecx
dec dword [0x4353a4]
mov edi, dword [ebp + 8]
cmp dword [edi + 8], ebx
je 0x425827
movzx eax, word [0x43aa22]
or eax, 0xced94ca7
mov word [0x43aa22], ax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
shl eax, 2
push eax
push ebx
push dword [edi + 8]
call fcn.004106af
mov ecx, dword [0x43433c]
movzx eax, word [0x439a58]
and ecx, 0x971922ef
or eax, ecx
mov word [0x439a58], ax
push dword [edi + 8]
call fcn.0040de5a
mov ecx, dword [0x434874]
add esp, 0x10
movzx eax, word [0x439f28]
shl ecx, 4
or eax, ecx
or eax, 0x29544527
mov word [0x439f28], ax
movsx eax, word [0x43ae0a]
not eax
and eax, 0x18d88bd1
xor dword [0x433f74], eax
mov eax, dword [ebp + 8]
mov dword [eax], 1
imul eax, dword [0x436640], 0x34fef3f3
mov dword [0x436640], eax
mov eax, dword [ebp + 8]
mov dword [eax + 4], ebx
movzx eax, word [0x439be8]
and eax, 0xd4b5c5c0
mov word [0x439be8], ax
mov dword [edi + 8], ebx
mov ecx, dword [0x4379d4]
mov eax, dword [0x435618]
not ecx
add ecx, 0x236a22ba
add eax, 0xb089223
and ecx, 0x7ddb918a
and eax, 0xdca0ba1d
cmp ecx, eax
jne 0x4258b8
mov ax, word [0x439572]
movsx ecx, ax
mov eax, dword [0x436ff0]
sub ecx, eax
add ecx, 0x3cd3aee1
mov word [0x43ab86], cx
dec dword [0x436ff0]
add esi, 4
mov eax, dword [esi]
mov dword [ebp + 8], eax
or dword [0x436408], 0xd0158a11
cmp dword [ebp + 8], ebx
jne 0x425792
pop edi
pop esi
pop ebx
add dword [0x437748], 0x608004d6
mov eax, dword [0x437878]
imul eax, dword [0x435df8]
imul eax, eax, 0xf5a912d9
mov dword [0x435df8], eax
pop ebp
ret
Function at 0x42970f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
movsx eax, word [0x43947a]
inc word [0x43947a]
cmp eax, 0xe3385d0
jne 0x42973b
dec word [0x43ab66]
mov ax, word [0x43ab66]
cwde
mov dword [0x437e38], eax
add dword [0x4344b0], 0x7a2e0892
mov ecx, 0x722d3fe2
mov eax, dword [0x434f58]
sar eax, 0xa
sub ecx, eax
mov eax, dword [0x437388]
and eax, 0x240c242
or eax, 0xe9bf0d3d
dec dword [0x437388]
cmp ecx, eax
jg 0x42979b
movsx eax, word [0x439368]
dec word [0x439368]
cmp eax, 0x36af4f96
jge 0x42979b
inc word [0x43aa26]
mov ax, word [0x43aa26]
cwde
and eax, dword [0x4351e4]
mov dword [0x4351e4], eax
mov ecx, dword [0x4350d4]
mov eax, dword [0x434f18]
and ecx, 0xab378d6f
mov edx, dword [ebp + 8]
or ecx, 0x2a360561
and eax, 0xf88ee507
cmp eax, ecx
jne 0x4297dc
mov eax, dword [0x436a70]
shl eax, 2
xor eax, 0xbb3221c6
cmp eax, 0x43cd5d1e
jge 0x4297dc
xor dword [0x4362b4], 0xfedfdfdf
mov eax, dword [ebp + 0xc]
or dword [0x4340b0], 0x6d850d16
push esi
lea esi, [edx + eax*4]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
or dword [0x437a68], 0x82880128
cmp edx, esi
je 0x429871
push edi
add dword [0x436f04], 0xa33e7857
mov ecx, 0xffffe6eb
mov eax, dword [ebp - 4]
mov edi, 0xffff8464
xor dword [edx], eax
add edx, 4
mov word [0x43ac52], cx
ror eax, 3
mov dword [ebp - 4], eax
movzx eax, word [0x439408]
imul eax, eax, 0x1e44d879
mov word [0x439408], ax
or dword [0x438298], 0xc4f3d07a
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 4]
shr ecx, 8
add cl, al
add al, cl
mov byte [ebp - 3], cl
mov word [0x439678], di
mov byte [ebp - 4], al
add dword [0x438204], 0x9031242d
cmp edx, esi
jne 0x429802
pop edi
add dword [0x436578], 0x9724bb72
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42d256
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x434984]
sub esp, 0x10
mov eax, dword [0x434648]
add ecx, 0x446e83b
add eax, ecx
mov dword [0x434984], eax
mov eax, 0x166f
dec dword [0x434648]
mov word [0x439940], ax
mov eax, dword [0x4383dc]
and eax, dword [0x436c68]
mov dword [0x4383dc], eax
dec dword [0x436c68]
mov ecx, dword [0x433d6c]
movzx eax, word [0x438f7c]
or ecx, 0xdb1040d4
imul eax, ecx
push esi
push edi
xor esi, esi
mov word [0x438f7c], ax
mov ax, word [0x438a7a]
mov ecx, dword [0x434edc]
cwde
add ecx, eax
lea eax, [ebp - 0x10]
mov word [0x438a7a], cx
push eax
call dword [0x43b9e8]
mov eax, dword [0x4340d0]
and eax, 0x63be832a
cmp eax, 0xc289cc2d
jg 0x42d2f6
xor dword [0x437b1c], 0xed7acc8c
movzx edx, word [ebp - 2]
and dword [0x436ec0], 0x74ff06aa
push 0x15
pop edi
mov eax, dword [0x435b1c]
add edx, edx
shl eax, 8
add esi, edx
sub eax, 0x1397d07f
or eax, 0xa88e3988
xor dword [0x434d40], eax
or dword [0x434038], 0xebf6e5c5
mov ecx, dword [0x4368c4]
movzx eax, word [0x439892]
add ecx, 0x574f66b8
and ecx, 0xa4f2093c
imul eax, ecx
mov word [0x439892], ax
inc dword [0x4368c4]
dec edi
jne 0x42d307
add dword [0x437380], 0xc6ce701f
push edi
call fcn.00403e8c
xor esi, eax
movzx eax, word [0x438e18]
xor eax, 0x442dd9fa
pop ecx
mov word [0x438e18], ax
call dword [0x43b9a8]
xor esi, eax
mov eax, dword [0x437ea8]
add eax, 0xa0801969
or dword [0x4340e8], eax
push esi
call fcn.0040effa
movsx eax, word [0x438b8e]
pop ecx
and eax, 0xe8b35ad6
dec word [0x438b8e]
pop edi
pop esi
cmp eax, 0xbd6fcfbe
jne 0x42d3d2
movsx eax, word [0x439bec]
mov ecx, 0x9a2dbbe6
imul eax, eax, 0x16aa9bf6
sub ecx, eax
add dword [0x434e28], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4030f0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x42d00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 2
mov edi, edx
mov dword [ebp - 0x238], ecx
mov dword [ebp - 0x234], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x40314b
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x40315d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d320
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp dword [ebp - 0x228], edi
je 0x40317c
lea eax, [ebp - 0x230]
push eax
push esi
call ebx
test eax, eax
jne 0x403164
jmp 0x4031a0
push 0x103
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x238]
call fcn.0041096b
add esp, 0xc
mov dword [ebp - 0x234], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x234]
xor ecx, ebp
pop ebx
pop edi
pop esi
call fcn.0040d320
mov esp, ebp
pop ebp
ret
Function at 0x4036f0
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42d00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0x4294d0
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, dword [sym.imp.USER32.dll_FindWindowExW]
push 0
push str.TrayNotifyWnd
push 0
push eax
call esi
push 0
push str.SysPager
mov ebx, eax
push 0
push ebx
mov dword [ebp - 0x20], ebx
call esi
push 0
push str.ToolbarWindow32
push 0
test eax, eax
jne 0x40374a
push ebx
call esi
mov edi, eax
mov dword [ebp - 0x18], edi
jmp 0x403752
push eax
call esi
mov edi, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0xc]
mov edx, 1
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
dec eax
mov dword [ebp - 0x1c], edx
cmp eax, edx
jle 0x4037bb
mov ecx, dword [ebp - 8]
mov esi, 1
cmp ecx, esi
jle 0x4037a4
movzx edi, dx
movzx eax, si
shl eax, 0x10
or eax, edi
push eax
push 0
push 0x200
push dword [ebp - 0x18]
call ebx
mov ecx, dword [ebp - 8]
add esi, 4
cmp esi, ecx
jl 0x403782
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
add edx, 4
dec eax
mov dword [ebp - 0x1c], edx
cmp edx, eax
jl 0x403776
mov edi, dword [ebp - 0x18]
mov esi, dword [sym.imp.USER32.dll_FindWindowExW]
push 1
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.USER32.dll_InvalidateRect]
push 0
push str.NotifyIconOverflowWindow
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
test edi, edi
je 0x4037e9
push 0
push str.ToolbarWindow32
push 0
push edi
call esi
mov edi, eax
push 0
push str.Button
push 0
push dword [ebp - 0x20]
call esi
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4038ef
mov esi, dword [sym.imp.USER32.dll_SendMessageTimeoutW]
push 0
push 0x64
push 0
push 0x13000a
push 1
push 0x201
push eax
call esi
push 0
push 0x64
push 0
push 0x13000a
push 0
push 0x202
push dword [ebp - 0x18]
call esi
push 0
push 0x64
push 0
push 0x13000a
push 1
push 0x201
push dword [ebp - 0x18]
call esi
push 0
push 0x64
push 0
push 0x13000a
push 0
push 0x202
push dword [ebp - 0x18]
call esi
test edi, edi
je 0x4038e2
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
push 0x10001
push 1
push 0x201
push edi
call ebx
mov eax, dword [ebp - 0xc]
mov edx, 1
dec eax
mov dword [ebp - 0x1c], edx
cmp eax, edx
jle 0x4038d3
mov ecx, dword [ebp - 8]
mov esi, 1
cmp ecx, esi
jle 0x4038c5
movzx edx, dx
mov dword [ebp - 0x20], edx
movzx eax, si
shl eax, 0x10
or eax, edx
push eax
push 0
push 0x200
push edi
call ebx
mov ecx, dword [ebp - 8]
add esi, 4
mov edx, dword [ebp - 0x20]
cmp esi, ecx
jl 0x4038a2
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
add edx, 4
dec eax
mov dword [ebp - 0x1c], edx
cmp edx, eax
jl 0x403893
push 0x10001
push 0
push 0x202
push edi
call ebx
push 1
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d320
mov esp, ebp
pop ebp
ret
Function at 0x403c50
Capabilities:
Check for time delay via gettickcount
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
call ebx
mov esi, eax
mov dword [ebp - 8], esi
call ebx
sub eax, esi
cmp eax, 0x7530
ja 0x403e70
mov ebx, dword [sym.imp.USER32.dll_SendMessageTimeoutW]
mov esi, dword [sym.imp.USER32.dll_FindWindowExW]
xorps xmm0, xmm0
push 0
push 0x4294d0
movups xmmword [ebp - 0x18], xmm0
call dword [sym.imp.USER32.dll_FindWindowW]
push 0
push str.TrayNotifyWnd
push 0
push eax
call esi
push 0
push str.SysPager
push 0
push eax
mov dword [ebp - 4], eax
call esi
push 0
push str.ToolbarWindow32
push 0
push eax
call esi
mov ecx, dword [0x42d9c8]
mov edi, eax
cmp ecx, 0xffffffff
jne 0x403cfe
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x403d0e
push 0x42d9c8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x403d0e
mov ecx, dword [0x42d9c8]
test ecx, ecx
je 0x403d18
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.00403460
jmp 0x403d22
mov dword [0x42d9c8], 0
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.004031c0
test eax, eax
jne 0x403e79
call fcn.0040ada0
mov edi, dword [sym.imp.USER32.dll_FindWindowExW]
test eax, eax
je 0x403da5
push 0
push str.Button
push 0
push dword [ebp - 4]
call edi
mov esi, eax
test esi, esi
je 0x403e70
push 0
push 0x64
push 0
push 0x13000a
push 1
push 0x201
push esi
call ebx
push 0
push 0x64
push 0
push 0x13000a
push 0
push 0x202
push esi
call ebx
push 0
push 0x64
push 0
push 0x13000a
push 1
push 0x201
push esi
call ebx
push 0
push 0x64
push 0
push 0x13000a
push 0
push 0x202
push esi
call ebx
push 0
push str.NotifyIconOverflowWindow
call dword [sym.imp.USER32.dll_FindWindowW]
push 0
push str.ToolbarWindow32
push 0
push eax
call edi
mov ecx, dword [0x42d9c8]
mov edi, eax
cmp ecx, 0xffffffff
jne 0x403e00
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x403e10
push 0x42d9c8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x403e10
mov ecx, dword [0x42d9c8]
test ecx, ecx
je 0x403e1a
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.00403460
jmp 0x403e24
mov dword [0x42d9c8], 0
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.004031c0
test eax, eax
je 0x403e44
push 0x429594
call fcn.004060b0
add esp, 4
lea ecx, [ebp - 0x18]
mov edx, edi
push dword [ebp - 4]
call fcn.00403910
jmp 0x403e4e
push 0x4295ac
call fcn.004060b0
add esp, 4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 8]
cmp eax, 0x7530
jbe 0x403c7b
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x429580
call fcn.004060b0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4046b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421ff8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x42d00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00404630
push 0
push esi
push 0
push 0
push 0
push SysReAllocString
push 0
push SysReAllocString
push SysReAllocString
push 0x42968c
push str.UpdateTrayIcon
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, eax
test edi, edi
jne 0x404717
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov edi, eax
push ecx
lea ecx, [ebp - 0x10]
call fcn.00404d30
add esp, 4
mov dword [ebp - 4], 0
mov esi, 5
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x10]
call fcn.0040aa20
test eax, eax
jne 0x40478a
push 0x3e8
call ebx
dec esi
test esi, esi
jg 0x404735
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x50024
push 0x42968c
push 0x4296b0
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x404791
push 0x4296dc
call fcn.004060b0
add esp, 4
call fcn.00406590
push 0
call fcn.00415198
mov ebx, 1
jmp 0x404793
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov esi, dword [ebp - 0x10]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4047b5
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405d70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405d89
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405dc6
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x405dc2
nop word [eax + eax]
cmp esi, edx
jae 0x405dc6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x405db0
cmp esi, edx
jb 0x405dcd
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x406100
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebx]
test eax, eax
je 0x4061a2
lea ecx, [ebp - 4]
push ecx
push edi
lea ecx, [ebp - 8]
push ecx
push edi
push str.ExeString
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 8], 1
jne 0x4061a2
push esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00405de0
mov edx, dword [ebp - 4]
shr edx, 1
add edx, 1
js 0x4061ac
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or ecx, eax
jge 0x406165
push edx
mov ecx, esi
call fcn.00405fd0
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp + 0xc], eax
lea eax, [ebp - 8]
push eax
push 0
push str.ExeString
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4061a1
mov eax, dword [ebp - 4]
xor edx, edx
mov ecx, dword [ebp + 0xc]
shr eax, 1
push ecx
mov word [ecx + eax*2], dx
mov ecx, esi
call fcn.004083c0
mov edi, 1
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.00405f60
int3
Function at 0x4063e0
Capabilities:
Check if file exists
Create directory
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422198
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x42d00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [esi], ax
jne 0x406428
xor ecx, ecx
jmp 0x40643f
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406430
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00402570
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4064cd
test al, 0x10
je 0x4064b9
test al, 2
je 0x406486
push 0x90
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x406486
push str.CreateDeepDirectory__failed_to_SetFileAttributes.
push 0x42e7e0
call fcn.0040b5f0
add esp, 8
mov esi, 1
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x40649d
inc ecx
push ecx
push dword [ebp - 0x28]
call fcn.00402450
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040d320
mov esp, ebp
pop ebp
ret
mov edx, 1
mov ecx, esi
call fcn.00406630
test eax, eax
jne 0x4064cd
xor esi, esi
jmp 0x40648b
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x406486
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x406486
lea ecx, [ebp - 0x28]
call fcn.00406270
cmp dword [ebp - 0x18], 0
jne 0x4064f9
xor esi, esi
jmp 0x40648b
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
call fcn.004063e0
test eax, eax
jne 0x406514
xor esi, esi
jmp 0x40648b
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x406486
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x406486
xor esi, esi
jmp 0x40648b

Function at 0x406590
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x42d00c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40660d
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x40660d
push 0
push 0
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push 0
push dword [ebp - 0x18]
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40660d
push 0x40000
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40661b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0040d320
mov esp, ebp
pop ebp
ret
Function at 0x407370
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4223a2
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x42d00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x220], esi
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x21c], 0
call fcn.0040f860
add esp, 0xc
call fcn.00402780
mov ecx, eax
test ecx, ecx
jne 0x4073e6
push 0x80004005
call fcn.00405f60
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push 0
push 0x23
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
push 0
mov dword [ebp - 0x21c], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x407460
push str.TencentQQPCMgr_
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x218]
call fcn.004063e0
test eax, eax
je 0x407460
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407442
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00405760
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040d320
mov esp, ebp
pop ebp
ret
Function at 0x4075a0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x42d00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x20a
xor ebx, ebx
mov dword [ebp - 0x440], edx
lea eax, [ebp - 0x218]
mov esi, ecx
push ebx
push eax
mov dword [ebp - 0x438], esi
call fcn.0040f860
add esp, 0xc
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x43c], ebx
mov dword [ebp - 0x42c], ebx
push ebx
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
jne 0x407612
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d320
mov esp, ebp
pop ebp
ret
push edi
call fcn.0040da69
mov esi, eax
add esp, 4
test esi, esi
je 0x407721
push esi
push edi
push 0
push dword [ebp - 0x438]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x407718
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x42c]
push eax
push str.VarFileInfoTranslation
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x407718
mov edi, dword [ebp - 0x440]
test edi, edi
je 0x407713
push 0x20a
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.0040f860
mov ecx, dword [ebp - 0x42c]
add esp, 0xc
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str.StringFileInfo_04x_04xFileDescription
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004083a0
add esp, 0x14
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynW]
test eax, eax
je 0x4076ee
cmp dword [ebp - 0x430], 0
jbe 0x4076ee
push 0x104
push dword [ebp - 0x434]
lea eax, [ebp - 0x428]
push eax
call ebx
push 0x104
lea eax, [ebp - 0x428]
push eax
push edi
call ebx
push 0x20a
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0040f860
add esp, 0xc
mov ebx, 1
push esi
call fcn.0040da72
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d320
mov esp, ebp
pop ebp
ret