joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005040
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, qword [0x140042c30]
lea rsi, [0x140042c20]
xor eax, eax
lea rbp, [0x140042c40]
cmp qword [0x140042c38], 8
movabs rbx, 0x7ffffffffffffffe
xorps xmm0, xmm0
mov qword [0x140042c50], rax
cmovae rsi, qword [0x140042c20]
mov qword [0x140042c58], rax
movups xmmword [0x140042c40], xmm0
cmp rdi, rbx
ja 0x140005246
mov qword [0x140042c58], 7
cmp rdi, 8
jae 0x1400050cd
mov qword [0x140042c50], rdi
movups xmm0, xmmword [rsi]
movaps xmmword [0x140042c40], xmm0
jmp 0x14000517a
mov rcx, rdi
or rcx, 7
cmp rcx, rbx
ja 0x1400050e8
mov edx, 0xa
mov rbx, rcx
cmp rcx, rdx
cmovb rbx, rdx
mov rdx, 0xffffffffffffffff
mov rcx, rbx
add rcx, 1
cmovb rcx, rdx
movabs rdx, 0x7fffffffffffffff
cmp rcx, rdx
ja 0x140005240
add rcx, rcx
cmp rcx, 0x1000
jb 0x140005148
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140005240
mov rcx, rax
call fcn.140007acc
mov rcx, rax
test rax, rax
je 0x14000523a
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140005152
test rcx, rcx
je 0x140005152
call fcn.140007acc
lea r8, [rdi*2 + 2]
mov qword [0x140042c40], rax
mov rdx, rsi
mov qword [0x140042c50], rdi
mov rcx, rax
mov qword [0x140042c58], rbx
call fcn.140009930
xor edx, edx
lea rcx, str.wslapi.dll
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [0x140042c60], rax
test rax, rax
je 0x140005222
lea rdx, str.WslIsDistributionRegistered
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140042c60]
lea rdx, str.WslRegisterDistribution
mov qword [0x140042c68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140042c60]
lea rdx, str.WslConfigureDistribution
mov qword [0x140042c70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140042c60]
lea rdx, str.WslLaunchInteractive
mov qword [0x140042c78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140042c60]
lea rdx, str.WslLaunch
mov qword [0x140042c80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140042c88], rax
mov rbx, qword [rsp + 0x40]
mov rax, rbp
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
call fcn.14000e2e4
int3
call fcn.1400020a0
int3
call fcn.140001f00
int3
Function at 0x140006860
Capabilities:
Read file on windows

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 r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x14000688e
xor eax, eax
jmp 0x140006974
cmp qword [rcx + 0x68], 0
je 0x14000689f
call fcn.140006990
jmp 0x140006974
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400068b6
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400068b8
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400068ea
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140009930
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x14000696e
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140006921
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x14000694a
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140019724
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14000696e
cmp rsi, rbx
ja 0x140006928
test rsi, rsi
je 0x14000696e
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140019724
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14000871c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140008766
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140008766
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140008766
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140008766
cmp dword [rcx + 0x84], 0xe
jbe 0x140008766
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140008768
xor al, al
add rsp, 0x28
ret
Function at 0x14002290c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140008390
sub rsp, rax
mov rax, qword [0x140040020]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001ff10
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002295b
mov rax, rbp
jmp 0x140022a63
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x42670]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140023bf4
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x42670]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140022a5f
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140022a5f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140023bf4
test rax, rax
js 0x140022a5f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140022a5f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140022a51
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140022a51
cmp byte [rcx], 0xd
jne 0x140022a37
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140022a46
cmp byte [rcx + 1], 0xa
jne 0x140022a46
inc rcx
jmp 0x140022a46
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x40420]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140022a19
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140022a63
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140007a80
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140022d80
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140022d96
mov al, 1
jmp 0x140022df6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140022da7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140022df4
mov ecx, dword [rcx + 0x18]
nop
call fcn.140027600
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140022df4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140022df4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140022df4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140022df6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140022f94
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140042670]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140022feb
cmp word [rdx], r13w
jne 0x140022feb
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140022ff0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140023115
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140023136
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140023029
mov rdx, r9
mov word [rbx], cx
jmp 0x140023050
cmp r9, r8
jae 0x140023060
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14002300a
jmp 0x140023115
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002310a
cmp dword [rsp + 0x80], esi
je 0x14002310a
lea r8, [0x140042670]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400230e2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400230b2
mov word [rbx], r13w
jmp 0x140023112
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400230bf
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140023112
cmp word [rsp + 0x70], r13w
jne 0x1400230ef
cmp rbx, r14
je 0x1400230ac
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140023bfc
cmp word [rsp + 0x70], r13w
je 0x140023115
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140042670]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14002310f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140023115
Function at 0x140026b4c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140026bd3
mov rsi, rbx
cmp word [rax], bp
je 0x140026b92
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140026b7c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140026b78
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140020528
mov rdi, rax
test rax, rax
je 0x140026bc0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140009930
mov rbp, rdi
xor ecx, ecx
call fcn.14001ea78
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140029b54
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14001e454
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140029bf5
cmp ebx, dword [rsp + 0x30]
je 0x140029bee
test esi, esi
je 0x140029bee
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140029bc9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140029bd6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140029bb3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140029bda
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140029bf7
mov eax, 1
jmp 0x140029bf7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400098d0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400098e0]
mov dword [rax], 1
mov rax, qword [0x1400098f0]
mov dword [rax], 1
mov rax, qword [0x1400098c0]
mov dword [rax], 1
mov rax, qword [0x140009780]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x1400098b0]
mov dword [0x14000c00c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x1400010c0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140009870]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140009850]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140009730]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067

Function at 0x1400015a1
Capabilities:
Get system information on windows
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xc0
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
lea rax, [rbp - 0x50]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetSystemInfo]
call rax
mov qword [rbp - 8], 0
mov rax, qword [rbp + 0x18]
lea rdx, section..rdata
mov rcx, rax
call sym.fopen
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x1400016bb
lea rcx, str.Could_not_open_file_for_writing._n
call sym.printf
jmp 0x1400016d9
mov rax, qword [rbp - 8]
lea rdx, [rbp - 0x80]
mov r9d, 0x30
mov r8, rdx
mov rdx, rax
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
call rax
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
je 0x1400016cb
mov eax, dword [rbp - 0x60]
cmp eax, 0x1000
jne 0x1400016b3
mov eax, dword [rbp - 0x5c]
and eax, 4
test eax, eax
je 0x1400016b3
mov rax, qword [rbp - 0x68]
mov rcx, rax
call sym.malloc
mov qword [rbp - 0x20], rax
mov r8, qword [rbp - 0x68]
mov rax, qword [rbp - 0x80]
mov rcx, qword [rbp - 0x20]
lea rdx, [rbp - 0x88]
mov qword [rsp + 0x20], rdx
mov r9, r8
mov r8, rcx
mov rdx, rax
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
call rax
test eax, eax
je 0x1400016a7
mov rdx, qword [rbp - 0x88]
mov rcx, qword [rbp - 0x10]
mov rax, qword [rbp - 0x20]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov rax, qword [rbp - 0x20]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp - 0x68]
add qword [rbp - 8], rax
mov rax, qword [rbp - 0x40]
cmp qword [rbp - 8], rax
jb 0x1400015ff
jmp 0x1400016cc
nop
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.fclose
nop
add rsp, 0xc0
pop rbp
ret
Function at 0x140001ab0
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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x140001b20
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x14000c0a4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x140001cd0
mov rax, qword [0x14000c0a8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x140001b6c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001bf7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x140001b50
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x140001d2d
mov rax, qword [0x14000c0a8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14000c0a8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001d12
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001bf0
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001c80
add dword [0x14000c0a4], 1
cmp ebx, 8
jae 0x140001c28
test bl, 4
jne 0x140001ce0
test ebx, ebx
je 0x140001c19
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x140001d00
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x140001c19
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x140001c5a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
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 rdi, qword [0x14000c0a8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001bf0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
xor edi, edi
jmp 0x140001b77
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x140001c19
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x140001c19
mov rax, qword [0x14000c0a8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop dword [rax]
Function at 0x140002240
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14000c100]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000c0e0]
test rbx, rbx
je 0x140002294
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 0x14000228b
test r12, r12
je 0x14000228b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002270
lea rcx, [0x14000c100]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400024c0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x1400024d0
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x1400024e0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140002525
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x14000251c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x140002527
add rax, 0x28
cmp rax, r9
jne 0x140002508
xor eax, eax
ret

Function at 0x1400025d0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x140009780]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x140002649
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140002649
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x140002646
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x14000263d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x140002649
add r8, 0x28
cmp r8, r9
jne 0x140002628
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x140002730
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140009780]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14000279f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x14000279f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x14000279d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002794
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400027a8
add rax, 0x28
cmp rax, r9
jne 0x140002780
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x1400027c0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x140009780]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x140002838
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140002838
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x140002838
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140002838
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x14000282c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x140002840
add rdx, 0x28
cmp rdx, r10
jne 0x140002818
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x140002850
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x14000285e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002835
test r8d, r8d
jg 0x140002848
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x14001c180
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0xb], 0
mov rdx, rcx
je 0x14001c293
movzx eax, word [rcx]
movdqa xmm3, xmmword [0x140cd24f0]
movdqa xmm2, xmmword [0x140cd2530]
movq xmm1, qword [0x140cd2330]
paddd xmm1, xmm3
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
psrad xmm0, 0x18
xorps xmm1, xmm0
andps xmm1, xmm2
packuswb xmm1, xmm1
packuswb xmm1, xmm1
movd eax, xmm1
movq xmm1, qword [0x140cd2340]
paddd xmm1, xmm3
mov word [rcx], ax
movzx eax, word [rcx + 2]
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
psrad xmm0, 0x18
xorps xmm1, xmm0
andps xmm1, xmm2
packuswb xmm1, xmm1
packuswb xmm1, xmm1
movd eax, xmm1
movq xmm1, qword [0x140cd2350]
paddd xmm1, xmm3
mov word [rcx + 2], ax
movzx eax, word [rcx + 4]
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
psrad xmm0, 0x18
xorps xmm1, xmm0
andps xmm1, xmm2
packuswb xmm1, xmm1
packuswb xmm1, xmm1
movd eax, xmm1
movq xmm1, qword [0x140cd2360]
paddd xmm1, xmm3
mov word [rcx + 4], ax
movzx eax, word [rcx + 6]
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
psrad xmm0, 0x18
xorps xmm1, xmm0
andps xmm1, xmm2
packuswb xmm1, xmm1
packuswb xmm1, xmm1
movd eax, xmm1
mov word [rcx + 6], ax
mov eax, 8
nop dword [rax]
lea ecx, [rax + 0x61]
xor byte [rdx + rax], cl
inc rax
cmp rax, 0xa
jb 0x14001c280
mov byte [rdx + 0xb], 0
mov rax, rdx
ret

Function at 0x14001c2a0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x10], 0
mov rdx, rcx
je 0x14001c3b3
movzx eax, word [rcx]
movdqa xmm3, xmmword [0x140cd24f0]
movdqa xmm2, xmmword [0x140cd2530]
movq xmm1, qword [0x140cd2330]
paddd xmm1, xmm3
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
psrad xmm0, 0x18
xorps xmm1, xmm0
andps xmm1, xmm2
packuswb xmm1, xmm1
packuswb xmm1, xmm1
movd eax, xmm1
movq xmm1, qword [0x140cd2340]
paddd xmm1, xmm3
mov word [rcx], ax
movzx eax, word [rcx + 2]
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
psrad xmm0, 0x18
xorps xmm1, xmm0
andps xmm1, xmm2
packuswb xmm1, xmm1
packuswb xmm1, xmm1
movd eax, xmm1
movq xmm1, qword [0x140cd2350]
paddd xmm1, xmm3
mov word [rcx + 2], ax
movzx eax, word [rcx + 4]
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
psrad xmm0, 0x18
xorps xmm1, xmm0
andps xmm1, xmm2
packuswb xmm1, xmm1
packuswb xmm1, xmm1
movd eax, xmm1
movq xmm1, qword [0x140cd2360]
paddd xmm1, xmm3
mov word [rcx + 4], ax
movzx eax, word [rcx + 6]
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
psrad xmm0, 0x18
xorps xmm1, xmm0
andps xmm1, xmm2
packuswb xmm1, xmm1
packuswb xmm1, xmm1
movd eax, xmm1
mov word [rcx + 6], ax
mov eax, 8
nop dword [rax]
lea ecx, [rax + 0x61]
xor byte [rdx + rax], cl
inc rax
cmp rax, 0xf
jb 0x14001c3a0
mov byte [rdx + 0x10], 0
mov rax, rdx
ret