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

Disassembly:
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14008ee50
lea rcx, [rsp + 0x40]
call fcn.14008ef80
movzx eax, al
test eax, eax
jne 0x14008f008
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.14008ee70
mov rax, qword [rsp + 0x70]
jmp 0x14008f1d9
lea rcx, [rsp + 0x40]
call fcn.14008ef60
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.14008ef10
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.14008ef60
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.14008ed20
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14008f0ae
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.14008ee70
mov rax, qword [rsp + 0x80]
jmp 0x14008f1d9
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.140073080
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140013c40
lea rcx, [rsp + 0x48]
call fcn.140013ce0
movzx eax, al
test eax, eax
jne 0x14008f115
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.140013c80
lea rcx, [rsp + 0x40]
call fcn.14008ee70
mov rax, qword [rsp + 0x88]
jmp 0x14008f1d9
lea rcx, [rsp + 0x48]
call fcn.140013dd0
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.14008ef60
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.14008ed20
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14008f1ab
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.140013c80
lea rcx, [rsp + 0x40]
call fcn.14008ee70
mov rax, qword [rsp + 0xa0]
jmp 0x14008f1d9
lea rcx, [rsp + 0x48]
call fcn.1400763c0
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.140013c80
lea rcx, [rsp + 0x40]
call fcn.14008ee70
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x1400ac2e0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400b5320
sub rsp, rax
mov rax, qword [0x1400e8018]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1400ea850]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1400ac4d2
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x1400ac426
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1400ac426
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x1400ac40b
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x1400ac3a8
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400ac492
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1400ac4f1
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x1400ac4cd
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1400ac4f1
jmp 0x1400ac37e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140010b40
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1400ac510
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400b5320
sub rsp, rax
mov rax, qword [0x1400e8018]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1400ea850]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1400ac71d
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x1400ac669
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1400ac669
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x1400ac649
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x1400ac5d8
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400ac6dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1400ac73c
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x1400ac718
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1400ac73c
jmp 0x1400ac5ae
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140010b40
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140001570
Capabilities:
Encode data using xor
Enumerate processes

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x158
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140001694
lea rbp, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], 0x130
lea rsi, [0x1400090d0]
mov rdx, rbp
lea rbx, [rsp + 0x4c]
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x14000169b
lea r13, [0x140009020]
nop
mov rcx, rbx
call sub.msvcrt.dll__strlwr
mov rcx, rax
mov r15, rax
call sub.msvcrt.dll_strlen
lea ecx, [rax + 1]
mov r12, rax
movsxd rcx, ecx
call sub.msvcrt.dll_malloc
mov r14, rax
movsxd rax, r12d
test rax, rax
je 0x140001680
xor edx, edx
nop word [rax + rax]
mov rcx, rdx
and ecx, 1
movzx ecx, byte [r13 + rcx]
xor cl, byte [r15 + rdx]
mov byte [r14 + rdx], cl
add rdx, 1
cmp rax, rdx
jne 0x140001608
add rax, r14
mov rdx, qword [r13 + 8]
movsxd r8, dword [r13 + 4]
mov byte [rax], 0
mov rcx, r14
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x140001685
mov rcx, r14
add r13, 0x10
call sub.msvcrt.dll_free
cmp r13, rsi
jne 0x1400015d0
mov rdx, rbp
mov rcx, rdi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1400015c8
mov byte [0x1400090d0], 0
add rsp, 0x158
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, r14
jmp 0x140001628
mov rcx, r14
mov byte [0x1400090d0], 1
call sub.msvcrt.dll_free
mov eax, 1
jmp 0x14000166a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001694
Function at 0x1400019c0
Capabilities:
Read file on windows

Disassembly:
push rbp
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
sub rsp, 0x400
mov r12, rdx
mov r13, rcx
lea rdx, [0x14000a060]
lea rdi, [rsp + 0x20]
call sub.msvcrt.dll_fopen
mov rsi, rax
test rax, rax
je 0x140001a8d
mov r8d, 2
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_fseek
mov rcx, rsi
call sub.msvcrt.dll_ftell
mov rcx, rsi
cmp eax, 0x7f
jle 0x140001a88
call sub.msvcrt.dll_rewind
xor ebx, ebx
jmp 0x140001a39
mov r8d, ebx
mov rdx, r12
mov rcx, rdi
add ebx, 1
call fcn.140001720
mov r9, rsi
mov r8d, 0x400
mov edx, 1
mov rcx, rdi
call sub.msvcrt.dll_fread
test rax, rax
jne 0x140001a28
mov rcx, rsi
call sub.msvcrt.dll_fclose
lea rdx, [0x14000a062]
mov rcx, r13
call sub.msvcrt.dll_fopen
mov rcx, rsi
call sub.msvcrt.dll_fclose
mov eax, 1
lea rsp, [rbp + 8]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop rbp
ret
call sub.msvcrt.dll_fclose
xor eax, eax
lea rsp, [rbp + 8]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop rbp
ret
Function at 0x140001b30
Capabilities:
Encode data using base64

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea eax, [rdx*4]
mov rbx, rcx
mov esi, edx
movsxd rcx, eax
sar eax, 0x1f
imul rcx, rcx, 0x55555556
shr rcx, 0x20
sub ecx, eax
add ecx, 5
movsxd rcx, ecx
call sub.msvcrt.dll_malloc
lea r11d, [rsi - 2]
mov r10, rax
cmp esi, 2
jle 0x140001d10
xor ecx, ecx
mov r9d, 4
lea r8, str.VirtualEnvScopeROUTINGx86_kK4QyXC70YfqBZw3mzMD25HP1LdgFjhAbWJ9s
nop dword [rax + rax]
movzx eax, byte [rbx + rcx + 1]
movzx edx, byte [rbx + rcx]
movzx r12d, byte [rbx + rcx + 2]
add rcx, 3
mov ebp, eax
mov edi, edx
shl edx, 4
sar bpl, 4
sar dil, 2
or edx, ebp
lea ebp, [rax*4]
mov eax, r12d
and r12d, 0x3f
sar al, 6
and edx, 0x3f
movzx edi, dil
or ebp, eax
movzx eax, byte [r8 + r12]
movzx edx, byte [r8 + rdx]
and ebp, 0x3f
movzx ebp, byte [r8 + rbp]
shl eax, 8
or eax, ebp
shl eax, 8
or eax, edx
movzx edx, byte [r8 + rdi]
shl eax, 8
or eax, edx
mov dword [r10 + r9 - 4], eax
mov rax, r9
add r9, 4
cmp r11d, ecx
jg 0x140001b88
mov ecx, eax
cdqe
add rax, r10
movsxd r8, esi
mov r9d, esi
imul rdx, r8, 0x55555556
sar r9d, 0x1f
shr rdx, 0x20
sub edx, r9d
lea r9d, [rdx + rdx*2]
sub esi, r9d
cmp esi, 1
je 0x140001cb8
cmp esi, 2
je 0x140001c48
mov byte [rax], 0
mov rax, r10
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
movzx edx, byte [rbx + r8 - 2]
lea r9, str.VirtualEnvScopeROUTINGx86_kK4QyXC70YfqBZw3mzMD25HP1LdgFjhAbWJ9s
mov r11d, edx
shl edx, 4
sar r11b, 2
movzx r11d, r11b
movzx r11d, byte [r9 + r11]
mov byte [rax], r11b
movzx eax, byte [rbx + r8 - 1]
xor ebx, ebx
mov r8d, eax
shl eax, 2
sar r8b, 4
and eax, 0x3c
or edx, r8d
movzx eax, byte [r9 + rax]
and edx, 0x3f
mov bl, byte [r9 + rdx]
mov bh, al
lea eax, [rcx + 1]
cdqe
mov word [r10 + rax], bx
lea eax, [rcx + 3]
add ecx, 4
cdqe
movsxd rcx, ecx
mov byte [r10 + rax], 0x3d
lea rax, [r10 + rcx]
jmp 0x140001c31
movzx edx, byte [rbx + r8 - 1]
lea r9, str.VirtualEnvScopeROUTINGx86_kK4QyXC70YfqBZw3mzMD25HP1LdgFjhAbWJ9s
mov r8d, edx
shl edx, 4
sar r8b, 2
and edx, 0x30
movzx r8d, r8b
movzx edx, byte [r9 + rdx]
movzx r8d, byte [r9 + r8]
mov byte [rax], r8b
lea eax, [rcx + 1]
cdqe
mov byte [r10 + rax], dl
lea eax, [rcx + 2]
cdqe
mov byte [r10 + rax], 0x3d
lea eax, [rcx + 3]
cdqe
mov byte [r10 + rax], 0x3d
lea eax, [rcx + 4]
cdqe
add rax, r10
jmp 0x140001c31
xor ecx, ecx
jmp 0x140001c04
Function at 0x1400023a0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140008070
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.140008070
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002410
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000f104]
mov rbx, rcx
test esi, esi
jle 0x140002540
mov rax, qword [0x14000f108]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000245b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400024e5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002440
mov rcx, rbx
call fcn.140002e60
mov rdi, rax
test rax, rax
je 0x140002562
mov rax, qword [0x14000f108]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002fa0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000f108]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002547
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400024de
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400024f0
add dword [0x14000f104], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000f108]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400024de
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400023a0
nop dword [rax]
xor esi, esi
jmp 0x140002468
mov rax, qword [0x14000f108]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400023a0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400023a0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002ad0
Capabilities:
Get thread local storage value

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

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

Function at 0x140002ee0
Capabilities:
Parse pe header

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

Function at 0x140002fa0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000aae0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140002fbf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002fc8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1400d99f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400d9a18
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400d9a18
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140001040
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov edx, 0x47
lea rcx, [entry0]
mov al, byte [rcx + rdx]
xor al, 0xc0
add al, 0xcc
xor al, 0x40
mov byte [rcx + rdx], al
inc rdx
cmp rdx, 0x2d9
jl 0x140001068
cld
in al, dx
push rbx
pushfq
stosb byte [rdi], al
push rdi
outsb dx, byte [rsi]
adc byte [rdx - 0x40], bh
std
lock xchg dword [rbx - 0x165504b5], edi
fdiv dword [rdx]
cld
cmp eax, 0xf1fd7bf9
or byte [rbp - 0x6c884886], cl
lahf
add eax, 0xb993d80
cld
in al, dx
jmp 0x1b7890413
Function at 0x14000542c
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword gs:[0x60]
mov ebp, ecx
mov r14, qword [rax + 0x18]
add r14, 0x10
mov rsi, qword [r14]
jmp 0x1400054da
test rsi, rsi
je 0x1400054d7
and qword [rsp + 0x38], 0
or r9d, 0xffffffff
mov rdi, qword [rsi + 0x60]
xor edx, edx
and qword [rsp + 0x30], 0
mov r8, rdi
and dword [rsp + 0x28], 0
mov ecx, 0xfde9
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbx, eax
mov rcx, rbx
call fcn.1400055e0
and qword [rsp + 0x38], 0
or r9d, 0xffffffff
and qword [rsp + 0x30], 0
mov r8, rdi
mov dword [rsp + 0x28], ebx
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rax
mov r15, rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x1400054e3
mov rcx, r15
call fcn.1400013f8
cmp eax, ebp
je 0x1400054fe
mov rsi, qword [rsi]
cmp rsi, r14
jne 0x14000545c
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
mov rax, qword [rsi + 0x30]
jmp 0x1400054e5

Function at 0x140005504
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov eax, 0x5a4d
mov r15d, edx
mov r11, rcx
cmp word [rcx], ax
jne 0x14000557b
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x14000557b
mov ecx, dword [rax + rcx + 0x88]
add rcx, r11
je 0x14000557b
mov ebp, dword [rcx + 0x20]
xor ebx, ebx
mov edi, dword [rcx + 0x24]
add rbp, r11
mov esi, dword [rcx + 0x1c]
add rdi, r11
mov r14d, dword [rcx + 0x18]
add rsi, r11
test r14, r14
je 0x14000557b
mov ecx, dword [rbp + rbx*4]
add rcx, r11
call fcn.1400013f8
cmp eax, r15d
je 0x140005596
inc rbx
cmp rbx, r14
jb 0x140005562
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
movzx eax, word [rdi + rbx*2]
mov eax, dword [rsi + rax*4]
add rax, r11
jmp 0x14000557d

Function at 0x140006140
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000618a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000618a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000618a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000618a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000618a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000618c
xor al, al
add rsp, 0x28
ret
Function at 0x140002490
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rdi
cmp dword [0x14003ea74], 0
lea rdi, [0x14003ea70]
mov r11d, r8d
mov r9d, edx
mov r10, rcx
jne 0x140002568
mov qword [rsp + 0x10], rbx
xor edx, edx
mov rbx, rdi
nop dword [rax]
mov r8d, edx
lea rbx, [rbx + 4]
and r8d, 1
mov eax, edx
shr eax, 1
neg r8d
and r8d, 0xedb88320
inc edx
xor r8d, eax
mov eax, r8d
shr r8d, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, r8d
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [rbx - 4], eax
cmp edx, 0x100
jb 0x1400024c0
mov rbx, qword [rsp + 0x10]
not r11d
mov eax, r11d
test r9d, r9d
jle 0x14000259e
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r10]
lea r10, [r10 + 1]
movzx edx, al
xor rdx, rcx
shr eax, 8
xor eax, dword [rdi + rdx*4]
sub r9d, 1
jne 0x140002580
not eax
pop rdi
ret
movzx r9d, byte [r10]
lea r8, [r10 + 1]
test r9b, r9b
je 0x1400025df
nop dword [rax + rax]
cmp r9b, 0x23
jne 0x1400025c3
cmp byte [r8], r9b
jne 0x1400025c3
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rdi + rdx*4]
test r9b, r9b
jne 0x1400025b0
not eax
pop rdi
ret