joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18018c614
Capabilities:
Set console window title

Disassembly:
sub rsp, 0xb8
mov rax, qword [0x1802a9070]
xor rax, rsp
mov qword [rsp + 0xa0], rax
cmp byte [0x1802de78d], 0
je 0x18018c63d
xor al, al
jmp 0x18018c847
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [0x1802db408], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [0x1802db428], rax
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [0x1802db418], rax
call qword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
je 0x18018c68b
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_AttachConsole]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [0x1802db410], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [0x1802db430], rax
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [0x1802db420], rax
mov edx, 3
mov rcx, qword [0x1802db410]
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov edx, 0xe1
mov rcx, qword [0x1802db420]
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
movabs rax, 0xbbae7c673f024c98
mov qword [rsp + 0x20], rax
movabs rax, 0xb014211a560cbf36
mov qword [rsp + 0x28], rax
movabs rax, 0xd5af43e45e50bf16
mov qword [rsp + 0x30], rax
movabs rax, 0x9fa570f790b5833b
mov qword [rsp + 0x38], rax
movabs rax, 0x40facc437adf6a84
mov qword [rsp + 0x40], rax
movabs rax, 0xa59e340450d5a271
mov qword [rsp + 0x48], rax
movabs rax, 0xa8b69c4aae708f05
mov qword [rsp + 0x50], rax
movabs rax, 0x62dfe9cd134fcc12
mov qword [rsp + 0x58], rax
movabs rax, 0xd4c70e024f773fc3
mov qword [rsp + 0x60], rax
movabs rax, 0xc54601472f78d644
mov qword [rsp + 0x68], rax
movabs rax, 0xf58f63c47e70cb65
mov qword [rsp + 0x70], rax
movabs rax, 0xbfd15799ffd1a316
mov qword [rsp + 0x78], rax
movabs rax, 0x288eec2609b006e7
mov qword [rsp + 0x80], rax
movabs rax, 0xcaed5a6b33f5d118
mov qword [rsp + 0x88], rax
movabs rax, 0x88dbf338c850ea69
mov qword [rsp + 0x90], rax
movabs rax, 0x62dfe9cd134fcc4a
mov qword [rsp + 0x98], rax
movdqa xmm0, xmmword [rsp + 0x20]
pxor xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x20], xmm0
movdqa xmm1, xmmword [rsp + 0x30]
pxor xmm1, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x30], xmm1
movdqa xmm0, xmmword [rsp + 0x40]
pxor xmm0, xmmword [rsp + 0x80]
movdqa xmmword [rsp + 0x40], xmm0
movdqa xmm1, xmmword [rsp + 0x50]
pxor xmm1, xmmword [rsp + 0x90]
movdqa xmmword [rsp + 0x50], xmm1
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov byte [0x1802de78d], 1
mov al, 1
jmp 0x18018c847
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1801938a0
add rsp, 0xb8
ret
Function at 0x18018e160
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.18018e380
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x18018e267
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x18018e1c4
mov rax, qword [0x1802a9008]
cmp qword [rsp + 0x20], rax
ja 0x18018e1c4
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18018e186
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.1801968e0
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x18018e1f3
jmp 0x18018e267
cmp dword [rsp + 0x50], 0x10000
jne 0x18018e24a
cmp qword [rsp + 0x48], 0x10000
jb 0x18018e24a
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18018e238
mov rax, qword [rsp + 0x28]
jmp 0x18018e269
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x18018e262
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.18018e380
mov qword [rsp + 0x20], rax
jmp 0x18018e186
xor eax, eax
add rsp, 0x68
ret

Function at 0x18018e270
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.18018e3c0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x18018e373
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x18018e2cb
mov rax, qword [0x1802a9008]
cmp qword [rsp + 0x20], rax
ja 0x18018e2cb
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18018e28d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.1801968e0
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x18018e2fa
jmp 0x18018e373
cmp dword [rsp + 0x50], 0x10000
jne 0x18018e351
cmp qword [rsp + 0x48], 0x10000
jb 0x18018e351
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18018e33f
mov rax, qword [rsp + 0x28]
jmp 0x18018e375
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x18018e36e
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.18018e3c0
mov qword [rsp + 0x20], rax
jmp 0x18018e28d
xor eax, eax
add rsp, 0x68
ret
Function at 0x18018e410
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.18018e9a0
mov qword [rsp + 0x28], 0
cmp qword [0x1802d99c8], 0
jne 0x18018e458
cmp qword [0x1802d99c0], 0
je 0x18018e458
mov rax, qword [0x1802d99c0]
mov qword [0x1802d99c8], rax
cmp qword [0x1802d99c8], 0
je 0x18018e4fe
mov rax, qword [0x1802d99c8]
cmp qword [rax + 0x10], 0
je 0x18018e4fe
mov rax, qword [0x1802d99c8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18018e4fe
mov rax, qword [0x1802d99c8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18018e4fe
mov rax, qword [0x1802d99c8]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x18018e4c4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x18018e4cb
xor eax, eax
jmp 0x18018e679
mov rax, qword [0x1802d99c8]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call fcn.1801968e0
mov rax, qword [rsp + 0x28]
jmp 0x18018e679
mov rax, qword [0x1802d99c0]
mov qword [0x1802d99c8], rax
jmp 0x18018e520
mov rax, qword [0x1802d99c8]
mov rax, qword [rax + 8]
mov qword [0x1802d99c8], rax
cmp qword [0x1802d99c8], 0
je 0x18018e56d
cmp qword [0x1802d99c8], 0
je 0x18018e56b
mov rax, qword [0x1802d99c8]
cmp qword [rax + 0x10], 0
je 0x18018e56b
mov rax, qword [0x1802d99c8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18018e56b
mov rax, qword [0x1802d99c8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18018e56b
jmp 0x18018e49c
jmp 0x18018e50e
mov rcx, qword [rsp + 0x60]
call fcn.180190820
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.18018e680
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x18018e677
mov rax, qword [rsp + 0x48]
mov qword [0x1802d99c8], rax
mov rax, qword [0x1802d99c8]
mov dword [rax], 0x52727464
mov rax, qword [0x1802d99c8]
mov qword [rax + 0x10], 0
mov rax, qword [0x1802d99c8]
mov rcx, qword [0x1802d99c0]
mov qword [rax + 8], rcx
mov rax, qword [0x1802d99c8]
mov qword [0x1802d99c0], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x1802d99c8]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x18018e628
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x18018e662
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x18018e61e
mov rax, qword [0x1802d99c8]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x18018e49c
xor eax, eax
add rsp, 0x58
ret
Function at 0x1801b0538
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1801b0558
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.18019ec10
or eax, 0xffffffff
jmp 0x1801b055a
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400110aa
Capabilities:
Add user account to group

Disassembly:
jmp 0x140011d8b
jmp qword [sym.imp.NETAPI32.dll_NetLocalGroupAddMembers]

Function at 0x1400111f9
Capabilities:
Terminate process

Disassembly:
jmp 0x1400131d0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x14001122b
Capabilities:
Add user account

Disassembly:
jmp 0x140011d85
jmp qword [sym.imp.NETAPI32.dll_NetUserAdd]

Function at 0x14001127b
Capabilities:
Add user account
Add user account to group

Disassembly:
jmp 0x140011b30
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x1d8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x3a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x1f8]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x198], rax
lea rcx, [0x1400240b7]
call fcn.140011389
nop
mov dword [rbp + 0x54], 1
mov dword [rbp + 0x74], 0
lea rax, str.newusername
mov qword [rbp + 8], rax
lea rax, str.password
mov qword [rbp + 0x10], rax
mov dword [rbp + 0x1c], 1
mov qword [rbp + 0x20], 0
mov qword [rbp + 0x28], 0
mov dword [rbp + 0x30], 1
mov qword [rbp + 0x38], 0
lea r9, [rbp + 0x74]
lea r8, [rbp + 8]
mov edx, dword [rbp + 0x54]
xor ecx, ecx
call fcn.14001122b
mov dword [rbp + 0x94], eax
cmp dword [rbp + 0x94], 0
jne 0x140011c49
mov eax, 8
imul rax, rax, 1
mov qword [rbp + 0x188], rax
mov ecx, 8
imul rcx, rcx, 2
mov qword [rbp + 0x190], rcx
mov ecx, 2
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
mov rcx, qword [rbp + 0x1c8]
mov rdx, qword [rbp + 0x188]
mov r9, qword [rcx + rdx]
mov rcx, qword [rbp + 0x1c8]
mov rdx, qword [rbp + 0x190]
mov r8, qword [rcx + rdx]
lea rdx, str.User__s_has_been_successfully_added_on__s_n
mov rcx, rax
call fcn.140011041
nop
jmp 0x140011c6b
mov ecx, 2
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
mov r8d, dword [rbp + 0x94]
lea rdx, str.A_system_error_has_occurred_in_add_user:__d_n
mov rcx, rax
call fcn.140011343
nop
mov r8d, 8
xor edx, edx
lea rcx, [rbp + 0xb8]
call fcn.1400112d0
nop
mov rax, qword [rbp + 8]
mov qword [rbp + 0xb8], rax
mov dword [rsp + 0x20], 1
lea r9, [rbp + 0xb8]
mov r8d, 3
lea rdx, str.Users
xor ecx, ecx
call fcn.1400110aa
mov dword [rbp + 0x94], eax
cmp dword [rbp + 0x94], 0
je 0x140011cdf
mov ecx, 2
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
mov r8d, dword [rbp + 0x94]
lea rdx, str.A_system_error_has_occurred_in_add_group:__d_n
mov rcx, rax
call fcn.140011343
nop
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x30]
lea rdx, [0x14001ad90]
call fcn.14001131b
mov eax, edi
mov rcx, qword [rbp + 0x198]
xor rcx, rbp
call fcn.1400111b8
lea rsp, [rbp + 0x1a8]
pop rdi
pop rbp
ret
Function at 0x140011285
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014520
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014540
xor al, al
jmp 0x1400145c1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014553
xor al, al
jmp 0x1400145c1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001457d
xor al, al
jmp 0x1400145c1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014591
xor al, al
jmp 0x1400145c1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400145a3
xor al, al
jmp 0x1400145c1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400145bf
xor al, al
jmp 0x1400145c1
mov al, 1
add rsp, 0x38
ret
Function at 0x140012410
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400113b1
movzx eax, al
test eax, eax
jne 0x140012430
mov ecx, 7
call fcn.140011325
nop
mov byte [rsp + 0x20], 0
call fcn.140011339
mov byte [rsp + 0x21], al
cmp dword [0x14001e868], 1
jne 0x140012454
mov ecx, 7
call fcn.140011325
nop
jmp 0x1400124ac
cmp dword [0x14001e868], 0
jne 0x1400124a7
mov dword [0x14001e868], 1
lea rdx, [0x14001a660]
lea rcx, [0x14001a330]
call fcn.1400111a4
test eax, eax
je 0x140012488
mov eax, 0xff
jmp 0x1400125b1
lea rdx, [0x14001a220]
lea rcx, [section..rdata]
call fcn.14001132f
mov dword [0x14001e868], 2
jmp 0x1400124ac
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011311
call fcn.1400112a8
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140012509
mov rcx, qword [rsp + 0x30]
call fcn.14001115e
movzx eax, al
test eax, eax
je 0x140012509
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140025020]
nop
call fcn.1400112df
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14001253d
mov rcx, qword [rsp + 0x38]
call fcn.14001115e
movzx eax, al
test eax, eax
je 0x14001253d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011370
nop
call fcn.140012660
mov dword [rsp + 0x28], eax
call fcn.140011285
movzx eax, al
test eax, eax
jne 0x14001255c
mov ecx, dword [rsp + 0x28]
call fcn.14001105a
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001256b
call fcn.14001137a
nop
xor edx, edx
mov cl, 1
call fcn.14001114f
mov eax, dword [rsp + 0x28]
jmp 0x1400125b1
add rsp, 0x68
ret
Function at 0x140011258
Capabilities:
Terminate process

Disassembly:
jmp 0x140014010
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x1400112f3
Capabilities:
Parse pe header

Disassembly:
jmp 0x140015360
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140015380
xor al, al
jmp 0x140015401
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140015393
xor al, al
jmp 0x140015401
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400153bd
xor al, al
jmp 0x140015401
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400153d1
xor al, al
jmp 0x140015401
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400153e3
xor al, al
jmp 0x140015401
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400153ff
xor al, al
jmp 0x140015401
mov al, 1
add rsp, 0x38
ret
Function at 0x140013240
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140011429
movzx eax, al
test eax, eax
jne 0x140013260
mov ecx, 7
call fcn.14001139d
nop
mov byte [rsp + 0x20], 0
call fcn.1400113b1
mov byte [rsp + 0x21], al
cmp dword [0x14001f868], 1
jne 0x140013284
mov ecx, 7
call fcn.14001139d
nop
jmp 0x1400132dc
cmp dword [0x14001f868], 0
jne 0x1400132d7
mov dword [0x14001f868], 1
lea rdx, [0x14001b660]
lea rcx, [0x14001b330]
call fcn.1400111fe
test eax, eax
je 0x1400132b8
mov eax, 0xff
jmp 0x1400133e1
lea rdx, [0x14001b220]
lea rcx, [section..rdata]
call fcn.1400113a7
mov dword [0x14001f868], 2
jmp 0x1400132dc
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011389
call fcn.14001131b
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140013339
mov rcx, qword [rsp + 0x30]
call fcn.1400111a4
movzx eax, al
test eax, eax
je 0x140013339
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140026020]
nop
call fcn.14001134d
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14001336d
mov rcx, qword [rsp + 0x38]
call fcn.1400111a4
movzx eax, al
test eax, eax
je 0x14001336d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.1400113e8
nop
call fcn.140013490
mov dword [rsp + 0x28], eax
call fcn.1400112f3
movzx eax, al
test eax, eax
jne 0x14001338c
mov ecx, dword [rsp + 0x28]
call fcn.140011069
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001339b
call fcn.1400113f2
nop
xor edx, edx
mov cl, 1
call fcn.140011190
mov eax, dword [rsp + 0x28]
jmp 0x1400133e1
add rsp, 0x68
ret
Function at 0x180001e70
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x170
mov rax, qword [0x1801705d0]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rdi, rcx
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
jne 0x180001fe8
mov ecx, 0x228
call fcn.18000af90
mov rbx, rax
test rax, rax
je 0x180001fe8
xor edx, edx
mov r8d, 0x228
mov rcx, rax
call fcn.18012d640
test rdi, rdi
je 0x180001f33
lea r9, [0x18014ca78]
mov r8, rdi
lea r10, [0x180143970]
sub r9, rdi
nop
movzx ecx, byte [r8]
movzx eax, byte [r9 + r8]
cmp ecx, eax
jne 0x18000200b
test ecx, ecx
jne 0x18000201d
lea rdi, [0x180178cb0]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call fcn.18012d640
lea rcx, str.SystemDrive
mov r8d, 0x8000
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x180001f31
cmp eax, 0x8000
jbe 0x180001f33
xor edi, edi
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x128
call fcn.18012d640
lea r8, [0x18014ca8c]
lea rcx, [rsp + 0x54]
mov r9, rdi
mov edx, 0x104
call fcn.1801289c4
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x54]
call fcn.18012914c
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x180001fe0
mov eax, dword [rsp + 0x30]
test al, 2
jne 0x180001f86
test al, 4
je 0x180002025
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x128
call fcn.18012d640
mov rcx, qword [rbx]
lea rdx, [rsp + 0x30]
call fcn.180129294
cmp eax, 0xffffffff
je 0x180001fe0
nop word [rax + rax]
mov eax, dword [rsp + 0x30]
test al, 2
jne 0x180001fbc
test al, 4
je 0x180002025
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x128
call fcn.18012d640
mov rcx, qword [rbx]
lea rdx, [rsp + 0x30]
call fcn.180129294
cmp eax, 0xffffffff
jne 0x180001fb0
mov rcx, rbx
call fcn.180002150
xor eax, eax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.180127700
mov rbx, qword [rsp + 0x188]
add rsp, 0x170
pop rdi
ret
movzx edx, byte [rax + r10]
movzx ecx, byte [rcx + r10]
sub ecx, edx
jne 0x180001f33
inc r8
jmp 0x180001ee0
lea rcx, [rbx + 0x10]
lea rdx, [rsp + 0x54]
mov r8d, 0x104
mov dword [rbx + 0xc], eax
call fcn.1801293d0
mov byte [rbx + 0x114], 0
mov rax, rbx
jmp 0x180001fea
Function at 0x18001111d
Capabilities:
Write file on windows

Disassembly:
jmp 0x18001fe70
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x18003a193]
call fcn.18001196f
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x18001fec7
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x18001ffd3
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x18001ff6c
cmp qword [rbp + 0x28], 0
jle 0x18001ff6c
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x18001ff0c
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.1800118e3
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rbp + 0x130], 0
jle 0x18001ffc2
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x18001ffc2
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x1800114b5
Capabilities:
Create thread

Disassembly:
jmp 0x18001a140
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x30]
lea rcx, [0x18003a0fb]
call fcn.18001196f
mov eax, dword [rbp + 0xf8]
mov dword [rbp + 0xc0], eax
cmp dword [rbp + 0xc0], 1
je 0x18001a17f
jmp 0x18001a1b5
mov rcx, qword [rbp + 0xf0]
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rbp + 0xf0]
lea r8, [0x18001174e]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
lea rsp, [rbp + 0xd8]
pop rdi
pop rbp
ret
Function at 0x18001155f
Capabilities:
Terminate process

Disassembly:
jmp 0x180022b20
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret