joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a3d20
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x1400a3ec8
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 0x1400a3d85
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x1400a3d85
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400a3d85
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 0x1400a3dbc
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x1400a3e12
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400a3e12
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400a3e12
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400a3e12
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400a3e12
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.1400a37d0
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 0x1400a3e74
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14007ff30
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.1400a3ba0
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 0x1400a3ec0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14007ff30
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1400a5630
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1400e9080]
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 0x1400a56c5
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 0x1400a5726
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.14007ff30
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.1400b8790
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 0x1400a57e1
sub ecx, 1
je 0x1400a5854
sub ecx, 1
je 0x1400a5790
cmp ecx, 1
je 0x1400a5773
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400d1944]
call fcn.14007ff30
jmp 0x1400a5854
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1400a5360
test eax, eax
je 0x1400a5854
jmp 0x1400a56fa
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 0x1400a5854
sub rax, rsi
cmp rax, rbp
jae 0x1400a5854
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.1400800b0
jmp 0x1400a5854
cmp r8d, 4
jle 0x1400a5854
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 0x1400a5854
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.14007fe50
mov esi, eax
test eax, eax
je 0x1400a5833
mov edx, 5
mov rcx, rbx
call fcn.1400a6320
mov eax, esi
jmp 0x1400a56fa
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.14008e750
mov rcx, r14
call fcn.14008ea30
test eax, eax
je 0x1400a56f8
mov edx, 5
mov rcx, rbx
call fcn.1400a6320
mov eax, Ordinal_45
jmp 0x1400a56fa
Function at 0x1400b85f0
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 0x1400b8632
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 0x1400b8679
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 0x1400b86d2
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 0x1400b8690
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400b8713
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400cb1f2]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400cb1f3]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400b86e0
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 0x1400b9838
Capabilities:
Parse pe header

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

Disassembly:
cld
pop r11
jmp 0x14007958d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14007959d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140079585
lea eax, [rcx + 1]
jmp 0x1400795ab
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1400795be
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1400795a4
sub eax, 3
jb 0x1400795de
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14007962d
sar eax, 1
movsxd rbp, eax
jb 0x140079614
jmp 0x1400795ec
add ebx, ebx
jne 0x1400795ea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140079614
inc ecx
add ebx, ebx
jne 0x1400795fa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140079614
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14007960d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400795fc
add ecx, 2
jmp 0x140079619
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140079542
jmp 0x14007958d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x46800
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14007967d
cmp rsi, rcx
jae 0x140079685
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140079664
cmp al, 0x8f
ja 0x140079664
cmp byte [rsi - 2], 0xf
je 0x14007966a
sub al, 0xe8
cmp al, 1
ja 0x14007964e
cmp rsi, rcx
jae 0x140079685
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140079654
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140079685
lodsb al, byte [rsi]
jmp 0x140079664
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x76000]
mov eax, dword [rdi]
or eax, eax
je 0x1400796ee
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x7ad70]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140079692
jns 0x1400796c7
movzx rdx, word [rdi]
add rdi, 2
jmp 0x1400796d1
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1400796e8
mov qword [rbx], rax
add rbx, 8
jmp 0x1400796b2
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140079728
cmp al, 0xef
ja 0x14007971a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1400796fa
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140079709
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x247]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14007977c
sub rsp, 0xffffffffffffff80
jmp 0x140032ee0
Function at 0x140003a70
Capabilities:
Execute command
Log keystrokes via polling

Disassembly:
push rdi
sub rsp, 0x30
lea rdx, [0x1400055b0]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov ecx, 0x69
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 1
test eax, eax
jne 0x140003ad3
lea rax, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x20]
call fcn.140003ae0
mov rcx, rax
call fcn.140003d80
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ecx, 2
call fcn.140003a30
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x140046940
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14004694d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14004695d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140046945
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140046975
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140046962
sub eax, 3
jb 0x14004698f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400469c6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x1400469b6
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400469b4
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400469a3
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.140046902
jmp 0x14004694d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x1b400
mov dl, 9
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140046a12
cmp rsi, rcx
jae 0x140046a1a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400469f9
cmp al, 0x8f
ja 0x1400469f9
cmp byte [rsi - 2], 0xf
je 0x1400469ff
sub al, 0xe8
cmp al, 1
ja 0x1400469e3
cmp rsi, rcx
jae 0x140046a1a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400469e9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140046a1a
lodsb al, byte [rsi]
jmp 0x1400469f9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x44000]
mov eax, dword [rdi]
or eax, eax
je 0x140046a83
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x62538]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140046a27
jns 0x140046a5c
movzx rdx, word [rdi]
add rdi, 2
jmp 0x140046a66
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140046a7d
mov qword [rbx], rax
add rbx, 8
jmp 0x140046a47
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x18f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140046adb
sub rsp, 0xffffffffffffff80
jmp 0x14001bce0

Function at 0x140001ba8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001bf2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001bf2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001bf2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001bf2
cmp dword [rcx + 0x84], 0xe
jbe 0x140001bf2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001bf4
xor al, al
add rsp, 0x28
ret
Function at 0x1004998
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor esi, esi
mov rdi, rax
cmp rax, rsi
je 0x1004abb
lea ecx, [rsi + 0x40]
mov edx, 0x20a
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
cmp rax, rsi
je 0x1004abb
lea rdx, [0x01004700]
mov rcx, rdi
call fcn.01005818
mov rdi, rax
cmp rax, rsi
je 0x1004a78
lea rcx, [0x01004700]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
lea r9, [rdi + rcx*2]
cmp r9, rsi
je 0x1004a78
mov edx, 0x105
mov rcx, rbx
mov r8d, esi
sub r9, rbx
lea rax, [rdx + 0x7ffffef9]
cmp rax, rsi
je 0x1004a3a
movzx eax, word [r9 + rcx]
cmp ax, si
je 0x1004a3a
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x1004a17
cmp rdx, rsi
jne 0x1004a49
sub rcx, 2
mov r8d, 0x8007007a
mov word [rcx], si
cmp r8d, esi
jne 0x1004a78
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
cmp word [rbx + rcx*2 - 2], 0x22
jne 0x1004a84
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
mov word [rbx + rcx*2 - 2], si
jmp 0x1004a84
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rbx, rsi
cmp rbx, rsi
je 0x1004abb
mov rcx, rbx
call fcn.01004ad4
mov rdi, rax
cmp rax, rsi
je 0x1004aa4
mov rdx, rbx
mov rcx, rax
call fcn.01004cb8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp rdi, rsi
je 0x1004abb
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x1004de8
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x0100d380]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rcx, [rsp + 0x20]
xor ebx, ebx
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp eax, ebx
je 0x1004e2f
cmp dword [rsp + 0x30], 2
jne 0x1004e2f
cmp dword [rsp + 0x24], 6
jb 0x1004e2f
mov ebx, 1
mov eax, ebx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.010057f0
add rsp, 0x150
pop rbx
ret

Function at 0x10050a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
and qword [rsp + 0x50], 0
mov rbp, r9
mov r12, r8
mov rsi, rdx
mov edi, 0x57
test rcx, rcx
je 0x1005147
test rdx, rdx
je 0x1005147
call fcn.0100501c
mov rbx, rax
test rax, rax
je 0x1005129
lea rax, [rsp + 0x50]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1005129
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x50]
mov r9, r12
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1005139
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rbx, rbx
je 0x1005147
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov eax, edi
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x1005164
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
and qword [rsp + 0x50], 0
mov edi, 0x57
test rcx, rcx
je 0x1005220
call fcn.0100501c
mov rbx, rax
test rax, rax
je 0x1005202
lea rax, [rsp + 0x70]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
mov rdx, rbx
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0xf003f
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1005202
mov eax, dword [rsp + 0x90]
mov rcx, qword [rsp + 0x50]
lea r9d, [rdi - 0x56]
mov dword [rsp + 0x28], eax
lea rax, [0x01004930]
lea rdx, [0x010047f0]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1005212
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rbx, rbx
je 0x1005220
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x10052c8
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x40
and qword [rax - 0x28], 0
mov r12, r9
mov r13, r8
mov rbp, rdx
mov rsi, rcx
mov edi, 0x57
test rcx, rcx
je 0x10053d6
test rdx, rdx
je 0x10053d6
lea r9d, [rdi - 0x53]
lea r8, [rax + 8]
xor ebx, ebx
and dword [rax + 8], ebx
xor edx, edx
call fcn.01004e50
cmp eax, 0xffffffff
jne 0x10053b8
mov edx, dword [rsp + 0x60]
lea ecx, [rdi - 0x17]
imul rdx, rdx, 0x20a
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
test rax, rax
je 0x10053b8
lea r9d, [rdi - 0x53]
lea r8, [rsp + 0x60]
mov rdx, rax
mov rcx, rsi
call fcn.01004e50
test eax, eax
je 0x1005364
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor ebx, ebx
test rbx, rbx
je 0x10053b8
lea rax, [rsp + 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10053b8
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x30]
mov r9, r13
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x10053c8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rbx, rbx
je 0x10053d6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov eax, edi
add rsp, 0x40
pop r13
pop r12
pop rdi
ret
Function at 0x10057f0
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x0100d380]
jne 0x100580b
rol rcx, 0x10
test cx, 0xffff
jne 0x1005807
ret 0
ror rcx, 0x10
jmp 0x1006fc8
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x0100ec70]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov r11, qword [0x0100ed68]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.ntdll.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x100704d
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x0100ec70]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.ntdll.dll_RtlVirtualUnwind
jmp 0x100706f
mov rax, qword [rsp + 0x88]
mov qword [0x0100ed68], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x0100ed08], rax
mov rax, qword [0x0100ed68]
mov qword [0x0100ebe0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x0100ecf0], rax
mov dword [0x0100ebd0], 0xc0000409
mov dword [0x0100ebd4], 1
mov rax, qword [0x0100d380]
mov qword [rsp + 0x68], rax
mov rax, qword [0x0100d388]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x01003940]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x1005b30
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
mov dword [rax + 0x18], r8d
push r12
sub rsp, 0x30
mov edi, r8d
mov ebx, edx
mov r12d, ecx
mov ecx, 8
call fcn.01007600
nop
cmp dword [0x0100e79c], 1
je 0x1005be3
mov dword [0x0100e798], 1
mov byte [0x0100e754], dil
test ebx, ebx
jne 0x1005bcf
mov rcx, qword [0x01010750]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov rcx, qword [0x01010748]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov qword [rsp + 0x20], rax
test rsi, rsi
je 0x1005bbc
sub rbx, 8
mov qword [rsp + 0x20], rbx
cmp rbx, rsi
jb 0x1005bbc
mov rcx, qword [rbx]
test rcx, rcx
je 0x1005bba
call rcx
jmp 0x1005ba2
lea rdx, [0x010032f8]
lea rcx, [0x010032e0]
call fcn.01005980
lea rdx, [0x01003308]
lea rcx, [0x01003300]
call fcn.01005980
nop
test edi, edi
je 0x1005bf1
mov ecx, 8
call fcn.010074f0
test edi, edi
jne 0x1005c19
mov dword [0x0100e79c], 1
lea ecx, [rdi + 8]
call fcn.010074f0
mov ecx, r12d
call fcn.01005924
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
xor r8d, r8d
xor edx, edx
jmp 0x1005b30