joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001dbc
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp ecx, 1
jle 0x140001e37
mov rbx, qword [rdx + 8]
lea rdx, str.standalone
mov rcx, rbx
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x140001e40
lea rdx, str.service
mov rcx, rbx
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140001f81
lea rax, str.RDP_Controller
mov qword [rsp + 0x20], rax
lea rax, [0x140001b75]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
test eax, eax
je 0x140001e98
mov ebx, 0
jmp case.0x140001ed1.0
lea rbx, str.service
jmp 0x140001dca
call fcn.14000161a
mov ebx, eax
test eax, eax
je 0x140001e5a
call fcn.140001a63
call fcn.140001b1c
jmp case.0x140001ed1.0
call fcn.1400016e3
mov ebx, eax
test eax, eax
jne 0x140001e4b
test ebx, ebx
jne 0x140001e4b
lea rdx, [rsp + 0x20]
mov r8d, 1
mov ecx, 0
call sub.msvcrt.dll__read
test eax, eax
jle 0x140001e4b
movzx eax, byte [rsp + 0x20]
cmp al, 0x78
je 0x140001e4b
cmp al, 0x77
jne 0x140001e65
call fcn.1400019e2
mov ebx, eax
jmp 0x140001e65
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov r8d, eax
lea rdx, str.main
lea rcx, str._E____s_____StartServiceCtrlDispatcherA_failed_GetLastError_lu__n
call fcn.140002ef2
cmp ebx, 0x20
ja 0x140001ed3
ja case.0x140001ed1.1
mov eax, ebx
lea rdx, [0x14001030c]
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
cmp ebx, 0x94
je 0x140001f50
cmp ebx, 0x94
ja 0x140001f0e
cmp ebx, 0x7f
ja 0x140001efc
cmp ebx, 0x7e
jae 0x140001f57
cmp ebx, 0x50
jne 0x140001f5e
mov ebx, 0x40000007
jmp case.0x140001ed1.0
cmp ebx, 0x91
jne 0x140001f65
mov ebx, 0x4000000d
jmp case.0x140001ed1.0
cmp ebx, 0xb7
je 0x140001f6c
cmp ebx, 0x80070005
je 0x140001f73
cmp ebx, 0xaa
jne 0x140001f7a
mov ebx, 0x4000000d
jmp case.0x140001ed1.0
mov ebx, 0x40000003
jmp case.0x140001ed1.0
mov ebx, 0x40000009
jmp case.0x140001ed1.0
mov ebx, 0x4000000d
jmp case.0x140001ed1.0
mov ebx, 0x40000001
jmp case.0x140001ed1.0
mov ebx, 0x40000008
jmp case.0x140001ed1.0
mov ebx, 0x4000000d
jmp case.0x140001ed1.0
mov ebx, 0x40000003
jmp case.0x140001ed1.0
mov ebx, 0x40000001
jmp case.0x140001ed1.0
mov ebx, 0x40000001
jmp case.0x140001ed1.0
mov ebx, 0x40000007
jmp case.0x140001ed1.0
mov ebx, 0x40000009
jmp case.0x140001ed1.0
mov ebx, 0x40000001
jmp case.0x140001ed1.0
mov r8, rbx
lea rdx, str.main
lea rcx, str._E____s_____No_a_valid_run_mode_mode_s__n
call fcn.140002ef2
mov ebx, 0x40000001
mov eax, ebx
and eax, 0x3fffffff
add rsp, 0x40
pop rbx
ret
Function at 0x140002ef2
Capabilities:
Copy file
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
mov eax, 0x4148
call fcn.14000aa20
sub rsp, rax
mov rbx, rcx
mov qword [rsp + 0x4178], rdx
mov qword [rsp + 0x4180], r8
mov qword [rsp + 0x4188], r9
lea rsi, [rsp + 0x130]
mov r8d, 0x4000
mov edx, 0
mov rcx, rsi
call sub.msvcrt.dll_memset
lea r9, [rsp + 0x4178]
mov qword [rsp + 0x4138], r9
mov r8, rbx
mov edx, 0x4000
mov rcx, rsi
call fcn.14000aa60
mov ebx, eax
lea eax, [rax - 1]
cmp eax, 0x3ffe
ja 0x140002fb0
cmp qword [0x140018488], 0
je 0x140003074
lock add dword [0x140018360], ebx
mov eax, dword [0x140018360]
cmp eax, 0x3200000
jg 0x140002fbc
lea rcx, [rsp + 0x130]
mov r9, qword [0x140018488]
movsxd r8, ebx
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, qword [0x140018488]
call sub.msvcrt.dll_fflush
nop
add rsp, 0x4148
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, qword [0x140018498]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x140018360]
cmp eax, 0x3200000
jg 0x140002ff3
mov eax, dword [0x140018360]
add eax, ebx
mov dword [0x140018360], eax
mov rcx, qword [0x140018498]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x140002f87
lea rdi, [rsp + 0x20]
mov ecx, 0x20
mov eax, 0
rep stosq qword [rdi], rax
mov dword [rdi], 0
lea rdi, [0x140018380]
mov rcx, rdi
call sub.msvcrt.dll_strlen
mov rsi, rax
lea rbp, [rsp + 0x20]
mov rdx, rdi
mov rcx, rbp
call sub.msvcrt.dll_strcpy
mov byte [rsp + rsi + 0x20], 0x2e
mov byte [rsp + rsi + 0x21], 0x31
mov byte [rsp + rsi + 0x22], 0
mov r8d, 0
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CopyFileA]
mov r8d, 0
mov edx, 0
mov rcx, qword [0x140018488]
call sub.msvcrt.dll_fseek
mov dword [0x140018360], 0
jmp 0x140002fd6
mov ecx, 2
call qword [fcn.14000df10]
mov r9, rax
lea rcx, [rsp + 0x130]
movsxd r8, ebx
mov edx, 1
call sub.msvcrt.dll_fwrite
jmp 0x140002fb0
Function at 0x1400042f9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test rcx, rcx
je 0x140004388
test rdx, rdx
je 0x1400043c1
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [rsi], eax
cmp eax, 0xffffffff
je 0x1400043fa
mov ebp, 0
mov r12d, 0
test rdi, rdi
je 0x14000433d
mov dword [rdi], ebp
test r12d, r12d
je 0x140004536
test rsi, rsi
je 0x140004351
mov dword [rsi], 0xffffffff
mov r9d, r12d
and r9d, 0x3fffffff
test rbx, rbx
je 0x14000452a
mov r8, rbx
lea rdx, str.fs_attr_get
lea rcx, str._E____s_____Failed_path_s_err_08x__n
call fcn.140002ef2
mov eax, r12d
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov dword [rsp + 0x20], 0x62
lea r9, str.C:_Projects_rdp_bot_codebase_fs.c
lea r8, str._path___NULL_
lea rdx, str.fs_attr_get
lea rcx, [0x1400113e0]
call fcn.140002ef2
mov ebp, 0xa0
mov r12d, 0x40000001
jmp 0x140004336
mov dword [rsp + 0x20], 0x63
lea r9, str.C:_Projects_rdp_bot_codebase_fs.c
lea r8, str._attr___NULL_
lea rdx, str.fs_attr_get
lea rcx, [0x1400113e0]
call fcn.140002ef2
mov ebp, 0xa0
mov r12d, 0x40000001
jmp 0x140004336
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov r9d, eax
mov r8, rbx
lea rdx, str.fs_attr_get
lea rcx, str._E____s_____GetFileAttributesA_failed_path_s_gle_lu__n
call fcn.140002ef2
cmp ebp, 0x20
ja 0x140004440
ja case.0x140004436.1
mov eax, ebp
lea rdx, [0x1400114b0]
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
mov r12d, ebp
jmp 0x140004336
cmp ebp, 0x94
je 0x1400044e8
jbe 0x140004479
cmp ebp, 0xb7
je 0x140004514
cmp ebp, 0x80070005
je 0x14000451f
cmp ebp, 0xaa
je 0x1400044a6
mov r12d, 0x40000001
jmp 0x140004336
cmp ebp, 0x7f
ja 0x140004493
cmp ebp, 0x7e
jae 0x1400044f3
cmp ebp, 0x50
jne 0x1400044fe
mov r12d, 0x40000007
jmp 0x140004336
cmp ebp, 0x91
jne 0x140004509
mov r12d, 0x4000000d
jmp 0x140004336
mov r12d, 0x4000000d
jmp 0x140004336
mov r12d, 0x40000003
jmp 0x140004336
mov r12d, 0x40000009
jmp 0x140004336
mov r12d, 0x4000000d
jmp 0x140004336
mov r12d, 0x40000001
jmp 0x140004336
mov r12d, 0x40000008
jmp 0x140004336
mov r12d, 0x4000000d
jmp 0x140004336
mov r12d, 0x40000003
jmp 0x140004336
mov r12d, 0x40000001
jmp 0x140004336
mov r12d, 0x40000001
jmp 0x140004336
mov r12d, 0x40000007
jmp 0x140004336
mov r12d, 0x40000009
jmp 0x140004336
lea rbx, [0x14001139b]
jmp 0x140004364
mov r9d, dword [rsi]
mov r8, rbx
lea rdx, str.fs_attr_get
lea rcx, str._D____s_____Done_path_s_attr_08lx__n
call fcn.140002ef2
jmp 0x14000437a
Function at 0x140004d2b
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
mov r12, r9
test rcx, rcx
je 0x140004dd5
test rdx, rdx
je 0x140004e05
call sub.msvcrt.dll_fopen
mov rbp, rax
test rax, rax
je 0x140004e38
test rdi, rdi
setne al
test r12, r12
setne dl
test dl, al
jne 0x140004ec6
mov edi, 0
test rbp, rbp
je 0x140004d8a
mov rcx, rbp
call sub.msvcrt.dll_fclose
test edi, edi
je 0x140004fa2
mov eax, edi
and eax, 0x3fffffff
test rsi, rsi
je 0x140004f8a
test rbx, rbx
je 0x140004f96
mov dword [rsp + 0x20], eax
mov r9, rsi
mov r8, rbx
lea rdx, str.fs_file_write
lea rcx, str._E____s_____Failed_path_s_mode_s_err_08x__n
call fcn.140002ef2
mov eax, edi
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov dword [rsp + 0x20], 0x279
lea r9, str.C:_Projects_rdp_bot_codebase_fs.c
lea r8, str._path___NULL_
lea rdx, str.fs_file_write
lea rcx, [0x1400113e0]
call fcn.140002ef2
mov edi, 0x40000004
jmp 0x140004d92
mov dword [rsp + 0x20], 0x27a
lea r9, str.C:_Projects_rdp_bot_codebase_fs.c
lea r8, str._mode___NULL_
lea rdx, str.fs_file_write
lea rcx, [0x1400113e0]
call fcn.140002ef2
mov edi, 0x40000004
jmp 0x140004d92
mov rdi, qword [sym.imp.msvcrt.dll__errno]
call rdi
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
mov r9, rsi
mov r8, rbx
lea rdx, str.fs_file_write
lea rcx, str._E____s_____fopen_failed_path_s_mode_s_errno_d__n
call fcn.140002ef2
call rdi
mov eax, dword [rax]
cmp eax, 0x29
ja case.0x140004e79.3
mov eax, eax
lea rdx, [0x1400119d8]
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
mov edi, 0
jmp 0x140004d7d
mov edi, 0x40000009
jmp 0x140004d7d
mov edi, 0x40000002
jmp 0x140004d7d
mov edi, 0x40000007
jmp 0x140004d7d
mov edi, 0x4000000d
jmp 0x140004d7d
call qword [sym.imp.msvcrt.dll__errno]
mov edi, dword [rax]
and edi, 0x1fffffff
or edi, 0x60000000
jmp 0x140004d7d
mov r9, rbp
mov r8, r12
mov edx, 1
mov rcx, rdi
call sub.msvcrt.dll_fwrite
cmp rax, r12
jne 0x140004ee8
mov edi, 0
jmp 0x140004d82
mov rdi, qword [sym.imp.msvcrt.dll__errno]
call rdi
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
mov r9, rsi
mov r8, rbx
lea rdx, str.fs_file_write
lea rcx, str._E____s_____fwrite_failed_path_s_mode_s_errno_d__n
call fcn.140002ef2
call rdi
mov eax, dword [rax]
cmp eax, 0x29
ja case.0x140004f29.3
mov eax, eax
lea rdx, [0x140011a80]
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
mov edi, 0
jmp 0x140004d7d
mov edi, 0x40000009
jmp 0x140004d7d
mov edi, 0x40000002
jmp 0x140004d7d
mov edi, 0x40000007
jmp 0x140004d7d
mov edi, 0x4000000d
jmp 0x140004d7d
call qword [sym.imp.msvcrt.dll__errno]
mov edi, dword [rax]
and edi, 0x1fffffff
or edi, 0x60000000
jmp 0x140004d7d
mov edi, 0x40000003
jmp 0x140004d7d
mov edi, 0x40000003
jmp 0x140004d7d
lea rsi, [0x14001139b]
jmp 0x140004da2
lea rbx, [0x14001139b]
jmp 0x140004dab
mov qword [rsp + 0x20], r12
mov r9, rsi
mov r8, rbx
lea rdx, str.fs_file_write
lea rcx, str._I____s_____Done_path_s_mode_s_buf_sz_llu__n
call fcn.140002ef2
jmp 0x140004dc8
Function at 0x1400055ad
Capabilities:
Delete file

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rsi, rdx
test rcx, rcx
je 0x1400056f5
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x14000561b
mov edi, 0
mov ebp, 0
test rsi, rsi
je 0x1400055df
mov dword [rsi], edi
test ebp, ebp
je 0x140005756
mov r9d, ebp
and r9d, 0x3fffffff
test rbx, rbx
je 0x14000574a
mov r8, rbx
lea rdx, str.fs_file_delete
lea rcx, str._E____s_____Failed_path_s_err_08x__n
call fcn.140002ef2
mov eax, ebp
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov r9d, eax
mov r8, rbx
lea rdx, str.fs_file_delete
lea rcx, str._E____s_____DeleteFileA_failed_path_s_gle_lu__n
call fcn.140002ef2
cmp edi, 0x20
ja 0x140005660
ja case.0x140005657.1
mov eax, edi
lea rdx, [0x1400120b4]
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
mov ebp, edi
jmp 0x1400055d8
cmp edi, 0x94
je 0x14000570e
jbe 0x140005698
cmp edi, 0xb7
je 0x140005736
cmp edi, 0x80070005
je 0x140005740
cmp edi, 0xaa
je 0x1400056c3
mov ebp, 0x40000001
jmp 0x1400055d8
cmp edi, 0x7f
ja 0x1400056b1
cmp edi, 0x7e
jae 0x140005718
cmp edi, 0x50
jne 0x140005722
mov ebp, 0x40000007
jmp 0x1400055d8
cmp edi, 0x91
jne 0x14000572c
mov ebp, 0x4000000d
jmp 0x1400055d8
mov ebp, 0x4000000d
jmp 0x1400055d8
mov ebp, 0x40000003
jmp 0x1400055d8
mov ebp, 0x40000009
jmp 0x1400055d8
mov ebp, 0x4000000d
jmp 0x1400055d8
mov ebp, 0x40000001
jmp 0x1400055d8
mov edi, 0xa0
mov ebp, 0x40000001
jmp 0x1400055d8
mov ebp, 0x40000008
jmp 0x1400055d8
mov ebp, 0x4000000d
jmp 0x1400055d8
mov ebp, 0x40000003
jmp 0x1400055d8
mov ebp, 0x40000001
jmp 0x1400055d8
mov ebp, 0x40000001
jmp 0x1400055d8
mov ebp, 0x40000007
jmp 0x1400055d8
mov ebp, 0x40000009
jmp 0x1400055d8
lea rbx, [0x14001139b]
jmp 0x1400055fa
mov r8, rbx
lea rdx, str.fs_file_delete
lea rcx, str._I____s_____Done_path_s__n
call fcn.140002ef2
jmp 0x140005610
Function at 0x140005b79
Capabilities:
Copy file

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
mov rsi, rdx
mov ebp, r8d
mov rdi, r9
test rcx, rcx
sete al
test rdx, rdx
sete dl
or al, dl
je 0x140005c09
mov r13d, 0xa0
mov r12d, 0x40000001
test rdi, rdi
je 0x140005bb5
mov dword [rdi], r13d
test r12d, r12d
je 0x140005d8d
mov eax, r12d
and eax, 0x3fffffff
test rsi, rsi
je 0x140005d75
test rbx, rbx
je 0x140005d81
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ebp
mov r9, rsi
mov r8, rbx
lea rdx, str.fs_file_copy
lea rcx, str._E____s_____Failed_src_s_dst_s_overwrite_d_err_08x__n
call fcn.140002ef2
mov eax, r12d
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
test r8d, r8d
sete r8b
movzx r8d, r8b
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x140005c32
mov r13d, 0
mov r12d, 0
jmp 0x140005bad
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r13d, eax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ebp
mov r9, rsi
mov r8, rbx
lea rdx, str.fs_file_copy
lea rcx, str._E____s_____CopyFileA_failed_src_s_dst_s_overwrite_d_gle_lu__n
call fcn.140002ef2
cmp r13d, 0x20
ja 0x140005c83
ja case.0x140005c79.1
mov eax, r13d
lea rdx, [0x140012308]
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
mov r12d, r13d
jmp 0x140005bad
cmp r13d, 0x94
je 0x140005d33
jbe 0x140005cc0
cmp r13d, 0xb7
je 0x140005d5f
cmp r13d, 0x80070005
je 0x140005d6a
cmp r13d, 0xaa
je 0x140005cf1
mov r12d, 0x40000001
jmp 0x140005bad
cmp r13d, 0x7f
ja 0x140005cdd
cmp r13d, 0x7e
jae 0x140005d3e
cmp r13d, 0x50
jne 0x140005d49
mov r12d, 0x40000007
jmp 0x140005bad
cmp r13d, 0x91
jne 0x140005d54
mov r12d, 0x4000000d
jmp 0x140005bad
mov r12d, 0x4000000d
jmp 0x140005bad
mov r12d, 0x40000003
jmp 0x140005bad
mov r12d, 0x40000009
jmp 0x140005bad
mov r12d, 0x4000000d
jmp 0x140005bad
mov r12d, 0x40000001
jmp 0x140005bad
mov r12d, 0x40000008
jmp 0x140005bad
mov r12d, 0x4000000d
jmp 0x140005bad
mov r12d, 0x40000003
jmp 0x140005bad
mov r12d, 0x40000001
jmp 0x140005bad
mov r12d, 0x40000001
jmp 0x140005bad
mov r12d, 0x40000007
jmp 0x140005bad
mov r12d, 0x40000009
jmp 0x140005bad
lea rsi, [0x14001139b]
jmp 0x140005bcf
lea rbx, [0x14001139b]
jmp 0x140005bd8
mov dword [rsp + 0x20], ebp
mov r9, rsi
mov r8, rbx
lea rdx, str.fs_file_copy
lea rcx, str._I____s_____Done_src_s_dst_s_overwrite_d__n
call fcn.140002ef2
jmp 0x140005bf9
Function at 0x140006e87
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x38
test rcx, rcx
je 0x140006ea5
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140006ed5
mov eax, 0
add rsp, 0x38
ret
mov dword [rsp + 0x20], 0x4d0
lea r9, str.C:_Projects_rdp_bot_codebase_fs.c
lea r8, str._path___NULL_
lea rdx, str.fs_path_exists
lea rcx, [0x1400113e0]
call fcn.140002ef2
mov eax, 0x40000004
jmp case.0x140006ef6.0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
ja 0x140006ef8
ja case.0x140006ef6.1
mov edx, eax
lea rcx, [0x1400129cc]
movsxd rdx, dword [rcx + rdx*4]
add rdx, rcx
jmp rdx
cmp eax, 0x94
je 0x140006f97
cmp eax, 0x94
jbe 0x140006f31
cmp eax, 0xb7
je 0x140006fbf
cmp eax, 0x80070005
je 0x140006fc9
cmp eax, 0xaa
je 0x140006f5b
mov eax, 0x40000001
jmp case.0x140006ef6.0
cmp eax, 0x7f
ja 0x140006f4a
cmp eax, 0x7e
jae 0x140006fa1
cmp eax, 0x50
jne 0x140006fab
mov eax, 0x40000007
jmp case.0x140006ef6.0
cmp eax, 0x91
jne 0x140006fb5
mov eax, 0x4000000d
jmp case.0x140006ef6.0
mov eax, 0x4000000d
jmp case.0x140006ef6.0
mov eax, 0x40000003
jmp case.0x140006ef6.0
mov eax, 0x40000009
jmp case.0x140006ef6.0
mov eax, 0x4000000d
jmp case.0x140006ef6.0
mov eax, 0x40000001
jmp case.0x140006ef6.0
mov eax, 0x40000008
jmp case.0x140006ef6.0
mov eax, 0x4000000d
jmp case.0x140006ef6.0
mov eax, 0x40000003
jmp case.0x140006ef6.0
mov eax, 0x40000001
jmp case.0x140006ef6.0
mov eax, 0x40000001
jmp case.0x140006ef6.0
mov eax, 0x40000007
jmp case.0x140006ef6.0
mov eax, 0x40000009
jmp case.0x140006ef6.0
Function at 0x140008312
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x38
test rcx, rcx
je 0x14000832d
test r8, r8
je 0x14000835d
movsxd rdx, edx
add rcx, rdx
mov eax, 0xffffffff
jmp 0x1400083aa
mov dword [rsp + 0x20], 0xfb
lea r9, str.C:_Projects_rdp_bot_codebase_utils.c
lea r8, str._data___NULL_
lea rdx, str.crc32
lea rcx, [0x1400130e0]
call fcn.140002ef2
mov eax, 0
jmp 0x1400083b5
mov dword [rsp + 0x20], 0xfc
lea r9, str.C:_Projects_rdp_bot_codebase_utils.c
lea r8, str._len___0_
lea rdx, str.crc32
lea rcx, [0x1400130e0]
call fcn.140002ef2
mov eax, 0
jmp 0x1400083b5
movzx edx, byte [rcx]
xor edx, eax
movzx edx, dl
shr eax, 8
lea r8, [0x140013440]
xor eax, dword [r8 + rdx*4]
add rcx, 1
mov r8, r9
lea r9, [r8 - 1]
test r8, r8
jne 0x14000838d
not eax
add rsp, 0x38
ret
Function at 0x14000a074
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x140018568]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x140018564]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x14000a0c2
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000a0ba
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x14000a1a9
inc ebx
add rax, 0x28
jmp 0x14000a09a
mov rcx, r12
call fcn.14000a8a1
mov rbp, rax
test rax, rax
jne 0x14000a0e1
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.14000a010
movsxd rbx, ebx
mov rax, qword [0x140018568]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.14000a94f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140018568]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x14000a143
mov rax, qword [0x140018568]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000a010
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000a1a3
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000a1a3
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 [0x140018568]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000a1a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000a010
inc dword [0x140018564]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x14000a5d0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x1400185c0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400185a0]
test rbx, rbx
je 0x14000a61c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x14000a616
test eax, eax
jne 0x14000a616
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x14000a5ee
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14000a7d0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14000a7f3
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x14000a7f3
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14000a7f4
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x14000a82e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x14000a825
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000a830
inc r8d
add rax, 0x28
jmp 0x14000a80c
xor eax, eax
ret
Function at 0x14000a8a1
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140014970]
mov r8, rcx
mov rcx, r9
call fcn.14000a7d0
test eax, eax
je 0x14000a8cd
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.14000a7f4
xor eax, eax
add rsp, 0x28
ret
Function at 0x140006920
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x140006944
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
je 0x1400069d2
mov rdi, r15
mov qword [rsp + 0x68], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400069a0
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x1400069a0
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.140056bb0
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1400069bd
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x1400069c5
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x140006961
mov rbp, qword [rsp + 0x68]
sub r15, rdi
jmp 0x140006ab0
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x1400069e9
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400069eb
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140006a1d
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.140056bb0
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140006aad
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140006a58
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rsi, 0xfff
jbe 0x140006a8e
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.14003e0c4
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x140006aad
cmp rsi, rax
ja 0x140006a61
test rsi, rsi
je 0x140006aad
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14003e0c4
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x28]
mov rax, r15
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
Function at 0x1400205d0
Capabilities:
Encode data using xor

Disassembly:
mov r9, r8
xor r11d, r11d
mov r10, rdx
mov r8d, r11d
cmp r9, 8
jb 0x140020607
mov rdx, r9
shr rdx, 3
imul rax, rdx, 0xfffffffffffffff8
add r9, rax
mov rax, qword [rcx]
add rcx, 8
xor rax, qword [r10]
add r10, 8
or r8, rax
sub rdx, 1
jne 0x1400205f0
mov rdx, r8
shr rdx, 0x20
or edx, r8d
mov r8d, edx
mov eax, edx
shr r8d, 8
or r8d, edx
shr eax, 0x10
and r8d, 0xff00
or r8d, eax
movzx eax, dl
shr r8d, 8
or r8d, eax
test r9, r9
je 0x1400206f8
sub rcx, r10
cmp r9, 8
jb 0x1400206d9
mov rax, r9
lea rdx, [r10 + 4]
and rax, 0xfffffffffffffff8
xorps xmm4, xmm4
xorps xmm3, xmm3
nop dword [rax + rax]
movd xmm2, dword [rcx + rdx - 4]
xorps xmm0, xmm0
movd xmm1, dword [rdx - 4]
lea rdx, [rdx + 8]
punpcklbw xmm2, xmm0
add r11, 8
punpcklwd xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
movd xmm1, dword [rdx - 8]
punpcklbw xmm1, xmm0
orps xmm4, xmm2
movd xmm2, dword [rcx + rdx - 8]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
orps xmm3, xmm2
cmp r11, rax
jb 0x140020660
orps xmm3, xmm4
movdqa xmm0, xmm3
psrldq xmm0, 8
orps xmm3, xmm0
movdqa xmm0, xmm3
psrldq xmm0, 4
orps xmm3, xmm0
movd eax, xmm3
or r8d, eax
cmp r11, r9
jae 0x1400206f8
add r10, r11
sub r9, r11
nop
movzx edx, byte [rcx + r10]
movzx eax, byte [r10]
lea r10, [r10 + 1]
xor edx, eax
or r8d, edx
sub r9, 1
jne 0x1400206e0
test r8d, r8d
sete al
ret