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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x288
lea rcx, [0x14001a0c0]
call fcn.140006e10
mov rdi, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor r8d, r8d
mov r9d, 0x108
mov r13, rax
lea rax, [rsp + 0x60]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov rdx, r13
call rdi
mov r12d, eax
test eax, eax
je 0x140001888
xor r12d, r12d
mov rcx, r13
call fcn.140006ea0
mov eax, r12d
add rsp, 0x288
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x14001a130]
xor ebx, ebx
lea r14, [rsp + 0x5c]
call fcn.140006e10
lea rsi, [rsp + 0x70]
mov rbp, qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea r15, [rsp + 0x68]
mov qword [rsp + 0x48], rax
jmp 0x1400018bb
add ebx, 1
mov dword [rsp + 0x5c], 0x104
mov r9, r14
mov r8, rsi
mov edx, ebx
mov qword [rsp + 0x38], 0
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call rbp
test eax, eax
jne 0x140001958
xor r8d, r8d
mov qword [rsp + 0x20], r15
mov rcx, qword [rsp + 0x60]
mov rdx, rsi
mov r9d, 0x101
call rdi
test eax, eax
jne 0x1400018b8
mov rcx, qword [rsp + 0x68]
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x68]
cmp eax, 1
adc r12d, 0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400018b8
mov rcx, qword [rsp + 0x48]
call fcn.140006ea0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140001862

Function at 0x140001cc0
Capabilities:
Get common file path

Disassembly:
push r12
sub rsp, 0x240
xor r8d, r8d
xor r9d, r9d
mov edx, 0x1a
xor ecx, ecx
lea r12, [rsp + 0x30]
mov qword [rsp + 0x20], r12
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov r8d, eax
xor eax, eax
test r8d, r8d
js 0x140001cf8
mov rcx, r12
call fcn.1400019b0
add rsp, 0x240
pop r12
ret
Function at 0x140001f50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9d, edx
mov edx, r8d
not edx
test r9d, r9d
je 0x140002023
add r9, rcx
nop dword [rax]
movzx eax, byte [rcx]
add rcx, 1
xor edx, eax
mov eax, edx
shr eax, 1
mov r8d, eax
xor r8d, 0xedb88320
and edx, 1
cmovne eax, r8d
mov edx, eax
shr edx, 1
mov r8d, edx
xor r8d, 0xedb88320
test al, 1
cmovne edx, r8d
mov eax, edx
shr eax, 1
mov r8d, eax
xor r8d, 0xedb88320
and edx, 1
cmovne eax, r8d
mov edx, eax
shr edx, 1
mov r8d, edx
xor r8d, 0xedb88320
test al, 1
cmovne edx, r8d
mov eax, edx
shr eax, 1
mov r8d, eax
xor r8d, 0xedb88320
and edx, 1
cmovne eax, r8d
mov edx, eax
shr edx, 1
mov r8d, edx
xor r8d, 0xedb88320
test al, 1
cmovne edx, r8d
mov eax, edx
shr eax, 1
mov r8d, eax
xor r8d, 0xedb88320
and edx, 1
cmovne eax, r8d
mov edx, eax
shr edx, 1
mov r8d, edx
xor r8d, 0xedb88320
test al, 1
cmovne edx, r8d
cmp r9, rcx
jne 0x140001f68
mov eax, edx
not eax
ret
mov eax, r8d
ret
Function at 0x140003b50
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x50
xor r14d, r14d
mov r13, rdx
mov ebx, r8d
call fcn.140002860
mov r12, rax
test rax, rax
je 0x140003c6f
mov r9d, 0xffffffff
mov r8, rax
xor edx, edx
mov ecx, 0xfde9
mov dword [rsp + 0x28], 0
mov rdi, qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov qword [rsp + 0x20], 0
call rdi
mov esi, eax
test eax, eax
je 0x140003c88
cdqe
lea rcx, [rax + rax + 2]
call fcn.140005de0
mov r15, rax
test rax, rax
je 0x140003c88
mov dword [rsp + 0x28], esi
mov r9d, 0xffffffff
mov r8, r12
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rax
call rdi
mov dword [rsp + 0x28], pe_nt_image_headers64
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
mov rcx, r15
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140003c5f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x4c]
mov r8d, ebx
mov rdx, r13
mov qword [rsp + 0x20], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r14d, eax
test eax, eax
je 0x140003c56
xor r14d, r14d
cmp dword [rsp + 0x4c], ebx
sete r14b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r15
call fcn.140005e40
mov rcx, r12
call fcn.140005e40
mov eax, r14d
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, r12
xor r14d, r14d
call fcn.140005e40
jmp 0x140003c6f
Function at 0x140003de0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x50
xor r14d, r14d
mov rsi, rdx
call fcn.140002860
mov r12, rax
test rax, rax
je 0x140003eeb
mov r9d, 0xffffffff
mov r8, rax
xor edx, edx
mov ecx, 0xfde9
mov dword [rsp + 0x28], 0
mov r13, qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov qword [rsp + 0x20], 0
call r13
mov ebx, eax
test eax, eax
je 0x140003ee0
cdqe
lea rcx, [rax + rax + 2]
call fcn.140005de0
mov r15, rax
test rax, rax
je 0x140003ee0
mov r9d, 0xffffffff
mov r8, r12
xor edx, edx
mov ecx, 0xfde9
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
call r13
xor r9d, r9d
mov r8d, 7
mov rcx, r15
mov qword [rsp + 0x30], 0
mov edx, 0x80000000
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x140003ed4
mov rdi, qword [sym.imp.KERNEL32.dll_SetFilePointer]
xor r8d, r8d
xor edx, edx
mov rcx, rax
mov r9d, 2
call rdi
mov ebx, eax
cmp eax, 0x40000000
jbe 0x140003f00
xor r14d, r14d
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r15
call fcn.140005e40
jmp 0x140003ee3
xor r14d, r14d
mov rcx, r12
call fcn.140005e40
mov rax, r14
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, eax
call fcn.140005de0
mov r14, rax
test rax, rax
je 0x140003ec8
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r13
call rdi
lea r9, [rsp + 0x4c]
mov r8d, ebx
mov rdx, r14
mov qword [rsp + 0x20], 0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140003f43
cmp dword [rsp + 0x4c], ebx
je 0x140003f50
mov rcx, r14
call fcn.140005e40
jmp 0x140003ec8
test rsi, rsi
je 0x140003ecb
mov dword [rsi], ebx
jmp 0x140003ecb
Function at 0x140004140
Capabilities:
Set current directory

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x230
movabs rdx, 0x100002600
movzx eax, word [rcx]
mov rbx, rcx
test ax, ax
je 0x14000416e
nop dword [rax + rax]
cmp ax, 0x20
jbe 0x140004198
mov rcx, rbx
xor r12d, r12d
call sub.msvcrt.dll_wcslen
cmp rax, 1
ja 0x1400041b0
mov eax, r12d
add rsp, 0x230
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
bt rdx, rax
jae 0x14000416e
movzx eax, word [rbx + 2]
add rbx, 2
test ax, ax
jne 0x140004168
jmp 0x14000416e
lea rcx, [0x14001a5c8]
call fcn.140006e10
mov r8d, 2
mov rcx, rbx
mov r13, rax
mov rdx, rax
call qword [sym.imp.msvcrt.dll__wcsnicmp]
movsxd rdi, eax
test edi, edi
jne 0x140004280
movzx eax, word [rbx + 4]
lea rsi, [rbx + 4]
movabs rdx, 0x100002600
test ax, ax
je 0x140004202
nop dword [rax + rax]
cmp ax, 0x20
jbe 0x140004290
mov rcx, rsi
call sub.msvcrt.dll_wcslen
test rax, rax
je 0x140004280
xor edx, edx
mov word [rsp + 0x20], dx
movzx edx, word [rsi]
cmp dx, 0x22
je 0x1400042d9
mov eax, 1
cmp dx, 0x20
jbe 0x1400042be
movabs rcx, 0x100002601
lea r12, [rsp + 0x20]
nop dword [rax]
mov word [r12 + rax*2 - 2], dx
movzx edx, word [rsi + rax*2]
movsxd rdi, eax
add rax, 1
cmp dx, 0x20
ja 0x140004248
bt rcx, rdx
jae 0x140004248
xor eax, eax
mov rcx, r12
mov word [rsp + rdi*2 + 0x20], ax
call sub.msvcrt.dll_wcslen
test rax, rax
jne 0x1400042b0
nop dword [rax]
xor r12d, r12d
mov rcx, r13
call fcn.140006ea0
jmp 0x14000417f
bt rdx, rax
jae 0x140004202
movzx eax, word [rsi + 2]
add rsi, 2
test ax, ax
jne 0x1400041f8
jmp 0x140004202
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov r12d, eax
jmp 0x140004283
movabs rcx, 0x100002601
bt rcx, rdx
jae 0x140004232
lea r12, [rsp + 0x20]
jmp 0x140004265
movzx edx, word [rsi + 2]
test dx, dx
je 0x1400042d2
mov eax, 1
lea r12, [rsp + 0x20]
cmp dx, 0x22
jne 0x140004302
jmp 0x1400042d2
cmp dx, 0x22
je 0x140004265
mov word [r12 + rax*2 - 2], dx
movzx edx, word [rsi + rax*2 + 2]
movsxd rdi, eax
add rax, 1
test dx, dx
jne 0x1400042f8
jmp 0x140004265
Function at 0x140004ef0
Capabilities:
Delete file

Disassembly:
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x448
lea rcx, [0x14001a630]
call fcn.140006e10
lea r14, [rsp + 0x20]
mov r13, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, r13
mov r12, rax
call fcn.140006ea0
lea rcx, [0x14001a779]
call fcn.140006d90
mov rsi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, r12
mov r13, rax
mov rdx, rax
call rsi
mov rcx, r13
mov rbx, rax
call fcn.140006ea0
lea rcx, [0x14001a78b]
call fcn.140006d90
mov rcx, r12
mov r13, rax
mov rdx, rax
call rsi
mov rcx, r13
mov rdi, rax
call fcn.140006ea0
lea rcx, [0x14001a7a0]
call fcn.140006d90
mov rcx, r12
lea r12, [rsp + 0x230]
mov r13, rax
mov rdx, rax
call rsi
mov rcx, r13
mov rsi, rax
call fcn.140006ea0
call fcn.140004e30
mov r8d, 0x104
mov rdx, r14
mov rcx, qword [0x14001f0c0]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rdx, r12
mov ecx, 0x104
call rdi
lea rcx, [0x14001a7b9]
call fcn.140006e10
mov r9, r12
xor r8d, r8d
mov rcx, r12
mov r13, rax
mov rdx, rax
call rsi
mov rcx, r13
call fcn.140006ea0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, r12
mov rcx, r14
call rbx
xor eax, eax
add rsp, 0x448
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
ret
Function at 0x140005880
Capabilities:
Delete directory
Delete file
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xcb8
call fcn.140004e30
lea rcx, [0x14001a878]
lea r14, [rsp + 0x50]
call fcn.140006e10
lea rcx, [0x14001a8a3]
lea r13, [rsp + 0x260]
mov qword [rsp + 0x40], rax
lea rbp, [rsp + 0x470]
lea rdi, [rsp + 0x680]
call fcn.140006e10
lea rcx, [0x14001a6c9]
lea rsi, [rsp + 0x890]
mov qword [rsp + 0x48], rax
lea rbx, [rsp + 0xaa0]
call fcn.140006e10
lea rcx, [0x14001a6f8]
mov r12, rax
call fcn.140006e10
lea rcx, [0x14001a6d8]
mov qword [rsp + 0x20], rax
call fcn.140006e10
lea r10, [0x140019260]
mov qword [rsp + 0x28], rax
mov r9, r10
nop word [rax + rax]
mov rcx, qword [r9]
mov qword [rsp + 0x30], r9
call fcn.140006e10
mov r9, qword [rsp + 0x30]
mov r15, rax
mov rcx, qword [r9 + 8]
mov qword [rsp + 0x38], r9
call fcn.140006e10
mov rdx, qword [rsp + 0x40]
mov rcx, r14
mov qword [rsp + 0x30], rax
call sub.msvcrt.dll_wcscpy
mov rdx, r12
mov rcx, r14
call sub.msvcrt.dll_wcscat
mov rdx, r15
mov rcx, r14
call sub.msvcrt.dll_wcscat
mov rdx, qword [rsp + 0x48]
mov rcx, r13
call sub.msvcrt.dll_wcscpy
mov rdx, r12
mov rcx, r13
call sub.msvcrt.dll_wcscat
mov rdx, r15
mov rcx, r13
call sub.msvcrt.dll_wcscat
mov r8d, 0x104
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r8d, 0x104
mov rdx, rdi
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rdx, rbp
mov rcx, rsi
call sub.msvcrt.dll_wcscpy
mov rdx, r12
mov rcx, rsi
call sub.msvcrt.dll_wcscat
mov rdx, qword [rsp + 0x20]
mov rcx, rsi
call sub.msvcrt.dll_wcscat
mov rdx, rdi
mov rcx, rbx
call sub.msvcrt.dll_wcscpy
mov rdx, r12
mov rcx, rbx
call sub.msvcrt.dll_wcscat
mov rdx, qword [rsp + 0x20]
mov rcx, rbx
call sub.msvcrt.dll_wcscat
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, rbp
mov rcx, rsi
call sub.msvcrt.dll_wcscpy
mov rdx, r12
mov rcx, rsi
call sub.msvcrt.dll_wcscat
mov rdx, qword [rsp + 0x28]
mov rcx, rsi
call sub.msvcrt.dll_wcscat
mov rdx, rdi
mov rcx, rbx
call sub.msvcrt.dll_wcscpy
mov rdx, r12
mov rcx, rbx
call sub.msvcrt.dll_wcscat
mov rdx, qword [rsp + 0x28]
mov rcx, rbx
call sub.msvcrt.dll_wcscat
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov r11, qword [rsp + 0x30]
mov rcx, r11
call fcn.140006ea0
mov rcx, r15
call fcn.140006ea0
mov r9, qword [rsp + 0x38]
lea rax, [0x140019420]
add r9, 0x10
cmp r9, rax
jne 0x140005928
mov rcx, qword [rsp + 0x28]
call fcn.140006ea0
mov rcx, qword [rsp + 0x20]
call fcn.140006ea0
mov rcx, r12
call fcn.140006ea0
mov rcx, qword [rsp + 0x48]
call fcn.140006ea0
mov rcx, qword [rsp + 0x40]
call fcn.140006ea0
xor eax, eax
add rsp, 0xcb8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140006220
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push rbx
movdqa xmm0, xmmword [0x14001b5f0]
xor r10d, r10d
movups xmmword [rcx + 2], xmm0
movdqa xmm0, xmmword [0x14001b600]
mov r9, rcx
mov rbx, rdx
mov byte [rcx], 0
movups xmmword [rcx + 0x12], xmm0
movdqa xmm0, xmmword [str._________._0123456789:_____ABCDEFGHIJKLMNOPQRSTUVWXYZ____abcdefghijklmnopqrstuvwxyz]
mov byte [rcx + 1], 0
movups xmmword [rcx + 0x22], xmm0
movdqa xmm0, xmmword [0x14001b620]
movups xmmword [rcx + 0x32], xmm0
movdqa xmm0, xmmword [0x14001b630]
movups xmmword [rcx + 0x42], xmm0
movdqa xmm0, xmmword [0x14001b640]
movups xmmword [rcx + 0x52], xmm0
movdqa xmm0, xmmword [0x14001b650]
movups xmmword [rcx + 0x62], xmm0
movdqa xmm0, xmmword [0x14001b660]
movups xmmword [rcx + 0x72], xmm0
movdqa xmm0, xmmword [0x14001b670]
movups xmmword [rcx + 0x82], xmm0
movdqa xmm0, xmmword [0x14001b680]
movups xmmword [rcx + 0x92], xmm0
movdqa xmm0, xmmword [0x14001b690]
movups xmmword [rcx + 0xa2], xmm0
movdqa xmm0, xmmword [0x14001b6a0]
movups xmmword [rcx + 0xb2], xmm0
movdqa xmm0, xmmword [0x14001b6b0]
movups xmmword [rcx + 0xc2], xmm0
movdqa xmm0, xmmword [0x14001b6c0]
movups xmmword [rcx + 0xd2], xmm0
movdqa xmm0, xmmword [0x14001b6d0]
movups xmmword [rcx + 0xe2], xmm0
movdqa xmm0, xmmword [0x14001b6e0]
movups xmmword [rcx + 0xf2], xmm0
xor ecx, ecx
nop dword [rax + rax]
mov rax, rcx
xor edx, edx
movzx r11d, byte [r9 + rcx + 2]
div r8
movzx eax, byte [rbx + rdx]
add eax, r11d
add r10d, eax
movzx eax, r10b
movzx edx, byte [r9 + rax + 2]
mov byte [r9 + rcx + 2], dl
add rcx, 1
mov byte [r9 + rax + 2], r11b
cmp rcx, 0x100
jne 0x140006310
pop rbx
ret

Function at 0x140006350
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push rsi
push rbx
mov rbx, rdx
test r9, r9
je 0x1400063ad
xor r11d, r11d
nop dword [rax]
movzx eax, byte [rcx]
movzx r10d, byte [rcx + 1]
add eax, 1
mov byte [rcx], al
movzx eax, al
movzx edx, byte [rcx + rax + 2]
add r10d, edx
mov byte [rcx + 1], r10b
movzx r10d, r10b
movzx esi, byte [rcx + r10 + 2]
mov byte [rcx + rax + 2], sil
mov byte [rcx + r10 + 2], dl
add dl, byte [rcx + rax + 2]
movzx edx, dl
movzx eax, byte [rcx + rdx + 2]
xor al, byte [rbx + r11]
mov byte [r8 + r11], al
add r11, 1
cmp r9, r11
jne 0x140006360
pop rbx
pop rsi
ret
Function at 0x140007520
Capabilities:
Link many functions at runtime

Disassembly:
push r12
sub rsp, 0x20
cmp qword [0x14001f1f8], 0
je 0x1400075a0
cmp qword [0x14001f1f0], 0
je 0x1400075d8
cmp qword [0x14001f1e8], 0
je 0x140007618
cmp qword [0x14001f1e0], 0
je 0x140007650
cmp qword [0x14001f1d8], 0
je 0x140007690
cmp qword [0x14001f1d0], 0
je 0x1400076d0
cmp qword [0x14001f1c8], 0
je 0x140007710
cmp qword [0x14001f1c0], 0
je 0x140007745
add dword [0x14001f200], 1
add rsp, 0x20
pop r12
ret
lea rcx, [0x14001bae0]
call fcn.140006e10
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, r12
mov qword [0x14001f1f8], rax
call fcn.140006ea0
cmp qword [0x14001f1f0], 0
jne 0x14000753e
nop dword [rax]
lea rcx, [0x14001bb01]
call fcn.140006d90
mov rcx, qword [0x14001f1f8]
mov r12, rax
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, r12
mov qword [0x14001f1f0], rax
call fcn.140006ea0
cmp qword [0x14001f1e8], 0
jne 0x14000754c
nop dword [rax]
lea rcx, [0x14001bb16]
call fcn.140006e10
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, r12
mov qword [0x14001f1e8], rax
call fcn.140006ea0
cmp qword [0x14001f1e0], 0
jne 0x14000755a
nop dword [rax]
lea rcx, [0x14001bb31]
call fcn.140006d90
mov rcx, qword [0x14001f1e8]
mov r12, rax
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, r12
mov qword [0x14001f1e0], rax
call fcn.140006ea0
cmp qword [0x14001f1d8], 0
jne 0x140007568
nop dword [rax]
lea rcx, [0x14001bb48]
call fcn.140006d90
mov rcx, qword [0x14001f1e8]
mov r12, rax
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, r12
mov qword [0x14001f1d8], rax
call fcn.140006ea0
cmp qword [0x14001f1d0], 0
jne 0x140007576
nop dword [rax]
lea rcx, [0x14001bb61]
call fcn.140006d90
mov rcx, qword [0x14001f1e8]
mov r12, rax
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, r12
mov qword [0x14001f1d0], rax
call fcn.140006ea0
cmp qword [0x14001f1c8], 0
jne 0x140007584
nop dword [rax]
lea rcx, [0x14001bb78]
call fcn.140006e10
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, r12
mov qword [0x14001f1c8], rax
call fcn.140006ea0
cmp qword [0x14001f1c0], 0
jne 0x140007592
lea rcx, [0x14001bb97]
call fcn.140006d90
mov rcx, qword [0x14001f1c8]
mov r12, rax
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, r12
mov qword [0x14001f1c0], rax
call fcn.140006ea0
add dword [0x14001f200], 1
add rsp, 0x20
pop r12
ret
Function at 0x140008630
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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.140018180
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.140018180
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x1400086a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x14001f2e4]
mov r12, rcx
test ebx, ebx
jle 0x1400087d0
mov rax, qword [0x14001f2e8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x1400086ec
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140008773
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x1400086d0
mov rcx, r12
call fcn.140009040
mov rsi, rax
test rax, rax
je 0x1400087f2
mov rax, qword [0x14001f2e8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.140009170
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14001f2e8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400087d7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000876c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140008780
add dword [0x14001f2e4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x14001f2e8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000876c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140008630
nop dword [rax]
xor ebx, ebx
jmp 0x1400086f7
mov rax, qword [0x14001f2e8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140008630
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140008630
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140008cb0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14001f340]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14001f320]
test rbx, rbx
je 0x140008d04
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140008cfb
test r12, r12
je 0x140008cfb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140008ce0
lea rcx, [0x14001f340]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140009040
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14001c6b0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140009060
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140009068
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140009060
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x1400090b5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400090ac
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140009060
add rax, 0x28
cmp rax, r9
jne 0x140009098
xor eax, eax
ret

Function at 0x1400090c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001c6b0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1400090e0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400090e8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400090e0
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x140009170
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001c6b0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140009190
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140009198
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x14000a960
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x14001c760]
mov rax, qword [rsi]
test rax, rax
je 0x14000a9f0
cmp qword [rax + 0x30], 0
jne 0x14000aa10
lea rbx, [0x140019468]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x14000a9c0
cmp qword [rax + 0x30], 0
jne 0x14000a9e0
lea rdx, [0x140019468]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je 0x140018210
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14000f860
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x14000a9a2
test rax, rax
jne 0x14000a9e0
call fcn.14000f860
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x14000a9b0
call fcn.14000f860
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x14000a980
test rax, rax
jne 0x14000aa10
call fcn.14000f860
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x14000a98b
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [pe_dos_header]
ud2
Function at 0x14000aa20
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x14000ab32
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14000ab0a
add rax, 1
cmp rax, 0x6b
je 0x14000ab27
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x14000ab00
cmp edx, 0x6a
je 0x14000ab27
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x14000ab1b