joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401d22
Capabilities:
Clear file content
Get common file path

Disassembly:
sub esp, 0x400
push esi
push edi
xor esi, esi
xor edi, edi
cmp edi, 0xacc
jge 0x401d43
push esi
call dword [sym.imp.USER32.dll_SetClipboardViewer]
call dword [sym.imp.USER32.dll_GetCaretBlinkTime]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp edi, 0x45be411
jg 0x401d5d
inc edi
cmp edi, 0x3330601
jl 0x401d2e
cmp dword [0x244b474], 0x400
jne 0x401d9f
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_DrawStateW]
push esi
call fcn.004045e1
push esi
call fcn.00404c5d
push esi
push esi
call fcn.00404aa8
push esi
call fcn.00404d13
add esp, 0x14
xor edi, edi
cmp edi, 0x16c76
jge 0x401db1
push esi
push esi
call dword [sym.imp.USER32.dll_SetCaretPos]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_LocalCompact]
cmp edi, 0x12e5c52
jg 0x401dd7
inc edi
cmp edi, 0x3003f
jl 0x401da1
mov eax, dword [0x42db84]
mov dword [0x244b474], eax
call fcn.00401a58
mov edi, 0x3078f
cmp dword [0x244b474], 0x51f
jne 0x401e03
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
dec edi
jne 0x401deb
pop edi
xor eax, eax
pop esi
add esp, 0x400
ret 0x10

Function at 0x402971
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x42622d
call fcn.004260b0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0040372e
xor edi, edi
push 4
mov dword [ebp - 4], edi
call fcn.00404d22
mov ebx, eax
pop ecx
cmp ebx, edi
je 0x4029b9
call fcn.004034e2
mov dword [ebx], eax
call fcn.004032a1
mov ecx, eax
call fcn.004011a5
mov eax, ebx
jmp 0x4029bb
xor eax, eax
mov dword [esi + 0x38], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea ecx, [esi + 0x1c]
mov dword [esi + 0x24], ecx
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x2c]
mov dword [esi + 0x34], ecx
mov dword [eax], edi
mov eax, dword [esi + 0x24]
mov dword [eax], edi
mov eax, dword [esi + 0x34]
mov dword [eax], edi
mov eax, dword [esi + 0x10]
mov dword [eax], edi
mov eax, dword [esi + 0x20]
mov dword [eax], edi
mov eax, dword [esi + 0x30]
mov dword [eax], edi
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
pop edi
mov dword [esi], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x40586d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42c354]
jne 0x405877
repz ret
jmp fcn.0040bf1c
Function at 0x41022e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42c354]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004079f7
and dword [ebp - 0x14], 0
cmp dword [0x438d6c], 0
mov dword [ebp - 0x18], eax
jne 0x4102e1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x410389
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x410389
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x438d6c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x438d70], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x438d74], eax
call edi
push eax
call esi
mov dword [0x438d7c], eax
test eax, eax
je 0x4102e1
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x438d78], eax
mov eax, dword [0x438d78]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41033a
cmp dword [0x438d7c], ecx
je 0x41033a
push eax
call esi
push dword [0x438d7c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41033a
test ebx, ebx
je 0x41033a
call edi
test eax, eax
je 0x410331
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x410331
test byte [ebp - 8], 1
jne 0x41033a
or dword [ebp + 0x10], 0x200000
jmp 0x41036d
mov eax, dword [0x438d70]
cmp eax, dword [ebp - 0x18]
je 0x41036d
push eax
call esi
test eax, eax
je 0x41036d
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41036d
mov eax, dword [0x438d74]
cmp eax, dword [ebp - 0x18]
je 0x41036d
push eax
call esi
test eax, eax
je 0x41036d
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x438d6c]
call esi
test eax, eax
je 0x410389
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41038b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040586d
leave
ret

Function at 0x10001000
Capabilities:
Encode data using xor

Disassembly:
xor edx, edx
mov al, byte [edx + section..data]
mov cl, dl
xor al, dl
sub al, 0x78
xor al, 0x8c
sub cl, al
mov al, 0x74
not cl
add cl, 0x10
not cl
sub cl, dl
ror cl, 1
xor cl, dl
sub al, cl
xor al, dl
mov byte [edx + section..data], al
inc edx
cmp edx, 0x1a05
jb 0x10001002
push 0
push 0
push section..data
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
ret
Function at 0x401070
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
sub esp, 8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0xf0000000
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
push 0
push edi
call esi
test eax, eax
je 0x401094
cmp dword [edi], 0
jne 0x4010aa
push 0xf0000000
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider__Prototype_
push 0
push edi
call esi
cmp dword [edi], 0
je 0x4010d7
mov eax, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
lea esi, [esp + 8]
call fcn.00401000
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
lea ecx, [edi + 4]
push ecx
mov ecx, dword [edi]
push 0
push 0
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov eax, dword [edi + 4]
test eax, eax
je 0x40110c
mov esi, dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
push 0
lea edx, [esp + 0x14]
push edx
mov ecx, 1
push 3
push eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
call esi
mov ecx, dword [edi + 4]
push 0
lea eax, [esp + 0x18]
push eax
push 4
push ecx
call esi
pop esi
add esp, 8
ret 8

Function at 0x401140
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push 0xffffffffffffffff
push 0x47f3e9
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push esi
push edi
mov eax, dword [0x49c0a4]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x24]
xor ebp, ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x10], ebp
call fcn.00401260
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x10], 1
mov eax, esi
cmp dword [ebx + 4], ebp
je 0x40123e
call fcn.00401310
test al, al
je 0x40123c
mov eax, dword [esi]
mov ecx, dword [esp + 0x28]
mov edx, dword [eax]
push edi
push ecx
push edx
call fcn.00467060
mov eax, dword [esi]
mov edx, dword [ebx + 4]
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x2c], edi
mov eax, dword [eax]
push eax
push ebp
push 1
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
push edx
call ebp
test eax, eax
je 0x4011df
mov edi, dword [esp + 0x28]
mov eax, esi
call fcn.00401310
jmp 0x40123c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x40121e
mov edi, dword [esp + 0x28]
mov eax, esi
call fcn.00401310
test al, al
je 0x40121e
mov eax, dword [esi]
mov eax, dword [eax]
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x28]
push ecx
push eax
push 0
push 1
push 0
push edx
call ebp
test eax, eax
jne 0x40123c
mov eax, esi
call fcn.00401370
jmp 0x40123c
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x40123c
mov eax, dword [edi]
push 0
push eax
call fcn.00464e84
add esp, 8
mov dword [edi], eax
mov dword [edi + 4], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret 8
Function at 0x401e90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401ea7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401ed8
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x401ed4
cmp esi, eax
jae 0x401ed8
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x401ec4
cmp esi, eax
jb 0x401ede
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x402130
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4815fd
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x49c0a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov esi, edx
mov dword [ebp - 4], 0
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ebx, [esi + 4]
mov edx, edi
mov edi, ebx
call fcn.004028e0
push 0x24
call fcn.0046510b
add esp, 4
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x402196
push eax
call fcn.00401f70
jmp 0x402198
xor eax, eax
mov byte [ebp - 4], 0
mov dword [esi + 8], eax
movzx edi, byte [esi + 0xc]
neg edi
sbb edi, edi
and edi, 0xfffefffb
add edi, 0x10006
push ecx
mov eax, esp
mov dword [ebp - 0x14], esp
push ebx
push eax
call fcn.00402770
mov byte [ebp - 4], 2
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00405d80
mov byte [ebp - 4], 3
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov ebx, dword [esi + 8]
push 1
call fcn.00420c7f
push 0
push edi
push ebx
mov edx, dword [ebp - 0x14]
push edx
call fcn.00459a84
add esp, 0x18
mov edi, eax
test edi, edi
je 0x402215
mov eax, dword [ebx]
push eax
call fcn.004355fa
add esp, 4
mov dword [ebp - 0x18], edi
push 0x494dbc
lea ecx, [ebp - 0x18]
push ecx
call fcn.00466bce
mov byte [ebp - 4], 0
lea edx, [ebp - 0x1c]
push edx
call fcn.004026b0
mov ecx, dword [esi + 8]
movzx eax, byte [esi + 0xc]
neg eax
sbb eax, eax
and eax, 0xffff9e58
add eax, 0x7530
push eax
mov eax, dword [ecx]
push eax
call fcn.004252bb
add esp, 8
cmp byte [esi + 0xc], 0
jne 0x40225d
mov ebx, dword [esi + 8]
push str.PRAGMA_journal_modeWAL_
call fcn.00414630
mov ecx, esi
call fcn.00402320
xor eax, eax
cmp dword [esi + 8], eax
setne al
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 0x4024c0
Capabilities:
Gather firefox profile information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x481542
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x49c0a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push str.select_host_from_moz_cookies_
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.004147d0
mov byte [ebp - 4], 1
jmp 0x402510
cmp byte [ebp - 0x1c], 0
jne 0x402555
lea esi, [ebp - 0x24]
call fcn.00414390
lea edx, [ebp + 8]
push edx
mov ecx, eax
call fcn.00402600
mov byte [ebp - 4], 2
lea edi, [ebp + 8]
call fcn.00402710
mov ebx, edi
mov edi, dword [ebp + 0xc]
call fcn.00402a60
mov eax, esi
push eax
call fcn.004143d0
mov byte [ebp - 4], 1
mov ecx, ebx
push ecx
call fcn.004026b0
jmp 0x402510
mov byte [ebp - 4], 0
lea esi, [ebp - 0x24]
call fcn.00414340
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x405070
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4829b2
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49c0a4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x28]
lea eax, [esp + 0x28]
push eax
mov ecx, 0x491e44
mov dword [esp + 0x18], 0
call fcn.004027d0
mov ebx, 1
mov dword [esp + 0x20], ebx
lea edi, [ebp + 0x25c]
lea eax, [esp + 0x28]
call fcn.00404b00
mov byte [esp + 0x20], 0
lea ecx, [esp + 0x28]
call fcn.00402880
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp byte [ebp + 8], 0
jne 0x405112
mov eax, dword [ebp]
lea ecx, [ebp + 0xc]
push ecx
push eax
mov byte [ebp + 8], bl
call edi
mov esi, eax
mov eax, dword [ebp + 0x260]
cmp esi, eax
je 0x405107
cmp eax, 0xffffffff
je 0x405107
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp + 0x260], esi
cmp esi, 0xffffffff
jmp 0x40512a
mov eax, dword [ebp + 0x260]
cmp eax, 0xffffffff
je 0x405146
lea edx, [ebp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x405146
lea esi, [ebp + 0x38]
call fcn.00408670
test al, al
jne 0x4050dc
lea eax, [ebp + 4]
lea edi, [ebp + 0x25c]
call fcn.00404b00
mov esi, dword [esp + 0x2c]
add ebp, 0xc
push ebp
push esi
call fcn.00405180
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], ebx
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8

Function at 0x405c80
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x480ba2
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebp
push esi
push edi
mov eax, dword [0x49c0a4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], 0
mov esi, 1
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x28]
push eax
call fcn.0040a6b0
mov ecx, dword [esp + 0x2c]
push 0
push 0
push 3
push 0
push esi
push SysReAllocString
push ecx
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x405d58
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x10], eax
test eax, eax
je 0x405d51
inc eax
push eax
call fcn.00464cee
add esp, 4
push 0
mov esi, eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x14]
push edx
push eax
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x10]
mov byte [esi + ecx], 0
test esi, esi
jne 0x405d2e
xor eax, eax
jmp 0x405d3c
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405d33
sub eax, edx
mov edi, eax
mov eax, dword [esp + 0x28]
push esi
call fcn.00404160
push esi
call fcn.0046597f
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x20], 0
lea ecx, [esp + 0x2c]
call fcn.00402880
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
Function at 0x405f60
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x48144b
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x49c0a4]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49c0a4]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x44], eax
mov edi, ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x44], 1
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], eax
mov word [esp + 0x20], ax
mov byte [esp + 0x44], 2
mov ecx, dword [esp + 0x30]
cmp ecx, 0x64
jb 0x405fdc
or eax, 0xffffffff
mov ebx, 0x64
lea esi, [esp + 0x1c]
call fcn.0040bf80
jmp 0x405fec
mov eax, 0x64
sub eax, ecx
lea ebx, [esp + 0x1c]
call fcn.0040bf20
push edi
call fcn.0040a6b0
cmp dword [esp + 0x34], 8
mov ebx, dword [esp + 0x20]
mov ecx, 1
mov dword [esp + 0x18], ecx
jae 0x40600a
lea ebx, [esp + 0x20]
mov eax, dword [esp + 0x4c]
cmp dword [eax - 4], ecx
mov esi, dword [eax - 0xc]
jle 0x406027
mov ecx, esi
push ecx
lea edx, [esp + 0x50]
push edx
call fcn.004041f0
mov eax, dword [esp + 0x4c]
mov ebp, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push ebx
push esi
push eax
push 0
push 0xfde9
call ebp
mov ebx, eax
test ebx, ebx
jle 0x4060a6
mov ecx, dword [esp + 0x30]
cmp ebx, ecx
ja 0x406057
or eax, 0xffffffff
lea esi, [esp + 0x1c]
call fcn.0040bf80
jmp 0x406064
mov eax, ebx
sub eax, ecx
lea ebx, [esp + 0x1c]
call fcn.0040bf20
cmp dword [esp + 0x34], 8
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x20]
jae 0x406077
lea edi, [esp + 0x20]
mov eax, dword [esp + 0x4c]
cmp dword [eax - 4], 1
mov esi, dword [eax - 0xc]
jle 0x406095
mov eax, esi
push eax
lea ecx, [esp + 0x50]
push ecx
call fcn.004041f0
mov eax, dword [esp + 0x4c]
push ebx
push edi
push esi
push eax
push 0
push 0xfde9
call ebp
mov edi, dword [esp + 0x14]
mov ebp, 8
cmp dword [esp + 0x34], ebp
jb 0x4060bd
mov eax, dword [esp + 0x20]
mov edx, eax
test eax, eax
jne 0x4060c1
jmp 0x4060d5
lea edx, [esp + 0x20]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4060c6
sub eax, esi
sar eax, 1
mov ebx, eax
push edx
mov eax, edi
call fcn.00403b20
mov byte [esp + 0x44], 1
cmp dword [esp + 0x34], ebp
jb 0x4060f7
mov edx, dword [esp + 0x20]
push edx
call fcn.00464c85
add esp, 4
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], eax
mov word [esp + 0x20], cx
mov byte [esp + 0x44], al
lea edx, [esp + 0x4c]
push edx
call fcn.004026b0
mov eax, edi
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00464c90
add esp, 0x34
ret
Function at 0x406140
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ecx
push esi
mov esi, eax
mov eax, SysReAllocString
mov dword [esp + 4], 0
test ecx, ecx
je 0x40617a
push 0
lea eax, [esp + 8]
push eax
push 0
push 2
push 0
push 0
push 0
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4061d0
mov eax, dword [esp + 4]
test edi, edi
je 0x4061a5
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
push ecx
push edi
push edx
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
test esi, esi
je 0x4061c3
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
pop ecx
ret

Function at 0x406270
Capabilities:
Get token privileges

Disassembly:
mov eax, 0x100c
call fcn.00467fd0
mov eax, dword [0x49c0a4]
xor eax, esp
mov dword [esp + 0x1008], eax
push 0xfff
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call fcn.00466e30
add esp, 0xc
lea ecx, [esp]
push ecx
push 0xf01ff
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40631a
mov ecx, dword [esp]
lea edx, [esp + 4]
push edx
push 0x1000
lea eax, [esp + 0x10]
push eax
push 3
push ecx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x40631a
xor eax, eax
cmp dword [esp + 8], eax
jbe 0x406300
lea ecx, [esp + 0x14]
mov edi, edi
mov dword [ecx], 2
inc eax
add ecx, 0xc
cmp eax, dword [esp + 8]
jb 0x4062f0
mov edx, dword [esp + 4]
mov ecx, dword [esp]
push 0
push 0
push edx
lea eax, [esp + 0x14]
push eax
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov eax, dword [esp]
test eax, eax
je 0x406328
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1008]
xor ecx, esp
call fcn.00464c90
add esp, 0x100c
ret
Function at 0x406400
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x481e62
mov eax, dword fs:[0]
push eax
sub esp, 0x80c
mov eax, dword [0x49c0a4]
xor eax, esp
mov dword [esp + 0x808], eax
mov eax, dword [0x49c0a4]
xor eax, esp
push eax
lea eax, [esp + 0x810]
mov dword fs:[0], eax
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0x16]
mov dword [esp + 0xc], 0
push ecx
mov dword [esp + 0x14], esi
mov word [esp + 0x18], ax
call fcn.00466e30
add esp, 0xc
push 0
push 0x23
lea edx, [esp + 0x14]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0xc]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x406475
mov ecx, dword [str.TSC1Data]
mov edx, dword [0x4920ac]
mov dword [eax], ecx
mov ecx, dword [0x4920b0]
mov dword [eax + 4], edx
mov edx, dword [0x4920b4]
mov dword [eax + 8], ecx
mov ecx, dword [0x4920b8]
mov dword [eax + 0xc], edx
lea edx, [esp + 0xc]
push edx
mov dword [eax + 0x10], ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4064c8
push eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
lea ecx, [esp + 0x10]
call fcn.004027d0
mov dword [esp + 0x818], 0
mov dword [esp + 4], 1
mov eax, esi
mov ecx, dword [esp + 0x810]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x808]
xor ecx, esp
call fcn.00464c90
add esp, 0x818
ret

Function at 0x406510
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x482970
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x49c0a4]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
lea esi, [esp + 0x18]
call fcn.00406400
mov dword [esp + 0x28], 0
mov eax, esi
push eax
lea ecx, [esp + 0x18]
push ecx
mov ebx, 0x4920bc
call fcn.0040b030
add esp, 8
mov byte [esp + 0x28], 1
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push edx
call esi
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
mov ebx, 0x4920c4
call fcn.0040b030
add esp, 8
mov bl, 2
mov byte [esp + 0x28], bl
mov edx, dword [esp + 0x10]
push 0
push edx
call esi
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call dword [sym.imp.SBTE.dll_SBCSOpenThreatEngineW]
mov edi, eax
test edi, edi
jbe 0x4065e6
push 1
call dword [sym.imp.SBTE.dll_SBCSEnableFileCache]
push ecx
mov edx, esp
mov dword [esp + 0x20], esp
push edx
mov ecx, str.APEnabled
xor esi, esi
call fcn.004027d0
mov byte [esp + 0x2c], 3
mov byte [esp + 0x2c], bl
mov ecx, esi
call fcn.0040cb20
test eax, eax
setne al
test al, al
je 0x4065e6
call fcn.00406340
mov byte [esp + 0x28], 1
lea ecx, [esp + 0x10]
call fcn.00402880
mov byte [esp + 0x28], 0
lea ecx, [esp + 0x14]
call fcn.00402880
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00402880
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret