joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410a90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov ebx, dword [rcx + 0x28]
mov rdi, rdx
mov r13, r8
test ebx, ebx
jle 0x410b2a
mov rsi, qword [rcx + 0x20]
xor ebp, ebp
lea r12, [0x00625d40]
nop word [rax + rax]
mov r9d, ebp
xor r9d, 1
cmp ebp, 2
cmovge r9d, ebp
movsxd rax, r9d
shl rax, 5
add rax, rsi
test r13, r13
je 0x410b0a
mov r10, qword [rax]
xor r8d, r8d
jmp 0x410af7
movzx ecx, byte [r12 + rcx]
cmp byte [r12 + rdx], cl
jne 0x410b40
add r8, 1
movzx edx, byte [r10 + r8]
movzx ecx, byte [r13 + r8]
cmp edx, ecx
jne 0x410ae8
test edx, edx
jne 0x410af3
mov rcx, qword [rax + 0x18]
mov rdx, rdi
add rcx, 0x20
call fcn.0040fe10
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x410b2c
add ebp, 1
cmp ebp, ebx
jne 0x410ac0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
test r9d, r9d
jne 0x410b23
mov r9, r13
lea r8, str.main
jmp 0x410b6b
movzx ecx, byte [r12 + rcx]
cmp byte [r12 + rdx], cl
jne 0x410b23
add r8, 1
add r9, 1
movzx edx, byte [r8]
movzx ecx, byte [r9]
cmp edx, ecx
jne 0x410b58
test edx, edx
jne 0x410b63
jmp 0x410b0a
Function at 0x4149a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov r14d, dword [rcx + 0x80]
movsxd rax, edx
mov r13, rcx
mov rcx, qword [rcx + 0x78]
lea rdx, [rax*8]
mov rsi, rax
sub rdx, rax
shl rdx, 3
test rcx, rcx
je 0x414b88
test rdx, rdx
je 0x414ba0
cmp rdx, 0x7ffffeff
ja 0x414b52
call fcn.0040f020
mov rdi, rax
test rdi, rdi
je 0x414b52
movsxd rdx, r14d
lea rbp, [0x0060de60]
xor r12d, r12d
lea rax, [rdx*8]
sub rax, rdx
xor edx, edx
lea rbx, [rdi + rax*8]
mov eax, esi
sub eax, r14d
mov rcx, rbx
cdqe
lea r8, [rax*8]
sub r8, rax
shl r8, 3
call sub.msvcrt.dll_memset
mov qword [r13 + 0x78], rdi
cmp r14d, esi
jl 0x414afc
jmp 0x414b80
mov rcx, qword [0x0066ea40]
test rcx, rcx
je 0x414a6a
call qword [0x0060dee0]
mov ecx, 0x200
call fcn.00410e20
mov rdx, rax
test rdx, rdx
je 0x414b43
lea rdi, [rdx + 8]
mov rcx, rdx
mov rax, r12
mov qword [rdx], 0
mov qword [rdx + 0x1f8], 0
and rdi, 0xfffffffffffffff8
sub rcx, rdi
add ecx, 0x200
shr ecx, 3
rep stosq qword [rdi], rax
mov dword [rdx], r15d
mov qword [rbx + 0x10], rdx
mov rax, qword [r13 + 0x128]
mov dword [rbx + 0x20], 1
test rax, rax
je 0x414ae4
mov edx, dword [rax + 0x58]
mov dword [rbx + 0x24], edx
mov edx, dword [rax + 0x60]
mov dword [rbx + 0x28], edx
mov edx, dword [rax + 0x64]
mov dword [rbx + 0x2c], edx
mov eax, dword [rax + 0x88]
mov dword [rbx + 0x30], eax
add r14d, 1
add rbx, 0x38
mov dword [r13 + 0x80], r14d
cmp r14d, esi
je 0x414b80
mov rax, qword [r13 + 0x50]
mov r15d, dword [r13 + 0x20]
cmp qword [rax], 0
mov dword [rbx + 0x18], r15d
je 0x414b70
mov rax, qword [r13 + 0x60]
test rax, rax
jle 0x414b70
mov qword [rbx], rax
mov eax, dword [r13 + 0x3c]
mov dword [rbx + 0x1c], eax
mov eax, dword [rbp]
test eax, eax
jne 0x414a58
mov ecx, 0x200
call qword [0x0060de80]
mov rdx, rax
test rdx, rdx
jne 0x414a80
mov qword [rbx + 0x10], 0
mov dword [rbx + 0x20], 1
mov eax, 7
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov eax, dword [r13 + 0xb8]
jmp 0x414b17
xor eax, eax
jmp 0x414b57
mov rcx, rdx
call fcn.00410f70
mov rdi, rax
jmp 0x4149fa
call fcn.0040c4a0
mov eax, 7
jmp 0x414b57
Function at 0x41b9b0
Capabilities:
Create thread

Disassembly:
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r13, qword [rcx + 0x48]
mov rsi, qword [r13]
mov ebx, edx
mov rax, qword [rsi + 0x10]
mov rdx, qword [r13 + 8]
mov r12, rcx
mov r8d, ebx
mov rcx, rsi
mov r14, qword [rax + 0x20]
call fcn.0041bad0
test eax, eax
jne 0x41ba50
mov eax, dword [r13 + 0x20]
movsxd rdi, dword [r13 + 0x18]
test eax, eax
jne 0x41ba60
mov rcx, qword [rsi + 0x58]
mov rdx, qword [rsi + 0x60]
test rcx, rcx
je 0x41ba38
add rdi, rdx
mov qword [r13 + 0x10], rdx
mov edx, 1
mov qword [r13 + 0x38], rcx
mov qword [rsi + 0x60], rdi
cmp ebx, 1
je 0x41ba50
test dl, dl
je 0x41ba50
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
jmp fcn.0041afe0
lea r8, [rsi + 0x58]
mov rcx, r14
call fcn.004189b0
mov qword [rsi + 0x60], 0
test eax, eax
je 0x41bab0
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
movsxd r15, edi
lea r8, [r13 + 0x28]
mov rcx, r14
mov rdx, r15
call fcn.004189b0
test eax, eax
jne 0x41ba50
lea r8, [r13 + 0x38]
mov rdx, r15
mov rcx, r14
call fcn.004189b0
test eax, eax
jne 0x41ba50
mov eax, dword [r13 + 0x20]
mov edx, 1
test eax, eax
je 0x41ba14
mov rcx, r13
call fcn.0041b6a0
test eax, eax
sete dl
jmp 0x41ba14
mov rdx, qword [rsi + 0x58]
mov eax, dword [r13 + 0x20]
mov qword [r13 + 0x10], 0
mov qword [r13 + 0x38], rdx
mov qword [rsi + 0x60], rdi
jmp 0x41ba8d
Function at 0x41bad0
Capabilities:
Create thread

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov ebx, dword [rdx]
mov qword [rdx + 8], rcx
mov rdi, rcx
mov rsi, rdx
mov r12d, r8d
test ebx, ebx
jle 0x41bbf0
xor ebp, ebp
nop dword [rax]
mov rax, qword [rsi + 0x18]
cmp r12d, 2
je 0x41bd20
lea r14, [rax + rbp]
mov rax, qword [r14 + 0x48]
test rax, rax
je 0x41bbe1
mov edx, dword [rax + 0x20]
test edx, edx
je 0x41bd50
mov r15, qword [rax]
mov eax, dword [0x0060de60]
mov qword [r15], 0
test eax, eax
je 0x41bd70
mov rcx, qword [0x0066ea40]
test rcx, rcx
je 0x41bb54
call qword [0x0060dee0]
mov ecx, 0x28
call fcn.00410e20
mov r13, rax
test r13, r13
je 0x41bd87
cmp byte [0x0060de64], 0
je 0x41bcc0
mov rax, qword [0x0060dff0]
test rax, rax
je 0x41bb92
mov ecx, 0xc8
call rax
test eax, eax
jne 0x41bcc0
lea rax, [0x00420790]
mov qword [r13 + 0x18], r14
mov r9, r13
xor edx, edx
mov qword [r13 + 0x10], rax
lea rax, [r13 + 8]
lea r8, [0x0040c470]
xor ecx, ecx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov qword [r13], rax
test rax, rax
je 0x41bcc0
cmp qword [r13 + 0x10], 0
je 0x41bce8
mov qword [r15], r13
add rbp, 0x50
sub ebx, 1
jne 0x41bb00
mov ebx, dword [rsi]
lea r12d, [rbx - 1]
test r12d, r12d
jle 0x41bd60
movsxd r13, r12d
lea rbp, [rsp + 0x3c]
shl r13, 2
jmp 0x41bc97
mov eax, r12d
sub eax, ebx
mov ebx, eax
add ebx, ebx
lea r14d, [rbx + 1]
movsxd rax, ebx
mov rdx, qword [rsi + 0x18]
lea rax, [rax + rax*4]
shl rax, 4
add rax, rdx
cmp qword [rax + 0x18], 0
je 0x41bc7f
movsxd rcx, r14d
lea rcx, [rcx + rcx*4]
shl rcx, 4
add rdx, rcx
cmp qword [rdx + 0x18], 0
je 0x41bd90
mov r9d, dword [rax + 0x14]
mov r8, qword [rax + 0x28]
mov dword [rsp + 0x3c], 0
mov eax, dword [rdx + 0x14]
mov rcx, qword [rsi + 8]
mov dword [rsp + 0x28], eax
mov rax, qword [rdx + 0x28]
mov rdx, rbp
mov qword [rsp + 0x20], rax
call qword [rcx + 0x40]
test eax, eax
cmovle r14d, ebx
mov rax, qword [rsi + 0x10]
mov dword [rax + r13], r14d
sub r13, 4
sub r12d, 1
je 0x41bd60
mov ebx, dword [rsi]
mov eax, ebx
shr eax, 0x1f
add ebx, eax
sar ebx, 1
cmp ebx, r12d
jle 0x41bc10
mov rdx, qword [rsi + 0x10]
lea eax, [r12 + r12]
mov ebx, dword [rdx + rax*4]
mov r14d, dword [rdx + rax*4 + 4]
jmp 0x41bc1d
mov qword [r13], 0
mov qword [r13 + 8], 0
mov qword [r13 + 0x10], 0
mov qword [r13 + 0x18], 0
mov qword [r13 + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, 1
mov rcx, r14
mov dword [r13 + 8], eax
call fcn.0041b9b0
mov rdx, qword [r14 + 0x48]
cdqe
mov rdx, qword [rdx]
mov dword [rdx + 8], 1
mov qword [r13 + 0x20], rax
jmp 0x41bbde
mov edx, ebx
lea rdx, [rdx + rdx*4]
shl rdx, 4
lea rcx, [rax + rdx - 0x50]
call fcn.0041afe0
test eax, eax
je 0x41bbe1
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor edx, edx
mov rcx, r14
call fcn.0041b9b0
jmp 0x41bd34
mov rax, qword [rdi + 0x18]
movzx eax, byte [rax + 0x1f]
jmp 0x41bd3c
mov ecx, 0x28
call qword [0x0060de80]
mov r13, rax
test r13, r13
jne 0x41bb6a
mov eax, 7
jmp 0x41bd3c
mov r14d, ebx
jmp 0x41bc7f
Function at 0x43c170
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rdx
mov edx, dword [rcx + 0x90]
mov rsi, rcx
lea r9d, [rdx + 5]
cmp r9d, dword [rcx + 0x94]
jg 0x43c350
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 0x88]
lea rax, [rax + rcx*8]
movzx ecx, byte [rbx]
mov byte [rax], cl
movsx r8d, byte [rbx + 1]
mov dword [rax + 4], r8d
movsx r11d, byte [rbx + 2]
lea r8, [0x00625b80]
mov dword [rax + 8], r11d
test r11b, r11b
jle 0x43c1d3
test byte [r8 + rcx], 1
jne 0x43c340
movsx ecx, byte [rbx + 3]
mov byte [rax + 1], 0
mov qword [rax + 0x10], 0
mov dword [rax + 0xc], ecx
xor ecx, ecx
mov word [rax + 2], cx
movzx ecx, byte [rbx + 4]
mov byte [rax + 0x18], cl
movsx r10d, byte [rbx + 5]
mov dword [rax + 0x1c], r10d
movsx r11d, byte [rbx + 6]
mov dword [rax + 0x20], r11d
test r11b, r11b
jle 0x43c215
test byte [r8 + rcx], 1
jne 0x43c330
movsx ecx, byte [rbx + 7]
xor r11d, r11d
mov byte [rax + 0x19], 0
mov qword [rax + 0x28], 0
mov dword [rax + 0x24], ecx
mov word [rax + 0x1a], r11w
movzx ecx, byte [rbx + 8]
mov byte [rax + 0x30], cl
movsx r10d, byte [rbx + 9]
mov dword [rax + 0x34], r10d
movsx r11d, byte [rbx + 0xa]
mov dword [rax + 0x38], r11d
test r11b, r11b
jle 0x43c259
test byte [r8 + rcx], 1
jne 0x43c320
movsx ecx, byte [rbx + 0xb]
xor r10d, r10d
mov byte [rax + 0x31], 0
mov qword [rax + 0x40], 0
mov dword [rax + 0x3c], ecx
mov word [rax + 0x32], r10w
movzx ecx, byte [rbx + 0xc]
mov byte [rax + 0x48], cl
movsx r10d, byte [rbx + 0xd]
mov dword [rax + 0x4c], r10d
movsx r11d, byte [rbx + 0xe]
mov dword [rax + 0x50], r11d
test r11b, r11b
jle 0x43c299
test byte [r8 + rcx], 1
jne 0x43c310
movsx ecx, byte [rbx + 0xf]
mov byte [rax + 0x49], 0
mov qword [rax + 0x58], 0
mov dword [rax + 0x54], ecx
xor ecx, ecx
mov word [rax + 0x4a], cx
movzx ecx, byte [rbx + 0x10]
mov byte [rax + 0x60], cl
movsx r10d, byte [rbx + 0x11]
mov dword [rax + 0x64], r10d
movsx r10d, byte [rbx + 0x12]
mov dword [rax + 0x68], r10d
test byte [r8 + rcx], 1
je 0x43c2d7
test r10b, r10b
jg 0x43c300
movsx edx, byte [rbx + 0x13]
mov byte [rax + 0x61], 0
mov qword [rax + 0x70], 0
mov dword [rax + 0x6c], edx
xor edx, edx
mov word [rax + 0x62], dx
mov dword [rsi + 0x90], r9d
add rsp, 0x28
pop rbx
pop rsi
ret
add edx, r10d
mov dword [rax + 0x68], edx
jmp 0x43c2d7
add r11d, edx
mov dword [rax + 0x50], r11d
jmp 0x43c299
add r11d, edx
mov dword [rax + 0x38], r11d
jmp 0x43c259
add r11d, edx
mov dword [rax + 0x20], r11d
jmp 0x43c215
add r11d, edx
mov dword [rax + 8], r11d
jmp 0x43c1d3
call fcn.0043baa0
test eax, eax
jne 0x43c368
mov edx, dword [rsi + 0x90]
lea r9d, [rdx + 5]
jmp 0x43c193
xor eax, eax
jmp 0x43c2f7
Function at 0x4435d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0xc0
mov rbx, r8
mov rsi, r9
movzx r8d, byte [r8 + 8]
cmp byte [rcx + 0x16], r8b
jne 0x443620
mov r11d, dword [rcx + 0x10]
mov rax, qword [rdx + 8]
mov r10, qword [rbx + 0x10]
mov qword [rsp + 0x20], rax
mov r9d, dword [rdx + 0x10]
mov edx, r11d
mov r8, qword [rcx + 8]
mov rcx, r10
call qword [rbx + 0x18]
add rsp, 0xc0
pop rbx
pop rsi
pop r12
ret
mov rax, qword [rcx + 0x18]
movdqu xmm0, xmmword [rcx]
mov dword [rsp + 0x60], 0
mov dword [rsp + 0xa0], 0
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x98], rax
mov rax, qword [rcx + 0x10]
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rax
movzx eax, word [rcx + 0x14]
test ah, 0x20
jne 0x443748
and ah, 0x8f
or ah, 0x40
mov word [rsp + 0x54], ax
movdqu xmm1, xmmword [rdx]
mov rcx, qword [rdx + 0x10]
movzx edx, word [rdx + 0x14]
mov qword [rsp + 0x90], rcx
movups xmmword [rsp + 0x80], xmm1
test dh, 0x20
jne 0x44369d
and dh, 0x8f
or dh, 0x40
mov word [rsp + 0x94], dx
movzx edx, r8b
xor r12d, r12d
test al, 1
jne 0x4436bc
lea rcx, [rsp + 0x40]
call fcn.0042a270
movzx edx, byte [rbx + 8]
mov r12, rax
mov r8d, edx
movzx eax, word [rsp + 0x94]
mov ecx, eax
and cx, 0x202
cmp cx, 0x202
je 0x443780
test al, 1
jne 0x443758
lea rcx, [rsp + 0x80]
call fcn.0042a270
test r12, r12
je 0x443758
test rax, rax
je 0x443758
mov rcx, qword [rbx + 0x10]
mov edx, dword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r8, r12
mov r9d, dword [rsp + 0x90]
call qword [rbx + 0x18]
mov ecx, dword [rsp + 0x60]
test ecx, ecx
jne 0x44376a
mov edx, dword [rsp + 0xa0]
test edx, edx
je 0x44360e
lea rcx, [rsp + 0x80]
mov dword [rsp + 0x3c], eax
call fcn.00421bb0
mov eax, dword [rsp + 0x3c]
add rsp, 0xc0
pop rbx
pop rsi
pop r12
ret
movzx eax, word [rsp + 0x54]
jmp 0x44366e
test rsi, rsi
je 0x443760
mov byte [rsi], 7
mov ecx, dword [rsp + 0x60]
xor eax, eax
test ecx, ecx
je 0x443714
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x3c], eax
call fcn.00421bb0
mov eax, dword [rsp + 0x3c]
jmp 0x443714
cmp byte [rsp + 0x96], r8b
jne 0x4436d6
mov rax, qword [rsp + 0x88]
jmp 0x4436e7
Function at 0x4437a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
movzx r9d, word [rcx + 0x14]
movzx eax, word [rdx + 0x14]
mov r10d, r9d
or r10d, eax
test r10b, 1
jne 0x443820
test r10b, 0x2c
je 0x4437f0
mov r8d, r9d
and r8d, eax
test r8b, 0x24
jne 0x443840
and r8d, 8
je 0x443858
movsd xmm1, qword [rcx]
movsd xmm0, qword [rdx]
comisd xmm0, xmm1
ja 0x4438a8
xor r8d, r8d
comisd xmm1, xmm0
seta r8b
jmp 0x443839
and r10d, 2
je 0x443811
and r9d, 2
je 0x443890
test al, 2
je 0x4438a8
test r8, r8
jne 0x4438b0
jmp fcn.0040c1d0
and eax, 1
and r9d, 1
sub eax, r9d
mov r8d, eax
jmp 0x443839
fstp st(0)
fstp st(0)
jmp 0x443839
fstp st(0)
fstp st(0)
mov eax, r8d
ret
mov rax, qword [rdx]
cmp qword [rcx], rax
jl 0x4438a8
setg r8b
movzx r8d, r8b
mov eax, r8d
ret
test r9b, 0x24
jne 0x4438a0
and r9d, 8
mov r8d, 1
je 0x443839
test al, 0x24
je 0x4438a8
fild qword [rdx]
fld qword [rcx]
fcomi st(1)
ja 0x44382f
fxch st(1)
xor eax, eax
fcompi st(1)
fstp st(0)
seta al
neg eax
mov r8d, eax
jmp 0x443839
mov r8d, 1
jmp 0x443839
test al, 8
jne 0x4438c0
test al, 0x24
jne 0x443840
mov r8d, 0xffffffff
jmp 0x443839
xor r9d, r9d
jmp fcn.004435d0
fild qword [rcx]
fld qword [rdx]
mov r8d, 0xffffffff
fcomi st(1)
ja 0x443835
fxch st(1)
xor r8d, r8d
fcompi st(1)
fstp st(0)
seta r8b
jmp 0x443839
Function at 0x45b010
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
lea rbp, [0x0061f310]
mov rdi, qword [rcx + 0xa0]
mov r14, qword [rcx + 0x10]
mov r12, qword [rcx]
mov rsi, rcx
test rdi, rdi
jne 0x45b11f
jmp 0x45b170
sub eax, 1
mov byte [rsi + 0x1f], al
movzx eax, al
mov r13d, dword [rsi + rax*4 + 0xe4]
movsxd rax, dword [r14 + 0x90]
lea r8d, [rbx + 2]
lea r9d, [rax + 7]
cmp eax, dword [r14 + 0x94]
jge 0x45b150
lea ecx, [rax + 1]
mov dword [r14 + 0x90], ecx
lea rcx, [rax + rax*2]
mov rax, qword [r14 + 0x88]
lea rax, [rax + rcx*8]
mov dword [rax + 4], r8d
mov dword [rax + 8], r9d
mov dword [rax + 0xc], ebx
mov qword [rax + 0x10], 0
mov dword [rax], 0x37
mov rax, qword [r15 + 0x18]
mov rcx, rsi
mov r9d, 0x71
mov r8, qword [rax + 0x68]
call fcn.0045adc0
mov rdx, rbp
mov rcx, r14
call fcn.0043c170
test rax, rax
je 0x45b170
lea edx, [rbx + 1]
sub ebx, 1
mov dword [rax + 0x3c], r13d
mov dword [rax + 4], edx
mov dword [rax + 0x20], edx
mov dword [rax + 0x54], edx
mov edx, 8
mov dword [rax + 0x34], ebx
mov dword [rax + 0x50], r13d
mov word [rax + 0x4a], dx
test r13d, r13d
je 0x45b117
movzx eax, byte [rsi + 0x1f]
cmp al, 7
ja 0x45b117
lea edx, [rax + 1]
mov byte [rsi + 0x1f], dl
mov dword [rsi + rax*4 + 0xe4], r13d
mov rdi, qword [rdi]
test rdi, rdi
je 0x45b170
movsxd r15, dword [rdi + 0x10]
movzx eax, byte [rsi + 0x1f]
mov ebx, dword [rdi + 0x14]
mov rdx, r15
shl r15, 5
add r15, qword [r12 + 0x20]
test al, al
jne 0x45b050
mov eax, dword [rsi + 0x38]
lea r13d, [rax + 1]
mov dword [rsi + 0x38], r13d
jmp 0x45b061
mov dword [rsp + 0x20], ebx
mov edx, 0x37
mov rcx, r14
call fcn.0043df10
mov edx, dword [rdi + 0x10]
jmp 0x45b0af
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x4bdfc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
xor r9d, r9d
mov r8d, 6
jmp fcn.004bd680
Function at 0x4f6ea0
Capabilities:
Reference sql statements

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov ebp, dword [rsp + 0x90]
mov byte [rcx + 0x1c], 1
mov esi, r8d
mov rbx, rdx
mov rdi, r9
mov qword [rsp + 0x28], r9
mov r9, rdx
mov r12, rcx
mov dword [rsp + 0x20], r8d
mov r8, rdx
lea rdx, str.SELECT_1_FROM___w_.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d___Q___d_NULL
mov dword [rsp + 0x30], ebp
call fcn.004f1df0
test esi, esi
je 0x4f6ef0
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov r9, rdi
mov r8, rbx
lea rdx, str.SELECT_1_FROM_temp.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1___Q___d_NULL
mov rcx, r12
mov dword [rsp + 0x90], ebp
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.004f1df0

Function at 0x50bea0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.00519600
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.00519600
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x50bf10
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x0066f214]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x50c0b8
mov rax, qword [0x0066f218]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x50bf5c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x50bfe7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x50bf40
mov rcx, r12
call fcn.0050cc70
mov rbp, rax
test rax, rax
je 0x50c0f2
mov rax, qword [0x0066f218]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.0050cda0
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0066f218]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x50c101
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x50bfe0
sub eax, 4
and eax, 0xfffffffb
jne 0x50c070
add dword [0x0066f214], 1
cmp ebx, 8
jae 0x50c018
test bl, 4
jne 0x50c0c0
test ebx, ebx
je 0x50c009
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x50c0e0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x50c009
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x50c04a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x0066f218]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x50bfe0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.0050bea0
nop dword [rax]
xor edi, edi
jmp 0x50bf67
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x50c009
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x50c009
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.0050bea0
mov rax, qword [0x0066f218]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.0050bea0
nop
nop dword [rax]
Function at 0x50c8e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0066f500]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0066f4e0]
test rbx, rbx
je 0x50c934
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x50c92b
test r12, r12
je 0x50c92b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x50c910
lea rcx, [0x0066f500]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x50cc70
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x0062c240]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x50cce9
mov rcx, r10
call fcn.0050cb40
test eax, eax
je 0x50cce9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x50cce6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x50ccdd
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x50cce9
add r8, 0x28
cmp r8, r9
jne 0x50ccc8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x50cfe0
Capabilities:
Allocate thread local storage

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [0x0066f4e8]
mov edi, ecx
mov rsi, rdx
test eax, eax
jne 0x50c970
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov edx, 0x18
mov ecx, 1
call sub.msvcrt.dll_calloc
mov rbx, rax
test rax, rax
je 0x50c9c3
mov dword [rax], edi
lea rcx, [0x0066f500]
mov qword [rax + 8], rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x0066f4e0]
lea rcx, [0x0066f500]
mov qword [0x0066f4e0], rbx
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
or eax, 0xffffffff
jmp 0x50c966
push r12
push rbx
sub rsp, 0x28
mov rbx, rcx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, eax
cmp eax, 0xffffffff
je 0x50d010
mov rdx, r12
mov dword [rbx], eax
add rsp, 0x28
pop rbx
pop r12
jmp 0x519cc0
add rsp, 0x28
pop rbx
pop r12
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
test rdx, rdx
jne 0x519cd0
xor eax, eax
ret
jmp 0x50c950

Function at 0x50d050
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
sub rsp, 0x28
mov r12d, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, r12d
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r13d
mov r12, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x28
pop r12
pop r13
ret

Function at 0x50d090
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x50d0a8
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]