joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14017e75c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14002a170
sub rsp, rax
mov rax, qword [0x140250648]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14017ad58
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14017e7ab
mov rax, rbp
jmp 0x14017e8b3
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x267200]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14018b34c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x267200]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14017e8af
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14017e8af
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14018b34c
test rax, rax
js 0x14017e8af
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14017e8af
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14017e8a1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14017e8a1
cmp byte [rcx], 0xd
jne 0x14017e887
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14017e896
cmp byte [rcx + 1], 0xa
jne 0x14017e896
inc rcx
jmp 0x14017e896
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x2538a0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14017e869
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14017e8b3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14002a1d0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1401817e0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140181808
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140181808
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140187538
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 0x140187568
xor eax, eax
jmp 0x14018762b
mov rbp, rbx
cmp word [rax], si
je 0x14018758d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140187574
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140187570
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.140187458
movsxd r14, eax
test eax, eax
jne 0x1401875cb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140187561
mov rcx, r14
call fcn.140183ef4
mov rdi, rax
test rax, rax
jne 0x1401875e4
xor ecx, ecx
call fcn.1401836ac
jmp 0x1401875c0
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.140187458
test eax, eax
jne 0x140187615
mov rcx, rdi
call fcn.1401836ac
jmp 0x14018761f
xor ecx, ecx
call fcn.1401836ac
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 0x140187648
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1401876cf
mov rsi, rbx
cmp word [rax], bp
je 0x14018768e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140187678
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140187674
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140183ef4
mov rdi, rax
test rax, rax
je 0x1401876bc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14016bb20
mov rbp, rdi
xor ecx, ecx
call fcn.1401836ac
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14018aee4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140267200]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14018af3b
cmp word [rdx], r13w
jne 0x14018af3b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14018af40
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14018b065
mov r11d, ntohs
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14018b086
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14018af79
mov rdx, r9
mov word [rbx], cx
jmp 0x14018afa0
cmp r9, r8
jae 0x14018afb0
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14018af5a
jmp 0x14018b065
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14018b05a
cmp dword [rsp + 0x80], esi
je 0x14018b05a
lea r8, [0x140267200]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14018b032
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14018b002
mov word [rbx], r13w
jmp 0x14018b062
mov ecx, ntohs
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14018b00f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14018b062
cmp word [rsp + 0x70], r13w
jne 0x14018b03f
cmp rbx, r14
je 0x14018affc
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14018b2a8
cmp word [rsp + 0x70], r13w
je 0x14018b065
mov ecx, ntohs
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140267200]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14018b05f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14018b065

Function at 0x14018b5ec
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14018b602
mov al, 1
jmp 0x14018b662
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14018b613
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14018b660
mov ecx, dword [rcx + 0x18]
nop
call fcn.140187fb4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14018b660
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14018b660
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14018b660
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14018b662
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14018fb10
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140174a78
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14018fb9a
cmp byte [rbp - 0x21], r15b
je 0x14018fb95
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14018fbd0
call fcn.140181c00
test eax, eax
jne 0x14018fbbc
cmp byte [rbp - 0x21], r15b
je 0x14018fbb4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14018fbd0
cmp byte [rbp - 0x21], r15b
je 0x14018fbcd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14017b87c
test eax, eax
jne 0x14018fc70
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140174a78
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14018fc0f
cmp byte [rbp - 0x21], r15b
je 0x14018fc44
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14018fc44
call fcn.140181c00
test eax, eax
jne 0x14018fc30
cmp byte [rbp - 0x21], r15b
je 0x14018fc29
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14018fc44
cmp byte [rbp - 0x21], r15b
je 0x14018fc41
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14017b87c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14018fc70
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14018fc73
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14018fc81
mov rcx, rdi
call fcn.1401836ac
cmp byte [rbp + 0x3f], r15b
je 0x14018fc90
mov rcx, qword [rbp + 0x27]
call fcn.1401836ac
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14018fcd8
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140250648]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x14018fd22
call fcn.14017ac84
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.14017ac64
mov dword [rax], ntohs
call fcn.1401837c4
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14002a1d0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x14018fd2d
lea eax, [rbx + 1]
jmp 0x14018fd0f
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x14018fd0d
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x14018fd0f

Function at 0x140192d18
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14018b2a8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14018b2a8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140192e68
cmp rax, 0xffffffffffffffff
je 0x140192e68
xor edi, edi
test rbp, rbp
jle 0x140192e13
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140183d84
mov rbx, rax
test rax, rax
jne 0x140192da0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140192e09
mov edx, 0x8000
mov ecx, r14d
call fcn.14017bd18
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140189a7c
cmp eax, 0xffffffff
je 0x140192de9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140192db0
mov edx, r15d
mov ecx, r14d
call fcn.14017bd18
jmp 0x140192e09
cmp byte [rsi + 0x38], dil
je 0x140192e00
cmp dword [rsi + 0x34], 5
jne 0x140192e00
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], ntohs
cmp byte [rsi + 0x30], dil
je 0x140192e09
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1401836ac
jmp 0x140192e7c
jns 0x140192e7c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14018b2a8
cmp rax, 0xffffffffffffffff
jne 0x140192e34
cmp byte [rsi + 0x30], dil
je 0x140192e7c
mov edi, dword [rsi + 0x2c]
jmp 0x140192e7c
mov ecx, r14d
call fcn.140187fb4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140192e7c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, ntohs
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], ntohs
jmp 0x140192e7c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140192e75
mov eax, dword [rsi + 0x2c]
jmp 0x140192e7a
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14018b2a8
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1400653d0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1400f70d0]
mov ecx, dword [0x1400ef384]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140065436
lea rcx, [0x1400f70c8]
xor edx, edx
call fcn.140051720
mov eax, dword [0x1400f70e0]
mov ecx, dword [0x1400ef384]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140065472
lea rcx, [0x1400f70d8]
xor edx, edx
add rsp, 0x28
jmp fcn.140051720
lea rcx, [0x1400f70d0]
call fcn.140065c70
cmp dword [0x1400f70d0], 0xffffffff
jne 0x1400653f5
mov qword [0x1400f70c8], 0
lea rcx, [0x1400f70c8]
xor edx, edx
call fcn.140031780
lea rcx, [0x1400f70d0]
call fcn.140065d08
jmp 0x1400653f5
lea rcx, [0x1400f70e0]
call fcn.140065c70
cmp dword [0x1400f70e0], 0xffffffff
jne 0x140065424
mov qword [0x1400f70d8], 0
lea rcx, [0x1400f70d8]
xor edx, edx
call fcn.140031780
lea rcx, [0x1400f70e0]
call fcn.140065d08
jmp 0x140065424

Function at 0x1400655d0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x1400f70e8]
cmp rsi, 1
jbe 0x1400655f3
mov rcx, rsi
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140051720
lea rcx, [0x1400f70e8]
call fcn.140037cf0
test al, al
je 0x140065639
mov qword [0x1400f70f0], 0
lea rdi, [0x1400f70e8]
lea rsi, [0x1400f70f0]
mov rcx, rsi
xor edx, edx
call fcn.140031780
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.140037d90
jmp 0x1400655e3
mov rsi, qword [0x1400f70e8]
jmp 0x1400655e3

Function at 0x140065650
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov eax, dword [0x1400f7100]
mov ecx, dword [0x1400ef384]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14006568d
lea rcx, [0x1400f70f8]
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp fcn.140051720
lea rcx, [0x1400f7100]
call fcn.140065c70
cmp dword [0x1400f7100], 0xffffffff
jne 0x140065679
mov qword [0x1400f70f8], 0
lea rcx, [0x1400f70f8]
xor edx, edx
call fcn.140031780
lea rcx, [0x1400f7100]
call fcn.140065d08
jmp 0x140065679

Function at 0x140072124
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140072254
Function at 0x140004884
Capabilities:
Delete directory

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
call fcn.140012b50
mov r15, qword [0x140020514]
cmp r15, 1
jne 0x140004953
push qword [0x140020604]
pop rcx
call fcn.14000dd04
mov r15, rax
and r15, r15
jle 0x1400048e9
mov rcx, qword [0x140020604]
call fcn.14000dd0c
mov rcx, qword [0x140020604]
call fcn.14000dd20
or rax, rax
je 0x1400048e9
mov rbp, qword [0x14002060c]
push qword [rbp + 0x10]
pop rcx
call fcn.14000e1bc
jmp 0x1400048c6
push qword [0x1400205f4]
pop rcx
call fcn.14000dd04
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x140004953
push 5
push 0
push 1
push qword [0x1400205f4]
pop rcx
pop rdx
pop r8
pop r9
call fcn.140009060
mov rcx, qword [0x1400205f4]
call fcn.14000dd0c
mov rcx, qword [0x1400205f4]
call fcn.14000dd20
or rax, rax
je 0x140004953
mov rbp, qword [0x1400205fc]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryW
jmp 0x140004930
mov rax, 1
jmp 0x14000495f
add rsp, 0x38
pop r15
pop rbp
ret

Function at 0x140006b38
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14001f190]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x140007204
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140007194
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021210]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020640]
jmp 0x140007240
cmp qword [rbx + 0x18], rdi
je 0x140007247
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140007237
jmp 0x140007261
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140020640]
call fcn.1400123b8
lea rcx, [0x140021210]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub bl, al
adc eax, 0xa0f31bae
push rsi
sal ch, 1
cmc
add eax, eax
fcomp dword [rax]
jg 0x14003f687
cmp eax, 0x36e0b79d
cmp ch, byte ss:[rbx - 0x24]
stosb byte [rdi], al
invalid
out 0x70, eax
or eax, 0x4b49b37a
invalid
jp 0x14003f6db
pop rax
out 0xe4, eax
or al, 0xe5
enter 0x189f, 0x78
js 0x14003f6f3
insb byte [rdi], dx
imul edx, dword [r10 - 0x77e180f7], 0x801c893b
sbb al, 0x80
invalid
sbb al, 0x80
test byte [rax + 0x5ee31f74], ch
loopne 0x14003f6c4
adc al, 0xfc
scasd eax, dword [rdi]
iretd
loope 0x14003f6a8
int3
push r11
fisttp qword [rdx + 0x61799caa]
invalid
invalid
cli
invalid
cmp bl, al
out 0xe7, al
xchg ecx, eax
pop rcx
mov esi, 0x9533a988
xchg ebp, eax
cmpsd dword [rsi], dword [rdi]
pop rax
mov edx, 0xf34a752
push 0xffffffffe4fe8677
push rax
mov ah, 0xa2
invalid
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x141c9e930]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x141c9e940]
mov dword [rax], 1
mov rax, qword [0x141c9e950]
mov dword [rax], 1
mov rax, qword [0x141c9e920]
mov dword [rax], 1
mov rax, qword [0x141c9e7c0]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x141c9e910]
mov dword [0x141ca100c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x1400010c0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x141c9e8d0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x141c9e8b0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x141c9e770]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067

Function at 0x1400018a0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x140001910
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x141ca10a4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x140001ac0
mov rax, qword [0x141ca10a8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000195c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400019e7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x140001940
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x140001b1d
mov rax, qword [0x141ca10a8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x141ca10a8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001b02
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400019e0
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001a70
add dword [0x141ca10a4], 1
cmp ebx, 8
jae 0x140001a18
test bl, 4
jne 0x140001ad0
test ebx, ebx
je 0x140001a09
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x140001af0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x140001a09
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x140001a4a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x141ca10a8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400019e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
xor edi, edi
jmp 0x140001967
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x140001a09
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x140001a09
mov rax, qword [0x141ca10a8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop dword [rax]