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

Disassembly:
sub rsp, 0x38
cmp byte [rcx + 0xf1e], 0
movsxd r10, r9d
je 0x140131124
cmp r8d, 0xff
jne 0x140131061
lea eax, [r10 - 0xec]
cmp eax, 0x13
ja 0x14013104b
lea r8, [0x140000000]
mov r9, qword [r8 + r10*8 + 0x1748f0]
mov r8, rdx
lea rdx, str._s_IAC__s_n
add rsp, 0x38
jmp fcn.14010d840
mov r8, rdx
mov r9d, r10d
lea rdx, str._s_IAC__d_n
add rsp, 0x38
jmp fcn.14010d840
cmp r8d, 0xfb
jne 0x140131073
lea r9, str.WILL
jmp 0x1401310b1
cmp r8d, 0xfc
jne 0x140131085
lea r9, str.WONT
jmp 0x1401310b1
cmp r8d, 0xfd
jne 0x140131097
lea r9, [0x140175314]
jmp 0x1401310b1
xor r9d, r9d
lea rax, str.DONT
cmp r8d, 0xfe
cmove r9, rax
test r9, r9
je 0x14013110d
cmp r10d, 0x27
jg 0x1401310e4
lea r8, [0x140000000]
mov r8, qword [r8 + r10*8 + 0x174f10]
test r8, r8
jne 0x1401310f4
mov r8, rdx
mov dword [rsp + 0x20], r10d
lea rdx, str._s__s__d_n
call fcn.14010d840
add rsp, 0x38
ret
cmp r10d, 0xff
jne 0x1401310cb
lea r8, str.EXOPL
mov qword [rsp + 0x20], r8
mov r8, rdx
lea rdx, str._s__s__s_n
call fcn.14010d840
add rsp, 0x38
ret
mov r9d, r8d
mov dword [rsp + 0x20], r10d
mov r8, rdx
lea rdx, str._s__d__d_n
call fcn.14010d840
add rsp, 0x38
ret

Function at 0x140131470
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x10], 0xff
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x4c0]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1401314cf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14010d6c0
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.140131000
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140131680
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x140131828
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x1401316e5
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x1401316e5
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1401316e5
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x14013171c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x140131772
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140131772
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140131772
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140131772
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140131772
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.140131130
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x1401317d4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14010d6c0
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.140131500
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140131820
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14010d6c0
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x140132f90
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1401a80c0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x140133025
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x140133086
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.14010d6c0
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140146b70
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x140133141
sub ecx, 1
je 0x1401331b4
sub ecx, 1
je 0x1401330f0
cmp ecx, 1
je 0x1401330d3
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x140187e34]
call fcn.14010d6c0
jmp 0x1401331b4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.140132cc0
test eax, eax
je 0x1401331b4
jmp 0x14013305a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x1401331b4
sub rax, rsi
cmp rax, rbp
jae 0x1401331b4
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.14010d840
jmp 0x1401331b4
cmp r8d, 4
jle 0x1401331b4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x1401331b4
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.14010d5e0
mov esi, eax
test eax, eax
je 0x140133193
mov edx, 5
mov rcx, rbx
call fcn.140133c80
mov eax, esi
jmp 0x14013305a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.14011c0b0
mov rcx, r14
call fcn.14011c390
test eax, eax
je 0x140133058
mov edx, 5
mov rcx, rbx
call fcn.140133c80
mov eax, Ordinal_46
jmp 0x14013305a
Function at 0x140145f50
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x140145f92
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x140145fd9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x140146032
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x140145ff0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140146073
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1401784c2]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1401784c3]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140146040
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x14014634c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140146386
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14014638b
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1401463d4
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1401463d4
dec r8
sub rdx, 1
jne 0x1401463ba
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140147ba8
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x440
mov rax, qword [0x14008e010]
xor rax, rsp
mov qword [rsp + 0x430], rax
mov rbx, rdx
lea r8, str.JHI_Service:
mov rdi, rcx
mov edx, recv
lea rcx, [rsp + 0x30]
call fcn.14004475c
call fcn.140001f80
mov qword [rsp + 0x28], rbx
lea rdx, [rsp + 0x3d]
mov r9, rdi
mov qword [rsp + 0x20], 0
mov r8d, 0x3f3
mov rcx, qword [rax]
call fcn.140043ad4
mov esi, eax
mov eax, 0xffffffff
test esi, esi
cmovs esi, eax
cmp dword [0x1400917e0], 1
jne 0x140003133
call fcn.140004370
call fcn.140004370
mov rdi, rax
call fcn.140039d1c
mov rbx, rax
call fcn.140039d00
cqo
idiv rbx
mov rcx, rax
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
imul rdx, rcx, 0x3b9aca00
add rdx, rax
movabs rax, 0x431bde82d7b634db
imul rdx
sar rdx, 0x12
mov rcx, rdx
shr rcx, 0x3f
add rdx, rcx
mov rcx, rdi
call fcn.140004140
mov rcx, rax
lea rdx, [0x14007b8f0]
call fcn.140007450
mov rcx, rax
lea rdx, [rsp + 0x30]
call fcn.140007450
mov rcx, rax
call fcn.1400076f0
jmp 0x14000313e
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
mov eax, esi
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.140038b50
lea r11, [rsp + 0x440]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1400034c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov r14, r8
mov rbp, rdx
mov rdi, rcx
je 0x140003561
mov rbx, r8
test r8, r8
jle 0x140003559
mov rcx, rdi
call fcn.140005ae0
test rax, rax
jle 0x140003530
mov rcx, qword [rdi + 0x40]
cmp rbx, rax
mov rsi, rbx
mov rdx, rbp
cmovge rsi, rax
mov r8, rsi
mov rcx, qword [rcx]
call fcn.14003db70
mov rax, qword [rdi + 0x58]
sub rbx, rsi
sub dword [rax], esi
mov rcx, qword [rdi + 0x40]
movsxd rax, esi
add qword [rcx], rax
jmp 0x140003551
mov rax, qword [rdi]
mov rcx, rdi
movzx edx, byte [rbp]
mov rax, qword [rax + 0x18]
call qword [0x140069610]
cmp eax, 0xffffffff
je 0x140003559
dec rbx
mov esi, 1
add rbp, rsi
test rbx, rbx
jg 0x1400034f2
sub r14, rbx
mov rax, r14
jmp 0x1400035d8
mov rax, qword [rcx + 0x40]
mov rsi, r14
mov r9, qword [rax]
test r9, r9
je 0x140003578
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14000357a
xor ecx, ecx
movsxd rbx, ecx
test r14, r14
jle 0x1400035d2
test ecx, ecx
jle 0x1400035ae
cmp r14, rbx
mov rcx, r9
cmovl rbx, r14
mov r8, rbx
call fcn.14003db70
mov rax, qword [rdi + 0x58]
add rbp, rbx
sub r14, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x40]
movsxd rax, ebx
add qword [rcx], rax
test r14, r14
jle 0x1400035d2
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400035d2
mov r8, r14
mov edx, 1
mov rcx, rbp
call fcn.140044a40
sub r14, rax
sub rsi, r14
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140003600
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140003622
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x1400036a3
mov rdi, r14
mov rcx, rbx
call fcn.140005b00
test rax, rax
jle 0x140003674
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.14003db70
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x140003693
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x38]
call qword [0x140069610]
cmp eax, 0xffffffff
je 0x14000369b
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140003636
sub r14, rdi
jmp 0x140003798
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x1400036ba
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400036bc
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400036f1
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.14003db70
mov rax, qword [rbx + 0x50]
sub rbp, rdi
add rsi, rdi
mov r8, rbp
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140003795
mov r9, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r9], rax
jne 0x14000372c
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x140003770
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1400451f4
sub rbp, rax
add rsi, rax
mov rdi, rbp
cmp rax, 0xfff
jne 0x1400037ae
cmp rbp, rax
ja 0x140003740
mov r8, rdi
test rdi, rdi
je 0x140003795
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1400451f4
mov r8, rdi
sub r8, rax
sub r14, r8
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
sub r14, rbp
jmp 0x140003798
Function at 0x140003c10
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x14008e010]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140003c40
xor eax, eax
jmp 0x140003d90
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140003c7a
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140003c7a
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 0x140003d90
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xb0], rsi
je 0x140003d83
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140003cbd
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 0x140003ccc
movsx ecx, dil
jmp 0x140003d2a
lea r8, [rsp + 0x50]
mov byte [rsp + 0x60], dil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x61]
lea r8, [rsp + 0x88]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x68]
mov rax, qword [rax + 0x38]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x60]
call qword [0x140069610]
test eax, eax
js 0x140003d83
cmp eax, 1
jle 0x140003d44
cmp eax, 3
jne 0x140003d83
movsx ecx, byte [rsp + 0x60]
mov rdx, qword [rbx + 0x80]
call fcn.140041850
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140003d88
mov rsi, qword [rsp + 0x50]
lea rax, [rsp + 0x68]
sub rsi, rax
je 0x140003d71
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x68]
mov r8, rsi
mov edx, 1
call fcn.140044a40
cmp rsi, rax
jne 0x140003d83
lea rax, [rsp + 0x60]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x58], rax
mov eax, edi
jne 0x140003d88
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140038b50
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
ret
Function at 0x140005820
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14008e010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140005900
cmp byte [rcx + 0x71], 0
je 0x140005900
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
mov rax, qword [rax + 0x18]
call qword [0x140069610]
cmp eax, 0xffffffff
je 0x1400058fc
mov rcx, qword [rbx + 0x68]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], r8
lea rdx, [rbx + 0x74]
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call qword [0x140069610]
test eax, eax
je 0x1400058c2
sub eax, 1
je 0x1400058c6
cmp eax, 2
jne 0x1400058fc
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140038b50
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400058f3
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call fcn.140044a40
cmp rdi, rax
jne 0x1400058fc
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400058aa
xor al, al
jmp 0x1400058aa
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140038b50
add rsp, 0x60
pop rbx
ret

Function at 0x140009360
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x14008e010]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x3c], 4
mov rdi, rdx
mov dword [rsp + 0x38], 4
mov rbx, rcx
test rcx, rcx
je 0x1400093d2
test rdx, rdx
je 0x1400093d2
lea rax, [rsp + 0x30]
mov r9d, 0x20119
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMCurrentControlSetServicesjhi_service
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.DLL_RegOpenKeyExW]
test eax, eax
je 0x1400093ec
mov edx, eax
lea rcx, str.Unable_to_open_Registry__0x_x__n
call fcn.1400031b0
xor al, al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140038b50
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x3c]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rdx, rbx
call qword [sym.imp.ADVAPI32.DLL_RegQueryValueExW]
test eax, eax
je 0x140009431
mov rdx, rbx
lea rcx, str.Registry_read_integer_key__S_failed._n
call fcn.1400031b0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.DLL_RegCloseKey]
jmp 0x1400093d2
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.DLL_RegCloseKey]
mov al, 1
jmp 0x1400093d4
Function at 0x140009440
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14008e010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, r8
mov dword [rsp + 0x38], 0x206
mov rsi, rdx
mov dword [rsp + 0x40], 3
mov rbp, rcx
xor edx, edx
mov r8d, 0x800
lea rcx, str.sechost.dll
call qword [sym.imp.KERNEL32.DLL_LoadLibraryExW]
mov rbx, rax
test rax, rax
jne 0x1400094ac
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
lea rcx, str.LoadLibraryEx_with_sechost.dll_failed._Error:__0x_x_
call fcn.1400031b0
xor al, al
jmp 0x1400095ca
lea rdx, str.GetServiceRegistryStateKey
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
test rax, rax
je 0x1400094fc
lea r9, [rsp + 0x30]
xor edx, edx
mov r8d, 0x20019
mov rcx, rbp
call qword [0x140069610]
test eax, eax
je 0x140009556
mov r8, rbp
lea rcx, str.GetServiceRegistryStateKey_failed__0x_x__handle__p
mov edx, eax
call fcn.1400031b0
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_FreeLibrary]
xor al, al
jmp 0x1400095ca
lea rcx, str.GetProcAddress_with_GetServiceRegistryStateKey_failed__This_is_windows_RS3_or_lower.
call fcn.1400031b0
lea rax, [rsp + 0x30]
mov r9d, 0x20119
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x14007bc10]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.DLL_RegOpenKeyExW]
test eax, eax
je 0x140009556
mov r8d, eax
lea rdx, str.SYSTEMCurrentControlSetServicesjhi_serviceParameters
lea rcx, str.Registry_read_failure_for__s__RegOpenKeyEx_failed__0x_x__n
call fcn.1400031b0
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_FreeLibrary]
xor al, al
jmp 0x1400095ca
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rdx, rsi
call qword [sym.imp.ADVAPI32.DLL_RegQueryValueExW]
test eax, eax
je 0x1400095a9
mov r8d, eax
lea rcx, str.Registry_read_failure_for__S._Error:__0x_x__n
mov rdx, rsi
call fcn.1400031b0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.DLL_RegCloseKey]
xor al, al
jmp 0x1400095ca
mov eax, dword [rsp + 0x38]
shr rax, 1
cmp word [rdi + rax*2], 0
je 0x1400095bd
xor ecx, ecx
mov word [rdi + rax*2], cx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.DLL_RegCloseKey]
mov al, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140038b50
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret