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

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rdi, qword [rdx]
add dword [rcx], 2
mov rbx, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 2
call rbx
lea rdx, [0x1400cfd5f]
lea r8, str.StringLiteral
mov rcx, rax
call fcn.140088cb0
mov rdi, qword [rdi + 0x18]
mov ecx, 2
call rbx
mov ecx, 0xa
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
cmp dword [rsi], 0
je 0x14009e9ca
xor ebp, ebp
nop word cs:[rax + rax]
mov ecx, 2
call rbx
mov ecx, 0x20
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
inc ebp
cmp ebp, dword [rsi]
jne 0x14009e9b0
mov byte [rsi + 4], 0
test rdi, rdi
je 0x14009e9e0
mov rcx, rdi
mov rdx, rsi
call fcn.1400987e0
jmp 0x14009ea05
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rcx, str._null_
mov edx, 6
mov r8d, 1
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov byte [rsi + 4], 1
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 0x29
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
add dword [rsi], 0xfffffffe
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret

Function at 0x14009ea30
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rdi, qword [rdx]
add dword [rcx], 2
mov rbx, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 2
call rbx
lea rdx, [0x1400cfd5f]
lea r8, str.LambdaExpr
mov rcx, rax
call fcn.140088cb0
mov rdi, qword [rdi + 0x18]
mov ecx, 2
call rbx
mov ecx, 0xa
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
cmp dword [rsi], 0
je 0x14009eaaa
xor ebp, ebp
nop word cs:[rax + rax]
mov ecx, 2
call rbx
mov ecx, 0x20
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
inc ebp
cmp ebp, dword [rsi]
jne 0x14009ea90
mov byte [rsi + 4], 0
test rdi, rdi
je 0x14009eac0
mov rcx, rdi
mov rdx, rsi
call fcn.1400987e0
jmp 0x14009eae5
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rcx, str._null_
mov edx, 6
mov r8d, 1
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov byte [rsi + 4], 1
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 0x29
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
add dword [rsi], 0xfffffffe
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x14009eb10
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov rsi, rcx
mov r14, qword [rdx]
add dword [rcx], 2
mov rbx, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 2
call rbx
lea rdx, [0x1400cfd5f]
lea r8, str.EnumLiteral
mov rcx, rax
call fcn.140088cb0
mov rdi, qword [r14 + 0x18]
movups xmm0, xmmword [r14 + 0x20]
movaps xmmword [rsp + 0x20], xmm0
mov ecx, 2
call rbx
mov ecx, 0xa
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
cmp dword [rsi], 0
je 0x14009eb8a
xor ebp, ebp
mov ecx, 2
call rbx
mov ecx, 0x20
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
inc ebp
cmp ebp, dword [rsi]
jne 0x14009eb70
mov byte [rsi + 4], 0
test rdi, rdi
je 0x14009eba0
mov rcx, rdi
mov rdx, rsi
call fcn.1400987e0
jmp 0x14009ebc5
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rcx, str._null_
mov edx, 6
mov r8d, 1
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov byte [rsi + 4], 1
movaps xmm0, xmmword [rsp + 0x20]
movaps xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14009a120
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 0x29
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
add dword [rsi], 0xfffffffe
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x14009ec10
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, qword [rdx]
add dword [rcx], 2
mov r15, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 2
call r15
lea rdx, [0x1400cfd5f]
lea r8, str.BracedExpr
mov rcx, rax
call fcn.140088cb0
mov r14, qword [rbx + 0x18]
mov rdi, qword [rbx + 0x20]
movzx ebx, byte [rbx + 0x28]
mov ecx, 2
call r15
mov ecx, 0xa
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
cmp dword [rsi], 0
je 0x14009ec9b
xor ebp, ebp
nop word cs:[rax + rax]
mov ecx, 2
call r15
mov ecx, 0x20
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
inc ebp
cmp ebp, dword [rsi]
jne 0x14009ec80
mov byte [rsi + 4], 0
test r14, r14
je 0x14009ecb1
mov rcx, r14
mov rdx, rsi
call fcn.1400987e0
jmp 0x14009ecd6
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rcx, str._null_
mov edx, 6
mov r8d, 1
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov byte [rsi + 4], 1
mov rcx, rsi
mov rdx, rdi
call fcn.140099f60
mov rcx, rsi
mov edx, ebx
call fcn.14009be80
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 0x29
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
add dword [rsi], 0xfffffffe
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14009ed20
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rdi, qword [rdx]
add dword [rcx], 2
mov r15, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 2
call r15
lea rdx, [0x1400cfd5f]
lea r8, str.BracedRangeExpr
mov rcx, rax
call fcn.140088cb0
mov r14, qword [rdi + 0x18]
mov rbx, qword [rdi + 0x20]
mov rdi, qword [rdi + 0x28]
mov ecx, 2
call r15
mov ecx, 0xa
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
cmp dword [rsi], 0
je 0x14009edab
xor ebp, ebp
nop word cs:[rax + rax]
mov ecx, 2
call r15
mov ecx, 0x20
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
inc ebp
cmp ebp, dword [rsi]
jne 0x14009ed90
mov byte [rsi + 4], 0
test r14, r14
je 0x14009edc1
mov rcx, r14
mov rdx, rsi
call fcn.1400987e0
jmp 0x14009ede6
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rcx, str._null_
mov edx, 6
mov r8d, 1
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov byte [rsi + 4], 1
mov rcx, rsi
mov rdx, rbx
call fcn.140099f60
mov rcx, rsi
mov rdx, rdi
call fcn.140099f60
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 0x29
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
add dword [rsi], 0xfffffffe
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400b8de0
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov al, byte [0x1400f3f98]
test al, al
je 0x1400b8edf
cmp qword [0x14225a8b0], 0
je 0x1400b8e50
mov rax, qword [0x1400db5d0]
mov rcx, qword [rax]
mov rdx, qword [rcx - 0x18]
lea rcx, [rax + rdx]
mov r8, qword [0x14225aa08]
mov qword [rax + rdx + 0x28], r8
xor edx, edx
call fcn.140028ca0
mov rax, qword [0x1400db5c0]
mov rcx, qword [rax]
mov rdx, qword [rcx - 0x18]
lea rcx, [rax + rdx]
mov r8, qword [0x14225a9b8]
mov qword [rax + rdx + 0x28], r8
xor edx, edx
call fcn.140028ca0
call fcn.1400b8ff0
movzx eax, byte [rsi]
test al, 1
je 0x1400b8e5d
mov rax, qword [rsi + 8]
jmp 0x1400b8e5f
shr eax, 1
test rax, rax
je 0x1400b8ed7
lea rcx, [0x14225a830]
mov rdx, rsi
mov r8d, 0x10
call fcn.1400b9030
cmp qword [0x14225a8b0], 0
je 0x1400b8f15
mov rax, qword [0x1400db5c0]
mov rcx, qword [rax]
mov rdx, qword [rcx - 0x18]
lea rcx, [rax + rdx]
lea r8, [0x14225a978]
mov qword [rax + rdx + 0x28], r8
xor edx, edx
call fcn.140028ca0
mov rax, qword [0x1400db5d0]
mov rcx, qword [rax]
mov rdx, qword [rcx - 0x18]
lea rcx, [rax + rdx]
lea r8, [0x14225a9c8]
mov qword [rax + rdx + 0x28], r8
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140028ca0
nop
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1400f3f98]
call fcn.1400388a0
test eax, eax
je 0x1400b8df7
call fcn.1400b8f50
lea rcx, [0x1400b8fe0]
call fcn.140035530
lea rcx, [0x1400f3f98]
call fcn.14003897b
jmp 0x1400b8df7
mov rdi, qword [0x1400db5c8]
lea rdx, str.Unable_to_open_debug_log_file
mov rcx, rdi
call fcn.14001ce40
mov rcx, rdi
mov rdx, rsi
call fcn.14001cda0
mov rcx, rdi
call fcn.14001d1b0
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3
Function at 0x1400bc620
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov r8, qword [rcx + 0x10]
cmp r8, qword [rcx + 0x18]
je 0x1400bc652
mov rax, qword [rdi]
mov qword [r8], rax
add qword [rsi + 0x10], 8
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rax, qword [rsi]
mov rdx, qword [rsi + 8]
mov rcx, rdx
sub rcx, rax
jbe 0x1400bc6b1
sar rcx, 3
lea rax, [rcx + 1]
shr rax, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov r15, rax
neg r15
shl rax, 3
mov rbx, rdx
sub rbx, rax
mov r14, r8
sub r14, rdx
je 0x1400bc69d
mov rcx, rbx
mov r8, r14
call fcn.1400c6530
mov r8, qword [rsi + 8]
add rbx, r14
mov qword [rsi + 0x10], rbx
lea rax, [r8 + r15*8]
mov qword [rsi + 8], rax
mov r8, rbx
jmp 0x1400bc63b
mov rcx, r8
sub rcx, rax
sar rcx, 2
cmp r8, rax
mov ebx, 1
cmovne rbx, rcx
mov rax, rbx
shr rax, 0x3d
jne 0x1400bc74e
lea rcx, [rbx*8]
call fcn.140027210
mov rcx, rbx
and rcx, 0xfffffffffffffffc
lea rdx, [rax + rcx*2]
mov rcx, qword [rsi + 8]
mov r11, qword [rsi + 0x10]
lea r9, [rax + rbx*8]
mov r8, rdx
sub r11, rcx
je 0x1400bc725
mov r10, r11
sar r10, 3
and r11, 0xfffffffffffffff8
mov r8, r11
add r8, rdx
shl r10, 3
xor r11d, r11d
mov rbx, qword [rcx + r11]
mov qword [rdx + r11], rbx
add r11, 8
cmp r10, r11
jne 0x1400bc714
mov rcx, qword [rsi]
mov qword [rsi], rax
mov qword [rsi + 8], rdx
mov qword [rsi + 0x10], r8
mov qword [rsi + 0x18], r9
test rcx, rcx
je 0x1400bc63b
call fcn.140021d70
mov r8, qword [rsi + 0x10]
jmp 0x1400bc63b
call fcn.140029ed0
int3

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

Disassembly:
mov r9d, 0xffffffff
lea r8, [0x1400da720]
cmp rdx, 4
jb 0x1400bfbe6
mov eax, r9d
xor r9b, byte [rcx]
shr eax, 8
movzx r9d, r9b
xor eax, dword [r8 + r9*4]
mov r9d, eax
xor al, byte [rcx + 1]
shr r9d, 8
movzx eax, al
xor r9d, dword [r8 + rax*4]
mov eax, r9d
xor r9b, byte [rcx + 2]
shr eax, 8
movzx r9d, r9b
xor eax, dword [r8 + r9*4]
mov r9d, eax
xor al, byte [rcx + 3]
shr r9d, 8
movzx eax, al
xor r9d, dword [r8 + rax*4]
add rcx, 4
add rdx, 0xfffffffffffffffc
cmp rdx, 3
ja 0x1400bfb93
test rdx, rdx
je 0x1400bfc0d
xor r10d, r10d
mov eax, r9d
xor r9b, byte [rcx + r10]
shr eax, 8
movzx r9d, r9b
xor eax, dword [r8 + r9*4]
inc r10
mov r9d, eax
cmp rdx, r10
jne 0x1400bfbf1
jmp 0x1400bfc10
mov eax, r9d
not eax
ret
Function at 0x140002c8e
Capabilities:
Access peb ldr_data
Get process filename

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword gs:[0x60]
add byte [rax], al
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x20]
sub rax, 0x10
jmp 0x140007264
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], 0
jmp 0x140005d99
Function at 0x14000b418
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbp
push rbx
push rdi
push r12
push r13
lea rbp, [r11 - 0x658]
sub rsp, 0x730
mov rax, qword [0x140010088]
xor rax, rsp
mov qword [rbp + 0x610], rax
movdqa xmm0, xmmword [0x14000de10]
mov r13d, r8d
movaps xmm1, xmmword [0x14000dd60]
mov rdi, rdx
movzx eax, word [0x14000ddc8]
mov r12, rcx
movaps xmmword [rbp - 0x80], xmm1
mov ebx, 0x7a
movaps xmm1, xmmword [0x14000dd80]
movaps xmmword [rbp - 0x60], xmm1
movaps xmm1, xmmword [0x14000dda0]
movaps xmmword [rbp - 0x40], xmm1
movsd xmm1, qword [0x14000ddc0]
movsd qword [rbp - 0x20], xmm1
mov word [rbp - 0x18], ax
movdqu xmmword [rsp + 0x58], xmm0
movaps xmm0, xmmword [str.SoftwareMicrosoftWindowsCurrentVersionControl_PanelCpls]
movaps xmmword [rsp + 0x70], xmm0
movaps xmm0, xmmword [0x14000dd70]
movaps xmmword [rbp - 0x70], xmm0
movaps xmm0, xmmword [0x14000dd90]
movaps xmmword [rbp - 0x50], xmm0
movaps xmm0, xmmword [0x14000ddb0]
movaps xmmword [rbp - 0x30], xmm0
cmp r8d, 4
jb 0x14000b646
mov qword [r11 + 0x20], rsi
xor esi, esi
mov qword [r11 - 0x30], r14
mov r14d, esi
mov qword [r11 - 0x38], r15
lea r15, [rsp + 0x58]
mov word [rdx], si
cmp si, word [rdi]
jne 0x14000b60d
mov rcx, qword [r15]
lea rax, [rsp + 0x50]
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14000b5fc
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x44]
lea rax, [rbp + 0x200]
mov dword [rsp + 0x44], 0x104
mov qword [rsp + 0x30], rax
lea r8, [rbp - 0x10]
lea rax, [rsp + 0x48]
mov dword [rsp + 0x40], 0x410
mov qword [rsp + 0x28], rax
mov edx, esi
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
nop dword [rax + rax]
inc esi
mov ebx, eax
test eax, eax
jne 0x14000b5e9
cmp dword [rsp + 0x40], 2
jbe 0x14000b520
lea rdx, [rbp - 0x10]
mov rcx, r12
call qword [sym.imp.SHLWAPI.dll_StrCmpICW]
nop dword [rax + rax]
test eax, eax
jne 0x14000b520
mov eax, dword [rsp + 0x48]
dec eax
cmp eax, 1
ja 0x14000b5e4
lea esi, [r13 - 2]
mov r8d, esi
lea rdx, [rdi + 2]
lea rcx, [rbp + 0x200]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
test eax, eax
je 0x14000b5e4
cmp eax, esi
ja 0x14000b5e4
mov ecx, eax
mov edx, 0x22
inc eax
mov word [rdi], dx
xor esi, esi
mov word [rdi + rcx*2], dx
mov word [rdi + rax*2], si
jmp 0x14000b5eb
mov ebx, 0xd
xor esi, esi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
inc r14d
add r15, 8
cmp r14d, 2
jb 0x14000b4e6
mov r14, qword [rsp + 0x728]
mov eax, ebx
mov rsi, qword [rsp + 0x778]
mov r15, qword [rsp + 0x720]
mov rcx, qword [rbp + 0x610]
xor rcx, rsp
call fcn.1400029a0
add rsp, 0x730
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret
mov eax, ebx
jmp 0x14000b627
Function at 0x140001a19
Capabilities:
Access peb ldr_data

Disassembly:
push rbp
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 8], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x34], 0x60
mov eax, dword [rbp - 0x34]
mov rax, qword gs:[rax]
mov qword [rbp - 0x40], rax
mov rax, qword [rbp - 0x40]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov rax, qword [rax + 0x20]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
add rax, 0x48
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x30]
mov rax, qword [rax + 8]
test rax, rax
jne 0x140001aae
mov eax, 0
jmp 0x140001afd
mov rax, qword [rbp - 0x30]
mov rax, qword [rax + 8]
mov rcx, rax
call fcn.140001c80
mov rcx, rax
call fcn.140001d2a
mov ebx, eax
mov ecx, 0xe1850a20
call fcn.140001d7e
cmp ebx, eax
jne 0x140001ae4
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x20]
mov qword [rbp - 0x10], rax
jmp 0x140001af9
mov rax, qword [rbp - 8]
mov rax, qword [rax]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
cmp rax, qword [rbp - 0x28]
jne 0x140001a8e
mov rax, qword [rbp - 0x10]
add rsp, 0x68
pop rbx
pop rbp
ret

Function at 0x140001cdc
Capabilities:
Hash data using djb2

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov dword [rbp - 4], 0x1505
jmp 0x140001d06
mov eax, dword [rbp - 4]
shl eax, 5
mov edx, eax
mov eax, dword [rbp - 4]
add edx, eax
mov eax, dword [rbp - 8]
add eax, edx
mov dword [rbp - 4], eax
mov rax, qword [rbp + 0x10]
lea rdx, [rax + 1]
mov qword [rbp + 0x10], rdx
movzx eax, byte [rax]
movzx eax, al
mov dword [rbp - 8], eax
cmp dword [rbp - 8], 0
jne 0x140001cf1
mov eax, dword [rbp - 4]
add rsp, 0x10
pop rbp
ret

Function at 0x140001d2a
Capabilities:
Hash data using djb2

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov dword [rbp - 4], 0x1505
jmp 0x140001d69
mov rax, qword [rbp + 0x10]
lea rdx, [rax + 2]
mov qword [rbp + 0x10], rdx
movzx eax, word [rax]
movzx eax, ax
mov dword [rbp - 8], eax
mov eax, dword [rbp - 4]
shl eax, 5
mov edx, eax
mov eax, dword [rbp - 4]
add edx, eax
mov eax, dword [rbp - 8]
add eax, edx
mov dword [rbp - 4], eax
mov rax, qword [rbp + 0x10]
movzx eax, word [rax]
test ax, ax
jne 0x140001d3f
mov eax, dword [rbp - 4]
add rsp, 0x10
pop rbp
ret
Function at 0x140002700
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140008470
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Runtime_failure:
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140008470
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002770
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400430a4]
mov rbx, rcx
test esi, esi
jle 0x1400028a0
mov rax, qword [0x1400430a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400027bb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002845
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400027a0
mov rcx, rbx
call fcn.1400031c0
mov rdi, rax
test rax, rax
je 0x1400028c2
mov rax, qword [0x1400430a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003300
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400430a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400028a7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000283e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002850
add dword [0x1400430a4], 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 [0x1400430a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000283e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002700
nop dword [rax]
xor esi, esi
jmp 0x1400027c8
mov rax, qword [0x1400430a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002700
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002700
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002e30
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140043100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400430e0]
test rbx, rbx
je 0x140002e8c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140002e83
test rsi, rsi
je 0x140002e83
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002e68
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400031c0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140003240
Capabilities:
Parse pe header

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

Function at 0x140003300
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140040760]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000331f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003328
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140003dc0
Capabilities:
Map section object

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0xf0
mov rax, qword [0x1400d7080]
xor rax, rsp
mov qword [rsp + 0xe0], rax
xor ebp, ebp
lea rdx, [rsp + 0x70]
mov qword [r8], rbp
mov rsi, r9
mov qword [r9], rbp
mov rdi, r8
lea r9, [rsp + 0x80]
mov qword [rsp + 0x60], rbp
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlDosPathNameToRelativeNtPathName_U_WithStatus]
mov ebx, eax
test eax, eax
js 0x140003faf
movzx ecx, word [rsp + 0x80]
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x50], ebp
lea r9, [rsp + 0xd0]
mov qword [rsp + 0x48], rbp
lea r8, [rsp + 0xa0]
test cx, cx
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x38], 1
lea rcx, [rsp + 0x60]
xorps xmm0, xmm0
mov dword [rsp + 0x30], 1
mov eax, ebp
mov dword [rsp + 0x28], 0x80
cmovne rax, qword [rsp + 0x90]
mov qword [rsp + 0xa8], rax
lea rax, [rsp + 0x80]
cmove rax, rdx
mov dword [rsp + 0xa0], Ordinal_50
mov edx, 0x120089
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0xb8], 0x40
movdqu xmmword [rsp + 0xc0], xmm0
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ntdll.dll_NtCreateFile]
mov ebx, eax
xor edx, edx
mov rax, qword gs:[0x30]
mov r8, qword [rsp + 0x78]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea rcx, [rsp + 0x80]
call qword [sym.imp.ntdll.dll_RtlReleaseRelativeName]
test ebx, ebx
js 0x140003faf
mov rax, qword [rsp + 0x60]
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], 0x1000000
xor r8d, r8d
mov edx, 0xf0004
mov dword [rsp + 0x20], 2
mov qword [rsp + 0x68], rbp
call qword [sym.imp.ntdll.dll_NtCreateSection]
mov ebx, eax
test eax, eax
jns 0x140003f35
lea rcx, str.NtCreateSection:_0x_08X_n
jmp 0x140003f8b
mov rcx, qword [rsp + 0x68]
xor r9d, r9d
mov dword [rsp + 0x48], 2
mov r8, rdi
mov dword [rsp + 0x40], ebp
mov dword [rsp + 0x38], 2
mov qword [rsp + 0x30], rsi
lea rdx, [r9 - 1]
mov qword [rdi], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsi], rbp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov ebx, eax
cmp eax, 0x40000003
jne 0x140003f80
mov ebx, ebp
jmp 0x140003f92
test eax, eax
jns 0x140003f92
lea rcx, str.NtMapViewOfSection:_0x_08X_n
mov edx, eax
call fcn.140001610
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140003fbd
call qword [sym.imp.ntdll.dll_NtClose]
jmp 0x140003fbd
mov edx, ebx
lea rcx, str.NtCreateFile:_0x_08X_n
call fcn.140001610
mov eax, ebx
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.1400ae2c0
mov rbx, qword [rsp + 0x118]
add rsp, 0xf0
pop rdi
pop rsi
pop rbp
ret