joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001008
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
lea rcx, str._JAVA_LAUNCHER_DEBUG
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140001069
lea rcx, str.Windows_original_main_args:_n
call fcn.14000114c
xor ebx, ebx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
cmp dword [rax], ebx
jle 0x140001069
xor edi, edi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argv]
mov edx, ebx
lea rcx, str.wwwd_args__d____s_n
mov r8, qword [rax]
mov r8, qword [rdi + r8]
call fcn.14000114c
inc ebx
lea rdi, [rdi + 8]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
cmp ebx, dword [rax]
jl 0x14000103e
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rcx, rax
call sub.jli.dll_JLI_CmdToArgs
call sub.jli.dll_JLI_GetStdArgc
movsxd rdi, eax
lea ecx, [rdi + 1]
movsxd rcx, ecx
shl rcx, 3
call sub.jli.dll_JLI_MemAlloc
mov rbx, rax
call sub.jli.dll_JLI_GetStdArgs
xor r9d, r9d
test edi, edi
jle 0x1400010b5
xor edx, edx
mov r9d, edi
mov rcx, qword [rax]
lea rax, [rax + 0x10]
mov qword [rbx + rdx*8], rcx
inc rdx
cmp rdx, rdi
jl 0x1400010a2
mov rcx, qword [str.java]
movsxd rax, r9d
and qword [rbx + rax*8], 0
test rcx, rcx
jne 0x1400010cc
mov rcx, qword [rbx]
mov rax, qword [section..data]
test rax, rax
jne 0x1400010db
mov rax, qword [rbx]
and dword [rsp + 0x68], 0
lea r9, str._J_ms8m
mov byte [rsp + 0x60], 0
mov r8d, 5
mov byte [rsp + 0x58], 0
mov rdx, rbx
mov byte [rsp + 0x50], 1
mov qword [rsp + 0x48], rcx
mov ecx, edi
mov qword [rsp + 0x40], rax
lea rax, [0x14000235c]
mov qword [rsp + 0x38], rax
lea rax, [0x140002360]
mov qword [rsp + 0x30], rax
lea rax, str._lib_tools.jar
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 2
call sub.jli.dll_JLI_Launch
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x1400015a0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x48
movabs rax, 0x46666a796774594e
lea rcx, [rsp + 0x30]
mov byte [rsp + 0x3e], 0
mov qword [rsp + 0x20], rcx
mov rdx, rcx
mov qword [rsp + 0x28], 0xe
mov qword [rsp + 0x30], rax
movabs rax, 0x68676668676a4666
mov qword [rsp + 0x36], rax
xor eax, eax
nop
xor byte [rdx + rax], 0x5a
add rax, 1
mov rdx, qword [rsp + 0x20]
cmp rax, qword [rsp + 0x28]
jb 0x1400015e0
mov qword [rsp + 0x28], 0
mov byte [rdx], 0
mov rax, qword [rsp + 0x20]
cmp rax, rcx
je 0x14000161c
mov rcx, qword [rsp + 0x30]
lea rdx, [rcx + 1]
mov rcx, rax
call fcn.14010ab40
nop
add rsp, 0x48
ret

Function at 0x140002360
Capabilities:
Hash data with md5

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa8
movdqa xmm0, xmmword [0x140111480]
mov rbp, rcx
movups xmmword [rcx], xmm0
lea rcx, [rsp + 0x40]
call fcn.1400022a0
mov rax, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
sub rdx, rax
shr rdx, 6
je 0x140002518
shl rdx, 6
mov qword [rsp + 0x38], rax
mov rdi, rax
mov r15d, 0x10325476
lea rbx, [rdx + rax]
mov r14d, 0x98badcfe
mov r13d, 0xefcdab89
mov ecx, 0x67452301
mov qword [rsp + 0x30], rbx
lea r12, [rsp + 0x60]
lea rsi, [0x140111280]
lea rbx, [0x140111380]
nop dword [rax]
movdqu xmm1, xmmword [rdi]
movdqu xmm2, xmmword [rdi + 0x10]
mov dword [rsp + 0x2c], r13d
mov eax, ecx
movdqu xmm3, xmmword [rdi + 0x20]
movdqu xmm4, xmmword [rdi + 0x30]
mov r9d, r13d
mov r11d, r15d
movaps xmmword [r12], xmm1
mov r10d, r14d
xor r8d, r8d
mov r13d, ecx
movaps xmmword [r12 + 0x10], xmm2
movaps xmmword [r12 + 0x20], xmm3
movaps xmmword [r12 + 0x30], xmm4
jmp 0x14000246a
cmp r8, 0x2f
ja 0x1400024a8
mov edx, r9d
lea ecx, [r8 + r8*2 + 5]
xor edx, r10d
and ecx, 0xf
xor edx, r11d
add edx, dword [rsi + r8*4]
add edx, dword [rsp + rcx*4 + 0x60]
mov ecx, dword [rbx + r8*4]
add edx, eax
add r8, 1
rol edx, cl
add edx, r9d
mov eax, r11d
mov r11d, r10d
mov r10d, r9d
mov r9d, edx
cmp r8, 0xf
jbe 0x140002490
cmp r8, 0x1f
ja 0x140002430
mov edx, r9d
lea ecx, [r8 + r8*4 + 1]
xor edx, r10d
and ecx, 0xf
and edx, r11d
xor edx, r10d
jmp 0x140002447
mov edx, r10d
mov ecx, r8d
xor edx, r11d
and edx, r9d
xor edx, r11d
jmp 0x140002447
lea ecx, [r8*8]
mov edx, r11d
sub ecx, r8d
not edx
and ecx, 0xf
or edx, r9d
xor edx, r10d
add edx, dword [rsi + r8*4]
add edx, dword [rsp + rcx*4 + 0x60]
mov ecx, dword [rbx + r8*4]
add edx, eax
add r8, 1
rol edx, cl
add edx, r9d
cmp r8, 0x40
jne 0x14000245e
mov ecx, r13d
mov r13d, dword [rsp + 0x2c]
mov rax, qword [rsp + 0x30]
add r14d, r9d
add ecx, r11d
add r15d, r10d
add rdi, 0x40
mov dword [rbp + 8], r14d
add r13d, edx
mov dword [rbp], ecx
mov dword [rbp + 4], r13d
mov dword [rbp + 0xc], r15d
cmp rdi, rax
jne 0x1400023e8
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x14000252d
mov rdx, qword [rsp + 0x50]
mov rcx, rax
sub rdx, rax
call fcn.14010ab40
mov rax, rbp
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140002600
Capabilities:
Access peb ldr_data
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x4b8
movaps xmmword [rsp + 0x4a0], xmm6
mov ecx, 0x20
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov r15, qword [rax + 0x20]
lea r9, [rax + 0x20]
xor eax, eax
lea rdx, [rsp + 0x170]
mov rdi, rdx
rep stosq qword [rdi], rax
cmp r9, r15
je 0x1400027a7
lea rbp, [rsp + 0x39a]
mov qword [rsp + 0x58], r9
xor esi, esi
lea r12, [rsp + 0x280]
mov qword [rsp + 0x48], rdx
mov rcx, rbp
mov rbp, r15
lea rax, [rsp + 0x60]
lea r14, [rsp + 0x390]
mov ebx, 0x39
mov qword [rsp + 0x50], r12
mov r15, rcx
movq xmm6, qword [0x140111490]
mov r13, qword [sym.imp.msvcrt.dll_strcpy_s]
sub ebx, r14d
mov r12, rax
nop
mov rax, rsi
mov ecx, 0x20
mov rdi, r12
xor edx, edx
rep stosq qword [rdi], rax
mov ecx, 0x20
mov r9d, 0xffffffff
mov dword [rdi], 0
mov rdi, qword [rsp + 0x48]
rep stosq qword [rdi], rax
mov dword [rdi], 0
mov r8, qword [rbp + 0x40]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x104
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movzx eax, word [0x140111498]
movq qword [rsp + 0x390], xmm6
mov word [rsp + 0x398], ax
mov rax, r14
nop dword [rax + rax]
lea edx, [rbx + rax]
xor byte [rax], dl
add rax, 1
cmp rax, r15
jne 0x140002710
mov rdi, qword [rsp + 0x48]
mov r8, r14
mov edx, 0x104
mov rcx, rdi
call r13
mov r8, rdi
mov rdi, qword [rsp + 0x50]
mov edx, 0x104
mov rcx, rdi
call r13
mov edx, 0x104
mov r8, r12
mov rcx, r14
call r13
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__strlwr]
mov rcx, r14
call qword [sym.imp.msvcrt.dll__strlwr]
mov rdx, rdi
mov rcx, r14
call sub.msvcrt.dll_strstr
test rax, rax
je 0x140002798
mov rax, qword [rbp + 0x20]
movaps xmm6, xmmword [rsp + 0x4a0]
add rsp, 0x4b8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rbp, qword [rbp]
cmp qword [rsp + 0x58], rbp
jne 0x1400026a0
xor eax, eax
jmp 0x140002778
Function at 0x1400027e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbx, rcx
call fcn.140002600
mov r15, rax
test rax, rax
je 0x1400028e0
mov rcx, rbx
lea rdi, [rsp + 0x30]
call sub.msvcrt.dll_strlen
mov rdx, rbx
mov rcx, rdi
mov r8, rax
call fcn.140002360
movsxd rax, dword [r15 + 0x3c]
mov r13, qword [rsp + 0x30]
mov esi, dword [r15 + rax + 0x88]
mov ebp, r13d
add rsi, r15
mov edx, dword [rsi + 0x18]
mov eax, dword [rsi + 0x20]
test edx, edx
je 0x1400028e0
xor r14d, r14d
lea r12, [r15 + rax]
jmp 0x14000285e
add r14, 1
cmp r14d, dword [rsi + 0x18]
jae 0x1400028e0
mov ebx, dword [r12 + r14*4]
add rbx, r15
mov rcx, rbx
call sub.msvcrt.dll_strlen
mov rdx, rbx
mov rcx, rdi
mov r8, rax
call fcn.140002360
cmp ebp, dword [rsp + 0x30]
jne 0x140002850
mov eax, dword [rsi + 0x24]
lea rdx, [r15 + r14*2]
movzx edx, word [rdx + rax]
mov eax, dword [rsi + 0x1c]
lea rdx, [r15 + rdx*4]
mov ebx, dword [rdx + rax]
xor eax, eax
add rbx, r15
jmp 0x1400028aa
add rax, 1
cmp rax, 0x20
je 0x140002850
cmp byte [rbx + rax], 0xf
jne 0x1400028a0
cmp byte [rbx + rax + 1], 5
jne 0x1400028a0
movzx edx, word [rbx + rax - 2]
test dx, dx
je 0x140002850
mov ecx, 0x10
mov dword [rsp + 0x2c], edx
call fcn.14010ab80
mov edx, dword [rsp + 0x2c]
mov qword [rax], rbx
mov dword [rax + 8], r13d
mov word [rax + 0xc], dx
jmp 0x1400028e2
xor eax, eax
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140004350
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x60
mov eax, 0x40000000
cpuid
mov rax, qword [str.owL_O_i_rtSXNRMPoxTDkP8OXTDZKZ3OWS__M]
mov dword [rsp + 0x50], ebx
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x2d]
mov dword [rsp + 0x58], edx
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x28], 0x21312336
mov byte [rsp + 0x2c], 0x45
mov dword [rsp + 0x54], ecx
mov ecx, 0x39
mov qword [rsp + 0x20], rax
sub ecx, r9d
mov rax, r9
nop dword [rax + rax]
lea edx, [rcx + rax]
xor byte [rax], dl
add rax, 1
cmp rax, r8
jne 0x1400043a0
lea rbx, [rsp + 0x50]
mov rdx, r9
mov rcx, rbx
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x140004470
mov byte [rsp + 0x3c], 0x45
lea r9, [rsp + 0x30]
mov ecx, 0x39
mov rax, qword [0x14026e848]
mov dword [rsp + 0x38], 0x320b6235
lea r8, [rsp + 0x3d]
sub ecx, r9d
mov qword [rsp + 0x30], rax
mov rax, r9
nop dword [rax]
lea edx, [rcx + rax]
xor byte [rax], dl
add rax, 1
cmp r8, rax
jne 0x1400043f8
mov rdx, r9
mov rcx, rbx
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x140004470
mov byte [rsp + 0x4c], 0x45
lea r9, [rsp + 0x40]
mov ecx, 0x39
mov rax, qword [0x14026e850]
mov dword [rsp + 0x48], 0x3c2c0017
lea r8, [rsp + 0x4d]
sub ecx, r9d
mov qword [rsp + 0x40], rax
mov rax, r9
nop dword [rax + rax]
lea edx, [rcx + rax]
xor byte [rax], dl
add rax, 1
cmp r8, rax
jne 0x140004448
mov rdx, r9
mov rcx, rbx
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x140004470
xor eax, eax
add rsp, 0x60
pop rbx
ret
mov eax, 1
add rsp, 0x60
pop rbx
ret
Function at 0x140004480
Capabilities:
Encode data using xor

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0xa0
mov rax, qword [0x14026e858]
mov ecx, 0x39
lea r9, [rsp + 0x60]
mov qword [rsp + 0x60], rax
mov eax, 0x4636
lea r8, [rsp + 0x6e]
mov dword [rsp + 0x68], 0x3d306c35
sub ecx, r9d
mov word [rsp + 0x6c], ax
mov rax, r9
nop dword [rax]
lea edx, [rcx + rax]
xor byte [rax], dl
add rax, 1
cmp r8, rax
jne 0x1400044c0
mov qword [rsp + 0x70], r9
lea r10, [rsp + 0x30]
mov ecx, 0x39
movzx r9d, word [0x14026e868]
mov rax, qword [0x14026e860]
mov byte [rsp + 0x3a], 0x43
lea r8, [rsp + 0x3b]
sub ecx, r10d
mov word [rsp + 0x38], r9w
mov qword [rsp + 0x30], rax
mov rax, r10
nop word [rax + rax]
lea edx, [rcx + rax]
xor byte [rax], dl
add rax, 1
cmp rax, r8
jne 0x140004510
mov byte [rsp + 0x28], 0x41
mov ecx, 0x39
lea r8, [rsp + 0x29]
mov rax, qword [str.OWXU]
mov qword [rsp + 0x78], r10
lea r10, [rsp + 0x20]
mov qword [rsp + 0x20], rax
sub ecx, r10d
mov rax, r10
nop dword [rax]
lea edx, [rcx + rax]
xor byte [rax], dl
add rax, 1
cmp r8, rax
jne 0x140004550
mov rax, qword [0x14026e878]
mov ecx, 0x39
lea r8, [rsp + 0x5c]
mov dword [rsp + 0x58], 0x44303b32
mov qword [rsp + 0x80], r10
lea r10, [rsp + 0x50]
mov qword [rsp + 0x50], rax
sub ecx, r10d
mov rax, r10
nop
lea edx, [rcx + rax]
xor byte [rax], dl
add rax, 1
cmp r8, rax
jne 0x140004590
mov byte [rsp + 0x4a], 0x43
mov ecx, 0x39
lea r8, [rsp + 0x4b]
mov rax, qword [0x14026e880]
mov qword [rsp + 0x88], r10
mov word [rsp + 0x48], r9w
lea r9, [rsp + 0x40]
mov qword [rsp + 0x40], rax
sub ecx, r9d
mov rax, r9
nop word [rax + rax]
lea edx, [rcx + rax]
xor byte [rax], dl
add rax, 1
cmp r8, rax
jne 0x1400045d8
mov qword [rsp + 0x90], r9
mov rsi, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rbx, [rsp + 0x70]
lea rdi, [rsp + 0x98]
mov rcx, qword [rbx]
call rsi
test rax, rax
jne 0x140004620
add rbx, 8
cmp rdi, rbx
jne 0x140004602
add rsp, 0xa0
pop rbx
pop rsi
pop rdi
ret
mov eax, 1
add rsp, 0xa0
pop rbx
pop rsi
pop rdi
ret
Function at 0x1400046c0
Capabilities:
Enumerate processes

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x190
mov rbx, qword [rcx + 8]
mov rsi, qword [rcx]
mov r8, rbx
lea rbp, [rsp + 0x30]
mov qword [rsp + 0x60], rbx
lea r12, [rsp + 0x20]
mov qword [rsp + 0x20], rbp
mov rax, rbp
mov qword [rsp + 0x28], 0
cmp rbx, 7
ja 0x140004860
xor edx, edx
test rbx, rbx
je 0x140004722
nop dword [rax]
movsx cx, byte [rsi + rdx]
mov word [rax + rdx*2], cx
add rdx, 1
cmp rbx, rdx
jne 0x140004710
xor edx, edx
mov qword [rsp + 0x28], r8
mov ecx, 2
mov word [rax + r8*2], dx
xor edx, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140004830
lea rsi, [rsp + 0x60]
mov rcx, rax
mov dword [rsp + 0x60], 0x130
mov rdx, rsi
call sub.KERNEL32.dll_Process32First
lea rdi, [rsp + 0x40]
lea r13, [rsp + 0x8c]
lea r14, [rsp + 0x50]
jmp 0x140004797
cmp rcx, r14
je 0x14000478c
mov rax, qword [rsp + 0x50]
lea rdx, [rax + rax + 2]
call fcn.14010ab40
mov rdx, rsi
mov rcx, rbx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x140004828
mov rdx, r13
mov rcx, rdi
call fcn.140004630
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
cmp rdx, qword [rsp + 0x48]
jne 0x140004778
mov r8, qword [rsp + 0x20]
test rdx, rdx
je 0x1400047f8
cmp rcx, r8
je 0x1400047f8
test r8, r8
setne r9b
test rcx, rcx
setne al
cmp r9b, al
jne 0x140004778
xor eax, eax
nop
movzx r10d, word [rcx + rax*2]
cmp word [r8 + rax*2], r10w
jne 0x140004778
add rax, 1
cmp rdx, rax
jne 0x1400047e0
nop dword [rax]
mov rcx, rbx
call fcn.140002d10
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x50]
cmp rcx, rax
je 0x14000481e
mov rax, qword [rsp + 0x50]
lea rdx, [rax + rax + 2]
call fcn.14010ab40
mov ebx, 1
jmp 0x140004832
mov rcx, rbx
call fcn.140002d10
xor ebx, ebx
mov rcx, qword [rsp + 0x20]
cmp rcx, rbp
je 0x14000484b
mov rax, qword [rsp + 0x30]
lea rdx, [rax + rax + 2]
call fcn.14010ab40
mov eax, ebx
add rsp, 0x190
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, r12
call fcn.1400f5ca0
mov r8, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], r8
jmp 0x140004705
Function at 0x14001a530
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.140026cb0
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.140026cb0
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 0x14001a5a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14029f0c4]
mov rbx, rcx
test esi, esi
jle 0x14001a6d0
mov rax, qword [0x14029f0c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14001a5eb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14001a675
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14001a5d0
mov rcx, rbx
call fcn.14001b0d0
mov rdi, rax
test rax, rax
je 0x14001a6f2
mov rax, qword [0x14029f0c8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14001b210
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14029f0c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14001a6d7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14001a66e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14001a680
add dword [0x14029f0c4], 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 [0x14029f0c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001a66e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14001a530
nop dword [rax]
xor esi, esi
jmp 0x14001a5f8
mov rax, qword [0x14029f0c8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14001a530
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14001a530
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x14001adc0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp edx, 2
je 0x14001aef0
ja 0x14001ae08
test edx, edx
je 0x14001ae88
mov eax, dword [0x14029f108]
test eax, eax
je 0x14001af70
mov dword [0x14029f108], 1
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp edx, 3
jne 0x14001adf5
mov eax, dword [0x14029f108]
test eax, eax
je 0x14001adf5
lea r12, [0x14029f120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14029f100]
test rbx, rbx
je 0x14001ae74
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 rsi, rsi
je 0x14001af98
test eax, eax
jne 0x14001af98
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14001ae48
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x14001adf5
mov eax, dword [0x14029f108]
test eax, eax
jne 0x14001af08
mov eax, dword [0x14029f108]
cmp eax, 1
jne 0x14001adf5
mov rbx, qword [0x14029f100]
test rbx, rbx
je 0x14001aec1
nop dword [rax]
mov rcx, rbx
mov rbx, qword [rbx + 0x10]
call fcn.140027718
test rbx, rbx
jne 0x14001aeb0
lea rcx, [0x14029f120]
mov qword [0x14029f100], 0
mov dword [0x14029f108], 0
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp 0x14001adf5
call fcn.14001a520
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea r12, [0x14029f120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14029f100]
test rbx, rbx
je 0x14001af5c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word [rax + rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14001af88
test rsi, rsi
je 0x14001af88
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14001af38
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x14001ae92
lea rcx, [0x14029f120]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x14001adeb
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14001af38
jmp 0x14001af5c
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14001ae48
jmp 0x14001ae74

Function at 0x14001b0d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r8, qword [0x140275e90]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x14001b0f0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x14001b0f8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x14001b0f0
movzx eax, word [rdx + 0x14]
sub rcx, r8
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x14001b145
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14001b13c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14001b0f0
add rax, 0x28
cmp rax, r9
jne 0x14001b128
xor eax, eax
ret
Function at 0x14001b150
Capabilities:
Parse pe header

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

Function at 0x14001b210
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140275e90]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14001b22f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14001b238
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x14001b650
Capabilities:
Allocate thread local storage

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [0x14029f108]
mov edi, ecx
mov rsi, rdx
test eax, eax
jne 0x14001ace0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov edx, 0x18
mov ecx, 1
call sub.msvcrt.dll_calloc
mov rbx, rax
test rax, rax
je 0x14001ad2a
mov qword [rax + 8], rsi
lea rsi, [0x14029f120]
mov dword [rax], edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x14029f100]
mov rcx, rsi
mov qword [0x14029f100], rbx
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x14001acd6
or eax, 0xffffffff
jmp 0x14001acd8
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14001b680
mov rdx, rbx
mov ecx, eax
mov dword [rsi], eax
add rsp, 0x28
pop rbx
pop rsi
jmp 0x140027a10
add rsp, 0x28
pop rbx
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
test rdx, rdx
jne 0x140027a20
xor eax, eax
ret
jmp 0x14001acc0

Function at 0x14001b6c0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, esi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x14001b6f0
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14001b708
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x1400ba730
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno_1
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x1400ba778
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x1400ba74a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret