joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48a070
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a6740
mov eax, dword fs:[0]
push eax
sub esp, 0x328
mov eax, dword [0x4ce4bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x334], esi
cmp dword [esi + 0x18], 8
lea eax, [esi + 4]
jb 0x48a0b1
mov eax, dword [eax]
push 0x4b3094
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x48a27a
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push 2
push 0
push ebx
call edi
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
add esp, 0x10
cmp eax, 0x201
jl 0x48a26c
push 0x202
lea eax, [ebp - 0x214]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 2
push 0xfffffdff
push ebx
call edi
push ebx
push 0x201
lea eax, [ebp - 0x214]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x28
cmp byte [ebp - 0x214], 0x3b
jne 0x48a26c
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], 0xf
mov byte [ebp - 0x22c], 0
push 0x210
mov dword [ebp - 4], 0
call fcn.00499abe
mov edi, eax
mov dword [ebp - 0x330], eax
mov ecx, 0x80
mov dword [ebp - 0x21c], 0x200
lea esi, [ebp - 0x213]
mov dword [ebp - 0x218], 0x20f
rep movsd dword es:[edi], dword [esi]
lea edi, [eax + 0x200]
mov esi, eax
mov byte [edi], 0
push 0x20
mov dword [ebp - 0x22c], esi
call fcn.00499abe
mov ecx, dword [str.0123456789ABCDEF]
push 0x100
mov dword [ebp - 0x330], eax
mov dword [eax], ecx
mov ecx, dword [0x4b74f0]
mov dword [eax + 4], ecx
mov ecx, dword [0x4b74f4]
mov dword [eax + 8], ecx
mov ecx, dword [0x4b74f8]
mov dword [eax + 0xc], ecx
mov byte [eax + 0x10], 0
lea eax, [ebp - 0x32c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x330]
add esp, 0x14
mov ecx, eax
lea edx, [eax + 0x10]
cmp eax, edx
je 0x48a210
jmp 0x48a200
movzx eax, byte [ecx]
inc ecx
mov byte [ebp + eax - 0x32c], 1
cmp ecx, edx
jne 0x48a200
mov ecx, esi
cmp esi, edi
jae 0x48a232
jmp 0x48a220
movzx eax, byte [ecx]
cmp byte [ebp + eax - 0x32c], 0
je 0x48a23e
inc ecx
cmp ecx, edi
jb 0x48a220
mov eax, dword [ebp - 0x334]
mov byte [eax + 0x3e], 0
jmp 0x48a24f
sub ecx, esi
cmp ecx, 0xffffffff
je 0x48a232
mov eax, dword [ebp - 0x334]
mov byte [eax + 0x3e], 1
push 0x20
push dword [ebp - 0x330]
call fcn.00499aee
push 0x210
push esi
call fcn.00499aee
add esp, 0x10
jmp 0x48a270
mov byte [esi + 0x3e], 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00499afc
mov esp, ebp
pop ebp
ret
Function at 0x48af10
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a68c1
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4ce4bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4d6db4]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x4d6b10]
cmp eax, dword [ecx + 4]
jg 0x48af83
jmp 0x48af64
mov al, byte [ecx]
inc ecx
test al, al
je 0x48b08b
jmp 0x48af57
mov eax, 0x4d6af8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00499afc
mov esp, ebp
pop ebp
ret
push 0x4d6b10
call fcn.00499ebf
add esp, 4
cmp dword [0x4d6b10], 0xffffffff
jne 0x48af64
mov byte [ebp - 0x34], 0x69
mov byte [ebp - 0x33], 0x6f
mov byte [ebp - 0x32], 0x4e
mov byte [ebp - 0x31], 0x69
mov byte [ebp - 0x30], 0x2c
mov byte [ebp - 0x2f], 0x11
mov byte [ebp - 0x2e], 0x25
mov byte [ebp - 0x2d], 0x4e
mov byte [ebp - 0x2c], 0x7d
mov byte [ebp - 0x2b], 0x2c
mov byte [ebp - 0x2a], 0x11
mov byte [ebp - 0x29], 0x2c
mov byte [ebp - 0x28], 0x54
mov byte [ebp - 0x27], 0x26
mov byte [ebp - 0x26], 0x18
mov byte [ebp - 0x25], 0x68
mov byte [ebp - 0x24], 0x3a
mov byte [ebp - 0x23], 0x18
mov byte [ebp - 0x22], 4
mov byte [ebp - 0x21], 0x3a
mov byte [ebp - 0x20], 0x25
mov byte [ebp - 0x1f], 0x4e
mov byte [ebp - 0x1e], 0x6f
mov byte [ebp - 0x1d], 0x6f
mov byte [ebp - 0x1c], 0x12
mov byte [ebp - 0x1b], 4
mov byte [ebp - 0x1a], 0x3a
mov byte [ebp - 0x19], 0x18
mov byte [ebp - 0x18], 0x7c
mov byte [ebp - 0x17], 4
mov byte [ebp - 0x16], 0x6f
mov byte [ebp - 0x15], 0x25
mov byte [ebp - 0x14], 0
mov al, byte [ebp - 0x34]
mov byte [ebp - 0x13], 0
cmp byte [ebp - 0x13], 0
mov dword [ebp - 4], 0
jne 0x48b062
xor ecx, ecx
mov byte [ebp - 0x13], 1
lea esi, [ecx + 0x7f]
jmp 0x48b040
mov al, byte [ebp + ecx - 0x34]
movsx eax, al
sub eax, 0x6c
imul eax, eax, 0x13
cdq
idiv esi
lea eax, [edx + 0x7f]
cdq
idiv esi
mov byte [ebp + ecx - 0x34], dl
inc ecx
cmp ecx, 0x20
jb 0x48b040
jmp 0x48b062
lea ecx, [ebp - 0x34]
mov dword [0x4d6af8], 0
mov dword [0x4d6b08], 0
lea edx, [ecx + 1]
mov dword [0x4d6b0c], 0xf
jmp 0x48af57
sub ecx, edx
lea eax, [ebp - 0x34]
push ecx
push eax
mov ecx, 0x4d6af8
call fcn.00413a60
push 0x4a8a60
call fcn.00499d77
push 0x4d6b10
call fcn.00499e75
add esp, 8
jmp 0x48af64
Function at 0x48e7a0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a6e0d
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x4ce4bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x14], 0
je 0x48e9a3
push 0x11
xor eax, eax
mov dword [ebp - 0x30], 0
push str.ciphertextversion
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
call fcn.00404580
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00488fd0
push eax
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 1
push eax
call fcn.0048ac30
push eax
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 2
push eax
call fcn.00488d40
mov edx, dword [ebp - 0x34]
add esp, 0x18
cmp edx, 0x10
jb 0x48e875
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x48e86b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48e8f5
push edx
push ecx
call fcn.00499aee
add esp, 8
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
cmp edx, 0x10
jb 0x48e8b7
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x48e8ad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48e8f5
push edx
push ecx
call fcn.00499aee
add esp, 8
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
cmp edx, 8
jb 0x48e905
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48e8fb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x48e8fb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00499aee
add esp, 8
cmp dword [edi + 0x18], 8
lea esi, [edi + 4]
mov ecx, esi
jb 0x48e912
mov ecx, dword [esi]
cmp dword [ebp - 0x64], 8
lea eax, [ebp - 0x78]
push ecx
cmovae eax, dword [ebp - 0x78]
lea ecx, [ebp - 0x18]
push 4
push ecx
push 0
push eax
push str.Support
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x48e93e
mov word [edi + 0x3c], 0x101
jmp 0x48e967
cmp dword [esi + 0x14], 8
jb 0x48e946
mov esi, dword [esi]
push esi
push 4
lea eax, [ebp - 0x18]
push eax
push 0
push str.ciphertextversion
push str.Support
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x48e967
mov byte [edi + 0x3d], 1
mov edx, dword [ebp - 0x64]
cmp edx, 8
jb 0x48e9a3
mov ecx, dword [ebp - 0x78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48e999
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x48e999
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00499aee
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00499afc
mov esp, ebp
pop ebp
ret
Function at 0x4912a0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4ce4bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4d6db4]
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x4d6ba0]
cmp eax, dword [ecx + 4]
jg 0x491431
cmp dword [0x4ce2d8], 0
jne 0x4913ea
push edi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004910f0
mov edi, eax
add esp, 8
cmp edi, 0x4ce2c8
je 0x4913a4
mov edx, dword [0x4ce2dc]
cmp edx, 8
jb 0x491346
mov ecx, dword [0x4ce2c8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49133c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4913d1
push edx
push ecx
call fcn.00499aee
add esp, 8
mov dword [0x4ce2d8], 0
xor eax, eax
mov word [0x4ce2c8], ax
mov dword [0x4ce2dc], 7
mov eax, dword [edi]
mov dword [0x4ce2c8], eax
mov eax, dword [edi + 4]
mov dword [0x4ce2cc], eax
mov eax, dword [edi + 8]
mov dword [0x4ce2d0], eax
mov eax, dword [edi + 0xc]
mov dword [0x4ce2d4], eax
mov eax, dword [edi + 0x10]
mov dword [0x4ce2d8], eax
mov eax, dword [edi + 0x14]
mov dword [0x4ce2dc], eax
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov edx, dword [ebp - 8]
pop edi
cmp edx, 8
jb 0x4913e1
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4913d7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4913d7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00499aee
add esp, 8
cmp dword [0x4ce2d8], 0
je 0x49140c
mov eax, dword [esi + 4]
push 0x4ce2c8
cmp eax, dword [esi + 8]
je 0x491404
mov ecx, eax
call fcn.00401f70
add dword [esi + 4], 0x18
jmp 0x49140c
push eax
mov ecx, esi
call fcn.0040e020
mov ecx, dword [esi + 4]
mov eax, 0x2aaaaaab
sub ecx, dword [esi]
imul ecx
mov ecx, dword [ebp - 4]
sar edx, 2
xor ecx, ebp
mov eax, edx
shr eax, 0x1f
add eax, edx
pop esi
call fcn.00499afc
mov esp, ebp
pop ebp
ret
push 0x4d6ba0
call fcn.00499ebf
add esp, 4
cmp dword [0x4d6ba0], 0xffffffff
jne 0x4912d4
push 0x4a8cb0
call fcn.00499d77
push 0x4d6ba0
call fcn.00499e75
add esp, 8
jmp 0x4912d4
Function at 0x493050
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a754e
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x4ce4bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x78], 0
test ebx, ebx
je 0x493181
cmp dword [ebx], 0x3c
jne 0x493181
test byte [ebx + 4], 0xc
jne 0x4931ab
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x493181
cmp word [eax], 0
je 0x493181
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x493181
cmp word [eax], 0
je 0x493181
push eax
lea ecx, [ebp - 0x28]
call fcn.00401960
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push str..exe
push eax
mov dword [ebp - 0x78], 1
call fcn.004963b0
add esp, 8
test al, al
je 0x493124
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
push str.open
push dword [ebx + 0xc]
call esi
add esp, 8
test eax, eax
je 0x49311e
push str.runas
push dword [ebx + 0xc]
call esi
add esp, 8
test eax, eax
jne 0x493124
mov byte [ebp - 0x71], 1
jmp 0x493128
mov byte [ebp - 0x71], 0
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x49316b
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x493161
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x493161
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00499aee
add esp, 8
cmp byte [ebp - 0x71], 0
mov eax, dword [ebx + 0x10]
push eax
je 0x49319f
call fcn.00493a90
add esp, 4
test eax, eax
jne 0x4931ab
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00499afc
mov esp, ebp
pop ebp
ret
call fcn.00493ea0
add esp, 4
test eax, eax
je 0x493181
mov esi, dword [ebx + 0x14]
lea ecx, [ebp - 0x28]
mov edi, dword [ebx + 0x10]
push str.kSafeRunProcess
call fcn.00401960
push esi
push edi
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x70]
call fcn.004919e0
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x493213
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x493209
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x493209
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00499aee
add esp, 8
push 2
lea ecx, [ebp - 0x7c]
call fcn.00498c60
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea ecx, [ebp - 0x7c]
mov esi, eax
call fcn.00498d00
cmp dword [ebp - 0x60], 0
mov dword [ebp - 4], 4
je 0x493245
push 1
lea ecx, [ebp - 0x70]
call fcn.004957b0
lea ecx, [ebp - 0x40]
call fcn.00401bf0
lea ecx, [ebp - 0x58]
call fcn.00401bf0
lea ecx, [ebp - 0x70]
call fcn.00401bf0
mov eax, esi
jmp 0x493183
Function at 0x496180
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x30]
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.ADVAPI32.dll_CreateProcessAsUserW]
pop ebp
ret

Function at 0x4961b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
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.SHELL32.dll_ShellExecuteW]
pop ebp
ret
Function at 0x497b60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4ce4bc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push ecx
lea eax, [ebp - 0x1c]
push eax
call fcn.00412c70
add esp, 8
cmp dword [ebp - 0xc], 0
je 0x497ba3
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x497ba3
test al, 0x10
je 0x497ba3
mov bl, 1
jmp 0x497ba5
xor bl, bl
lea ecx, [ebp - 0x1c]
call fcn.00401bf0
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00499afc
mov esp, ebp
pop ebp
ret
Function at 0x497dd0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
push 8
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x497fa2
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x3f0
jne 0x497fa2
push edi
mov ecx, esi
call fcn.004989e0
mov edi, eax
cmp edi, 0xffffffff
je 0x497f99
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0xffffffff
push eax
push 0x20008
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x497f85
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
test edi, edi
je 0x497f7b
test eax, eax
je 0x497f7b
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x497e86
call ebx
cmp eax, 0x7a
jne 0x497f7b
push dword [ebp - 4]
call fcn.00499b2d
add esp, 4
mov ebx, eax
lea eax, [ebp - 4]
mov dword [ebp - 0x18], ebx
push eax
push dword [ebp - 4]
push ebx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x497f72
mov eax, dword [ebx]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x497f72
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x497f72
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x497ef8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x497f7b
push dword [ebp - 4]
call fcn.00499b2d
add esp, 4
mov dword [ebp - 8], eax
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 4]
push eax
push 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x497f5f
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x497f5f
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x497f5f
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x18]
cmp eax, 1
sete bl
call fcn.00499b36
push dword [ebp - 8]
call fcn.00499b36
add esp, 8
test bl, bl
jne 0x497f85
jmp 0x497f7b
push ebx
call fcn.00499b36
push dword [ebp - 8]
call fcn.00499b36
add esp, 8
jmp 0x497f7b
push ebx
call fcn.00499b36
add esp, 4
push edi
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov byte [esi], 1
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov eax, dword [ebp - 0xc]
cmp eax, 0xffffffff
je 0x497f99
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4983d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c0a7
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4ce4bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x208
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x21c], 1
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
test eax, eax
jne 0x498497
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4984a5
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4984a5
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.004988d0
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.00499afc
mov esp, ebp
pop ebp
ret
Function at 0x4984d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a7d72
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x4ce4bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x232]
xor ebx, ebx
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x238], ebx
call fcn.00497dd0
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], ebx
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp byte [0x4d6d38], bl
jne 0x498591
xor eax, eax
mov dword [ebp - 0x230], ebx
push str.Support_GetWinSpecialFoldersFromReg
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.004988d0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 1
mov ebx, 1
push eax
mov dword [ebp - 0x238], ebx
call fcn.0048b380
add esp, 4
mov byte [ebp - 0x231], 0
test al, al
je 0x498598
mov byte [ebp - 0x231], 1
mov dword [ebp - 4], 0
test bl, 1
je 0x4985e6
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x4985e6
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4985dc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4985dc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00499aee
add esp, 8
cmp byte [ebp - 0x231], 0
lea eax, [ebp - 0x218]
je 0x49860e
push 0xa
push 0xffffffffffffffff
push 0
push 0x104
push eax
push dword [ebp + 0xc]
call fcn.00497fd0
add esp, 0x18
jmp 0x49861c
push 0
push dword [ebp + 0xc]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov ecx, esi
mov dword [esi + 0x14], 7
mov word [esi], ax
lea eax, [ebp - 0x218]
push eax
call fcn.004988d0
cmp byte [ebp - 0x232], 0
je 0x498652
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00499afc
mov esp, ebp
pop ebp
ret