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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd08e
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.004b782d
call fcn.00405900
mov ecx, eax
test ecx, ecx
je 0x408d92
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 0x408d81
mov edx, dword [ebp - 0x18]
xor eax, eax
push esi
mov esi, dword [ebp - 0x1c]
test edx, edx
je 0x408d2c
lea ecx, [esi + 8]
nop dword [eax]
cmp dword [ecx], 0
je 0x408d1f
inc eax
add ecx, 0xc
cmp eax, edx
jb 0x408d10
jmp 0x408d2c
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 0x408d80
mov edx, dword [ebp - 0x10]
test edx, edx
jne 0x408d55
xor ecx, ecx
jmp 0x408d6f
mov ecx, edx
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408d60
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.00406c80
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.00404870
int3
Function at 0x4095c0
Capabilities:
Contain obfuscated stackstrings
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd1f7
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.004b782d
push 0x208
lea eax, [ebp - 0x2a8]
push 0
push eax
call fcn.004ba890
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.00405900
mov ecx, eax
test ecx, ecx
je 0x4097e5
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.004048a0
test al, al
jne 0x409682
lea ecx, [ebp - 0x2a8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409664
sub ecx, edx
lea eax, [ebp - 0x2a8]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00406c80
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.00403ee0
mov edx, dword [eax]
mov dword [ebp - 4], 2
pop ebx
test edx, edx
jne 0x4097ab
xor eax, eax
jmp 0x4097bf
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4097b0
sub eax, edi
sar eax, 1
push eax
push edx
mov ecx, esi
call fcn.00404660
lea ecx, [ebp - 0xa0]
call fcn.0040c340
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.00404870
int3
Function at 0x4097f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd257
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.004b782d
mov dword [ebp - 4], 1
call fcn.00405900
mov ecx, eax
test ecx, ecx
je 0x409942
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.004ba890
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.004041d0
push 2
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004061b0
push eax
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.00404150
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 0x4098bb
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.00403ee0
mov edx, dword [eax]
mov dword [ebp - 4], 3
test edx, edx
jne 0x40990a
xor eax, eax
jmp 0x409920
mov eax, edx
push edi
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409910
sub eax, edi
sar eax, 1
pop edi
push eax
push edx
mov ecx, esi
call fcn.00404660
lea ecx, [ebp - 0x34]
call fcn.0040c340
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.00404870
int3
Function at 0x409ec0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push esi
mov ecx, 0x510279
call fcn.004b782d
push 6
push 0
mov dword [ebp - 8], 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
lea eax, [ebp - 8]
push eax
push 0x4e48d4
push 0
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHCreateItemFromParsingName]
test eax, eax
js 0x409fe5
push ebx
push edi
lea eax, [ebp - 1]
mov dword [ebp - 0x70], 0x790053
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x6c], 0x740073
push ecx
lea edx, [ebp - 0x70]
mov dword [ebp - 0x68], 0x6d0065
push edx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x64], 0x56002e
mov dword [ebp - 0x60], 0x6c006f
mov dword [ebp - 0x5c], 0x6d0075
mov dword [ebp - 0x58], 0x2e0065
mov dword [ebp - 0x54], 0x690042
mov dword [ebp - 0x50], 0x4c0074
mov dword [ebp - 0x4c], 0x63006f
mov dword [ebp - 0x48], 0x65006b
mov dword [ebp - 0x44], 0x500072
mov dword [ebp - 0x40], 0x6f0072
mov dword [ebp - 0x3c], 0x650074
mov dword [ebp - 0x38], 0x740063
mov dword [ebp - 0x34], 0x6f0069
mov dword [ebp - 0x30], 0x6e
call fcn.00403ee0
lea ecx, [ebp - 0x2c]
push ecx
push dword [eax]
call dword [sym.imp.PROPSYS.dll_PSGetPropertyKeyFromName]
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.0040c340
pop edi
pop ebx
test esi, esi
js 0x409fe5
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x18]
push edx
xorps xmm0, xmm0
lea edx, [ebp - 0x2c]
movups xmmword [ebp - 0x18], xmm0
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x34]
test eax, eax
js 0x409fe5
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp esi, 1
je 0x409ff2
cmp esi, 3
je 0x409ff2
cmp esi, 5
je 0x409ff2
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x409ff2
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40a000
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
mov ecx, 0x510279
push 0xffffffffffffffff
push 0x4dd325
push eax
mov dword fs:[0], esp
sub esp, 0x214
push esi
call fcn.004b782d
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x40a153
lea eax, [ebp - 0x14]
push eax
call fcn.00408c80
push 0x208
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004ba890
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.00405900
mov ecx, eax
test ecx, ecx
je 0x40a164
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.004048a0
test al, al
jne 0x40a0cf
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a0b0
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00406c80
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
mov byte [ebp - 4], 0
cmp dword [eax - 0xc], 0
je 0x40a11a
cmp dword [esi - 0xc], 0
je 0x40a11a
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00404270
add esp, 8
test al, al
je 0x40a11a
lea ecx, [ebp - 0x10]
call fcn.00403fc0
lea ecx, [ebp - 0x14]
call fcn.00403fc0
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 0x40a134
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 0x40a153
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.00404870
int3
Function at 0x40a2d0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push ebx
push esi
mov ecx, 0x510279
call fcn.004b782d
mov ebx, dword [ebp + 8]
or esi, 0xffffffff
mov byte [ebp - 1], 1
test ebx, ebx
je 0x40a3a6
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 0x40a38c
nop
mov eax, ebx
lea ecx, [ebp - 0x20c]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x40a34e
test dx, dx
je 0x40a34a
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x40a34e
add ecx, 4
add eax, 4
test dx, dx
jne 0x40a328
xor eax, eax
jmp 0x40a353
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40a375
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 0x40a388
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40a320
jmp 0x40a38c
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 0x40a4e0
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.004b782d
call fcn.00406da0
call fcn.00407070
mov eax, dword [eax + 8]
test eax, eax
je 0x40a5b9
cmp eax, 0xa
ja 0x40a52e
jb 0x40a5b9
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 0x40a551
sub ecx, edi
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.00403070
call fcn.0040de70
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 0x40a594
sub eax, edi
mov ecx, edx
sar eax, 1
push eax
push esi
call fcn.00403070
call fcn.0040de70
add esp, 0x1c
jmp 0x40a66e
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.00403ee0
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.0040c340
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.00403ee0
push 0
push 0
push 0
push dword [ebp + 8]
push dword [eax]
push 0
call esi
lea ecx, [ebp - 0x20]
call fcn.0040c340
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 0x40a690
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 0x40bac0
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov ecx, 0x510279
push edi
call fcn.004b782d
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x40bb26
push esi
push 0xf01ff
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x40bb05
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40bb25
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 0x40bb42
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esp, ebp
pop ebp
ret

Function at 0x40bb50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov ecx, 0x510279
call fcn.004b782d
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 0x40bbac
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], 0
cmp dword [ecx + 0x14], 0x10
mov eax, dword [ecx + 0x10]
jb 0x40bb96
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 0x40bbc8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esp, ebp
pop ebp
ret

Function at 0x40bbd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dcbee
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.004b782d
call fcn.00405900
mov ecx, eax
test ecx, ecx
je 0x40bca4
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.004ba890
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 0x40bc93
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bc67
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00406c80
push 1
push 0x4e4834
mov ecx, esi
call fcn.00404660
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.00404870
int3
Function at 0x40bcb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dcbee
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.004b782d
call fcn.00405900
mov ecx, eax
test ecx, ecx
je 0x40bd84
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.004ba890
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 0x40bd73
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bd47
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00406c80
push 1
push 0x4e4834
mov ecx, esi
call fcn.00404660
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.00404870
int3

Function at 0x40bd90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dcbee
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.004b782d
call fcn.00405900
mov ecx, eax
test ecx, ecx
je 0x40be64
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.004ba890
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 0x40be53
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40be27
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00406c80
push 1
push 0x4e4834
mov ecx, esi
call fcn.00404660
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.00404870
int3
Function at 0x40be70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dcbee
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.004b782d
call fcn.00405900
mov ecx, eax
test ecx, ecx
je 0x40bf44
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.004ba890
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 0x40bf33
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bf07
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00406c80
push 1
push 0x4e4834
mov ecx, esi
call fcn.00404660
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.00404870
int3
Function at 0x40bf50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4dd586
push eax
mov eax, 0x1008
mov dword fs:[0], esp
call fcn.004b7e10
push esi
mov ecx, 0x510279
mov dword [ebp - 0x14], 0
call fcn.004b782d
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x40c033
mov dword [ebp - 4], 0
call fcn.00405900
mov ecx, eax
test ecx, ecx
je 0x40c104
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.004ba890
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 0x40c0f3
lea ecx, [ebp - 0x814]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bff6
sub ecx, edx
lea eax, [ebp - 0x814]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00406c80
push 1
push 0x4e4834
mov ecx, esi
call fcn.00404660
mov eax, esi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.00405900
mov ecx, eax
test ecx, ecx
je 0x40c10e
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.004ba890
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 0x40c0c1
lea ecx, [ebp - 0x1014]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c090
sub ecx, edx
lea eax, [ebp - 0x1014]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00406c80
push 1
push 0x4e4834
lea ecx, [ebp - 0x10]
call fcn.00404660
mov esi, dword [ebp - 0x10]
push edi
lea edi, [esi - 0x10]
push edi
call fcn.00404990
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 0x40c0f2
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.00404870
push 0x80004005
call fcn.00404870
int3