joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406fa0
Capabilities:
Query environment variable

Disassembly:
push rbx
mov eax, 0x4020
call fcn.0040dc60
sub rsp, rax
xor r8d, r8d
lea rbx, [rsp + 0x20]
mov rdx, rcx
xor ecx, ecx
call fcn.004081c0
mov r8d, 0x2000
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x406fe1
xor eax, eax
add rsp, 0x4020
pop rbx
ret
lea rdx, [rsp + 0x2020]
mov r8d, 0x2000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ecx, ecx
xor r8d, r8d
mov rdx, rbx
call fcn.00407f20
test rax, rax
mov rcx, rax
je 0x406fd6
cmp byte [rax], 0
je 0x406fd6
call sub.msvcrt.dll__strdup
add rsp, 0x4020
pop rbx
ret

Function at 0x407080
Capabilities:
Set environment variable

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
mov rdx, rcx
xor ecx, ecx
call fcn.004081c0
xor edx, edx
mov rbx, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_free
mov eax, esi
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x4070c0
Capabilities:
Create directory
Query environment variable

Disassembly:
push rbp
mov eax, 0x4028
push rdi
push rsi
push rbx
call fcn.0040dc60
sub rsp, rax
xor r8d, r8d
mov rdx, rcx
xor ecx, ecx
call fcn.004081c0
test rax, rax
mov rsi, rax
je 0x4071f0
lea rbx, [rsp + 0x20]
mov r8d, 0x1000
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, rsi
mov edi, eax
call sub.msvcrt.dll_free
test edi, edi
je 0x4071d1
mov rcx, rbx
call fcn.00408600
test eax, eax
jne 0x4071c0
mov r8d, 0x1000
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.msvcrt.dll__wfullpath]
mov rsi, rax
test rsi, rsi
je 0x4071fe
lea rdi, [rsp + 0x2020]
xor edx, edx
mov r8d, 0x2000
mov rcx, rdi
call sub.msvcrt.dll_memset
mov edx, 0x5c
mov rcx, rsi
call sub.msvcrt.dll_wcschr
mov rbp, qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test rax, rax
mov rbx, rax
je 0x4071a9
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
sub r8, rsi
sar r8, 1
add r8, 1
call sub.msvcrt.dll_wcsncpy
xor edx, edx
mov rcx, rdi
call rbp
lea rcx, [rbx + 2]
mov edx, 0x5c
call sub.msvcrt.dll_wcschr
test rax, rax
mov rbx, rax
jne 0x407174
xor edx, edx
mov rcx, rsi
call rbp
mov rax, rsi
add rsp, 0x4028
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsdup]
mov rsi, rax
jmp 0x407137
lea rcx, str.LOADER:_Failed_to_expand_environment_variables_in_the_runtime_tmpdir._n
xor esi, esi
call fcn.00402b10
mov rax, rsi
add rsp, 0x4028
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rcx, str.LOADER:_Failed_to_convert_runtime_tmpdir_to_a_wide_string._n
call fcn.00402b10
jmp 0x4071b0
lea rcx, str.LOADER:_Failed_to_obtain_the_absolute_path_of_the_runtime_tmpdir._n
call fcn.00402b10
jmp 0x4071b0
Function at 0x407210
Capabilities:
Get common file path

Disassembly:
push r15
mov eax, 0x2048
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.0040dc60
sub rsp, rax
test rdx, rdx
mov r15, rcx
mov r12, rdx
je 0x407279
lea rcx, [0x00413d43]
call fcn.00406fa0
mov rcx, r12
mov r14, rax
call fcn.004070c0
test rax, rax
mov rbx, rax
je 0x40732c
lea rcx, [0x00413d48]
mov rdx, rax
call qword [sym.imp.msvcrt.dll__wputenv_s]
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_free
test esi, esi
jne 0x407330
lea rbp, [rsp + 0x40]
mov ecx, 0x1000
mov ebx, 5
lea rdi, [rsp + 0x20]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
call sub.msvcrt.dll__getpid
lea r8, str._github.com..Blank_c_d
mov edx, 0x1a
mov rcx, rdi
mov r9d, eax
call fcn.00406e20
mov r13, qword [sym.imp.msvcrt.dll__wtempnam]
mov rdx, rdi
mov rcx, rbp
call r13
mov rcx, rax
mov rsi, rax
call fcn.004083e0
test eax, eax
je 0x407340
mov rcx, rsi
call sub.msvcrt.dll_free
sub ebx, 1
jne 0x4072b9
test r12, r12
je 0x40732c
test r14, r14
je 0x407320
lea rcx, [0x00413d43]
mov rdx, r14
xor ebx, ebx
call fcn.00407020
mov rcx, r14
call sub.msvcrt.dll_free
mov eax, ebx
add rsp, 0x2048
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x00413d43]
call fcn.00407080
xor ebx, ebx
jmp 0x407301
lea rcx, str.LOADER:_Failed_to_set_the_TMP_environment_variable._n
xor ebx, ebx
call fcn.00402b10
jmp 0x407301
mov r8d, 0x1000
mov rdx, rsi
mov rcx, r15
call fcn.00407f20
mov rcx, rsi
mov ebx, 1
call sub.msvcrt.dll_free
test r12, r12
je 0x407301
test r14, r14
je 0x407381
lea rcx, [0x00413d43]
mov rdx, r14
call fcn.00407020
mov rcx, r14
call sub.msvcrt.dll_free
jmp 0x407301
lea rcx, [0x00413d43]
call fcn.00407080
jmp 0x407301

Function at 0x407410
Capabilities:
Delete directory

Disassembly:
push r13
mov eax, 0x44a8
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.0040dc60
sub rsp, rax
mov r8d, 0x1000
lea r13, [rsp + 0x2490]
mov rdx, rcx
lea rsi, [rsp + 0x480]
mov rcx, r13
call fcn.004081c0
mov rdx, r13
mov rcx, rsi
call sub.msvcrt.dll_wcscpy
mov rcx, rsi
call sub.msvcrt.dll_wcslen
mov rbp, rax
movzx eax, word [rsp + rax*2 + 0x47e]
cmp ax, 0x2f
je 0x407470
cmp ax, 0x5c
jne 0x4074b5
lea rdx, [0x00413dd8]
mov rcx, rsi
call sub.msvcrt.dll_wcscat
lea rbx, [rsp + 0x250]
mov rcx, rsi
mov rdx, rbx
call fcn.0040e530
cmp rax, 0xffffffffffffffff
mov r12, rax
jne 0x4074d0
mov rcx, r13
call qword [sym.imp.msvcrt.dll__wrmdir]
nop
add rsp, 0x44a8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rdx, [0x00413dd4]
mov rcx, rsi
add rbp, 1
call sub.msvcrt.dll_wcscat
jmp 0x407470
lea rdi, [rsp + 0x20]
mov r8d, 0x230
mov rdx, rbx
mov rcx, rdi
call sub.msvcrt.dll_memcpy
mov r8, rdi
mov rdx, rbp
mov rcx, rsi
call fcn.00407510
mov rdx, rbx
mov rcx, r12
call fcn.0040e5c0
test eax, eax
je 0x4074d5
mov rcx, r12
call qword [sym.imp.msvcrt.dll__findclose]
jmp 0x40749b
Function at 0x407510
Capabilities:
Delete directory
Delete file

Disassembly:
push rbp
mov eax, 0x1038
push rdi
push rsi
push rbx
call fcn.0040dc60
sub rsp, rax
lea rbx, [r8 + 0x24]
mov rdi, rcx
mov rbp, rdx
lea rdx, [0x00413ddc]
mov rcx, rbx
mov rsi, r8
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x407550
add rsp, 0x1038
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rdx, [0x00413de0]
mov rcx, rbx
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x407541
xor eax, eax
mov rcx, rdi
mov rdx, rbx
mov word [rdi + rbp*2], ax
call sub.msvcrt.dll_wcscat
test byte [rsi], 0x10
mov rcx, rdi
je 0x4075a5
call fcn.00408590
test eax, eax
jne 0x4075d0
lea rbx, [rsp + 0x20]
mov r8d, 0x1000
mov rdx, rdi
mov rcx, rbx
call fcn.00407f20
mov rcx, rbx
call fcn.00407410
jmp 0x407541
mov rbx, qword [sym.imp.msvcrt.dll__wremove]
call rbx
test eax, eax
je 0x407541
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rdi
call rbx
jmp 0x407541
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__wrmdir]
jmp 0x407541

Function at 0x4077e0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rdi
mov eax, 0x1020
push rsi
push rbx
call fcn.0040dc60
sub rsp, rax
mov rsi, rdx
mov rdi, r8
lea rdx, [0x00413e1c]
call fcn.00404210
mov rdx, rdi
mov rcx, rsi
mov rbx, rax
call fcn.004075e0
test rbx, rbx
mov rdi, rax
je 0x4078d4
test rax, rax
je 0x4078d4
lea rsi, [rsp + 0x20]
nop word [rax + rax]
mov rcx, rbx
call sub.msvcrt.dll_feof
test eax, eax
jne 0x4078d0
mov r9, rbx
mov r8d, 0x1000
mov edx, 1
mov rcx, rsi
call sub.msvcrt.dll_fread
test rax, rax
jne 0x407880
mov rcx, rbx
call sub.msvcrt.dll_ferror
test eax, eax
je 0x407830
mov rcx, rbx
mov esi, 0xffffffff
call sub.msvcrt.dll_clearerr
jmp 0x4078b1
mov r9, rdi
mov r8, rax
mov edx, 1
mov rcx, rsi
call sub.msvcrt.dll_fwrite
test rax, rax
je 0x4078a4
mov rcx, rdi
call sub.msvcrt.dll_ferror
test eax, eax
je 0x407830
mov rcx, rdi
mov esi, 0xffffffff
call sub.msvcrt.dll_clearerr
mov rcx, rbx
call sub.msvcrt.dll_fclose
mov rcx, rdi
call sub.msvcrt.dll_fclose
mov eax, esi
add rsp, 0x1020
pop rbx
pop rsi
pop rdi
ret
xor esi, esi
jmp 0x4078b1
test rbx, rbx
je 0x4078e1
mov rcx, rbx
call sub.msvcrt.dll_fclose
test rdi, rdi
mov esi, 0xffffffff
jne 0x4078b9
jmp 0x4078c1
Function at 0x407960
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
push rbp
mov eax, 0x2118
push rdi
push rsi
push rbx
call fcn.0040dc60
sub rsp, rax
mov r8d, 0x1000
lea rdi, [rsp + 0x110]
mov rdx, rcx
mov dword [rsp + 0x5c], 0
lea rbp, [rsp + 0xa0]
mov rcx, rdi
call fcn.004081c0
mov edx, 1
lea rcx, [0x00406e00]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov rcx, rbp
mov dword [rsp + 0x60], 0x18
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x70], 1
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, 1
xor ecx, ecx
mov rsi, qword [fcn.0040f030]
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xb8], 0
mov dword [rsp + 0xdc], 0x101
mov word [rsp + 0xe0], ax
call rsi
mov rcx, rax
call sub.msvcrt.dll__fileno_1
mov rbx, qword [sym.imp.msvcrt.dll__get_osfhandle]
mov ecx, eax
call rbx
mov ecx, 1
mov qword [rsp + 0xf0], rax
call rsi
mov rcx, rax
call sub.msvcrt.dll__fileno_1
mov ecx, eax
call rbx
mov ecx, 2
mov qword [rsp + 0xf8], rax
call rsi
mov rcx, rax
call sub.msvcrt.dll__fileno_1
mov ecx, eax
call rbx
mov qword [rsp + 0x100], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r9d, r9d
mov qword [rsp + 0x40], rbp
mov rcx, rdi
lea rdx, [rsp + 0x80]
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x48], rdx
lea r8, [rsp + 0x60]
mov rdx, rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x407af0
mov rcx, qword [rsp + 0x80]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x5c]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [rsp + 0x5c]
add rsp, 0x2118
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rdx, str.Error_creating_child_process__n
lea rcx, str.CreateProcessW
call fcn.00402bf0
mov eax, 0xffffffff
add rsp, 0x2118
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x407d00
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov r12, rcx
mov ecx, 0x2000
mov rbp, rdx
mov rsi, r8
call sub.msvcrt.dll_malloc
test rax, rax
mov rbx, rax
je 0x407e02
xor edx, edx
mov r8d, 2
mov rcx, r12
call fcn.0040e870
test eax, eax
js 0x407e02
mov rcx, r12
call fcn.0040ed60
movsxd rdi, eax
cmp rdi, rsi
jb 0x407e02
lea rax, [rsi - 1]
mov qword [rsp + 0x28], rax
cmp rdi, 0x2000
mov r14d, 0x2000
cmovae r14, rdi
lea r13, [r14 - 0x2000]
sub rdi, r13
cmp rsi, rdi
ja 0x407e02
xor r8d, r8d
mov edx, r13d
mov rcx, r12
call fcn.0040e870
test eax, eax
js 0x407e02
mov r9, r12
mov r8, rdi
mov edx, 1
mov rcx, rbx
call sub.msvcrt.dll_fread
cmp rax, rdi
jne 0x407e02
sub rax, rsi
add rax, 1
mov rdi, rax
jne 0x407dc8
jmp 0x407df0
test r15, r15
mov rdi, r15
je 0x407df0
lea r15, [rdi - 1]
mov r8, rsi
mov rdx, rbp
lea rcx, [rbx + r15]
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x407dc0
lea rsi, [r14 + rdi - 0x2001]
jmp 0x407e04
mov rax, qword [rsp + 0x28]
test r13, r13
lea rdi, [rax + r13]
jne 0x407d64
xor esi, esi
mov rcx, rbx
call sub.msvcrt.dll_free
mov rax, rsi
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x4083e0
Capabilities:
Create directory

Disassembly:
push r14
mov eax, 0x2060
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.0040dc60
sub rsp, rax
mov dword [rsp + 0x3c], 0
mov r12, rcx
mov qword [rsp + 0x40], 0xffffffffffffffff
lea rsi, [rsp + 0x40]
mov qword [rsp + 0x60], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rsi
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4084e1
mov rbx, qword [rsp + 0x40]
lea rdi, [rsp + 0x60]
xor ebp, ebp
mov rcx, rbp
call sub.msvcrt.dll_free
cmp rbx, 0xffffffffffffffff
je 0x40845b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
lea r9, str.S_1_3_4
mov edx, 0x1000
mov rcx, rdi
lea r8, str.D:_A__FA____s_
test rbx, rbx
cmovne r9, rbx
call qword [sym.imp.msvcrt.dll__snwprintf]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor r9d, r9d
mov edx, 1
mov rcx, rdi
mov dword [rsp + 0x40], 0x18
lea r8, [rsi + 8]
mov dword [rsp + 0x50], 0
call qword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
je 0x408580
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
sete al
movzx eax, al
neg eax
add rsp, 0x2060
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
lea r13, [rsp + 0x3c]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x20], r13
mov edx, 1
mov rdi, qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call rdi
test eax, eax
jne 0x408517
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x408438
mov edx, dword [rsp + 0x3c]
mov ecx, 1
mov r14, rdx
call sub.msvcrt.dll_calloc
mov rbx, qword [rsp + 0x40]
test rax, rax
mov rbp, rax
je 0x408553
mov qword [rsp + 0x20], r13
mov r9d, r14d
mov r8, rax
mov edx, 1
mov rcx, rbx
call rdi
test eax, eax
jne 0x408560
mov rbx, qword [rsp + 0x40]
lea rdi, [rsp + 0x60]
jmp 0x408444
lea rdi, [rsp + 0x60]
mov rcx, qword [rbp]
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
mov rbx, qword [rsp + 0x40]
jmp 0x408444
mov eax, 0xffffffff
jmp 0x4084cf
Function at 0x40bb20
Capabilities:
Hash data with crc32

Disassembly:
push rsi
push rbx
mov eax, 0x80000000
test ecx, ecx
je 0x40bb95
lea rsi, [0x00414e00]
mov ebx, 3
jmp 0x40bb47
add ebx, 1
sar ecx, 1
je 0x40bb95
test cl, 1
je 0x40bb40
mov edx, ebx
mov r8d, 0x80000000
and edx, 0x1f
mov r11d, dword [rsi + rdx*4]
mov edx, eax
xor eax, eax
jmp 0x40bb7e
mov r10d, edx
shr edx, 1
mov r9d, edx
and r10d, 1
shr r8d, 1
xor r9d, 0xedb88320
test r10d, r10d
cmovne edx, r9d
test r11d, r8d
je 0x40bb61
lea r9d, [r8 - 1]
xor eax, edx
test r9d, r11d
jne 0x40bb61
add ebx, 1
sar ecx, 1
jne 0x40bb47
pop rbx
pop rsi
ret
Function at 0x40cd00
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00429a04]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x40ce88
mov rax, qword [0x00429a08]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x40cd4c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x40cdd5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x40cd30
mov rcx, rbx
call fcn.0040d9a0
test rax, rax
mov r12, rax
je 0x40cebd
mov rax, qword [0x00429a08]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.0040dad0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00429a08]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x40cea0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x40cdce
sub eax, 0x40
and eax, 0xffffffbf
jne 0x40ce30
add dword [0x00429a04], 1
cmp edi, 8
jae 0x40ce03
test dil, 4
jne 0x40ce74
test edi, edi
je 0x40cdf8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x40ce8f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x40cdf8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x40ce1c
jmp 0x40cdf8
add rsi, qword [0x00429a08]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40cdce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.0040f130
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x40cdf8
xor esi, esi
jmp 0x40cd57
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x40cdf8
mov rax, qword [0x00429a08]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.0040f130
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.0040f130
nop
nop dword [rax]

Function at 0x40d610
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00429ce0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00429cc0]
test rbx, rbx
je 0x40d664
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x40d65b
test rsi, rsi
je 0x40d65b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x40d640
lea rcx, [0x00429ce0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x40d9a0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00417c50]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x40da0d
mov rcx, r8
call fcn.0040d880
test eax, eax
je 0x40da0d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x40da0d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x40da04
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x40da0f
add rax, 0x28
cmp rax, r9
jne 0x40d9f0
xor eax, eax
add rsp, 0x28
ret

Function at 0x40f130
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401560]
jmp 0x401530
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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.0040f030
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.0040f030
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401550
Function at 0x140019c90
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov rax, qword [0x140118098]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor ebx, ebx
movdqa xmm0, xmmword [0x1401030a0]
movdqu xmmword [rbp - 0x39], xmm0
movdqa xmm1, xmmword [0x140102db0]
movdqu xmmword [rbp - 0x29], xmm1
movdqa xmm0, xmmword [0x140102cf0]
movdqu xmmword [rbp - 0x19], xmm0
mov dword [rbp - 9], 0x76121076
mov word [rbp - 5], 0x6010
xor eax, eax
mov byte [rbp - 3], al
mov ecx, ebx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rbp - 0x39]
xor byte [rbp + rcx - 0x38], al
inc rcx
cmp rcx, 0x35
jb 0x140019d00
mov byte [rbp - 3], bl
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x17], xmm1
lea rax, [rbp - 0x38]
mov rdi, 0xffffffffffffffff
mov r8, rdi
inc r8
cmp byte [rax + r8], bl
jne 0x140019d31
lea rdx, [rbp - 0x38]
lea rcx, [rbp + 7]
call fcn.140012dd0
nop
movdqa xmm0, xmmword [0x140103090]
movdqu xmmword [rbp - 0x39], xmm0
movdqa xmm1, xmmword [0x140102db0]
movdqu xmmword [rbp - 0x29], xmm1
movdqa xmm0, xmmword [0x140102cf0]
movdqu xmmword [rbp - 0x19], xmm0
mov dword [rbp - 9], 0x76121076
mov word [rbp - 5], 0x6010
xor eax, eax
mov byte [rbp - 3], al
movzx eax, byte [rbp - 0x39]
xor byte [rbp + rbx - 0x38], al
inc rbx
cmp rbx, 0x35
jb 0x140019d81
mov byte [rbp - 3], 0
xorps xmm0, xmm0
movups xmmword [rbp + 0x27], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x37], xmm1
lea rax, [rbp - 0x38]
nop dword [rax]
inc rdi
cmp byte [rax + rdi], 0
jne 0x140019db0
mov r8, rdi
lea rdx, [rbp - 0x38]
lea rcx, [rbp + 0x27]
call fcn.140012dd0
nop
cmp byte [0x1401195d7], 0
je 0x140019e05
lea r8, [0x140119f98]
lea rdx, [rbp + 0x27]
lea rcx, [rbp + 7]
call fcn.1400189d0
mov byte [0x1401195d6], 0
mov byte [0x1401195e5], 0
mov byte [0x1401195f5], 0
mov byte [0x14011956a], 0
jmp 0x140019e16
lea rdx, [rbp + 7]
lea rcx, [0x140119f98]
call fcn.1400192f0
nop
lea rcx, [rbp + 0x27]
call fcn.140003050
nop
lea rcx, [rbp + 7]
call fcn.140003050
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400dcb00
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x140019e50
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov rax, qword [0x140118098]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor ebx, ebx
movdqa xmm0, xmmword [0x140102810]
movdqu xmmword [rbp - 0x39], xmm0
movdqa xmm1, xmmword [0x140102a20]
movdqu xmmword [rbp - 0x29], xmm1
movdqa xmm0, xmmword [0x140102ae0]
movdqu xmmword [rbp - 0x19], xmm0
mov dword [rbp - 9], 0x41252741
mov word [rbp - 5], 0x5727
xor eax, eax
mov byte [rbp - 3], al
mov ecx, ebx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rbp - 0x39]
xor byte [rbp + rcx - 0x38], al
inc rcx
cmp rcx, 0x35
jb 0x140019ec0
mov byte [rbp - 3], bl
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x17], xmm1
lea rax, [rbp - 0x38]
mov rdi, 0xffffffffffffffff
mov r8, rdi
inc r8
cmp byte [rax + r8], bl
jne 0x140019ef1
lea rdx, [rbp - 0x38]
lea rcx, [rbp + 7]
call fcn.140012dd0
nop
movdqa xmm0, xmmword [0x140102620]
movdqu xmmword [rbp - 0x39], xmm0
movdqa xmm1, xmmword [0x140102330]
movdqu xmmword [rbp - 0x29], xmm1
movdqa xmm0, xmmword [0x140102280]
movdqu xmmword [rbp - 0x19], xmm0
mov dword [rbp - 9], 0x3c585a3c
mov word [rbp - 5], 0x2a5a
xor eax, eax
mov byte [rbp - 3], al
movzx eax, byte [rbp - 0x39]
xor byte [rbp + rbx - 0x38], al
inc rbx
cmp rbx, 0x35
jb 0x140019f41
mov byte [rbp - 3], 0
xorps xmm0, xmm0
movups xmmword [rbp + 0x27], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x37], xmm1
lea rax, [rbp - 0x38]
nop dword [rax]
inc rdi
cmp byte [rax + rdi], 0
jne 0x140019f70
mov r8, rdi
lea rdx, [rbp - 0x38]
lea rcx, [rbp + 0x27]
call fcn.140012dd0
nop
cmp byte [0x1401195d6], 0
je 0x140019fc5
lea r8, [0x140119f98]
lea rdx, [rbp + 0x27]
lea rcx, [rbp + 7]
call fcn.1400189d0
mov byte [0x1401195d7], 0
mov byte [0x1401195e5], 0
mov byte [0x1401195f5], 0
mov byte [0x14011956a], 0
jmp 0x140019fd6
lea rdx, [rbp + 7]
lea rcx, [0x140119f98]
call fcn.1400192f0
nop
lea rcx, [rbp + 0x27]
call fcn.140003050
nop
lea rcx, [rbp + 7]
call fcn.140003050
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400dcb00
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret