joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001700
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov qword [rbp - 0x31], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov rax, qword [0x140dda370]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov eax, 0x6e
mov word [rbp + 0x3f], ax
mov eax, 0x74
mov word [rbp + 0x41], ax
mov eax, WSAAsyncSelect
mov word [rbp + 0x43], ax
mov dword [rbp + 0x45], 0x6c006c
xor edi, edi
mov word [rbp + 0x49], di
mov dword [rbp + 0x27], 0x416c7452
mov dword [rbp + 0x2b], 0x73756a64
mov dword [rbp + 0x2f], 0x69725074
mov dword [rbp + 0x33], 0x656c6976
mov word [rbp + 0x37], 0x6567
mov byte [rbp + 0x39], dil
lea rdx, [rbp + 0x27]
lea rcx, [rbp - 0x29]
call fcn.140001190
mov rbx, rax
lea rdx, [rbp + 0x3f]
lea rcx, [rbp - 1]
call fcn.140001050
cmp qword [rbx + 0x18], 0x10
jb 0x1400017a2
mov rbx, qword [rbx]
cmp qword [rax + 0x18], 8
jb 0x1400017ac
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
cmp qword [rbp + 0x17], 8
jb 0x1400017d4
mov rcx, qword [rbp - 1]
call fcn.1400abea0
mov qword [rbp + 0x17], 7
mov qword [rbp + 0xf], rdi
mov word [rbp - 1], di
cmp qword [rbp - 0x11], 0x10
jb 0x1400017f4
mov rcx, qword [rbp - 0x29]
call fcn.1400abea0
mov qword [rbp - 0x11], 0xf
mov qword [rbp - 0x19], rdi
mov byte [rbp - 0x29], 0
lea r9, [rbp - 0x39]
xor r8d, r8d
lea edx, [r8 + 1]
lea ecx, [rdx + 0x13]
call rbx
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.1400ac900
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x140015870
Capabilities:
Check os version

Disassembly:
mov r11, rsp
sub rsp, 0x148
mov eax, dword [0x140ddc404]
test eax, eax
jne 0x1400159f2
mov qword [r11 + 8], rbx
mov qword [r11 - 8], rdi
xor edi, edi
lea rcx, [rsp + 0x36]
mov ebx, 0x10
xor edx, edx
mov r8d, 0xfe
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x30], edi
mov word [rsp + 0x34], di
mov dword [0x140ddc404], ebx
mov qword [rsp + 0x20], 0x114
call fcn.1400ac930
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x24], 6
jne 0x1400158f9
mov eax, dword [rsp + 0x28]
cmp eax, 2
jne 0x1400158fd
lea rcx, [rsp + 0x20]
call fcn.1400153f0
test al, al
jne 0x1400158f9
lea rcx, [rsp + 0x20]
call fcn.140014f50
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x30]
test ecx, ecx
je 0x1400159d5
dec ecx
je 0x1400159be
mov rcx, qword [rsp + 0x20]
shr rcx, 0x20
cmp ecx, 5
jb 0x1400159da
jne 0x140015955
test eax, eax
jne 0x140015931
lea ebx, [rax + 0x20]
jmp 0x1400159da
cmp ecx, 5
jne 0x140015955
cmp eax, 1
jne 0x140015943
lea ebx, [rcx + 0x2b]
jmp 0x1400159da
cmp ecx, 5
jne 0x140015955
cmp eax, 2
jne 0x140015955
lea ebx, [rcx + 0x3b]
jmp 0x1400159da
cmp ecx, 6
jne 0x140015996
test eax, eax
jne 0x140015963
lea ebx, [rcx + 0x7a]
jmp 0x1400159da
cmp ecx, 6
jne 0x140015996
cmp eax, 1
jne 0x140015974
mov ebx, 0x90
jmp 0x1400159da
cmp ecx, 6
jne 0x140015996
cmp eax, 2
jne 0x140015985
mov ebx, 0xa0
jmp 0x1400159da
cmp ecx, 6
jne 0x140015996
cmp eax, 3
jne 0x140015996
mov ebx, 0xb0
jmp 0x1400159da
cmp ecx, 0xa
jne 0x1400159a6
test eax, eax
jne 0x1400159a6
mov ebx, 0xc0
jmp 0x1400159da
mov edx, ecx
lea rcx, [0x140d3a7b0]
mov r8d, eax
call fcn.140015780
mov ebx, 0xf0
jmp 0x1400159da
cmp eax, 0x5a
jne 0x1400159c8
lea ebx, [rax - 0x56]
jmp 0x1400159da
cmp eax, 0xa
mov ebx, edi
sete bl
add ebx, 2
jmp 0x1400159da
mov ebx, 1
mov rdi, qword [rsp + 0x140]
mov dword [0x140ddc404], ebx
mov eax, ebx
mov rbx, qword [rsp + 0x150]
add rsp, 0x148
ret
Function at 0x14001ea00
Capabilities:
Allocate thread local storage

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
cmp dword [0x140dd82e8], 0xffffffff
jne 0x14001eac0
mov eax, dword [0x140ddc4b8]
lea rbx, [0x140ddc4b0]
test al, 1
jne 0x14001ea52
or eax, 1
mov dword [0x140ddc4b8], eax
xor edx, edx
mov rcx, rbx
call fcn.140030310
lea rcx, [0x1400d0580]
call fcn.1400acd34
nop
mov rcx, qword [0x140ddc4b0]
mov edi, 1
test byte [rcx + 4], dil
je 0x14001ea6e
mov rcx, rbx
call fcn.140030650
jmp 0x14001ea83
xor eax, eax
lock cmpxchg dword [rcx], edi
sete cl
test cl, cl
jne 0x14001ea83
mov rcx, rbx
call fcn.140030450
or rbx, rdi
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140dd82e8], eax
test dil, bl
je 0x14001eac0
and rbx, 0xfffffffffffffffe
mov rcx, qword [rbx]
test byte [rcx + 4], dil
je 0x14001eaae
mov rcx, rbx
call fcn.140030410
jmp 0x14001eac0
xor edx, edx
mov eax, edi
lock cmpxchg dword [rcx], edx
je 0x14001eac0
mov rcx, rbx
call fcn.140030360
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14001fe90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
call fcn.14001ea00
mov ecx, dword [0x140dd82e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test rax, rax
jne 0x14002002a
mov qword [rsp + 0x70], rax
lea rdx, [rsp + 0x70]
lea ecx, [rax + 2]
call fcn.140016080
test al, al
je 0x14001ff3b
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
mov rsi, qword [rcx + 0xc0]
mov rdx, rsi
mov ecx, dword [0x140dd82e8]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov r11, qword [rsp + 0x70]
mov rax, qword [r11 + 8]
mov byte [rax + 0x90], 1
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
mov byte [rcx + 0x91], 0
mov rdi, qword [rsp + 0x70]
mov rbx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov qword [rbx + 0xa8], rax
mov rbx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rbx + 0xb0], eax
jmp 0x14001ffa7
mov ecx, 0x80
call fcn.1400aca1c
mov qword [rsp + 0x78], rax
test rax, rax
je 0x14001ff61
mov edx, 1
mov rcx, rax
call fcn.140018200
mov rsi, rax
jmp 0x14001ff63
xor esi, esi
mov qword [rsp + 0x78], rsi
mov rdx, rsi
mov ecx, dword [0x140dd82e8]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov ecx, 0x10
call fcn.1400aca1c
mov qword [rsp + 0x80], rax
test rax, rax
je 0x14001ff9b
mov rdx, rsi
mov rcx, rax
call fcn.1400185d0
nop
mov qword [rsi + 8], rax
mov rcx, rsi
call fcn.1400185a0
mov byte [rsi + 0x60], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r11d, eax
mov qword [rsi + 0x10], r11
cmp qword [0x140ddc4f8], 0
jne 0x14001ffcf
mov rax, qword [rsi + 8]
mov qword [0x140ddc4f8], rax
jmp 0x14002002a
mov qword [rsp + 0x78], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
mov r8, rdi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdx, qword [rsi + 8]
mov rcx, qword [rsp + 0x78]
call fcn.14001fb60
mov rax, rsi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x140024b00
Capabilities:
Enumerate gui resources
Resolve function by parsing pe exports
Terminate process

Disassembly:
mov dword [rsp + 0x10], edx
sub rsp, 0x38
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x20]
lea rdx, [0x140d3d038]
mov r8d, 1
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], rax
call fcn.14001c650
add rsp, 0x38
ret
mov r11, rsp
mov dword [r11 + 0x18], r8d
mov dword [rsp + 0x10], edx
sub rsp, 0x48
lea rax, [r11 + 0x10]
lea r9, [r11 - 0x28]
lea rdx, [0x140d3d038]
mov qword [r11 - 0x20], rax
lea rax, [r11 + 0x18]
mov r8d, 2
mov qword [r11 - 0x18], rax
mov qword [r11 - 0x28], 0
call fcn.14001c650
add rsp, 0x48
ret
mov dword [rsp + 0x10], edx
sub rsp, 0x38
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x20]
lea rdx, [0x140d3d038]
mov r8d, 4
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], rax
call fcn.14001c650
add rsp, 0x38
ret
test edx, edx
jne 0x140024c7d
push rbx
sub rsp, 0x20
mov rbx, r9
mov r10, rcx
cmp r8d, 0xe
ja case.default.0x140024b31
lea rcx, [0x140000000]
movsxd rax, r8d
mov edx, dword [rcx + rax*4 + 0x24c80]
add rdx, rcx
jmp rdx
lea rdx, [0x140d3d038]
xor r9d, r9d
xor r8d, r8d
mov rcx, r10
add rsp, 0x20
pop rbx
jmp fcn.14001c650
mov rax, qword [r9 + 8]
mov rcx, r10
mov edx, dword [rax]
add rsp, 0x20
pop rbx
jmp 0x1400230e0
mov rcx, qword [r9 + 8]
mov rax, qword [r9 + 0x10]
mov edx, dword [rcx]
mov r8d, dword [rax]
mov rcx, r10
add rsp, 0x20
pop rbx
jmp 0x140023120
mov rax, qword [r9 + 8]
mov rcx, r10
mov edx, dword [rax]
add rsp, 0x20
pop rbx
jmp fcn.140023170
mov rax, qword [r9 + 8]
mov rcx, r10
mov edx, dword [rax]
add rsp, 0x20
pop rbx
jmp 0x1400231b0
xor r9d, r9d
lea rdx, [0x140d3d038]
mov rcx, r10
lea r8d, [r9 + 5]
add rsp, 0x20
pop rbx
jmp fcn.14001c650
xor r9d, r9d
lea rdx, [0x140d3d038]
mov rcx, r10
lea r8d, [r9 + 6]
add rsp, 0x20
pop rbx
jmp fcn.14001c650
mov rcx, qword [r10 + 8]
add rsp, 0x20
pop rbx
jmp 0x1400679a0
mov rcx, qword [r10 + 8]
add rsp, 0x20
pop rbx
jmp fcn.1400679f0
mov rcx, qword [r10 + 8]
call fcn.140024270
mov rcx, qword [rbx]
test rcx, rcx
je case.default.0x140024b31
mov byte [rcx], al
add rsp, 0x20
pop rbx
ret
mov rcx, qword [r10 + 8]
call fcn.140024410
mov rcx, qword [rbx]
test rcx, rcx
je case.default.0x140024b31
mov byte [rcx], al
add rsp, 0x20
pop rbx
ret
mov rcx, qword [r10 + 8]
call fcn.1400245b0
mov rcx, qword [rbx]
test rcx, rcx
je case.default.0x140024b31
mov byte [rcx], al
add rsp, 0x20
pop rbx
ret
mov rcx, qword [r10 + 8]
call fcn.140023820
mov rcx, qword [rbx]
test rcx, rcx
je case.default.0x140024b31
mov byte [rcx], al
add rsp, 0x20
pop rbx
ret
mov rcx, qword [r10 + 8]
call fcn.140024770
mov rcx, qword [rbx]
test rcx, rcx
je case.default.0x140024b31
mov byte [rcx], al
add rsp, 0x20
pop rbx
ret
mov rcx, qword [r10 + 8]
call fcn.140068300
add rsp, 0x20
pop rbx
repz ret
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x100]
mov rbx, rcx
test rax, rax
je 0x1400679e0
mov edx, dword [rax + 0x10]
lea rcx, [0x140067950]
call qword [sym.imp.USER32.dll_EnumWindows]
mov r11, qword [rbx + 0x100]
xor r9d, r9d
mov ecx, dword [r11 + 0x14]
lea edx, [r9 + 0x10]
xor r8d, r8d
call qword [sym.imp.USER32.dll_PostThreadMessageW]
add rsp, 0x20
pop rbx
ret
Function at 0x140026920
Capabilities:
Resolve function by parsing pe exports

Disassembly:
lea rdx, [0x140d3d7f8]
xor r9d, r9d
xor r8d, r8d
jmp fcn.14001c650

Function at 0x140026940
Capabilities:
Resolve function by parsing pe exports

Disassembly:
xor r9d, r9d
lea rdx, [0x140d3d7f8]
lea r8d, [r9 + 1]
jmp fcn.14001c650

Function at 0x140026960
Capabilities:
Resolve function by parsing pe exports

Disassembly:
xor r9d, r9d
lea rdx, [0x140d3d7f8]
lea r8d, [r9 + 2]
jmp fcn.14001c650

Function at 0x140026980
Capabilities:
Create thread
Resolve function by parsing pe exports
Resume thread
Terminate thread

Disassembly:
sub rsp, 0x28
test edx, edx
jne case.default.0x1400269ab
cmp r8d, 6
ja case.default.0x1400269ab
movsxd rax, r8d
lea r8, [0x140000000]
mov edx, dword [r8 + rax*4 + 0x26a24]
add rdx, r8
jmp rdx
lea rdx, [0x140d3d7f8]
xor r9d, r9d
xor r8d, r8d
add rsp, 0x28
jmp fcn.14001c650
xor r9d, r9d
lea rdx, [0x140d3d7f8]
lea r8d, [r9 + 1]
add rsp, 0x28
jmp fcn.14001c650
xor r9d, r9d
lea rdx, [0x140d3d7f8]
lea r8d, [r9 + 2]
add rsp, 0x28
jmp fcn.14001c650
mov rax, qword [r9 + 8]
mov edx, dword [rax]
add rsp, 0x28
jmp fcn.14001f460
mov edx, 7
add rsp, 0x28
jmp fcn.14001f460
add rsp, 0x28
jmp fcn.14001ee60
call fcn.1400181b0
add rsp, 0x28
ret
Function at 0x140043590
Capabilities:
Resolve function by parsing pe exports

Disassembly:
lea rdx, [0x140d7fe28]
xor r9d, r9d
xor r8d, r8d
jmp fcn.14001c650

Function at 0x1400435f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
xor r9d, r9d
lea rdx, [0x140d7fe28]
lea r8d, [r9 + 2]
jmp fcn.14001c650

Function at 0x140043610
Capabilities:
Resolve function by parsing pe exports

Disassembly:
xor r9d, r9d
lea rdx, [0x140d7fe28]
lea r8d, [r9 + 3]
jmp fcn.14001c650

Function at 0x140046960
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x250
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [r11 + 0x20], rbx
mov rbx, rcx
xor eax, eax
mov dword [r11 + 0x18], eax
mov dword [rsp + 0x34], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x104
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edi, eax
cmp eax, 0x104
jbe 0x1400469ee
mov dword [rsp + 0x268], eax
lea rcx, [rsp + 0x30]
lea rax, [rsp + 0x268]
cmp edi, dword [rsp + 0x30]
cmovge rcx, rax
mov r8d, dword [rcx]
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140040dd0
mov edx, edi
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edi, eax
mov r8d, edi
mov rdx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.14000ed80
mov dword [rsp + 0x270], 1
lea rax, [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
cmp rcx, rax
je 0x140046a1d
call fcn.140004d80
mov rax, rbx
mov rbx, qword [rsp + 0x278]
add rsp, 0x250
pop rdi
ret
Function at 0x140049b80
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov rsi, r8
mov r14, rdx
mov rbp, rcx
mov r15, qword [rcx + 0x18]
test r8, r8
js 0x140049cea
xor ebx, ebx
cmp qword [rcx + 0x70], rbx
je 0x140049c58
mov r13b, 1
nop word [rax + rax]
mov r8, rsi
sub r8, rbx
lea rcx, [rbx + r14]
mov r9, qword [rbp + 0x70]
mov edx, 1
call fcn.1400b0c58
mov rdi, rax
mov rcx, qword [rbp + 0x70]
call fcn.1400b0950
test eax, eax
setne r12b
test r13b, r13b
je 0x140049c26
test r12b, r12b
je 0x140049c26
test rdi, rdi
jne 0x140049c26
mov rcx, qword [rbp + 0x70]
call fcn.1400aeaac
mov rdx, rax
xor r8d, r8d
mov rcx, qword [rbp + 0x70]
call fcn.1400afe30
xor r13b, r13b
jmp 0x140049c29
add rbx, rdi
test r12b, r12b
jne 0x140049d2c
test rdi, rdi
jne 0x140049c46
call fcn.1400aeeac
xor ecx, ecx
cmp dword [rax], 4
sete cl
jmp 0x140049c4e
xor ecx, ecx
cmp rbx, rsi
setl cl
test ecx, ecx
jne 0x140049bd0
jmp 0x140049caf
cmp dword [rcx + 0x98], 0xffffffff
je 0x140049cb4
nop word [rax + rax]
mov r8d, esi
sub r8d, ebx
lea rdx, [rbx + r14]
mov ecx, dword [rbp + 0x98]
call fcn.1400b0834
movsxd rdi, eax
cmp edi, 0xffffffff
jne 0x140049c99
call fcn.1400aeeac
cmp dword [rax], 4
jne 0x140049ca5
jmp 0x140049c70
test eax, eax
jle 0x140049ca5
add rbx, rdi
cmp rbx, rsi
jl 0x140049c70
cmp edi, 0xffffffff
setne al
test al, al
jne 0x140049d2c
test rbx, rbx
jne 0x140049d2c
or rbx, 0xffffffffffffffff
call fcn.1400aeeac
mov edx, dword [rax]
lea rcx, [rsp + 0x70]
call fcn.140015a00
nop
mov r8, rax
lea edx, [rbx + 2]
mov rcx, r15
call fcn.14004aff0
nop
mov rcx, qword [rsp + 0x70]
lock dec dword [rcx]
jne 0x140049d2c
mov rcx, qword [rsp + 0x70]
jmp 0x140049d27
mov edx, 0x16
lea rcx, [rsp + 0x80]
call fcn.140015a00
nop
mov r8, rax
mov edx, 1
mov rcx, r15
call fcn.14004aff0
nop
mov rcx, qword [rsp + 0x80]
or rbx, 0xffffffffffffffff
lock dec dword [rcx]
jne 0x140049d2c
mov rcx, qword [rsp + 0x80]
call fcn.14000ade0
mov rax, rbx
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140049e70
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push r12
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x68], rbp
mov rbx, r8
mov rbp, rdx
mov rsi, rcx
mov r12, qword [rcx + 0x18]
test r8, r8
js 0x140049f90
xor edi, edi
cmp qword [rcx + 0x70], rdi
je 0x140049eed
nop word [rax + rax]
mov r8, rbx
sub r8, rdi
lea rcx, [rdi + rbp]
mov r9, qword [rsi + 0x70]
mov edx, 1
call fcn.1400b17ac
add rdi, rax
test rax, rax
jne 0x140049edf
call fcn.1400aeeac
xor ecx, ecx
cmp dword [rax], 4
sete cl
jmp 0x140049ee7
xor ecx, ecx
cmp rdi, rbx
setl cl
test ecx, ecx
jne 0x140049eb0
jmp 0x140049f34
cmp dword [rcx + 0x98], 0xffffffff
je 0x140049f34
nop word [rax + rax]
mov r8d, ebx
sub r8d, edi
lea rdx, [rdi + rbp]
mov ecx, dword [rsi + 0x98]
call fcn.1400b1540
cmp eax, 0xffffffff
jne 0x140049f26
call fcn.1400aeeac
cmp dword [rax], 4
jne 0x140049f34
jmp 0x140049f00
test eax, eax
jle 0x140049f34
cdqe
add rdi, rax
cmp rdi, rbx
jl 0x140049f00
test rbx, rbx
je 0x140049fc9
test rdi, rdi
jne 0x140049fc9
or rdi, 0xffffffffffffffff
call fcn.1400aeeac
mov edx, dword [rax]
lea rcx, [rsp + 0x50]
call fcn.140015a00
mov rbx, rax
call fcn.1400aeeac
mov edx, 2
mov ecx, 4
cmp dword [rax], 0x1c
cmove edx, ecx
mov r8, rbx
mov rcx, r12
call fcn.14004aff0
nop
mov rcx, qword [rsp + 0x50]
lock dec dword [rcx]
jne 0x140049fc9
mov rcx, qword [rsp + 0x50]
jmp 0x140049fc4
mov edx, 0x16
lea rcx, [rsp + 0x60]
call fcn.140015a00
nop
mov r8, rax
mov edx, 2
mov rcx, r12
call fcn.14004aff0
nop
mov rcx, qword [rsp + 0x60]
or rdi, 0xffffffffffffffff
lock dec dword [rcx]
jne 0x140049fc9
mov rcx, qword [rsp + 0x60]
call fcn.14000ade0
mov rax, rdi
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x14004a310
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [rcx + 8]
mov rdi, r8
mov rsi, rdx
cmp dword [rbx + 0x9c], 1
je 0x14004a342
mov rax, qword [rcx]
call qword [rax + 0x18]
mov dword [rbx + 0x9c], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1400706b0
mov r11, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov rbp, r8
mov r12, rdx
mov rsi, rcx
mov r13, qword [rcx + 0x18]
mov rax, qword [rcx + 0x70]
test rax, rax
jne 0x1400707b8
cmp dword [rcx + 0x98], 0xffffffff
jne 0x1400707b3
cmp qword [rcx + 0x78], 0xffffffffffffffff
je 0x140070805
mov edi, r8d
mov dword [r11 + 8], r8d
xor r14d, r14d
mov ebx, r14d
lea r15, [0x140d88f20]
nop word [rax + rax]
lea rax, [rsp + 0x90]
cmp edi, 0x2000000
cmovae rax, r15
lea rdx, [rbx + r12]
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0xa8]
mov r8d, dword [rax]
mov rcx, qword [rsi + 0x78]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140070772
mov ecx, dword [rsp + 0xa8]
test ecx, ecx
je 0x1400707ae
add rbx, rcx
sub edi, ecx
mov dword [rsp + 0x90], edi
cmp rbx, rbp
jge 0x1400707ae
jmp 0x140070720
test rbx, rbx
jne 0x1400707ae
or edx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.140015a00
nop
mov r8, rax
lea edx, [rbx + 1]
mov rcx, r13
call fcn.14004aff0
nop
mov rax, qword [rsp + 0x30]
lock dec dword [rax]
jne 0x1400707a8
mov rcx, qword [rsp + 0x30]
call fcn.14000ade0
or rax, 0xffffffffffffffff
jmp 0x140070819
mov rax, rbx
jmp 0x140070819
test rax, rax
je 0x14007080b
call fcn.140070130
test al, al
je 0x14007080b
mov rcx, qword [rsi + 0x70]
call fcn.1400b0950
test eax, eax
je 0x14007080b
call fcn.1400aeeac
mov edx, dword [rax]
lea rcx, [rsp + 0x38]
call fcn.140015a00
nop
mov r8, rax
mov edx, 1
mov rcx, r13
call fcn.14004aff0
nop
mov rcx, qword [rsp + 0x38]
lock dec dword [rcx]
jne 0x140070805
mov rcx, qword [rsp + 0x38]
call fcn.14000ade0
or rax, 0xffffffffffffffff
jmp 0x140070819
mov r8, rbp
mov rdx, r12
mov rcx, rsi
call fcn.140049b80
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14004a3b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [rcx + 8]
mov rdi, r8
mov rsi, rdx
cmp dword [rbx + 0x9c], 2
je 0x14004a3e2
mov rax, qword [rcx]
call qword [rax + 0x18]
mov dword [rbx + 0x9c], 2
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x140070840
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x88], rbx
mov rbp, r8
mov r12, rdx
mov rsi, rcx
mov r13, qword [rcx + 0x18]
cmp qword [rcx + 0x70], 0
jne 0x140070935
cmp dword [rcx + 0x98], 0xffffffff
jne 0x140070935
cmp qword [rcx + 0x78], 0xffffffffffffffff
je 0x14007092a
mov edi, r8d
xor r14d, r14d
mov ebx, r14d
lea r15, [0x140d88f20]
mov dword [rsp + 0x80], edi
lea rax, [rsp + 0x80]
cmp edi, 0x2000000
cmovae rax, r15
lea rdx, [rbx + r12]
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x98]
mov r8d, dword [rax]
mov rcx, qword [rsi + 0x78]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400708f4
mov eax, dword [rsp + 0x98]
test eax, eax
je 0x140070930
add rbx, rax
sub rdi, rax
cmp rbx, rbp
jge 0x140070930
jmp 0x1400708a1
test rbx, rbx
jne 0x140070930
or edx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.140015a00
nop
mov r8, rax
lea edx, [rbx + 2]
mov rcx, r13
call fcn.14004aff0
nop
mov rax, qword [rsp + 0x30]
lock dec dword [rax]
jne 0x14007092a
mov rcx, qword [rsp + 0x30]
call fcn.14000ade0
or rax, 0xffffffffffffffff
jmp 0x14007093a
mov rax, rbx
jmp 0x14007093a
call fcn.140049e70
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400662d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
lea rdx, [0x140d87f38]
xor r9d, r9d
xor r8d, r8d
jmp fcn.14001c650

Function at 0x1400677e0
Capabilities:
Create pipe
Create two anonymous pipes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x60
xor esi, esi
mov rdi, rcx
mov dword [rax - 0x28], 0x18
mov dword [rax - 0x18], 1
mov r9d, 0x100000
lea r8, [rax - 0x28]
mov qword [rax - 0x20], rsi
test dl, dl
je 0x140067838
lea rdx, [rax + 0x18]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x140067896
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r9, [rdi + 8]
jmp 0x140067860
lea rdx, [rcx + 8]
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x140067896
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9, rdi
mov rdx, qword [rsp + 0x80]
mov dword [rsp + 0x30], 2
mov r8, rbx
mov rcx, rax
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x140067896
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret