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

Disassembly:
mov rdx, rcx
mov ecx, dword [0x14004ce08]
jmp fcn.14001aed4

Function at 0x14003c378
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 0x14003c3af
call fcn.14003eb48
mov dword [rax], 0x16
call fcn.1400397b0
xor eax, eax
jmp 0x14003c43d
mov rdx, r9
mov rcx, r8
call fcn.14003c314
mov rbx, rax
test rax, rax
je 0x14003c43a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14003c240]
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 0x14003c427
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003eabc
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14003c40e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14003c41d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14003c4d8
jmp 0x14003c43a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14003c437
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 0x14003c8dc
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14003c94b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003c94b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003c94b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003c94b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003c94b
cmp dword [rcx + 0x84], 0xe
jbe 0x14003c94b
cmp dword [rcx + 0xf8], 0
je 0x14003c94b
mov ecx, ebx
call fcn.14003c9fc
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14003c7d8
nop
cmp dword [rbp + 0x20], 0
je 0x14003c999
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14003c9a4
int3
xor r8d, r8d
xor edx, edx
jmp 0x14003c8dc
Function at 0x14003cae0
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14003c94b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003c94b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003c94b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003c94b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003c94b
cmp dword [rcx + 0x84], 0xe
jbe 0x14003c94b
cmp dword [rcx + 0xf8], 0
je 0x14003c94b
mov ecx, ebx
call fcn.14003c9fc
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14003c7d8
nop
cmp dword [rbp + 0x20], 0
je 0x14003c999
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14003c9a4
int3
xor r8d, r8d
xor edx, edx
jmp 0x14003c8dc

Function at 0x1400412e4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400412fa
mov al, 1
jmp 0x14004135a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14004130b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140041358
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400433fc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140041358
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140041358
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140041358
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14004135a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140042ecc
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140042efc
xor eax, eax
jmp 0x140042fbf
mov rbp, rbx
cmp word [rax], si
je 0x140042f21
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140042f08
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140042f04
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140042dec
movsxd r14, eax
test eax, eax
jne 0x140042f5f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140042ef5
mov rcx, r14
call fcn.14003e204
mov rdi, rax
test rax, rax
jne 0x140042f78
xor ecx, ecx
call fcn.14003c4d8
jmp 0x140042f54
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140042dec
test eax, eax
jne 0x140042fa9
mov rcx, rdi
call fcn.14003c4d8
jmp 0x140042fb3
xor ecx, ecx
call fcn.14003c4d8
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
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 0x1400011e0
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 0xb
mov ebx, edx
call fcn.1400062e0
mov r8, rax
mov edx, ebx
mov rcx, qword [rax]
mov byte [rcx], 3
inc qword [rax]
mov rcx, qword [rax]
mov byte [rcx], 0
inc qword [rax]
mov rcx, qword [rax]
mov byte [rcx], 0
inc qword [rax]
mov rcx, qword [rax]
mov byte [rcx], 0xb
inc qword [rax]
mov rcx, qword [rax]
mov byte [rcx], 6
mov rcx, r8
inc qword [rax]
mov rax, qword [rax]
mov byte [rax], 0x80
inc qword [r8]
mov rax, qword [r8]
mov byte [rax], 0
inc qword [r8]
mov rax, qword [r8]
mov byte [rax], 0
inc qword [r8]
mov rax, qword [r8]
mov byte [rax], 0
inc qword [r8]
mov rax, qword [r8]
mov byte [rax], 0
inc qword [r8]
mov rax, qword [r8]
mov byte [rax], 0
inc qword [r8]
mov rax, qword [r8]
mov qword [r8 + 8], rax
add rsp, 0x20
pop rbx
jmp 0x140006380
Function at 0x140001c70
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
mov edx, ecx
mov ecx, recv
call fcn.1400062e0
mov r8, rax
mov rdx, qword [rax]
mov qword [rax + 0x20], rdx
add rdx, 7
mov qword [rax], rdx
mov byte [rdx], 4
inc qword [rax]
mov rdx, qword [rax]
mov byte [rdx], 0
inc qword [rax]
mov rcx, qword [rax]
mov byte [rcx], 1
inc qword [rax]
mov rcx, qword [rax]
mov byte [rcx], 0
inc qword [rax]
mov rax, qword [rax]
mov byte [rax], 1
mov rax, qword [r8]
inc rax
mov qword [r8 + 8], rax
mov rax, qword [r8 + 0x20]
movzx edx, word [r8 + 8]
mov qword [r8], rax
sub dx, ax
mov byte [rax], 3
inc qword [r8]
mov rax, qword [r8]
mov byte [rax], 0
movzx eax, dx
inc qword [r8]
mov rcx, qword [r8]
shr ax, 8
mov byte [rcx], al
mov rcx, r8
inc qword [r8]
mov rax, qword [r8]
mov byte [rax], dl
mov edx, ebx
inc qword [r8]
mov rax, qword [r8]
mov byte [rax], 2
inc qword [r8]
mov rax, qword [r8]
mov byte [rax], 0xf0
inc qword [r8]
mov rax, qword [r8]
mov byte [rax], 0x80
inc qword [r8]
add rsp, 0x20
pop rbx
jmp 0x140006380

Function at 0x140001d30
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
mov edx, ecx
mov ecx, 8
call fcn.1400062e0
mov r8, rax
mov rdx, qword [rax]
mov qword [rax + 0x20], rdx
add rdx, 7
mov qword [rax], rdx
mov byte [rdx], 0x28
mov rdx, qword [rax]
mov rcx, qword [rax + 0x20]
inc rdx
mov qword [rax], rcx
mov qword [rax + 8], rdx
sub dx, cx
mov byte [rcx], 3
inc qword [rax]
mov rax, qword [rax]
mov byte [rax], 0
movzx eax, dx
inc qword [r8]
mov rcx, qword [r8]
shr ax, 8
mov byte [rcx], al
mov rcx, r8
inc qword [r8]
mov rax, qword [r8]
mov byte [rax], dl
mov edx, ebx
inc qword [r8]
mov rax, qword [r8]
mov byte [rax], 2
inc qword [r8]
mov rax, qword [r8]
mov byte [rax], 0xf0
inc qword [r8]
mov rax, qword [r8]
mov byte [rax], 0x80
inc qword [r8]
add rsp, 0x20
pop rbx
jmp 0x140006380

Function at 0x140001e80
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movzx ebx, cx
mov edi, edx
mov ecx, recv
call fcn.1400062e0
mov r9, rax
mov r8, qword [rax]
mov qword [rax + 0x20], r8
add r8, 7
mov qword [rax], r8
mov byte [r8], 0x38
inc qword [rax]
mov r8, qword [rax]
movzx edx, byte [0x14002a2d1]
mov byte [r8], dl
inc qword [rax]
mov rdx, qword [rax]
movzx ecx, byte [0x14002a2d0]
mov byte [rdx], cl
inc qword [rax]
mov rcx, qword [rax]
movzx eax, bx
shr ax, 8
mov byte [rcx], al
inc qword [r9]
mov rax, qword [r9]
mov byte [rax], bl
mov rax, qword [r9]
inc rax
mov qword [r9 + 8], rax
mov rax, qword [r9 + 0x20]
movzx edx, word [r9 + 8]
mov qword [r9], rax
sub dx, ax
mov byte [rax], 3
inc qword [r9]
mov rax, qword [r9]
mov byte [rax], 0
movzx eax, dx
inc qword [r9]
mov rcx, qword [r9]
shr ax, 8
mov byte [rcx], al
mov rcx, r9
inc qword [r9]
mov rax, qword [r9]
mov byte [rax], dl
mov edx, edi
inc qword [r9]
mov rax, qword [r9]
mov byte [rax], 2
inc qword [r9]
mov rax, qword [r9]
mov byte [rax], 0xf0
inc qword [r9]
mov rax, qword [r9]
mov byte [rax], 0x80
inc qword [r9]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x140006380
Function at 0x140002000
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movsxd rbx, edx
mov rdi, rcx
mov edx, r8d
mov ebp, r8d
lea ecx, [rbx + 7]
call fcn.1400062e0
mov r8, rbx
mov rdx, rdi
mov rsi, rax
mov r9, qword [rax]
mov qword [rax + 0x20], r9
lea rcx, [r9 + 7]
mov qword [rax], rcx
call fcn.140009130
mov rdx, qword [rsi]
mov rax, qword [rsi + 0x20]
add rdx, rbx
mov qword [rsi], rax
mov qword [rsi + 8], rdx
sub dx, ax
mov byte [rax], 3
inc qword [rsi]
mov rax, qword [rsi]
mov byte [rax], 0
movzx eax, dx
inc qword [rsi]
mov rcx, qword [rsi]
shr ax, 8
mov byte [rcx], al
mov rcx, rsi
inc qword [rsi]
mov rax, qword [rsi]
mov byte [rax], dl
mov edx, ebp
inc qword [rsi]
mov rax, qword [rsi]
mov byte [rax], 2
inc qword [rsi]
mov rax, qword [rsi]
mov byte [rax], 0xf0
inc qword [rsi]
mov rax, qword [rsi]
mov byte [rax], 0x80
inc qword [rsi]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp 0x140006380
Function at 0x1400056d0
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
mov edx, ecx
mov ecx, 9
call fcn.1400062e0
mov r8, rax
mov rdx, qword [rax]
mov qword [rax + 0x20], rdx
add rdx, 7
mov qword [rax], rdx
mov byte [rdx], 0x21
inc qword [rax]
mov rdx, qword [rax]
mov byte [rdx], 0x80
mov rcx, qword [rax]
inc rcx
mov qword [rax + 8], rcx
mov rcx, qword [rax + 0x20]
movzx edx, word [rax + 8]
mov qword [rax], rcx
sub dx, cx
mov byte [rcx], 3
inc qword [rax]
mov rax, qword [rax]
mov byte [rax], 0
movzx eax, dx
inc qword [r8]
mov rcx, qword [r8]
shr ax, 8
mov byte [rcx], al
mov rcx, r8
inc qword [r8]
mov rax, qword [r8]
mov byte [rax], dl
mov edx, ebx
inc qword [r8]
mov rax, qword [r8]
mov byte [rax], 2
inc qword [r8]
mov rax, qword [r8]
mov byte [rax], 0xf0
inc qword [r8]
mov rax, qword [r8]
mov byte [rax], 0x80
inc qword [r8]
add rsp, 0x20
pop rbx
jmp 0x140006380
Function at 0x140007600
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x270
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x260], rax
movsxd rbp, ecx
mov rdi, r8
xor ecx, ecx
mov r15, rdx
call fcn.14000d5c4
xor r12d, r12d
mov ebx, r12d
test rdi, rdi
je 0x1400076b2
lea r14, [rax + 3]
xor ecx, ecx
call fcn.14000d5c4
cmp r14, rax
jl 0x140007743
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], r12d
lea ecx, [rbp + 1]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov dword [rsp + 0x44], 0x186a0
lea r8, [rsp + 0x50]
mov qword [rsp + 0x58], rbp
xor edx, edx
mov dword [rsp + 0x50], 1
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x1400076ad
mov r8d, edi
lea rdx, [r15 + rbx]
sub r8d, ebx
xor r9d, r9d
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
js 0x1400076d6
cdqe
add rbx, rax
cmp rbx, rdi
jb 0x140007643
mov eax, ebp
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400083c0
add rsp, 0x270
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp qword [0x14002a588], r12
mov ebx, eax
jne 0x1400076ee
xor ecx, ecx
call fcn.14000da14
mov qword [rsp + 0x30], r12
lea rax, [0x14002a588]
mov dword [rsp + 0x28], r12d
mov r9d, 0x400
mov r8d, ebx
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov r8, qword [0x14002a588]
lea rdx, str.____SOCKS:_send__:__s_n
mov ecx, 1
call fcn.140008230
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x1400076b4
lea rdx, str.____SOCKS5:_timeout_n
mov ecx, 1
call fcn.140008230
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x1400076b4
Function at 0x140007770
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x270
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x260], rax
movsxd rbp, ecx
mov rdi, r8
xor ecx, ecx
mov r15, rdx
call fcn.14000d5c4
xor r12d, r12d
mov ebx, r12d
test rdi, rdi
je 0x140007823
lea r14, [rax + 3]
xor ecx, ecx
call fcn.14000d5c4
cmp r14, rax
jl 0x1400078b4
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], r12d
lea ecx, [rbp + 1]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov dword [rsp + 0x44], 0x186a0
xor r8d, r8d
mov qword [rsp + 0x58], rbp
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], 1
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x14000781e
mov r8d, edi
lea rdx, [r15 + rbx]
sub r8d, ebx
xor r9d, r9d
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
js 0x140007847
cdqe
add rbx, rax
cmp rbx, rdi
jb 0x1400077b3
mov eax, ebp
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400083c0
add rsp, 0x270
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp qword [0x14002a588], r12
mov ebx, eax
jne 0x14000785f
xor ecx, ecx
call fcn.14000da14
mov qword [rsp + 0x30], r12
lea rax, [0x14002a588]
mov dword [rsp + 0x28], r12d
mov r9d, 0x400
mov r8d, ebx
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov r8, qword [0x14002a588]
lea rdx, str.____SOCKS:_recv__:__s_n
mov ecx, 1
call fcn.140008230
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x140007825
lea rdx, str.____SOCKS5:_timeout_n
mov ecx, 1
call fcn.140008230
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x140007825
Function at 0x140007c50
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1d0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
movsxd rbx, edx
mov ecx, 0x201
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov rcx, qword [0x14002a2e0]
test rcx, rcx
je 0x140007ca4
mov r9d, dword [0x140028b2c]
lea r8, [0x14002b7a0]
mov edx, 0x23be
call fcn.1400078e0
jmp 0x140007cb6
mov edx, dword [0x140028b2c]
lea rcx, [0x14002b7a0]
call fcn.140006e40
mov rcx, rbx
lea rbx, [0x140000000]
mov dword [rbx + rcx*4 + 0x2b820], eax
cmp eax, 0xffffffff
jne 0x140007cd3
xor eax, eax
jmp 0x140007d59
lea rax, [rcx + rcx*8]
mov qword [rsp + 0x1e0], rsi
lea rsi, [rax*8]
mov ecx, 0x1000
mov dword [rsi + rbx + 0x2ac38], 0x1000
call fcn.14000da1c
test rax, rax
je 0x140007d72
mov qword [rsi + rbx + 0x2ac30], rax
lea rbx, [rbx + 0x2a690]
mov qword [rsp + 0x1f0], rdi
xor edi, edi
add rbx, rsi
nop dword [rax]
mov ecx, 0x1000
mov dword [rbx + 8], 0x1000
call fcn.14000da1c
test rax, rax
je 0x140007d8e
mov qword [rbx], rax
inc edi
add rbx, 0x48
cmp edi, 1
jl 0x140007d20
mov rdi, qword [rsp + 0x1f0]
mov eax, 1
mov rsi, qword [rsp + 0x1e0]
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1400083c0
add rsp, 0x1d0
pop rbx
ret
mov edx, 0x1000
lea rcx, str.xmalloc__d_n
call fcn.140008260
mov ecx, 0x45
call fcn.14000a75c
int3
mov edx, 0x1000
lea rcx, str.xmalloc__d_n
call fcn.140008260
mov ecx, 0x45
call fcn.14000a75c
int3

Function at 0x140007ea0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbp
push rbx
push rsi
push rdi
push r14
sub rsp, 0x250
lea rbp, [rsp + 0x30]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x210], rax
or rsi, 0xffffffffffffffff
mov r8, rcx
mov rax, rsi
inc rax
cmp byte [rcx + rax], 0
jne 0x140007ee1
lea r9, [0x14002b600]
mov rcx, rsi
cmp byte [r9 + rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140007ef4
lea edx, [rcx + 0xf]
add edx, eax
cmp byte [0x14002b600], 0
je 0x140007f21
mov rax, r9
cmp byte [rax], 0x25
jne 0x140007f19
mov byte [rax], 0x20
inc rax
cmp byte [rax], 0
jne 0x140007f11
movsxd rdx, edx
lea rax, [rdx + 0xf]
cmp rax, rdx
ja 0x140007f37
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14001b270
sub rsp, rax
mov qword [rsp + 0x20], r8
lea rdi, [rsp + 0x30]
mov rcx, rdi
lea r8, str._s____s
call fcn.140006280
lea r8, [0x1400246b4]
lea rdx, str.Search_Error.txt
lea rcx, [rbp]
call fcn.14000d154
lea rcx, str._r
lea r14, [rbp + 0x258]
call fcn.140001a80
mov r9, r14
lea rcx, [rbp + 0x10]
mov r8, rdi
mov edx, 0x200
call fcn.140007e40
mov ecx, 1
call fcn.14000a8cc
mov rbx, rax
call fcn.140001a20
xor r9d, r9d
mov qword [rsp + 0x20], r14
mov r8, rdi
mov rdx, rbx
mov rcx, qword [rax]
call fcn.14000ccec
mov r9, qword [rbp]
test r9, r9
je 0x140007ff4
lea rax, [rbp + 0x10]
nop
inc rsi
cmp byte [rax + rsi], 0
jne 0x140007fd0
mov rdx, rsi
lea rcx, [rbp + 0x10]
mov r8d, 1
call fcn.14000de5c
mov rcx, qword [rbp]
call fcn.14000a9d8
mov rcx, qword [rbp + 0x210]
xor rcx, rbp
call fcn.1400083c0
lea rsp, [rbp + 0x220]
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140008020
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x260
lea rbp, [rsp + 0x40]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x210], rax
cmp ecx, dword [0x14002a584]
mov r14, r9
movzx edi, dl
jg 0x140008207
cmp byte [r8], 0x5b
jne 0x140008088
movzx eax, byte [r8 + 1]
test al, al
je 0x140008088
cmp byte [r8 + 2], 0x5d
jne 0x140008088
cmp byte [r8 + 3], 0x20
jne 0x140008088
cmp al, 0x25
movzx edi, al
mov ecx, 0x2a
cmove edi, ecx
add r8, 4
or rbx, 0xffffffffffffffff
mov rax, rbx
nop
inc rax
cmp byte [r8 + rax], 0
jne 0x140008090
lea r12, [0x14002b5e8]
mov rcx, rbx
inc rcx
cmp byte [r12 + rcx], 0
jne 0x1400080a4
add eax, ecx
lea r15, [0x14002b600]
mov rcx, rbx
nop word [rax + rax]
cmp byte [r15 + rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x1400080c0
lea edx, [rcx + 0xf]
add edx, eax
cmp byte [0x14002b600], 0
je 0x1400080f0
mov rax, r15
nop dword [rax]
cmp byte [rax], 0x25
jne 0x1400080e8
mov byte [rax], 0x20
inc rax
cmp byte [rax], 0
jne 0x1400080e0
cmp byte [0x14002b5e8], 0
je 0x140008116
xor eax, eax
nop dword [rax + rax]
cmp byte [rax + r15], 0x25
jne 0x14000810c
mov byte [rax + r15], 0x20
inc rax
cmp byte [rax + r12], 0
jne 0x140008100
movsxd rdx, edx
lea rax, [rdx + 0xf]
cmp rax, rdx
ja 0x14000812c
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14001b270
sub rsp, rax
movsx r9d, dil
mov qword [rsp + 0x30], r8
lea rsi, [rsp + 0x40]
mov rcx, rsi
mov qword [rsp + 0x28], r12
lea r8, str.__c____s_:_s____s
mov qword [rsp + 0x20], r15
call fcn.140006280
mov r9, r14
lea rcx, [rbp + 0x10]
mov r8, rsi
mov edx, 0x200
call fcn.140007e40
lea r8, [0x1400246b4]
mov qword [rbp], 0
lea rdx, str.Search_Error.txt
lea rcx, [rbp]
call fcn.14000d154
mov rcx, qword [rbp]
test rcx, rcx
je 0x1400081c1
lea rax, [rbp + 0x10]
nop
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400081a0
mov r8, rbx
lea rdx, [rbp + 0x10]
mov r9, rcx
call fcn.14000de5c
mov rcx, qword [rbp]
call fcn.14000a9d8
lea rcx, str._r
call fcn.140001a80
mov ecx, 2
call fcn.14000a8cc
mov rbx, rax
call fcn.140001a20
xor r9d, r9d
mov qword [rsp + 0x20], r14
mov r8, rsi
mov rdx, rbx
mov rcx, qword [rax]
call fcn.14000ccec
mov ecx, 2
call fcn.14000a8cc
mov rcx, rax
call fcn.14000dbd8
mov rcx, qword [rbp + 0x210]
xor rcx, rbp
call fcn.1400083c0
lea rsp, [rbp + 0x220]
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140008a50
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140008ae1
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x140008ae1
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140008ae1
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140008ac5
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140008abf
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140008ac7
add rdx, 0x28
jmp 0x140008aa4
xor edx, edx
test rdx, rdx
jne 0x140008ad0
xor al, al
jmp 0x140008ae7
test dword [rdx + 0x24], 0x80000000
je 0x140008add
xor al, al
jmp 0x140008ae7
mov al, 1
jmp 0x140008ae7
xor al, al
jmp 0x140008ae7
add rsp, 0x18
ret

Function at 0x14000a75c
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 0x14000a530
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000a530
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000a530
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000a530
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000a530
cmp dword [rcx + 0x84], 0xe
jbe 0x14000a530
cmp dword [rcx + 0xf8], esi
je 0x14000a530
mov ecx, r14d
call fcn.14000a678
mov ecx, 2
call fcn.14000f468
nop
cmp byte [0x140029700], 0
jne 0x14000a5fa
mov r15d, 1
mov eax, r15d
xchg dword [0x1400296f0], eax
test ebx, ebx
jne 0x14000a5a3
mov rdi, qword [section..data]
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 [0x1400296f8]
cmp rcx, rax
je 0x14000a59a
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140009110]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140029898]
jmp 0x14000a5af
cmp ebx, r15d
jne 0x14000a5b5
lea rcx, [0x1400298b0]
call fcn.14000f05c
nop
test ebx, ebx
jne 0x14000a5cc
lea rdx, [0x14001c470]
lea rcx, [0x14001c450]
call fcn.14000e94c
lea rdx, [0x14001c480]
lea rcx, [0x14001c478]
call fcn.14000e94c
movzx eax, byte [0x140029700]
test esi, esi
cmove eax, r15d
mov byte [0x140029700], al
jmp 0x14000a5fa
mov ecx, 2
call fcn.14000f4bc
test esi, esi
jne 0x14000a611
mov ecx, r14d
call fcn.14000a62c
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 0x14000a4c0