joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001a42c
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
lea rdx, [rsp + 0x20]
mov rdi, rcx
call fcn.14001a400
mov rbx, qword [rsp + 0x20]
test rbx, rbx
je 0x14001a4a0
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14001a4a0
mov edx, 0x1d4c0
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x14001a484
mov eax, dword [rbx + 0x10]
mov edi, 1
mov dword [0x14005a1a0], eax
mov edx, edi
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x14001a4a5
mov rcx, rdi
call fcn.14001a4fc
mov rcx, rax
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov edi, dword [rsp + 0x48]
jmp 0x14001a4a5
mov edi, 1
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x14001a4ef
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14001a4ef
mov rbx, qword [rsp + 0x28]
mov rcx, rbx
mov rax, qword [rbx]
mov rax, qword [rax]
call qword [0x14003f5a0]
or ecx, 0xffffffff
lock xadd dword [rbx + 0xc], ecx
cmp ecx, 1
jne 0x14001a4ef
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rcx]
mov rax, qword [rdx + 8]
call qword [0x14003f5a0]
mov rbx, qword [rsp + 0x40]
mov eax, edi
add rsp, 0x30
pop rdi
ret

Function at 0x14001a62c
Capabilities:
Create thread
Resume thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0x30
mov r9, qword [rcx]
lea r8, [0x14001a710]
mov rsi, rdx
mov rdi, rcx
xor edx, edx
xor ecx, ecx
lea rax, [r9 + 0x10]
mov qword [r11 - 0x10], rax
mov dword [rsp + 0x20], 4
call fcn.14002814c
mov rcx, rax
test rax, rax
je 0x14001a6e7
mov rax, qword [rdi]
mov rdx, rsi
mov qword [rax + 8], rcx
mov rcx, qword [rdi]
add rcx, 0x18
call fcn.14000b960
mov rax, qword [rdi]
xor ecx, ecx
mov ebp, dword [rax + 0x10]
lea rax, [0x14005a0d0]
cmp dword [rax], 0
je 0x14001a6b4
inc ecx
lea rdx, [0x14005a1e0]
add rax, 0x44
cmp rax, rdx
jl 0x14001a69b
jmp 0x14001a6d8
movsxd rax, ecx
lea r14, [0x14005a090]
imul rbx, rax, 0x44
mov r8, rsi
mov edx, 0x40
lea rcx, [rbx + r14]
call fcn.140026f78
mov dword [rbx + r14 + 0x40], ebp
mov rcx, qword [rdi]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov al, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x14002bd64
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14002bb90
Function at 0x140016640
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Hash data using fnv

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
cmp qword [r8 + 0x18], 8
mov rdi, rdx
mov r10, qword [r8 + 0x10]
mov rbx, rcx
mov r11, r8
jb 0x140016670
mov r11, qword [r8]
lea rdx, [r10 + r10]
xor ecx, ecx
movabs r9, 0xcbf29ce484222325
test rdx, rdx
je 0x1400166a3
movzx eax, byte [rcx + r11]
movabs rsi, 0x100000001b3
xor r9, rax
inc rcx
imul r9, rsi
cmp rcx, rdx
jb 0x140016685
mov r14, qword [rbx + 0x30]
mov r12, qword [rbx + 0x18]
and r14, r9
mov r11, qword [rbx + 8]
add r14, r14
mov rax, qword [r12 + r14*8]
cmp qword [r12 + r14*8], r11
jne 0x1400166c4
mov rcx, r11
jmp 0x1400166cc
mov rcx, qword [r12 + r14*8 + 8]
mov rcx, qword [rcx]
cmp rax, rcx
je 0x140016799
cmp qword [r8 + 0x18], 8
lea rcx, [rax + 0x10]
mov rdx, r8
jb 0x1400166e6
mov rdx, qword [r8]
mov r15, qword [rcx + 0x18]
mov rsi, qword [rcx + 0x10]
cmp r15, 8
jb 0x1400166f7
mov rcx, qword [rcx]
cmp rsi, r10
jne 0x140016735
mov rbp, rsi
test rsi, rsi
je 0x14001673d
movzx r9d, word [rcx]
movzx ebx, word [rdx]
cmp r9w, bx
jb 0x140016735
sub rcx, rdx
cmp r9w, bx
ja 0x140016735
cmp rbp, 1
je 0x14001673d
add rdx, 2
dec rbp
movzx r9d, word [rcx + rdx]
movzx ebx, word [rdx]
cmp r9w, bx
jae 0x140016718
mov rax, qword [rax]
jmp 0x1400166b9
lea rcx, [rax + 0x10]
cmp r15, 8
jb 0x14001674a
mov rcx, qword [rcx]
cmp qword [r8 + 0x18], 8
jb 0x140016754
mov r8, qword [r8]
cmp r10, rsi
jne 0x140016791
test r10, r10
je 0x140016794
movzx edx, word [r8]
movzx r9d, word [rcx]
cmp dx, r9w
jb 0x140016791
sub r8, rcx
cmp dx, r9w
ja 0x140016791
cmp r10, 1
je 0x140016794
add rcx, 2
dec r10
movzx edx, word [rcx + r8]
movzx r9d, word [rcx]
cmp dx, r9w
jae 0x140016773
mov rax, r11
mov qword [rdi], rax
jmp 0x14001679c
mov qword [rdi], r11
mov rbx, qword [rsp + 0x20]
mov rax, rdi
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
pop r15
pop r14
pop r12
ret
Function at 0x1400169bc
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Hash data using fnv

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 8], rcx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rdi, r9
mov r10, r8
mov rsi, rdx
mov r9, rcx
mov r15, qword [r8 + 0x10]
cmp qword [r8 + 0x18], 8
jb 0x1400169f9
mov r8, qword [r8]
movabs rdx, 0xcbf29ce484222325
lea r11, [r15 + r15]
xor ecx, ecx
test r11, r11
je 0x140016a2c
movzx eax, byte [rcx + r8]
xor rdx, rax
movabs rbx, 0x100000001b3
imul rdx, rbx
inc rcx
cmp rcx, r11
jb 0x140016a0e
mov r8, qword [r9 + 0x30]
and r8, rdx
mov rax, r8
add rax, rax
mov rcx, qword [r9 + 0x18]
mov rbx, qword [r9 + 8]
mov r12, qword [rcx + rax*8]
cmp rbx, r12
je 0x140016af8
mov rbx, qword [rcx + rax*8 + 8]
mov rbx, qword [rbx]
cmp rbx, r12
je 0x140016af8
mov rbx, qword [rbx + 8]
lea rax, [rbx + 0x10]
mov rcx, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x140016a75
mov rax, qword [rax]
mov r11, r10
cmp qword [r10 + 0x18], 8
jb 0x140016a82
mov r11, qword [r10]
cmp r15, rcx
jne 0x140016a56
mov r14, r15
test r15, r15
je 0x140016abf
movzx ecx, word [r11]
movzx edx, word [rax]
cmp cx, dx
jb 0x140016a56
sub r11, rax
cmp cx, dx
ja 0x140016a56
cmp r14, 1
je 0x140016abf
dec r14
add rax, 2
movzx ecx, word [r11 + rax]
movzx edx, word [rax]
cmp cx, dx
jae 0x140016aa1
jmp 0x140016a56
mov rdx, qword [rdi + 8]
mov rax, qword [rdi]
mov qword [rdx], rax
mov rdx, qword [rdi]
mov rax, qword [rdi + 8]
mov qword [rdx + 8], rax
dec qword [r9 + 0x10]
lea rcx, [rdi + 0x10]
call fcn.140013b20
mov rcx, rdi
call fcn.140260b94
mov qword [rsi], rbx
mov byte [rsi + 8], 0
mov rax, rsi
jmp 0x140016b8e
mov rdx, qword [rdi]
cmp rbx, rdx
je 0x140016b2d
mov rax, qword [rdi + 8]
mov qword [rax], rdx
mov rax, qword [rdx + 8]
mov qword [rax], rbx
mov rax, qword [rbx + 8]
mov qword [rax], rdi
mov rcx, qword [rbx + 8]
mov rax, qword [rdx + 8]
mov qword [rbx + 8], rax
mov rax, qword [rdi + 8]
mov qword [rdx + 8], rax
mov qword [rdi + 8], rcx
add r8, r8
mov rdx, qword [r9 + 0x18]
mov rax, qword [rdx + r8*8]
cmp rax, qword [r9 + 8]
jne 0x140016b4d
mov qword [rdx + r8*8], rdi
mov rax, qword [r9 + 0x18]
mov qword [rax + r8*8 + 8], rdi
jmp 0x140016b7c
cmp rax, rbx
jne 0x140016b58
mov qword [rdx + r8*8], rdi
jmp 0x140016b7c
mov rax, qword [rdx + r8*8 + 8]
mov rcx, qword [rax]
mov qword [rdx + r8*8 + 8], rcx
cmp rcx, rdi
je 0x140016b7c
mov rdx, qword [r9 + 0x18]
mov rax, qword [rdx + r8*8 + 8]
mov rcx, qword [rax + 8]
mov qword [rdx + r8*8 + 8], rcx
mov rcx, r9
call fcn.140016824
mov qword [rsi], rdi
mov byte [rsi + 8], 1
mov rax, rsi
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14007efa0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x2e0]
sub rsp, 0x3e0
mov rax, qword [0x1403be028]
xor rax, rsp
mov qword [rbp + 0x2d0], rax
mov r14, rcx
xor r15d, r15d
mov rcx, qword [rcx + 0x30]
mov rbx, r8
mov rdi, rdx
test rcx, rcx
je 0x14007f164
cmp qword [rdx + 0x18], 8
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x30], r15d
jb 0x14007effc
mov rdx, qword [rdx]
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r8d, eax
cmp eax, 2
je 0x14007f10f
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
ja 0x14007f10f
test r8d, r8d
jne 0x14007f183
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x14007f04a
mov rcx, qword [rbx]
lea rsi, [rbx + 0x10]
mov qword [rsi], r15
mov word [rcx], r15w
cmp dword [rsp + 0x30], 2
ja 0x14007f063
mov al, 1
jmp 0x14007f111
mov edx, dword [rsp + 0x30]
shr rdx, 1
dec rdx
cmp rdx, qword [rsi]
ja 0x14007f089
cmp qword [rbx + 0x18], 8
mov rax, rbx
jb 0x14007f07f
mov rax, qword [rbx]
mov qword [rsi], rdx
mov word [rax + rdx*2], r15w
jmp 0x14007f097
sub rdx, qword [rsi]
xor r8d, r8d
mov rcx, rbx
call fcn.14000b14c
cmp qword [rbx + 0x18], 8
mov rax, rbx
jb 0x14007f0a4
mov rax, qword [rbx]
cmp qword [rdi + 0x18], 8
mov rdx, rdi
jb 0x14007f0b1
mov rdx, qword [rdi]
lea rcx, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rcx
lea r9, [rsp + 0x34]
mov rcx, qword [r14 + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14007f137
mov edx, dword [rsp + 0x30]
shr rdx, 1
dec rdx
cmp rdx, qword [rsi]
ja 0x14007f0fc
cmp qword [rbx + 0x18], 8
jb 0x14007f0ef
mov rbx, qword [rbx]
mov qword [rsi], rdx
mov word [rbx + rdx*2], r15w
jmp 0x14007f05c
sub rdx, qword [rsi]
xor r8d, r8d
mov rcx, rbx
call fcn.14000b14c
jmp 0x14007f05c
xor al, al
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.140235540
mov rbx, qword [rsp + 0x428]
add rsp, 0x3e0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
lea rcx, [r14 + 0x10]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rcx
mov r8d, eax
lea rcx, [rsp + 0x40]
call fcn.140080668
lea rdx, [0x14033a668]
lea rcx, [rsp + 0x40]
call fcn.140238938
int3
mov r9, rdi
lea rcx, [rsp + 0x40]
call fcn.140080778
lea rdx, [0x14033a668]
lea rcx, [rsp + 0x40]
call fcn.140238938
int3
lea rax, [r14 + 0x10]
mov qword [rsp + 0x28], rdi
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call fcn.140080668
lea rdx, [0x14033a668]
lea rcx, [rsp + 0x40]
call fcn.140238938
int3
Function at 0x1400822b4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x3e0
mov rax, qword [0x1403be028]
xor rax, rsp
mov qword [rsp + 0x3d0], rax
mov rdi, rcx
mov rbx, rdx
mov rcx, qword [rcx + 0x30]
test rcx, rcx
je 0x140082388
cmp qword [rdx + 0x18], 8
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x34], 4
jb 0x140082300
mov rdx, qword [rdx]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140082350
cmp eax, 2
je 0x14008232d
cmp eax, 0xea
jne 0x14008235b
xor al, al
mov rcx, qword [rsp + 0x3d0]
xor rcx, rsp
call fcn.140235540
mov rbx, qword [rsp + 0x408]
add rsp, 0x3e0
pop rdi
ret
cmp dword [rsp + 0x30], 4
jne 0x14008232d
mov al, 1
jmp 0x14008232f
lea rcx, [rdi + 0x10]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rcx
mov r8d, eax
lea rcx, [rsp + 0x40]
call fcn.140080668
lea rdx, [0x14033a668]
lea rcx, [rsp + 0x40]
call fcn.140238938
int3
lea r8, str.ORegistryKey.GetValue_failure:_Cannot_get_DWORD_value._The_registry_key_is_closed_or_not_set
lea rcx, [rsp + 0x40]
call fcn.1400805a0
lea rdx, [0x14033a668]
lea rcx, [rsp + 0x40]
call fcn.140238938
int3

Function at 0x140147bc0
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
and dword [rsp + 0x40], 0
mov rsi, rdx
mov rbx, rcx
call fcn.140147924
test al, al
je 0x140147c3b
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x140147bf0
mov rcx, qword [rbx]
lea rdx, [rsp + 0x40]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test eax, eax
je 0x140147c3b
mov edx, edi
mov rcx, rsi
call fcn.140085cc4
mov rdx, qword [rsi + 8]
sub rdx, qword [rsi]
neg rdx
sbb r9, r9
and r9, qword [rsi]
cmp qword [rbx + 0x18], 8
jb 0x140147c25
mov rbx, qword [rbx]
mov r8d, edi
xor edx, edx
mov rcx, rbx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x140147c3b
mov al, 1
jmp 0x140147c3d
xor al, al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1401481f0
Capabilities:
Query environment variable

Disassembly:
push rbx
mov eax, 0x103d0
call fcn.140236610
sub rsp, rax
mov rax, qword [0x1403be028]
xor rax, rsp
mov qword [rsp + 0x103c0], rax
cmp qword [rdx + 0x18], 8
mov rax, rdx
mov rbx, rcx
mov qword [rsp + 0x20], rcx
jb 0x140148226
mov rax, qword [rdx]
mov r8d, 0x7fff
lea rdx, [rsp + 0x3c0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x7ffe
ja 0x140148283
xor eax, eax
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rax
lea rdx, [rsp + 0x3c0]
mov rcx, rbx
mov word [rbx], ax
call fcn.14000b3b4
mov rax, rbx
mov rcx, qword [rsp + 0x103c0]
xor rcx, rsp
call fcn.140235540
add rsp, 0x103d0
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rcx, [rsp + 0x30]
call fcn.1401482a8
lea rdx, [0x14033a668]
lea rcx, [rsp + 0x30]
call fcn.140238938
int3
Function at 0x14014c6a4
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x30]
call fcn.1402380c0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [rsp + 0x20]
add rsp, 0x58
ret

Function at 0x140229600
Capabilities:
Get hostname

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp - 0x31], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1403be028]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rbx, rcx
mov qword [rbp - 0x29], rcx
xor edi, edi
mov dword [rbp - 0x35], edi
mov qword [rbp + 0xf], rdi
mov qword [rbp + 0x17], 7
mov word [rbp - 1], di
lea rsi, [0x1402c1f80]
mov qword [rcx], rsi
add rcx, 8
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], rdi
call fcn.14000b4a4
mov dword [rbp - 0x39], 0x10
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 0x1f]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea rcx, [0x1402b42cc]
lea rdx, [rbp + 0x1f]
test eax, eax
cmove rdx, rcx
movdqa xmm0, xmmword [0x140332d60]
movdqu xmmword [rbp - 0x11], xmm0
mov word [rbp - 0x21], di
lea rcx, [rbp - 0x21]
call fcn.14000b3b4
movups xmm0, xmmword [rbp - 0x21]
movups xmmword [rbx + 0x28], xmm0
movups xmm1, xmmword [rbp - 0x11]
movups xmmword [rbx + 0x38], xmm1
mov qword [rbx], rsi
mov rax, rbx
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140235540
mov rbx, qword [rsp + 0xd0]
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret

Function at 0x140274428
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140274248
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140009830]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140009840]
mov dword [rax], 1
mov rax, qword [0x140009850]
mov dword [rax], 1
mov rax, qword [0x140009820]
mov dword [rax], 1
mov rax, qword [0x1400096e0]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x140009810]
mov dword [0x14000c00c], 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 [0x1400097d0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400097b0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140009690]
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 0x140001920
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 0x140001990
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x14000c0a4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x140001b40
mov rax, qword [0x14000c0a8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400019dc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001a67
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x1400019c0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x140001b9d
mov rax, qword [0x14000c0a8]
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 [0x14000c0a8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001b82
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001a60
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001af0
add dword [0x14000c0a4], 1
cmp ebx, 8
jae 0x140001a98
test bl, 4
jne 0x140001b50
test ebx, ebx
je 0x140001a89
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x140001b70
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 0x140001a89
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 0x140001aca
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 [0x14000c0a8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001a60
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 0x1400019e7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x140001a89
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x140001a89
mov rax, qword [0x14000c0a8]
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]
Function at 0x1400020b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14000c100]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000c0e0]
test rbx, rbx
je 0x140002104
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x1400020fb
test r12, r12
je 0x1400020fb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400020e0
lea rcx, [0x14000c100]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002330
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x140002340
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x140002350
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140002395
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x14000238c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x140002397
add rax, 0x28
cmp rax, r9
jne 0x140002378
xor eax, eax
ret

Function at 0x140002440
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x1400096e0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x1400024b9
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x1400024b9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x1400024b6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x1400024ad
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x1400024b9
add r8, 0x28
cmp r8, r9
jne 0x140002498
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x1400025a0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1400096e0]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14000260f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x14000260f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x14000260d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002604
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002618
add rax, 0x28
cmp rax, r9
jne 0x1400025f0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x140002630
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x1400096e0]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x1400026a8
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x1400026a8
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x1400026a8
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x1400026a8
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x14000269c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x1400026b0
add rdx, 0x28
cmp rdx, r10
jne 0x140002688
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x1400026c0
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x1400026ce
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400026a5
test r8d, r8d
jg 0x1400026b8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret