joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180048eb0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov rdi, rcx
mov ebx, r15d
xor eax, eax
mov esi, 1
lock cmpxchg dword [0x1800a2858], esi
je 0x180048f05
cmp rbx, 0x20
jae 0x180048eee
xor ecx, ecx
jmp 0x180048ef0
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1800a2858], esi
jne 0x180048ee4
cmp qword [0x1800a2860], r15
je 0x180048fef
test rdi, rdi
jne 0x180048f23
call fcn.180048880
mov ebp, eax
jmp 0x180048ff4
mov ecx, dword [0x1800a2f6c]
mov ebx, r15d
test ecx, ecx
je 0x180048f4f
mov rdx, qword [0x1800a2f60]
mov rax, rdx
nop word [rax + rax]
cmp rdi, qword [rax]
je 0x180048f59
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180048f40
mov ebp, 4
jmp 0x180048ff4
cmp ebx, 0xffffffff
je 0x180048f4f
mov eax, ebx
imul r8, rax, 0x38
test byte [r8 + rdx + 0x20], 2
jne 0x180048fe8
mov r8d, esi
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.1800485c0
mov edx, esi
mov ecx, ebx
call fcn.180048770
mov ebp, eax
cmp qword [rsp + 0x20], r15
je 0x180048ff4
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180048fd2
mov rbx, qword [rsp + 0x20]
mov esi, eax
nop dword [rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x180048fc8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x180048fa0
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1800a2860]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180048ff4
mov ebp, 5
jmp 0x180048ff4
mov ebp, 2
xchg dword [0x1800a2858], r15d
mov rbx, qword [rsp + 0x40]
mov eax, ebp
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x180049440
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x28]
cmp rdi, 0x40000000
jbe 0x18004947b
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x1800a2f58]
lea r15, [rdi + 0x40000000]
cmp qword [rsp + 0x30], r15
cmovbe r15, qword [rsp + 0x30]
sub r15, 0xfff
test rsi, rsi
je 0x1800494bd
cmp rsi, r14
jb 0x1800494b5
cmp rsi, r15
jae 0x1800494b5
cmp qword [rsi + 8], 0
jne 0x18004967d
mov rsi, qword [rsi]
test rsi, rsi
jne 0x1800494a0
mov qword [rsp + 0xa0], rbx
mov rbx, rdi
mov qword [rsp + 0xa8], rbp
cmp rdi, r14
jb 0x180049542
nop word [rax + rax]
mov ebp, dword [rsp + 0x48]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x180049539
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180049539
cmp dword [rsp + 0x70], 0x10000
je 0x1800495bb
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x180049539
sub rbx, rbp
cmp rbx, r14
jae 0x180049500
test rsi, rsi
jne 0x180049626
cmp rdi, r15
ja 0x18004966d
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x18004966d
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18004966d
cmp dword [rsp + 0x70], 0x10000
je 0x1800495f4
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x68]
add rdi, qword [rsp + 0x50]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x180049572
jmp 0x18004966d
test rbx, rbx
je 0x180049539
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180049626
cmp rbx, r14
jae 0x1800494e0
jmp 0x180049542
test rdi, rdi
je 0x18004966d
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180049626
cmp rdi, r15
jbe 0x180049550
jmp 0x18004966d
xor eax, eax
lea rcx, [rsi + 0x40]
mov rdx, rcx
mov qword [rsi + 8], rax
sub rdx, rsi
mov dword [rsi + 0x10], eax
nop dword [rax]
mov rax, qword [rsi + 8]
add rdx, 0x40
mov qword [rcx], rax
mov qword [rsi + 8], rcx
add rcx, 0x40
cmp rdx, 0xfc0
jbe 0x180049640
mov rax, qword [0x1800a2f58]
mov qword [rsi], rax
mov qword [0x1800a2f58], rsi
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rax, rsi
mov rsi, qword [rsp + 0xb0]
add rsp, 0x80
pop r15
pop r14
pop rdi
ret
Function at 0x18006aa5c
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18006aa8c
xor eax, eax
jmp 0x18006ab4f
mov rbp, rbx
cmp word [rax], si
je 0x18006aab1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18006aa98
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18006aa94
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18006a9ac
movsxd r14, eax
test eax, eax
jne 0x18006aaef
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18006aa85
mov rcx, r14
call fcn.180065ca0
mov rdi, rax
test rax, rax
jne 0x18006ab08
xor ecx, ecx
call fcn.180065d78
jmp 0x18006aae4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18006a9ac
test eax, eax
jne 0x18006ab39
mov rcx, rdi
call fcn.180065d78
jmp 0x18006ab43
xor ecx, ecx
call fcn.180065d78
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x18006beac
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x18006bede
call fcn.18005c4c8
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.180055d74
jmp 0x18006bffd
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x18006bffd
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x18006bffd
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x18006bf0d
lock or dword [rcx + 0x14], 0x10
jmp 0x18006bffd
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x18006bf21
call fcn.18006d6d8
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1800680e0
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.18006ce54
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x18006bfeb
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x18006bfb6
mov rcx, rsi
call fcn.1800680e0
cmp eax, edi
je 0x18006bfa1
mov rcx, rsi
call fcn.1800680e0
cmp eax, 0xfffffffe
je 0x18006bfa1
mov rcx, rsi
call fcn.1800680e0
movsxd rbx, eax
lea r14, [0x1800a21a0]
mov rcx, rsi
sar rbx, 6
call fcn.1800680e0
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x18006bfa8
lea rdx, [0x18009e530]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x18006bfb6
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x18006bfda
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x18006bfda
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x18006bfda
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x18006c000
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x18006c018
Capabilities:
Read file on windows

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 r14
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x18006bd3a
call fcn.18005c4c8
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.180055d74
jmp 0x18006be8a
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x18006be8a
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x18006be8a
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x18006bd69
lock or dword [rcx + 0x14], 0x10
jmp 0x18006be8a
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x18006bd7d
call fcn.18006d6d8
mov ebp, dword [rbx + 0x10]
cmp ebp, 1
jne 0x18006bd8d
mov rax, qword [rbx]
mov r14b, byte [rax]
jmp 0x18006bd90
xor r14b, r14b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.1800680e0
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.18006ce54
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x18006be78
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x18006be23
mov rcx, rbx
call fcn.1800680e0
cmp eax, 0xffffffff
je 0x18006be0e
mov rcx, rbx
call fcn.1800680e0
cmp eax, 0xfffffffe
je 0x18006be0e
mov rcx, rbx
call fcn.1800680e0
movsxd rdi, eax
lea rsi, [0x1800a21a0]
mov rcx, rbx
sar rdi, 6
call fcn.1800680e0
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x18006be15
lea rdx, [0x18009e530]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x18006be23
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x18006be47
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x18006be47
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x18006be47
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp ebp, 1
jne 0x18006be65
movzx ecx, byte [rdx]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, r14b
or cx, ax
inc rdx
jmp 0x18006be70
movzx ecx, word [rdx]
add dword [rbx + 0x10], 0xfffffffe
add rdx, 2
mov qword [rbx], rdx
movzx eax, cx
jmp 0x18006be8f
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x18006bd04
Function at 0x18006c330
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.1800759f0
sub rsp, rax
mov rax, qword [0x18009e010]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1800680e0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18006c37f
mov rax, rbp
jmp 0x18006c487
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, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xa21a0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18006d62c
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0xa21a0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18006c483
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 0x18006c483
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18006d62c
test rax, rax
js 0x18006c483
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18006c483
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18006c475
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18006c475
cmp byte [rcx], 0xd
jne 0x18006c45b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18006c46a
cmp byte [rcx + 1], 0xa
jne 0x18006c46a
inc rcx
jmp 0x18006c46a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x9eac0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18006c43d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18006c487
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180049ee0
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 0x18006c9a8
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x1800a21a0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x18006ca06
cmp word [rdx], r12w
jne 0x18006ca06
or byte [rax + r8*8 + 0x38], cl
jmp 0x18006ca0c
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x18006cb67
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x18006cb42
lea r9, [rcx + 2]
cmp ax, r13w
je 0x18006ca45
mov rcx, r9
jmp 0x18006ca68
cmp r9, rdx
jae 0x18006ca7f
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x18006ca29
jmp 0x18006cb67
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18006cb3c
cmp dword [rsp + 0x80], edi
je 0x18006cb3c
mov rdx, r14
lea r11, [0x1800a21a0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x18006cb15
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x18006cae8
mov word [rbx], r12w
jmp 0x18006cb63
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x18006caf1
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x18006cb63
cmp word [rsp + 0x70], r12w
jne 0x18006cb22
cmp rbx, rsi
je 0x18006cae2
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.18006d634
cmp word [rsp + 0x70], r12w
je 0x18006cb67
mov word [rbx], r13w
jmp 0x18006cb63
lea r11, [0x1800a21a0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x18006cb5f
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x18006cb67
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400035d0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x60
mov qword [rsp + 0x50], 0x383c131b
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x44], 0x7879781
mov ecx, dword [rsp + 0x44]
xor ecx, 0x1896efbc
mov dword [rsp + 0x40], ecx
mov qword [rsp + 0x10], 0x5206f6b9
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x50]
add r8, 0x31372228
mov qword [rsp + 0x38], 0
cmp r8, rdx
mov dword [rsp + 0xc], eax
mov qword [rsp], rdx
jbe 0x140003658
jmp 0x14000368e
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x18]
cmp dword [rax + rcx], 0x4550
je 0x140003677
jmp 0x1400036c5
mov eax, dword [rsp + 0xc]
or eax, 0x590ea25f
mov dword [rsp + 0x5c], eax
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x38], rcx
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov ecx, dword [rsp + 0xc]
xor ecx, 0xffffffff
mov dword [rsp + 0x5c], ecx
cmp dword [rsp + 0x24], 0x1cbc325e
ja 0x1400036ad
mov eax, dword [rsp + 0xc]
and eax, 0x19fb5ea6
mov dword [rsp + 0x5c], eax
mov rax, qword [rsp + 0x28]
add rsp, 0x60
ret
lea rax, [fcn.1400035d0]
mov dword [rsp + 0x24], 0x767a0a10
mov qword [rsp + 0x38], rax
mov rax, qword [rsp]
mov qword [rsp + 0x48], rax
jmp 0x140003658
mov rax, qword [rsp]
xor rax, rax
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x28]
cmp word [rax], 0x5a4d
je 0x14000370a
mov rax, qword [rsp + 0x50]
xor rax, 0xffffffffc7c3e31b
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffc7c3dce5
mov r8, qword [rsp]
or r8, 0x3148c9dd
mov qword [rsp + 0x48], r8
add rcx, rdx
and rcx, rax
mov qword [rsp + 0x30], rcx
cmp dword [rsp + 0x40], 0x51282995
jb 0x140003641
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax + 0x3c]
mov edx, dword [rsp + 0x40]
movsxd rax, ecx
mov qword [rsp + 0x18], rax
cmp edx, 0x2bc92e81
jb 0x140003629
jmp 0x140003629
Function at 0x2fc7a8ea0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc7a98a2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc7cb108]
test eax, eax
je 0x2fc7a993a
lea rax, [0x2fc7cb0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc7cb110]
mov qword [rbp - 8], rax
jmp 0x2fc7a991e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc7a9912
cmp qword [rbp - 0x10], 0
je 0x2fc7a9912
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc7a98d8
lea rax, [0x2fc7cb0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc7a993b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc7a9a40
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc7a9a68
mov eax, 0
jmp 0x2fc7a9ab6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc7a9a91
mov eax, 0
jmp 0x2fc7a9ab6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc7a9ab1
mov eax, 0
jmp 0x2fc7a9ab6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc7a9abc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc7a9b3a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc7a9b31
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc7a9b31
mov rax, qword [rbp - 8]
jmp 0x2fc7a9b4f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc7a9b04
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140004220
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, qword [rcx]
mov r10d, 0x270
mov ecx, dword [r9]
cmp ecx, r10d
jne 0x140004281
lea r8, [r9 + 8]
nop dword [rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140004240
mov ecx, dword [r9]
jmp 0x140004368
cmp ecx, 0x4e0
jb 0x140004368
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, eax
lea r10, [r10 + 4]
xor edx, r11d
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x1400042a0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop dword [rax + rax]
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, eax
lea r10, [r10 + 4]
xor edx, r11d
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x1400042f0
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret