joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc4dc3f0
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 rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4dcdf2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc501108]
test eax, eax
je 0x2fc4dce8a
lea rax, [0x2fc5010e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc501110]
mov qword [rbp - 8], rax
jmp 0x2fc4dce6e
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 0x2fc4dce62
cmp qword [rbp - 0x10], 0
je 0x2fc4dce62
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 0x2fc4dce28
lea rax, [0x2fc5010e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4dce8b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4dcf90
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4dcfb8
mov eax, 0
jmp 0x2fc4dd006
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 0x2fc4dcfe1
mov eax, 0
jmp 0x2fc4dd006
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4dd001
mov eax, 0
jmp 0x2fc4dd006
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4dd00c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4dd08a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4dd081
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4dd081
mov rax, qword [rbp - 8]
jmp 0x2fc4dd09f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4dd054
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14003173c
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x1400317b4
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x1400317b4
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x1400317b4
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x1400317a8
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x1400317c6
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x140031796
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x1400317b6

Function at 0x140033300
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003334a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003334a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003334a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003334a
cmp dword [rcx + 0x84], 0xe
jbe 0x14003334a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14003334c
xor al, al
add rsp, 0x28
ret

Function at 0x14003c094
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14003bdf8

Function at 0x140045fb0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140045fd8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140045fd8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140477fa9
Capabilities:
Encode data using xor

Disassembly:
lea r8, [0x1404748d8]
lea rsp, [rsp + 8]
mov eax, 0x56808005
neg eax
movzx eax, byte [rbx]
push 0xffffffffd715b938
xor eax, edx
and eax, 0xff
ror dword [rsp + 2], 1
mov eax, dword [r8 + rax*4]
shr edx, 8
push 0xe0bb71c
xor edx, eax
inc rbx
xor edx, 0xcf112f28
dec r9
lea rsp, [rsp + 0x10]
jne 0x140477fb5
pop r8
jmp 0x14047fa88
Function at 0x140001070
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x20], 0x8b2a35f2
lea rax, str.user32.dll
mov qword [r11 - 0x60], rax
lea rcx, [r11 - 0x68]
xor ebx, ebx
lea rax, str.kernel32.dll
mov qword [r11 - 0x58], rbx
mov dword [rsp + 0x38], 0xbe01f6ef
mov qword [r11 - 0x48], rax
lea rax, str.ntdll.dll
mov qword [r11 - 0x40], rbx
mov dword [rsp + 0x50], 0xdeadbeef
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x28], rbx
call fcn.140001340
test eax, eax
je 0x140001100
mov r9d, 1
lea r8, str.Body
lea rdx, str.Title
xor ecx, ecx
call qword [rsp + 0x30]
mov rdi, rbx
lea rsi, [rsp + 0x20]
mov rcx, rsi
call fcn.140001340
test eax, eax
je 0x14000112f
inc rdi
add rsi, 0x18
cmp rdi, 2
jb 0x140001108
mov edx, 0x1f4
mov ecx, 0x2ee
call qword [rsp + 0x48]
lea rdi, str.RtlCreateUserThread
mov edx, 0x1000
mov rcx, rdi
call fcn.140006dd4
mov r8, rax
test rax, rax
je 0x140001210
mov edx, r8d
shr r8, 2
and edx, 3
test r8, r8
je 0x140001186
nop
movzx eax, word [rdi]
movzx ecx, word [rdi + 2]
add ebx, eax
mov eax, ebx
shl ecx, 0xb
shl eax, 0x10
add rdi, 4
xor ecx, eax
xor ebx, ecx
mov eax, ebx
shr eax, 0xb
add ebx, eax
sub r8, 1
jne 0x140001160
sub edx, 1
je 0x1400011c4
sub edx, 1
je 0x1400011b1
cmp edx, 1
jne 0x1400011d6
movzx eax, word [rdi]
movzx ecx, byte [rdi + 2]
add ebx, eax
mov eax, ebx
shl ecx, 0x12
shl eax, 0x10
xor ecx, eax
xor ebx, ecx
mov eax, ebx
shr eax, 0xb
jmp 0x1400011d4
movzx eax, word [rdi]
add ebx, eax
mov eax, ebx
shl eax, 0xb
xor ebx, eax
mov eax, ebx
shr eax, 0x11
jmp 0x1400011d4
movzx eax, byte [rdi]
add ebx, eax
mov eax, ebx
shl eax, 0xa
xor ebx, eax
mov eax, ebx
shr eax, 1
add ebx, eax
lea eax, [rbx*8]
xor ebx, eax
mov eax, ebx
shr eax, 5
add ebx, eax
mov eax, ebx
shl eax, 4
xor ebx, eax
mov eax, ebx
shr eax, 0x11
add ebx, eax
mov eax, ebx
shl eax, 0x19
xor ebx, eax
mov edx, ebx
shr edx, 6
add edx, ebx
je 0x140001210
lea rcx, str.RtlCreateUserThread:_0x_X_n
call fcn.140001010
call fcn.140006dbc
xor eax, eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140001460
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140001240
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14000132b
mov edx, 0x1000
call fcn.140006dd4
mov r9, rax
test rax, rax
je 0x14000132b
mov r8d, r9d
xor edx, edx
and r8d, 3
shr r9, 2
test r9, r9
je 0x1400012a6
nop word [rax + rax]
movzx eax, word [rbx]
movzx ecx, word [rbx + 2]
add edx, eax
mov eax, edx
shl ecx, 0xb
shl eax, 0x10
add rbx, 4
xor ecx, eax
xor edx, ecx
mov eax, edx
shr eax, 0xb
add edx, eax
sub r9, 1
jne 0x140001280
sub r8d, 1
je 0x1400012e7
sub r8d, 1
je 0x1400012d4
cmp r8d, 1
jne 0x1400012f9
movzx eax, word [rbx]
movzx ecx, byte [rbx + 2]
add edx, eax
mov eax, edx
shl ecx, 0x12
shl eax, 0x10
xor ecx, eax
xor edx, ecx
mov eax, edx
shr eax, 0xb
jmp 0x1400012f7
movzx eax, word [rbx]
add edx, eax
mov eax, edx
shl eax, 0xb
xor edx, eax
mov eax, edx
shr eax, 0x11
jmp 0x1400012f7
movzx eax, byte [rbx]
add edx, eax
mov eax, edx
shl eax, 0xa
xor edx, eax
mov eax, edx
shr eax, 1
add edx, eax
lea eax, [rdx*8]
xor edx, eax
mov eax, edx
shr eax, 5
add edx, eax
mov eax, edx
shl eax, 4
xor edx, eax
mov eax, edx
shr eax, 0x11
add edx, eax
mov eax, edx
shl eax, 0x19
xor edx, eax
mov eax, edx
shr eax, 6
add eax, edx
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140001340
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push rsi
sub rsp, 0x40
cmp qword [rcx + 0x10], 0
mov rsi, rcx
je 0x14000135b
mov eax, 1
add rsp, 0x40
pop rsi
ret
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
test rax, rax
je 0x140001408
mov eax, 0x5a4d
cmp word [rdi], ax
jne 0x140001408
movsxd rax, dword [rdi + 0x3c]
add rax, rdi
cmp dword [rax], 0x4550
jne 0x140001408
mov ecx, 0x2000
test word [rax + 0x16], cx
je 0x140001408
mov ecx, dword [rax + 0x88]
test ecx, ecx
je 0x140001408
cmp dword [rax + 0x8c], 0
je 0x140001408
mov eax, dword [rdi + rcx + 0x1c]
lea r14, [rdi + rcx]
mov r15d, dword [r14 + 0x20]
xor ebx, ebx
mov r13d, dword [r14 + 0x24]
add r15, rdi
add r13, rdi
lea r12, [rdi + rax]
test eax, eax
je 0x140001408
nop word [rax + rax]
mov ecx, dword [r15 + rbx*4]
add rcx, rdi
call fcn.140001240
cmp eax, dword [rsi]
je 0x140001433
inc ebx
cmp ebx, dword [r14 + 0x1c]
jb 0x1400013f0
xor eax, eax
mov r14, qword [rsp + 0x28]
mov r13, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r15, qword [rsp + 0x20]
add rsp, 0x40
pop rsi
ret
movzx eax, word [r13 + rbx*2]
mov ecx, dword [r12 + rax*4]
mov eax, 1
add rcx, rdi
mov qword [rsi + 0x10], rcx
jmp 0x14000140a
Function at 0x140001e44
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001e8e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001e8e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001e8e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001e8e
cmp dword [rcx + 0x84], 0xe
jbe 0x140001e8e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001e90
xor al, al
add rsp, 0x28
ret

Function at 0x140007c14
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 0x140007c83
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140007c83
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140007c83
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140007c83
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140007c83
cmp dword [rcx + 0x84], 0xe
jbe 0x140007c83
cmp dword [rcx + 0xf8], 0
je 0x140007c83
mov ecx, ebx
call fcn.140007d34
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.140007b10
nop
cmp dword [rbp + 0x20], 0
je 0x140007cd1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140007cdc
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140007c14

Function at 0x140007e18
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140007c14
Function at 0x14000cf98
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 0x14000cfc8
xor eax, eax
jmp 0x14000d08b
mov rbp, rbx
cmp word [rax], si
je 0x14000cfed
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000cfd4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000cfd0
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.14000ceb8
movsxd r14, eax
test eax, eax
jne 0x14000d02b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000cfc1
mov rcx, r14
call fcn.14000990c
mov rdi, rax
test rax, rax
jne 0x14000d044
xor ecx, ecx
call fcn.140008c94
jmp 0x14000d020
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.14000ceb8
test eax, eax
jne 0x14000d075
mov rcx, rdi
call fcn.140008c94
jmp 0x14000d07f
xor ecx, ecx
call fcn.140008c94
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 0x1400113ac
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400113c2
mov al, 1
jmp 0x140011422
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400113d3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140011420
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000d8b8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140011420
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140011420
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140011420
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140011422
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140011554
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, [0x1400235c0]
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 0x1400115ab
cmp word [rdx], r13w
jne 0x1400115ab
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400115b0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400116d5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400116f6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400115e9
mov rdx, r9
mov word [rbx], cx
jmp 0x140011610
cmp r9, r8
jae 0x140011620
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 0x1400115ca
jmp 0x1400116d5
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 0x1400116ca
cmp dword [rsp + 0x80], esi
je 0x1400116ca
lea r8, [0x1400235c0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400116a2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140011672
mov word [rbx], r13w
jmp 0x1400116d2
mov ecx, 0xd
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 0x14001167f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400116d2
cmp word [rsp + 0x70], r13w
jne 0x1400116af
cmp rbx, r14
je 0x14001166c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400135f4
cmp word [rsp + 0x70], r13w
je 0x1400116d5
mov ecx, 0xd
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, [0x1400235c0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400116cf
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400116d5
Function at 0x140012ec0
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.14000bf88
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140012f4a
cmp byte [rbp - 0x21], r15b
je 0x140012f45
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140012f80
call fcn.140008ee4
test eax, eax
jne 0x140012f6c
cmp byte [rbp - 0x21], r15b
je 0x140012f64
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140012f80
cmp byte [rbp - 0x21], r15b
je 0x140012f7d
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.14000b568
test eax, eax
jne 0x140013020
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000bf88
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140012fbf
cmp byte [rbp - 0x21], r15b
je 0x140012ff4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140012ff4
call fcn.140008ee4
test eax, eax
jne 0x140012fe0
cmp byte [rbp - 0x21], r15b
je 0x140012fd9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140012ff4
cmp byte [rbp - 0x21], r15b
je 0x140012ff1
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.14000b568
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140013020
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140013023
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140013031
mov rcx, rdi
call fcn.140008c94
cmp byte [rbp + 0x3f], r15b
je 0x140013040
mov rcx, qword [rbp + 0x27]
call fcn.140008c94
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 0x1400155f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140015618
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140015618
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
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]
push rbx
call qword [rdi + 0x57]
push rdi
inc dword [rbx + 0x43]
jmp [r14]
xor bh, bh
invalid
xor bh, bh
invalid
invalid
invalid
invalid
adc eax, 0x1a1a1aff
push qword [rcx]
xor dword [rcx], esi
invalid
jmp qword [r9]
and ah, byte [rdx]
and bh, bh
invalid