joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140067630
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
cmp byte [rcx + 0xf1e], 0
movsxd r10, r9d
je 0x140067754
cmp r8d, 0xff
jne 0x140067691
lea eax, [r10 - 0xec]
cmp eax, 0x13
ja 0x14006767b
lea r8, [0x140000000]
mov r9, qword [r8 + r10*8 + 0x984e0]
mov r8, rdx
lea rdx, str._s_IAC__s_n
add rsp, 0x38
jmp fcn.140044060
mov r8, rdx
mov r9d, r10d
lea rdx, str._s_IAC__d_n
add rsp, 0x38
jmp fcn.140044060
cmp r8d, 0xfb
jne 0x1400676a3
lea r9, str.WILL
jmp 0x1400676e1
cmp r8d, 0xfc
jne 0x1400676b5
lea r9, str.WONT
jmp 0x1400676e1
cmp r8d, 0xfd
jne 0x1400676c7
lea r9, [0x140098f04]
jmp 0x1400676e1
xor r9d, r9d
lea rax, str.DONT
cmp r8d, 0xfe
cmove r9, rax
test r9, r9
je 0x14006773d
cmp r10d, 0x27
jg 0x140067714
lea r8, [0x140000000]
mov r8, qword [r8 + r10*8 + 0x98b00]
test r8, r8
jne 0x140067724
mov r8, rdx
mov dword [rsp + 0x20], r10d
lea rdx, str._s__s__d_n
call fcn.140044060
add rsp, 0x38
ret
cmp r10d, 0xff
jne 0x1400676fb
lea r8, str.EXOPL
mov qword [rsp + 0x20], r8
mov r8, rdx
lea rdx, str._s__s__s_n
call fcn.140044060
add rsp, 0x38
ret
mov r9d, r8d
mov dword [rsp + 0x20], r10d
mov r8, rdx
lea rdx, str._s__d__d_n
call fcn.140044060
add rsp, 0x38
ret

Function at 0x140067aa0
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x10], 0xff
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x4c0]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140067aff
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140043ee0
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.140067630
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140067cb0
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x140067e58
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x140067d15
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x140067d15
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140067d15
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x140067d4c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x140067da2
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140067da2
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140067da2
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140067da2
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140067da2
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.140067760
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x140067e04
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140043ee0
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.140067b30
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140067e50
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140043ee0
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1400695c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1400c71c0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x140069655
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x1400696b6
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.140043ee0
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400870c0
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x140069771
sub ecx, 1
je 0x1400697e4
sub ecx, 1
je 0x140069720
cmp ecx, 1
je 0x140069703
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x140096960]
call fcn.140043ee0
jmp 0x1400697e4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1400692f0
test eax, eax
je 0x1400697e4
jmp 0x14006968a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x1400697e4
sub rax, rsi
cmp rax, rbp
jae 0x1400697e4
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.140044060
jmp 0x1400697e4
cmp r8d, 4
jle 0x1400697e4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x1400697e4
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.140043e00
mov esi, eax
test eax, eax
je 0x1400697c3
mov edx, 5
mov rcx, rbx
call fcn.14006a2b0
mov eax, esi
jmp 0x14006968a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1400526e0
mov rcx, r14
call fcn.1400529c0
test eax, eax
je 0x140069688
mov edx, 5
mov rcx, rbx
call fcn.14006a2b0
mov eax, Ordinal_46
jmp 0x14006968a
Function at 0x14007c580
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x14007c5c2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x14007c609
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x14007c662
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x14007c620
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14007c6a3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14009c0ea]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14009c0eb]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14007c670
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x140083be0
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
mov rdi, rdx
mov rbx, rcx
call fcn.14007df50
lea rax, [0x1400c9bd8]
cmp qword [0x1400c9bf0], 0xf
cmova rax, qword [0x1400c9bd8]
xor ebp, ebp
mov qword [0x1400c9be8], rbp
mov byte [rax], bpl
lea rax, [0x1400c9bf8]
cmp qword [0x1400c9c10], 0xf
cmova rax, qword [0x1400c9bf8]
mov qword [0x1400c9c08], rbp
mov byte [rax], bpl
lea rax, [0x1400c9c18]
cmp qword [0x1400c9c30], 0xf
cmova rax, qword [0x1400c9c18]
mov qword [0x1400c9c28], rbp
mov byte [rax], bpl
lea rax, [0x1400c9c38]
cmp qword [0x1400c9c50], 0xf
cmova rax, qword [0x1400c9c38]
mov qword [0x1400c9c48], rbp
mov byte [rax], bpl
lea rax, [0x1400c9c58]
cmp qword [0x1400c9c70], 0xf
cmova rax, qword [0x1400c9c58]
mov qword [0x1400c9c68], rbp
mov byte [rax], bpl
lea rax, [0x1400c9c78]
cmp qword [0x1400c9c90], 0xf
cmova rax, qword [0x1400c9c78]
mov qword [0x1400c9c88], rbp
mov byte [rax], bpl
lea rax, [0x1400c9c98]
cmp qword [0x1400c9cb0], 0xf
cmova rax, qword [0x1400c9c98]
mov qword [0x1400c9ca8], rbp
mov byte [rax], bpl
lea rax, [0x1400c9cb8]
cmp qword [0x1400c9cd0], 0xf
cmova rax, qword [0x1400c9cb8]
mov qword [0x1400c9cc8], rbp
mov byte [rax], bpl
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
lea r14, [rsp + 0x48]
movabs rcx, 0xff00ff00ff00ff00
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], r14
mov rsi, qword [r14]
mov rax, rsi
xor rax, rcx
mov qword [rsp + 0x20], rax
mov qword [r14], rbp
lea ecx, [rbp + 1]
call fcn.1400871b0
mov qword [rbx + 0x10], rax
lea ecx, [rbp + 1]
call fcn.1400871b0
mov qword [rbx + 0x18], rax
lea ecx, [rbp + 1]
call fcn.1400871b0
mov qword [rbx + 0x20], rax
lea ecx, [rbp + 1]
call fcn.1400871b0
mov qword [rbx + 8], rax
lea ecx, [rbp + 1]
call fcn.1400871b0
mov qword [rbx], rax
lea ecx, [rbp + 1]
call fcn.1400871b0
mov qword [rbx + 0x28], rax
cmp byte [rbx + 0x30], bpl
je 0x140083d9f
mov rcx, rax
call fcn.140080d60
mov rcx, qword [rbx + 0x28]
call fcn.140080ff0
cmp byte [rbx + 0x31], 0
je 0x140083dcf
lea r9, [rsp + 0x48]
mov r8, qword [r9]
mov qword [r9], rbp
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rdx, qword [rcx + 0x10]
mov eax, dword [rdx + 0x30]
add eax, 0x100000
mov dword [rdx + 0x40], eax
mov qword [r9], r8
movups xmm0, xmmword [rbx]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rdi + 0x10], xmm1
movups xmm0, xmmword [rbx + 0x20]
movups xmmword [rdi + 0x20], xmm0
movups xmm1, xmmword [rbx + 0x30]
movups xmmword [rdi + 0x30], xmm1
mov qword [r14], rsi
mov rax, rdi
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 0x140085080
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov rax, qword [0x1400c71c0]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx + 0x10]
mov rsi, qword [rax]
mov r11, rsi
mov r9, qword [r11 + 0x30]
xor r14d, r14d
movsxd rax, dword [r9 + 0x3c]
mov ebx, dword [rax + r9 + 0x88]
add rbx, r9
cmp rbx, r9
je 0x140085138
mov r8d, dword [rbx + 0x18]
test r8d, r8d
je 0x140085138
mov edi, dword [rbx + 0x20]
nop word [rax + rax]
dec r8d
mov edx, 0x811c9dc5
lea rax, [rdi + r8*4]
mov eax, dword [rax + r9]
add rax, r9
movzx ecx, byte [rax]
inc rax
test cl, cl
je 0x140085133
nop dword [rax]
movsx ecx, cl
lea rax, [rax + 1]
xor ecx, edx
imul edx, ecx, 0x1000193
movzx ecx, byte [rax - 1]
test cl, cl
jne 0x140085110
cmp edx, 0x4cfe97c1
je 0x1400851fb
test r8d, r8d
jne 0x1400850f0
mov rax, qword [r11]
mov r11, rax
cmp rax, rsi
je 0x14008514d
cmp qword [rax + 0x30], r14
jne 0x1400850c0
mov rbp, r14
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx + 0x10]
mov rsi, qword [rax]
mov r11, rsi
nop word [rax + rax]
mov r9, qword [r11 + 0x30]
movsxd rax, dword [r9 + 0x3c]
mov ebx, dword [rax + r9 + 0x88]
add rbx, r9
cmp rbx, r9
je 0x1400851e4
mov r8d, dword [rbx + 0x18]
test r8d, r8d
je 0x1400851e4
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r8d
mov edx, 0x811c9dc5
lea rax, [rdi + r8*4]
mov ecx, dword [rax + r9]
add rcx, r9
movzx eax, byte [rcx]
inc rcx
test al, al
je 0x1400851df
nop dword [rax]
movsx eax, al
lea rcx, [rcx + 1]
xor eax, edx
imul edx, eax, 0x1000193
movzx eax, byte [rcx - 1]
test al, al
jne 0x1400851c0
cmp edx, 0x6dd8a845
je 0x140085217
test r8d, r8d
jne 0x1400851a0
mov rax, qword [r11]
mov r11, rax
cmp rax, rsi
je 0x14008522f
cmp qword [rax + 0x30], r14
jne 0x140085170
jmp 0x14008522f
mov ecx, dword [rbx + 0x24]
add rcx, r9
movzx edx, word [rcx + r8*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r9
mov ebp, dword [rcx + rdx*4]
add rbp, r9
jmp 0x140085150
mov ecx, dword [rbx + 0x24]
add rcx, r9
movzx edx, word [rcx + r8*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r9
mov r14d, dword [rcx + rdx*4]
add r14, r9
call r14
lea rdx, [rsp + 0x20]
mov rcx, rax
call rbp
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400870c0
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x140086a04
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140086a3e
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140086a43
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140086a8c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x140086a8c
dec r8
sub rdx, 1
jne 0x140086a72
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140087f2c
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
lea rax, str.Until_next_time__guys.
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
add rsp, 0x38
ret
Function at 0x1400025f8
Capabilities:
Receive http response
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x7f60]
mov eax, 0x8060
call fcn.140014a90
sub rsp, rax
mov rax, qword [0x140022008]
xor rax, rsp
mov qword [rbp + 0x7f50], rax
xor ebx, ebx
mov r15, rdx
and qword [rsp + 0x30], rbx
mov r14d, r8d
and dword [rsp + 0x28], ebx
mov r12, rcx
and dword [rsp + 0x40], ebx
xor r9d, r9d
and dword [rsp + 0x44], ebx
xor r8d, r8d
and dword [rsp + 0x48], ebx
mov edx, 0x40000000
mov rcx, r15
mov dword [rsp + 0x20], 2
xor esi, esi
call fcn.14000216c
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140002683
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x140002716
and dword [rsp + 0x40], ebx
lea rdx, [rsp + 0x40]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x140002708
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x140002708
mov ecx, 0x8000
lea r9, [rsp + 0x44]
cmp eax, ecx
lea rdx, [rsp + 0x50]
mov r8d, ecx
mov rcx, r12
cmovb r8d, eax
mov dword [rsp + 0x40], r8d
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x140002708
mov r8d, dword [rsp + 0x44]
lea r9, [rsp + 0x48]
and qword [rsp + 0x20], rbx
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140002700
mov eax, dword [rsp + 0x44]
cmp eax, dword [rsp + 0x48]
jne 0x140002700
add esi, eax
cmp dword [rsp + 0x40], ebx
jbe 0x140002708
jmp 0x140002683
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test rdi, rdi
je 0x140002716
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x14000272a
cmp r14d, 0xffffffff
je 0x140002732
cmp r14d, esi
je 0x140002732
mov ebx, 0xfeb0
mov rcx, r15
call fcn.1400021d0
mov eax, ebx
mov rcx, qword [rbp + 0x7f50]
xor rcx, rsp
call fcn.140003b50
lea r11, [rsp + 0x8060]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14000a0ac
Capabilities:
Parse pe header

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, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x140009e80
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140009e80
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140009e80
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140009e80
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140009e80
cmp dword [rcx + 0x84], 0xe
jbe 0x140009e80
cmp dword [rcx + 0xf8], esi
je 0x140009e80
mov ecx, r14d
call fcn.140009fc8
mov ecx, 2
call fcn.14000d7b4
nop
cmp byte [0x140023290], 0
jne 0x140009f4a
mov r15d, 1
mov eax, r15d
xchg dword [0x140023280], eax
test ebx, ebx
jne 0x140009ef3
mov rdi, qword [0x140022008]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140023288]
cmp rcx, rax
je 0x140009eea
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140004bd4]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1400234d0]
jmp 0x140009eff
cmp ebx, r15d
jne 0x140009f05
lea rcx, [0x1400234e8]
call fcn.14000ab3c
nop
test ebx, ebx
jne 0x140009f1c
lea rdx, [0x140016400]
lea rcx, [0x1400163e0]
call fcn.14000ae08
lea rdx, [0x140016410]
lea rcx, [0x140016408]
call fcn.14000ae08
movzx eax, byte [0x140023290]
test esi, esi
cmove eax, r15d
mov byte [0x140023290], al
jmp 0x140009f4a
mov ecx, 2
call fcn.14000d808
test esi, esi
jne 0x140009f61
mov ecx, r14d
call fcn.140009f7c
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x140009e10
Function at 0x140022d7d
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea rsp, [rsp + 3]
mov byte [rsp + 3], al
lea rsp, [rsp]
call fcn.140022837
mov r10b, bl
bswap esi
call int.140022e93
push rdi
mov ah, 0x30
cmpsb byte [rsi], byte [rdi]
sal dword [rax], 0xf2
lodsd eax, dword [rsi]
mov esp, 0x4481168f
mov edi, edx
Function at 0x1400020e2
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
mov rsi, rcx
mov rbx, rdx
test rdx, rdx
je 0x140002101
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp 0x14000dc68
jmp qword [sym.imp.msvcrt.dll_fflush]

Function at 0x140004d1e
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov qword [rsp + 0x28], rdx
mov rsi, rcx
mov ecx, 2
call qword [fcn.14000d6a0]
mov r8, qword [rsp + 0x28]
mov rcx, rsi
mov edx, 1
mov rbx, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
add rsp, 0x38
pop rbx
pop rsi
jmp 0x14000dc68

Function at 0x140004d5d
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
cmp qword [0x1400140f0], 0
jne 0x140004d75
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.140004d1e
lea rsi, [rsp + 0x20]
mov rdx, rcx
mov rcx, rsi
call fcn.140004c97
mov rbx, qword [rsp + 0x28]
mov rcx, rsi
call qword [0x1400140f0]
test rbx, rbx
je 0x140004da6
test byte [rbx + 7], 0x40
jne 0x140004da6
mov rcx, rbx
call fcn.140003143
lea rcx, [0x14000e2a0]
call fcn.140008480
cmp byte [rax], 0
je 0x140004dde
mov byte [rax], 0
lea rcx, [0x14000e1a0]
call fcn.140008480
xor r8d, r8d
mov rcx, rax
mov rax, qword [rax]
mov rdx, qword [rax + 0x38]
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.1400036a8
add rsp, 0x38
pop rbx
pop rsi
ret

Function at 0x140007550
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.14000d6a0
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.14000d6a0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]