joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800175ec
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov ebx, r9d
mov r15, rdx
mov r13, rcx
or rax, 0xffffffffffffffff
inc rax
cmp byte [r8 + rax], 0
jne 0x180017615
mov edi, dword [rbp + 0x68]
mov rdx, qword [rbp + 0x60]
xor r12d, r12d
test rax, rax
lea rcx, [rbp - 0x20]
mov r8d, edi
setne r12b
call fcn.1800141f4
mov eax, edi
cdq
lea rcx, [rbp - 0x20]
sub eax, edx
sar eax, 1
mov edx, eax
mov r14d, eax
mov dword [rbp - 0x30], eax
call fcn.18001423c
lea rcx, [rbp - 0x20]
mov edx, r14d
mov rsi, rax
call fcn.18001423c
or ebx, 0x20019
mov r14, rax
lea rax, [rbp - 0x28]
xor r8d, r8d
mov r9d, ebx
mov rdx, r15
mov rcx, r13
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x18001769c
mov edx, eax
mov ecx, 0x3f
call fcn.18000d3d4
jmp 0x18001782f
mov rbx, qword [rbp + 0x70]
mov eax, edi
movsxd r13, r12d
cdq
xor r15d, r15d
and edx, 7
lea r12d, [rdx + rax]
sar r12d, 3
mov eax, dword [rbp - 0x30]
mov r8, r12
xor edx, edx
mov rcx, rsi
mov dword [rbp + 0x58], r12d
mov dword [rbp + 0x68], eax
call fcn.180019620
mov r8d, dword [rbp + 0x68]
xor edx, edx
mov rcx, r14
call fcn.180019620
mov rcx, qword [rbp - 0x28]
lea rax, [rbp + 0x68]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x2c]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x58]
mov r8, rsi
mov edx, r15d
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0xea
je 0x18001777b
test eax, eax
jne 0x1800177e0
test r13, r13
je 0x18001773f
mov r8, qword [rbp + 0x50]
mov rax, rsi
sub r8, rsi
movzx ecx, byte [rax]
movzx edx, byte [rax + r8]
sub ecx, edx
jne 0x18001773b
inc rax
test edx, edx
jne 0x180017728
test ecx, ecx
jne 0x18001777b
lea rdx, str.__24s
mov r8, rsi
mov rcx, rbx
call fcn.18000cfa0
mov eax, dword [rbp - 0x2c]
test eax, eax
je 0x18001776c
cmp eax, 2
jbe 0x1800177cc
cmp eax, 3
je 0x180017797
cmp eax, 4
je 0x180017783
cmp eax, 7
je 0x1800177cc
lea rdx, [0x18002c8d0]
mov rcx, rbx
call fcn.18000cfa0
inc r15d
jmp 0x1800176b4
mov r8d, dword [r14]
lea rdx, [0x18002c98c]
mov rcx, rbx
call fcn.18000cfa0
jmp 0x18001777b
xor edi, edi
cmp dword [rbp + 0x68], edi
jbe 0x18001776c
movsx ecx, byte [rdi + r14]
lea rdx, [0x18002c990]
movzx r8d, cl
mov rcx, rbx
cmp r8d, 0xf
jbe 0x1800177be
lea rdx, [0x18002c994]
call fcn.18000cfa0
inc edi
cmp edi, dword [rbp + 0x68]
jb 0x18001779e
jmp 0x18001776c
lea rdx, [0x18002c720]
mov r8, r14
mov rcx, rbx
call fcn.18000cfa0
jmp 0x18001777b
xor edi, edi
test r13, r13
jne 0x180017825
mov r8, r12
xor edx, edx
mov rcx, rsi
mov dword [rbp + 0x58], r12d
call fcn.180019620
mov r9d, dword [rbp + 0x58]
mov rcx, qword [rbp - 0x28]
mov r8, rsi
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x180017825
lea rdx, str._s_n
mov r8, rsi
mov rcx, rbx
call fcn.18000cfa0
inc edi
jmp 0x1800177e7
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180018148
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r15
sub rsp, 0x40
mov qword [0x180046a30], rcx
mov ebx, 0x400
mov ecx, ebx
call fcn.180019378
mov r8d, ebx
xor edx, edx
mov rcx, rax
mov qword [0x180046a38], rax
call fcn.180019620
xor r15d, r15d
lea rbp, [0x18003c030]
mov eax, r15d
xor byte [rax + rbp], 0x2e
inc rax
cmp rax, 0x1000
jl 0x180018195
lea rcx, [rsp + 0x20]
mov r8d, 0x1000
mov rdx, rbp
call fcn.1800141f4
jmp 0x180018262
lea rcx, [rsp + 0x20]
call fcn.180014264
lea rcx, [rsp + 0x20]
movsx ebx, ax
call fcn.180014264
mov rcx, qword [0x180046a38]
movsx rdi, di
mov edx, ebx
movzx esi, ax
shl rdi, 4
mov word [rdi + rcx], bx
dec edx
je 0x18001824c
dec edx
je 0x180018235
dec edx
jne 0x180018262
movsx rbx, ax
mov rcx, rbx
call fcn.180019378
mov rdx, qword [0x180046a38]
lea rcx, [rsp + 0x20]
mov qword [rdi + rdx + 8], rax
movsx edx, si
call fcn.18001423c
mov rcx, qword [0x180046a38]
mov r8, rbx
mov rcx, qword [rdi + rcx + 8]
mov rdx, rax
call fcn.180019c80
jmp 0x180018262
lea rcx, [rsp + 0x20]
call fcn.180014204
mov rcx, qword [0x180046a38]
mov dword [rdi + rcx + 8], eax
jmp 0x180018262
lea rcx, [rsp + 0x20]
call fcn.180014264
mov rdx, qword [0x180046a38]
mov word [rdi + rdx + 8], ax
lea rcx, [rsp + 0x20]
call fcn.180014264
movzx edi, ax
test ax, ax
jg 0x1800181bc
xor edx, edx
mov r8d, 0x1000
mov rcx, rbp
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r15
jmp fcn.180019620

Function at 0x180018708
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
or rsi, 0xffffffffffffffff
mov rdi, rdx
mov rbx, rcx
lea edx, [rsi + 0x19]
lea r9d, [rsi + 5]
xor ecx, ecx
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
mov qword [rax], rbx
mov qword [rax + 8], rdi
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFree]
mov qword [r14 + 0x10], rax
call fcn.180018880
mov r8, qword [0x180042768]
test r8, r8
je 0x18001877d
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r9, r14
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop r14
ret

Function at 0x180018798
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov esi, 1
mov rdi, rcx
mov rbx, rdx
add dword [0x180042760], esi
lea ecx, [rsi + 0x26]
call fcn.180018118
cmp ax, si
jne 0x1800187d2
mov rdx, rbx
mov rcx, rdi
call fcn.180018708
jmp 0x1800187ed
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r9, rbx
mov r8, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x180018800
Capabilities:
Create thread
Terminate process

Disassembly:
sub rsp, 0x38
mov ecx, 0x37
call fcn.180018118
mov ecx, 0x27
cmp ax, 1
jne 0x18001883a
call fcn.180018118
cmp ax, 1
jne 0x180018831
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x180018824
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitThread]
call fcn.180018118
cmp ax, 1
jne 0x180018875
mov r8, qword [sym.imp.KERNEL32.dll_ExitProcess]
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
or edx, 0xffffffff
mov rcx, rax
add rsp, 0x38
jmp qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x180018c58
Capabilities:
Get token membership

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x18003d030]
xor rax, rsp
mov qword [rbp - 8], rax
lea rax, [rbp - 0x18]
lea rcx, [rbp - 0x10]
mov r9d, 0x220
mov qword [rsp + 0x50], rax
and dword [rsp + 0x48], 0
and dword [rsp + 0x40], 0
and dword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r8d, 0x20
mov dl, 2
mov dword [rbp - 0x10], 0
mov word [rbp - 0xc], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rbp - 0x20], eax
test eax, eax
je 0x180018ce9
mov rdx, qword [rbp - 0x18]
lea r8, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb ecx, ecx
and dword [rbp - 0x20], ecx
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rbp - 0x20]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.18001a200
add rsp, 0x80
pop rbp
ret
Function at 0x180018d00
Capabilities:
Impersonate user

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbp, r9
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
call fcn.180018a7c
lea rax, [0x180042770]
mov qword [rsp + 0x28], rax
mov r9d, 9
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
mov dword [rsp + 0x20], 3
call qword [sym.imp.ADVAPI32.dll_LogonUserA]
test eax, eax
jne 0x180018d69
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x18
mov edx, eax
call fcn.18000d3d4
jmp 0x180018e56
mov rcx, qword [0x180042770]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x180018d87
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x19
jmp 0x180018d5d
mov ecx, 0x800
call fcn.180014120
mov edx, 0x200
mov rcx, rax
mov qword [0x180042790], rax
call fcn.18001423c
mov rcx, qword [0x180042790]
mov edx, 0x200
mov qword [0x180042778], rax
call fcn.18001423c
mov rcx, qword [0x180042790]
mov edx, 0x400
mov qword [0x180042780], rax
call fcn.18001423c
mov rdx, qword [0x180042780]
mov r8d, 0x100
mov rcx, rbx
mov qword [0x180042788], rax
call fcn.18000ed44
mov rdx, qword [0x180042778]
mov r8d, 0x100
mov rcx, rsi
call fcn.18000ed44
mov rdx, qword [0x180042788]
mov r8d, 0x200
mov rcx, rdi
call fcn.18000ed44
mov rcx, qword [0x180042770]
mov r8d, 0x400
mov rdx, rbx
mov dword [0x180042798], 1
call fcn.180018ecc
test eax, eax
je 0x180018e56
or rdx, 0xffffffffffffffff
inc rdx
cmp byte [rbx + rdx], 0
jne 0x180018e42
mov r8d, 0xf
mov rcx, rbx
call rbp
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x180019054
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov esi, r8d
mov rdi, rdx
mov rbp, rcx
test r8d, r8d
je 0x1800190ae
xor r9d, r9d
mov edx, ebx
mov rcx, rbp
lea r8d, [r9 + 1]
add rdx, rdi
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x1800190ae
add ebx, eax
cmp ebx, 2
jb 0x1800190aa
lea eax, [rbx - 1]
cmp byte [rax + rdi], 0xa
jne 0x1800190aa
lea eax, [rbx - 2]
cmp byte [rax + rdi], 0xd
je 0x1800190c6
cmp ebx, esi
jb 0x180019078
or eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
lea ecx, [rbx - 2]
mov eax, ebx
mov byte [rcx + rdi], 0
jmp 0x1800190b1

Function at 0x18001aa00
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.18001a868

Function at 0x180022160
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x180022176
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180022178
xor eax, eax
test eax, eax
je 0x180022188
mov ecx, eax
call fcn.18001bc54
or eax, 0xffffffff
jmp 0x18002218a
xor eax, eax
add rsp, 0x28
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400d1120]
mov dword [rax], 1
mov rax, qword [0x1400d1130]
mov dword [rax], 1
mov rax, qword [0x1400d1140]
mov dword [rax], 1
mov rax, qword [0x1400d10a0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
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 0x1400013f5
mov eax, 0
jmp 0x140001476
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 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14002b690
Capabilities:
Query environment variable

Disassembly:
push r14
mov eax, 0x10080
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.1400ad8b0
sub rsp, rax
xor eax, eax
xor edx, edx
xor esi, esi
mov r14d, 0x28
movzx edi, byte [rcx]
mov word [rsp + 0x80], ax
mov r12, rcx
lea rbp, [rsp + 0x30]
lea r13, [rsp + 0x2e]
mov word [rsp + 0x30], dx
test dil, dil
je 0x14002b739
nop dword [rax]
mov rax, r14
lea rbx, [rbp + rsi*2]
sub rax, rsi
cmp word [rbp + rsi*2], 0
je 0x14002b6fe
nop dword [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x14002b6f0
test rax, rax
je 0x1400be7b0
mov rcx, rbx
add rsi, 1
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r13
mov byte [rsp + 0x2e], dil
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
movzx edi, byte [r12 + rsi]
test dil, dil
jne 0x14002b6d8
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, rbp
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x14002b768
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10080
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x14002b780
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
xor eax, eax
xor esi, esi
mov r13d, 0x28
movzx edi, byte [rcx]
mov word [rsp + 0x30], ax
mov rbp, rcx
mov r14, rdx
lea r15, [rsp + 0x30]
lea r12, [rsp + 0x2e]
test dil, dil
je 0x14002b821
nop word [rax + rax]
mov rax, r13
lea rbx, [r15 + rsi*2]
sub rax, rsi
cmp word [r15 + rsi*2], 0
je 0x14002b7e6
nop word [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x14002b7d8
test rax, rax
je 0x1400be7b6
mov rcx, rbx
add rsi, 1
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r12
mov byte [rsp + 0x2e], dil
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
movzx edi, byte [rbp + rsi]
test dil, dil
jne 0x14002b7c0
mov rdx, r14
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400a9f70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1400e26c9], 0
mov rbp, rcx
mov r12, rdx
mov rdi, r8
je 0x1400a9ff8
lea rdx, [0x1400cd28a]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400aa060
mov rbx, qword [0x1400e2580]
jmp 0x1400a9fb5
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_strlen
lea rdx, [rbx + rax + 1]
mov eax, dword [rdx]
test esi, esi
jne 0x1400a9fb0
movzx r9d, word [rdx + 4]
lea r8, [rdx + 6]
mov rcx, rbp
mov rdx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.1400970b0
mov r8d, 0xa
xor ecx, ecx
mov edx, 3
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
lea rdx, [rax + 4]
mov qword [0x1400e2580], rax
mov ebx, dword [rax]
mov qword [0x1400e2580], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1400e2580], rdx
call fcn.1400a90a0
cmp eax, ebx
jne 0x1400aa0c8
mov byte [0x1400e26c9], 1
jmp 0x1400a9f8c
cmp byte [0x1400e26c8], 0
jne 0x1400a9fa3
mov rbx, qword [sym.imp.python312.dll_PyDict_New]
call rbx
mov qword [0x1400e3028], rax
call rbx
mov qword [0x1400e3020], rax
call rbx
mov qword [0x1400e3018], rax
call rbx
mov qword [0x1400e3010], rax
call rbx
mov qword [0x1400e3008], rax
call rbx
mov qword [0x1400e3000], rax
call rbx
mov qword [0x1400e2ff8], rax
call rbx
mov byte [0x1400e26c8], 1
mov qword [0x1400e2ff0], rax
jmp 0x1400a9fa3
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x1400ac590
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 fcn.1400bdd20
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.1400bdd20
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x1400ad262
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400e34e8]
test eax, eax
je 0x1400ad2fa
lea rax, [0x1400e34c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400e34f0]
mov qword [rbp - 8], rax
jmp 0x1400ad2de
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 0x1400ad2d2
cmp qword [rbp - 0x10], 0
je 0x1400ad2d2
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 0x1400ad298
lea rax, [0x1400e34c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400ad2fb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400ad400
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 0x1400ad428
mov eax, 0
jmp 0x1400ad476
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 0x1400ad451
mov eax, 0
jmp 0x1400ad476
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 0x1400ad471
mov eax, 0
jmp 0x1400ad476
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1400ad47c
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 0x1400ad4fa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400ad4f1
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 0x1400ad4f1
mov rax, qword [rbp - 8]
jmp 0x1400ad50f
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 0x1400ad4c4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140003240
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140003262
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x1400032dc
mov rdi, r14
mov rcx, rbx
call fcn.140004570
test rax, rax
jle 0x1400032b4
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.140029cd0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1400032cc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x1400032d4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140003276
sub r14, rdi
jmp 0x1400033bf
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x1400032f3
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400032f5
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140003327
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140029cd0
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1400033bc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140003362
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x14000339d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14002f800
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x1400033bc
cmp rbp, rax
ja 0x140003370
test rbp, rbp
je 0x1400033bc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14002f800
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x14000e720
Capabilities:
Hash data using djb2

Disassembly:
push rbp
push rsi
push r12
push r15
sub rsp, 0x28
mov r12d, r9d
mov r15, r8
mov rsi, rdx
mov rbp, rcx
test rcx, rcx
je 0x14000e8fb
test rdx, rdx
je 0x14000e8fb
movabs rax, 0x7fffffffffffffff
cmp r8, rax
ja 0x14000e8fb
cmp dword [rcx], 0
mov qword [rsp + 0x20], r14
mov r14, qword [rsp + 0x70]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], r13
jne 0x14000e78f
mov r8, r14
mov edx, 0x100
call fcn.14000ea80
test al, al
je 0x14000e820
movzx eax, byte [rsi]
mov rcx, rsi
mov edi, 0x1505
test al, al
je 0x14000e7b5
nop
imul rdi, rdi, 0x21
movzx eax, al
lea rcx, [rcx + 1]
add rdi, rax
movzx eax, byte [rcx]
test al, al
jne 0x14000e7a0
xor edx, edx
mov eax, edi
div dword [rbp]
mov rax, qword [rbp + 0x10]
mov r13d, edx
mov rbx, qword [rax + rdx*8]
test rbx, rbx
je 0x14000e800
nop dword [rax]
cmp dword [rbx + 0x20], edi
jne 0x14000e7f7
mov r8, qword [rbx]
mov rax, rsi
sub r8, rsi
nop
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x14000e7f3
inc rax
test ecx, ecx
jne 0x14000e7e0
test edx, edx
je 0x14000e841
mov rbx, qword [rbx + 0x18]
test rbx, rbx
jne 0x14000e7d0
mov ecx, 0x28
call fcn.1400302a4
mov rbx, rax
test rax, rax
jne 0x14000e862
xor r8d, r8d
lea edx, [rax + 0xe]
mov rcx, r14
call fcn.1400085f0
xor al, al
mov r13, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop r15
pop r12
pop rsi
pop rbp
ret
test r12b, 8
je 0x14000e84e
cmp qword [rbx + 8], 0xffffffffffffffff
jne 0x14000e859
cmp qword [rbx + 0x10], 0xffffffffffffffff
je 0x14000e8e6
xor r8d, r8d
lea edx, [r8 + 0xa]
jmp 0x14000e818
mov qword [rax], rsi
xorps xmm1, xmm1
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + r13*8]
mov qword [rbx + 0x18], rcx
mov rax, qword [rbp + 0x10]
mov qword [rax + r13*8], rbx
mov dword [rbx + 0x20], edi
mov qword [rbx + 8], 0xffffffffffffffff
inc qword [rbp + 8]
mov rcx, qword [rbp + 8]
mov edx, dword [rbp]
test rcx, rcx
js 0x14000e89e
cvtsi2sd xmm1, rcx
jmp 0x14000e8b3
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2sd xmm1, rax
addsd xmm1, xmm1
xorps xmm0, xmm0
cvtsi2sd xmm0, rdx
mulsd xmm0, qword [0x14004f568]
comisd xmm1, xmm0
jbe 0x14000e8e6
cmp edx, 0x80000000
jae 0x14000e8e6
add edx, edx
mov r8, r14
mov rcx, rbp
call fcn.14000ea80
test al, al
je 0x14000e820
test r12b, 8
je 0x14000e8f0
mov qword [rbx + 8], r15
mov qword [rbx + 0x10], r15
mov al, 1
jmp 0x14000e822
mov rcx, qword [rsp + 0x70]
xor r8d, r8d
lea edx, [r8 + 0x12]
call fcn.1400085f0
xor al, al
add rsp, 0x28
pop r15
pop r12
pop rsi
pop rbp
ret