joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c2f00
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x1401158d0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp], 0
jmp 0x1401158f8
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
mov rax, qword [rsp + 0x30]
cmp qword [rsp], rax
jae 0x140115942
mov rax, qword [rsp]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov rcx, qword [rsp + 0x20]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
movabs rax, 0x100000001b3
mov rcx, qword [rsp + 0x20]
imul rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
jmp 0x1401158ed
mov rax, qword [rsp + 0x20]
add rsp, 0x18
ret
Function at 0x1400c467f
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1401c0790
mov rax, rcx
neg rcx
test rax, 7
je 0x1401c07ad
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1401c0808
test al, 7
jne 0x1401c07a0
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x1401c07c1
mov rdx, qword [rax - 8]
test dl, dl
je 0x1401c0832
test dh, dh
je 0x1401c082c
shr rdx, 0x10
test dl, dl
je 0x1401c0826
test dh, dh
je 0x1401c0820
shr rdx, 0x10
test dl, dl
je 0x1401c081a
test dh, dh
je 0x1401c0814
shr edx, 0x10
test dl, dl
je 0x1401c080e
test dh, dh
jne 0x1401c07c1
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x1400c46c5
Capabilities:
Query environment variable

Disassembly:
jmp 0x140227040
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140226bc0
lea rcx, [rsp + 0x20]
call fcn.140226c10
movzx eax, al
test eax, eax
jne 0x140227085
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.140226bf0
mov rax, qword [rsp + 0x40]
jmp 0x14022717f
lea rcx, [rsp + 0x20]
call fcn.140226d10
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.140226cb0
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r9d, 0x40
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, rax
call fcn.1400c4a62
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400c3fd6
lea rcx, [rsp + 0x28]
call fcn.1400c4f58
movzx eax, al
test eax, eax
jne 0x14022711f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.1400c64c5
lea rcx, [rsp + 0x20]
call fcn.140226bf0
mov rax, qword [rsp + 0x50]
jmp 0x14022717f
lea rcx, [rsp + 0x20]
call fcn.140226d10
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.1400c7514
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r8, rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.1400c499a
lea rcx, [rsp + 0x28]
call fcn.1400c7f05
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.1400c64c5
lea rcx, [rsp + 0x20]
call fcn.140226bf0
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret
Function at 0x1400c4c15
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x14016a060
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1401699e0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14016a09f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x140430020]
jmp 0x14016a0a9
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x1400c4e77
Capabilities:
Query environment variable

Disassembly:
jmp 0x140226d90
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140226bc0
lea rcx, [rsp + 0x40]
call fcn.140226d40
movzx eax, al
test eax, eax
jne 0x140226dd8
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.140226bf0
mov rax, qword [rsp + 0x70]
jmp 0x140226fa9
lea rcx, [rsp + 0x40]
call fcn.140226d10
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140226cb0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.140226d10
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.1400c60dd
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x140226e7e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.140226bf0
mov rax, qword [rsp + 0x80]
jmp 0x140226fa9
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1400c4a62
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400c4832
lea rcx, [rsp + 0x48]
call fcn.1400c4206
movzx eax, al
test eax, eax
jne 0x140226ee5
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400c2d66
lea rcx, [rsp + 0x40]
call fcn.140226bf0
mov rax, qword [rsp + 0x88]
jmp 0x140226fa9
lea rcx, [rsp + 0x48]
call fcn.1400c5395
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.140226d10
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.1400c60dd
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x140226f7b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400c2d66
lea rcx, [rsp + 0x40]
call fcn.140226bf0
mov rax, qword [rsp + 0xa0]
jmp 0x140226fa9
lea rcx, [rsp + 0x48]
call fcn.1400c47e7
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400c2d66
lea rcx, [rsp + 0x40]
call fcn.140226bf0
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x1400c4e95
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140169f90
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.140169960
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140169fd1
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x140430020]
jmp 0x140169fd7
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret

Function at 0x1400c4f5d
Capabilities:
Get geographical location

Disassembly:
jmp 0x14020cba0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.14020bad0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14020cc07
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x140430030]
jmp 0x14020cc29
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1400c4170
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret

Function at 0x1400c4f71
Capabilities:
Terminate process

Disassembly:
jmp 0x140146b60
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400c5327
Capabilities:
Print debug messages

Disassembly:
jmp 0x1402351e0
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x140413080]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x140235206
jmp 0x140235283
mov rcx, qword [rbp + 0x30]
call fcn.1400c467f
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x14023521f
jmp 0x140235283
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14023523c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400c2fa5
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.1400c35db
test eax, eax
jne 0x140235283
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400c4977
lea rsp, [rbp + 0x20]
pop rbp
ret
Function at 0x1400c56c4
Capabilities:
Create process on windows

Disassembly:
jmp 0x140239130
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x128
lea rcx, [rsp + 0xe8]
call fcn.1400c3f81
lea rcx, [rsp + 0xb8]
call fcn.1400c3f81
lea rcx, [rsp + 0x88]
call fcn.1400c3f81
call fcn.1400c4df5
mov r8d, eax
lea rdx, [rsp + 0xe8]
mov rcx, qword [rsp + 0x130]
call fcn.1400c3c48
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x1402391d2
mov dword [rsp + 0x54], 0
lea rcx, [rsp + 0x88]
call fcn.1400c451c
lea rcx, [rsp + 0xb8]
call fcn.1400c451c
lea rcx, [rsp + 0xe8]
call fcn.1400c451c
mov eax, dword [rsp + 0x54]
jmp 0x140239378
call fcn.1400c4df5
mov r8d, eax
lea rdx, [rsp + 0xb8]
mov rcx, qword [rsp + 0x138]
call fcn.1400c3c48
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x140239232
mov dword [rsp + 0x5c], 0
lea rcx, [rsp + 0x88]
call fcn.1400c451c
lea rcx, [rsp + 0xb8]
call fcn.1400c451c
lea rcx, [rsp + 0xe8]
call fcn.1400c451c
mov eax, dword [rsp + 0x5c]
jmp 0x140239378
mov qword [rsp + 0x70], 0
cmp qword [rsp + 0x168], 0
je 0x1402392b8
call fcn.1400c4df5
mov r8d, eax
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x168]
call fcn.1400c3c48
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x1402392a6
mov dword [rsp + 0x64], 0
lea rcx, [rsp + 0x88]
call fcn.1400c451c
lea rcx, [rsp + 0xb8]
call fcn.1400c451c
lea rcx, [rsp + 0xe8]
call fcn.1400c451c
mov eax, dword [rsp + 0x64]
jmp 0x140239378
lea rcx, [rsp + 0x88]
call fcn.1400c3ea0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0xb8]
call fcn.1400c3ea0
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0xe8]
call fcn.1400c3ea0
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x158]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x150]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x148]
mov r8, qword [rsp + 0x140]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [rsp + 0x68], eax
lea rcx, [rsp + 0x88]
call fcn.1400c451c
lea rcx, [rsp + 0xb8]
call fcn.1400c451c
lea rcx, [rsp + 0xe8]
call fcn.1400c451c
mov eax, dword [rsp + 0x68]
add rsp, 0x128
ret

Function at 0x1400c5787
Capabilities:
Set environment variable

Disassembly:
jmp 0x140228eb0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x28
ret
Function at 0x1400c5af2
Capabilities:
Parse pe header

Disassembly:
jmp 0x1401478a0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1401478c0
xor al, al
jmp 0x140147941
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1401478d3
xor al, al
jmp 0x140147941
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1401478fd
xor al, al
jmp 0x140147941
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140147911
xor al, al
jmp 0x140147941
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140147923
xor al, al
jmp 0x140147941
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14014793f
xor al, al
jmp 0x140147941
mov al, 1
add rsp, 0x38
ret
Function at 0x1400c63ad
Capabilities:
Terminate process

Disassembly:
jmp 0x14016b350
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x14016b37e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.1400c6fdd
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400c705f
Capabilities:
Print debug messages

Disassembly:
jmp 0x1401f9e20
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x1400c71d1
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x14016a0d0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140169a20
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14016a119
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x140430020]
jmp 0x14016a128
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x1400c72e9
Capabilities:
Set environment variable

Disassembly:
jmp 0x140245e30
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.1400c3f81
lea rcx, [rsp + 0x48]
call fcn.1400c3f81
call fcn.1400c4df5
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.1400c3c48
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140245e9f
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.1400c451c
lea rcx, [rsp + 0x78]
call fcn.1400c451c
mov eax, dword [rsp + 0x24]
jmp 0x140245f30
call fcn.1400c4df5
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.1400c3c48
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x140245ee6
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.1400c451c
lea rcx, [rsp + 0x78]
call fcn.1400c451c
mov eax, dword [rsp + 0x2c]
jmp 0x140245f30
lea rcx, [rsp + 0x48]
call fcn.1400c3ea0
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.1400c3ea0
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.1400c451c
lea rcx, [rsp + 0x78]
call fcn.1400c451c
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x14020fff0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400c2fa5
sub rsp, rax
mov rax, qword [0x140413080]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x140417bb0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1402101e2
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x140210136
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140210136
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x14021011b
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x1402100b8
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1402101a2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140210201
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x1402101dd
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140210201
jmp 0x14021008e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400c4977
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1402102b0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400c2fa5
sub rsp, rax
mov rax, qword [0x140413080]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x140417bb0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1402104bd
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x140210409
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x140210409
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x1402103e9
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x140210378
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14021047d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1402104dc
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x1402104b8
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1402104dc
jmp 0x14021034e
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400c4977
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140003cc0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x140003d1d
lea rbx, [0x140050a50]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140003d04
cmp r10, 2
jb 0x140003d04
cmp byte [r9], r8b
jne 0x140003d04
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140003ce0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x140003d5f
lea rbx, [0x140050a50]
cmp r8b, 0x23
jne 0x140003d43
cmp byte [r9], r8b
jne 0x140003d43
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140003d30
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140003ea0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x140003eba
mov qword [r8], 0
lea rdx, [0x140054d94]
call fcn.140003d70
mov rbx, rax
test rax, rax
jne 0x140003eda
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x140003fb1
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140003fb1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140003fb1
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140003fb1
cmp rdi, 0xffffffffffffffff
je 0x140003fb1
mov rax, qword [0x1400734c0]
test rax, rax
je 0x140003f4e
inc dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140003fb1
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x140003f9e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1400734c0]
test rax, rax
je 0x140003f93
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140003fba
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x140003fac
mov qword [r14], rdi
mov rax, rsi
jmp 0x140003fbc
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret