joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400349c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rsi
sub rsp, 0x20
xor ecx, ecx
lea r8, [0x1400926e0]
mov edx, 8
mov eax, ecx
mov esi, eax
shr esi, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, esi
dec edx
jne 0x1400349d5
mov dword [r8 + rcx*4], eax
inc rcx
cmp rcx, 0x100
jne 0x1400349ce
mov eax, 0x100
mov ecx, dword [r8 + rax*4 - 0x400]
movzx edx, cl
shr ecx, 8
xor ecx, dword [r8 + rdx*4]
mov dword [r8 + rax*4], ecx
inc rax
cmp rax, 0x800
jne 0x1400349fe
lea rax, [0x140047960]
mov qword [0x1400946e0], rax
mov qword [0x1400926d0], rax
lea rsi, [0x140047a30]
mov qword [0x1400946e8], rsi
call fcn.140047b60
test eax, eax
jne 0x140034a52
mov qword [0x1400926d0], rsi
add rsp, 0x20
pop rsi
ret

Function at 0x14003ea10
Capabilities:
Hash data with crc32

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
movdqa xmmword [rsp + 0x40], xmm8
movapd xmmword [rsp + 0x30], xmm7
movapd xmmword [rsp + 0x20], xmm6
mov r14, r8
mov edi, ecx
cvtsi2sd xmm0, edx
call fcn.14005f930
mov rax, qword [r14]
mov dword [rax + 4], edi
mov rax, qword [r14]
mov rbx, qword [r14 + 8]
sub rbx, rax
sar rbx, 2
lea rcx, [rbx - 1]
cmp rcx, 3
jb 0x14003eaee
movapd xmm6, xmm0
add rbx, 0xfffffffffffffffd
mov esi, 8
movdqa xmm8, xmmword [0x140076810]
movapd xmm7, xmmword [0x140076820]
nop word [rax + rax]
xorps xmm0, xmm0
cvtsi2sd xmm0, edi
call fcn.14005f930
movapd xmm1, xmm6
subsd xmm1, xmm0
movq xmm2, rbx
punpckldq xmm2, xmm8
subpd xmm2, xmm7
pshufd xmm3, xmm2, 0x4e
addpd xmm3, xmm2
divsd xmm1, xmm3
addsd xmm0, xmm1
call fcn.14005ddb0
call fcn.1400623d0
cvttsd2si eax, xmm0
cmp edi, eax
jl 0x14003eaca
add edi, 1
mov eax, edi
mov rcx, qword [r14]
mov dword [rcx + rsi], eax
add rsi, 4
mov edi, eax
add rbx, 0xffffffffffffffff
jne 0x14003ea80
mov rax, qword [r14]
mov rcx, qword [r14 + 8]
sub rcx, rax
sar rcx, 2
add rcx, 0xffffffffffffffff
mov edx, dword [0x14007a380]
mov dword [rax + rcx*4], edx
mov rcx, r14
movaps xmm6, xmmword [rsp + 0x20]
movaps xmm7, xmmword [rsp + 0x30]
movaps xmm8, xmmword [rsp + 0x40]
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.14004cab0

Function at 0x140042970
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
test rdx, rdx
je 0x1400429b2
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x1400429bd
add rdi, rbx
sub rsi, rbx
jne 0x140042990
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
int3
Function at 0x1400441b0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x188
mov rax, qword [0x140091028]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov eax, dword [0x140094980]
mov ecx, dword [0x140092044]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140044210
lea rsi, [0x140094978]
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.140051fd0
mov rax, rsi
add rsp, 0x188
pop rdi
pop rsi
ret
lea rcx, [0x140094980]
call fcn.140052f70
mov eax, dword [0x140094980]
cmp eax, 0xffffffff
jne 0x1400441ec
lea rcx, [rsp + 0x64]
xor esi, esi
xor edx, edx
mov r8d, 0x118
call fcn.1400568d0
mov dword [rsp + 0x60], 0x11c
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov dword [rsp + 0x2c], 0
mov eax, dword [rsp + 0x64]
cmp eax, 0xa
je 0x140044281
cmp eax, 6
jne 0x1400442bc
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.GetProductInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [rsp + 0x64]
mov edx, dword [rsp + 0x68]
lea rdi, [rsp + 0x2c]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call rax
mov esi, dword [rsp + 0x2c]
mov ecx, 0x80
call fcn.140051f60
mov rdi, rax
lea rdx, [rsp + 0x60]
lea r8, [rsp + 0x30]
mov rcx, rax
mov r9d, esi
call fcn.140044320
mov qword [0x140094978], rdi
lea rcx, [0x140094980]
call fcn.140052fe0
jmp 0x1400441ec

Function at 0x140047600
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1400910e0]
cmp ecx, 0xffffffff
je 0x14004761e
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp rax, 1
sete al
jmp 0x140047620
xor eax, eax
add rsp, 0x28
ret
Function at 0x140047630
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov r14, rdx
mov r15, rcx
mov ecx, dword [0x1400910e0]
cmp ecx, 0xffffffff
je 0x14004765d
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x140047662
call fcn.140047790
mov eax, dword [0x1400961a8]
mov ecx, dword [0x140092044]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14004772b
mov rbx, qword [0x1400961a0]
mov rcx, rbx
call fcn.1400242d0
mov rcx, qword [0x140094998]
add rcx, 1
xor edx, edx
lea rax, [0x1400949a0]
nop word [rax + rax]
movzx edi, cl
lea rsi, [rdi + rdi*2]
cmp dword [rax + rsi*8], 0
je 0x1400476e1
lea edi, [rcx + 1]
movzx edi, dil
lea rsi, [rdi + rdi*2]
cmp dword [rax + rsi*8], 0
je 0x1400476e1
add rdx, 2
add rcx, 2
cmp rdx, 0x100
jb 0x1400476b0
jmp 0x140047706
lea rcx, [rax + rsi*8]
mov dword [rcx], 1
lea rcx, [rdi + rdi*2]
mov qword [rax + rcx*8 + 8], r14
mov qword [0x140094998], rdi
mov dword [r15], edi
mov eax, dword [rax + rcx*8 + 0x10]
mov dword [r15 + 4], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [r15]
cmp eax, 0xffffffff
je 0x140047773
cmp eax, 0x100
jge 0x14004777a
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
lea rcx, [0x1400961a8]
call fcn.140052f70
mov eax, dword [0x1400961a8]
cmp eax, 0xffffffff
jne 0x140047687
mov ecx, 8
call fcn.140051f60
mov rbx, rax
mov rcx, rax
call fcn.1400242c0
mov qword [0x1400961a0], rbx
lea rcx, [0x1400961a8]
call fcn.140052fe0
jmp 0x140047687
int3
int3

Function at 0x140047790
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
mov eax, 0x1040
call fcn.140053650
sub rsp, rax
lea rbp, [rsp + 0x80]
mov rax, qword [0x140091028]
xor rax, rbp
mov qword [rbp + 0xfb8], rax
mov ecx, dword [0x1400910e0]
mov dword [rbp - 0x54], ecx
cmp ecx, 0xffffffff
jne 0x140047828
lea rcx, [rbp - 0x54]
call fcn.1400509f0
test al, al
je 0x14004789f
mov ecx, dword [rbp - 0x54]
cmp ecx, 0xffffffff
jne 0x140047808
lea rcx, [rbp - 0x54]
call fcn.1400509f0
test al, al
je 0x1400478a6
cmp dword [rbp - 0x54], 0xffffffff
je 0x1400478a6
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rbp - 0x54]
mov eax, 0xffffffff
lock cmpxchg dword [0x1400910e0], ecx
mov ecx, dword [rbp - 0x54]
je 0x140047828
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x1400910e0]
mov dword [rbp - 0x54], ecx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x140047898
lea rsi, [rbp - 0x50]
xor edx, edx
mov r8d, 0x1000
mov rcx, rsi
call fcn.1400568d0
mov ecx, dword [rbp - 0x54]
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.140054670
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.140056460
mov ecx, dword [rbp - 0x54]
mov rdx, rdi
call sub.KERNEL32.dll_TlsSetValue
mov rcx, qword [rbp + 0xfb8]
xor rcx, rbp
call fcn.140051fd0
mov rax, rdi
add rsp, 0x1040
pop rdi
pop rsi
pop rbp
ret
int3
int3
int3
Function at 0x1400478b0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x1400910e0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400478df
movsxd rcx, dword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 4]
jne 0x1400478df
mov rax, qword [rax + rcx]
jmp 0x1400478e1
xor eax, eax
add rsp, 0x20
pop rsi
ret

Function at 0x1400478f0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x1400910e0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x140047912
call fcn.140047790
movsxd rcx, dword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 4]
movsxd rdx, dword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x140049290
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov r15, r8
mov r12, qword [r8 + 0x10]
cmp qword [r8 + 0x18], 0xf
jbe 0x1400492b1
mov r15, qword [r15]
movabs rsi, 0xcbf29ce484222325
test r12, r12
mov qword [rsp + 0x20], rdx
je 0x1400492e6
movabs rax, 0x100000001b3
lea rdx, [r12 - 1]
mov r8d, r12d
and r8d, 7
cmp rdx, 7
jae 0x1400492ee
mov rdi, r15
jmp 0x140049361
mov rdx, rsi
jmp 0x140049387
mov rdx, r8
sub rdx, r12
mov rdi, r15
nop word [rax + rax]
movzx ebp, byte [rdi]
xor rbp, rsi
imul rbp, rax
movzx ebx, byte [rdi + 1]
xor rbx, rbp
imul rbx, rax
movzx ebp, byte [rdi + 2]
xor rbp, rbx
imul rbp, rax
movzx ebx, byte [rdi + 3]
xor rbx, rbp
imul rbx, rax
movzx ebp, byte [rdi + 4]
xor rbp, rbx
imul rbp, rax
movzx ebx, byte [rdi + 5]
xor rbx, rbp
imul rbx, rax
movzx ebp, byte [rdi + 6]
xor rbp, rbx
imul rbp, rax
movzx esi, byte [rdi + 7]
xor rsi, rbp
imul rsi, rax
add rdi, 8
add rdx, 8
jne 0x140049300
mov rdx, rsi
test r8, r8
je 0x140049387
xor ebp, ebp
nop dword [rax + rax]
movzx edx, byte [rdi + rbp]
xor rdx, rsi
imul rdx, rax
add rbp, 1
mov rsi, rdx
cmp r8, rbp
jne 0x140049370
and rdx, qword [rcx + 0x30]
mov rdi, qword [rcx + 8]
mov r13, qword [rcx + 0x18]
mov rax, rdx
shl rax, 4
mov rbp, qword [r13 + rax]
lea r14, [rdx + rdx]
add r14, 1
mov rbx, rbp
cmp rbp, rdi
jne 0x1400493c8
jmp 0x1400493f0
mov rbx, qword [rbx]
cmp rbp, rdi
je 0x1400493f0
mov rax, qword [r13 + r14*8]
mov rax, qword [rax]
cmp rax, rbx
je 0x140049428
cmp qword [rbx + 0x20], r12
jne 0x1400493c0
cmp qword [rbx + 0x28], 0xf
jbe 0x140049400
mov rsi, qword [rbx + 0x10]
jmp 0x140049404
mov rax, rdi
cmp rax, rbx
jne 0x1400493d5
jmp 0x140049428
lea rsi, [rbx + 0x10]
mov rcx, rsi
mov rdx, r15
mov r8, r12
call fcn.140056360
test eax, eax
jne 0x1400493c0
mov rcx, r15
mov rdx, rsi
mov r8, r12
call fcn.140056360
test eax, eax
je 0x140049441
mov rax, qword [rsp + 0x20]
mov qword [rax], rdi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rsp + 0x20]
mov qword [rax], rbx
jmp 0x140049430
Function at 0x14004ca20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rsi
mov r8, qword [rcx]
mov rax, qword [rcx + 8]
sub rax, r8
mov r9, rax
sar r9, 2
test rax, rax
je 0x14004caa1
xor r11d, r11d
lea r10, [0x14007dd60]
mov edx, r9d
nop word cs:[rax + rax]
nop
mov eax, dword [r8 + r11*4]
mov esi, eax
xor esi, edx
movzx esi, sil
shr edx, 8
xor edx, dword [r10 + rsi*4]
mov esi, eax
shr esi, 8
xor esi, edx
movzx esi, sil
shr edx, 8
xor edx, dword [r10 + rsi*4]
mov esi, eax
shr esi, 0x10
xor esi, edx
movzx esi, sil
shr edx, 8
xor edx, dword [r10 + rsi*4]
movzx esi, dl
shr eax, 0x18
xor eax, esi
shr edx, 8
xor edx, dword [r10 + rax*4]
add r11, 1
cmp r11, r9
jb 0x14004ca50
jmp 0x14004caa4
mov edx, r9d
cmp edx, dword [rcx + 0x18]
sete al
pop rsi
ret

Function at 0x14004cab0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rsi
mov r8, qword [rcx]
mov rax, qword [rcx + 8]
sub rax, r8
mov r9, rax
sar r9, 2
test rax, rax
je 0x14004cb31
xor r11d, r11d
lea r10, [0x14007dd60]
mov edx, r9d
nop word cs:[rax + rax]
nop
mov eax, dword [r8 + r11*4]
mov esi, eax
xor esi, edx
movzx esi, sil
shr edx, 8
xor edx, dword [r10 + rsi*4]
mov esi, eax
shr esi, 8
xor esi, edx
movzx esi, sil
shr edx, 8
xor edx, dword [r10 + rsi*4]
mov esi, eax
shr esi, 0x10
xor esi, edx
movzx esi, sil
shr edx, 8
xor edx, dword [r10 + rsi*4]
movzx esi, dl
shr eax, 0x18
xor eax, esi
shr edx, 8
xor edx, dword [r10 + rax*4]
add r11, 1
cmp r11, r9
jb 0x14004cae0
jmp 0x14004cb34
mov edx, r9d
mov dword [rcx + 0x18], edx
pop rsi
ret

Function at 0x140050950
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x140091028]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x3c], 4
mov dword [rsp + 0x38], 4
mov dword [rsp + 0x34], 0
mov rcx, qword [rcx]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3c]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x1400509cb
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x1400509cb
cmp dword [rsp + 0x38], 4
jne 0x1400509cb
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140051fd0
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret

Function at 0x1400509f0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140050a09
mov dword [rsi], eax
mov al, 1
jmp 0x140050a0b
xor eax, eax
add rsp, 0x20
pop rsi
ret
Function at 0x140051cd0
Capabilities:
Encode data using xor

Disassembly:
cmp rdx, 0x7fffffff
jbe 0x14005083c
xor eax, eax
ret
jmp 0x140051cd0
push rsi
xor eax, eax
test rcx, rcx
je 0x140051e0d
test edx, edx
jle 0x140051e0d
mov r11d, edx
shr r11d, 2
je 0x140051d8c
lea r10d, [r11 - 1]
mov r9d, r11d
mov esi, edx
mov r8, rcx
test dl, 4
je 0x140051d2a
movzx r9d, word [rcx]
add r9d, edx
movzx eax, word [rcx + 2]
shl eax, 0xb
xor eax, r9d
shl r9d, 0x10
xor r9d, eax
lea r8, [rcx + 4]
mov esi, r9d
shr esi, 0xb
add esi, r9d
mov r9d, r10d
lea r10, [r10*4 + 4]
cmp r11d, 1
je 0x140051d87
add r9d, 2
nop dword [rax]
movzx eax, word [r8]
add eax, esi
movzx esi, word [r8 + 2]
shl esi, 0xb
xor esi, eax
shl eax, 0x10
xor eax, esi
mov esi, eax
shr esi, 0xb
add esi, eax
movzx eax, word [r8 + 4]
add eax, esi
movzx esi, word [r8 + 6]
shl esi, 0xb
xor esi, eax
shl eax, 0x10
xor eax, esi
mov esi, eax
shr esi, 0xb
add esi, eax
add r9d, 0xfffffffe
add r8, 8
cmp r9d, 2
jg 0x140051d40
add rcx, r10
jmp 0x140051d8e
mov esi, edx
and dl, 3
cmp dl, 1
je 0x140051dbc
cmp dl, 2
je 0x140051dce
cmp dl, 3
jne 0x140051de1
movzx eax, word [rcx]
add esi, eax
movsx eax, byte [rcx + 2]
shl eax, 0x12
xor eax, esi
mov ecx, esi
shl ecx, 0x10
xor eax, ecx
mov esi, eax
shr esi, 0xb
jmp 0x140051ddf
movsx eax, byte [rcx]
add esi, eax
mov eax, esi
shl eax, 0xa
xor eax, esi
mov esi, eax
shr esi, 1
jmp 0x140051ddf
movzx eax, word [rcx]
add esi, eax
mov eax, esi
shl eax, 0xb
xor eax, esi
mov esi, eax
shr esi, 0x11
add esi, eax
lea eax, [rsi*8]
xor eax, esi
mov ecx, eax
shr ecx, 5
add ecx, eax
mov eax, ecx
shl eax, 4
xor eax, ecx
mov ecx, eax
shr ecx, 0x11
add ecx, eax
mov edx, ecx
shl edx, 0x19
xor edx, ecx
mov eax, edx
shr eax, 6
add eax, edx
pop rsi
ret

Function at 0x14005a020
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14005a158
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 0x14005a1bf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14005a1bf
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14005a1bf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14005a1bf
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14005a1bf
cmp dword [rcx + 0x84], 0xe
jbe 0x14005a1bf
cmp dword [rcx + 0xf8], 0
je 0x14005a1bf
mov ecx, ebx
call fcn.14005a0a4
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.14005a2ec
cmp dword [rbp + 0x20], 0
je 0x14005a20c
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14005a100
int3
Function at 0x1400a2920
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov qword [rsp], rax
mov dword [rsp + 8], 0xffffffff
mov dword [rsp + 0xc], 0
jmp 0x1400a2952
mov eax, dword [rsp + 0xc]
inc eax
mov dword [rsp + 0xc], eax
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0xc], eax
jae 0x1400a29fa
mov eax, dword [rsp + 0xc]
mov rcx, qword [rsp]
movzx eax, byte [rcx + rax]
movzx ecx, byte [rsp + 8]
xor eax, ecx
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 8]
shr eax, 8
mov dword [rsp + 8], eax
mov dword [rsp + 0x14], 0
jmp 0x1400a2996
mov eax, dword [rsp + 0x14]
inc eax
mov dword [rsp + 0x14], eax
cmp dword [rsp + 0x14], 8
jge 0x1400a29e5
mov eax, dword [rsp + 0x10]
and eax, 1
test eax, eax
je 0x1400a29b2
mov dword [rsp + 0x1c], 1
jmp 0x1400a29ba
mov dword [rsp + 0x1c], 0
movzx eax, byte [rsp + 0x1c]
mov byte [rsp + 0x18], al
mov eax, dword [rsp + 0x10]
shr eax, 1
mov dword [rsp + 0x10], eax
movzx eax, byte [rsp + 0x18]
test eax, eax
je 0x1400a29e3
mov eax, dword [rsp + 0x10]
xor eax, 0xedb88320
mov dword [rsp + 0x10], eax
jmp 0x1400a298c
mov eax, dword [rsp + 0x10]
mov ecx, dword [rsp + 8]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 8], eax
jmp 0x1400a2948
mov eax, dword [rsp + 8]
not eax
add rsp, 0x28
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1405fa680]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1405fa690]
mov dword [rax], 1
mov rax, qword [0x1405fa6a0]
mov dword [rax], 1
mov rax, qword [0x1405fa5e0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1405fa670]
mov dword [0x14062100c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1405fa760]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1405fa740]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1405f9a50]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x14000c400
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 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 rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x14000c470
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1406210d4]
mov rbx, rcx
test esi, esi
jle 0x14000c5a0
mov rax, qword [0x1406210d8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000c4bb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000c545
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000c4a0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x14000c5c2
mov rax, qword [0x1406210d8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1406210d8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000c5a7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000c53e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14000c550
add dword [0x1406210d4], 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 [0x1406210d8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000c53e
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 esi, esi
jmp 0x14000c4c8
mov rax, qword [0x1406210d8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000cb50
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140621140]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140621120]
test rbx, rbx
je 0x14000cbac
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 rsi, rsi
je 0x14000cba3
test eax, eax
jne 0x14000cba3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000cb88
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]