joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140029ab0
Capabilities:
Hash data using sha1

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x150
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x140], rax
movups xmm0, xmmword [rcx + 0x1c]
mov rbx, rcx
lea rax, [rsp + 8]
movups xmm1, xmmword [rcx + 0x2c]
mov edx, 0x40
movups xmmword [rsp], xmm0
movups xmm0, xmmword [rcx + 0x3c]
movups xmmword [rsp + 0x10], xmm1
movups xmm1, xmmword [rcx + 0x4c]
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm1
mov ecx, dword [rax + 0x2c]
xor ecx, dword [rax + 0x18]
xor ecx, dword [rax - 8]
xor ecx, dword [rax]
lea rax, [rax + 4]
rol ecx, 1
mov dword [rax + 0x34], ecx
sub rdx, 1
jne 0x140029b11
mov r14d, dword [rbx]
xor ebp, ebp
mov r15d, dword [rbx + 4]
mov edi, r14d
mov r12d, dword [rbx + 8]
mov r10d, r15d
mov r13d, dword [rbx + 0xc]
mov r9d, r12d
mov esi, dword [rbx + 0x10]
mov r11d, r13d
nop dword [rax + rax]
mov eax, r9d
lea r8d, [rsi + 0x5a827999]
and eax, r10d
mov ecx, r10d
not ecx
mov edx, edi
and ecx, r11d
rol edx, 5
or ecx, eax
mov esi, r11d
add edx, ecx
mov r11d, r9d
add edx, dword [rsp + rbp*4]
mov r9d, r10d
add r8d, edx
ror r9d, 2
inc rbp
mov r10d, edi
mov edi, r8d
cmp rbp, 0x14
jl 0x140029b50
mov edx, 0x14
nop word [rax + rax]
rol r8d, 5
add esi, 0x6ed9eba1
add r8d, dword [rsp + rdx*4]
mov ecx, r11d
xor ecx, r9d
add r8d, esi
xor ecx, r10d
mov esi, r11d
mov r11d, r9d
add r8d, ecx
mov r9d, r10d
inc rdx
ror r9d, 2
mov r10d, edi
mov edi, r8d
cmp rdx, 0x28
jl 0x140029ba0
mov edx, 0x28
nop
mov ecx, r9d
rol r8d, 5
or ecx, r10d
mov eax, r9d
and ecx, r11d
add esi, 0x8f1bbcdc
and eax, r10d
add r8d, esi
or ecx, eax
mov esi, r11d
add ecx, dword [rsp + rdx*4]
mov r11d, r9d
mov r9d, r10d
add r8d, ecx
ror r9d, 2
inc rdx
mov r10d, edi
mov edi, r8d
cmp rdx, 0x3c
jl 0x140029be0
mov edx, 0x3c
nop word [rax + rax]
mov eax, dword [rsp + rdx*4]
add esi, 0xca62c1d6
rol r8d, 5
mov ecx, r11d
xor ecx, r9d
add r8d, esi
xor ecx, r10d
mov esi, r11d
mov r11d, r9d
add eax, ecx
mov r9d, r10d
add r8d, eax
ror r9d, 2
inc rdx
mov r10d, edi
mov edi, r8d
cmp rdx, 0x50
jl 0x140029c30
add dword [rbx + 0x10], esi
lea eax, [r14 + r8]
mov dword [rbx], eax
lea eax, [r15 + r10]
mov dword [rbx + 4], eax
lea eax, [r12 + r9]
mov dword [rbx + 8], eax
lea eax, [r11 + r13]
mov dword [rbx + 0xc], eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14002cea0
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140029dc0
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov ebp, dword [rcx + 0x14]
mov rbx, rcx
mov r14d, dword [rcx + 0x18]
mov edx, ebp
shr edx, 3
mov esi, 0x10
and edx, 0x3f
movsxd rax, edx
inc edx
mov byte [rax + rcx + 0x1c], 0x80
add rcx, 0x1c
cmp edx, 0x38
jle 0x140029e7b
mov eax, 0x40
mov qword [rsp + 0x30], rdi
sub eax, edx
movsxd r8, eax
movsxd rax, edx
xor edx, edx
add rcx, rax
call fcn.14002e0e0
lea r9, [rbx + 0x1c]
mov r10d, esi
movzx r8d, byte [r9]
movzx edx, byte [r9 + 1]
movzx ecx, byte [r9 + 2]
movzx eax, byte [r9 + 3]
mov byte [r9], al
mov byte [r9 + 1], cl
mov byte [r9 + 2], dl
mov byte [r9 + 3], r8b
lea r9, [r9 + 4]
sub r10, 1
jne 0x140029e22
mov rcx, rbx
call fcn.140029ab0
mov rdi, qword [rsp + 0x30]
xor eax, eax
mov qword [rbx + 0x1c], rax
mov qword [rbx + 0x24], rax
mov qword [rbx + 0x2c], rax
mov qword [rbx + 0x34], rax
mov qword [rbx + 0x3c], rax
mov qword [rbx + 0x44], rax
mov qword [rbx + 0x4c], rax
jmp 0x140029e92
mov eax, 0x38
sub eax, edx
movsxd r8, eax
movsxd rax, edx
xor edx, edx
add rcx, rax
call fcn.14002e0e0
lea rax, [rbx + 0x1c]
nop word [rax + rax]
movzx r9d, byte [rax]
movzx r8d, byte [rax + 1]
movzx edx, byte [rax + 2]
movzx ecx, byte [rax + 3]
mov byte [rax], cl
mov byte [rax + 1], dl
mov byte [rax + 2], r8b
mov byte [rax + 3], r9b
lea rax, [rax + 4]
sub rsi, 1
jne 0x140029ea0
mov rcx, rbx
mov dword [rbx + 0x54], r14d
mov dword [rbx + 0x58], ebp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp fcn.140029ab0
Function at 0x14002a6d0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp qword [0x1400c6988], 0
jne 0x14002a71c
xor eax, eax
lea r8, [0x14002b010]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1400c6988], rax
test rax, rax
jne 0x14002a71c
lea rcx, str.Host_control_thread_creation_failed_n
call fcn.140029920
xor al, al
add rsp, 0x38
ret
lea rcx, str.Created_host_control_thread_n
call fcn.140029920
mov al, 1
add rsp, 0x38
ret

Function at 0x14002a8f0
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x70
mov rdi, rcx
lea rcx, str.Inside_InstallService...._n
call fcn.140029920
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x14002a945
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenSCManager_failed__error_code__0x_x_n
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
jmp fcn.140029920
xor eax, eax
lea r8, str.Credential_Vault_Host_Control_Service
mov qword [rsp + 0x60], rax
lea rdx, str.Credential_Vault_Host_Control_Service
mov qword [rsp + 0x58], rax
mov r9d, 0xf01ff
mov qword [rsp + 0x50], rax
mov rcx, rbx
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x110
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rdi, rax
test rax, rax
jne 0x14002a9c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Credential_Vault_Host_Control_Service
lea rcx, str.Failed_to_create_service__s__error_code__0x_x_n
call fcn.140029920
jmp 0x14002aa3b
lea rdx, str.Credential_Vault_Host_Control_Service
lea rcx, str.Service__s_installed_n
call fcn.140029920
lea rax, str.Host_Control_Service_for_Fingerprint_Processing
mov edx, 1
lea r8, [rsp + 0x88]
mov qword [rsp + 0x88], rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x14002aa1a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Credential_Vault_Host_Control_Service
lea rcx, str.Failed_to_change_the_service_description___s__error_code__0x_x_n
call fcn.140029920
jmp 0x14002aa26
lea rcx, str.Service_description_is_set_n
call fcn.140029920
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rcx, str.Service_installed_successfully...._n
call fcn.140029920
mov rcx, rbx
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
Function at 0x14002aa60
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push rdi
sub rsp, 0x90
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x80], rax
lea rcx, str.Inside_uninstall_service...._n
mov dword [rsp + 0x30], 0
call fcn.140029920
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x14002aac0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenSCManager_failed__error_code___d_n
call fcn.140029920
jmp 0x14002ab9e
mov r8d, 0xf01ff
mov qword [rsp + 0xa0], rbx
lea rdx, str.Credential_Vault_Host_Control_Service
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x14002aaff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenService_failed__error_code___d_n
call fcn.140029920
jmp 0x14002ab81
lea rax, [rsp + 0x30]
mov r9d, 0x24
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
cmp dword [rsp + 0x3c], 1
je 0x14002ab51
lea r8, [rsp + 0x60]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x14002ab51
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ControlService_failed__error_code___d_n
call fcn.140029920
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
lea rdx, str.Credential_Vault_Host_Control_Service
lea rcx, str.Failed_to_delete_service__s_n
test eax, eax
je 0x14002ab73
lea rcx, str.Service__s_removed_n
call fcn.140029920
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rcx, str.Service_uninstalled_successfully...._n
call fcn.140029920
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14002cea0
add rsp, 0x90
pop rdi
ret
Function at 0x14002abc0
Capabilities:
Start service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rsi, r8
lea rcx, str.Inside_RunService_...._n
mov ebp, edx
call fcn.140029920
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x14002ac16
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenSCManager_failed__error_code___d_n
call fcn.140029920
jmp 0x14002ac94
mov r8d, 0xf01ff
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x14002ac46
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenService_failed__error_code___d_n
call fcn.140029920
jmp 0x14002ac8b
mov r8, rsi
mov edx, ebp
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x14002ac6e
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
jmp 0x14002ac96
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.StartService_failed__error_code___d_n
call fcn.140029920
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14002acb0
Capabilities:
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x14002acfd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenSCManager_failed__error_code___d_n
call fcn.140029920
jmp 0x14002ad80
mov r8d, 0xf01ff
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x14002ad2d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenService_failed__error_code___d_n
call fcn.140029920
jmp 0x14002ad77
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x14002ad5a
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
jmp 0x14002ad82
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ControlService_failed__error_code___d_n
call fcn.140029920
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14002cea0
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x14002cca0
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov dword [rsp + 0x20], 0xf0000000
mov edi, edx
mov qword [rsp + 0x50], rbx
mov rsi, rcx
lea r8, str.Microsoft_Strong_Cryptographic_Provider
xor edx, edx
lea rcx, [rsp + 0x50]
lea r9d, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x14002cd25
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.AcquireContext_failed__error_code___d_n
call fcn.140029920
lea r9d, [rbx + 1]
mov dword [rsp + 0x20], 8
lea r8, str.Microsoft_Strong_Cryptographic_Provider
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x14002cd25
lea rcx, str.Could_not_acquire_the_context__n
call fcn.140029a50
jmp 0x14002cd5c
mov rcx, qword [rsp + 0x50]
mov r8, rsi
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x14002cd57
lea rcx, str.Error_occurred_while_generating_the_random_code._n
call fcn.140029a50
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov ebx, 1
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14002cd6e
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14002d538
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x14002d5c9
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x14002d5c9
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002d5c9
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x14002d5ad
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x14002d5a7
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x14002d5af
add rdx, 0x28
jmp 0x14002d58c
xor edx, edx
test rdx, rdx
jne 0x14002d5b8
xor al, al
jmp 0x14002d5cf
test dword [rdx + 0x24], 0x80000000
je 0x14002d5c5
xor al, al
jmp 0x14002d5cf
mov al, 1
jmp 0x14002d5cf
xor al, al
jmp 0x14002d5cf
add rsp, 0x18
ret
Function at 0x140042160
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r10, [0x1400c6120]
mov r14, rdx
mov rax, r15
sar rax, 6
mov rdx, r15
and edx, 0x3f
mov rdi, r15
shl rdx, 6
mov r9, qword [r10 + rax*8]
mov r12, qword [r9 + rdx + 0x28]
test r8, r8
je 0x1400421c5
cmp byte [r14], 0xa
jne 0x1400421c5
mov rcx, r15
mov rax, r15
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r10 + rax*8]
or byte [rax + rcx + 0x38], 4
jmp 0x1400421e6
mov dl, byte [r9 + rdx + 0x38]
mov rcx, rdi
and dl, 0xfb
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r10 + rax*8]
mov byte [rax + rcx + 0x38], dl
lea rbp, [r14 + r8]
mov rsi, r14
mov rbx, r14
cmp r14, rbp
jae 0x140042340
mov r13d, 1
mov al, byte [rsi]
cmp al, 0x1a
je 0x140042300
cmp al, 0xd
je 0x14004221a
mov byte [rbx], al
add rbx, r13
add rsi, r13
jmp 0x1400422f5
lea rax, [rsi + 1]
cmp rax, rbp
jae 0x140042240
cmp byte [rax], 0xa
jne 0x140042232
mov byte [rbx], 0xa
mov eax, 2
jmp 0x140042238
mov byte [rbx], 0xd
mov rax, r13
add rsi, rax
jmp 0x1400422f2
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
mov r8d, r13d
lea rdx, [rsp + 0x70]
mov rcx, r12
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400422e8
cmp dword [rsp + 0x78], 0
je 0x1400422e8
mov rcx, rdi
lea r10, [0x1400c6120]
and ecx, 0x3f
mov rax, rdi
sar rax, 6
shl rcx, 6
mov rax, qword [r10 + rax*8]
test byte [rax + rcx + 0x38], 0x48
je 0x1400422b8
mov dl, byte [rsp + 0x70]
cmp dl, 0xa
je 0x1400422c4
mov rcx, rdi
mov byte [rbx], 0xd
mov rax, rdi
and ecx, 0x3f
sar rax, 6
shl rcx, 6
mov rax, qword [r10 + rax*8]
mov byte [rax + rcx + 0x3a], dl
jmp 0x1400422f2
cmp byte [rsp + 0x70], 0xa
jne 0x1400422c9
cmp rbx, r14
jne 0x1400422c9
mov byte [rbx], 0xa
jmp 0x1400422f2
mov r8d, r13d
or rdx, 0xffffffffffffffff
mov ecx, r15d
call fcn.14003fcc4
cmp byte [rsp + 0x70], 0xa
lea r10, [0x1400c6120]
je 0x1400422f5
jmp 0x1400422ef
lea r10, [0x1400c6120]
mov byte [rbx], 0xd
add rbx, r13
cmp rsi, rbp
jb 0x1400421ff
jmp 0x140042340
mov rcx, rdi
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r10 + rax*8]
mov dl, byte [rax + rcx + 0x38]
test dl, 0x40
jne 0x140042339
mov rax, rdi
or dl, 2
sar rax, 6
and edi, 0x3f
shl rdi, 6
mov rax, qword [r10 + rax*8]
mov byte [rax + rdi + 0x38], dl
jmp 0x140042340
mov cl, byte [rsi]
mov byte [rbx], cl
add rbx, r13
sub rbx, r14
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140042360
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r11, [0x1400c6120]
mov r9, r15
mov rax, r15
sar rax, 6
and r9d, 0x3f
shl r9, 6
mov r14, rdx
mov rdi, r15
mov r10d, 0xa
mov rdx, qword [r11 + rax*8]
mov r12, qword [rdx + r9 + 0x28]
test r8, r8
je 0x1400423cc
cmp word [r14], r10w
jne 0x1400423cc
mov rcx, r15
mov rax, r15
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
or byte [rax + rcx + 0x38], 4
jmp 0x1400423ed
mov dl, byte [rdx + r9 + 0x38]
mov rcx, rdi
and dl, 0xfb
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
mov byte [rax + rcx + 0x38], dl
lea rbp, [r14 + r8*2]
mov rsi, r14
mov rbx, r14
cmp r14, rbp
jae 0x1400425c6
mov ecx, 0xd
lea r13d, [rcx - 0xb]
movzx eax, word [rsi]
cmp ax, 0x1a
je 0x140042584
cmp ax, cx
je 0x140042429
mov word [rbx], ax
add rbx, r13
add rsi, r13
jmp 0x14004251d
lea rax, [rsi + 2]
cmp rax, rbp
jae 0x140042451
cmp word [rax], r10w
jne 0x140042443
mov word [rbx], r10w
mov eax, 4
jmp 0x140042449
mov word [rbx], cx
mov rax, r13
add rsi, rax
jmp 0x140042567
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov r8d, r13d
lea rdx, [rsp + 0x70]
mov rcx, r12
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14004256c
cmp dword [rsp + 0x80], 0
je 0x14004256c
mov rcx, rdi
lea r11, [0x1400c6120]
and ecx, 0x3f
mov rax, rdi
sar rax, 6
mov r10d, 0xa
shl rcx, 6
mov rax, qword [r11 + rax*8]
test byte [rax + rcx + 0x38], 0x48
je 0x14004252b
movzx eax, word [rsp + 0x70]
cmp ax, r10w
jne 0x1400424c3
mov word [rbx], r10w
jmp 0x140042515
mov r8, rdi
mov word [rsp + 0x78], ax
mov r9, rdi
and r8d, 0x3f
sar r9, 6
mov ecx, 0xd
xor edx, edx
mov word [rbx], cx
shl r8, 6
mov rcx, qword [r11 + r9*8]
mov al, byte [rsp + rdx + 0x78]
add rcx, r8
mov byte [rcx + rdx + 0x3a], al
inc rdx
cmp rdx, r13
jl 0x1400424e4
mov rcx, rdi
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
mov byte [rax + rcx + 0x3c], r10b
add rbx, r13
mov ecx, 0xd
cmp rsi, rbp
jb 0x140042409
jmp 0x1400425c6
cmp word [rsp + 0x70], r10w
jne 0x140042538
cmp rbx, r14
je 0x1400424bd
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14003fcc4
mov r10d, 0xa
lea r11, [0x1400c6120]
cmp word [rsp + 0x70], r10w
je 0x140042518
lea ecx, [r10 + 3]
mov word [rbx], cx
add rbx, r13
jmp 0x14004251d
mov ecx, 0xd
lea r11, [0x1400c6120]
mov word [rbx], cx
add rbx, r13
lea r10d, [rcx - 3]
jmp 0x14004251d
mov rcx, rdi
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
mov dl, byte [rax + rcx + 0x38]
test dl, 0x40
jne 0x1400425bd
mov rax, rdi
or dl, r13b
sar rax, 6
and edi, 0x3f
shl rdi, 6
mov rax, qword [r11 + rax*8]
mov byte [rax + rdi + 0x38], dl
jmp 0x1400425c6
movzx ecx, word [rsi]
mov word [rbx], cx
add rbx, r13
sub rbx, r14
sar rbx, 1
lea rax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002b80
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000c040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140002bad
xor eax, eax
jmp 0x140002d19
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002be7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140002be7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140002d19
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140002d0c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140002c2a
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
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140002c55
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002d11
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140002cc4
sub eax, 1
je 0x140002cc4
cmp eax, 2
jne 0x140002d0c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002d11
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002cf2
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140002d0c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140002d11
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140005210
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140004030
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000c040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140004103
cmp byte [rcx + 0x71], 0
je 0x140004103
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400040ff
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400040c4
sub eax, 1
je 0x1400040c8
cmp eax, 2
jne 0x1400040ff
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140005210
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400040f6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400040ff
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400040ac
xor al, al
jmp 0x1400040ac
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140005210
add rsp, 0x60
pop rbx
ret

Function at 0x140005b90
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140005bda
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140005bda
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140005bda
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140005bda
cmp dword [rcx + 0x84], 0xe
jbe 0x140005bda
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140005bdc
xor al, al
add rsp, 0x28
ret