joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4607a0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x402caf
sub rsp, 0x20
mov qword [rsp + 0x18], rbp
lea rbp, [rsp + 0x18]
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov rax, rdx
nop
call fcn.00409380
mov rbp, qword [rsp + 0x18]
add rsp, 0x20
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045e660
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x402c80
cmp byte [0x0065b996], 0
je 0x4607b5
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp 0x45d780
jmp 0x402c80

Function at 0x4607c0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov eax, dword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x0065bc60]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d124b
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x0065b996], 0
je 0x4607f5
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x0065bee0]
aesenc xmm0, xmmword [0x0065bef0]
aesenc xmm0, xmmword [0x0065bf00]
movq rax, xmm0
ret
jmp 0x409580

Function at 0x460800
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x0065bc60]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x0065b996], 0
je 0x460836
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x0065bee0]
aesenc xmm0, xmmword [0x0065bef0]
aesenc xmm0, xmmword [0x0065bf00]
movq rax, xmm0
ret
jmp 0x4095e0

Function at 0x462180
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x30
mov rcx, 0xfffffffffffffff4
mov qword [rsp], rcx
mov rax, qword [sym.imp.kernel32.dll_GetStdHandle]
call rax
mov rcx, rax
mov qword [rsp], rcx
lea rdx, [0x0065be60]
mov qword [rsp + 8], rdx
lea r8d, [0x0065b9ac]
mov qword [rsp + 0x10], r8
lea r9, [rsp + 0x28]
mov qword [r9], 0
mov qword [rsp + 0x18], r9
mov qword [rsp + 0x20], 0
mov rax, qword [sym.imp.kernel32.dll_WriteFile]
call rax
call fcn.00460700
add rsp, 0x30
ret

Function at 0x463040
Capabilities:
Access peb ldr_data

Disassembly:
sub rsp, 0x78
mov qword [rsp + 0x70], rbp
lea rbp, [rsp + 0x70]
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rcx
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x30], r9
mov qword [rsp + 0x38], r10
mov qword [rsp + 0x40], r11
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x50], rax
call fcn.0045d400
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x78
ret
Function at 0x4630e0
Capabilities:
Access peb ldr_data

Disassembly:
sub rsp, 0x90
mov qword [rsp + 0x88], rbp
lea rbp, [rsp + 0x88]
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rcx
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x30], r9
mov qword [rsp + 0x38], r10
mov qword [rsp + 0x40], r11
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x68], rax
call fcn.0045d540
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov rax, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x88]
add rsp, 0x90
ret
Function at 0x48a820
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
xor edx, edx
jmp 0x48a838
movzx esi, byte [rbx + rdx]
inc rdx
imul eax, eax, 0x1000193
xor eax, esi
cmp rcx, rdx
jg 0x48a829
ret

Function at 0x4d14a0
Capabilities:
Encode data using xor

Disassembly:
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdx, qword [rsp + 0x20]
test rdx, 0xf
jne 0x4d150b
mov rax, 0
movdqu xmm0, xmmword [rsi + rax]
movdqu xmm1, xmmword [rcx + rax]
pxor xmm0, xmm1
movdqu xmmword [rbx + rax], xmm0
add rax, 0x10
cmp rdx, rax
jne 0x4d14c4
ret
sub rdx, 1
mov dil, byte [rsi + rdx]
mov al, byte [rcx + rdx]
xor dil, al
mov byte [rbx + rdx], dil
test rdx, 7
jne 0x4d14e1
cmp rdx, 0
je 0x4d152d
test rdx, 0xf
je 0x4d14bd
test rdx, 7
jne 0x4d14e1
sub rdx, 8
mov rdi, qword [rsi + rdx]
mov rax, qword [rcx + rdx]
xor rdi, rax
mov qword [rbx + rdx], rdi
cmp rdx, 0x10
jge 0x4d14bd
ret
Function at 0x4d2f80
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rcx, qword [rsp + 8]
mov rax, qword [rsp + 0x10]
mov rdx, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x20]
movups xmm1, xmmword [rax]
movups xmm0, xmmword [rbx]
add rax, 0x10
pxor xmm0, xmm1
sub rcx, 0xc
je 0x4d2fbf
jb 0x4d2fd4
movups xmm1, xmmword [rax]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x10]
aesenc xmm0, xmm1
add rax, 0x20
movups xmm1, xmmword [rax]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x10]
aesenc xmm0, xmm1
add rax, 0x20
movups xmm1, xmmword [rax]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x10]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x20]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x30]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x40]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x50]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x60]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x70]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x80]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x90]
aesenclast xmm0, xmm1
movups xmmword [rdx], xmm0
ret
Function at 0x4d3040
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rcx, qword [rsp + 8]
mov rax, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x18]
mov rdx, qword [rsp + 0x20]
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
add rbx, 0x10
pxor xmm4, xmm4
cmp ecx, 0xc
je 0x4d3110
jb 0x4d316f
movups xmm2, xmmword [rax + 0x10]
movups xmmword [rbx], xmm2
add rbx, 0x10
aeskeygenassist xmm1, xmm2, 1
call fcn.004d2f20
aeskeygenassist xmm1, xmm0, 1
call fcn.004d2f40
aeskeygenassist xmm1, xmm2, 2
call fcn.004d2f20
aeskeygenassist xmm1, xmm0, 2
call fcn.004d2f40
aeskeygenassist xmm1, xmm2, 4
call fcn.004d2f20
aeskeygenassist xmm1, xmm0, 4
call fcn.004d2f40
aeskeygenassist xmm1, xmm2, 8
call fcn.004d2f20
aeskeygenassist xmm1, xmm0, 8
call fcn.004d2f40
aeskeygenassist xmm1, xmm2, 0x10
call fcn.004d2f20
aeskeygenassist xmm1, xmm0, 0x10
call fcn.004d2f40
aeskeygenassist xmm1, xmm2, 0x20
call fcn.004d2f20
aeskeygenassist xmm1, xmm0, 0x20
call fcn.004d2f40
aeskeygenassist xmm1, xmm2, 0x40
call fcn.004d2f20
jmp 0x4d31dd
movq xmm2, qword [rax + 0x10]
aeskeygenassist xmm1, xmm2, 1
call fcn.004d2e80
aeskeygenassist xmm1, xmm2, 2
call fcn.004d2ee0
aeskeygenassist xmm1, xmm2, 4
call fcn.004d2e80
aeskeygenassist xmm1, xmm2, 8
call fcn.004d2ee0
aeskeygenassist xmm1, xmm2, 0x10
call fcn.004d2e80
aeskeygenassist xmm1, xmm2, 0x20
call fcn.004d2ee0
aeskeygenassist xmm1, xmm2, 0x40
call fcn.004d2e80
aeskeygenassist xmm1, xmm2, 0x80
call fcn.004d2ee0
jmp 0x4d31dd
aeskeygenassist xmm1, xmm0, 1
call fcn.004d2e40
aeskeygenassist xmm1, xmm0, 2
call fcn.004d2e40
aeskeygenassist xmm1, xmm0, 4
call fcn.004d2e40
aeskeygenassist xmm1, xmm0, 8
call fcn.004d2e40
aeskeygenassist xmm1, xmm0, 0x10
call fcn.004d2e40
aeskeygenassist xmm1, xmm0, 0x20
call fcn.004d2e40
aeskeygenassist xmm1, xmm0, 0x40
call fcn.004d2e40
aeskeygenassist xmm1, xmm0, 0x80
call fcn.004d2e40
aeskeygenassist xmm1, xmm0, 0x1b
call fcn.004d2e40
aeskeygenassist xmm1, xmm0, 0x36
call fcn.004d2e40
sub rbx, 0x10
movups xmm1, xmmword [rbx]
movups xmmword [rdx], xmm1
dec rcx
movups xmm1, xmmword [rbx - 0x10]
aesimc xmm0, xmm1
movups xmmword [rdx + 0x10], xmm0
sub rbx, 0x10
add rdx, 0x10
dec rcx
jne 0x4d31ea
movups xmm0, xmmword [rbx - 0x10]
movups xmmword [rdx + 0x10], xmm0
ret
Function at 0x4d3320
Capabilities:
Encode data using xor
Encrypt data using aes via x86 extensions

Disassembly:
mov rdi, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdx, qword [rsp + 0x18]
shr rdx, 2
dec rdx
movdqu xmm15, xmmword [0x00549880]
movdqu xmm14, xmmword [0x005499a0]
movdqu xmm0, xmmword [rsi]
movdqu xmm11, xmmword [rsi + 0x10]
aesenc xmm0, xmm11
movdqu xmm11, xmmword [rsi + 0x20]
aesenc xmm0, xmm11
movdqu xmm11, xmmword [rsi + 0x30]
aesenc xmm0, xmm11
movdqu xmm11, xmmword [rsi + 0x40]
aesenc xmm0, xmm11
movdqu xmm11, xmmword [rsi + 0x50]
aesenc xmm0, xmm11
movdqu xmm11, xmmword [rsi + 0x60]
aesenc xmm0, xmm11
movdqu xmm11, xmmword [rsi + 0x70]
aesenc xmm0, xmm11
movdqu xmm11, xmmword [rsi + 0x80]
aesenc xmm0, xmm11
movdqu xmm11, xmmword [rsi + 0x90]
aesenc xmm0, xmm11
movdqu xmm11, xmmword [rsi + 0xa0]
cmp rdx, 0xc
jb 0x4d340b
aesenc xmm0, xmm11
movdqu xmm11, xmmword [rsi + 0xb0]
aesenc xmm0, xmm11
movdqu xmm11, xmmword [rsi + 0xc0]
je 0x4d340b
aesenc xmm0, xmm11
movdqu xmm11, xmmword [rsi + 0xd0]
aesenc xmm0, xmm11
movdqu xmm11, xmmword [rsi + 0xe0]
aesenclast xmm0, xmm11
pshufb xmm0, xmm15
pshufd xmm11, xmm0, 0xff
movdqu xmm12, xmm0
psrad xmm11, 0x1f
pand xmm11, xmm14
psrld xmm12, 0x1f
pslldq xmm12, 4
pslld xmm0, 1
pxor xmm0, xmm11
pxor xmm0, xmm12
movdqu xmmword [rdi + 0xe0], xmm0
pshufd xmm1, xmm0, 0x4e
pxor xmm1, xmm0
movdqu xmmword [rdi + 0xf0], xmm1
movdqu xmm2, xmm0
movdqu xmm3, xmm1
mov rax, 7
movdqu xmm11, xmm2
movdqu xmm12, xmm2
movdqu xmm13, xmm3
pclmulqdq xmm11, xmm0, 0
pclmulqdq xmm12, xmm0, 0x11
pclmulqdq xmm13, xmm1, 0
pxor xmm13, xmm11
pxor xmm13, xmm12
movdqu xmm4, xmm13
pslldq xmm4, 8
psrldq xmm13, 8
pxor xmm11, xmm4
pxor xmm12, xmm13
movdqu xmm2, xmm14
pclmulqdq xmm2, xmm11, 1
pshufd xmm11, xmm11, 0x4e
pxor xmm11, xmm2
movdqu xmm2, xmm14
pclmulqdq xmm2, xmm11, 1
pshufd xmm11, xmm11, 0x4e
pxor xmm2, xmm11
pxor xmm2, xmm12
movdqu xmmword [rdi + 0xc0], xmm2
pshufd xmm3, xmm2, 0x4e
pxor xmm3, xmm2
movdqu xmmword [rdi + 0xd0], xmm3
dec rax
lea rdi, [rdi - 0x20]
jne 0x4d3470
ret
Function at 0x180043ce0
Capabilities:
Access peb ldr_data

Disassembly:
push rdi
push r12
push r13
sub rsp, 0x20
mov r12d, edx
mov r13, rcx
cmp r12d, 0xfe338407
jne 0x180043d10
mov rcx, r13
lea rdx, [0x180076ba0]
push 4
pop r8
call fcn.180043238
jmp 0x180043daf
cmp r12d, 0xa7e21d79
jne 0x180043d3d
push 0x30
pop rax
mov rax, qword gs:[rax]
mov rdi, qword [rax + 0x60]
mov rcx, r13
xor r8d, r8d
mov r9, qword [rdi + 0x18]
mov r10, qword [r9 + 0x10]
mov rdx, qword [r10 + 0x60]
call fcn.18004b4dc
jmp 0x180043daf
mov r9, qword [0x18007e018]
xor edi, edi
mov rdx, r9
test r9, r9
je 0x180043d80
xor r8b, r8b
xor r10d, r10d
cmp qword [r10 + rdx + 0x18], 0
je 0x180043d70
cmp r12d, dword [r10 + rdx + 0x10]
je 0x180043dbc
inc r8b
add r10, 0x20
cmp r8b, 0x10
jl 0x180043d54
mov rdx, qword [rdx + 0x200]
test rdx, rdx
jne 0x180043d4e
test edi, edi
jne 0x180043d94
mov ecx, r12d
call fcn.180043dcc
test rax, rax
je 0x180043da5
mov r9, qword [0x18007e018]
inc edi
cmp edi, 2
jge 0x180043da5
mov rdx, r9
test r9, r9
je 0x180043d7c
jmp 0x180043d4e
mov rcx, r13
xor edx, edx
call fcn.18004b48c
mov rax, r13
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
add rdx, r10
mov rcx, r13
call fcn.18004b4b0
jmp 0x180043daf

Function at 0x1800543e4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
push rbp
sub rsp, 0x228
mov rbp, rcx
movsxd r14, r9d
mov r15, r8
mov esi, edx
test rbp, rbp
je 0x180054523
test esi, esi
je 0x180054523
test r15, r15
je 0x180054523
test r14, r14
je 0x180054523
lea rax, [rsp + 0x290]
mov r13, qword [rax]
mov r12, qword [rax + 8]
test r13, r13
jne 0x180054442
test r12, r12
je 0x180054523
xor ebx, ebx
mov eax, ebx
xor edx, edx
idiv esi
movsxd rdx, edx
mov cl, byte [rdx + rbp]
mov byte [rsp + rbx + 0x120], cl
inc rbx
cmp rbx, 0x100
jb 0x180054444
movdqu xmm1, xmmword [0x1800771e0]
xor eax, eax
movdqu xmm0, xmmword [0x1800771f0]
movdqu xmmword [rsp + rax + 0x20], xmm0
add rax, 0x10
paddb xmm0, xmm1
cmp rax, 0x100
jb 0x180054475
xor sil, sil
xor ebp, ebp
mov cl, byte [rsp + rbp + 0x20]
mov al, byte [rsp + rbp + 0x120]
add al, cl
add sil, al
movzx ebx, sil
mov dl, byte [rsp + rbx + 0x20]
mov byte [rsp + rbp + 0x20], dl
inc rbp
mov byte [rsp + rbx + 0x20], cl
cmp rbp, 0x100
jb 0x180054490
xor edi, edi
xor sil, sil
mov bl, 1
test r14, r14
jle 0x180054523
mov rbp, qword [rsp + 0x2a0]
movzx ebx, bl
lea rdx, [rsp + rbx + 0x20]
mov r10b, byte [rdx]
add sil, r10b
movzx ecx, sil
mov al, byte [rsp + rcx + 0x20]
mov byte [rdx], al
mov byte [rsp + rcx + 0x20], r10b
mov r8b, byte [rdx]
add r10b, r8b
movzx r11d, r10b
movzx ecx, byte [rdi + r15]
movzx eax, byte [rsp + r11 + 0x20]
xor ecx, eax
test r12, r12
je 0x180054515
mov rdx, rbp
call r12
test al, al
jne 0x180054523
jmp 0x180054519
mov byte [rdi + r13], cl
inc rdi
inc bl
cmp rdi, r14
jl 0x1800544d0
add rsp, 0x228
pop rbp
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x180054a74
Capabilities:
Encode data using xor

Disassembly:
push rbp
sub rsp, 0x30
lea rbp, [rsp + 0x20]
mov r8, rcx
movups xmmword [rbp], xmm6
xor ecx, ecx
movdqu xmm5, xmmword [0x180077200]
xor edx, edx
movdqu xmm4, xmmword [0x180077210]
movdqu xmm3, xmmword [0x180077220]
movdqu xmm2, xmmword [0x180077230]
movdqa xmm1, xmm4
xor al, al
movdqa xmm0, xmm3
inc al
pand xmm0, xmm1
pxor xmm6, xmm6
pcmpeqd xmm0, xmm6
psrld xmm1, 1
pcmpeqd xmm6, xmm6
pxor xmm0, xmm6
movdqa xmm6, xmm0
pandn xmm6, xmm1
pxor xmm1, xmm2
pand xmm1, xmm0
por xmm1, xmm6
cmp al, 8
jb 0x180054aaf
add ecx, 4
paddd xmm4, xmm5
movdqu xmmword [r8 + rdx*4], xmm1
add rdx, 4
cmp ecx, 0x100
jb 0x180054aa9
movups xmm6, xmmword [rbp]
lea rsp, [rbp + 0x10]
pop rbp
ret
Function at 0x18005abe4
Capabilities:
Parse pe header

Disassembly:
push rbx
push rsi
push r12
push r13
push r14
push r15
push rbp
sub rsp, 0x60
mov rsi, rdx
mov r12, r8
mov rbp, rcx
movzx eax, word [rsi]
cmp eax, 0x5a4d
jne 0x18005ac15
movsxd rbx, dword [rsi + 0x3c]
add rbx, rsi
cmp dword [rbx], 0x4550
je 0x18005ac39
movabs rcx, 0xa7083a7310154545
call fcn.180046394
test rax, rax
je 0x18005ae20
mov ecx, 0xc1
call rax
jmp 0x18005ae20
movabs rcx, 0x790529cbfe338407
mov r14, qword [rbx + 0x30]
mov r13d, dword [rbx + 0x50]
call fcn.180046394
mov r10, rax
test r10, r10
je 0x18005ac7e
mov rax, rsp
xor ecx, ecx
dec rcx
mov rdx, r14
xor r8d, r8d
lea r9, [rsp + 0x30]
mov qword [rax + 0x20], 0x30
mov qword [rax + 0x28], 0
call r10
mov eax, dword [rsp + 0x50]
cmp eax, 0x1000
je 0x18005acc7
cmp eax, 0x2000
je 0x18005acaa
cmp eax, 0x10000
jne 0x18005acd0
xor eax, eax
cmp r13, qword [rsp + 0x48]
cmova r14, rax
mov r15d, 0x3000
jmp 0x18005acd0
mov eax, 0x1000
mov r15d, 0x3000
xor r10d, r10d
cmp r13, qword [rsp + 0x48]
cmovbe r15d, eax
cmova r14, r10
jmp 0x18005acd0
mov r15d, 0x3000
xor r14d, r14d
mov rax, rsp
mov rcx, r14
mov edx, r13d
mov r8d, r15d
push 4
pop r9
mov qword [rax + 0x20], 0xffffffffffffffff
call fcn.1800461f8
mov r13, rax
test r13, r13
je 0x18005ad12
push 0x28
pop rcx
call fcn.1800472b0
mov r14, rax
test r14, r14
jne 0x18005ad34
mov rcx, r13
xor edx, edx
dec rdx
call fcn.180046264
movabs rcx, 0xa7083a7310154545
call fcn.180046394
test rax, rax
je 0x18005ae20
push 0xe
pop rcx
call rax
jmp 0x18005ae20
xor r10d, r10d
mov rcx, r13
mov qword [r14 + 8], r13
mov rdx, rsi
mov dword [r14 + 0x18], r10d
mov byte [r14 + 0x1c], r10b
mov qword [r14 + 0x10], 0
mov r8d, dword [rbx + 0x54]
call fcn.1800473ac
movsxd r10, dword [rsi + 0x3c]
mov rcx, rbp
add r10, r13
mov rdx, r14
mov r8, rsi
mov r9, rbx
mov qword [r14], r10
mov qword [r10 + 0x30], r13
call fcn.18005ae3c
mov rsi, qword [rbp + 0x18]
mov r8, qword [rbx + 0x30]
mov rbx, rsi
sub rbx, r8
neg r8
add r8, r13
test rsi, rsi
cmovne r8, rbx
test r8, r8
je 0x18005ada4
mov rcx, rbp
mov rdx, r14
call fcn.18005aed0
mov rcx, rbp
mov rdx, r14
call fcn.18005af64
test al, al
je 0x18005adfa
cmp byte [rbp + 0x11], 0
je 0x18005adc4
mov rcx, rbp
mov rdx, r14
call fcn.18005b144
mov rbx, qword [r14]
mov esi, dword [rbx + 0x28]
mov r9d, esi
xor ebx, ebx
add r9, r13
test esi, esi
cmovne rbx, r9
mov qword [r14 + 0x20], rbx
cmp byte [rbp + 0x10], 0
je 0x18005ae24
test rbx, rbx
je 0x18005ae24
mov rcx, r13
xor edx, edx
inc edx
mov r8, r12
call rbx
mov dword [rbp + 0xc], eax
test eax, eax
jne 0x18005ae24
mov rcx, rbp
mov rdx, r14
call fcn.18005b250
movabs rcx, 0xa7083a7310154545
call fcn.180046394
test rax, rax
je 0x18005ae20
mov ecx, 0x45a
call rax
xor eax, eax
jmp 0x18005ae2c
mov byte [r14 + 0x1c], 1
mov rax, r14
add rsp, 0x60
pop rbp
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbx
ret
Function at 0x18005b144
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rdi
push r14
push r15
sub rsp, 0x58
lea rsi, [0x180077a68]
mov r14, rdx
lea rdi, [rsp + 0x30]
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
mov rcx, qword [r14]
movabs r15, 0xffffffff00000000
xor esi, esi
movzx eax, word [rcx + 0x14]
and r15, qword [rcx + 0x30]
movzx edx, word [rcx + 6]
lea rdi, [rcx + rax + 0x18]
test edx, edx
jle 0x18005b244
mov eax, dword [rdi + 0x24]
test eax, 0x2000000
jne 0x18005b236
mov r8d, eax
mov r9d, eax
and r8d, 0x20000000
and r9d, 0x40000000
mov r11d, eax
shr r8, 0x1d
and r11d, 0x80000000
shl r8, 4
shr r9, 0x1e
shr r11, 0x1f
lea r10, [rsp + r8 + 0x30]
lea r8, [r10 + r9*8]
mov r8d, dword [r8 + r11*4]
mov r9d, r8d
or r9d, 0x200
test eax, 0x4000000
cmovne r8d, r9d
mov r9d, dword [rdi + 0x10]
test r9, r9
je 0x18005b236
test al, 0x40
je 0x18005b1fc
mov r9d, dword [rcx + 0x24]
jmp 0x18005b207
test eax, 0x80
je 0x18005b207
mov r9d, dword [rcx + 0x20]
test r9, r9
jbe 0x18005b236
mov rax, rsp
mov edx, r9d
mov ecx, dword [rdi + 0x18]
xor r9d, r9d
or rcx, r15
mov qword [rax + 0x20], 0xffffffffffffffff
call fcn.180046628
mov dword [rdi + 0x18], 0
mov rcx, qword [r14]
movzx edx, word [rcx + 6]
inc esi
add rdi, 0x28
cmp esi, edx
jl 0x18005b18d
add rsp, 0x58
pop r15
pop r14
pop rdi
pop rsi
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004044a0]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x004044b0]
mov dword [rax], 1
mov rax, qword [0x004044c0]
mov dword [rax], 1
mov rax, qword [0x00404490]
mov dword [rax], 1
mov rax, qword [0x00404380]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x00404480]
mov dword [0x00407008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x00404440]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x00404330]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401103
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058
Function at 0x401b80
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00407624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x401d08
mov rax, qword [0x00407628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x401bcc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x401c55
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x401bb0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x401d3d
mov rax, qword [0x00407628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00407628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401d20
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401c4e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x401cb0
add dword [0x00407624], 1
cmp edi, 8
jae 0x401c83
test dil, 4
jne 0x401cf4
test edi, edi
je 0x401c78
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x401d0f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x401c78
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x401c9c
jmp 0x401c78
add rsi, qword [0x00407628]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401c4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x401c78
xor esi, esi
jmp 0x401bd7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x401c78
mov rax, qword [0x00407628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x402490
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00407900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004078e0]
test rbx, rbx
je 0x4024e4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x4024db
test rsi, rsi
je 0x4024db
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4024c0
lea rcx, [0x00407900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]