joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002ec2
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
lea rax, str.echoBinSafe
mov qword [rbp - 0x48], rax
lea rax, str.C:_toolsNim_nim_1.6.8lib_systemio.nim
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov word [rbp - 0x30], 0
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.nimFrame_2
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x40], 8
lea rax, str.C:_toolsNim_nim_1.6.8lib_systemiterators.nim
mov qword [rbp - 0x38], rax
mov qword [rbp - 8], 0
mov qword [rbp - 0x40], 9
lea rax, str.C:_toolsNim_nim_1.6.8lib_systemiterators.nim
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x28]
jge 0x140003011
mov qword [rbp - 0x40], 0x332
lea rax, str.C:_toolsNim_nim_1.6.8lib_systemio.nim
mov qword [rbp - 0x38], rax
cmp qword [rbp - 8], 0
js 0x140002f73
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x28]
jl 0x140002f87
mov rax, qword [rbp + 0x28]
lea rdx, [rax - 1]
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.raiseIndexError2
mov rax, qword [rbp - 8]
lea rdx, [rax*8]
mov rax, qword [rbp + 0x20]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov rbx, qword [rax]
mov ecx, 1
mov rax, qword [sym.imp.ucrtbase.dll___acrt_iob_func]
call rax
mov r8d, 0
mov rdx, rbx
mov rcx, rax
call sym.writeWindows__systemZio_205
mov qword [rbp - 0x40], 0xb
lea rax, str.C:_toolsNim_nim_1.6.8lib_systemiterators.nim
mov qword [rbp - 0x38], rax
mov edx, 0
mov rax, qword [rbp - 8]
add rax, 1
jno 0x140002feb
mov edx, 1
mov rcx, rax
lea rax, [rbp - 0x58]
mov qword [rax], rcx
mov rax, rdx
and eax, 1
test al, al
je 0x140003004
call sym.raiseOverflow
mov rax, qword [rbp - 0x58]
mov qword [rbp - 8], rax
jmp 0x140002f41
nop
mov qword [rbp - 0x40], 0x338
lea rax, str.C:_toolsNim_nim_1.6.8lib_systemio.nim
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x14], 0
mov ecx, 1
mov rax, qword [sym.imp.ucrtbase.dll___acrt_iob_func]
call rax
mov r9, rax
mov r8d, 1
mov edx, 1
lea rax, [0x14001b3e8]
mov rcx, rax
call sym.fwrite
mov dword [rbp - 0x14], eax
mov qword [rbp - 0x40], 0x339
lea rax, str.C:_toolsNim_nim_1.6.8lib_systemio.nim
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x18], 0
mov ecx, 1
mov rax, qword [sym.imp.ucrtbase.dll___acrt_iob_func]
call rax
mov rcx, rax
call sym.fflush
mov dword [rbp - 0x18], eax
call sym.popFrame_2
nop
add rsp, 0x88
pop rbx
pop rbp
ret

Function at 0x140004e21
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp - 4], 0
cmp qword [rbp + 0x18], 0
je 0x140004e50
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sym.nimCStrLen
mov rcx, rax
jmp 0x140004e55
mov ecx, 0
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
mov r9, rdx
mov r8, rcx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov dword [rbp - 4], eax
mov dword [rbp - 8], 0
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sym.fflush
mov dword [rbp - 8], eax
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140004e90
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
lea rax, str.raiseOutOfMem
mov qword [rbp - 0x28], rax
lea rax, str.C:_toolsNim_nim_1.6.8lib_systemmmdisp.nim
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x20], 0
mov word [rbp - 0x10], 0
lea rax, [rbp - 0x30]
mov rcx, rax
call sym.nimFrame_3
mov qword [rbp - 0x20], 0x2f
lea rax, str.C:_toolsNim_nim_1.6.8lib_systemmmdisp.nim
mov qword [rbp - 0x18], rax
mov rax, qword [0x140023698]
test rax, rax
je 0x140004ef2
mov rax, qword [0x140023698]
call rax
jmp 0x140004ef3
nop
mov qword [rbp - 0x20], 0x30
lea rax, str.C:_toolsNim_nim_1.6.8lib_systemmmdisp.nim
mov qword [rbp - 0x18], rax
mov ecx, 2
mov rax, qword [sym.imp.ucrtbase.dll___acrt_iob_func]
call rax
mov rcx, rax
lea rax, str.out_of_memory_n
mov rdx, rax
call sym.rawWrite
mov qword [rbp - 0x20], 0x31
lea rax, str.C:_toolsNim_nim_1.6.8lib_systemmmdisp.nim
mov qword [rbp - 0x18], rax
mov ecx, 1
call sym.exit
nop

Function at 0x140008d31
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
lea rax, str.osDeallocPages
mov qword [rbp - 0x38], rax
lea rax, str.C:_toolsNim_nim_1.6.8lib_systemosalloc.nim
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x30], 0
mov word [rbp - 0x20], 0
lea rax, [rbp - 0x40]
mov rcx, rax
call sym.nimFrame_3
mov qword [rbp - 0x30], 0xbe
lea rax, str.C:_toolsNim_nim_1.6.8lib_systemosalloc.nim
mov qword [rbp - 0x28], rax
mov dword [rbp - 4], 0
mov rax, qword [rbp + 0x10]
mov r8d, 0x8000
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFree]
call rax
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
jne 0x140008df8
mov qword [rbp - 0x30], 0xbf
lea rax, str.C:_toolsNim_nim_1.6.8lib_systemosalloc.nim
mov qword [rbp - 0x28], rax
mov dword [rbp - 8], 0
lea rax, str.virtualFree_failing_
mov rcx, rax
call sym.printf
mov dword [rbp - 8], eax
mov qword [rbp - 0x30], 0xc0
lea rax, str.C:_toolsNim_nim_1.6.8lib_systemosalloc.nim
mov qword [rbp - 0x28], rax
mov ecx, 1
call sym.exit
nop
call sym.popFrame_3
nop
add rsp, 0x60
pop rbp
ret

Function at 0x14000d4e5
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov dword [rbp - 4], 0
mov rdx, qword [rbp + 0x20]
mov rcx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov dword [rbp - 4], eax
mov dword [rbp - 8], 0
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sym.fflush
mov dword [rbp - 8], eax
nop
add rsp, 0x30
pop rbp
ret
Function at 0x14000d970
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov rax, qword [0x140023690]
test rax, rax
je 0x14000d9a7
mov byte [rbp - 1], 0
mov rdx, qword [0x140023690]
mov rax, qword [rbp + 0x10]
mov rcx, rax
call rdx
mov byte [rbp - 1], al
cmp byte [rbp - 1], 0
je 0x14000da1f
jmp 0x14000d9a8
nop
mov rax, qword [0x140023688]
test rax, rax
je 0x14000d9d3
mov byte [rbp - 2], 0
mov rdx, qword [0x140023688]
mov rax, qword [rbp + 0x10]
mov rcx, rax
call rdx
mov byte [rbp - 2], al
cmp byte [rbp - 2], 0
je 0x14000da22
jmp 0x14000d9d4
nop
mov rax, qword [0x1400236b8]
test rax, rax
je 0x14000da08
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sym.pushCurrentException
mov rax, qword [0x1400236b8]
add rax, 0x10
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.ucrtbase.dll_longjmp]
call rax
nop
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sym.reportUnhandledError__system_2882
mov ecx, 1
call sym.exit
nop
jmp 0x14000da23
nop
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14000fb49
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
call sym.writeStackTrace__system_2161
mov qword [rbp - 8], 0
mov qword [rbp - 0x10], 0
mov ecx, 0x7d0
call sym.dollar___systemZdollars_3
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x14000fb8a
mov rax, qword [rbp - 0x10]
mov rax, qword [rax]
add rax, 0xa7
jmp 0x14000fb8f
mov eax, 0xa7
mov rcx, rax
call sym.rawNewString
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
lea rdx, [0x14001b940]
mov rcx, rax
call sym.appendString
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.appendString
mov rax, qword [rbp - 8]
lea rdx, [0x14001b9a0]
mov rcx, rax
call sym.appendString
mov rax, qword [rbp - 8]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sym.showErrorMessage2__system_2546
mov ecx, 1
call sym.exit
nop
Function at 0x1400100d4
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
lea rax, str.nimRegisterThreadLocalMarker
mov qword [rbp - 0x28], rax
lea rax, str.C:_toolsNim_nim_1.6.8lib_systemgc_common.nim
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x20], 0
mov word [rbp - 0x10], 0
lea rax, [rbp - 0x30]
mov rcx, rax
call sym.nimFrame_3
mov qword [rbp - 0x20], 0x1de
lea rax, str.C:_toolsNim_nim_1.6.8lib_systemgc_common.nim
mov qword [rbp - 0x18], rax
mov rax, qword [0x14002d440]
cmp rax, 0xdab
jg 0x14001018a
mov qword [rbp - 0x20], 0x1df
lea rax, str.C:_toolsNim_nim_1.6.8lib_systemgc_common.nim
mov qword [rbp - 0x18], rax
mov rax, qword [0x14002d440]
lea rcx, [rax*8]
lea rdx, [0x14002d460]
mov rax, qword [rbp + 0x10]
mov qword [rcx + rdx], rax
mov qword [rbp - 0x20], 0x1e0
lea rax, str.C:_toolsNim_nim_1.6.8lib_systemgc_common.nim
mov qword [rbp - 0x18], rax
mov rax, qword [0x14002d440]
add rax, 1
mov qword [0x14002d440], rax
jmp 0x1400101db
nop
mov qword [rbp - 0x20], 0x1e2
lea rax, str.C:_toolsNim_nim_1.6.8lib_systemgc_common.nim
mov qword [rbp - 0x18], rax
mov ecx, 2
mov rax, qword [sym.imp.ucrtbase.dll___acrt_iob_func]
call rax
mov rcx, rax
lea rax, str._GC__cannot_register_thread_local_variable__too_many_thread_local_variables
mov rdx, rax
call sym.rawWrite
mov qword [rbp - 0x20], 0x1e3
lea rax, str.C:_toolsNim_nim_1.6.8lib_systemgc_common.nim
mov qword [rbp - 0x18], rax
mov ecx, 1
call sym.exit
call sym.popFrame_3
nop
add rsp, 0x50
pop rbp
ret
Function at 0x14001035d
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov dword [rbp + 0x10], ecx
call sym.GC_disable__system_2263
mov ecx, 0x7d0
call sym.rawNewString
mov qword [rbp - 8], rax
lea rax, [rbp - 8]
mov rcx, rax
call sym.rawWriteStackTrace__system_2848
cmp dword [rbp + 0x10], 2
jne 0x1400103ba
mov rax, qword [rbp - 8]
mov edx, 0x1f
mov rcx, rax
call sym.resizeString
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
lea rdx, [0x14001ba40]
mov rcx, rax
call sym.appendString
jmp 0x1400104ae
nop
cmp dword [rbp + 0x10], 0xb
jne 0x1400103ee
mov rax, qword [rbp - 8]
mov edx, 0x3d
mov rcx, rax
call sym.resizeString
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
lea rdx, [0x14001ba80]
mov rcx, rax
call sym.appendString
jmp 0x1400104ae
nop
cmp dword [rbp + 0x10], 0x16
jne 0x140010422
mov rax, qword [rbp - 8]
mov edx, 0x1f
mov rcx, rax
call sym.resizeString
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
lea rdx, [0x14001bae0]
mov rcx, rax
call sym.appendString
jmp 0x1400104ae
nop
cmp dword [rbp + 0x10], 8
jne 0x140010453
mov rax, qword [rbp - 8]
mov edx, 0x1a
mov rcx, rax
call sym.resizeString
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
lea rdx, [0x14001bb20]
mov rcx, rax
call sym.appendString
jmp 0x1400104ae
nop
cmp dword [rbp + 0x10], 4
jne 0x140010484
mov rax, qword [rbp - 8]
mov edx, 0x1b
mov rcx, rax
call sym.resizeString
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
lea rdx, [0x14001bb60]
mov rcx, rax
call sym.appendString
jmp 0x1400104ae
nop
nop
mov rax, qword [rbp - 8]
mov edx, 0xf
mov rcx, rax
call sym.resizeString
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
lea rdx, [0x14001bc00]
mov rcx, rax
call sym.appendString
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.showErrorMessage2__system_2546
call sym.GC_enable__system_2264
mov ecx, 1
call sym.exit
nop

Function at 0x140010650
Capabilities:
Terminate process

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov ecx, 2
mov rax, qword [sym.imp.ucrtbase.dll___acrt_iob_func]
call rax
mov rcx, rax
lea rax, str.could_not_load:
mov rdx, rax
call sym.rawWrite
mov rax, qword [rbp + 0x20]
mov rcx, rax
call sym.nimToCStringConv_1
mov rbx, rax
mov ecx, 2
mov rax, qword [sym.imp.ucrtbase.dll___acrt_iob_func]
call rax
mov rdx, rbx
mov rcx, rax
call sym.rawWrite
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0xc1
jne 0x1400106de
mov ecx, 2
mov rax, qword [sym.imp.ucrtbase.dll___acrt_iob_func]
call rax
mov rcx, rax
lea rax, str._n_bad_format__library_may_be_wrong_architecture_
mov rdx, rax
call sym.rawWrite
jmp 0x1400106df
nop
mov ecx, 2
mov rax, qword [sym.imp.ucrtbase.dll___acrt_iob_func]
call rax
mov rcx, rax
lea rax, [0x14001c499]
mov rdx, rax
call sym.rawWrite
mov ecx, 1
call sym.exit
nop
Function at 0x14001070a
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov ecx, 2
mov rax, qword [sym.imp.ucrtbase.dll___acrt_iob_func]
call rax
mov rcx, rax
lea rax, str.could_not_import:
mov rdx, rax
call sym.rawWrite
mov ecx, 2
mov rax, qword [sym.imp.ucrtbase.dll___acrt_iob_func]
call rax
mov rcx, rax
mov rax, qword [rbp + 0x10]
mov rdx, rax
call sym.rawWrite
mov ecx, 2
mov rax, qword [sym.imp.ucrtbase.dll___acrt_iob_func]
call rax
mov rcx, rax
lea rax, [0x14001c499]
mov rdx, rax
call sym.rawWrite
mov ecx, 1
call sym.exit
nop

Function at 0x140011f20
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 0x140012bf2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140034708]
test eax, eax
je 0x140012c8a
lea rax, [0x1400346e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140034710]
mov qword [rbp - 8], rax
jmp 0x140012c6e
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 0x140012c62
cmp qword [rbp - 0x10], 0
je 0x140012c62
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 0x140012c28
lea rax, [0x1400346e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140012c8b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140012d90
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 0x140012db8
mov eax, 0
jmp 0x140012e06
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 0x140012de1
mov eax, 0
jmp 0x140012e06
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 0x140012e01
mov eax, 0
jmp 0x140012e06
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140012e0c
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 0x140012e8a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140012e81
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 0x140012e81
mov rax, qword [rbp - 8]
jmp 0x140012e9f
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 0x140012e54
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001070
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x130
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x120], rax
xor r10d, r10d
lea rdi, [0x140000000]
nop dword [rax]
mov r11, qword [rdi + r10*8 + 0x3380]
xor r9d, r9d
nop dword [rax + rax]
movsxd rax, r9d
mov r8, r11
mov rax, qword [rdi + rax*8 + 0x4800]
sub r8, rax
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1400010d4
inc rax
test ecx, ecx
jne 0x1400010c1
test edx, edx
je 0x1400010e6
inc r9d
cmp r9d, 0x100
jl 0x1400010b0
jmp 0x1400010ee
mov byte [r10 + rdi + 0x7670], r9b
inc r10
cmp r10, 0x28f
jl 0x1400010a0
mov ebx, 0x989680
nop
xor edx, edx
lea rcx, [rsp + 0x20]
xor eax, eax
nop dword [rax]
mov byte [rcx], al
lea rcx, [rcx + 1]
inc eax
cmp eax, 0x100
jl 0x140001110
xor r8d, r8d
mov r10d, pe_nt_image_headers64
nop dword [rax + rax]
movzx r9d, byte [rsp + r8 + 0x20]
mov rax, r8
and eax, 0xf
movzx eax, byte [rax + rdi + 0x7078]
add edx, eax
add edx, r9d
and edx, 0x800000ff
jge 0x14000115b
dec edx
or edx, 0xffffff00
inc edx
movsxd rax, edx
lea rcx, [rsp + 0x20]
add rcx, rax
movzx eax, byte [rcx]
mov byte [rsp + r8 + 0x20], al
inc r8
mov byte [rcx], r9b
sub r10, 1
jne 0x140001130
xor r8d, r8d
xor edx, edx
xor r11d, r11d
inc edx
and edx, 0x800000ff
jge 0x140001196
dec edx
or edx, 0xffffff00
inc edx
movsxd rax, edx
lea r10, [rsp + 0x20]
add r10, rax
movzx r9d, byte [r10]
add r8d, r9d
and r8d, 0x800000ff
jge 0x1400011be
dec r8d
or r8d, 0xffffff00
inc r8d
movsxd rax, r8d
lea rcx, [rsp + 0x20]
add rcx, rax
movzx eax, byte [rcx]
mov byte [r10], al
mov byte [rcx], r9b
movzx eax, byte [r10]
add r9, rax
movzx eax, r9b
movzx ecx, byte [rsp + rax + 0x20]
xor byte [r11 + rdi + 0x7670], cl
inc r11
cmp r11, 0x28f
jb 0x140001182
sub rbx, 1
jne 0x140001100
call fcn.1400013e0
xor eax, eax
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1400016c0
mov rbx, qword [rsp + 0x140]
add rsp, 0x130
pop rdi
ret
Function at 0x140001230
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rdx
mov dword [rsp + 0x30], 0x20
mov rdi, rcx
mov dword [rsp + 0x20], 0xf0000000
xor edx, edx
lea rcx, [rsp + 0x40]
mov r9d, 0x18
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140001299
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_in_CryptAcquireContextW___u__n
call fcn.140001010
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1400012dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_in_CryptCreateHash___u__n
call fcn.140001010
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, qword [rsp + 0x48]
xor r9d, r9d
mov rdx, rbx
lea r8d, [r9 + 0x10]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x140001316
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_in_CryptHashData___u__n
call fcn.140001010
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov r8, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov edx, 0x6610
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x14000135c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_in_CryptDeriveKey___u__n
call fcn.140001010
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x1400013a2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_in_CryptDecrypt___u__n
call fcn.140001010
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, qword [rsp + 0x40]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400016c0
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x140003470
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 0x1400034cd
lea rbx, [0x1400aa2c0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1400034b4
cmp r10, 2
jb 0x1400034b4
cmp byte [r9], r8b
jne 0x1400034b4
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 0x140003490
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000350f
lea rbx, [0x1400aa2c0]
cmp r8b, 0x23
jne 0x1400034f3
cmp byte [r9], r8b
jne 0x1400034f3
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 0x1400034e0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140003640
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x14000365a
mov qword [r8], 0
lea rdx, [0x1400eb434]
call fcn.140003520
mov rbx, rax
test rax, rax
jne 0x14000367a
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 0x140003751
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 0x140003751
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140003751
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 0x140003751
cmp rdi, 0xffffffffffffffff
je 0x140003751
mov rax, qword [0x1400fad40]
test rax, rax
je 0x1400036ee
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 0x140003751
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 0x14000373e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1400fad40]
test rax, rax
je 0x140003733
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14000375a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x14000374c
mov qword [r14], rdi
mov rax, rsi
jmp 0x14000375c
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
Function at 0x140006200
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0x108]
mov rax, qword [rcx + 0x110]
movsxd r9, edx
mov ebx, dword [rax + r8*4 - 4]
lea r8, [0x1400aa2c0]
not ebx
movzx eax, r9b
movzx ecx, bl
xor rcx, rax
shr ebx, 8
mov eax, r9d
shr eax, 8
movzx edx, al
mov eax, r9d
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
xor rdx, rcx
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r9d
shr rdx, 0x18
xor rdx, rcx
mov rcx, qword [0x1400fad40]
xor ebx, dword [r8 + rdx*4]
not ebx
cmp dword [rcx + 0x3ffc], ebx
jne 0x140006296
mov r8, r9
mov edx, 4
mov ecx, ebx
call fcn.140025320
mov eax, ebx
add rsp, 0x20
pop rbx
ret