joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408e30
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd0fe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov ecx, 0x510279
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
call fcn.004b787d
call fcn.004059f0
mov ecx, eax
test ecx, ecx
je 0x408f42
mov eax, dword [ecx]
push edi
call dword [eax + 0xc]
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], 1
push eax
push 1
push 0
push 0
call sub.WTSAPI32.dll_WTSEnumerateSessionsW
test eax, eax
je 0x408f31
mov edx, dword [ebp - 0x18]
xor eax, eax
push esi
mov esi, dword [ebp - 0x1c]
test edx, edx
je 0x408edc
lea ecx, [esi + 8]
nop dword [eax]
cmp dword [ecx], 0
je 0x408ecf
inc eax
add ecx, 0xc
cmp eax, edx
jb 0x408ec0
jmp 0x408edc
lea eax, [eax + eax*2]
movq xmm0, qword [esi + eax*4]
movq qword [ebp - 0x2c], xmm0
push esi
call sub.WTSAPI32.dll_WTSFreeMemory
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
push 5
push dword [ebp - 0x2c]
push 0
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x408f30
mov edx, dword [ebp - 0x10]
test edx, edx
jne 0x408f05
xor ecx, ecx
jmp 0x408f1f
mov ecx, edx
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408f10
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.00406d70
push dword [ebp - 0x10]
call sub.WTSAPI32.dll_WTSFreeMemory
pop esi
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004048a0
int3
Function at 0x409770
Capabilities:
Contain obfuscated stackstrings
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd267
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x29c
mov ecx, 0x510279
mov dword [ebp - 4], 0
mov dword [ebp - 0x94], 0
call fcn.004b787d
push 0x208
lea eax, [ebp - 0x2a8]
push 0
push eax
call fcn.004ba8e0
add esp, 0xc
lea eax, [ebp - 0x2a8]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
call fcn.004059f0
mov ecx, eax
test ecx, ecx
je 0x409995
mov eax, dword [ecx]
push esi
push edi
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x2a8]
mov dword [ebp - 4], 1
push eax
mov ecx, esi
call fcn.004048d0
test al, al
jne 0x409832
lea ecx, [ebp - 0x2a8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409814
sub ecx, edx
lea eax, [ebp - 0x2a8]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00406d70
push ebx
xor eax, eax
mov dword [ebp - 4], 0
mov word [ebp - 0x14], ax
lea ecx, [ebp - 0x12]
lea eax, [ebp - 0xd]
mov dword [ebp - 0x94], 1
push eax
push ecx
lea edx, [ebp - 0x90]
mov dword [ebp - 0x90], 0x4d005c
push edx
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x8c], 0x630069
mov dword [ebp - 0x88], 0x6f0072
mov dword [ebp - 0x84], 0x6f0073
mov dword [ebp - 0x80], 0x740066
mov dword [ebp - 0x7c], 0x49005c
mov dword [ebp - 0x78], 0x74006e
mov dword [ebp - 0x74], 0x720065
mov dword [ebp - 0x70], 0x65006e
mov dword [ebp - 0x6c], 0x200074
mov dword [ebp - 0x68], 0x780045
mov dword [ebp - 0x64], 0x6c0070
mov dword [ebp - 0x60], 0x72006f
mov dword [ebp - 0x5c], 0x720065
mov dword [ebp - 0x58], 0x51005c
mov dword [ebp - 0x54], 0x690075
mov dword [ebp - 0x50], 0x6b0063
mov dword [ebp - 0x4c], 0x4c0020
mov dword [ebp - 0x48], 0x750061
mov dword [ebp - 0x44], 0x63006e
mov dword [ebp - 0x40], 0x5c0068
mov dword [ebp - 0x3c], 0x730055
mov dword [ebp - 0x38], 0x720065
mov dword [ebp - 0x34], 0x500020
mov dword [ebp - 0x30], 0x6e0069
mov dword [ebp - 0x2c], 0x65006e
mov dword [ebp - 0x28], 0x5c0064
mov dword [ebp - 0x24], 0x610054
mov dword [ebp - 0x20], 0x6b0073
mov dword [ebp - 0x1c], 0x610042
mov dword [ebp - 0x18], 0x5c0072
call fcn.00403f10
mov edx, dword [eax]
mov dword [ebp - 4], 2
pop ebx
test edx, edx
jne 0x40995b
xor eax, eax
jmp 0x40996f
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409960
sub eax, edi
sar eax, 1
push eax
push edx
mov ecx, esi
call fcn.00404690
lea ecx, [ebp - 0xa0]
call fcn.0040c550
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004048a0
int3
Function at 0x4099a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd2c7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
mov ecx, 0x510279
mov dword [ebp - 0x14], 0
call fcn.004b787d
mov dword [ebp - 4], 1
call fcn.004059f0
mov ecx, eax
test ecx, ecx
je 0x409af2
mov eax, dword [ecx]
push esi
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
push 0x104
push 0
mov dword [ebp - 0x14], 2
mov dword [esi], eax
lea eax, [ebp - 0x138]
push eax
call fcn.004ba8e0
add esp, 0xc
lea eax, [ebp - 0x138]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x138]
mov ecx, esi
push eax
call fcn.00404200
push 2
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004062a0
push eax
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.00404180
mov edx, dword [ebp - 0x28]
or eax, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409a6b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0xd]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push ecx
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], 0x55005c
push edx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x20], 0x650073
mov dword [ebp - 0x1c], 0x730072
mov dword [ebp - 0x18], 0x5c
call fcn.00403f10
mov edx, dword [eax]
mov dword [ebp - 4], 3
test edx, edx
jne 0x409aba
xor eax, eax
jmp 0x409ad0
mov eax, edx
push edi
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409ac0
sub eax, edi
sar eax, 1
pop edi
push eax
push edx
mov ecx, esi
call fcn.00404690
lea ecx, [ebp - 0x34]
call fcn.0040c550
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004048a0
int3
Function at 0x40a070
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd38d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push esi
mov ecx, 0x510279
mov dword [ebp - 4], 0
call fcn.004b787d
push 6
push 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
lea eax, [ebp - 0x14]
push eax
push 0x4e48d4
push 0
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHCreateItemFromParsingName]
test eax, eax
js 0x40a1ac
push edi
lea eax, [ebp - 0xd]
mov dword [ebp - 0x7c], 0x790053
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x78], 0x740073
push ecx
lea edx, [ebp - 0x7c]
mov dword [ebp - 0x74], 0x6d0065
push edx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x70], 0x56002e
mov dword [ebp - 0x6c], 0x6c006f
mov dword [ebp - 0x68], 0x6d0075
mov dword [ebp - 0x64], 0x2e0065
mov dword [ebp - 0x60], 0x690042
mov dword [ebp - 0x5c], 0x4c0074
mov dword [ebp - 0x58], 0x63006f
mov dword [ebp - 0x54], 0x65006b
mov dword [ebp - 0x50], 0x500072
mov dword [ebp - 0x4c], 0x6f0072
mov dword [ebp - 0x48], 0x650074
mov dword [ebp - 0x44], 0x740063
mov dword [ebp - 0x40], 0x6f0069
mov dword [ebp - 0x3c], 0x6e
call fcn.00403f10
lea ecx, [ebp - 0x38]
push ecx
push dword [eax]
call dword [sym.imp.PROPSYS.dll_PSGetPropertyKeyFromName]
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.0040c550
pop edi
test esi, esi
js 0x40a1ac
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x24]
push edx
xorps xmm0, xmm0
lea edx, [ebp - 0x38]
movups xmmword [ebp - 0x24], xmm0
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x34]
test eax, eax
js 0x40a1ac
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp esi, 1
je 0x40a1b9
cmp esi, 3
je 0x40a1b9
cmp esi, 5
je 0x40a1b9
xor dl, dl
jmp 0x40a1bb
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x40a1b9
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dl, 1
mov eax, dword [ebp + 8]
or ecx, 0xffffffff
mov byte [ebp - 0xd], dl
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lock xadd dword [eax + 0xc], ecx
dec ecx
pop esi
test ecx, ecx
jg 0x40a1f2
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov al, dl
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40a210
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
mov ecx, 0x510279
push 0xffffffffffffffff
push 0x4dd3b5
push eax
mov dword fs:[0], esp
sub esp, 0x214
push esi
call fcn.004b787d
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x40a363
lea eax, [ebp - 0x14]
push eax
call fcn.00408e30
push 0x208
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004ba8e0
add esp, 0x10
mov dword [ebp - 0x18], 0x104
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
call fcn.004059f0
mov ecx, eax
test ecx, ecx
je 0x40a374
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x10]
call fcn.004048d0
test al, al
jne 0x40a2df
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a2c0
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00406d70
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
mov byte [ebp - 4], 0
cmp dword [eax - 0xc], 0
je 0x40a32a
cmp dword [esi - 0xc], 0
je 0x40a32a
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004042a0
add esp, 8
test al, al
je 0x40a32a
lea ecx, [ebp - 0x10]
call fcn.00403ff0
lea ecx, [ebp - 0x14]
call fcn.00403ff0
mov al, 1
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40a344
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax - 0x10]
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x40a363
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
xor al, al
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004048a0
int3
Function at 0x40a4e0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push ebx
push esi
mov ecx, 0x510279
call fcn.004b787d
mov ebx, dword [ebp + 8]
or esi, 0xffffffff
mov byte [ebp - 1], 1
test ebx, ebx
je 0x40a5b6
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40a59c
nop
mov eax, ebx
lea ecx, [ebp - 0x20c]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x40a55e
test dx, dx
je 0x40a55a
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x40a55e
add ecx, 4
add eax, 4
test dx, dx
jne 0x40a538
xor eax, eax
jmp 0x40a563
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40a585
mov esi, dword [ebp - 0x228]
push esi
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp eax, 1
jne 0x40a598
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40a530
jmp 0x40a59c
mov byte [ebp - 1], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [ebp - 1]
xor ecx, ecx
pop edi
cmp esi, 0xffffffff
pop esi
cmove eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a6f0
Capabilities:
Contain obfuscated stackstrings
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd38d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push esi
push edi
mov ecx, 0x510279
mov dword [ebp - 4], 0
call fcn.004b787d
call fcn.00406e90
call fcn.00407160
mov eax, dword [eax + 8]
test eax, eax
je 0x40a7c9
cmp eax, 0xa
ja 0x40a73e
jb 0x40a7c9
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
push 0
sub esp, 0x18
mov ecx, esi
mov edx, esp
lea edi, [ecx + 2]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a761
sub ecx, edi
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.00403070
call fcn.0040e330
mov esi, dword [ebp + 8]
add esp, 0x1c
mov eax, esi
xorps xmm0, xmm0
push 1
sub esp, 0x18
lea edi, [eax + 2]
mov edx, esp
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a7a4
sub eax, edi
mov ecx, edx
sar eax, 1
push eax
push esi
call fcn.00403070
call fcn.0040e330
add esp, 0x1c
jmp 0x40a87e
xor eax, eax
mov dword [ebp - 0x3c], 0x610074
mov word [ebp - 0x24], ax
lea ecx, [ebp - 0x22]
lea eax, [ebp - 0xd]
mov dword [ebp - 0x38], 0x6b0073
push eax
push ecx
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x34], 0x610062
push edx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x30], 0x750072
mov dword [ebp - 0x2c], 0x70006e
mov dword [ebp - 0x28], 0x6e0069
call fcn.00403f10
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
push 0
push 0
push dword [ebp + 8]
push dword [eax]
push 0
call esi
lea ecx, [ebp - 0x20]
call fcn.0040c550
xor eax, eax
mov dword [ebp - 0x38], 0x610074
mov word [ebp - 0x24], ax
lea ecx, [ebp - 0x22]
lea eax, [ebp - 0xd]
mov dword [ebp - 0x34], 0x6b0073
push eax
push ecx
lea edx, [ebp - 0x38]
mov dword [ebp - 0x30], 0x610062
push edx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x2c], 0x700072
mov dword [ebp - 0x28], 0x6e0069
call fcn.00403f10
push 0
push 0
push 0
push dword [ebp + 8]
push dword [eax]
push 0
call esi
lea ecx, [ebp - 0x20]
call fcn.0040c550
mov edx, dword [ebp + 8]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40a8a0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40bcd0
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov ecx, 0x510279
push edi
call fcn.004b787d
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x40bd36
push esi
push 0xf01ff
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x40bd15
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40bd35
lea eax, [ebp - 0x1c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop esi
mov edx, dword [ebp + 8]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
pop edi
test eax, eax
jg 0x40bd52
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esp, ebp
pop ebp
ret

Function at 0x40bd60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov ecx, 0x510279
call fcn.004b787d
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40bdbc
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], 0
cmp dword [ecx + 0x14], 0x10
mov eax, dword [ecx + 0x10]
jb 0x40bda6
mov ecx, dword [ecx]
push 0
lea edx, [ebp - 4]
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 8]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
pop esi
test eax, eax
jg 0x40bdd8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esp, ebp
pop ebp
ret

Function at 0x40bde0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dcc3e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x804
mov ecx, 0x510279
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.004b787d
call fcn.004059f0
mov ecx, eax
test ecx, ecx
je 0x40beb4
mov eax, dword [ecx]
push esi
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x10], 1
call fcn.004ba8e0
add esp, 0xc
lea eax, [ebp - 0x810]
push 0
push 0x17
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40bea3
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40be77
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00406d70
push 1
push 0x4e4834
mov ecx, esi
call fcn.00404690
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004048a0
int3
Function at 0x40bec0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dcc3e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x804
mov ecx, 0x510279
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.004b787d
call fcn.004059f0
mov ecx, eax
test ecx, ecx
je 0x40bf94
mov eax, dword [ecx]
push esi
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x10], 1
call fcn.004ba8e0
add esp, 0xc
lea eax, [ebp - 0x810]
push 0
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40bf83
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bf57
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00406d70
push 1
push 0x4e4834
mov ecx, esi
call fcn.00404690
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004048a0
int3

Function at 0x40bfa0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dcc3e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x804
mov ecx, 0x510279
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.004b787d
call fcn.004059f0
mov ecx, eax
test ecx, ecx
je 0x40c074
mov eax, dword [ecx]
push esi
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x10], 1
call fcn.004ba8e0
add esp, 0xc
lea eax, [ebp - 0x810]
push 0
push 0x19
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40c063
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c037
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00406d70
push 1
push 0x4e4834
mov ecx, esi
call fcn.00404690
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004048a0
int3
Function at 0x40c080
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dcc3e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x804
mov ecx, 0x510279
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.004b787d
call fcn.004059f0
mov ecx, eax
test ecx, ecx
je 0x40c154
mov eax, dword [ecx]
push esi
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x10], 1
call fcn.004ba8e0
add esp, 0xc
lea eax, [ebp - 0x810]
push 0
push 2
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40c143
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c117
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00406d70
push 1
push 0x4e4834
mov ecx, esi
call fcn.00404690
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004048a0
int3
Function at 0x40c160
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4dd5f6
push eax
mov eax, 0x1008
mov dword fs:[0], esp
call fcn.004b7e60
push esi
mov ecx, 0x510279
mov dword [ebp - 0x14], 0
call fcn.004b787d
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x40c243
mov dword [ebp - 4], 0
call fcn.004059f0
mov ecx, eax
test ecx, ecx
je 0x40c314
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
push 0x800
push 0
mov dword [ebp - 0x14], 2
mov dword [esi], eax
lea eax, [ebp - 0x814]
push eax
call fcn.004ba8e0
add esp, 0xc
lea eax, [ebp - 0x814]
push 0
push 0x19
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40c303
lea ecx, [ebp - 0x814]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c206
sub ecx, edx
lea eax, [ebp - 0x814]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00406d70
push 1
push 0x4e4834
mov ecx, esi
call fcn.00404690
mov eax, esi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.004059f0
mov ecx, eax
test ecx, ecx
je 0x40c31e
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
push 0x800
lea eax, [ebp - 0x1014]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.004ba8e0
add esp, 0xc
lea eax, [ebp - 0x1014]
push 0
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40c2d1
lea ecx, [ebp - 0x1014]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c2a0
sub ecx, edx
lea eax, [ebp - 0x1014]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00406d70
push 1
push 0x4e4834
lea ecx, [ebp - 0x10]
call fcn.00404690
mov esi, dword [ebp - 0x10]
push edi
lea edi, [esi - 0x10]
push edi
call fcn.004049c0
mov esi, dword [ebp + 8]
add eax, 0x10
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [esi], eax
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40c302
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
pop edi
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004048a0
push 0x80004005
call fcn.004048a0
int3