joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002f798
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 r9, [0x140058540]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14002f7ef
cmp word [rdx], r13w
jne 0x14002f7ef
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14002f7f4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14002f919
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14002f93a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14002f82d
mov rdx, r9
mov word [rbx], cx
jmp 0x14002f854
cmp r9, r8
jae 0x14002f864
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14002f80e
jmp 0x14002f919
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002f90e
cmp dword [rsp + 0x80], esi
je 0x14002f90e
lea r8, [0x140058540]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14002f8e6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14002f8b6
mov word [rbx], r13w
jmp 0x14002f916
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14002f8c3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14002f916
cmp word [rsp + 0x70], r13w
jne 0x14002f8f3
cmp rbx, r14
je 0x14002f8b0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140030400
cmp word [rsp + 0x70], r13w
je 0x14002f919
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [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
lea r8, [0x140058540]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14002f913
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14002f919
Function at 0x140032cf0
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140032d20
xor eax, eax
jmp 0x140032de3
mov rbp, rbx
cmp word [rax], si
je 0x140032d45
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140032d2c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140032d28
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14002c6f8
movsxd r14, eax
test eax, eax
jne 0x140032d83
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140032d19
mov rcx, r14
call fcn.14002c30c
mov rdi, rax
test rax, rax
jne 0x140032d9c
xor ecx, ecx
call fcn.14002c2d0
jmp 0x140032d78
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14002c6f8
test eax, eax
jne 0x140032dcd
mov rcx, rdi
call fcn.14002c2d0
jmp 0x140032dd7
xor ecx, ecx
call fcn.14002c2d0
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140035d58
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14002bf0c
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140035df9
cmp ebx, dword [rsp + 0x30]
je 0x140035df2
test esi, esi
je 0x140035df2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140035dcd
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140035dda
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140035db7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140035dde
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140035dfb
mov eax, 1
jmp 0x140035dfb
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140037554
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140025d88
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400375de
cmp byte [rbp - 0x21], r15b
je 0x1400375d9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140037614
call fcn.14002d350
test eax, eax
jne 0x140037600
cmp byte [rbp - 0x21], r15b
je 0x1400375f8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140037614
cmp byte [rbp - 0x21], r15b
je 0x140037611
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400284e8
test eax, eax
jne 0x1400376b4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140025d88
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140037653
cmp byte [rbp - 0x21], r15b
je 0x140037688
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140037688
call fcn.14002d350
test eax, eax
jne 0x140037674
cmp byte [rbp - 0x21], r15b
je 0x14003766d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140037688
cmp byte [rbp - 0x21], r15b
je 0x140037685
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400284e8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400376b4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400376b7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400376c5
mov rcx, rdi
call fcn.14002c2d0
cmp byte [rbp + 0x3f], r15b
je 0x1400376d4
mov rcx, qword [rbp + 0x27]
call fcn.14002c2d0
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140038800
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140038828
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140038828
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1800017b0
Capabilities:
Enumerate pe sections

Disassembly:
push rbx
push rbp
push rdi
push r14
push r15
sub rsp, 0x20
mov r8, qword [rcx]
mov rbp, rcx
mov ecx, dword [rcx + 0x68]
movzx eax, word [r8 + 0x14]
mov r15, qword [r8 + 0x30]
dec rcx
mov r11d, dword [rax + r8 + 0x20]
lea r9, [rax + r8 + 0x18]
movabs rax, 0xffffffff00000000
and r15, rax
mov eax, dword [r9 + 0x10]
not rcx
or r11, r15
and rcx, r11
test eax, eax
jne 0x180001810
mov edx, dword [r9 + 0x24]
test dl, 0x40
je 0x180001808
mov eax, dword [r8 + 0x20]
jmp 0x180001810
test dl, dl
jns 0x180001810
mov eax, dword [r8 + 0x24]
mov edx, dword [r9 + 0x24]
mov ebx, 1
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], r12
mov r10d, eax
mov r14d, ebx
lea rdi, [0x1800612d0]
mov qword [rsp + 0x68], r13
cmp bx, word [r8 + 6]
jae 0x180001987
lea rbx, [r9 + 0x4c]
nop word [rax + rax]
mov esi, dword [rbp + 0x68]
mov r12d, dword [rbx - 0x1c]
mov eax, dword [rbx - 0x14]
or r12, r15
lea rdi, [rsi - 1]
not rdi
and rdi, r12
test eax, eax
jne 0x180001883
mov r9d, dword [rbx]
test r9b, 0x40
je 0x18000187a
mov eax, dword [r8 + 0x20]
jmp 0x180001883
test r9b, r9b
jns 0x180001883
mov eax, dword [r8 + 0x24]
mov r13d, eax
cmp rcx, rdi
je 0x180001941
lea rax, [r10 + r11]
cmp rax, rdi
ja 0x180001941
test r10, r10
je 0x180001934
bt edx, 0x19
jae 0x1800018e7
cmp r11, rcx
jne 0x180001934
cmp dword [r8 + 0x38], esi
je 0x1800018c7
xor edx, edx
mov rax, r10
div rsi
test rdx, rdx
jne 0x180001934
mov r9, qword [rbp + 0x58]
mov r8d, 0x4000
mov rdx, r10
mov rcx, r11
call qword [rbp + 0x30]
mov edx, dword [rbx]
mov r11, r12
mov rcx, rdi
mov r10, r13
jmp 0x180001962
mov eax, edx
shr eax, 0x1d
and eax, 1
movsxd rcx, eax
mov eax, edx
shr eax, 0x1e
and eax, 1
cdqe
lea rcx, [rax + rcx*2]
mov eax, edx
shr eax, 0x1f
lea rcx, [rax + rcx*2]
lea rax, [0x1800612d0]
mov r8d, dword [rax + rcx*4]
bt edx, 0x1a
jae 0x18000191f
bts r8d, 9
lea r9, [rsp + 0x50]
mov rdx, r10
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1800019ac
mov edx, dword [rbx]
mov r11, r12
mov rcx, rdi
mov r10, r13
jmp 0x180001962
mov eax, dword [rbx]
bt eax, 0x19
jae 0x180001953
bt edx, 0x19
jae 0x180001953
or edx, eax
jmp 0x180001959
or edx, eax
btr edx, 0x19
mov r10, r13
sub r10, r11
add r10, r12
mov r8, qword [rbp]
inc r14d
add rbx, 0x28
movzx eax, word [r8 + 6]
cmp r14d, eax
jl 0x180001850
mov ebx, 1
lea rdi, [0x1800612d0]
test r10, r10
je 0x1800019f6
bt edx, 0x19
jae 0x1800019b0
cmp r11, rcx
jne 0x1800019f6
mov r9, qword [rbp + 0x58]
mov r8d, 0x4000
mov rdx, r10
mov rcx, r11
call qword [rbp + 0x30]
jmp 0x1800019f6
xor eax, eax
jmp 0x1800019f8
mov eax, edx
shr eax, 0x1d
and eax, 1
movsxd rcx, eax
mov eax, edx
shr eax, 0x1e
and eax, 1
cdqe
lea rcx, [rax + rcx*2]
mov eax, edx
shr eax, 0x1f
lea rcx, [rax + rcx*2]
mov r8d, dword [rdi + rcx*4]
bt edx, 0x1a
jae 0x1800019e1
bts r8d, 9
lea r9, [rsp + 0x50]
mov rdx, r10
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1800019ac
mov eax, ebx
mov r13, qword [rsp + 0x68]
mov r12, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rbp
pop rbx
ret
Function at 0x1800028d7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [section..data]
jne 0x18000230a
rol rcx, 0x10
test cx, 0xffff
jne 0x180002306
repz ret
ror rcx, 0x10
jmp 0x180002830
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1800613c0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1800614b8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1800028b5
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, [0x1800613c0]
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.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1800028d7
mov rax, qword [rsp + 0x88]
mov qword [0x1800614b8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180061458], rax
mov rax, qword [0x1800614b8]
mov qword [0x180061330], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180061440], rax
mov dword [0x180061320], 0xc0000409
mov dword [0x180061324], 1
mov rax, qword [section..data]
mov qword [rsp + 0x68], rax
mov rax, qword [0x18000b008]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1800613b8], eax
mov ecx, 1
call fcn.180005140
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x180008288]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1800613b8], 0
jne 0x18000295e
mov ecx, 1
call fcn.180005140
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 0x180006bb4
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.180003838
xor ebx, ebx
cmp qword [0x1800622e8], rbx
mov rdi, rax
jne 0x180006cc7
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x180006d9e
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180006d9e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1800622e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1800622f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x1800622f8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x180062308], rax
test rax, rax
je 0x180006cbe
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x180062300], rax
jmp 0x180006cce
mov rax, qword [0x180062300]
jmp 0x180006cd5
mov rax, qword [0x180062300]
mov r11, qword [0x180062308]
cmp rax, rdi
je 0x180006d3c
cmp r11, rdi
je 0x180006d3c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x180062308]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x180006d3c
test rax, rax
je 0x180006d3c
call rsi
test rax, rax
je 0x180006d36
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180006d36
test byte [rsp + 0x40], 1
jne 0x180006d3c
bts ebp, 0x15
jmp 0x180006d7c
mov rcx, qword [0x1800622f0]
cmp rcx, rdi
je 0x180006d7c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180006d7c
call rax
mov rbx, rax
test rax, rax
je 0x180006d7c
mov rcx, qword [0x1800622f8]
cmp rcx, rdi
je 0x180006d7c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180006d7c
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1800622e8]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180006d9e
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x180006da0
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1800022f0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180004b30
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov dword [r11 + 0x20], r9d
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x30
and qword [r11 + 8], 0
lea rax, [r11 + 8]
mov rdi, r8
mov qword [r11 - 0x18], rax
xor r8d, r8d
mov r9d, 0x20019
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x180004b72
xor eax, eax
jmp 0x180004bdc
mov rbx, qword [rsp + 0x68]
lea r9, [rsp + 0x58]
mov rcx, qword [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x28], rbx
mov rdx, rdi
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x40]
test eax, eax
je 0x180004ba9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x180004b6e
mov rax, qword [rsp + 0x60]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x28], rbx
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x40]
test eax, eax
jne 0x180004ba1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x58]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x180004be8
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, qword [rsp + 0x60]
mov dword [rsp + 0x28], r9d
mov r9d, edx
mov qword [rsp + 0x20], r8
mov rdx, rcx
xor r8d, r8d
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x180004c1a
mov eax, 0xfffffffd
jmp 0x180004c2e
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x180004c34
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x30
mov rbx, r9
lea rax, [rsp + 0x40]
mov r9, r8
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
mov r8, rdx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x180004c71
test rbx, rbx
je 0x180004c71
mov ecx, dword [rsp + 0x40]
mov qword [rbx], rcx
add rsp, 0x30
pop rbx
ret

Function at 0x180005364
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], r8
push rdi
sub rsp, 0x30
mov rax, r9
mov rdi, rdx
mov r8d, edx
lea r9, [r11 + 0x18]
mov rdx, rcx
xor ebx, ebx
mov qword [r11 - 0x18], rbx
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800053a3
mov eax, dword [rsp + 0x50]
xor edx, edx
div rdi
mov rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1800053bc
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, r9
imul r8d, edx
mov rdi, rdx
lea r9, [rsp + 0x48]
mov rdx, rcx
xor ebx, ebx
mov qword [rsp + 0x20], rbx
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1800053f8
mov eax, dword [rsp + 0x48]
xor edx, edx
div rdi
mov rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1800054b0
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
mov dword [rsp + 0x10], edx
push rbx
sub rsp, 0x2d0
xor ebx, ebx
lea rdx, [rsp + 0x130]
lea ecx, [rbx + 2]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x180005559
lea rdx, [rsp + 0x2e8]
mov dword [rsp + 0x2e8], 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x18000554b
lea rcx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x18000554b
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov ecx, dword [rcx]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
test rax, rax
je 0x18000554b
lea r8, [0x180028480]
mov edx, 0x80
sub r8, rax
mov cl, byte [rax]
dec rdx
mov byte [r8 + rax], cl
inc rax
test cl, cl
je 0x180005541
test rdx, rdx
jne 0x18000552c
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x18000555b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, ebx
add rsp, 0x2d0
pop rbx
ret

Function at 0x180005564
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Initialize winsock library

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov dword [rax + 0x18], r8d
push rbp
push rdi
push r15
lea rbp, [rax - 0x118]
sub rsp, 0x200
mov rsi, rcx
lea rdx, [rsp + 0x60]
or ebx, 0xffffffff
lea edi, [rbx + 3]
mov ecx, edi
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x180005655
lea r15d, [rbx + 0x18]
mov edx, edi
mov ecx, r15d
lea r8d, [rbx + 0x12]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp eax, ebx
je 0x18000564f
xor eax, eax
mov dword [rbp + 0x130], 0x1c
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x28]
mov rdx, rsi
mov word [rsp + 0x20], r15w
mov ecx, r15d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], eax
call fcn.180012f40
mov r8d, dword [rbp + 0x130]
lea rdx, [rsp + 0x20]
movsxd rdi, edi
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
mov ebx, eax
cmp eax, 0xffffffff
je 0x180005646
lea r8, [rbp + 0x130]
mov rcx, rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_getsockname]
mov ebx, eax
cmp eax, 0xffffffff
je 0x180005646
lea r8d, [r15 + 0x69]
lea rdx, [0x180028480]
lea rcx, [rsp + 0x48]
call fcn.180012d28
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea r11, [rsp + 0x200]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret
Function at 0x180005670
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x60
mov dl, byte [0x180028f80]
mov rsi, r9
lea r9, [0x180028f80]
mov rax, r9
jmp 0x1800056a6
cmp dl, 0x3a
je 0x1800056ac
inc rax
mov dl, byte [rax]
test dl, dl
jne 0x18000569c
xor eax, eax
movzx ebx, word [0x180028f78]
movsxd rdi, ecx
test rax, rax
je 0x1800056fa
xor eax, eax
lea r8, [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rdx, r9
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rax
lea ecx, [rax + 0x17]
mov dword [rbp - 8], eax
mov word [rbp - 0x20], cx
call fcn.180012f40
movzx ecx, bx
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp - 0x1e], ax
lea rax, [rbp - 0x20]
mov dword [rsp + 0x28], 0x1c
jmp 0x180005730
mov qword [rbp - 0x30], rax
mov rcx, r9
mov qword [rbp - 0x28], rax
mov eax, 2
mov word [rbp - 0x30], ax
call qword [sym.imp.WS2_32.dll_inet_addr]
movzx ecx, bx
mov dword [rbp - 0x2c], eax
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp - 0x2e], ax
lea rax, [rbp - 0x30]
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
mov r8d, dword [rbp + 0x30]
xor r9d, r9d
mov rdx, rsi
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_sendto]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x180005760
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
sub rsp, 0x58
cmp qword [0x180027508], 0
jne 0x180005833
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
and qword [rsp + 0x40], 0
xor r9d, r9d
and dword [rsp + 0x38], 0
xor r8d, r8d
and qword [rsp + 0x30], 0
or edx, 0xffffffff
mov dword [rsp + 0x28], 3
xor ecx, ecx
and dword [rsp + 0x20], 0
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
xor edx, edx
lea rax, [0x180027508]
lea r9, [0x180001200]
mov qword [rsp + 0x20], rax
lea rcx, [0x1800011f0]
lea r8d, [rdx + 1]
call qword [sym.imp.ole32.dll_CoCreateInstance]
lea rcx, [0x1800011c8]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rcx, qword [0x180027508]
lea rdx, [0x1800274f0]
mov qword [rsp + 0x40], rdx
xor r9d, r9d
and qword [rsp + 0x38], 0
xor r8d, r8d
and qword [rsp + 0x30], 0
mov rdx, rax
mov r10, qword [rcx]
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov qword [0x1800274f8], rax
call qword [r10 + 0x18]
lea rcx, [0x1800011e0]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [0x180027500], rax
add rsp, 0x58
ret