joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1802dd490
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov ebx, r8d
lea r9, str.sqlite_master
mov rdi, rdx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdx
mov r8, rdx
lea rdx, str.SELECT_1_FROM___w_._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d_NULL
mov rsi, rcx
call fcn.1802e3fc0
test ebx, ebx
jne 0x1802dd4e4
mov r9, rdi
lea r8, str.sqlite_master
lea rdx, str.SELECT_1_FROM_temp._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1_NULL
mov rcx, rsi
call fcn.1802e3fc0
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1802e4150
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rsi, r8
lea r14, [0x1803bb880]
mov rdi, rdx
mov rbp, rcx
xor ebx, ebx
cmp dword [rbp + 0x28], ebx
jle 0x1802e41f7
nop dword [rax]
mov r10d, ebx
xor r10d, 1
cmp ebx, 2
cmovge r10d, ebx
test rsi, rsi
je 0x1802e41c4
mov rcx, qword [rbp + 0x20]
mov rax, rsi
movsxd rdx, r10d
shl rdx, 5
mov r9, qword [rdx + rcx]
sub r9, rsi
nop dword [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [r9 + rax]
cmp edx, ecx
jne 0x1802e4233
test edx, edx
jne 0x1802e4242
mov rax, qword [rbp + 0x20]
xor r8d, r8d
movsxd rcx, r10d
mov rdx, rdi
shl rcx, 5
mov rcx, qword [rcx + rax + 0x18]
add rcx, 8
call fcn.18029c5a0
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1802e429b
inc ebx
cmp ebx, dword [rbp + 0x28]
jl 0x1802e4180
lea r8, str.sqlite_master
sub r8, rdi
movzx ecx, byte [rdi]
movzx eax, byte [r8 + rdi]
cmp ecx, eax
jne 0x1802e424a
test ecx, ecx
jne 0x1802e4258
mov rax, qword [rbp + 0x20]
mov r9, qword [rax + 0x20]
test rsi, rsi
jne 0x1802e425d
neg r9
sbb edx, edx
test edx, edx
jne 0x1802e4299
lea rdi, str.sqlite_temp_master
jmp 0x1802e4172
movzx r8d, byte [rcx + r14]
movzx edx, byte [rdx + r14]
cmp edx, r8d
jne 0x1802e41f0
inc rax
jmp 0x1802e41b0
movzx edx, byte [rax + r14]
movzx ecx, byte [rcx + r14]
cmp ecx, edx
jne 0x1802e4299
inc rdi
jmp 0x1802e4201
test r9, r9
je 0x1802e4299
mov r8, rsi
sub r9, rsi
nop dword [rax + rax]
movzx edx, byte [r8]
movzx eax, byte [r9 + r8]
cmp edx, eax
jne 0x1802e4286
test edx, edx
je 0x1802e4227
inc r8
jmp 0x1802e4270
movzx ecx, byte [rax + r14]
movzx edx, byte [rdx + r14]
sub edx, ecx
jne 0x1802e4223
inc r8
jmp 0x1802e4270
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x1802e45f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
xor r10d, r10d
mov rdi, r8
mov ebx, r10d
mov rbp, rdx
mov rsi, rcx
cmp dword [rcx + 0x28], ebx
jle 0x1802e46a8
mov qword [rsp + 0x48], r14
lea r14, [0x1803bb880]
mov eax, ebx
xor eax, 1
cmp ebx, 2
cmovge eax, ebx
movsxd r9, eax
shl r9, 5
add r9, qword [rsi + 0x20]
mov r11, qword [r9 + 0x18]
test rdi, rdi
je 0x1802e4660
mov r9, qword [r9]
mov rax, rdi
sub r9, rdi
nop dword [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [r9 + rax]
cmp edx, ecx
jne 0x1802e4694
test edx, edx
jne 0x1802e46a3
lea rcx, [r11 + 0x20]
xor r8d, r8d
mov rdx, rbp
call fcn.18029c5a0
mov r10, qword [rax + 0x10]
test r10, r10
jne 0x1802e467f
inc ebx
cmp ebx, dword [rsi + 0x28]
jl 0x1802e4620
mov r14, qword [rsp + 0x48]
mov rax, r10
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
movzx r8d, byte [rcx + r14]
movzx edx, byte [rdx + r14]
cmp edx, r8d
jne 0x1802e4678
inc rax
jmp 0x1802e4650
mov rbx, qword [rsp + 0x50]
mov rax, r10
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret

Function at 0x1802e7ca0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x20
mov rbx, rdx
mov rsi, rcx
mov rcx, rbx
mov edx, 0x5f
call qword [sym.imp.VCRUNTIME140.dll_strrchr]
mov r14, rax
test rax, rax
je 0x1802e7dc6
mov qword [rsp + 0x40], rbp
lea rbp, [0x1803bb880]
mov qword [rsp + 0x48], rdi
mov byte [rax], 0
nop dword [rax]
xor edi, edi
cmp dword [rsi + 0x28], edi
jle 0x1802e7d2a
nop word [rax + rax]
mov eax, edi
mov rdx, rbx
xor eax, 1
cmp edi, 2
cmovge eax, edi
xor r8d, r8d
movsxd rcx, eax
mov rax, qword [rsi + 0x20]
shl rcx, 5
mov rcx, qword [rcx + rax + 0x18]
add rcx, 8
call fcn.18029c5a0
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1802e7d6b
inc edi
cmp edi, dword [rsi + 0x28]
jl 0x1802e7cf0
lea r8, str.sqlite_master
sub r8, rbx
movzx ecx, byte [rbx]
movzx eax, byte [r8 + rbx]
cmp ecx, eax
jne 0x1802e7d58
test ecx, ecx
jne 0x1802e7d64
mov rax, qword [rsi + 0x20]
cmp qword [rax + 0x20], 0
jne 0x1802e7d69
lea rbx, str.sqlite_temp_master
jmp 0x1802e7ce0
movzx edx, byte [rax + rbp]
movzx ecx, byte [rcx + rbp]
cmp ecx, edx
jne 0x1802e7d69
inc rbx
jmp 0x1802e7d34
xor eax, eax
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov byte [r14], 0x5f
test rax, rax
je 0x1802e7dc6
cmp dword [rax + 0x54], 0
je 0x1802e7dc6
mov rax, qword [rax + 0x58]
lea rcx, [rsi + 0x1f8]
xor r8d, r8d
mov rdx, qword [rax]
call fcn.18029c5a0
mov rax, qword [rax + 0x10]
test rax, rax
je 0x1802e7dc6
mov rax, qword [rax]
cmp dword [rax], 3
jl 0x1802e7dc6
mov rdx, qword [rax + 0xb8]
test rdx, rdx
je 0x1802e7dc6
lea rcx, [r14 + 1]
add rsp, 0x20
pop r14
pop rsi
pop rbx
jmp rdx
xor eax, eax
add rsp, 0x20
pop r14
pop rsi
pop rbx
ret
Function at 0x1802e8f00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov rax, qword [0x1804cd010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rax, qword [rcx]
mov r13, r9
movsxd r10, edx
mov r12, r8
shl r10, 5
mov r15, rcx
mov r14d, 1
mov rdx, qword [rax + 0x20]
mov rsi, qword [r10 + rdx]
mov r9d, r14d
lea r8, str.sqlite_stat_d
lea rdx, [rsp + 0x38]
mov ecx, 0x18
call fcn.18029a330
mov rbp, qword [r15]
lea rdi, [rsp + 0x38]
xor ebx, ebx
cmp dword [rbp + 0x28], ebx
jle 0x1802e8fe5
nop dword [rax]
mov r10d, ebx
xor r10d, 1
cmp ebx, 2
cmovge r10d, ebx
test rsi, rsi
je 0x1802e8fb4
mov rcx, qword [rbp + 0x20]
mov rax, rsi
movsxd rdx, r10d
shl rdx, 5
mov r9, qword [rdx + rcx]
sub r9, rsi
nop dword [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [r9 + rax]
cmp edx, ecx
jne 0x1802e9026
test edx, edx
jne 0x1802e903c
mov rax, qword [rbp + 0x20]
xor r8d, r8d
movsxd rcx, r10d
mov rdx, rdi
shl rcx, 5
mov rcx, qword [rcx + rax + 0x18]
add rcx, 8
call fcn.18029c5a0
cmp qword [rax + 0x10], 0
jne 0x1802e909d
inc ebx
cmp ebx, dword [rbp + 0x28]
jl 0x1802e8f70
lea r8, str.sqlite_master
sub r8, rdi
nop
movzx ecx, byte [rdi]
movzx eax, byte [r8 + rdi]
cmp ecx, eax
jne 0x1802e9044
test ecx, ecx
jne 0x1802e9057
mov rax, qword [rbp + 0x20]
mov r9, qword [rax + 0x20]
test rsi, rsi
jne 0x1802e905c
neg r9
sbb edx, edx
test edx, edx
jne 0x1802e90be
lea rdi, str.sqlite_temp_master
jmp 0x1802e8f62
lea r11, [0x1803bb880]
movzx r8d, byte [rcx + r11]
movzx edx, byte [rdx + r11]
cmp edx, r8d
jne 0x1802e8fde
inc rax
jmp 0x1802e8fa0
lea rbx, [0x1803bb880]
movzx edx, byte [rax + rbx]
movzx ecx, byte [rcx + rbx]
cmp ecx, edx
jne 0x1802e90be
inc rdi
jmp 0x1802e8ff0
test r9, r9
je 0x1802e90be
mov r8, rsi
lea r10, [0x1803bb880]
sub r9, rsi
nop
movzx edx, byte [r8]
movzx eax, byte [r9 + r8]
cmp edx, eax
jne 0x1802e9086
test edx, edx
je 0x1802e901a
inc r8
jmp 0x1802e9070
movzx ecx, byte [rax + r10]
movzx edx, byte [rdx + r10]
sub edx, ecx
jne 0x1802e9012
inc r8
jmp 0x1802e9070
mov qword [rsp + 0x28], r13
lea r9, [rsp + 0x38]
mov r8, rsi
mov qword [rsp + 0x20], r12
lea rdx, str.DELETE_FROM__Q._s_WHERE__s_Q
mov rcx, r15
call fcn.1802e3fc0
inc r14d
cmp r14d, 4
jle 0x1802e8f41
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180388400
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1802f8b00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rsi
push rdi
push r12
sub rsp, 0x38
mov rsi, qword [rcx + 0x98]
mov rbx, rcx
mov rdi, qword [rcx + 0x10]
mov r12, qword [rcx]
test rsi, rsi
je 0x1802f8cfb
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], r13
xor r13d, r13d
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x30], r15
nop dword [rax + rax]
movsxd rbp, dword [rsi + 0x10]
movzx eax, byte [rbx + 0x1f]
mov r14d, dword [rsi + 0x14]
shl rbp, 5
add rbp, qword [r12 + 0x20]
test al, al
jne 0x1802f8b62
inc dword [rbx + 0x38]
mov r15d, dword [rbx + 0x38]
jmp 0x1802f8b72
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov r15d, dword [rbx + rax*4 + 0xcc]
movsxd rcx, dword [rdi + 0x90]
lea r8d, [r14 + 2]
lea edx, [rcx + 7]
cmp dword [rdi + 0x94], ecx
jg 0x1802f8b9f
mov r9d, edx
mov dword [rsp + 0x20], r14d
mov edx, 0x37
mov rcx, rdi
call fcn.1802bcd80
jmp 0x1802f8bcd
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], 0x37
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r14d
mov qword [rax + rcx*8 + 0x10], r13
mov r9, qword [rbp + 0x18]
xor edx, edx
mov r8d, dword [rsi + 0x10]
mov rcx, rbx
mov dword [rsp + 0x20], 0x61
mov r9, qword [r9 + 0x68]
call fcn.1802f7fa0
mov eax, dword [rdi + 0x90]
add eax, 5
cmp eax, dword [rdi + 0x94]
jle 0x1802f8c0c
mov rcx, rdi
call fcn.1802bcbf0
test eax, eax
jne 0x1802f8ce7
movsxd rax, dword [rdi + 0x90]
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8 + 8], 2
mov byte [rax + rcx*8], 0x33
mov dword [rax + rcx*8 + 4], r13d
lea rdx, [rax + rcx*8]
mov eax, dword [rdi + 0x90]
mov dword [rdx + 0xc], r13d
lea ecx, [r14 + 1]
mov byte [rdx + 1], r13b
add eax, 2
mov dword [rdx + 8], eax
lea eax, [r14 - 1]
mov qword [rdx + 0x10], r13
mov word [rdx + 2], r13w
mov qword [rdx + 0x18], 0x78
mov qword [rdx + 0x20], r13
mov qword [rdx + 0x28], r13
mov qword [rdx + 0x30], 0x5b
mov qword [rdx + 0x38], 2
mov qword [rdx + 0x40], r13
mov qword [rdx + 0x48], 0x79
mov qword [rdx + 0x50], r13
mov qword [rdx + 0x58], r13
mov qword [rdx + 0x60], 0x74
mov qword [rdx + 0x68], r13
mov qword [rdx + 0x70], r13
add dword [rdi + 0x90], 5
mov dword [rdx + 0x34], eax
mov eax, 8
mov word [rdx + 0x4a], ax
mov dword [rdx + 4], ecx
mov dword [rdx + 0x20], ecx
mov dword [rdx + 0x3c], r15d
mov dword [rdx + 0x50], r15d
mov dword [rdx + 0x54], ecx
test r15d, r15d
je 0x1802f8cdb
movzx eax, byte [rbx + 0x1f]
cmp al, 8
jae 0x1802f8cdb
movzx eax, al
mov dword [rbx + rax*4 + 0xcc], r15d
inc byte [rbx + 0x1f]
mov rsi, qword [rsi]
test rsi, rsi
jne 0x1802f8b40
mov r15, qword [rsp + 0x30]
mov r13, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov r14, qword [rsp + 0x70]
add rsp, 0x38
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x18035d800
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
lea rax, str.SELECT_parentnode_FROM__Q._q_parent_WHERE_nodeno_1
movsxd r15, edx
mov rdi, qword [rcx + r15*8 + 0x28]
lea r14, [rcx + r15*8]
mov qword [rsp + 0x40], rax
lea rax, str.SELECT_nodeno_FROM__Q._q_rowid_WHERE_rowid_1
mov qword [rsp + 0x48], rax
mov rbp, r9
mov rsi, r8
mov rbx, rcx
test rdi, rdi
jne 0x18035d863
mov r9, qword [rcx + 0x10]
mov r8, qword [rcx + 8]
mov rdx, qword [rsp + r15*8 + 0x40]
call fcn.18035d6f0
mov rdi, rax
mov qword [r14 + 0x28], rax
cmp dword [rbx + 0x40], 0
jne 0x18035d919
mov r8, rsi
mov edx, 1
mov rcx, rdi
call fcn.1802c4ad0
mov rcx, rdi
call fcn.1802c3740
cmp eax, 0x65
jne 0x18035d8bb
test r15d, r15d
lea rcx, str.__rowid
lea rax, str.__parent
mov r9, rbp
cmovne rax, rcx
lea rdx, str.Mapping___lld_____lld__missing_from__s_table
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov r8, rsi
call fcn.18035d780
jmp 0x18035d908
cmp eax, 0x64
jne 0x18035d908
xor edx, edx
mov rcx, rdi
call fcn.1802c4220
mov r9, rax
cmp rax, rbp
je 0x18035d908
test r15d, r15d
mov qword [rsp + 0x30], rbp
lea rcx, str.__rowid
mov qword [rsp + 0x28], rsi
lea rax, str.__parent
mov r8, rsi
cmovne rax, rcx
lea rdx, str.Found___lld_____lld__in__s_table__expected___lld_____lld_
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.18035d780
mov rcx, rdi
call fcn.1802c2870
cmp dword [rbx + 0x40], 0
jne 0x18035d919
mov dword [rbx + 0x40], eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop rdi
ret
Function at 0x180376010
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x18037604b
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x18037604b
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x20]
call fcn.18018a120
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x20
pop rdi
ret
Function at 0x1803818e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rsi
mov rax, qword [0x1804cd010]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, rcx
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x28], rcx
test rcx, rcx
je 0x18038192d
mov rcx, qword [rcx]
test rcx, rcx
je 0x18038192d
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsi + 0x38]
cmp eax, 0x7530
jb 0x1803819b3
lea rcx, [rsi + 8]
call fcn.1800112a0
lea rcx, [rsi + 0x20]
call fcn.1800112a0
lea rdx, [rsi + 8]
mov rcx, rsi
call fcn.1803819f0
lea r9, [rsi + 0x20]
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call fcn.180381cf0
lea r9, [rsi + 0x20]
mov r8b, 1
xor edx, edx
mov rcx, rsi
call fcn.180381cf0
lea r9, [rsi + 0x20]
xor r8d, r8d
mov dl, 1
mov rcx, rsi
call fcn.180381cf0
lea r9, [rsi + 0x20]
mov r8b, 1
movzx edx, r8b
mov rcx, rsi
call fcn.180381cf0
lea rdx, [rsi + 0x20]
call fcn.180382e70
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsi + 0x38], eax
mov rcx, qword [rsi]
test rcx, rcx
je 0x1803819c1
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180388400
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x180386ec0
Capabilities:
Get file size

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x70
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0xa0], rbx
mov rax, qword [0x1804cd010]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.18015aff0
nop
lea rcx, [rsp + 0x48]
call fcn.180156070
xor ebp, ebp
test al, al
jne 0x180386f11
xor dil, dil
jmp 0x180387003
mov qword [rsp + 0x30], rbp
mov ecx, 8
call fcn.180388424
mov qword [rsp + 0x40], rax
mov qword [rax], 0xffffffffffffffff
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
mov r9d, 1
mov r8d, 0x80000000
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x30]
call fcn.180174650
mov rbx, qword [rsp + 0x30]
test al, al
je 0x180386fd3
mov rdi, rbp
test rbx, rbx
je 0x180386fd3
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
jne 0x180386f7b
xor sil, sil
jmp 0x180386faa
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp eax, 0xffffffff
jne 0x180386f9c
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x180386f9c
xor sil, sil
jmp 0x180386faa
mov edi, dword [rsp + 0x40]
shl rdi, 0x20
add rdi, rsi
mov sil, 1
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x180386fc4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x180386fc4
mov qword [rbx], 0xffffffffffffffff
test sil, sil
je 0x180386fd3
test rdi, rdi
je 0x180386fd3
mov dil, 1
jmp 0x180386fd6
xor dil, dil
test rbx, rbx
je 0x180387003
mov rcx, qword [rbx]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x180386ff1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], rbp
mov edx, 8
mov rcx, rbx
call fcn.180388460
mov qword [rsp + 0x30], rbp
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x180387048
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180387043
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180387043
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180388460
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], bp
movzx eax, dil
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180388400
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x2fc4d1f80
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4d2982
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f5108]
test eax, eax
je 0x2fc4d2a1a
lea rax, [0x2fc4f50e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f5110]
mov qword [rbp - 8], rax
jmp 0x2fc4d29fe
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d29f2
cmp qword [rbp - 0x10], 0
je 0x2fc4d29f2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d29b8
lea rax, [0x2fc4f50e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d2a1b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d2b20
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d2b48
mov eax, 0
jmp 0x2fc4d2b96
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d2b71
mov eax, 0
jmp 0x2fc4d2b96
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d2b91
mov eax, 0
jmp 0x2fc4d2b96
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d2b9c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d2c1a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d2c11
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d2c11
mov rax, qword [rbp - 8]
jmp 0x2fc4d2c2f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d2be4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001c70
Capabilities:
Execute command
Write and execute a file
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xc0
mov rax, qword [0x140297858]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor edi, edi
lea rdx, [0x1400043a8]
xorps xmm0, xmm0
mov qword [rbp - 0x11], rdi
lea rcx, [rbp - 0x21]
mov qword [rbp - 9], rdi
movups xmmword [rbp - 0x21], xmm0
lea r8d, [rdi + 0xe]
call fcn.140001180
lea rdx, [rbp - 0x21]
lea rcx, [rbp - 1]
call fcn.140001610
mov rdx, rax
lea rcx, [0x140297828]
call fcn.140001530
mov rdx, qword [rbp + 0x17]
cmp rdx, 0x10
jb 0x140001d0f
mov rcx, qword [rbp - 1]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001d0a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001d0a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400022f0
cmp qword [0x140297840], 0x10
lea rdx, [0x140297828]
xorps xmm0, xmm0
mov qword [rsp + 0xd0], rbx
cmovae rdx, qword [0x140297828]
mov r8, 0xffffffffffffffff
movups xmmword [rbp - 0x21], xmm0
mov qword [rbp - 0x11], rdi
mov qword [rbp - 9], rdi
inc r8
cmp byte [rdx + r8], dil
jne 0x140001d44
lea rcx, [rbp - 0x21]
call fcn.140001180
cmp qword [rbp - 9], 0x10
lea rcx, [rbp - 0x21]
mov qword [rsp + 0x30], rdi
mov edx, 0x10000000
cmovae rcx, qword [rbp - 0x21]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], 0x80
mov dword [rbp + 0x1f], edi
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x140001dc9
cmp rbx, 0xffffffffffffffff
je 0x140001dc9
lea r9, [rbp + 0x1f]
mov qword [rsp + 0x20], rdi
mov r8d, 0x229008
lea rdx, [0x14006e800]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp - 0x21]
call fcn.1400014b0
lea r8, [0x140297828]
mov dword [rbp - 0x29], 0x61747330
lea rdx, [rbp - 0x28]
mov dword [rbp - 0x25], 0x207472
lea rcx, [rbp + 0x27]
call fcn.140001020
cmp qword [rbp + 0x3f], 0x10
lea rcx, [rbp + 0x27]
cmovae rcx, qword [rbp + 0x27]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rdx, qword [rbp + 0x3f]
mov rbx, qword [rsp + 0xd0]
cmp rdx, 0x10
jb 0x140001e4e
mov rcx, qword [rbp + 0x27]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001e49
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001e49
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400022f0
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140002660
mov rdi, qword [rsp + 0xd8]
add rsp, 0xc0
pop rbp
ret