joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140088600
Capabilities:
Resolve dns

Disassembly:
push rbx
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r13d, r13d
mov r12, r9
mov qword [r9], r13
mov ebx, r13d
lea r9, [rsp + 0x68]
mov r15d, r13d
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r14d, eax
test eax, eax
jne 0x1400887c4
mov qword [rsp + 0x58], rsi
mov rsi, qword [rsp + 0x68]
mov qword [rsp + 0x60], rdi
test rsi, rsi
je 0x1400887a4
mov qword [rsp + 0x50], rbp
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x14008865d
lea ebp, [rax + 0xe]
jmp 0x140088669
cmp eax, 0x17
jne 0x140088711
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], r13
je 0x140088711
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x140088711
cmp rax, rbp
jb 0x140088711
mov ecx, Ordinal_50
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x14008874c
mov ecx, dword [rsi]
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
mov dword [rax + 0xc], ecx
mov rcx, rbp
mov dword [rax + 0x10], ebp
mov qword [rax + 0x20], r13
mov qword [rax + 0x18], r13
mov qword [rax + 0x28], r13
call qword [section..data]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x14008873b
mov rdx, qword [rsi + 0x20]
mov r8, rbp
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x1400886fe
call qword [case.0x14006aae9.0]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x140088720
test rbx, rbx
cmove rbx, rdi
test r15, r15
je 0x14008870e
mov qword [r15 + 0x28], rdi
mov r15, rdi
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x140088650
jmp 0x140088752
mov rcx, qword [rdi + 0x20]
mov r14d, 8
call qword [fcn.1400b0dd0]
mov rcx, rdi
call qword [fcn.1400b0dd0]
jmp 0x140088752
mov rcx, rdi
mov r14d, 8
call qword [fcn.1400b0dd0]
jmp 0x140088752
mov r14d, 8
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x50]
test rcx, rcx
je 0x140088767
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r14d, r14d
je 0x14008879f
test rbx, rbx
je 0x14008879a
mov rcx, qword [rbx + 0x20]
call qword [fcn.1400b0dd0]
mov rcx, qword [rbx + 0x18]
call qword [fcn.1400b0dd0]
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call qword [fcn.1400b0dd0]
mov rbx, rdi
test rdi, rdi
jne 0x140088771
mov rbx, r13
jmp 0x1400887b3
test rbx, rbx
jne 0x1400887b3
mov r14d, 0x2af9
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov eax, r14d
mov rsi, qword [rsp + 0x58]
mov qword [r12], rbx
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rbx
ret

Function at 0x140088c80
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
mov r9, rdx
mov r8, rcx
mov qword [rsp + 0x28], rbx
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
cmovbe rbx, rax
mov rax, rbx
add rsp, 0x30
pop rbx
ret
Function at 0x14008be70
Capabilities:
Query environment variable

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, 0x20
mov r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [0x1400da010]
mov rdi, rax
test rax, rax
je 0x14008beed
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x14008bf18
cmp ebx, esi
je 0x14008bf18
cmp ebx, 0x8000
ja 0x14008bf18
cmp ebx, esi
jb 0x14008bf13
mov edx, ebx
mov rcx, rdi
call qword [0x1400da010]
mov rdi, rax
test rax, rax
jne 0x14008beb0
mov rcx, rbp
call qword [fcn.1400b0dd0]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rdi
jmp 0x14008bef8
mov rcx, rdi
jmp 0x14008bef0

Function at 0x1400944c0
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 0x1400944f5
lea rdx, str.Couldnt_set_desired_mode
call fcn.140075900
lea eax, [rbx + 0x11]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
cmp edx, 0xc8
je 0x14009450c
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200_n
call fcn.140075a80
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r14
cmp esi, 0x13
jne 0x140094528
mov rcx, rdi
call fcn.140094400
jmp 0x14009465f
cmp esi, 0x14
jne 0x140094641
mov rsi, qword [rdi]
mov rbp, rbx
cmp dword [rsi + 0xba0], 2
jne 0x1400945a9
mov rax, qword [rsi + 0x1e0]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400945a9
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.14008bfb0
test eax, eax
jne 0x14009465f
mov rcx, qword [rsp + 0x50]
lea edx, [rax + 0x2f]
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x14009459e
mov rbp, qword [rsp + 0x50]
mov ecx, 1
sub rax, rbp
cmovne rcx, rax
mov byte [rcx + rbp], bl
jmp 0x1400945a9
mov rcx, qword [rsp + 0x50]
call qword [fcn.1400b0dd0]
mov rdx, qword [rsi + 0xc08]
test rdx, rdx
jne 0x1400945cd
cmp byte [rsi + 0xf0d], bl
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x1400c0d46]
test rbp, rbp
mov r9, r8
lea rax, [0x1400c550c]
cmovne r9, rbp
lea rcx, [0x1400b6bb0]
cmovne r8, rax
call fcn.140078d40
mov rcx, rbp
mov r14, rax
call qword [fcn.1400b0dd0]
test r14, r14
jne 0x14009460c
lea ebx, [r14 + 0x1b]
jmp 0x140094661
lea rcx, [rdi + 0xa00]
mov r8, r14
lea rdx, [0x1400c1274]
call fcn.1400aa760
mov rcx, r14
mov esi, eax
call qword [fcn.1400b0dd0]
test esi, esi
je 0x140094635
mov ebx, esi
jmp 0x140094661
mov dword [rdi + 0xab8], 0x1f
jmp 0x140094661
cmp esi, 0x15
jne 0x14009464c
lea r8d, [rsi - 8]
jmp 0x140094655
cmp esi, 0x16
jne 0x140094661
lea r8d, [rsi - 8]
mov dl, 1
mov rcx, rdi
call fcn.140093f30
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 0x14009a3c0
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 0x14009a41f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140075900
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.140099f50
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
cmp edx, 0x1f
jne 0x14009a778
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 0x14009a635
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x14009a635
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x14009a635
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x14009a66c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x14009a6c2
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14009a6c2
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14009a6c2
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14009a6c2
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14009a6c2
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.14009a080
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 0x14009a724
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140075900
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.14009a450
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 0x14009a770
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140075900
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x14009bee0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1400da060]
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], pe_nt_image_headers64
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 0x14009bf75
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 0x14009bfd6
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.140075900
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.1400af130
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 0x14009c091
sub ecx, 1
je 0x14009c104
sub ecx, 1
je 0x14009c040
cmp ecx, 1
je 0x14009c023
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400c1274]
call fcn.140075900
jmp 0x14009c104
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.14009bc10
test eax, eax
je 0x14009c104
jmp 0x14009bfaa
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 0x14009c104
sub rax, rsi
cmp rax, rbp
jae 0x14009c104
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.140075a80
jmp 0x14009c104
cmp r8d, 4
jle 0x14009c104
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 0x14009c104
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.140075820
mov esi, eax
test eax, eax
je 0x14009c0e3
mov edx, 5
mov rcx, rbx
call fcn.14009cbd0
mov eax, esi
jmp 0x14009bfaa
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.140084e30
mov rcx, r14
call fcn.140085110
test eax, eax
je 0x14009bfa8
mov edx, 5
mov rcx, rbx
call fcn.14009cbd0
mov eax, Ordinal_45
jmp 0x14009bfaa
Function at 0x1400aefe0
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 [section..data]
mov rdi, rax
test rax, rax
jne 0x1400af022
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 0x1400af069
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 0x1400af0c2
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 0x1400af080
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400af103
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400c0a2b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400c0a2c]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400af0d0
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 0x14000c790
Capabilities:
Encode data using xor

Disassembly:
push rsi
sub cl, byte [rax - 0x7d]
in al, dx
cmp byte [rax - 0x75], cl
or eax, 0x11c812
mov edx, 0x50fffff0
call qword [sym.imp.USER32.dll_GetWindowLongPtrA]
mov qword [rsi + 0x760d8b48], rdi
push rbp
adc dword [rax], eax
mov edx, 0x7a
call 0x140988020
mov ecx, esi
and ecx, 0x811b84ff
adc dword [rdx], 0xe2c00000
mov edi, esi
out dx, eax
invalid

Function at 0x140042870
Capabilities:
Encode data using xor

Disassembly:
adc edx, dword [rdi - 0x43]
and bpl, spl
jne 0x1400428c0
mov ebx, edi
mov rdi, rcx
mov rbx, qword [rcx]
mov rcx, rdx
call fcn.1400ce950
lea r8, [rax + 1]
add ecx, dword [rcx - 0xd76b754]
invalid
mov word [rbx], fs
or dh, dl
adc rax, rbx
sbb al, 0xff
add byte [rsi], ah
add byte [rbp + 0x1e], cl
mov cl, dh
and al, 0x88
lea rdx, [rsp + 0x27]
sgdt [r8]
add byte [rax], al
mov ecx, esi
call qword [rsi]
mov rcx, rsi
mov bl, 0x89
cli
sub rax, 0x4816a2d8
adc byte [rsi], 0
xor al, byte [rax]
add byte [rdi], cl
xchg edx, eax
imul ecx, dword [rax - 0x65], 0x48f2244c
xor ecx, esp
call 0x1407f8cc0
mov eax, ebx
rol dword [rbx + 0x5f5b30c4], 1
pop rsi
movabs al, byte [0x20ec8348533256cc]
mov rsi, rcx
mov rax, qword [rcx + 8]
test rax, rax
je 0x1400428d3
mov sil, 0xf1
push 0x5b20c483
pop rdi
pop rsi
jmp rax

Function at 0x1400434c0
Capabilities:
Encode data using xor

Disassembly:
xchg esi, eax
mov r8d, 1
push rsi
push rdi
cmp ebx, eax
in al, dx
sub byte [rcx], al
mov esi, edx
mov rdi, rcx
cmp qword [rcx + 0x10], rdx
jae 0x1400434eb
mov byte [rbp + 0xd3ad90d], cl
add byte [rax - 0x73], cl
adc eax, 0xd66b9
lea ecx, str.new_len___buf__len
lea rdx, [0x140119b99]
xor esp, dword [r11]
add byte [rax], al
jge 0x140043486
xchg ecx, eax
jae 0x1400434d3
add byte [rax - 0x61], cl
lahf
ja 0x1400434ff
mov rax, qword [rdi]
mov byte [rax + rsi], 0
add rsp, 0x28
pop rdi
pop rsi
ret
jp 0x140043557
push rdi
sbb rax, 0xffffffff894828ec
xlatb
mov rsi, rcx
mov rax, qword [rcx + 0x10]
mov ch, 0x39
invalid
invalid

Function at 0x14007b297
Capabilities:
Encode data using xor

Disassembly:
add byte [rax], al
add byte [rax], al
xadd dword [rax], eax
mov rcx, qword [rdi + 8]
lodsb al, byte [rsi]
xor al, 0xc1
add rax, 1
xor dword [rdi + 7], ecx
jb 0x14007b2a0
mov rax, rdi
mov spl, al
sub byte [rsi - 0x33a73cf3], al
int3
Function at 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14000b920]
mov dword [rax], 1
mov rax, qword [0x14000b930]
mov dword [rax], 1
mov rax, qword [0x14000b940]
mov dword [rax], 1
mov rax, qword [0x14000b910]
mov dword [rax], 1
mov rax, qword [0x14000b7d0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014de
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14000150a
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001530
cmp eax, 0x20b
je 0x140001557
jmp 0x140001586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001543
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001572
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001e40
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x140002a72
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140010188]
test eax, eax
je 0x140002b0a
lea rax, [0x140010160]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140010190]
mov qword [rbp - 8], rax
jmp 0x140002aee
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140002ae2
cmp qword [rbp - 0x10], 0
je 0x140002ae2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140002aa8
lea rax, [0x140010160]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140002b0b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
push rcx
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
push rsi
mov rdx, qword [rdx + 0x20]
xor r9, r9
movzx rcx, word [rdx + 0x4a]
mov rsi, qword [rdx + 0x50]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
mov rdx, qword [rdx + 0x20]
push r9
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov r8d, dword [rax + 0x20]
push rax
mov ecx, dword [rax + 0x18]
add r8, rdx
jrcxz 0x1400040ca
dec rcx
xor r9, r9
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
ror r9d, 0xd
lodsb al, byte [rsi]
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
add rax, rdx
pop r8
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x1400a0b0c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rsi, rdx
mov r12, rcx
test r8d, r8d
je 0x1400a0cf5
mov r8d, dword [rdx + 0xc]
test r8d, r8d
je 0x1400a0cf5
xor edi, edi
mov r9, rdx
mov qword [rbp + 0xa8], rdi
mov eax, dword [r9 + 0x10]
mov r13d, dword [r9]
add rax, r12
mov ebx, r8d
add r13, r12
add rbx, r12
mov qword [rsp + 0x30], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r15, rax
test rax, rax
jne 0x1400a0b8a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r15, rax
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x104
call fcn.1400988ec
test r15, r15
je 0x1400a0c98
mov rax, qword [r13]
xor r14d, r14d
xor ebx, ebx
test rax, rax
je 0x1400a0c77
mov rsi, qword [rsp + 0x30]
mov rdi, r13
jns 0x1400a0bc7
movzx r13d, ax
jmp 0x1400a0bcf
lea r13, [r12 + 2]
add r13, rax
mov rdx, r13
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
movsxd rcx, r14d
mov qword [rsi + rcx*8], rax
test rax, rax
jne 0x1400a0c56
cmp dword [0x1400aa4f0], 1
jne 0x1400a0c56
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x104
call fcn.1400988ec
lea rcx, [rsp + 0x40]
call fcn.1400a0e5c
lea rdx, [0x140097898]
lea rcx, [rsp + 0x40]
call fcn.140098910
mov rdx, r13
lea rcx, [rsp + 0x40]
call fcn.140098910
lea rcx, [rsp + 0x40]
call fcn.140098938
mov rcx, qword [0x1400aa490]
lea r9, [rbp + 0xa0]
and qword [rsp + 0x20], 0
lea rdx, [rsp + 0x40]
mov r8, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
inc rbx
inc r14d
mov rax, qword [rdi + rbx*8]
test rax, rax
jne 0x1400a0bbf
mov rdi, qword [rbp + 0xa8]
mov rsi, qword [rbp + 0x98]
inc rdi
mov qword [rbp + 0xa8], rdi
lea rax, [rdi + rdi*4]
lea r9, [rsi + rax*4]
mov r8d, dword [r9 + 0xc]
test r8d, r8d
jne 0x1400a0b55
jmp 0x1400a0cf5
lea rcx, [rsp + 0x40]
call fcn.1400a0e5c
lea rdx, [0x140097878]
lea rcx, [rsp + 0x40]
call fcn.140098910
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140098910
cmp dword [0x1400aa4f0], 1
jne 0x1400a0cf5
lea rcx, [rsp + 0x40]
call fcn.140098938
mov rcx, qword [0x1400aa490]
lea r9, [rbp + 0xa0]
and qword [rsp + 0x20], 0
lea rdx, [rsp + 0x40]
mov r8, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x190]
xor eax, eax
add rsp, 0x150
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400a0d58
Capabilities:
Read file via mapping

Disassembly:
sub rsp, 0x458
call fcn.1400a0e14
mov r8d, 0x208
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1400aa238], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 2
xor edx, edx
mov rcx, qword [0x1400aa238]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [0x1400aa240], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, qword [0x1400aa240]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
movsxd rcx, dword [0x1400aa4f8]
add rax, rcx
add rsp, 0x458
ret