joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180117120
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x18011719a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x180117190
cmp r11, r10
ja 0x180117233
cmp r10, rdx
ja 0x180117247
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x180117192
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x180117170
jmp 0x180117207
ja 0x18011719a
mov r11, r10
cmp rax, r8
jne 0x180117142
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x18011720b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x1801171e0
mov r8, r10
sub ecx, r9d
jns 0x1801171fe
jmp 0x18011720d
cmp r10, rdx
je 0x180117219
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x18011720d
xor al, 1
cmp r8, rdx
jne 0x1801171c0
jmp 0x18011720d
xor eax, eax
jmp 0x18011720d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x1801c6359]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.180128fe0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.1801294f0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.180129470
ud2

Function at 0x180118e70
Capabilities:
Encode data using xor

Disassembly:
mov r9, rdx
mov r10, rcx
mov rax, 0xffffffffffffffff
test r8, r8
je 0x180118eb9
sub r10, rdx
nop word [rax + rax]
mov rcx, qword [r10 + r9]
xor rcx, qword [r9]
lea r9, [r9 + 8]
lea rdx, [rcx - 1]
not rcx
shr rdx, 0x3f
shr rcx, 0x3f
and rdx, rcx
neg rdx
and rax, rdx
sub r8, 1
jne 0x180118e90
ret

Function at 0x180119360
Capabilities:
Encode data using xor

Disassembly:
xor r9b, r9b
xor r10d, r10d
mov r11, rcx
test r8, r8
je 0x180119416
sub rdx, rcx
cmp r8, 0x20
jb 0x1801193fc
mov rcx, r8
lea rax, [r11 + 0x10]
and rcx, 0xffffffffffffffe0
xorps xmm3, xmm3
xorps xmm2, xmm2
movdqu xmm0, xmmword [rax - 0x10]
add r10, 0x20
movdqu xmm1, xmmword [rdx + rax - 0x10]
lea rax, [rax + 0x20]
xorps xmm1, xmm0
orps xmm3, xmm1
movdqu xmm1, xmmword [rdx + rax - 0x20]
movdqu xmm0, xmmword [rax - 0x20]
xorps xmm1, xmm0
orps xmm2, xmm1
cmp r10, rcx
jb 0x180119390
orps xmm2, xmm3
movdqa xmm0, xmm2
psrldq xmm0, 8
orps xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 4
orps xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 2
orps xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 1
orps xmm2, xmm0
movd r9d, xmm2
cmp r10, r8
jae 0x180119416
lea rax, [r10 + r11]
sub r8, r10
movzx ecx, byte [rdx + rax]
xor cl, byte [rax]
lea rax, [rax + 1]
or r9b, cl
sub r8, 1
jne 0x180119403
movzx eax, r9b
ret
Function at 0x18011d0d0
Capabilities:
Encrypt data using curve25519

Disassembly:
movzx eax, byte [rcx + 0x1f]
and byte [rcx], 0xf8
and al, 0x3f
or al, 0x40
mov byte [rcx + 0x1f], al
ret
Function at 0x1801213b0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rdi
sub rsp, 0x88
mov rax, qword [0x1801ed180]
xor rax, rsp
mov qword [rsp + 0x60], rax
movups xmm0, xmmword [r8]
mov rdi, rcx
lea rcx, [rsp + 0x20]
movups xmm1, xmmword [r8 + 0x10]
mov rbx, rdx
movaps xmmword [rsp + 0x20], xmm0
movups xmm0, xmmword [r8 + 0x20]
movaps xmmword [rsp + 0x30], xmm1
movups xmm1, xmmword [r8 + 0x30]
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x50], xmm1
call fcn.180121ec0
xor r11d, r11d
test rbx, rbx
je 0x180121556
mov qword [rsp + 0xa8], rbp
movabs rbp, 0xff000000ff00
mov qword [rsp + 0xb8], rsi
mov esi, 0xffff0000
mov qword [rsp + 0x80], r12
movabs r12, 0xffffffff00000000
mov qword [rsp + 0x78], r14
movabs r14, 0xf000f000f000f0
mov qword [rsp + 0x70], r15
lea r15, [rsp + 0x20]
nop word [rax + rax]
mov r10, qword [rsp + r11*8 + 0x40]
lea rdi, [rdi + 0x10]
mov r8, qword [r15 + r11*8]
mov rdx, r10
shl rdx, 0x20
and r10, r12
mov eax, r8d
inc r11
or rdx, rax
shr r8, 0x20
or r10, r8
mov rcx, rdx
shr rcx, 0x10
xor rcx, rdx
and rcx, rsi
mov rax, rcx
shl rax, 0x10
xor rax, rcx
xor rdx, rax
mov rcx, rdx
shr rcx, 8
xor rcx, rdx
and rcx, rbp
mov rax, rcx
shl rax, 8
xor rax, rcx
mov rcx, r10
xor rdx, rax
shr rcx, 0x10
xor rcx, r10
mov rax, rdx
shr rax, 4
and rcx, rsi
xor rax, rdx
and rax, r14
mov r9, rax
shl r9, 4
xor r9, rax
mov rax, rcx
shl rax, 0x10
xor r9, rdx
xor rax, rcx
mov qword [rdi - 0x10], r9
xor r10, rax
mov rcx, r10
shr rcx, 8
xor rcx, r10
and rcx, rbp
mov rax, rcx
shl rax, 8
xor rax, rcx
xor r10, rax
mov rcx, r10
shr rcx, 4
xor rcx, r10
and rcx, r14
mov rax, rcx
shl rax, 4
xor rax, rcx
xor rax, r10
mov qword [rdi - 8], rax
cmp r11, rbx
jb 0x180121460
mov r15, qword [rsp + 0x70]
mov r14, qword [rsp + 0x78]
mov r12, qword [rsp + 0x80]
mov rsi, qword [rsp + 0xb8]
mov rbp, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.180125040
add rsp, 0x88
pop rdi
pop rbx
ret
Function at 0x1801217f0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rdi, rcx
mov dword [rcx + 0xf0], send
lea rcx, [rbp - 0x50]
mov rbx, rdx
call fcn.180121010
movups xmm1, xmmword [rbp - 0x50]
lea rdx, [rbx + 0x10]
lea rcx, [rbp - 0x60]
movups xmmword [rdi], xmm1
call fcn.180121010
movdqu xmm3, xmmword [rbp - 0x60]
mov ebx, 2
lea r15, [0x18015f240]
movabs r14, 0xf000000000000
movups xmmword [rdi + 0x10], xmm3
add rdi, 0x20
xor esi, esi
xorps xmm0, xmm0
mov qword [rbp - 0x38], rsi
movdqu xmmword [rbp - 0x30], xmm0
lea rcx, [rbp - 0x40]
movdqa xmm0, xmm3
mov qword [rbp - 0x18], rsi
psrldq xmm0, 8
xorps xmm1, xmm1
movq qword [rbp - 0x20], xmm0
movdqu xmmword [rbp - 0x10], xmm1
movq qword [rbp - 0x40], xmm3
call fcn.180121ec0
lea rcx, [rbp - 0x40]
call fcn.1801219f0
lea rcx, [rbp - 0x40]
call fcn.180121ec0
mov rax, qword [rbp - 0x40]
mov rcx, rbx
mov qword [rbp - 0x60], rax
mov rax, qword [rbp - 0x20]
shr rcx, 1
mov qword [rbp - 0x58], rax
mov rax, rsi
movzx r9d, byte [rcx + r15 - 1]
nop word [rax + rax]
mov rcx, qword [rbp + rax*8 - 0x60]
mov rdx, r9
mov r8, rcx
and rcx, r14
shr r8, 0x10
or r8, rcx
movzx ecx, al
shl cl, 2
shr rdx, cl
shr r8, 0x24
and edx, 0xf
xor r8, rdx
xor r8, qword [rbp + rax*8 - 0x50]
mov rcx, r8
shl rcx, 0x10
xor rcx, r8
shl rcx, 0x10
xor rcx, r8
shl rcx, 0x10
xor rcx, r8
mov qword [rbp + rax*8 - 0x50], rcx
inc rax
cmp rax, 2
jb 0x1801218d0
movups xmm2, xmmword [rbp - 0x50]
movups xmmword [rdi], xmm2
cmp rbx, 0xe
je 0x1801219c9
movq qword [rbp - 0x40], xmm2
lea rcx, [rbp - 0x40]
psrldq xmm2, 8
xorps xmm0, xmm0
xorps xmm1, xmm1
movq qword [rbp - 0x20], xmm2
mov qword [rbp - 0x38], rsi
movdqu xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x18], rsi
movdqu xmmword [rbp - 0x10], xmm1
call fcn.180121ec0
lea rcx, [rbp - 0x40]
call fcn.1801219f0
lea rcx, [rbp - 0x40]
call fcn.180121ec0
mov rax, qword [rbp - 0x40]
add rbx, 2
mov qword [rbp - 0x60], rax
mov rax, qword [rbp - 0x20]
mov qword [rbp - 0x58], rax
movdqu xmm1, xmmword [rbp - 0x60]
psrlq xmm1, 0x30
xorps xmm1, xmm3
movdqa xmm3, xmm1
movdqa xmm0, xmm1
psllq xmm3, 0x10
xorps xmm3, xmm1
psllq xmm0, 0x20
xorps xmm3, xmm0
psllq xmm1, 0x30
xorps xmm3, xmm1
movups xmmword [rdi + 0x10], xmm3
add rdi, 0x20
cmp rbx, 0xe
jbe 0x180121860
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x180121d50
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
xorps xmm0, xmm0
xor esi, esi
mov rbx, r8
mov rdi, rdx
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm0
movups xmmword [rcx + 0x20], xmm0
movups xmmword [rcx + 0x30], xmm0
test r8, r8
je 0x180121ea7
mov qword [rsp + 0x40], rbp
movabs rbp, 0xf000f000f000f0
mov qword [rsp + 0x48], r12
movabs r12, 0xffffffff00000000
mov qword [rsp + 0x50], r14
movabs r14, 0xff000000ff00
mov qword [rsp + 0x58], r15
mov r15d, 0xffff0000
nop dword [rax]
nop word [rax + rax]
mov rdx, qword [rdi]
mov r10, qword [rdi + 8]
lea rdi, [rdi + 0x10]
mov rax, rdx
shr rax, 4
xor rax, rdx
and rax, rbp
mov r8, rax
shl r8, 4
xor r8, rax
xor r8, rdx
mov rdx, r8
shr rdx, 8
xor rdx, r8
and rdx, r14
mov rax, rdx
shl rax, 8
xor rax, rdx
xor r8, rax
mov rax, r8
shr rax, 0x10
xor rax, r8
and rax, r15
mov r11, rax
shl r11, 0x10
xor r11, rax
mov rax, r10
shr rax, 4
xor r11, r8
xor rax, r10
and rax, rbp
mov r9, rax
shl r9, 4
xor r9, rax
xor r9, r10
mov rdx, r9
shr rdx, 8
xor rdx, r9
and rdx, r14
mov rax, rdx
shl rax, 8
xor rax, rdx
xor r9, rax
mov rax, r9
shr rax, 0x10
xor rax, r9
and rax, r15
mov r8, rax
shl r8, 0x10
xor r8, rax
mov eax, r11d
xor r8, r9
shr r11, 0x20
mov rdx, r8
and r8, r12
shl rdx, 0x20
or r11, r8
or rdx, rax
mov qword [rcx + rsi*8 + 0x20], r11
mov qword [rcx + rsi*8], rdx
inc rsi
cmp rsi, rbx
jb 0x180121dc0
mov r15, qword [rsp + 0x58]
mov r14, qword [rsp + 0x50]
mov r12, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
pop rsi
pop rbx
jmp fcn.180121ec0
Function at 0x180122000
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x1801221e1
mov r11, rsp
push rbp
push rdi
push r12
push r14
push r15
sub rsp, 0x4c0
mov rax, qword [0x1801ed180]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
mov rbp, qword [rsp + 0x510]
mov rdi, r9
mov qword [r11 + 0x18], rbx
mov r15, r8
mov qword [r11 - 0x30], rsi
lea rbx, [rsp + 0x68]
mov qword [r11 - 0x38], r13
mov r12, rdx
lea r13, [r9 + 0xf0]
mov r14, rcx
xor esi, esi
nop dword [rax + rax]
mov rdx, qword [rdi]
lea rcx, [rbx - 8]
movq xmm0, qword [rdi + 8]
mov qword [rcx], rdx
unpcklpd xmm0, xmm0
movups xmmword [rbx + 0x18], xmm0
mov qword [rbx], rdx
mov qword [rbx + 8], rdx
movups xmmword [rbx + 0x28], xmm0
mov qword [rbx + 0x10], rdx
call fcn.180121ec0
mov eax, dword [r13]
lea rdi, [rdi + 0x10]
inc rsi
lea rbx, [rbx + 0x40]
cmp rsi, rax
jbe 0x180122060
mov r8d, 4
lea rax, [rsp + 0x420]
mov ecx, r8d
lea rax, [rax + 0x10]
movups xmm0, xmmword [rbp]
movups xmmword [rax - 0x10], xmm0
sub rcx, 1
jne 0x1801220b0
mov edi, dword [rsp + 0x42c]
lea rbx, [rsp + 0x460]
bswap edi
sub rbx, r14
nop word [rax + rax]
xor ecx, ecx
lea rdx, [rsp + 0x42c]
nop word [rax + rax]
lea eax, [rcx + rdi]
inc rcx
lea rdx, [rdx + 0x10]
bswap eax
mov dword [rdx - 0x10], eax
cmp rcx, 4
jb 0x1801220f0
cmp r15, 4
lea rdx, [rsp + 0x420]
mov rsi, r15
lea rcx, [rsp + 0x20]
cmovae rsi, r8
mov r8, rsi
call fcn.180121d50
mov edx, dword [r13]
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.180121110
lea r8, [rsp + 0x20]
mov rdx, rsi
lea rcx, [rsp + 0x460]
call fcn.1801213b0
test rsi, rsi
je 0x18012218b
mov r8, r12
mov rax, r14
sub r8, r14
mov r9, rsi
nop
mov edx, 2
nop word [rax + rax]
mov rcx, qword [rbx + rax]
xor rcx, qword [rax]
mov qword [r8 + rax], rcx
add rax, 8
sub rdx, 1
jne 0x180122170
sub r9, 1
jne 0x180122160
sub r15, rsi
je 0x1801221aa
add r14, 0x40
sub rbx, 0x40
add r12, 0x40
mov r8d, 4
add edi, 4
jmp 0x1801220e0
mov rsi, qword [rsp + 0x4b8]
mov rbx, qword [rsp + 0x500]
mov r13, qword [rsp + 0x4b0]
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.180125040
add rsp, 0x4c0
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x1801222d0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rdi, r8
cmp edx, 0x80
je 0x180122324
cmp edx, 0x100
je 0x180122306
mov eax, 1
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
mov rdx, rcx
mov rcx, rdi
call fcn.1801217f0
xor eax, eax
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
mov qword [rsp + 0x90], rbp
mov rdx, rcx
mov qword [rsp + 0x98], rsi
lea rcx, [rsp + 0x20]
mov qword [rsp + 0xa0], r14
mov dword [r8 + 0xf0], 0xa
call fcn.180121010
movups xmm2, xmmword [rsp + 0x20]
mov ebx, 1
lea r14, [0x18015f240]
movabs rbp, 0xf000000000000
movups xmmword [rdi], xmm2
add rdi, 0x10
xor esi, esi
nop dword [rax + rax]
movq qword [rsp + 0x40], xmm2
lea rcx, [rsp + 0x40]
psrldq xmm2, 8
xorps xmm0, xmm0
xorps xmm1, xmm1
movq qword [rsp + 0x60], xmm2
mov qword [rsp + 0x48], rsi
movdqa xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x68], rsi
movdqa xmmword [rsp + 0x70], xmm1
call fcn.180121ec0
lea rcx, [rsp + 0x40]
call fcn.1801219f0
lea rcx, [rsp + 0x40]
call fcn.180121ec0
mov rax, qword [rsp + 0x40]
movzx r9d, byte [rbx + r14 - 1]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov rax, rsi
nop dword [rax + rax]
mov rdx, qword [rsp + rax*8 + 0x30]
movzx ecx, al
shl cl, 2
mov r8, r9
shr r8, cl
mov rcx, rdx
shr rcx, 0x10
and r8d, 0xf
and rdx, rbp
or rcx, rdx
shr rcx, 0x24
xor r8, rcx
xor r8, qword [rsp + rax*8 + 0x20]
mov rcx, r8
shl rcx, 0x10
xor rcx, r8
shl rcx, 0x10
xor rcx, r8
shl rcx, 0x10
xor rcx, r8
mov qword [rsp + rax*8 + 0x20], rcx
inc rax
cmp rax, 2
jb 0x1801223f0
movups xmm2, xmmword [rsp + 0x20]
inc rbx
movups xmmword [rdi], xmm2
add rdi, 0x10
cmp rbx, 0xa
jbe 0x180122380
mov r14, qword [rsp + 0xa0]
xor eax, eax
mov rsi, qword [rsp + 0x98]
mov rbp, qword [rsp + 0x90]
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x180124a70
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
xor eax, eax
mov r11, rcx
mov r10d, 1
movabs rdi, 0x8000000000000000
lea ebx, [rax + 0x20]
nop dword [rax]
nop word [rax + rax]
shr rax, 1
mov r9, r10
and r9d, 1
neg r9
mov rdx, r9
and r9, rdi
add r9, rax
and rdx, r11
mov r8, rdx
shr r9, 1
xor r8, r10
and rdx, r10
shr r8, 1
add r8, rdx
mov rax, r8
and eax, 1
neg rax
mov rcx, rax
and rax, rdi
and rcx, r11
add rax, r9
mov r10, rcx
and rcx, r8
xor r10, r8
shr r10, 1
add r10, rcx
sub rbx, 1
jne 0x180124aa0
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret

Function at 0x180128120
Capabilities:
Resolve dns

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov ebp, r9d
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.18010ef90
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x18012817b
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x1801281f4
mov r8d, 1
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.1800059f0
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x28]
mov rcx, rdi
xor edx, edx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x180128201
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov byte [rdi], 0
test rbx, rbx
je 0x1801281f4
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call fcn.1800059f0
nop
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], bp
xor eax, eax
mov qword [rsi], rax
mov byte [rdi], 0
test rbx, rbx
jne 0x1801281e3
jmp 0x1801281f4
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14001d970]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14001d980]
mov dword [rax], 1
mov rax, qword [0x14001d990]
mov dword [rax], 1
mov rax, qword [0x14001d960]
mov dword [rax], 1
mov rax, qword [0x14001d800]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x14001d950]
mov dword [0x140021020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010c0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14001d910]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14001d8f0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14001d790]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
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 0x140002ab0
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 0x140002b20
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1400210b4]
mov r12, rcx
test ebx, ebx
jle 0x140002c50
mov rax, qword [0x1400210b8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x140002b6c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140002bf3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x140002b50
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x140002c72
mov rax, qword [0x1400210b8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400210b8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002c57
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002bec
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002c00
add dword [0x1400210b4], 1
add rsp, 0x50
pop rbx
pop rsi
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 rbx, qword [0x1400210b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002bec
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor ebx, ebx
jmp 0x140002b77
mov rax, qword [0x1400210b8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003130
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140021120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140021100]
test rbx, rbx
je 0x140003184
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 0x14000317b
test r12, r12
je 0x14000317b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003160
lea rcx, [0x140021120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400033a0
Capabilities:
Parse pe header

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

Function at 0x1400033d0
Capabilities:
Enumerate pe sections

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

Function at 0x140003420
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x1400034b0
mov rdx, qword [0x14001d800]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x14000349e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000349e
cmp word [rax + 0x18], 0x20b
jne 0x14000349e
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x1400034b0
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x140003489
add r12, 0x28
cmp r12, rsi
je 0x1400034b0
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x140003480
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

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

Disassembly:
mov rdx, qword [0x14001d800]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400034e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400034e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400034e0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140003535
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000352c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400034e0
add rax, 0x28
cmp rax, r9
jne 0x140003518
xor eax, eax
ret

Function at 0x140003540
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001d800]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140003560
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003568
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x140003560
movzx r8d, word [rax + 6]
mov eax, r8d
ret