joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140299db0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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.14029ab70
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.14029ab70
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140299e20
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140545304]
mov rbx, rcx
test esi, esi
jle 0x140299f50
mov rax, qword [0x140545308]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140299e6b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140299ef5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140299e50
mov rcx, rbx
call fcn.14029a890
mov rdi, rax
test rax, rax
je 0x140299f72
mov rax, qword [0x140545308]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14029a9d0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140545308]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140299f57
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140299eee
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140299f00
add dword [0x140545304], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140545308]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
jne 0x140299eee
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140299db0
nop dword [rax]
xor esi, esi
jmp 0x140299e78
mov rax, qword [0x140545308]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140299db0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140299db0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14029a500
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140545360]
mov rcx, r12
call qword [sym.imp.kernel32.dll_EnterCriticalSection]
mov rbx, qword [0x140545340]
test rbx, rbx
je 0x14029a55c
mov rbp, qword [sym.imp.kernel32.dll_TlsGetValue]
mov rdi, qword [sym.imp.kernel32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x14029a553
test eax, eax
jne 0x14029a553
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14029a538
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.kernel32.dll_LeaveCriticalSection]
Function at 0x14029a890
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140500830]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14029a8b0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14029a8b8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14029a8b0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14029a90d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14029a904
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14029a8b0
add rax, 0x28
cmp rax, r9
jne 0x14029a8f0
xor eax, eax
ret

Function at 0x14029a910
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140500830]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14029a92f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14029a938
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14029a92f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14029a9d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140500830]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14029a9ef
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14029a9f8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1402a0850
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x18
mov r11d, 1
mov eax, r8d
mov r10, rcx
mov r15, rdx
mov ecx, r9d
inc rax
shl r11, cl
mov edx, eax
add rdx, rdx
lea rdx, [rdx + r11 + 8]
cmp qword [rsp + 0x88], rdx
mov rdx, 0xffffffffffffffd2
setb dil
cmp r8d, 0xff
seta cl
or dil, cl
jne 0x1402a0a7f
mov rdx, 0xffffffffffffffd4
cmp r9d, 0xc
ja 0x1402a0a7f
mov edx, 1
lea esi, [r8 + 1]
lea rbx, [r10 + 4]
mov ecx, r9d
mov r8d, edx
mov dword [rsp + 8], esi
mov esi, 1
shl r8d, cl
movzx ecx, r9w
or ecx, 0x10000
lea ebp, [r8 - 1]
mov r14d, ecx
mov r12d, ecx
lea ecx, [r9 - 1]
shl edx, cl
xor ecx, ecx
mov dword [rsp + 0xc], edx
mov edx, ebp
mov r11w, word [r15 + rcx*2]
cmp r11w, 0xffff
jne 0x1402a0918
mov r11d, edx
dec edx
mov byte [rbx + r11*4 + 2], cl
mov r11d, 1
jmp 0x1402a0926
xor edi, edi
cmp r11w, word [rsp + 0xc]
cmovge esi, edi
mov dil, 1
mov r13, qword [rsp + 0x80]
mov word [r13 + rcx*2], r11w
mov r11d, dword [rsp + 8]
inc rcx
cmp ecx, r11d
jb 0x1402a08fa
test dil, dil
je 0x1402a0953
shl esi, 0x10
movzx r14d, r14w
or r14d, esi
mov r12d, r14d
mov r11d, r8d
mov ecx, r8d
mov dword [r10], r12d
shr r11d, 1
shr ecx, 3
lea ecx, [r11 + rcx + 3]
cmp edx, ebp
jne 0x1402a0a06
add rax, rax
xor r11d, r11d
xor ebp, ebp
add rax, qword [rsp + 0x80]
movabs r14, 0x101010101010101
mov r13, r11
lea r12, [rax + rbp]
movsx rdi, word [r15 + r11*2]
imul r13, r14
mov dword [rsp + 0xc], edi
mov rsi, rdi
mov edi, 8
mov qword [r12], r13
cmp dword [rsp + 0xc], edi
jle 0x1402a09b9
mov qword [r12 + rdi], r13
add rdi, 8
jmp 0x1402a09a9
mov edi, dword [rsp + 8]
inc r11
add rbp, rsi
cmp r11d, edi
jb 0x1402a0989
movsxd rdi, r8d
xor esi, esi
xor r11d, r11d
mov r12b, byte [rax + rsi]
mov rbp, rdx
and rbp, r11
add r11, rcx
mov byte [rbx + rbp*4 + 2], r12b
mov rbp, rdx
mov r12b, byte [rax + rsi + 1]
add rsi, 2
and rbp, r11
add r11, rcx
mov byte [rbx + rbp*4 + 2], r12b
and r11, rdx
cmp rsi, rdi
jb 0x1402a09d0
xor r11d, r11d
jmp 0x1402a0a40
xor r11d, r11d
xor eax, eax
movsx edi, word [r15 + r11*2]
xor esi, esi
cmp edi, esi
jle 0x1402a0a2a
mov r12d, eax
mov byte [rbx + r12*4 + 2], r11b
add eax, ecx
and eax, ebp
cmp edx, eax
jb 0x1402a0a1e
inc esi
jmp 0x1402a0a12
mov edi, dword [rsp + 8]
inc r11
cmp r11d, edi
jb 0x1402a0a0b
or rdx, 0xffffffffffffffff
test eax, eax
je 0x1402a0a01
jmp 0x1402a0a7f
movzx edx, byte [r10 + r11*4 + 6]
add rdx, rdx
add rdx, qword [rsp + 0x80]
movzx eax, word [rdx]
lea ecx, [rax + 1]
mov word [rdx], cx
bsr ecx, eax
xor ecx, 0x1f
lea ecx, [r9 + rcx - 0x1f]
shl eax, cl
mov byte [r10 + r11*4 + 7], cl
sub eax, r8d
mov word [r10 + r11*4 + 4], ax
inc r11
cmp r11d, r8d
jb 0x1402a0a40
xor edx, edx
mov rax, rdx
add rsp, 0x18
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1402fa670
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r13
push r12
push rbp
push rsi
push rbx
sub rsp, 0x30
mov r13, qword [rsp + 0x80]
mov rbp, rdx
mov rsi, rcx
mov rdx, r8
mov r8d, r9d
test rbp, rbp
je 0x1402fa70f
mov r12, qword [rcx + 0x80]
mov qword [rsp + 0x28], rdx
mov rcx, r12
call fcn.140374950
mov rbx, rax
mov eax, 7
test rbx, rbx
je 0x1402fa722
mov rdx, qword [rsp + 0x28]
mov r9, rbx
mov r8, rbp
mov rcx, r12
call fcn.14037d740
mov eax, dword [rbx + 0x1c]
test ax, ax
je 0x1402fa6d8
cmp word [r12 + 8], ax
jae 0x1402fa6e4
mov ecx, 0x10e85
call fcn.140348fd0
jmp 0x1402fa6f2
mov r8, r13
mov rdx, rbx
mov rcx, rsi
call fcn.140344b80
mov rdx, qword [rsi + 0x80]
mov dword [rsp + 0x28], eax
mov rcx, qword [rdx + 0x10]
mov rdx, rbx
call fcn.14034a570
mov eax, dword [rsp + 0x28]
jmp 0x1402fa722
mov r9, r13
add rsp, 0x30
pop rbx
pop rsi
pop rbp
pop r12
pop r13
jmp fcn.140346da0
add rsp, 0x30
pop rbx
pop rsi
pop rbp
pop r12
pop r13
ret
Function at 0x14031eed0
Capabilities:
Reference sql statements

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
xor edi, edi
movsxd r12, edx
mov rbp, rcx
mov r14, r8
mov r13, r9
cmp qword [rcx + r12*8 + 0x28], 0
mov r15, r12
jne 0x14031f0ad
lea rdi, [rsp + 0x38]
lea rsi, str.SELECT__s_FROM__s_T_WHERE_T._Q_____AND_T._Q_____ORDER_BY_T._Q_ASC
mov ecx, 0x16
rep movsd dword [rdi], dword [rsi]
mov rsi, qword [rbp]
cmp r12d, 4
jg 0x14031ef50
cmp r12d, 2
jg 0x14031efa2
je 0x14031ef76
test r12d, r12d
js 0x14031f012
mov r9, qword [rsi + 0x50]
mov r8, qword [rsi + 0x48]
mov rdx, qword [rsi + 0x60]
mov rcx, qword [rsp + r12*8 + 0x38]
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], r9
call fcn.140388b60
jmp 0x14031ef8e
cmp r12d, 0xa
jne 0x14031f012
mov rdx, qword [rsi + 0x60]
mov r8, qword [rsi + 0x48]
lea rcx, str.SELECT__s_FROM__s_AS_T
call fcn.140388b60
mov rbx, rax
jmp 0x14031f09d
mov rdx, qword [rsi + 0x60]
mov r9, qword [rsi + 0x50]
lea rcx, str.SELECT__s_FROM__s_T_WHERE_T._Q_
mov r8, qword [rsi + 0x48]
call fcn.140388b60
mov rbx, rax
mov r9d, 1
test rax, rax
jne 0x14031f03f
jmp 0x14031efbe
mov edi, dword [rsi + 0x18]
lea ecx, [rdi + rdi + 3]
lea ebx, [rdi + 1]
movsxd rcx, ecx
call fcn.140388ac0
mov r15, rax
xor eax, eax
test r15, r15
jne 0x14031efc8
mov edi, 7
jmp 0x14031f0ad
cmp ebx, eax
jle 0x14031efdc
mov byte [r15 + rax*2], 0x3f
mov byte [r15 + rax*2 + 1], 0x2c
inc rax
jmp 0x14031efc8
xor eax, eax
add rbx, rbx
inc edi
mov rcx, qword [rsp + r12*8 + 0x38]
cmovl rbx, rax
mov r9, r15
mov byte [r15 + rbx - 1], 0
mov rdx, qword [rsi + 8]
mov r8, qword [rsi + 0x10]
call fcn.140388b60
mov rcx, r15
mov rbx, rax
call fcn.140387c00
jmp 0x14031f09d
mov rdx, qword [rsi + 8]
mov rcx, qword [rsp + r12*8 + 0x38]
mov r8, qword [rsi + 0x10]
call fcn.140388b60
mov rbx, rax
test rax, rax
je 0x14031efbe
xor r9d, r9d
cmp r15d, 2
setg r9b
lea r9d, [r9*4 + 1]
mov rax, qword [rbp]
or r8d, 0xffffffff
mov rdx, rbx
inc dword [rax + 0x78]
xor eax, eax
mov qword [rsp + 0x28], rax
lea rax, [rbp + r12*8 + 0x28]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsi]
call fcn.140388f90
mov rcx, rbx
mov edi, eax
mov rax, qword [rbp]
dec dword [rax + 0x78]
call fcn.140387c00
test edi, edi
je 0x14031f0ad
test r13, r13
je 0x14031f0ad
mov rcx, qword [rsi]
call fcn.140387400
lea rcx, [0x1404f69ba]
mov rdx, rax
call fcn.140388b60
mov qword [r13], rax
jmp 0x14031f0ad
mov r9d, 5
test rbx, rbx
jne 0x14031f03f
jmp 0x14031efbe
mov rcx, qword [rbp + r12*8 + 0x28]
mov qword [r14], rcx
call fcn.1403895b0
mov eax, edi
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14032f3b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov ebp, dword [rcx + 0x80]
movsxd rdx, edx
mov rbx, rcx
mov rcx, qword [rcx + 0x78]
mov rsi, rdx
imul rdx, rdx, 0x38
call fcn.14036ad70
mov r8, rax
test rax, rax
jne 0x14032f3e6
mov eax, 7
jmp 0x14032f482
movsxd rdi, ebp
mov ecx, esi
imul rdi, rdi, 0x38
sub ecx, ebp
movsxd rcx, ecx
imul rcx, rcx, 0x38
lea rdx, [rax + rdi]
xor eax, eax
mov rdi, rdx
rep stosb byte [rdi], al
mov qword [rbx + 0x78], r8
mov rdi, rdx
cmp ebp, esi
jge 0x14032f480
mov rax, qword [rbx + 0x50]
mov ecx, dword [rbx + 0x20]
cmp qword [rax], 0
mov dword [rdi + 0x18], ecx
je 0x14032f427
mov rax, qword [rbx + 0x60]
test rax, rax
jg 0x14032f42d
mov eax, dword [rbx + 0xb8]
mov qword [rdi], rax
mov eax, dword [rbx + 0x3c]
mov dword [rdi + 0x1c], eax
call fcn.1403434e0
mov dword [rdi + 0x20], 1
mov qword [rdi + 0x10], rax
test rax, rax
je 0x14032f3dc
mov rax, qword [rbx + 0x128]
test rax, rax
je 0x14032f472
mov edx, dword [rax + 0x58]
mov dword [rdi + 0x24], edx
mov edx, dword [rax + 0x60]
mov dword [rdi + 0x28], edx
mov edx, dword [rax + 0x64]
mov dword [rdi + 0x2c], edx
mov eax, dword [rax + 0x88]
mov dword [rdi + 0x30], eax
inc ebp
add rdi, 0x38
mov dword [rbx + 0x80], ebp
jmp 0x14032f40a
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp dword [rcx + 0x80], edx
jge 0x1403625e3
cmp byte [rcx + 0xa], 0
je 0x1403625e3
jmp 0x14032f3b0
xor eax, eax
ret

Function at 0x140336c60
Capabilities:
Reference sql statements

Disassembly:
push r12
push rbp
push rdi
push rsi
sub rsp, 0x58
mov r12d, dword [rsp + 0xa0]
mov byte [rcx + 0x1c], 1
mov ebp, r8d
mov rsi, rdx
mov rdi, r9
mov qword [rsp + 0x28], r9
mov r9, rdx
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], r12d
mov qword [rsp + 0x48], rcx
call fcn.1403619c0
test ebp, ebp
mov rcx, qword [rsp + 0x48]
jne 0x140336cd0
mov r9, rdi
mov r8, rsi
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 dword [rsp + 0xa0], r12d
add rsp, 0x58
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.1403619c0
add rsp, 0x58
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140339fc0
Capabilities:
Reference sql statements

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rax, str.SELECT_parentnode_FROM__Q._q_parent_WHERE_nodeno_1
movsxd r12, edx
mov qword [rsp + 0x40], rax
mov rbx, rcx
mov rsi, r8
lea rax, str.SELECT_nodeno_FROM__Q._q_rowid_WHERE_rowid_1
cmp qword [rcx + r12*8 + 0x28], 0
mov rbp, r12
mov rdi, r9
mov qword [rsp + 0x48], rax
lea r13, [r12 + 4]
jne 0x14033a017
mov rdx, qword [rsp + r12*8 + 0x40]
mov r9, qword [rcx + 0x10]
mov r8, qword [rcx + 8]
call fcn.14033a410
mov qword [rbx + r13*8 + 8], rax
cmp dword [rbx + 0x40], 0
jne 0x14033a0d0
mov r12, qword [rbx + r12*8 + 0x28]
mov r8, rsi
mov edx, 1
mov rcx, r12
call fcn.140384b60
mov rcx, r12
call fcn.14038a2d0
cmp eax, 0x65
jne 0x14033a073
test ebp, ebp
lea rdx, str.__rowid
mov r9, rdi
mov r8, rsi
lea rax, str.__parent
mov rcx, rbx
cmovne rax, rdx
lea rdx, str.Mapping___lld_____lld__missing_from__s_table
mov qword [rsp + 0x20], rax
call fcn.140339ec0
jmp 0x14033a0bf
cmp eax, 0x64
jne 0x14033a0bf
xor edx, edx
mov rcx, r12
call fcn.140385990
mov r9, rax
cmp rdi, rax
je 0x14033a0bf
lea rdx, str.__rowid
test ebp, ebp
mov r8, rsi
mov rcx, rbx
lea rax, str.__parent
mov qword [rsp + 0x30], rdi
cmovne rax, rdx
mov qword [rsp + 0x28], rsi
lea rdx, str.Found___lld_____lld__in__s_table__expected___lld_____lld_
mov qword [rsp + 0x20], rax
call fcn.140339ec0
mov rcx, r12
call fcn.1403895b0
cmp dword [rbx + 0x40], 0
jne 0x14033a0d0
mov dword [rbx + 0x40], eax
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x14035ab90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rbx
mov r9d, edx
cmp ecx, 0x7f
jg 0x14035abae
lea eax, [rcx - 0x41]
cmp eax, 0x19
ja 0x14035ac55
add ecx, 0x20
jmp 0x14035ac55
cmp ecx, 0xffff
jg 0x14035ac47
or r8d, 0xffffffff
xor r11d, r11d
mov ebx, 0xa2
mov esi, 2
lea r10, [0x1405023e0]
lea eax, [rbx + r11]
cdq
idiv esi
movsxd rdx, eax
movzx edx, word [r10 + rdx*4]
cmp ecx, edx
jl 0x14035abee
lea r11d, [rax + 1]
mov r8d, eax
jmp 0x14035abf1
lea ebx, [rax - 1]
cmp ebx, r11d
jge 0x14035abd2
movsxd rax, r8d
movzx edx, word [r10 + rax*4]
movzx r8d, byte [r10 + rax*4 + 3]
add r8d, edx
cmp ecx, r8d
jge 0x14035ac32
mov al, byte [r10 + rax*4 + 2]
xor edx, ecx
mov r8d, eax
and r8d, 1
test r8d, edx
jne 0x14035ac32
shr al, 1
lea rdx, [0x140505b20]
and eax, 0x7f
add cx, word [rdx + rax*2]
movzx ecx, cx
test r9d, r9d
je 0x14035ac55
xor edx, edx
cmp r9d, 2
sete dl
pop rbx
pop rsi
jmp fcn.140335320
lea eax, [rcx - 0x10400]
cmp eax, 0x27
ja 0x14035ac55
add ecx, 0x28
mov eax, ecx
pop rbx
pop rsi
ret

Function at 0x1403625d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov ebp, dword [rcx + 0x80]
movsxd rdx, edx
mov rbx, rcx
mov rcx, qword [rcx + 0x78]
mov rsi, rdx
imul rdx, rdx, 0x38
call fcn.14036ad70
mov r8, rax
test rax, rax
jne 0x14032f3e6
mov eax, 7
jmp 0x14032f482
movsxd rdi, ebp
mov ecx, esi
imul rdi, rdi, 0x38
sub ecx, ebp
movsxd rcx, ecx
imul rcx, rcx, 0x38
lea rdx, [rax + rdi]
xor eax, eax
mov rdi, rdx
rep stosb byte [rdi], al
mov qword [rbx + 0x78], r8
mov rdi, rdx
cmp ebp, esi
jge 0x14032f480
mov rax, qword [rbx + 0x50]
mov ecx, dword [rbx + 0x20]
cmp qword [rax], 0
mov dword [rdi + 0x18], ecx
je 0x14032f427
mov rax, qword [rbx + 0x60]
test rax, rax
jg 0x14032f42d
mov eax, dword [rbx + 0xb8]
mov qword [rdi], rax
mov eax, dword [rbx + 0x3c]
mov dword [rdi + 0x1c], eax
call fcn.1403434e0
mov dword [rdi + 0x20], 1
mov qword [rdi + 0x10], rax
test rax, rax
je 0x14032f3dc
mov rax, qword [rbx + 0x128]
test rax, rax
je 0x14032f472
mov edx, dword [rax + 0x58]
mov dword [rdi + 0x24], edx
mov edx, dword [rax + 0x60]
mov dword [rdi + 0x28], edx
mov edx, dword [rax + 0x64]
mov dword [rdi + 0x2c], edx
mov eax, dword [rax + 0x88]
mov dword [rdi + 0x30], eax
inc ebp
add rdi, 0x38
mov dword [rbx + 0x80], ebp
jmp 0x14032f40a
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp dword [rcx + 0x80], edx
jge 0x1403625e3
cmp byte [rcx + 0xa], 0
je 0x1403625e3
jmp 0x14032f3b0
xor eax, eax
ret
Function at 0x140393e50
Capabilities:
Create thread

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
xor edi, edi
xor esi, esi
movzx r12d, byte [rcx + 0x5b]
dec r12d
mov byte [rcx + 0x58], 1
mov rbx, rcx
cmp esi, r12d
jge 0x140393f43
movzx eax, byte [rbx + 0x5a]
lea eax, [rsi + rax + 1]
cdq
idiv r12d
movsxd rbp, edx
imul rax, rbp, 0x68
cmp dword [rbx + rax + 0x68], 0
lea rdi, [rbx + rax + 0x60]
jne 0x140393ea5
imul rbp, rbp, 0x68
cmp qword [rbx + rbp + 0x60], 0
je 0x140393eb6
inc esi
jmp 0x140393e6d
mov rcx, rdi
call fcn.140393fe0
test eax, eax
je 0x140393e95
jmp 0x140393f68
lea rdx, [rbx + 0x60]
mov rax, rdi
mov rcx, qword [rdi + 0x28]
movups xmm0, xmmword [rbx + 0x38]
sub rax, rdx
movabs rdx, 0x4ec4ec4ec4ec4ec5
sar rax, 3
imul rax, rdx
xor edx, edx
mov byte [rbx + 0x5a], al
mov rax, qword [rbx + 0x48]
movups xmmword [rdi + 0x20], xmm0
mov qword [rdi + 0x30], rax
xor eax, eax
mov qword [rbx + 0x38], rax
mov dword [rbx + 0x48], edx
test rcx, rcx
je 0x140393f07
mov qword [rbx + 0x40], rcx
call fcn.140361470
mov dword [rbx + 0x54], eax
jmp 0x140393f20
cmp qword [rbx + 0x40], 0
je 0x140393f20
movsxd rcx, dword [rbx + 0x54]
call fcn.140361310
mov qword [rbx + 0x40], rax
test rax, rax
je 0x140393f3c
mov r8, rdi
lea rdx, [0x140393f80]
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.140371830
mov eax, 7
jmp 0x140393f68
jne 0x140393eb6
movsxd rsi, esi
lea rdx, [rbx + 0x38]
imul rsi, rsi, 0x68
lea rcx, [rbx + rsi + 0x60]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.140394050
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x14039f3c0
Capabilities:
Encode data using xor

Disassembly:
push rbx
xor r9d, r9d
xor r11d, r11d
movsxd rax, dword [rcx + 0xc]
lea r10d, [rax + 1]
add rax, qword [rcx]
mov bl, byte [rdx + r9]
xor byte [rax], bl
movsxd rax, r10d
cmp dword [rcx + 8], r10d
cmovle rax, r11
inc r9
cmp r8d, r9d
jg 0x14039f3cb
add dword [rcx + 0x10], r8d
mov dword [rcx + 0xc], eax
pop rbx
ret

Function at 0x1407449ac
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1407449b6
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x1407449df
pop rbp
sub rbp, 0x33
sub rbp, 0x7449ac
sub rsp, 0x20
jmp 0x1407449fe
mov rax, 0x7449ac
je 0x140744a05
add rax, rbp
add rax, 0x84
mov rcx, 0x647
mov rdx, 0xffffffff818389a8
xor byte [rax], dl
inc rax
dec rcx
jne 0x140744a1d
jmp 0x140744a34
loopne 0x140744a57
and esp, dword [r9]
xchg esp, eax
test al, 0xa8
test al, 0xe0
sub dword [rcx - 0x60], ebp
test eax, 0xa9e0a8a8
loopne 0x140744ab8
push 0xffffffffa8a8a8a0
loopne 0x140744abf
push 0xffffffffffffff80
test al, 0xa8
test al, 0xe0
pop rdi
loopne 0x140744a03
imul esp, dword [rbx], 0xa8a8a429
test al, 0xe0
test eax, 0xe0f8f840
adc byte [rdi + riz*8 - 0x57575742], ah
test al, 0xa8
loopne 0x140744a83
mov esi, 0xa8a8a8a8
test al, 0xe0
adc dword [rdi], esi
push rdx
cmc
test al, 0xa8
test al, 0xa8
test al, 0xe0
test eax, 0xa712e041
sbb byte [rdi + rcx*2], bh
invalid
test al, 0xa8
test al, 0xa8
lodsd eax, dword [rsi]
test al, 0xa8
test al, 0x41
mov esi, 0x69a8a8a8
stosb byte [rdi], al
cdq
mov ecx, 0xac6929e0
test al, 0xa8
test al, 0xe0
push rdi
invalid
push rdx
cmc
test al, 0xa8
test al, 0xa8
test al, 0xe0
test eax, 0xa8ad4041
test al, 0xa8
and eax, 0xfaa8a8aa
loopne 0x140744a6a
lodsd eax, dword [rsi]
test al, 0xa8
test al, 0x41
and eax, 0xfaa8a8aa
invalid
Function at 0x140004910
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140017010]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
xorps xmm0, xmm0
lea rsi, [0x140018020]
xor eax, eax
lea rdi, [0x140018098]
movups xmmword [0x140018020], xmm0
mov qword [0x140018050], rax
mov rbx, rsi
movups xmmword [0x140018030], xmm0
mov dword [0x140018058], eax
movups xmmword [0x140018040], xmm0
nop word [rax + rax]
mov edx, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rbx], rax
add rbx, 8
cmp rbx, rdi
jl 0x140004980
call fcn.1400016c0
movsxd r10, dword [0x1400180b0]
lea r9, [0x1400170e0]
mov r11, qword [0x1400180b8]
mov edx, 0xf
mov r8, qword [rsi + r10*8]
inc r10d
sub r9, r8
mov rcx, r8
nop word [rax + rax]
movzx eax, byte [r9 + rcx]
lea rcx, [rcx + 1]
xor al, 0x48
mov byte [rcx - 1], al
sub rdx, 1
jne 0x1400049d0
xor edi, edi
mov byte [r8 + 0xf], dl
cmp r10d, 0xf
cmovge r10d, edi
xor ecx, ecx
lea edx, [rdi + 1]
mov dword [0x1400180b0], r10d
call r11
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140004a15
xor eax, eax
jmp 0x140004b1a
call fcn.1400019a0
test al, al
jne 0x140004a52
nop
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rcx, rax
mov qword [0x140018018], rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140004a52
call fcn.1400019a0
test al, al
je 0x140004a20
call fcn.1400044a0
call fcn.140003e00
xor r9d, r9d
lea rcx, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x140004aa0
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_DispatchMessageA]
xor r9d, r9d
lea rcx, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x140004a73
mov rbx, qword [0x140018098]
test rbx, rbx
je 0x140004b16
movsxd r11, dword [0x1400180b0]
lea r10, [0x140017178]
mov r9d, 0xe
mov rdx, qword [rsi + r11*8]
inc r11d
sub r10, rdx
mov r8, rdx
nop dword [rax]
movzx eax, byte [r10 + r8]
lea r8, [r8 + 1]
xor al, 0x48
mov byte [r8 - 1], al
sub r9, 1
jne 0x140004ad0
mov rcx, qword [0x1400180d8]
cmp r11d, 0xf
mov byte [rdx + 0xe], dil
cmovge r11d, edi
mov dword [0x1400180b0], r11d
call fcn.140001610
mov rcx, rbx
mov qword [0x140017ff8], rax
call rax
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14000e9b0
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret