joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002550
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140132390]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000256f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002578
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140002590
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140132390]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400025b0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400025b8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400025b0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400025b0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002604
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002610
add rdx, 0x28
cmp r9, rdx
jne 0x1400025f0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002620
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x140132390]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002642
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002650
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002642
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002642
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002642
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400026a5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400026b8
add rdx, 0x28
cmp rdx, r10
jne 0x140002690
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400026c7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400026d7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400026ae
test ecx, ecx
jg 0x1400026c0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140003fd8
Capabilities:
Read file via mapping

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [0x140230f28]
xor r9d, r9d
and qword [rsp + 0x20], 0
xor r8d, r8d
mov qword [0x140226938], rcx
lea edx, [r9 + 6]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [0x140226930], rax
test rax, rax
je 0x1400040f0
mov edx, dword [rax]
lea ecx, [rdx - 0x9cb8]
test ecx, 0xffffffbf
jne 0x1400040f0
mov r9d, dword [rax + 4]
mov ebx, 1
lea ecx, [r9 - 0x20000]
cmp ecx, ebx
ja 0x1400040f0
mov r8d, 0x9cb8
cmp r9d, 0x20000
jne 0x140004056
cmp edx, r8d
jne 0x1400040f0
mov ecx, 0x9cf8
cmp r9d, 0x20001
jne 0x14000406c
cmp edx, ecx
jne 0x1400040f0
cmp r9d, 0x20000
jne 0x14000407e
cmp edx, r8d
je 0x14000407e
cmp edx, ecx
jne 0x1400040f0
mov rdx, rax
lea rcx, [0x140226948]
call fcn.140130600
cmp qword [0x140226980], 0
mov dword [0x14022694c], 0x20000
je 0x1400040f0
cmp qword [0x140226968], 0
je 0x1400040f0
cmp qword [0x140226978], 0
je 0x1400040f0
cmp dword [0x14022602c], 0
jne 0x1400040c8
cmp qword [0x140226988], 0
je 0x1400040f0
mov r9d, dword [0x1402269a0]
mov r8d, dword [0x140226998]
mov edx, dword [0x140226994]
mov ecx, dword [0x140226990]
call fcn.140028484
call fcn.140022ce0
test eax, eax
jne 0x1400040f2
xor ebx, ebx
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x140004e9c
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
lea rcx, [0x140230ae0]
call fcn.140023750
xor ebx, ebx
cmp word [0x140230b00], bx
je 0x140004ecd
lea rcx, [0x140230b00]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov word [0x140230b00], bx
lea rcx, [0x140230ac0]
call fcn.140023750
cmp word [0x140230d08], bx
je 0x140004f2e
test byte [0x14022699c], 8
je 0x140004f1a
or r9, 0xffffffffffffffff
lea r8, [0x140230d08]
mov edx, 0x104
lea rcx, [0x1402303f0]
call fcn.1401525e0
lea rdx, [0x1402303f0]
mov ecx, 2
call fcn.14000919c
jmp 0x140004f27
lea rcx, [0x140230d08]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov word [0x140230d08], bx
add rsp, 0x20
pop rbx
ret
Function at 0x14000c20c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x38
xor ebp, ebp
lea rcx, [rsp + 0x70]
cmp dword [0x1401e3f60], ebp
mov eax, 0x10e0
cmovne eax, dword [0x1401e3f68]
lea esi, [rbp + 0x14]
cmp eax, esi
cmova esi, eax
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [rsp + 0x70]
mov r9d, 0x20019
mov edx, dword [rsp + 0x74]
shl rdx, 0x20
add rdx, rax
movabs rax, 0x19db1ded53e8000
cmp rdx, rax
mov rcx, rax
cmova rcx, rdx
xor r8d, r8d
sub rcx, rax
movabs rax, 0xe5109ec205d7bea7
mul rcx
lea rax, [rsp + 0x78]
mov rcx, 0xffffffff80000001
mov rdi, rdx
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftPCHealthErrorReportingDW
shr rdi, 0x1d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000c31e
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rdx, str.LastQueuePesterTime
lea rax, [rsp + 0x68]
mov dword [rsp + 0x60], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x78]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14000c31e
sub edi, dword [rsp + 0x68]
cmp edi, esi
ja 0x14000c31e
cmp dword [0x1401e3f88], ebp
je 0x14000c31a
cmp dword [0x1401e3f90], ebp
je 0x14000c31a
cmp word [0x1402321a0], bp
je 0x14000c31a
lea rdx, [0x1402321a0]
lea rcx, str.Failed_queued_reporting_pester_check_r_n
call fcn.140025aa4
xor eax, eax
jmp 0x14000c323
mov eax, 1
add rsp, 0x38
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140014e24
Capabilities:
Read data from internet
Receive data

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, GetWindowThreadProcessId
lea rcx, [0x140223d18]
mov r8d, ebx
xor edx, edx
call fcn.140130a00
mov rcx, qword [0x140223290]
lea r9d, [rbx - 0x37]
lea rax, [0x140223d54]
mov dword [0x140223d18], ebx
mov r8d, r9d
mov qword [0x140223d38], rax
lea rdx, [0x140223d18]
mov dword [0x140223d40], 0x1000
mov dword [0x140225f6c], 1
call qword [sym.imp.WININET.dll_InternetReadFileExA]
xor ebx, ebx
test eax, eax
jne 0x140014ec6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x140014ee4
cmp dword [0x1401e3f88], ebx
je 0x140014ec2
cmp dword [0x1401e3f90], ebx
je 0x140014ec2
cmp word [0x1402321a0], bx
je 0x140014ec2
lea rdx, [0x1402321a0]
lea rcx, str.NetRead_Failed._r_n
call fcn.140025aa4
xor eax, eax
jmp 0x140014ee9
mov rcx, qword [0x140245120]
xor r9d, r9d
xor r8d, r8d
mov dword [0x140225f6c], ebx
mov edx, 0x1427
call qword [sym.imp.USER32.dll_PostMessageA]
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x140016700
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rsi, qword [0x1402313d0]
xor r15d, r15d
or r12, 0xffffffffffffffff
mov ebp, r15d
test rsi, rsi
je 0x14001673b
mov rax, r12
inc rax
cmp word [rsi + rax*2], r15w
jne 0x14001672f
jmp 0x14001673e
mov rax, r15
lea rdx, str..cab
mov rcx, r12
inc rcx
cmp word [rdx + rcx*2], r15w
jne 0x140016748
lea ebx, [rcx + 0xb]
add ebx, eax
cmp ebx, 0x104
jle 0x1400167a9
cmp dword [0x1401e3f88], r15d
je 0x14001678e
cmp dword [0x1401e3f90], r15d
je 0x14001678e
cmp word [0x1402321a0], r15w
je 0x14001678e
lea rdx, [0x1402321a0]
lea rcx, str.Proposed_temp_filename_length_greater_than_MAX_PATH__cant_create._r_n
call fcn.140025aa4
xor eax, eax
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
movsxd r14, ebx
lea rcx, [r14 + r14]
call fcn.14015319c
mov qword [0x1402313e0], rax
test rax, rax
je 0x14001678e
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
test ebx, ebx
jle 0x1400167e2
mov rcx, qword [0x1402313e0]
mov r9, r12
mov r8, rsi
mov rdx, r14
call fcn.1401525e0
mov rdx, qword [0x1402313e0]
lea rcx, [0x140189654]
mov r8d, ebx
call fcn.14003348c
mov rcx, qword [0x1402313e0]
test rcx, rcx
je 0x140016813
mov rax, r12
inc rax
cmp word [rcx + rax*2], r15w
jne 0x140016807
jmp 0x140016816
mov rax, r15
mov edx, ebx
sub edx, eax
test rcx, rcx
je 0x14001682e
mov rax, r12
inc rax
cmp word [rcx + rax*2], r15w
jne 0x140016822
jmp 0x140016831
mov rax, r15
cdqe
mov r8, rdi
lea rcx, [rcx + rax*2]
call fcn.1400332c4
mov rdx, qword [0x1402313e0]
lea rcx, str..cab
mov r8d, ebx
call fcn.14003348c
mov rcx, qword [0x1402313e0]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], 0x100
mov edx, 0xc0000000
mov dword [rsp + 0x20], 1
call fcn.140106fdc
mov rdi, rax
cmp rax, r12
jne 0x1400168bb
mov ecx, 0x64
inc ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp ebp, 0x32
jl 0x1400167c1
mov rcx, qword [0x1402313e0]
test rcx, rcx
je 0x14001678e
call fcn.140152ed8
mov qword [0x1402313e0], r15
jmp 0x14001678e
mov rdx, qword [0x1402451b8]
lea r9, [rsp + 0x70]
mov rcx, rdi
mov qword [rsp + 0x20], r15
mov r8d, dword [rdx + 0x30]
mov rdx, qword [rdx + 0x38]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140016790
Function at 0x140024bdc
Capabilities:
Create process memory minidump

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x8f0
mov rax, qword [0x1401e3028]
xor rax, rsp
mov qword [rsp + 0x8e0], rax
mov r12, r9
mov r15, r8
mov r13, rcx
mov rdi, qword [rsp + 0x950]
mov rsi, qword [rsp + 0x958]
xor eax, eax
mov r14d, eax
cmp dword [0x140226950], eax
je 0x140024e72
mov ebx, dword [rsp + 0x960]
test ebx, ebx
je 0x140024c48
test rdi, rdi
je 0x140024e72
test rsi, rsi
je 0x140024e72
xor edx, edx
mov r8d, 0x820
lea rcx, [rsp + 0xc0]
call fcn.140130a00
movzx ecx, word [0x140227108]
xor r8d, r8d
test cx, cx
je 0x140024cbc
cmp cx, word [0x14018b2bc]
jne 0x140024c8b
movzx eax, word [0x14022710a]
cmp ax, word [0x14018b2be]
jne 0x140024c8b
lea r14d, [r8 + 1]
jmp 0x140024cbc
lea rax, [0x140227108]
lea rdx, [rsp + 0xc0]
mov qword [rdx], rax
test cx, cx
je 0x140024cac
add rax, 2
cmp word [rax], r8w
jne 0x140024ca2
add rdx, 8
add rax, 2
movzx ecx, word [rax]
test cx, cx
jne 0x140024c9a
test ebx, ebx
je 0x140024cdc
or r9, 0xffffffffffffffff
lea r8, str.unknown
mov edx, 0x104
lea rcx, [0x14023089a]
call fcn.1401525e0
call fcn.140022bcc
test eax, eax
jne 0x140024cec
xor eax, eax
jmp 0x140024e72
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x40000000
mov r9, r13
mov r8, r12
lea rdx, [0x140231400]
lea rcx, [rsp + 0x50]
call fcn.140023a84
xor r12d, r12d
test eax, eax
je 0x140024ce5
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rdi
mov qword [rsp + 0x90], rsi
mov dword [rsp + 0x98], r14d
lea rax, [0x1402303c4]
mov qword [rsp + 0xa0], rax
mov eax, dword [0x140226954]
mov dword [rsp + 0xa8], eax
mov dword [rsp + 0x9c], ebx
mov rcx, qword [0x140226960]
test rcx, rcx
je 0x140024d80
mov dword [rsp + 0x60], eax
mov qword [rsp + 0x64], rcx
mov dword [rsp + 0x6c], 1
lea rax, [0x140024920]
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x78], rax
cmp dword [0x1402303c4], r12d
je 0x140024db2
mov eax, dword [0x1402303c8]
test ebx, ebx
je 0x140024db7
bts eax, 0xa
jmp 0x140024db7
mov eax, 0x121
mov r9d, eax
bts r9d, 9
test ebx, ebx
cmovne r9d, eax
neg rcx
sbb rax, rax
lea rcx, [rsp + 0x60]
and rax, rcx
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rax
mov r8, qword [rsp + 0x50]
mov edx, dword [0x140226950]
mov rcx, qword [0x140226988]
call qword [sym.imp.dbghelp.dll_MiniDumpWriteDump]
test eax, eax
jne 0x140024e0d
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x140024e72
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x140024e2f
lea rdx, [0x140230858]
lea rcx, [0x14023089a]
call fcn.1400253c4
mov rdx, r15
mov rcx, r13
call fcn.1400236c0
test eax, eax
je 0x140024ce5
cmp dword [r15 + 0x18], r12d
je 0x140024ce5
test ebx, ebx
je 0x140024e69
mov rcx, qword [0x140230ab8]
test rcx, rcx
cmove rcx, qword [0x140226958]
mov qword [0x140230ab8], rcx
mov eax, 1
jmp 0x140024e72
mov rcx, qword [rsp + 0x8e0]
xor rcx, rsp
call fcn.14012e400
add rsp, 0x8f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140033688
Capabilities:
Check mutex on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x460
mov rax, qword [0x1401e3028]
xor rax, rsp
mov qword [rsp + 0x450], rax
xor ebx, ebx
mov r12, r8
mov qword [rsp + 0x38], rbx
mov rsi, rcx
test rcx, rcx
je 0x1400337f6
mov r9d, dword [rsp + 0x4c0]
lea edi, [rbx + 1]
mov qword [rcx], rbx
mov r8, rdx
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x20], edi
call fcn.1400348cc
mov ebp, dword [rsp + 0x4c0]
mov r14d, ebx
shr ebp, 0x1a
not bpl
mov qword [rsp + 0x40], rax
and bpl, dil
mov byte [rsp + 0x30], bl
test rax, rax
je 0x14003371f
mov edx, dword [rsp + 0x4c0]
mov r8, rax
shr edx, 0x17
mov ecx, 0x120001
and edx, edi
call qword [sym.imp.KERNEL32.dll_OpenMutexA]
mov qword [rsi], rax
mov rax, qword [rsi]
test rax, rax
jne 0x1400337bb
test bpl, bpl
je 0x1400337e3
mov ecx, dword [rsp + 0x4c0]
lea rdx, [rsp + 0x38]
mov r8d, edi
mov r13d, ebx
call fcn.140034514
test eax, eax
je 0x1400337a3
mov edx, dword [rsp + 0x4c0]
mov r8, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
shr edx, 0x19
and edx, edi
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [rsi], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rsp + 0x4c0]
lea rdx, [rsp + 0x38]
mov r13d, eax
call fcn.140034814
cmp r13d, 5
jne 0x1400337a3
cmp byte [rsp + 0x30], bl
jne 0x1400337a3
mov rax, qword [rsp + 0x40]
mov byte [rsp + 0x30], dil
jmp 0x1400336fd
mov rax, qword [rsi]
test rax, rax
je 0x1400337c1
cmp r13d, 0xb7
setne r14b
test rax, rax
je 0x1400337c1
cmp rax, 0xffffffffffffffff
jne 0x1400337eb
test bpl, bpl
je 0x1400337e3
mov rax, qword [0x14021eec0]
lea rcx, [0x14021eec0]
mov edx, 0x1631e1
mov rax, qword [rax + 8]
call qword [case.0x14000c75c.0]
mov qword [rsi], rbx
mov r14d, ebx
mov edi, ebx
test r12, r12
je 0x1400337f4
mov dword [r12], r14d
mov ebx, edi
mov eax, ebx
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.14012e400
add rsp, 0x460
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x14003ac18
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edx, 1
lea rcx, [0x140000000]
lea r8d, [rdx + 0xf]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
xor edi, edi
mov rbx, rax
test rax, rax
je 0x14003ac80
mov rdx, rax
lea rcx, [0x140000000]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x14003ac80
mov rdx, rbx
lea rcx, [0x140000000]
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14003ac80
cmp word [rax + 2], di
je 0x14003ac80
cmp dword [rax + 0x28], 0xfeef04bd
jne 0x14003ac80
add rax, 0x30
jmp 0x14003ac87
lea rax, [0x14018cc48]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14003e130
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov dword [rsp + 0x50], 4
lea rax, [r11 + 0x18]
xor r9d, r9d
mov qword [r11 - 0x10], rax
lea rdx, str.DWDebugBreak
mov qword [r11 - 0x18], rcx
xor r8d, r8d
mov rcx, qword [rdi]
mov ebx, 1
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor ecx, ecx
test eax, eax
cmovne ebx, ecx
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14003e18c
Capabilities:
Get token membership

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1401e3028]
xor rax, rsp
mov qword [rbp - 8], rax
and dword [rbp - 0x10], 0
lea rax, [rbp - 0x18]
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 0x10]
and dword [rsp + 0x48], 0
mov r9d, 0x220
and dword [rsp + 0x40], 0
mov r8d, 0x20
and dword [rsp + 0x38], 0
mov dl, 2
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov word [rbp - 0xc], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rbp - 0x20], eax
test eax, eax
je 0x14003e21a
mov rdx, qword [rbp - 0x18]
lea r8, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb ecx, ecx
and dword [rbp - 0x20], ecx
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rbp - 0x20]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14012e400
add rsp, 0x80
pop rbp
ret
Function at 0x14003f454
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x40
lea rax, [r11 - 0x18]
mov rbx, r9
mov rdi, r8
mov qword [r11 - 0x20], rax
and qword [r11 - 0x28], 0
lea r9, [r11 - 0x14]
xor r8d, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14003f4f9
mov eax, dword [rsp + 0x70]
cmp dword [rsp + 0x34], eax
jne 0x14003f4f9
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x14003f4b1
and qword [rdi], 0
and dword [rbx], eax
mov eax, 1
jmp 0x14003f4fb
mov rcx, rax
call fcn.14015319c
mov qword [rdi], rax
test rax, rax
je 0x14003f4f9
mov eax, dword [rsp + 0x30]
lea r9, [rsp + 0x34]
mov dword [rbx], eax
xor r8d, r8d
lea rax, [rsp + 0x30]
mov rdx, rsi
mov qword [rsp + 0x28], rax
mov rcx, rbp
mov rax, qword [rdi]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14003f4f9
mov eax, dword [rbx]
cmp dword [rsp + 0x30], eax
je 0x14003f4aa
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x14005101c
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
xor r11d, r11d
mov r9, rcx
test rcx, rcx
jne 0x14005102b
or eax, 0xffffffff
ret
movzx r8d, word [rcx]
mov edx, 0x1505
test r8w, r8w
je 0x140051066
mov r10, r11
movzx eax, r8w
sub r8w, 0x41
cmp r8w, 0x19
lea ecx, [rax + 0x20]
cmova ecx, eax
imul eax, edx, 0x21
inc r10
mov edx, ecx
movzx r8d, word [r9 + r10*2]
xor edx, eax
test r8w, r8w
jne 0x14005103d
imul eax, edx, 0x41c64e6d
imul ecx, edx, 0x10dcd
add eax, 0x3039
inc ecx
shr eax, 0x10
and ecx, 0xffff0000
or eax, ecx
ret

Function at 0x140057840
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x28
xor eax, eax
test r8, r8
je 0x140057854
test r9d, r9d
je 0x140057854
mov word [r8], ax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
add rsp, 0x28
ret

Function at 0x1401089bc
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
movzx eax, word [rcx]
xor r9d, r9d
mov edx, 0x1505
test ax, ax
je 0x1401089e4
mov r8d, r9d
imul edx, edx, 0x21
inc r8
movzx eax, ax
xor edx, eax
movzx eax, word [rcx + r8*2]
test ax, ax
jne 0x1401089cf
imul eax, edx, 0x41c64e6d
imul ecx, edx, 0x10dcd
add eax, 0x3039
inc ecx
shr eax, 0x10
and ecx, 0xffff0000
or eax, ecx
ret

Function at 0x14015904c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140158e6c
Function at 0x180046680
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x1800466a8
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x1800466ce
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1800466d0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x180046729
test ecx, ecx
jle 0x180046709
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x180046729
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x180046729
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x180046750
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x180046772
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x180046788
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1800467a4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1800467a6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1800467e2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x18004687e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x18004681d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x18004685e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x18004687e
cmp rbx, rax
ja 0x180046830
test rbx, rbx
je 0x18004687e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret