joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140083e40
Capabilities:
Parse pe header

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

Function at 0x1400957b0
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 0x1400957e7
call fcn.14008a02c
mov dword [rax], SafeArrayUnaccessData
call fcn.140089b64
xor eax, eax
jmp 0x140095875
mov rdx, r9
mov rcx, r8
call fcn.14009574c
mov rbx, rax
test rax, rax
je 0x140095872
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140095678]
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 0x14009585f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140089fa0
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140095846
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140095855
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14009aa58
jmp 0x140095872
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14009586f
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 0x140095e64
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 0x140095ccf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140095ccf
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140095ccf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140095ccf
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140095ccf
cmp dword [rcx + 0x84], 0xe
jbe 0x140095ccf
cmp dword [rcx + 0xf8], 0
je 0x140095ccf
mov ecx, ebx
call fcn.140095d80
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.140095b5c
nop
cmp dword [rbp + 0x20], 0
je 0x140095d1d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140095d28
int3
xor r8d, r8d
xor edx, edx
jmp 0x140095c60
Function at 0x14009e400
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.140083500
sub rsp, rax
mov rax, qword [0x1400e54e8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14009be1c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14009e44f
mov rax, rbp
jmp 0x14009e557
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 + 0xe9350]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14009f520
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xe9350]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14009e553
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 0x14009e553
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14009f520
test rax, rax
js 0x14009e553
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14009e553
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14009e545
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14009e545
cmp byte [rcx], 0xd
jne 0x14009e52b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14009e53a
cmp byte [rcx + 1], 0xa
jne 0x14009e53a
inc rcx
jmp 0x14009e53a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xe58f0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14009e50d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14009e557
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400834d0
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 0x14009e778
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14009e78e
mov al, 1
jmp 0x14009e7ee
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14009e79f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14009e7ec
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400a5a60
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14009e7ec
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14009e7ec
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14009e7ec
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14009e7ee
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14009e8c0
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, [0x1400e9350]
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 0x14009e917
cmp word [rdx], r13w
jne 0x14009e917
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14009e91c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14009ea41
mov r11d, SafeArrayDestroy
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14009ea62
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14009e955
mov rdx, r9
mov word [rbx], cx
jmp 0x14009e97c
cmp r9, r8
jae 0x14009e98c
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 0x14009e936
jmp 0x14009ea41
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 0x14009ea36
cmp dword [rsp + 0x80], esi
je 0x14009ea36
lea r8, [0x1400e9350]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14009ea0e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14009e9de
mov word [rbx], r13w
jmp 0x14009ea3e
mov ecx, SafeArrayDestroy
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 0x14009e9eb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14009ea3e
cmp word [rsp + 0x70], r13w
jne 0x14009ea1b
cmp rbx, r14
je 0x14009e9d8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14009f528
cmp word [rsp + 0x70], r13w
je 0x14009ea41
mov ecx, SafeArrayDestroy
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, [0x1400e9350]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14009ea3b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14009ea41
Function at 0x1400a42e0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14009a254
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400a4381
cmp ebx, dword [rsp + 0x30]
je 0x1400a437a
test esi, esi
je 0x1400a437a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400a4355
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400a4362
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400a433f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400a4366
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400a4383
mov eax, 1
jmp 0x1400a4383
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400a5414
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 0x1400a549b
mov rsi, rbx
cmp word [rax], bp
je 0x1400a545a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400a5444
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400a5440
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14009ac98
mov rdi, rax
test rax, rax
je 0x1400a5488
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140085350
mov rbp, rdi
xor ecx, ecx
call fcn.14009aa58
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 0x1400a9700
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.14009f528
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14009f528
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400a9850
cmp rax, 0xffffffffffffffff
je 0x1400a9850
xor edi, edi
test rbp, rbp
jle 0x1400a97fb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14009c224
mov rbx, rax
test rax, rax
jne 0x1400a9788
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400a97f1
mov edx, 0x8000
mov ecx, r14d
call fcn.140099b4c
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.14009dc78
cmp eax, 0xffffffff
je 0x1400a97d1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400a9798
mov edx, r15d
mov ecx, r14d
call fcn.140099b4c
jmp 0x1400a97f1
cmp byte [rsi + 0x38], dil
je 0x1400a97e8
cmp dword [rsi + 0x34], 5
jne 0x1400a97e8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayDestroy
cmp byte [rsi + 0x30], dil
je 0x1400a97f1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14009aa58
jmp 0x1400a9864
jns 0x1400a9864
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14009f528
cmp rax, 0xffffffffffffffff
jne 0x1400a981c
cmp byte [rsi + 0x30], dil
je 0x1400a9864
mov edi, dword [rsi + 0x2c]
jmp 0x1400a9864
mov ecx, r14d
call fcn.1400a5a60
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400a9864
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, SafeArrayDestroy
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayDestroy
jmp 0x1400a9864
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400a985d
mov eax, dword [rsi + 0x2c]
jmp 0x1400a9862
mov eax, SafeArrayUnaccessData
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14009f528
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 0x1400a9fe0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400aa008
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400aa008
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001560
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rdi
push rsi
push rbx
movabs rdx, 0x27d4eb2f165667c5
mov r9, rcx
lea rcx, [rcx + 0x28]
mov r8d, dword [r9 + 0x48]
mov rdi, qword [r9 + 0x18]
mov r10, qword [r9]
add r8, rcx
add rdx, rdi
cmp r10, 0x1f
jbe 0x140001639
mov r11, qword [r9 + 0x10]
mov rax, qword [r9 + 8]
movabs rsi, 0xc2b2ae3d27d4eb4f
mov rbx, qword [r9 + 0x20]
mov rdx, r11
imul r11, rsi
mov rbp, rax
rol rax, 1
rol rdx, 7
imul rbp, rsi
add rdx, rax
mov rax, rdi
rol rax, 0xc
imul rdi, rsi
add rdx, rax
mov rax, rbx
rol rbp, 0x1f
rol rax, 0x12
imul rbx, rsi
add rdx, rax
rol rdi, 0x1f
movabs rax, 0x9e3779b185ebca87
imul rbp, rax
imul rdi, rax
rol rbx, 0x1f
imul rbx, rax
xor rdx, rbp
mov rbp, r11
movabs r11, 0x85ebca77c2b2ae63
imul rdx, rax
rol rbp, 0x1f
imul rbp, rax
add rdx, r11
xor rdx, rbp
imul rdx, rax
add rdx, r11
xor rdx, rdi
imul rdx, rax
add rdx, r11
xor rdx, rbx
imul rdx, rax
add rdx, r11
lea rsi, [r9 + 0x30]
add rdx, r10
cmp r8, rsi
jb 0x1400016a9
movabs rbx, 0xc2b2ae3d27d4eb4f
mov rcx, rsi
movabs r10, 0x9e3779b185ebca87
movabs r11, 0x85ebca77c2b2ae63
nop word cs:[rax + rax]
mov rax, qword [rcx - 8]
add rcx, 8
imul rax, rbx
rol rax, 0x1f
imul rax, r10
xor rax, rdx
rol rax, 0x1b
imul rax, r10
lea rdx, [rax + r11]
cmp r8, rcx
jae 0x140001670
mov rax, r8
sub rax, r9
lea rcx, [rax - 0x30]
and rcx, 0xfffffffffffffff8
add rcx, rsi
lea r9, [rcx + 4]
cmp r8, r9
jb 0x1400016e7
mov eax, dword [rcx]
movabs rcx, 0x9e3779b185ebca87
imul rax, rcx
mov rcx, r9
xor rax, rdx
movabs rdx, 0xc2b2ae3d27d4eb4f
rol rax, 0x17
imul rax, rdx
movabs rdx, 0x165667b19e3779f9
add rdx, rax
cmp rcx, r8
jae 0x14000171e
movabs r10, 0x27d4eb2f165667c5
movabs r9, 0x9e3779b185ebca87
movzx eax, byte [rcx]
add rcx, 1
imul rax, r10
xor rax, rdx
rol rax, 0xb
imul rax, r9
mov rdx, rax
cmp r8, rcx
jne 0x140001700
mov rax, rdx
shr rax, 0x21
xor rax, rdx
movabs rdx, 0xc2b2ae3d27d4eb4f
imul rax, rdx
mov rdx, rax
shr rdx, 0x1d
xor rax, rdx
movabs rdx, 0x165667b19e3779f9
imul rax, rdx
mov rdx, rax
shr rdx, 0x20
xor rax, rdx
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x14000aef0
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Terminate process

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
movaps xmmword [rsp + 0x60], xmm6
mov rcx, qword [0x14002b040]
test rcx, rcx
je 0x14000af29
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14000af48
mov rcx, qword [0x14002b040]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14002e060], 0
jne 0x14000af60
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rcx, qword [0x14002b040]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x14000af1c
mov edx, 0x414
lea rbp, [rsp + 0x20]
lea rbx, [0x14001e3b0]
mov qword [rsp + 0x20], 0
lea rsi, [0x14002e080]
movq xmm0, rbx
mov rcx, rbp
mov dword [rsp + 0x28], 3
movq xmm6, rsi
mov word [rsp + 0x40], dx
mov rdi, qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov r13d, 0x14
punpcklqdq xmm6, xmm0
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], rbx
movaps xmmword [rsp + 0x30], xmm6
call rdi
mov r12, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rcx, rsi
call r12
cmp eax, 0xffffffff
je 0x14000af32
test al, 0x10
je 0x14000af32
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 0x414
mov qword [rsp + 0x50], rbx
mov rcx, rbp
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
movaps xmmword [rsp + 0x30], xmm6
call rdi
sub r13d, 1
jne 0x14000afd0
jmp 0x14000af32

Function at 0x14000f1e0
Capabilities:
Create directory

Disassembly:
push rdi
mov eax, 0x2020
push rsi
push rbx
call fcn.140014d80
sub rsp, rax
mov eax, dword [0x140032080]
mov rsi, rcx
test eax, eax
je 0x14000f2a0
xor ebx, ebx
lea rdi, [0x140030080]
test eax, eax
jg 0x14000f21c
jmp 0x14000f240
add rbx, 1
cmp dword [0x140032080], ebx
jle 0x14000f240
mov rdx, qword [rdi + rbx*8]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14000f210
mov eax, 1
add rsp, 0x2020
pop rbx
pop rsi
pop rdi
ret
mov rcx, rsi
call sub.msvcrt.dll_wcslen
cmp rax, 2
jne 0x14000f255
cmp word [rsi + 2], 0x3a
je 0x14000f22c
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14000f2f0
movsxd rbx, dword [0x140032080]
cmp ebx, 0x3ff
jg 0x14000f22c
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add dword [0x140032080], 1
mov rdx, rax
lea rax, [0x140030080]
mov qword [rax + rbx*8], rdx
jmp 0x14000f22c
lea rdi, [rsp + 0x20]
lea rbx, str._HOME_
mov r8d, 0x1000
mov rdx, rbx
mov rcx, rdi
call fcn.14000a7d0
test al, al
je 0x14000f308
movsxd rbx, dword [0x140032080]
mov rcx, rdi
lea rdi, [0x140030080]
call sub.msvcrt.dll__wcsdup
mov qword [rdi + rbx*8], rax
mov eax, dword [0x140032080]
add eax, 1
mov dword [0x140032080], eax
jmp 0x14000f201
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14000f268
xor eax, eax
jmp 0x14000f231
mov rcx, rbx
call fcn.14000ae30
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140013f10
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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 fcn.14001b870
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.14001b870
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140013f80
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140032154]
mov rbx, rcx
test esi, esi
jle 0x1400140b0
mov rax, qword [0x140032158]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140013fcb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140014055
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140013fb0
mov rcx, rbx
call fcn.140014ab0
mov rdi, rax
test rax, rax
je 0x1400140d2
mov rax, qword [0x140032158]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140014bf0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140032158]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400140b7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14001404e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140014060
add dword [0x140032154], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140032158]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001404e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140013f10
nop dword [rax]
xor esi, esi
jmp 0x140013fd8
mov rax, qword [0x140032158]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140013f10
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140013f10
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x1400147a0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp edx, 2
je 0x1400148d0
ja 0x1400147e8
test edx, edx
je 0x140014868
mov eax, dword [0x1400321a8]
test eax, eax
je 0x140014950
mov dword [0x1400321a8], 1
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp edx, 3
jne 0x1400147d5
mov eax, dword [0x1400321a8]
test eax, eax
je 0x1400147d5
lea r12, [0x1400321c0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400321a0]
test rbx, rbx
je 0x140014854
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140014978
test eax, eax
jne 0x140014978
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140014828
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1400147d5
mov eax, dword [0x1400321a8]
test eax, eax
jne 0x1400148e8
mov eax, dword [0x1400321a8]
cmp eax, 1
jne 0x1400147d5
mov rbx, qword [0x1400321a0]
test rbx, rbx
je 0x1400148a1
nop dword [rax]
mov rcx, rbx
mov rbx, qword [rbx + 0x10]
call sub.msvcrt.dll_free
test rbx, rbx
jne 0x140014890
lea rcx, [0x1400321c0]
mov qword [0x1400321a0], 0
mov dword [0x1400321a8], 0
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp 0x1400147d5
call fcn.140013f00
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea r12, [0x1400321c0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400321a0]
test rbx, rbx
je 0x14001493c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word [rax + rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140014968
test rsi, rsi
je 0x140014968
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140014918
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x140014872
lea rcx, [0x1400321c0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x1400147cb
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140014918
jmp 0x14001493c
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140014828
jmp 0x140014854

Function at 0x140014ab0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r8, qword [0x14001fa10]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140014ad0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140014ad8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140014ad0
movzx eax, word [rdx + 0x14]
sub rcx, r8
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140014b25
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140014b1c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140014ad0
add rax, 0x28
cmp rax, r9
jne 0x140014b08
xor eax, eax
ret
Function at 0x140014b30
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001fa10]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140014b4f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140014b58
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140014b4f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140014bf0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001fa10]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140014c0f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140014c18
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140002188
Capabilities:
Parse pe header

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

Function at 0x1400096d8
Capabilities:
Parse pe header

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