joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c9db0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x140117080]
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 0x1400c9e45
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 0x1400c9ea6
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1400a46d0
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.1400dd870
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 0x1400c9f61
sub ecx, 1
je 0x1400c9fd4
sub ecx, 1
je 0x1400c9f10
cmp ecx, 1
je 0x1400c9ef3
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400feebc]
call fcn.1400a46d0
jmp 0x1400c9fd4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1400c9ae0
test eax, eax
je 0x1400c9fd4
jmp 0x1400c9e7a
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 0x1400c9fd4
sub rax, rsi
cmp rax, rbp
jae 0x1400c9fd4
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.1400a4850
jmp 0x1400c9fd4
cmp r8d, 4
jle 0x1400c9fd4
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 0x1400c9fd4
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.1400a45f0
mov esi, eax
test eax, eax
je 0x1400c9fb3
mov edx, 5
mov rcx, rbx
call fcn.1400caaa0
mov eax, esi
jmp 0x1400c9e7a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1400b2ed0
mov rcx, r14
call fcn.1400b31b0
test eax, eax
je 0x1400c9e78
mov edx, 5
mov rcx, rbx
call fcn.1400caaa0
mov eax, Ordinal_46
jmp 0x1400c9e7a
Function at 0x1400dcd70
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 0x1400dcdb2
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 0x1400dcdf9
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 0x1400dce52
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 0x1400dce10
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400dce93
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400f68d2]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400f68d3]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400dce60
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 0x1400dceb0
Capabilities:
Get geographical location

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

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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140011c40]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140011c50]
mov dword [rax], 1
mov rax, qword [0x140011c60]
mov dword [rax], 1
mov rax, qword [0x140011be0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140011c30]
mov dword [0x140015020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140011d20]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140011d00]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140011b70]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001910
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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140001980
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400150b4]
mov rbx, rcx
test esi, esi
jle 0x140001ab0
mov rax, qword [0x1400150b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400019cb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001a55
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400019b0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001ad2
mov rax, qword [0x1400150b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400150b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001ab7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001a4e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001a60
add dword [0x1400150b4], 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 [0x1400150b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001a4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x1400019d8
mov rax, qword [0x1400150b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002040
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140015120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140015100]
test rbx, rbx
je 0x14000209c
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 eax, eax
jne 0x140002093
test rsi, rsi
je 0x140002093
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002078
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 0x1400022b0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400022c8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400022d0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x1400022e0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000232d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140002324
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000232f
add rax, 0x28
cmp rax, r9
jne 0x140002310
xor eax, eax
ret

Function at 0x140002330
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400023c0
mov rdx, qword [0x140011be0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400023ae
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400023ae
cmp word [rax + 0x18], 0x20b
jne 0x1400023ae
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400023c0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002399
add rbx, 0x28
cmp rbx, rdi
je 0x1400023c0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002390
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

Disassembly:
mov rdx, qword [0x140011be0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400023f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400023f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400023f0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000244d
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 0x140002444
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400023f0
add rax, 0x28
cmp rax, r9
jne 0x140002430
xor eax, eax
ret

Function at 0x140002450
Capabilities:
Parse pe header

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

Function at 0x140002490
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140011be0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400024b0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400024b8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400024b0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002500
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400024f7
test rcx, rcx
je 0x1400024b0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400024e8
xor eax, eax
ret
Function at 0x140002510
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140011be0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000252f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002538
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

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

Disassembly:
mov rdx, qword [0x140011be0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002570
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002578
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002570
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002570
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x1400025c4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400025d0
add rdx, 0x28
cmp r9, rdx
jne 0x1400025b0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140011be0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002602
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002610
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002602
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002602
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002602
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002665
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002678
add rdx, 0x28
cmp rdx, r10
jne 0x140002650
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002687
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002697
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000266e
test ecx, ecx
jg 0x140002680
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x180001960
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], r8
push rsi
push rdi
sub rsp, 0x38
xor edi, edi
mov rsi, rdx
mov r10, rcx
test rcx, rcx
jne 0x180001981
xor eax, eax
add rsp, 0x38
pop rdi
pop rsi
ret
movsxd rax, dword [rcx + 0x3c]
add rcx, 0x88
mov qword [rsp + 0x58], rbx
add rax, rcx
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x50], rax
mov ecx, dword [rax]
mov ebp, dword [rcx + r10 + 0x1c]
mov r9d, dword [rcx + r10 + 0x20]
mov ebx, dword [rcx + r10 + 0x24]
add rbp, r10
add r9, r10
add rbx, r10
test edx, 0xffff0000
jne 0x1800019d4
movzx eax, dx
sub eax, dword [rcx + r10 + 0x10]
mov edi, dword [rbp + rax*4]
add rdi, r10
jmp 0x180001b5b
mov r11d, dword [rcx + r10 + 0x18]
test r11d, r11d
je 0x180001b5b
nop dword [rax]
nop word [rax + rax]
mov eax, dword [r9]
mov r8, rsi
dec r11d
add rax, r10
sub r8, rax
nop
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x180001a13
inc rax
test ecx, ecx
jne 0x180001a00
test edx, edx
je 0x180001a29
add r9, 4
add rbx, 2
test r11d, r11d
jne 0x1800019f0
jmp 0x180001b5b
movzx eax, word [rbx]
mov ecx, dword [rbp + rax*4]
mov rax, qword [rsp + 0x50]
mov edx, dword [rax]
cmp rdx, rcx
ja 0x180001b53
mov eax, dword [rax + 4]
add eax, edx
cmp rcx, rax
jae 0x180001b53
lea rsi, [rcx + r10]
lea rdx, [0x18000e2ec]
mov rcx, rsi
call fcn.1800026f4
mov edx, 2
lea rdi, [rax + 1]
mov rbp, rax
sub rdi, rsi
lea rcx, [rdi + 4]
call fcn.1800028d4
mov rbx, rax
test rax, rax
je 0x180001b59
lea r8, [rdi + 1]
mov r9, rsi
mov rdx, rax
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.180002c64
mov eax, dword [0x18000e2f0]
lea rdx, str.api_
mov dword [rbx + rdi*2], eax
movzx eax, word [0x18000e2f4]
mov r8d, 4
mov rcx, rbx
mov word [rbx + rdi*2 + 4], ax
call fcn.18000252c
test eax, eax
je 0x180001ae2
lea rdx, str.ext_
mov r8d, 4
mov rcx, rbx
call fcn.18000252c
test eax, eax
jne 0x180001b2e
mov rcx, qword [rsp + 0x60]
lea r8, [rsp + 0x50]
mov rdx, rbx
call fcn.180001030
mov rdi, rax
test rax, rax
je 0x180001b2e
mov rcx, rbx
call fcn.180002918
mov rsi, qword [rsp + 0x50]
mov edx, 2
lea rcx, [rsi + 1]
call fcn.1800028d4
mov rbx, rax
test rax, rax
je 0x180001b59
lea r8, [rsi + rsi]
mov rdx, rdi
mov rcx, rax
call fcn.180002d80
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [rbp + 1]
mov r8, rbx
mov rcx, rax
call fcn.180001960
mov rcx, rbx
mov rdi, rax
call fcn.180002918
jmp 0x180001b5b
lea rdi, [rcx + r10]
jmp 0x180001b5b
xor edi, edi
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x58]
mov rax, rdi
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x180001c90
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, r8
mov rsi, rdx
mov r8, r9
mov rdx, rdi
mov rcx, rsi
mov rbx, r9
call fcn.180002ca0
test eax, eax
je 0x180001cf9
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180001cf9
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call fcn.180002d80
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140005670
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, r8
mov dword [rsp + 0x30], 0x208
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov r14, rdx
mov rbp, rcx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor edx, edx
lea rcx, [0x140029c40]
mov r8d, 0x208
test eax, eax
jne 0x1400057fa
mov qword [rsp + 0x58], rdi
mov dword [rsp + 0x38], r8d
call fcn.1400079f0
lea rax, [rsp + 0x38]
mov r9d, 0x208
lea r8, [0x140029c40]
mov qword [rsp + 0x20], rax
mov edx, 3
mov rcx, rbp
call qword [0x140029e60]
mov r9d, 0xc0
mov qword [rsp + 0x28], rbx
mov r8, r14
mov dword [rsp + 0x20], 0xc4
lea rdx, [0x140029c46]
lea rcx, str._ws_ws_n_c_c__ws___
call fcn.140001010
xor edi, edi
mov rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], di
jne 0x140005731
test rax, rax
je 0x1400057c2
mov qword [rsp + 0x98], rsi
mov rcx, rdi
mov qword [rsp + 0x50], r15
lea r15, [0x140028a70]
nop word [rax + rax]
lea rsi, [rbx + rcx*2]
mov edx, 0x80
movzx ecx, word [rsi]
call fcn.14000b0a8
test eax, eax
je 0x14000579b
call fcn.140008a88
cdqe
mov rcx, 0xffffffffffffffff
inc rcx
cmp word [r15 + rcx*2], 0
jne 0x140005783
xor edx, edx
div rcx
movzx eax, word [r15 + rdx*2]
mov word [rsi], ax
inc edi
mov rax, 0xffffffffffffffff
mov ecx, edi
inc rax
cmp word [rbx + rax*2], 0
jne 0x1400057a6
cmp rcx, rax
jb 0x140005760
mov r15, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x98]
mov eax, dword [rsp + 0x30]
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rdx, r14
mov qword [rsp + 0x20], rbx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rdx, rbx
lea rcx, str._ws_n_n
call fcn.140001010
mov rdi, qword [rsp + 0x58]
jmp 0x140005842
mov dword [rsp + 0x3c], 0x208
call fcn.1400079f0
lea rax, [rsp + 0x3c]
mov r9d, 0x208
lea r8, [0x140029c40]
mov qword [rsp + 0x20], rax
mov edx, 3
mov rcx, rbp
call qword [0x140029e60]
mov r8, r14
lea rdx, [0x140029c46]
lea rcx, str.Failed_to_read:__ws_ws_n_n
call fcn.140001010
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400067e0
add rsp, 0x60
pop r14
pop rbp
pop rbx
ret
Function at 0x140005860
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbx
mov eax, 0x2050
call fcn.140019ff0
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2040], rax
lea rax, [rsp + 0x30]
xor ebx, ebx
mov r9d, 0xf003f
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMCurrentControlSetControlSystemInformation
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor edx, edx
test eax, eax
je 0x140005915
mov r8d, 0x208
mov dword [rsp + 0x38], 0x208
lea rcx, [0x140029c40]
call fcn.1400079f0
lea rax, [rsp + 0x38]
mov r9d, 0x208
lea r8, [0x140029c40]
mov qword [rsp + 0x20], rax
lea edx, [rbx + 3]
mov rcx, 0xffffffff80000002
call qword [0x140029e60]
lea r8, str.SYSTEMCurrentControlSetControlSystemInformation
lea rdx, [0x140029c46]
lea rcx, str.Failed_to_open_key:__ws_ws_n_n
call fcn.140001010
jmp 0x140005afb
mov qword [rsp + 0x2060], rsi
lea rcx, [rsp + 0x40]
mov rsi, qword [rsp + 0x30]
mov r8d, 0x1ffe
call fcn.1400079f0
lea rax, [rsp + 0x38]
mov dword [rsp + 0x38], 0x1ffe
mov qword [rsp + 0x28], rax
lea rdx, str.ComputerHardwareIds
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140005a8f
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x1400059f5
mov qword [rsp + 0x2068], rdi
mov qword [rsp + 0x2070], r14
lea r14, [0x140028a70]
nop
mov eax, ebx
lea rdi, [rsp + 0x40]
movzx ecx, word [rdi + rax*2]
lea rdi, [rdi + rax*2]
mov edx, 0x80
call fcn.14000b0a8
test eax, eax
je 0x1400059db
call fcn.140008a88
cdqe
mov rcx, 0xffffffffffffffff
nop dword [rax + rax]
inc rcx
cmp word [r14 + rcx*2], 0
jne 0x1400059c0
dec rcx
xor edx, edx
div rcx
movzx eax, word [r14 + rdx*2]
mov word [rdi], ax
mov eax, dword [rsp + 0x38]
inc ebx
cmp ebx, eax
jb 0x140005990
mov r14, qword [rsp + 0x2070]
mov rdi, qword [rsp + 0x2068]
mov dword [rsp + 0x28], eax
lea rdx, str.ComputerHardwareIds
lea rax, [rsp + 0x40]
mov r9d, 7
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor edx, edx
mov dword [rsp + 0x3c], 0x208
mov r8d, 0x208
lea rcx, [0x140029c40]
call fcn.1400079f0
lea rax, [rsp + 0x3c]
mov r9d, 0x208
lea r8, [0x140029c40]
mov qword [rsp + 0x20], rax
mov edx, 3
mov rcx, rsi
call qword [0x140029e60]
mov eax, dword [rsp + 0x38]
lea r8, str.ComputerHardwareIds
mov dword [rsp + 0x28], eax
lea rdx, [0x140029c46]
mov r9d, 0xc0
mov dword [rsp + 0x20], 0xc4
lea rcx, str._ws_ws_n_c_c_multi_string_of_length__d_n_n
call fcn.140001010
jmp 0x140005aea
xor edx, edx
mov dword [rsp + 0x3c], 0x208
mov r8d, 0x208
lea rcx, [0x140029c40]
call fcn.1400079f0
lea rax, [rsp + 0x3c]
mov r9d, 0x208
lea r8, [0x140029c40]
mov qword [rsp + 0x20], rax
mov edx, 3
mov rcx, rsi
call qword [0x140029e60]
lea r8, str.ComputerHardwareIds
lea rdx, [0x140029c46]
lea rcx, str.Failed_to_read:__ws_ws_n_n
call fcn.140001010
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x2060]
mov rcx, qword [rsp + 0x2040]
xor rcx, rsp
call fcn.1400067e0
add rsp, 0x2050
pop rbx
ret