joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400063c0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x14053aec0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14053aea0]
test rbx, rbx
je 0x14000640c
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 0x140006406
test eax, eax
jne 0x140006406
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x1400063de
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400065c0
Capabilities:
Parse pe header

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

Function at 0x1400065e4
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 0x14000661e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140006615
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140006620
inc r8d
add rax, 0x28
jmp 0x1400065fc
xor eax, eax
ret

Function at 0x140006691
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1405369f0]
mov r8, rcx
mov rcx, r9
call fcn.1400065c0
test eax, eax
je 0x1400066bd
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.1400065e4
xor eax, eax
add rsp, 0x28
ret
Function at 0x140003dc0
Capabilities:
Terminate process

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rsi, r8
call sub.msvcrt.dll_wcscpy
mov rdx, rsi
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140006150

Function at 0x140004ae0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140004b14
cmp word [rcx], 0x5a4d
jne 0x140004b14
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140004b14
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004b14
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140004a20
test eax, eax
jne 0x140004b30
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140004a90
test rax, rax
je 0x140004b25
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.1400052d9
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x1400051e0
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140005180
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140005ba0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x1406c6d00]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1406c6ce0]
test rbx, rbx
je 0x140005bec
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 0x140005be6
test eax, eax
jne 0x140005be6
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140005bbe
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140005da0
Capabilities:
Parse pe header

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

Function at 0x140005dc4
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 0x140005dfe
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140005df5
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140005e00
inc r8d
add rax, 0x28
jmp 0x140005ddc
xor eax, eax
ret

Function at 0x140005e71
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1406bbb70]
mov r8, rcx
mov rcx, r9
call fcn.140005da0
test eax, eax
je 0x140005e9d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140005dc4
xor eax, eax
add rsp, 0x28
ret
Function at 0x1406e6910
Capabilities:
Resolve function by parsing pe exports

Disassembly:
or r13b, byte [rsp]
bswap r13d
mov r13, qword [rsp + 0x30]
neg rbp
shr word [rsp + 0x48], 0xa1
add qword [rsp + 0x20], 0x4e1d
movsx ebp, bpl
mov rbp, qword [rsp + rbp]
call fcn.1407b7313
call 0x1406e1208
jge 0x1407b050c
ja 0x140789d42
xchg qword [rsp + 0x68], rsi
mov r12, qword [rsp + 0x58]
jb 0x1406e6910
shl r14b, 0x19
shl r14w, 0x50
je 0x1407f1682

Function at 0x1406e9330
Capabilities:
Packed with generic packer

Disassembly:
sub dword [rsp + 0x28], 0xb26c60d
mov r13, qword [rsp + r11*8 - 0x378]
mov rsi, qword [rsp + 0x30]
mov rsi, qword [rsi]
mov qword [rsp + 0x28], r14
test r13b, r11b
jl 0x1406d3f96
test dword [rsp + 0x2c], edx
mov r11, qword [rsp + 0x28]
movsx dx, byte [rsp + 0x2a]
lea rsi, [rsi + 0x3180a20d]
je 0x14075ef34
test byte [rsp + 0x2e], dl
bswap r13d
mov qword [rsp + 0x30], r11
cmovne dx, r14w
xchg qword [rsp + 0x58], rsi
mov r11, qword [rsp + 0x40]
and word [rsp + 0x28], dx
sub r13, qword [rsp + 0x30]
jno 0x1407a0635
call fcn.140799740

Function at 0x14074681b
Capabilities:
Packed with generic packer
Resolve function by parsing pe exports

Disassembly:
mov dh, 0xb0
push rbx
scasd eax, dword [rdi]
xchg ebp, eax
std
xor dword [rdi], ecx
in al, dx
nop
stosb byte [rdi], al
shl byte [rbx], 0xb7
in eax, dx
cmp eax, 0x80ac2f31
fimul dword [rdx + 0x66]
add byte [rbx - 0x79], 0xdd
lodsd eax, dword [rsi]
loope 0x140746830
hlt
push rdi
push r11
pushfq
movabs r11, 0xca5399f8eac94ae
or r11d, 0x56ad0388
lea r11, [r11 + r11 - 0x4a43b655]
mov rdi, qword [rsp + 0x18]
jae 0x140796057
jnp 0x1407467f9
fild dword [rsi - 0x6f]
and al, bh
int3

Function at 0x140774190
Capabilities:
Encode data using xor

Disassembly:
xchg qword [rsp + 0x10], rcx
push r13
movabs r13, 0x6f0f86a3f59509b5
xchg byte [rdi], cl
outsd dx, dword [rsi]
pushfq
xor r13, 0xffffffffdd0c43b7
jne 0x1407926c5
movabs al, byte [0x67a8c23586c0289d]
add esi, dword [rbp + 0x34]
xchg ebx, eax
sub edi, dword [rdi]
cmc
mov edx, 0x6641a036
xor al, 0x42
mov dl, 0x5f
xor ah, byte [0x1203ff523]
movabs rdi, 0x98fa002f5468308
pop rbp
jno 0x14077419e
sbb byte [rsi + 0x4b], ah
sti
lock and ebx, dword [rcx]
or edi, ecx
ja 0x140774230
fisubr dword [rdx - 0x7e7d1ea1]
wait
movabs eax, dword [0xe2ae366c40c31519]
sbb al, 0xff
mov edx, ecx
or dword [0x1a6b35a9c], eax
invalid
scasd eax, dword [rdi]
invalid
fild dword [0x138d96193]
invalid
mov qword [rsp + 0x18], rcx
setne r13b
push r9
call fcn.14078295a
fcompi st(1)
xchg edi, esi
adc edx, esi
or eax, 0xb2b24740
adc al, 0xac
mov eax, 0x4f5ab598
jne 0x14079275b
mov bpl, 0xc7
sub byte [rdi + 0x7c0c6bfa], cl
mov bl, dh
jge 0x1407926a7
invalid
invalid
Function at 0x14078bdae
Capabilities:
Packed with generic packer

Disassembly:
and eax, 0x109e502
nop
nop
js 0x14077b8fd
mov rbx, qword [rsp + 0x40]
mov rbx, qword [rbx]
add r14b, byte [rsp + 0x3b]
mov rcx, r12
xor qword [rsp + 0x38], r9
cmp rbp, qword [rsp + 0x18]
mov qword [rsp + 0x40], r9
lea rbx, [rbx + 0x119dc501]
setge byte [rsp + 0x38]
push rdi
jno 0x1407b64c7
mov rdi, qword [rsp + 0x40]
jge 0x1407c0545
xchg qword [rsp + 0x68], rbx
mov r14, qword [rsp + 0x60]
add dword [rsp + 0x40], 0xa93eb1b4
sub cl, 0xa5
lea rdi, [r9*8 - 0x35df8f5a]
mov rdi, qword [rsp]
call fcn.1406d5235
mov rdi, qword [rsp + rcx + 0x18]
mov rdi, qword [rdi + rcx]
movabs r13, 0x9c841bb45591ee16
jg 0x140006161
xor r13d, ecx
test r13w, r13w
lea rdi, [rdi - 0x2e65efce]
mov cl, 0x88
mov qword [rsp + r13 - 0x5591edfe], rbx
not sil
movzx cx, cl
jbe 0x1407e86df
push r12
xchg qword [rsp + r13 - 0x5591edc6], rdi
mov rcx, qword [rsp + rcx*4 - 0x1e8]
cmovbe bx, si
movabs r12, 0x6acbba3fa881380
not r13d
xor bl, byte [rsp + rsi - 0x180100dd]
pop r12
mov rbx, qword [rsp + 0x40]
ja 0x1407c80a0
mov word [rsp + rsi*2 - 0x300201e6], 0xcc81
not word [rsp + rsi*2 - 0x300201e6]
bswap rsi
mov rsi, qword [rsp + 0x20]
call fcn.1407eeb58

Function at 0x1407933ac
Capabilities:
Encode data using xor

Disassembly:
and rcx, rdi
mov r15, rcx
lea rbp, [rbp + rcx - 0x5cd53d5c]
mov qword [rsp + rcx*8 - 0x4c5c8078], r15
xor r15d, 0xcdab56a9
shr r15w, cl
mov cx, di
call fcn.1407473d5
sbb bh, byte [0x11951c38d]
jle 0x1407933b2
add cl, byte [rdx + 7]
invalid

Function at 0x140796047
Capabilities:
Packed with generic packer
Resolve function by parsing pe exports

Disassembly:
push rbx
lea r11, [r11 + r11*2 + 0x4bda2a2]
lea rdi, [rdi + 1]
mov rbx, r11
sub r11, rbx
jae 0x140799ec5
and byte [0x143606ada], bl
invalid
mov qword [rsp + r15 - 0x4c87276d], rdx
not r8b
call fcn.1407a20a7
bswap r11
jl 0x14075eb8b
shr r11, 0xe7
xor ebx, 0xc731b337
xor r11, 0x7a392a8a
mov qword [rsp + r11 - 0x7a392a6a], rdi
seta r11b
setg r11b
shr bl, 7
setbe r11b
push r14
mov r11b, 0x8f
call fcn.14076aaea
add word [rsp + 0x28], 0x5286
and qword [rsp + 0x28], 0x7726a083
push qword [rsp + 0x20]
popfq
lea rsp, [rsp + 0x40]

Function at 0x140796060
Capabilities:
Packed with generic packer
Resolve function by parsing pe exports

Disassembly:
or r13b, byte [rsp]
bswap r13d
mov r13, qword [rsp + 0x30]
neg rbp
shr word [rsp + 0x48], 0xa1
add qword [rsp + 0x20], 0x4e1d
movsx ebp, bpl
mov rbp, qword [rsp + rbp]
call fcn.1407b7313
call 0x1406e1208
jge 0x1407b050c
ja 0x140789d42
xchg qword [rsp + 0x68], rsi
mov r12, qword [rsp + 0x58]
jb 0x1406e6910
shl r14b, 0x19
shl r14w, 0x50
je 0x1407f1682
Function at 0x14079f4e2
Capabilities:
Packed with generic packer

Disassembly:
cmp r12w, 0xee17
push 0xffffffff96b2fa36
push r8
je 0x1406d30ec
and ebx, ebx
xchg qword [rsp + rbx + 0x40], rdi
mov r12, qword [rsp + rbx + 0x18]
neg byte [rsp + rbx*2 + 8]
mov dword [rsp + rbx*4 + 8], 0x2d84e135
xor dword [rsp + rbx + 8], ebx
or ebx, dword [rsp + rbx*2 + 8]
mov rbx, qword [rsp + rbx*2 - 0x5b09c232]
call fcn.1407b89ff
jo 0x1406ec60f
lea r13, [r13*2 + 0x3b145d02]
cmp word [rsp + 0x30], 0xb2ad
ja 0x14078a245
sub dword [rsp + 0x30], r13d
mov r13, qword [rsp + 0x18]
shl qword [rsp + 0x30], 0x2a
sete byte [rsp + 0x30]
mov word [rsp + 0x30], 0x5439
add qword [rsp], 0xffffffffbf892bb7
xor byte [rsp + 0x30], 0x8d
push qword [rsp + 0x28]
popfq
lea rsp, [rsp + 0x38]
ret 8

Function at 0x1407b5aae
Capabilities:
Encode data using xor

Disassembly:
fadd st(2)
lea eax, [rsp + rdx*8 - 0x6b5895fa]
invalid
insd dword [rdi], dx
jl 0x1407b5a29
lea rsp, [rsp + 0x10]
call fcn.140806dbf
and rdi, r12
shr dil, 0x9c
test di, 0xdc9a
push r13
push rbx
movabs r13, 0x1711971e5b9261a6
jge 0x1407717bb
xor al, 0x61
xchg esi, eax
mov bx, word [rdi - 0x5900e557]
xor ecx, dword [rax - 0x3a]
jb 0x1407b5aa0
fcomp qword [rdx - 0x35]
mov esi, 0x59cc83ee
sbb byte [rdi - 0x1996acba], bh
xor dword [rsp + rax], eax
movabs byte [0xb7b0491f63ad86f0], al
popfq
lea edx, [rcx]
sbb edx, dword [rdi - 0x53]
adc bh, bl
xor byte [rdi - 0x1217d7f6], cl
mov cl, 0xd4
cmp dword [rbx], eax
test al, 0xd9
or al, 0x7f
adc byte ds:[rbx], dl
ja 0x1407b5b3e
invalid
jb 0x1407b5b8f
sbb byte [rbx + 0x102afd56], dl
lahf
pop rbx
lodsd eax, dword [rsi]
in al, dx
xor byte [r15], spl
mov es, word [rdx + 0x26]
push rax
call 0x103065944
invalid
int3
sbb eax, 0xc427e9c5
adc byte [rdx + 0x52], cl
xchg esp, eax
sti
scasb al, byte [rdi]
or al, 0x23
and al, 0xd1
movabs eax, dword [0xb73c2b46e9ebff47]
jb 0x1407b5bc3
invalid
fisubr word [0xfc9d4c27]
fcomp qword [rdx - 0x40]
shr byte [rbp - 0x39b48e3f], cl
jl 0x1407b5bde
test dword [rcx + 0x782eed69], 0xe23eb5e1
adc dh, byte [edx + 0x23]
jb 0x1407b5b87
or al, 0xde
mov ecx, 0x1e0edb28
call qword [rax - 0x59]
movabs al, byte [0xad58a7c66c5dbc8d]
mov edx, 0x5cba8b4d
test dword [rsi + rsi*4 + 0x181b8b3a], ecx
insd dword [rdi], dx
mov edx, 0xdd8d0ccd
mov ebp, dword [rdi]
movsb byte [rdi], byte [rsi]
in al, dx
push 0x539e3ce1
or eax, 0x525203f9
xor byte [rbx], 0xb8
in eax, dx
invalid

Function at 0x1407cbdea
Capabilities:
Resolve function by parsing pe exports

Disassembly:
pop rax
push rsi
movabs rsi, 0x5bb7a9025f0f5e0a
pushfq
sub esi, 0x5ba8558a
shl si, 0xd5
js 0x1406f6e49
push rbp
xchg qword [rsp + rsi - 0x366ffe8], rax
jne 0x1406e6910
movabs rbp, 0x1e0db91c32b108b0
add rsi, 0x72811905
add bp, 0xb684
test sil, bpl
call fcn.1406dd5a6

Function at 0x1407e0704
Capabilities:
Encode data using xor

Disassembly:
setns sil
je 0x14075c4e8
Function at 0x14109090d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
sub r9w, 0x460f
cmp r8w, si
cmove r10, r14
mov qword [rsp + 0x10], rdi
sar r11d, 0xe
adc r11b, r12b
movzx r9w, sil
xor edi, edi
movzx ebx, r8b
movzx r10w, spl
mov r11, rcx
movsx r9, dx
cmovg r10, rsi
setge r8b
mov r8, rdi
movzx r9d, sp
movsx r9w, al
cmovns r10w, r11w
nop
not r10b
mov r10w, r9w
movzx r9d, byte [r11]
dec r10b
setno r10b
movzx r10d, byte [rdx]
jmp 0x141090978
inc r11
jmp 0x141090980
inc rdx
clc
test r8b, 0xa6
cmp r14w, r15w
test bl, bl
je 0x1410909c9
mov ecx, r8d
btc ax, r8w
cbw
movsx ax, r15b
mov eax, 0xacbfa1a3
cmc
clc
rol eax, cl
stc
test r9b, 0x2e
add al, r8b
cmc
xor r9b, al
jmp 0x1410909bd
inc r8
jmp 0x1410909c9
test r9b, r9b
jmp 0x1410909d1
je 0x1410909e0
cmp r9b, r10b
je 0x141090964
cmp r9b, r10b
jae 0x1410909ff
or eax, 0xffffffff
mov rbx, qword [rsp + 8]
xchg dil, dil
mov rdi, qword [rsp + 0x10]
jmp 0x1410909fe
ret
mov rbx, qword [rsp + 8]
seta dil
mov eax, edi
movsxd rdi, esi
movsx rdi, r10w
mov rdi, qword [rsp + 0x10]
jmp 0x141090a1b
ret
Function at 0x140001483
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
xor esi, esi
movsxd rax, dword [rcx + 0x3c]
mov edi, dword [rcx + rax + 0x88]
add rdi, rcx
mov rbx, rcx
mov r12d, edx
mov r13d, dword [rdi + 0x20]
mov ebp, dword [rdi + 0x1c]
add r13, rcx
cmp esi, ebp
jae 0x1400014e9
mov ecx, dword [r13 + rsi*4]
add rcx, rbx
call fcn.140001450
mov edx, eax
lea rax, [rsi + 1]
cmp edx, r12d
jne 0x1400014e4
mov eax, dword [rdi + 0x24]
add rsi, rsi
add rsi, rbx
movzx eax, word [rsi + rax]
lea rax, [rbx + rax*4]
mov eax, dword [rax + rbp]
add rax, rbx
jmp 0x1400014eb
mov rsi, rax
jmp 0x1400014af
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

Function at 0x1400017c0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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 fcn.140007530
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140007530
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140001830
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400490a4]
mov rbx, rcx
test esi, esi
jle 0x140001960
mov rax, qword [0x1400490a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000187b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001905
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001860
mov rcx, rbx
call fcn.140002280
mov rdi, rax
test rax, rax
je 0x140001982
mov rax, qword [0x1400490a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400023c0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400490a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001967
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400018fe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001910
add dword [0x1400490a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
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 [0x1400490a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400018fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400017c0
nop dword [rax]
xor esi, esi
jmp 0x140001888
mov rax, qword [0x1400490a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400017c0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400017c0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140001ef0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140049100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400490e0]
test rbx, rbx
je 0x140001f4c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140001f43
test rsi, rsi
je 0x140001f43
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001f28
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

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

Disassembly:
mov rdx, qword [0x140046200]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400022a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400022a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400022a0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400022fd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400022f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400022a0
add rax, 0x28
cmp rax, r9
jne 0x1400022e0
xor eax, eax
ret

Function at 0x140002300
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140046200]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000231f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002328
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000231f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400023c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140046200]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400023df
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400023e8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140002d20
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
movsxd r9, dword [rcx + 0x3c]
lea rbx, [rcx + 0x18]
add rbx, r9
xor r10d, r10d
xor edi, edi
mov r14, r8
mov r15, rdx
mov rbp, rcx
movzx eax, word [r9 + rcx + 0x14]
movzx esi, word [r9 + rcx + 6]
add rbx, rax
test esi, esi
je 0x140002da0
cmp dword [rbx], 0x45474150
je 0x140002d7a
cmp dword [rbx], 0x7865742e
jne 0x140002d96
cmp byte [rbx + 4], 0x74
jne 0x140002d96
mov ecx, dword [rbx + 0xc]
mov r9, r14
mov edx, dword [rbx + 8]
add rcx, rbp
mov r8, r15
call fcn.140002cac
mov r10, rax
test rax, rax
jne 0x140002da0
inc edi
add rbx, 0x28
cmp edi, esi
jb 0x140002d64
mov rbx, qword [rsp + 0x40]
mov rax, r10
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x140002dbc
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x150
xor ebx, ebx
lea r9, [rax + 0x18]
mov r14, rdx
mov dword [rax + 0x18], ebx
mov r15, rcx
xor r8d, r8d
xor edx, edx
mov ebp, ebx
lea esi, [rbx + 0xb]
mov ecx, esi
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp eax, 0xc0000004
jne 0x140002f16
mov edx, dword [rsp + 0x180]
xor ecx, ecx
mov r8d, 0x6e556353
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
test rax, rax
je 0x140002f16
mov r8d, dword [rsp + 0x180]
xor r9d, r9d
mov rdx, rax
mov ecx, esi
call sub.ntoskrnl.exe_ZwQuerySystemInformation
test eax, eax
js 0x140002f06
mov esi, ebx
cmp dword [rdi], ebx
jbe 0x140002f03
mov eax, esi
mov edx, 2
imul rcx, rax, 0x128
lea rax, [rdi + 8]
add rax, rcx
lea rcx, [rsp + 0x20]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx + 0x50], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x140002e64
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
mov rax, qword [rax + 0x20]
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm1
mov qword [rcx + 0x20], rax
lea rcx, [rsp + 0x48]
call fcn.140002f74
mov rcx, rax
mov rdx, r15
call sub.ntoskrnl.exe_strstr
test rax, rax
jne 0x140002ef2
inc esi
cmp esi, dword [rdi]
jb 0x140002e4a
jmp 0x140002f03
mov rbp, qword [rsp + 0x30]
test r14, r14
je 0x140002f03
mov eax, dword [rsp + 0x38]
mov dword [r14], eax
mov rbx, rbp
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, rbx
jmp 0x140002f18
xor eax, eax
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140002f38
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov r8, rcx
test edx, edx
jne 0x140002f42
xor eax, eax
ret
movzx eax, byte [rcx]
xor eax, 0x4f9ace2f
imul ecx, eax, 0x1000193
cmp edx, 1
jbe 0x140002f6f
inc r8
dec edx
movzx eax, byte [r8]
inc r8
xor eax, ecx
imul ecx, eax, 0x1000193
sub rdx, 1
jne 0x140002f5a
mov eax, ecx
ret

Function at 0x14000302c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov edi, r8d
mov ebx, ecx
mov edx, r8d
mov rcx, rsi
call fcn.140002f38
xor ebx, eax
test edi, edi
je 0x14000308b
mov r8d, edi
imul ebx, ebx, 0x41c64e6d
mov eax, 0x80808081
add ebx, 0x3039
mov ecx, ebx
shr ecx, 0x10
and ecx, 0x7fff
mul ecx
shr edx, 7
imul eax, edx, 0xff
sub ecx, eax
xor byte [rsi], cl
inc rsi
sub r8, 1
jne 0x140003057
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret