joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400021dc
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140004650], rbx
je 0x140002228
cmp rax, rbx
jne 0x14000221b
mov ebx, 1
mov esi, ebx
jmp 0x14000222d
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140002200
mov ebx, 1
mov eax, dword [0x140004658]
cmp eax, ebx
jne 0x140002243
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x1400022a8
mov eax, dword [0x140004658]
test eax, eax
jne 0x1400022a2
mov dword [0x140004658], ebx
lea r15, [0x1400033b0]
lea rdi, [0x140003398]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140002294
test eax, eax
jne 0x140002298
cmp qword [rdi], 0
je 0x140002289
mov rax, qword [rdi]
mov rcx, qword [0x140003378]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14000226a
test eax, eax
je 0x1400022a8
mov eax, 0xff
jmp 0x140002384
mov dword [0x140004064], ebx
mov eax, dword [0x140004658]
cmp eax, ebx
jne 0x1400022cf
lea rdx, [0x140003390]
lea rcx, [0x140003380]
call sub.msvcrt.dll__initterm
mov dword [0x140004658], 2
test esi, esi
jne 0x1400022dc
xor eax, eax
xchg qword [0x140004650], rax
cmp qword [0x140004660], 0
je 0x140002310
lea rcx, [0x140004660]
call fcn.140002540
test eax, eax
je 0x140002310
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140004660]
mov r9, qword [0x140003378]
call r9
mov r8, qword [0x140004078]
mov rdx, qword [0x140004070]
mov ecx, dword [0x140004068]
call fcn.140001800
mov dword [0x140004060], eax
cmp dword [0x140004080], 0
jne 0x140002340
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140004064], 0
jne 0x140002355
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140004060]
jmp 0x140002384
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.140164000
add rsp, 0x28
jmp 0x1400021dc

Function at 0x140002450
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000249c
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140002494
cmp dword [rcx + 0x3c], edx
jl 0x140002494
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140002494
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000249c
mov rax, rdx
add rsp, 0x18
ret
Function at 0x1400041e0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140004214
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140004200
ret

Function at 0x140005fc0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 8], rcx
push rdi
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rsi
mov rdi, r9
mov r14, rdx
mov rsi, rcx
movzx ecx, byte [r8]
mov eax, ecx
movabs rdx, 0xcbf29ce484222325
xor rax, rdx
movabs rdx, 0x100000001b3
imul rax, rdx
mov r8, qword [rsi + 0x30]
and r8, rax
add r8, r8
mov rdx, qword [rsi + 0x18]
mov rbx, qword [rsi + 8]
mov rax, qword [rdx + r8*8]
cmp rbx, rax
je 0x14000605c
mov rbx, qword [rdx + r8*8 + 8]
mov rbx, qword [rbx]
cmp rbx, rax
je 0x14000605c
mov rbx, qword [rbx + 8]
cmp cl, byte [rbx + 0x10]
jne 0x140006033
mov rdx, rdi
mov rcx, rsi
call fcn.140012b80
mov qword [r14], rbx
mov byte [r14 + 8], 0
mov rax, r14
jmp 0x14000618b
mov qword [rsp + 0x20], rdi
mov rax, qword [r9]
cmp rbx, rax
je 0x140006096
mov rcx, qword [r9 + 8]
mov qword [rcx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rbx
mov rcx, qword [rbx + 8]
mov qword [rcx], rdi
mov rdx, qword [rbx + 8]
mov rcx, qword [rax + 8]
mov qword [rbx + 8], rcx
mov rcx, qword [r9 + 8]
mov qword [rax + 8], rcx
mov qword [r9 + 8], rdx
mov rdx, qword [rsi + 0x18]
mov rax, qword [rdx + r8*8]
cmp rax, qword [rsi + 8]
jne 0x1400060b3
mov qword [rdx + r8*8], rdi
mov rax, qword [rsi + 0x18]
mov qword [rax + r8*8 + 8], rdi
jmp 0x1400060e2
cmp rax, rbx
jne 0x1400060be
mov qword [rdx + r8*8], rdi
jmp 0x1400060e2
mov rax, qword [rdx + r8*8 + 8]
mov rcx, qword [rax]
mov qword [rdx + r8*8 + 8], rcx
cmp rcx, rdi
je 0x1400060e2
mov rdx, qword [rsi + 0x18]
mov rax, qword [rdx + r8*8 + 8]
mov rcx, qword [rax + 8]
mov qword [rdx + r8*8 + 8], rcx
mov rax, qword [rsi + 0x10]
mov rdx, qword [rsi + 0x38]
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
movss xmm1, dword [0x140069678]
test rax, rax
jns 0x140006103
addss xmm0, xmm1
xorps xmm2, xmm2
cvtsi2ss xmm2, rdx
test rdx, rdx
jns 0x140006114
addss xmm2, xmm1
divss xmm0, xmm2
comiss xmm0, dword [rsi]
jbe 0x140006180
cmp rdx, 0x200
jae 0x140006130
lea rdx, [rdx*8]
jmp 0x140006142
movabs rax, 0xfffffffffffffff
cmp rdx, rax
jae 0x140006142
add rdx, rdx
mov rcx, rsi
call fcn.140015440
mov rax, qword [rsi + 8]
cmp qword [rax], rax
je 0x140006180
mov r15, qword [rax + 8]
nop word [rax + rax]
mov rbx, qword [rsi + 8]
mov rbx, qword [rbx]
lea r8, [rbx + 0x10]
mov r9, rbx
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140005fc0
cmp rbx, r15
jne 0x140006160
mov qword [r14], rdi
mov byte [r14 + 8], 1
mov rax, r14
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x140006400
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rdi, r9
mov r14, rdx
mov rsi, rcx
mov rdx, qword [r8]
movzx r8d, dl
movabs rax, 0xcbf29ce484222325
xor r8, rax
movabs r9, 0x100000001b3
imul r8, r9
mov rax, rdx
shr rax, 8
movzx ecx, al
xor r8, rcx
imul r8, r9
mov rax, rdx
shr rax, 0x10
movzx ecx, al
xor r8, rcx
imul r8, r9
mov rax, rdx
shr rax, 0x18
movzx ecx, al
xor r8, rcx
imul r8, r9
mov rax, rdx
shr rax, 0x20
movzx ecx, al
xor r8, rcx
imul r8, r9
mov rax, rdx
shr rax, 0x28
movzx ecx, al
xor r8, rcx
imul r8, r9
mov rax, rdx
shr rax, 0x30
movzx ecx, al
xor r8, rcx
imul r8, r9
mov rax, rdx
shr rax, 0x38
xor r8, rax
imul r8, r9
mov r9, qword [rsi + 0x30]
and r9, r8
add r9, r9
mov rcx, qword [rsi + 0x18]
mov rbx, qword [rsi + 8]
mov rax, qword [rcx + r9*8]
cmp rbx, rax
je 0x14000652e
mov rbx, qword [rcx + r9*8 + 8]
mov rbx, qword [rbx]
cmp rbx, rax
je 0x14000652e
mov rbx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
jne 0x1400064e0
mov rcx, qword [rdi + 8]
mov rax, qword [rdi]
mov qword [rcx], rax
mov rcx, qword [rdi]
mov rax, qword [rdi + 8]
mov qword [rcx + 8], rax
dec qword [rsi + 0x10]
lea rcx, [rdi + 0x10]
call fcn.14000e250
mov edx, 0x38
mov rcx, rdi
call fcn.14004033c
mov qword [r14], rbx
mov byte [r14 + 8], 0
mov rax, r14
jmp 0x14000665b
mov qword [rsp + 0x80], rdi
mov rax, qword [rdi]
cmp rbx, rax
je 0x14000656b
mov rcx, qword [rdi + 8]
mov qword [rcx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rbx
mov rcx, qword [rbx + 8]
mov qword [rcx], rdi
mov rdx, qword [rbx + 8]
mov rcx, qword [rax + 8]
mov qword [rbx + 8], rcx
mov rcx, qword [rdi + 8]
mov qword [rax + 8], rcx
mov qword [rdi + 8], rdx
mov rdx, qword [rsi + 0x18]
mov rax, qword [rdx + r9*8]
cmp rax, qword [rsi + 8]
jne 0x140006588
mov qword [rdx + r9*8], rdi
mov rax, qword [rsi + 0x18]
mov qword [rax + r9*8 + 8], rdi
jmp 0x1400065b7
cmp rax, rbx
jne 0x140006593
mov qword [rdx + r9*8], rdi
jmp 0x1400065b7
mov rax, qword [rdx + r9*8 + 8]
mov rcx, qword [rax]
mov qword [rdx + r9*8 + 8], rcx
cmp rcx, rdi
je 0x1400065b7
mov rdx, qword [rsi + 0x18]
mov rax, qword [rdx + r9*8 + 8]
mov rcx, qword [rax + 8]
mov qword [rdx + r9*8 + 8], rcx
mov rax, qword [rsi + 0x10]
mov rdx, qword [rsi + 0x38]
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
movss xmm1, dword [0x140069678]
test rax, rax
jns 0x1400065d8
addss xmm0, xmm1
xorps xmm2, xmm2
cvtsi2ss xmm2, rdx
test rdx, rdx
jns 0x1400065e9
addss xmm2, xmm1
divss xmm0, xmm2
comiss xmm0, dword [rsi]
jbe 0x140006650
cmp rdx, 0x200
jae 0x140006605
lea rdx, [rdx*8]
jmp 0x140006617
movabs rax, 0xfffffffffffffff
cmp rdx, rax
jae 0x140006617
add rdx, rdx
mov rcx, rsi
call fcn.140015440
mov rax, qword [rsi + 8]
cmp qword [rax], rax
je 0x140006650
mov r15, qword [rax + 8]
nop dword [rax]
mov rbx, qword [rsi + 8]
mov rbx, qword [rbx]
lea r8, [rbx + 0x10]
mov r9, rbx
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.140006400
cmp rbx, r15
jne 0x140006630
mov qword [r14], rdi
mov byte [r14 + 8], 1
mov rax, r14
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140008c60
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
mov r10, qword [r8]
mov rbp, rcx
movabs rcx, 0xcbf29ce484222325
mov rbx, rdx
movabs rdx, 0x100000001b3
mov rax, r10
shr rax, 8
mov rdi, r8
mov r8, qword [rbp + 0x30]
movzx r9d, al
movzx eax, r10b
xor rax, rcx
imul rax, rdx
xor r9, rax
mov rax, r10
imul r9, rdx
shr rax, 0x10
movzx ecx, al
mov rax, r10
xor r9, rcx
shr rax, 0x18
imul r9, rdx
movzx ecx, al
mov rax, r10
xor r9, rcx
shr rax, 0x20
imul r9, rdx
movzx ecx, al
mov rax, r10
xor r9, rcx
shr rax, 0x28
imul r9, rdx
movzx ecx, al
mov rax, r10
xor r9, rcx
shr rax, 0x30
imul r9, rdx
movzx ecx, al
mov rax, r10
xor r9, rcx
shr rax, 0x38
mov rcx, qword [rbp + 0x18]
imul r9, rdx
xor r9, rax
imul r9, rdx
mov rdx, qword [rbp + 8]
and r8, r9
add r8, r8
mov r9, qword [rcx + r8*8]
lea r11, [rcx + r8*8]
mov rax, r9
nop dword [rax]
cmp r9, rdx
jne 0x140008d3a
mov rcx, rdx
jmp 0x140008d41
mov rcx, qword [r11 + 8]
mov rcx, qword [rcx]
cmp rax, rcx
je 0x140008d6d
cmp qword [rax + 0x10], r10
je 0x140008d51
mov rax, qword [rax]
jmp 0x140008d30
cmp rax, rdx
je 0x140008d6d
mov qword [rbx], rax
mov rax, rbx
mov byte [rbx + 8], 0
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 0x60], rdi
lea rax, [rsp + 0x50]
mov rdi, qword [rdx]
lea r9, [0x1400683c8]
mov qword [rsp + 0x28], rax
lea rcx, [rbp + 8]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x58], r14
mov rdx, rdi
mov qword [rsp + 0x20], rax
mov r14, qword [rdi + 8]
mov r8, r14
call fcn.140005010
mov rdx, rax
movabs rcx, 0x492492492492491
mov rax, qword [rbp + 0x10]
sub rcx, rax
cmp rcx, 1
jb 0x140008dfb
inc rax
mov rcx, rbp
mov qword [rbp + 0x10], rax
mov qword [rdi + 8], rdx
mov qword [r14], rdx
mov rdx, rbx
mov r9, qword [rbp + 8]
mov r9, qword [r9]
lea r8, [r9 + 0x10]
call fcn.140006400
mov r14, qword [rsp + 0x58]
mov rax, rbx
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
lea rcx, str.list_T__too_long
call fcn.14003d36c
int3

Function at 0x140009570
Capabilities:
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x20
movzx eax, byte [r8 + 0x10]
mov r9, rcx
movabs rcx, 0xcbf29ce484222325
mov rbx, rdx
xor rax, rcx
movabs rcx, 0x100000001b3
imul rax, rcx
mov r10, qword [r9 + 0x30]
mov rcx, qword [r9 + 0x18]
and r10, rax
shl r10, 4
add rcx, r10
mov rax, qword [rcx]
cmp qword [rcx + 8], r8
jne 0x1400095fc
cmp rax, r8
jne 0x1400095e2
mov rax, qword [r9 + 8]
mov qword [rcx], rax
mov rcx, qword [r9 + 0x18]
mov rax, qword [r9 + 8]
mov qword [r10 + rcx + 8], rax
lea rcx, [r9 + 8]
call fcn.14001ae00
mov rax, rbx
add rsp, 0x20
pop rbx
ret
mov rax, qword [r8 + 8]
mov qword [rcx + 8], rax
lea rcx, [r9 + 8]
call fcn.14001ae00
mov rax, rbx
add rsp, 0x20
pop rbx
ret
cmp rax, r8
jne 0x140009607
mov rax, qword [r8]
mov qword [rcx], rax
lea rcx, [r9 + 8]
call fcn.14001ae00
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x140035090
Capabilities:
Encode data using xor

Disassembly:
test rcx, rcx
je 0x1400352f0
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x820
mov rbx, rdx
mov rsi, rcx
test rdx, rdx
je 0x1400352e0
mov r10d, dword [rdx + 0x18]
mov r11, qword [rdx]
mov eax, r10d
shl rax, 0xa
mov edx, 8
add rax, 0xfffffffffffffc00
mov qword [rsp + 0x830], rdi
add rax, r11
lea rdi, [rsp + 0x20]
nop
lea rdi, [rdi + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rdi - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rdi - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rdi - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rdi - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rdi - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rdi - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rdi - 0x20], xmm0
movups xmmword [rdi - 0x10], xmm1
sub rdx, 1
jne 0x1400350e0
mov r9d, dword [rbx + 0x1c]
mov r8d, 1
cmp r9d, r8d
jbe 0x140035227
nop word [rax + rax]
inc r8d
lea rdi, [rsp + 0x20]
mov edx, r8d
xor eax, eax
imul edx, r10d
dec edx
shl rdx, 0xa
add rdx, r11
lea rcx, [rdx + 0x3f8]
cmp rdi, rcx
ja 0x14003519c
lea rcx, [rsp + 0x418]
cmp rcx, rdx
jb 0x14003519c
mov rcx, qword [rdx + rax*8]
xor qword [rsp + rax*8 + 0x20], rcx
inc rax
cmp rax, 0x80
jl 0x140035183
jmp 0x14003521e
lea rcx, [rsp + 0x20]
sub rcx, rdx
lea rdi, [rsp + 0x30]
sub rdi, rdx
lea rax, [rdx + 0x20]
mov edx, 0x10
nop word [rax + rax]
movdqu xmm0, xmmword [rcx + rax - 0x20]
movdqu xmm1, xmmword [rax - 0x20]
lea rax, [rax + 0x40]
pxor xmm1, xmm0
movdqu xmmword [rcx + rax - 0x60], xmm1
movdqu xmm0, xmmword [rdi + rax - 0x60]
movdqu xmm1, xmmword [rax - 0x50]
pxor xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rdi + rax - 0x60], xmm1
movdqu xmm1, xmmword [rax + rcx - 0x40]
pxor xmm1, xmm0
movdqu xmmword [rax + rcx - 0x40], xmm1
movdqu xmm0, xmmword [rax + rdi - 0x40]
movdqu xmm1, xmmword [rax - 0x30]
pxor xmm1, xmm0
movdqu xmmword [rax + rdi - 0x40], xmm1
sub rdx, 1
jne 0x1400351c0
cmp r8d, r9d
jb 0x140035150
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x420]
call fcn.140035790
mov edx, dword [rsi + 8]
lea r8, [rsp + 0x420]
mov rcx, qword [rsi]
mov r9d, 0x400
call fcn.14003c7c0
mov edx, dword [0x1400923b8]
test edx, edx
je 0x140035279
xor eax, eax
lea rdi, [rsp + 0x20]
mov ecx, 0x400
rep stosb byte [rdi], al
lea rdi, [rsp + 0x420]
mov ecx, 0x400
rep stosb byte [rdi], al
cmp dword [rbx + 0x28], 0
je 0x140035290
mov edx, dword [rsi + 8]
mov rcx, qword [rsi]
call fcn.14003ce10
mov edx, dword [0x1400923b8]
mov r8d, dword [rbx + 0x10]
shl r8d, 0xa
test edx, edx
je 0x1400352ab
mov rdi, qword [rbx]
test rdi, rdi
je 0x1400352ab
xor eax, eax
mov ecx, r8d
rep stosb byte [rdi], al
cmp dword [rbx + 0x2c], 0
mov rdi, qword [rsp + 0x830]
jne 0x1400352e0
mov rax, qword [rsi + 0x68]
mov rcx, qword [rbx]
test rax, rax
je 0x1400352db
mov rdx, r8
mov rbx, qword [rsp + 0x838]
add rsp, 0x820
pop rsi
jmp rax
call fcn.14004454c
mov rbx, qword [rsp + 0x838]
add rsp, 0x820
pop rsi
ret
Function at 0x140035c00
Capabilities:
Encode data using xor

Disassembly:
lea rax, [rdx + 0x3f8]
mov r8d, 0x80
lea r10, [rcx + 0x3f8]
cmp rcx, rax
ja 0x140035c21
xor r9d, r9d
cmp r10, rdx
jae 0x140035c91
mov r9, rdx
lea rax, [rcx + 0x10]
sub r9, rcx
mov r10d, 0x10
movdqu xmm0, xmmword [rax - 0x10]
movdqu xmm1, xmmword [r9 + rax - 0x10]
movdqu xmm2, xmmword [r9 + rax]
lea rax, [rax + 0x40]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x50], xmm1
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmm1, xmmword [r9 + rax - 0x30]
pxor xmm2, xmm0
movdqu xmmword [rax - 0x40], xmm2
movdqu xmm0, xmmword [rax - 0x30]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x30], xmm1
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm1, xmmword [r9 + rax - 0x20]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x20], xmm1
sub r10, 1
jne 0x140035c31
mov r9, r8
cmp r9, r8
jae 0x140035cb1
sub rdx, rcx
lea rax, [rcx + r9*8]
sub r8, r9
mov rcx, qword [rax + rdx]
xor qword [rax], rcx
lea rax, [rax + 8]
sub r8, 1
jne 0x140035ca0
ret

Function at 0x14003a3e0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
test rcx, rcx
je 0x14003a41f
test rdx, rdx
je 0x14003a41f
xor eax, eax
mov r9, r8
mov r8, rdx
mov qword [rsp + 0x28], rax
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call fcn.140049b6c
mov qword [rbx], rax
neg rax
sbb eax, eax
neg eax
dec eax
add rsp, 0x30
pop rbx
ret
mov eax, 0xffffffff
add rsp, 0x30
pop rbx
ret
Function at 0x140044838
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x1400446cb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400446cb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400446cb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400446cb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400446cb
cmp dword [rcx + 0x84], 0xe
jbe 0x1400446cb
cmp dword [rcx + 0xf8], 0
je 0x1400446cb
mov ecx, ebx
call fcn.14004476c
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140044568
cmp dword [rbp + 0x20], 0
je 0x140044718
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140044720
int3
xor r8d, r8d
xor edx, edx
jmp 0x140044664
Function at 0x140001001
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400047e0]
mov rcx, qword [0x140004790]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x1400047f0]
cmp word [rcx], 0x5a4d
mov dword [rax], 1
mov rax, qword [0x140004800]
mov dword [rax], 1
jne 0x140001083
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x140001083
mov ecx, dword [rax + 0x18]
cmp cx, 0x10b
je 0x14000105e
cmp cx, 0x20b
je 0x14000106d
jmp 0x140001083
cmp dword [rax + 0x74], 0xe
jbe 0x140001083
cmp dword [rax + 0xe8], 0
jmp 0x14000107d
cmp dword [rax + 0x84], 0xe
jbe 0x140001083
cmp dword [rax + 0xf8], 0
setne dl
movzx edx, dl
mov rax, qword [0x1400047d0]
mov dword [0x14000700c], edx
mov ecx, 2
cmp dword [rax], 0
jne 0x14000109f
mov ecx, 1
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x1400048a0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x140004880]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x140004740]
cmp dword [rax], 1
jne 0x1400010e1
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret

Function at 0x140001e34
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x1400070a8]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x1400070a4]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140001e82
mov rdx, qword [rax]
cmp r12, rdx
jb 0x140001e7a
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001f69
inc ebx
add rax, 0x28
jmp 0x140001e5a
mov rcx, r12
call sym.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
jne 0x140001ea1
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call sym.__report_error
movsxd rbx, ebx
mov rax, qword [0x1400070a8]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call sym._GetPEImageBase
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400070a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140001f03
mov rax, qword [0x1400070a8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001f63
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001f63
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 [0x1400070a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001f63
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
inc dword [0x1400070a4]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140002390
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x140007100]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x1400023dc
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x1400023d6
test eax, eax
jne 0x1400023d6
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x1400023ae
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002590
Capabilities:
Parse pe header

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

Function at 0x1400025b4
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x1400025ee
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x1400025e5
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400025f0
inc r8d
add rax, 0x28
jmp 0x1400025cc
xor eax, eax
ret

Function at 0x140002661
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140004790]
mov r8, rcx
mov rcx, r9
call sym._ValidateImageBase
test eax, eax
je 0x14000268d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp sym._FindPESection
xor eax, eax
add rsp, 0x28
ret