joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401b59c1
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
lea rcx, [0x140287df8]
jmp 0x1401b59c1
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
call fcn.1401b5a67
test rax, rax
je 0x1401b5956
mov rdi, rax
cmp rax, 1
jne 0x1401b598f
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
mov rax, qword [str.Lp__]
mov al, byte [rax]
mov ecx, 0x38
mov edx, 8
call fcn.140185ed0
test rax, rax
je 0x1401b59b1
mov rdi, rax
mov qword [rax], rbx
and qword [rax + 8], 0
mov ecx, dword [rbx + 0x18]
test ecx, ecx
je 0x1401b59a5
dec ecx
mov rdx, rdi
call fcn.14021230c
add rdi, 8
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp 0x1401b65f4
mov rcx, rbx
call fcn.140190580
mov ecx, eax
jmp 0x1401b5987
mov ecx, 8
mov edx, 0x38
call fcn.140003b50
int3
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
call fcn.1401b5a67
cmp rax, 2
jb 0x1401b59ea
cmp qword [rax + 8], 0
je 0x1401b59ea
add rax, 0x10
add rsp, 0x28
pop rdi
pop rsi
ret
mov rcx, rdi
mov rdx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp 0x1401b592c
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rsi, rcx
mov ebx, 2
mov bpl, 1
test rdx, rdx
je 0x1401b6667
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
movups xmm2, xmmword [rdx + 0x20]
movaps xmmword [rsp + 0x50], xmm2
and qword [rdx], 0
movaps xmmword [rsp + 0x40], xmm1
movaps xmmword [rsp + 0x30], xmm0
cmp qword [rsp + 0x30], 0
je 0x1401b665d
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
movups xmm0, xmmword [rsp + 0x48]
movaps xmmword [rsp + 0x60], xmm0
mov bpl, byte [rsp + 0x58]
mov ecx, dword [rsp + 0x59]
mov dword [rsp + 0x28], ecx
mov ecx, dword [rsp + 0x5c]
mov dword [rsp + 0x2b], ecx
jmp 0x1401b6669
lea rcx, [rsp + 0x30]
call fcn.1401b6748
xor eax, eax
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movups xmm2, xmmword [rsi + 0x20]
lea rcx, [rsp + 0x30]
movaps xmmword [rcx + 0x20], xmm2
movaps xmmword [rcx + 0x10], xmm1
movaps xmmword [rcx], xmm0
mov qword [rsi], 1
lea rdi, [rsi + 8]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rbx
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [rsi + 0x18], xmm0
mov byte [rsi + 0x28], bpl
mov eax, dword [rsp + 0x28]
mov edx, dword [rsp + 0x2b]
mov dword [rsi + 0x29], eax
mov dword [rsi + 0x2c], edx
call fcn.1401b6748
mov rax, rdi
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
ret

Function at 0x1401b5a67
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov rax, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x1401b5a80
dec ecx
add rsp, 0x28
jmp fcn.140212314
mov rcx, rax
call fcn.140190580
mov ecx, eax
jmp 0x1401b5a77

Function at 0x1401b66c3
Capabilities:
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rdx
mov rax, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x1401b66e4
dec ecx
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp fcn.14021230c
mov rcx, rax
call fcn.140190580
mov ecx, eax
jmp 0x1401b66d7
Function at 0x1401bf0e2
Capabilities:
Create process on windows

Disassembly:
mov r8, rdx
mov rdx, rcx
xor ecx, ecx
jmp 0x1401bf0dd
jmp 0x1401bf0e2
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xe8
mov rsi, r8
mov rdi, rdx
lea rdx, [rsp + 0x48]
and qword [rdx + 0x20], 0
mov ebx, ecx
and qword [rdx], 0
movabs r15, 0x8000000000000000
and qword [rdx + 0x10], 0
lea r14, [rsp + 0x70]
mov rcx, r14
mov r8, rdi
mov r9, rsi
call fcn.1401b757c
cmp qword [r14], r15
jne 0x1401bf140
lea rcx, [rsp + 0x30]
mov rdx, rdi
mov r8, rsi
call fcn.1401bf064
jmp 0x1401bf15f
lea rsi, [rsp + 0x70]
mov rdx, qword [rsi + 8]
mov r8, qword [rsi + 0x10]
lea rcx, [rsp + 0x30]
call fcn.1401bf064
mov rcx, rsi
call fcn.1400c5b90
test bl, bl
je 0x1401bf17c
lea rdx, str.Only_the_default_browser_is_supported_on_this_platform_right_nowA
mov r8d, 0x40
xor ecx, ecx
call fcn.1401bf37c
jmp 0x1401bf22e
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
add rcx, rax
lea rdx, [rsp + 0x70]
mov qword [rdx], rax
mov qword [rdx + 8], rcx
and word [rdx + 0x10], 0
lea rsi, [rsp + 0xd0]
mov rcx, rsi
call fcn.1401bec78
lea rdi, [rsp + 0x48]
mov rcx, rdi
mov rdx, rsi
call fcn.1401bf2ce
inc r15
cmp qword [rdi], r15
jne 0x1401bf211
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
xor ecx, ecx
mov edx, 6
call sub.ole32.dll_CoInitializeEx
mov ebp, eax
mov dword [rsp + 0x28], 1
and qword [rsp + 0x20], 0
lea rdx, str.open
xor ecx, ecx
mov r8, rsi
xor r9d, r9d
call sub.SHELL32.dll_ShellExecuteW
mov rbx, rax
test ebp, ebp
js 0x1401bf208
call sub.ole32.dll_CoUninitialize
cmp ebx, 0x20
jle 0x1401bf24e
xor ebx, ebx
jmp 0x1401bf25d
movups xmm0, xmmword [rsp + 0x48]
movups xmm1, xmmword [rsp + 0x58]
lea rdx, [rsp + 0x70]
movaps xmmword [rdx + 0x10], xmm1
movaps xmmword [rdx], xmm0
mov cl, 0x14
call fcn.1401bf420
mov rbx, rax
lea rcx, [rsp + 0x30]
call fcn.1400c5b90
mov rax, rbx
add rsp, 0xe8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
and word [rsi], 0
test rdi, rdi
je 0x1401bf231
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.140185f30
jmp 0x1401bf231
Function at 0x1401c69ef
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rax, rdx
mov rsi, rcx
add rdx, 8
cmp qword [rax], 0
je 0x1401c6a3a
cmp qword [rax + 0x38], 0xffffffffffffffff
mov r8, qword [rax + 0x48]
mov r9, qword [rax + 0x50]
mov rcx, qword [rax + 0x58]
mov rax, qword [rax + 0x60]
je 0x1401c6b2d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov byte [rsp + 0x30], 0
jmp 0x1401c6b3c
mov r11b, byte [rax + 0x1a]
mov r8, qword [rax + 8]
mov rcx, qword [rax + 0x48]
mov r9, qword [rax + 0x50]
mov bl, byte [rax + 0x18]
xor r10d, r10d
test r11b, r11b
jne 0x1401c6b64
mov edi, ebx
xor dil, 1
mov byte [rax + 0x18], dil
test r8, r8
je 0x1401c6a7f
cmp r8, r9
jae 0x1401c6a79
cmp byte [rcx + r8], 0xbf
jg 0x1401c6a7f
jmp 0x1401c6b77
jne 0x1401c6b77
cmp r8, r9
je 0x1401c6b46
movzx edi, byte [rcx + r8]
test dil, dil
jns 0x1401c6aeb
mov ebp, edi
and ebp, 0x1f
movzx r15d, byte [rcx + r8 + 1]
and r15d, 0x3f
cmp dil, 0xdf
jbe 0x1401c6ad8
movzx r14d, byte [rcx + r8 + 2]
shl r15d, 6
and r14d, 0x3f
or r14d, r15d
cmp dil, 0xf0
jb 0x1401c6ae2
movzx edi, byte [rcx + r8 + 3]
and ebp, 7
shl ebp, 0x12
shl r14d, 6
and edi, 0x3f
or edi, r14d
or edi, ebp
jmp 0x1401c6aeb
shl ebp, 6
or ebp, r15d
mov edi, ebp
jmp 0x1401c6aeb
shl ebp, 0xc
or r14d, ebp
mov edi, r14d
test bl, bl
jne 0x1401c6b53
cmp edi, 0x110000
je 0x1401c6b4a
mov ebx, 1
cmp edi, 0x80
jb 0x1401c6b20
mov ebx, 2
cmp edi, 0x800
jb 0x1401c6b20
cmp edi, 0x10000
mov ebx, 4
sbb rbx, 0
add r8, rbx
mov qword [rdx], r8
mov bl, 1
jmp 0x1401c6a50
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov byte [rsp + 0x30], 1
mov rcx, rsi
call fcn.1401c2867
jmp 0x1401c6b67
test bl, bl
jne 0x1401c6b56
mov byte [rax + 0x1a], 1
xor r10d, r10d
jmp 0x1401c6b64
mov r9, r8
mov qword [rsi + 8], r9
mov qword [rsi + 0x10], r9
mov r10d, 1
mov qword [rsi], r10
mov rax, rsi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop rsi
pop r15
ret
lea rax, str.Xu5_
mov qword [rsp + 0x20], rax
mov rdx, r9
call fcn.140017220
int3
Function at 0x1401d4c94
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rax, rdx
mov rsi, rcx
add rdx, 8
cmp qword [rax], 0
je 0x1401d4cdf
cmp qword [rax + 0x38], 0xffffffffffffffff
mov r8, qword [rax + 0x48]
mov r9, qword [rax + 0x50]
mov rcx, qword [rax + 0x58]
mov rax, qword [rax + 0x60]
je 0x1401d4dd2
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov byte [rsp + 0x30], 0
jmp 0x1401d4de1
mov r11b, byte [rax + 0x1a]
mov r8, qword [rax + 8]
mov rcx, qword [rax + 0x48]
mov r9, qword [rax + 0x50]
mov bl, byte [rax + 0x18]
xor r10d, r10d
test r11b, r11b
jne 0x1401d4e09
mov edi, ebx
xor dil, 1
mov byte [rax + 0x18], dil
test r8, r8
je 0x1401d4d24
cmp r8, r9
jae 0x1401d4d1e
cmp byte [rcx + r8], 0xbf
jg 0x1401d4d24
jmp 0x1401d4e1c
jne 0x1401d4e1c
cmp r8, r9
je 0x1401d4deb
movzx edi, byte [rcx + r8]
test dil, dil
jns 0x1401d4d90
mov ebp, edi
and ebp, 0x1f
movzx r15d, byte [rcx + r8 + 1]
and r15d, 0x3f
cmp dil, 0xdf
jbe 0x1401d4d7d
movzx r14d, byte [rcx + r8 + 2]
shl r15d, 6
and r14d, 0x3f
or r14d, r15d
cmp dil, 0xf0
jb 0x1401d4d87
movzx edi, byte [rcx + r8 + 3]
and ebp, 7
shl ebp, 0x12
shl r14d, 6
and edi, 0x3f
or edi, r14d
or edi, ebp
jmp 0x1401d4d90
shl ebp, 6
or ebp, r15d
mov edi, ebp
jmp 0x1401d4d90
shl ebp, 0xc
or r14d, ebp
mov edi, r14d
test bl, bl
jne 0x1401d4df8
cmp edi, 0x110000
je 0x1401d4def
mov ebx, 1
cmp edi, 0x80
jb 0x1401d4dc5
mov ebx, 2
cmp edi, 0x800
jb 0x1401d4dc5
cmp edi, 0x10000
mov ebx, 4
sbb rbx, 0
add r8, rbx
mov qword [rdx], r8
mov bl, 1
jmp 0x1401d4cf5
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov byte [rsp + 0x30], 1
mov rcx, rsi
call fcn.1401d15a9
jmp 0x1401d4e0c
test bl, bl
jne 0x1401d4dfb
mov byte [rax + 0x1a], 1
xor r10d, r10d
jmp 0x1401d4e09
mov r9, r8
mov qword [rsi + 8], r9
mov qword [rsi + 0x10], r9
mov r10d, 1
mov qword [rsi], r10
mov rax, rsi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea rax, [0x14035bac0]
mov qword [rsp + 0x20], rax
mov rdx, r9
call fcn.140017220
int3
Function at 0x1401e15a2
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rax, rdx
mov rsi, rcx
add rdx, 8
cmp qword [rax], 0
je 0x1401e15ed
cmp qword [rax + 0x38], 0xffffffffffffffff
mov r8, qword [rax + 0x48]
mov r9, qword [rax + 0x50]
mov rcx, qword [rax + 0x58]
mov rax, qword [rax + 0x60]
je 0x1401e16e0
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov byte [rsp + 0x30], 0
jmp 0x1401e16ef
mov r11b, byte [rax + 0x1a]
mov r8, qword [rax + 8]
mov rcx, qword [rax + 0x48]
mov r9, qword [rax + 0x50]
mov bl, byte [rax + 0x18]
xor r10d, r10d
test r11b, r11b
jne 0x1401e1717
mov edi, ebx
xor dil, 1
mov byte [rax + 0x18], dil
test r8, r8
je 0x1401e1632
cmp r8, r9
jae 0x1401e162c
cmp byte [rcx + r8], 0xbf
jg 0x1401e1632
jmp 0x1401e172a
jne 0x1401e172a
cmp r8, r9
je 0x1401e16f9
movzx edi, byte [rcx + r8]
test dil, dil
jns 0x1401e169e
mov ebp, edi
and ebp, 0x1f
movzx r15d, byte [rcx + r8 + 1]
and r15d, 0x3f
cmp dil, 0xdf
jbe 0x1401e168b
movzx r14d, byte [rcx + r8 + 2]
shl r15d, 6
and r14d, 0x3f
or r14d, r15d
cmp dil, 0xf0
jb 0x1401e1695
movzx edi, byte [rcx + r8 + 3]
and ebp, 7
shl ebp, 0x12
shl r14d, 6
and edi, 0x3f
or edi, r14d
or edi, ebp
jmp 0x1401e169e
shl ebp, 6
or ebp, r15d
mov edi, ebp
jmp 0x1401e169e
shl ebp, 0xc
or r14d, ebp
mov edi, r14d
test bl, bl
jne 0x1401e1706
cmp edi, 0x110000
je 0x1401e16fd
mov ebx, 1
cmp edi, 0x80
jb 0x1401e16d3
mov ebx, 2
cmp edi, 0x800
jb 0x1401e16d3
cmp edi, 0x10000
mov ebx, 4
sbb rbx, 0
add r8, rbx
mov qword [rdx], r8
mov bl, 1
jmp 0x1401e1603
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov byte [rsp + 0x30], 1
mov rcx, rsi
call fcn.1401dde73
jmp 0x1401e171a
test bl, bl
jne 0x1401e1709
mov byte [rax + 0x1a], 1
xor r10d, r10d
jmp 0x1401e1717
mov r9, r8
mov qword [rsi + 8], r9
mov qword [rsi + 0x10], r9
mov r10d, 1
mov qword [rsi], r10
mov rax, rsi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea rax, [0x14035f000]
mov qword [rsp + 0x20], rax
mov rdx, r9
call fcn.140017220
int3
Function at 0x1401edcff
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rax, rdx
mov rsi, rcx
add rdx, 8
cmp qword [rax], 0
je 0x1401edd4a
cmp qword [rax + 0x38], 0xffffffffffffffff
mov r8, qword [rax + 0x48]
mov r9, qword [rax + 0x50]
mov rcx, qword [rax + 0x58]
mov rax, qword [rax + 0x60]
je 0x1401ede3d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov byte [rsp + 0x30], 0
jmp 0x1401ede4c
mov r11b, byte [rax + 0x1a]
mov r8, qword [rax + 8]
mov rcx, qword [rax + 0x48]
mov r9, qword [rax + 0x50]
mov bl, byte [rax + 0x18]
xor r10d, r10d
test r11b, r11b
jne 0x1401ede74
mov edi, ebx
xor dil, 1
mov byte [rax + 0x18], dil
test r8, r8
je 0x1401edd8f
cmp r8, r9
jae 0x1401edd89
cmp byte [rcx + r8], 0xbf
jg 0x1401edd8f
jmp 0x1401ede87
jne 0x1401ede87
cmp r8, r9
je 0x1401ede56
movzx edi, byte [rcx + r8]
test dil, dil
jns 0x1401eddfb
mov ebp, edi
and ebp, 0x1f
movzx r15d, byte [rcx + r8 + 1]
and r15d, 0x3f
cmp dil, 0xdf
jbe 0x1401edde8
movzx r14d, byte [rcx + r8 + 2]
shl r15d, 6
and r14d, 0x3f
or r14d, r15d
cmp dil, 0xf0
jb 0x1401eddf2
movzx edi, byte [rcx + r8 + 3]
and ebp, 7
shl ebp, 0x12
shl r14d, 6
and edi, 0x3f
or edi, r14d
or edi, ebp
jmp 0x1401eddfb
shl ebp, 6
or ebp, r15d
mov edi, ebp
jmp 0x1401eddfb
shl ebp, 0xc
or r14d, ebp
mov edi, r14d
test bl, bl
jne 0x1401ede63
cmp edi, 0x110000
je 0x1401ede5a
mov ebx, 1
cmp edi, 0x80
jb 0x1401ede30
mov ebx, 2
cmp edi, 0x800
jb 0x1401ede30
cmp edi, 0x10000
mov ebx, 4
sbb rbx, 0
add r8, rbx
mov qword [rdx], r8
mov bl, 1
jmp 0x1401edd60
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov byte [rsp + 0x30], 1
mov rcx, rsi
call fcn.1401ea7ee
jmp 0x1401ede77
test bl, bl
jne 0x1401ede66
mov byte [rax + 0x1a], 1
xor r10d, r10d
jmp 0x1401ede74
mov r9, r8
mov qword [rsi + 8], r9
mov qword [rsi + 0x10], r9
mov r10d, 1
mov qword [rsi], r10
mov rax, rsi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea rax, [0x140362528]
mov qword [rsp + 0x20], rax
mov rdx, r9
call fcn.140017220
int3
Function at 0x14020ffdb
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, rcx
aeskeygenassist xmm0, xmmword [rdx], 2
movdqa xmmword [rcx], xmm0
ret

Function at 0x140221e50
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.140212ec0
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.140212ec0
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 0x140221ec0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x1403c7c34]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x140222070
mov rax, qword [0x1403c7c38]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x140221f0c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140221f97
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x140221ef0
mov rcx, r12
call fcn.140222970
mov rbp, rax
test rax, rax
je 0x1402220cd
mov rax, qword [0x1403c7c38]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.140222aa0
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1403c7c38]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1402220b2
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140221f90
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140222020
add dword [0x1403c7c34], 1
cmp ebx, 8
jae 0x140221fc8
test bl, 4
jne 0x140222080
test ebx, ebx
je 0x140221fb9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x1402220a0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x140221fb9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x140221ffa
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
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 rdi, qword [0x1403c7c38]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140221f90
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140221e50
xor edi, edi
jmp 0x140221f17
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x140221fb9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x140221fb9
mov rax, qword [0x1403c7c38]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.140221e50
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140221e50
nop
nop dword [rax]
Function at 0x1402225e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1403c7ca0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1403c7c80]
test rbx, rbx
je 0x140222634
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 0x14022262b
test r12, r12
je 0x14022262b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140222610
lea rcx, [0x1403c7ca0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140222970
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x14037a9c0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x1402229e9
mov rcx, r10
call fcn.140222840
test eax, eax
je 0x1402229e9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x1402229e6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x1402229dd
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x1402229e9
add r8, 0x28
cmp r8, r9
jne 0x1402229c8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x140223750
Capabilities:
Authenticate hmac

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov eax, dword [rcx + 0x18]
add eax, eax
mov r13, rdx
mov edx, dword [rcx + 0x20]
mov rbx, rcx
mov esi, r8d
lea rcx, [rax + rdx + 0x18]
mov rax, qword [0x14037a0e0]
call qword [rax]
mov r12, rax
test rax, rax
je 0x140223863
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [r12 + 0x10], rax
cmp dword [rbx + 0x1c], esi
jae 0x1402237cb
call qword [rbx]
mov r8d, esi
mov rdx, r13
mov rcx, qword [r12 + 8]
call qword [rbx + 8]
mov r13d, dword [rbx + 0x18]
add r13, qword [r12 + 0x10]
mov rdx, qword [r12 + 8]
mov rcx, r13
call qword [rbx + 0x10]
mov esi, dword [rbx + 0x20]
mov rcx, qword [r12 + 8]
xor edi, edi
lea r14, [rsp + 0x2f]
call qword [rbx]
mov rcx, qword [r12 + 0x10]
call qword [rbx]
mov ebp, esi
cmp rbp, rdi
jbe 0x140223826
mov al, byte [r13 + rdi]
mov rcx, qword [r12 + 8]
mov r8d, 1
mov rdx, r14
xor eax, 0x36
mov byte [rsp + 0x2f], al
call qword [rbx + 8]
mov al, byte [r13 + rdi]
mov rcx, qword [r12 + 0x10]
mov rdx, r14
mov r8d, 1
inc rdi
xor eax, 0x5c
mov byte [rsp + 0x2f], al
call qword [rbx + 8]
jmp 0x1402237e0
lea rsi, [0x14037f4c0]
lea rdi, [0x14037f4d0]
mov eax, dword [rbx + 0x1c]
cmp rax, rbp
jbe 0x140223863
mov rcx, qword [r12 + 8]
mov r8d, 1
mov rdx, rsi
inc rbp
call qword [rbx + 8]
mov rcx, qword [r12 + 0x10]
mov r8d, 1
mov rdx, rdi
call qword [rbx + 8]
jmp 0x140223834
mov rax, r12
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x14022fb50
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0x30
mov r12, rcx
mov r13d, edx
mov r14, r8
mov r15, r9
test byte [rcx + 0x986], 0x20
je 0x14022fc20
cmp qword [rcx + 0x268], 0
je 0x14022fbcd
call fcn.14023a690
mov rcx, r12
mov edx, 1
mov ebx, eax
call fcn.140241430
mov edx, r13d
mov rcx, r12
mov r9, r15
mov rax, qword [r12 + 0x1e0]
mov r8, r14
mov qword [rsp + 0x20], rax
call qword [r12 + 0x268]
movzx edx, bl
mov rcx, r12
add rsp, 0x30
pop rbx
pop r12
pop r13
pop r14
pop r15
jmp fcn.140241430
cmp edx, 2
ja 0x14022fc20
mov ecx, edx
mov r9, qword [r12 + 0x1d8]
mov edx, 2
lea r13, [0x140384e60]
lea rcx, [rcx + rcx*2]
mov r8d, 1
add rcx, r13
call sub.msvcrt.dll_fwrite
mov r9, qword [r12 + 0x1d8]
mov rdx, r15
mov rcx, r14
mov r8d, 1
add rsp, 0x30
pop rbx
pop r12
pop r13
pop r14
pop r15
jmp sub.msvcrt.dll_fwrite
add rsp, 0x30
pop rbx
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140232ff0
Capabilities:
Resolve dns

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov qword [rsp + 0x98], r9
mov qword [r9], 0
lea r9, [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r12d, eax
test eax, eax
jne 0x14023314c
mov rbx, qword [rsp + 0x28]
xor r13d, r13d
xor r15d, r15d
test rbx, rbx
je 0x140233109
mov rcx, qword [rbx + 0x18]
xor ebp, ebp
test rcx, rcx
je 0x14023304d
call sub.msvcrt.dll_strlen
lea rbp, [rax + 1]
mov eax, dword [rbx + 4]
cmp eax, 2
je 0x140233065
mov r14d, 0x1c
cmp eax, 0x17
je 0x14023306b
jmp 0x1402330fa
mov r14d, 0x10
cmp qword [rbx + 0x20], 0
je 0x1402330fa
mov rax, qword [rbx + 0x10]
cmp rax, r14
jb 0x1402330fa
test rax, rax
je 0x1402330fa
mov rax, qword [0x14037a0e0]
lea rcx, [r14 + rbp + 0x30]
call qword [rax]
test rax, rax
je 0x140233103
mov edx, dword [rbx]
mov rsi, qword [rbx + 0x20]
mov rcx, r14
mov dword [rax], edx
mov edx, dword [rbx + 4]
mov dword [rax + 4], edx
mov edx, dword [rbx + 8]
mov dword [rax + 8], edx
mov edx, dword [rbx + 0xc]
mov dword [rax + 0x10], r14d
mov dword [rax + 0xc], edx
lea rdx, [rax + 0x30]
mov qword [rax + 0x18], 0
mov rdi, rdx
mov qword [rax + 0x28], 0
mov qword [rax + 0x20], rdx
rep movsb byte [rdi], byte [rsi]
test rbp, rbp
je 0x1402330e7
mov qword [rax + 0x18], rdi
mov rsi, qword [rbx + 0x18]
mov rcx, rbp
rep movsb byte [rdi], byte [rsi]
test r15, r15
cmove r15, rax
test r13, r13
je 0x1402330f7
mov qword [r13 + 0x28], rax
mov r13, rax
mov rbx, qword [rbx + 0x28]
jmp 0x140233030
mov r12d, 8
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x140233119
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x14023312b
mov rcx, r15
xor r15d, r15d
call fcn.140232e20
jmp 0x140233141
test r15, r15
jne 0x140233141
mov ecx, 0x2af9
mov r12d, 0x2af9
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rax, qword [rsp + 0x98]
mov qword [rax], r15
mov eax, r12d
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret