joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14027c3c0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
mov rax, qword [rcx + 0x1e0]
cmp dword [rax + 0x20], 0
je 0x14027c3f8
mov r8d, reloc.WS2_32.dll_listen
mov dword [rbx + 0x850], 0xd
mov dl, 1
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14027c560
cmp byte [rcx + 0xe9e], 0
je 0x14027c410
xor edx, edx
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14027d5d0
cmp byte [rcx + 0xea1], 0
je 0x14027c4b1
mov r8, qword [rbx + 0x820]
test r8, r8
jne 0x14027c46b
mov r8, qword [rcx + 0xc00]
test r8, r8
jne 0x14027c44e
cmp byte [rcx + 0xe9d], 0
lea rax, str.NLST
lea r8, str.LIST
cmovne r8, rax
lea rcx, [rbx + 0x798]
lea rdx, str.PRET__s
call fcn.14016d4cc
test eax, eax
je 0x14027c4a1
add rsp, 0x20
pop rbx
ret
cmp byte [rcx + 0xead], 0
lea rcx, [rbx + 0x798]
je 0x14027c491
lea rdx, str.PRET_STOR__s
call fcn.14016d4cc
test eax, eax
je 0x14027c4a1
add rsp, 0x20
pop rbx
ret
lea rdx, str.PRET_RETR__s
call fcn.14016d4cc
test eax, eax
jne 0x14027c4be
mov dword [rbx + 0x850], 0x1d
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14027d520
add rsp, 0x20
pop rbx
ret

Function at 0x14027c8f0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
mov rdx, qword [rax + 0x1e0]
cmp dword [rdx + 0x20], 0
je 0x14027c93d
cmp qword [rcx + 0x820], 0
je 0x14027c93d
add rcx, 0x798
lea rdx, str.REST__d
xor r8d, r8d
call fcn.14016d4cc
test eax, eax
jne 0x14027c947
mov dword [rbx + 0x850], 0x1a
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.14027c3c0
add rsp, 0x20
pop rbx
ret

Function at 0x14027cca0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
add rcx, 0x798
mov rax, qword [rbx]
mov rdx, qword [rax + 0x1e0]
cmp dword [rdx + 0x20], 1
jne 0x14027ccec
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x14027ccec
lea rdx, str.SIZE__s
call fcn.14016d4cc
test eax, eax
jne 0x14027ccf9
mov dword [rbx + 0x850], 0x17
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14027c8f0
add rsp, 0x20
pop rbx
ret

Function at 0x14027cfe0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov r9, qword [rcx]
cmp byte [r9 + 0xeac], 0
je 0x14027d038
cmp qword [rcx + 0x820], 0
je 0x14027d038
cmp byte [r9 + 0xe9b], 0
mov eax, 0x41
mov edx, 0x49
cmovne edx, eax
movsx eax, byte [rcx + 0x840]
cmp eax, edx
je 0x14027d038
mov rax, qword [r9 + 0x1e0]
mov r8d, reloc.WS2_32.dll_send
mov dword [rax + 0x20], 1
movzx edx, byte [r9 + 0xe9b]
jmp fcn.14027a590
jmp fcn.14027cca0
Function at 0x14027d060
Capabilities:
Check http status code

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
lea eax, [rdx - 0xc8]
mov rdi, rcx
mov rcx, qword [rcx]
mov esi, r8d
cmp eax, 0x64
jb 0x14027d095
lea rdx, str.Couldnt_set_desired_mode
call fcn.14017497f
lea eax, [rbx + 0x11]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
cmp edx, 0xc8
je 0x14027d0ac
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200_n
call fcn.140172ff8
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r14
cmp esi, 0x13
jne 0x14027d0c8
mov rcx, rdi
call fcn.14027cca0
jmp 0x14027d200
cmp esi, 0x14
jne 0x14027d1e2
mov rsi, qword [rdi]
mov rbp, rbx
cmp dword [rsi + 0xb98], 2
jne 0x14027d14a
mov rax, qword [rsi + 0x1e0]
mov rdx, qword [rax + 0x10]
test rdx, rdx
je 0x14027d14a
mov byte [rsp + 0x28], 1
lea r9, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rcx, rsi
mov qword [rsp + 0x50], rbx
call fcn.14016efa2
test eax, eax
jne 0x14027d200
mov rcx, qword [rsp + 0x50]
lea edx, [rax + 0x2f]
call fcn.140174b14
test rax, rax
je 0x14027d13f
mov rbp, qword [rsp + 0x50]
mov ecx, 1
sub rax, rbp
cmovne rcx, rax
mov byte [rcx + rbp], bl
jmp 0x14027d14a
mov rcx, qword [rsp + 0x50]
call qword [fcn.14016e1c9]
mov rdx, qword [rsi + 0xc00]
test rdx, rdx
jne 0x14027d16e
cmp byte [rsi + 0xe9d], bl
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x140473406]
test rbp, rbp
mov r9, r8
lea rax, [0x140476e5c]
cmovne r9, rbp
lea rcx, [0x140485f18]
cmovne r8, rax
call fcn.14016e633
mov rcx, rbp
mov r14, rax
call qword [fcn.14016e1c9]
test r14, r14
jne 0x14027d1ad
lea ebx, [r14 + 0x1b]
jmp 0x14027d202
lea rcx, [rdi + 0x798]
mov r8, r14
lea rdx, [0x140472d44]
call fcn.14016d4cc
mov rcx, r14
mov esi, eax
call qword [fcn.14016e1c9]
test esi, esi
je 0x14027d1d6
mov ebx, esi
jmp 0x14027d202
mov dword [rdi + 0x850], 0x1f
jmp 0x14027d202
cmp esi, 0x15
jne 0x14027d1ed
lea r8d, [rsi - 8]
jmp 0x14027d1f6
cmp esi, 0x16
jne 0x14027d202
lea r8d, [rsi - 8]
mov dl, 1
mov rcx, rdi
call fcn.14027c560
mov ebx, eax
mov r14, qword [rsp + 0x60]
mov eax, ebx
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x140285dc0
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 + 0x258]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140285e1f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14017497f
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.1402853a0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
cmp edx, 0x1f
jne 0x1402861f8
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 0x1402860b5
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x1402860b5
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1402860b5
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 0x1402860ec
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x140286142
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140286142
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140286142
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140286142
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140286142
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.140285520
mov rcx, qword [r14 + 0x258]
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 0x1402861a4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14017497f
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.140285e70
mov rcx, qword [r14 + 0x258]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1402861f0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14017497f
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x140288430
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1404ff3c0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rdi, qword [rcx + 0x798]
lea rax, [rsp + 0x30]
mov rsi, 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 [rdi + 0x15c]
mov rdx, qword [rdi + 0x168]
add r8d, 4
mov rcx, qword [rdi + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rdi + 0x150], 0
mov dword [rdi + 0x154], eax
jne 0x1402884c5
movsxd r8, dword [rsp + 0x30]
lea rcx, [rdi + 0xd0]
lea rdx, [rsp + 0x40]
call fcn.14016f425
mov eax, dword [rsp + 0x30]
mov dword [rdi + 0x150], eax
mov r8d, dword [rdi + 0x154]
mov qword [rsp + 0xf8], rbx
mov qword [rsp + 0x100], rbp
cmp r8d, 4
jge 0x140288526
lea rdx, str.Received_too_short_packet
mov rcx, rsi
call fcn.14017497f
mov dword [rdi + 0xc], 7
xor eax, eax
mov rbp, qword [rsp + 0x100]
mov rbx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14016f3bc
add rsp, 0xd0
pop r14
pop rdi
pop rsi
ret
mov rdx, qword [rdi + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rdi + 0xc], ecx
dec ecx
cmp ecx, 5
ja case.0x14028855c.1
movsxd rax, ecx
lea r9, [0x140000000]
mov ecx, dword [r9 + rax*4 + 0x288670]
add rcx, r9
jmp rcx
cmp r8d, 4
jle case.0x14028855c.4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rdi + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x14028855c.4
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.14016f902
mov ebx, eax
test eax, eax
je 0x1402885b8
mov edx, 5
mov rcx, rdi
call fcn.140289400
mov eax, ebx
jmp 0x1402884fa
mov eax, dword [rdi + 0x154]
mov rcx, rsi
sub eax, 4
cdqe
add qword [rsi + 0xf8], rax
mov rdx, qword [rsi + 0xf8]
call fcn.140171153
jmp case.0x14028855c.4
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbx, eax
lea rbp, [rdx + 4]
movzx eax, byte [rdx + 3]
mov rdx, rbx
shl ecx, 8
or ecx, eax
mov dword [rdi + 8], ecx
mov rcx, rbp
call fcn.140287d00
cmp rax, rbx
jae case.0x14028855c.4
mov r8, rbp
lea rdx, str.TFTP_error:__s_n
mov rcx, rsi
call fcn.140172ff8
jmp case.0x14028855c.4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rdi
call fcn.140288040
test eax, eax
je case.0x14028855c.4
jmp 0x1402884fa
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rsi
lea rdx, [0x140472d44]
call fcn.14017497f
mov rcx, r14
call fcn.140172f17
test eax, eax
je 0x1402884f8
mov edx, 5
mov rcx, rdi
call fcn.140289400
mov eax, Ordinal_45
jmp 0x1402884fa
Function at 0x1402a0890
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1404ff3c0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, r8
mov dword [rbp - 0x40], 8
mov rbx, rdx
mov dword [rsp + 0x20], 0xf0000000
mov rsi, rcx
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x38]
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1402a09c7
movzx edx, byte [rdi + 1]
movzx ecx, byte [rdi]
movzx eax, dl
movzx r8d, byte [rdi + 5]
shr al, 1
mov byte [rbp - 0x1c], cl
shl cl, 7
or al, cl
shl dl, 6
movzx ecx, byte [rdi + 2]
mov byte [rbp - 0x1b], al
movzx eax, cl
shr al, 2
or al, dl
shl cl, 5
movzx edx, byte [rdi + 3]
mov byte [rbp - 0x1a], al
movzx eax, dl
shr al, 3
or al, cl
shl dl, 4
movzx ecx, byte [rdi + 4]
mov byte [rbp - 0x19], al
movzx eax, cl
shr al, 4
or al, dl
shl cl, 3
mov byte [rbp - 0x18], al
movzx eax, r8b
shr al, 5
or al, cl
shl r8b, 2
movzx ecx, byte [rdi + 6]
mov byte [rbp - 0x17], al
movzx eax, cl
add cl, cl
shr al, 6
or al, r8b
mov byte [rbp - 0x15], cl
mov qword [rsp + 0xa0], r14
lea rcx, [rbp - 0x1c]
xor r14d, r14d
mov byte [rbp - 0x16], al
mov dword [rbp - 0x28], 0x208
mov dword [rbp - 0x24], 0x6601
mov dword [rbp - 0x20], 8
lea edx, [r14 + 8]
call fcn.140171a7c
mov rcx, qword [rbp - 0x38]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x28], rax
lea r8d, [r14 + 0x14]
xor r9d, r9d
mov dword [rsp + 0x20], r14d
lea rdx, [rbp - 0x28]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov r14, qword [rsp + 0xa0]
test eax, eax
jne 0x1402a09cb
mov rcx, qword [rbp - 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
jmp 0x1402a0a10
mov rax, qword [rsi]
xor r9d, r9d
mov rcx, qword [rbp - 0x30]
xor r8d, r8d
mov qword [rbx], rax
xor edx, edx
mov eax, dword [rbp - 0x40]
mov dword [rsp + 0x30], eax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rbp - 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14016f3bc
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x140400100
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.14016c964
sub rsp, rax
mov rax, qword [0x1404ff3c0]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x140505290]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, ntohs
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1404002f2
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x140400246
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140400246
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x14040022b
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], reloc.WS2_32.dll_listen
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x1404001c8
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1404002b2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, ntohs
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140400311
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x1404002ed
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, ntohs
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140400311
jmp 0x14040019e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, ntohs
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.14016f3bc
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1404003c0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.14016c964
sub rsp, rax
mov rax, qword [0x1404ff3c0]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x140505290]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, ntohs
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1404005cd
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x140400519
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x140400519
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x1404004f9
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, reloc.WS2_32.dll_listen
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x140400488
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14040058d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, ntohs
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1404005ec
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x1404005c8
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, ntohs
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1404005ec
jmp 0x14040045e
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, ntohs
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.14016f3bc
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1404404f0
Capabilities:
Get disk information

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov rax, qword [0x1404ff3c0]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp dword [rsp + 0x60], 0x1a
jbe 0x1404405bd
call fcn.140170a3c
mov dword [rax], reloc.WS2_32.dll_ntohs
xor eax, eax
test eax, eax
je 0x14044052d
mov dword [rsp + 0x34], 1
jmp 0x140440535
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jne 0x14044057e
lea rax, str.__Invalid_Drive_Index___0_
mov qword [rsp + 0x28], rax
lea rax, [0x1404937d8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, Ordinal_33
lea rdx, str.minkernelcrtsucrt_srcdesktopcrtmiscgetcwd.cpp
mov ecx, 2
call fcn.14016bfb9
cmp eax, 1
jne 0x14044057e
int3
cmp dword [rsp + 0x38], 0
jne 0x1404405bd
call fcn.14016e2c3
mov dword [rax], reloc.WS2_32.dll_listen
mov qword [rsp + 0x20], 0
mov r9d, Ordinal_33
lea r8, str.minkernelcrtsucrt_srcdesktopcrtmiscgetcwd.cpp
lea rdx, str.is_valid_drive
lea rcx, str.__Invalid_Drive_Index___0_
call fcn.140172869
xor eax, eax
jmp 0x140440622
cmp dword [rsp + 0x60], 0
jne 0x1404405cb
mov eax, 1
jmp 0x140440622
mov eax, dword [rsp + 0x60]
add eax, 0x40
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
mov word [rsp + 0x40], ax
mov eax, Ordinal_60
mov word [rsp + 0x42], ax
mov eax, 0x5c
mov word [rsp + 0x44], ax
xor eax, eax
mov word [rsp + 0x46], ax
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
je 0x140440619
cmp dword [rsp + 0x3c], 1
jne 0x14044061d
xor eax, eax
jmp 0x140440622
mov eax, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14016f3bc
add rsp, 0x58
ret

Function at 0x1400014ac
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400014f8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400014f0
cmp dword [rcx + 0x3c], edx
jl 0x1400014f0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400014f0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1400014f8
mov rax, rdx
add rsp, 0x18
ret
Function at 0x14000295c
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x1400027c4

Function at 0x140004ab7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1400123c0]
jne 0x14000236a
rol rcx, 0x10
test cx, 0xffff
jne 0x140002366
repz ret
ror rcx, 0x10
jmp 0x140004a10
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400138b0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x1400139a8]
mov qword [rsp + 0x58], r11
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 0x140004a95
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, [0x1400138b0]
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 0x140004ab7
mov rax, qword [rsp + 0x88]
mov qword [0x1400139a8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140013948], rax
mov rax, qword [0x1400139a8]
mov qword [0x140013820], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140013930], rax
mov dword [0x140013810], 0xc0000409
mov dword [0x140013814], 1
mov rax, qword [0x1400123c0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1400123c8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400138a8], eax
mov ecx, 1
call fcn.1400073c4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14000f470]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400138a8], 0
jne 0x140004b3e
mov ecx, 1
call fcn.1400073c4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret