joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001bd00
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.14001af00
mov ecx, dword [0x140020478]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001be00
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.14001e240
cmp esi, dword [rbx + 0x48]
jae 0x14001bd80
mov rdi, qword [rbx + 0x50]
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r13
mov byte [rax + rsi], 1
call fcn.14001e280
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r15d, [rsi + 1]
mov rcx, qword [rbx + 0x50]
movsxd r14, r15d
lea rdx, [r14*8]
call sub.msvcrt.dll_realloc
mov rdi, rax
test rax, rax
je 0x14001be0d
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.msvcrt.dll_realloc
mov r14, rax
test rax, rax
je 0x14001be0d
mov eax, dword [rbx + 0x48]
mov edx, r15d
sub edx, eax
lea rcx, [rdi + rax*8]
lea r8, [rdx*8]
xor edx, edx
call sub.msvcrt.dll_memset
mov ecx, dword [rbx + 0x48]
mov r8d, r15d
xor edx, edx
mov rax, rcx
add rcx, r14
sub r8d, eax
call sub.msvcrt.dll_memset
mov qword [rbx + 0x50], rdi
mov qword [rbx + 0x58], r14
mov dword [rbx + 0x48], r15d
jmp 0x14001bd4f
call fcn.14001afb0
mov rbx, rax
jmp 0x14001bd3a
mov rcx, r13
call fcn.14001e280
mov eax, 0xc
jmp 0x14001bd6d

Function at 0x14001be90
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14001af00
mov ecx, dword [0x140020478]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001beb8
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.14001afb0
test rax, rax
jne 0x14001beaa
add rsp, 0x28
ret

Function at 0x14001bf20
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14001af00
mov ecx, dword [0x140020478]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001bf48
add rax, 0x18
add rsp, 0x28
ret
call fcn.14001afb0
test rax, rax
jne 0x14001bf3a
jmp 0x14001bf3e

Function at 0x14001c060
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14002ad88]
test eax, eax
jne 0x14001c078
xor eax, eax
add rsp, 0x28
ret
call fcn.14001af00
mov ecx, dword [0x140020478]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c0a8
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x14001c06e
test byte [rax + 0x40], 3
je 0x14001c06e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x14001c070
call fcn.14001afb0
test rax, rax
jne 0x14001c08e
jmp 0x14001c06e

Function at 0x14001c0c0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.14001af00
mov ecx, dword [0x140020478]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c100
test ebx, ebx
jle 0x14001c0f0
lock add dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
call fcn.14001afb0
test rax, rax
jne 0x14001c0dd
add rsp, 0x20
pop rbx
ret
Function at 0x14001c1f0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14001af00
mov ecx, dword [0x140020478]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001c268
test byte [rbx + 0x40], 0xc
jne 0x14001c21f
mov eax, dword [0x14002ad88]
test eax, eax
jne 0x14001c230
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14001a160
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001c253
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001c253
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001c27c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14001a450
call fcn.14001afb0
mov rbx, rax
test rax, rax
jne 0x14001c20f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001c29a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14001a450
call fcn.14001c110
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14001c320
call fcn.14001d3d0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14001c358
call fcn.14001af00
mov ecx, dword [0x140020478]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001c3b0
test esi, esi
je 0x14001c336
call fcn.14001c1f0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001c390
mov edx, edi
call fcn.14001d480
call fcn.14001c1f0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001af00
mov ecx, dword [0x140020478]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c3a0
call fcn.14001c1f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001c1f0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001af00
mov ecx, dword [0x140020478]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x14001c2f5
call fcn.14001afb0
mov rbx, rax
jmp 0x14001c2f5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001c30e
call fcn.14001afb0
jmp 0x14001c336
call fcn.14001afb0
mov rbx, rax
jmp 0x14001c2f1
Function at 0x14001c2b0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14001af00
mov ecx, dword [0x140020478]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001c268
test byte [rbx + 0x40], 0xc
jne 0x14001c21f
mov eax, dword [0x14002ad88]
test eax, eax
jne 0x14001c230
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14001a160
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001c253
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001c253
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001c27c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14001a450
call fcn.14001afb0
mov rbx, rax
test rax, rax
jne 0x14001c20f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001c29a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14001a450
call fcn.14001c110
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14001c320
call fcn.14001d3d0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14001c358
call fcn.14001af00
mov ecx, dword [0x140020478]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001c3b0
test esi, esi
je 0x14001c336
call fcn.14001c1f0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001c390
mov edx, edi
call fcn.14001d480
call fcn.14001c1f0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001af00
mov ecx, dword [0x140020478]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c3a0
call fcn.14001c1f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001c1f0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001af00
mov ecx, dword [0x140020478]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x14001c2f5
call fcn.14001afb0
mov rbx, rax
jmp 0x14001c2f5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001c30e
call fcn.14001afb0
jmp 0x14001c336
call fcn.14001afb0
mov rbx, rax
jmp 0x14001c2f1

Function at 0x14001c3c0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.14001af00
mov ecx, dword [0x140020478]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001c430
test esi, esi
je 0x14001c410
call fcn.14001c1f0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001c440
mov edx, esi
call fcn.14001d480
call fcn.14001c1f0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14001c1f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001c1f0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14001afb0
mov rbx, rax
jmp 0x14001c3e1
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001c3fa
Function at 0x140001d04
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001d4e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001d4e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001d4e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001d4e
cmp dword [rcx + 0x84], 0xe
jbe 0x140001d4e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001d50
xor al, al
add rsp, 0x28
ret

Function at 0x1400083ec
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400081e8
Function at 0x14000d7a0
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14000d7d0
xor eax, eax
jmp 0x14000d893
mov rbp, rbx
cmp word [rax], si
je 0x14000d7f5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000d7dc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000d7d8
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14000d6c0
movsxd r14, eax
test eax, eax
jne 0x14000d833
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000d7c9
mov rcx, r14
call fcn.140009dec
mov rdi, rax
test rax, rax
jne 0x14000d84c
xor ecx, ecx
call fcn.140009174
jmp 0x14000d828
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14000d6c0
test eax, eax
jne 0x14000d87d
mov rcx, rdi
call fcn.140009174
jmp 0x14000d887
xor ecx, ecx
call fcn.140009174
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140011bbc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140011bd2
mov al, 1
jmp 0x140011c32
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140011be3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140011c30
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000e0c0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140011c30
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140011c30
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140011c30
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140011c32
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140011d64
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, [0x140023590]
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 0x140011dbb
cmp word [rdx], r13w
jne 0x140011dbb
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140011dc0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140011ee5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140011f06
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140011df9
mov rdx, r9
mov word [rbx], cx
jmp 0x140011e20
cmp r9, r8
jae 0x140011e30
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 0x140011dda
jmp 0x140011ee5
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 0x140011eda
cmp dword [rsp + 0x80], esi
je 0x140011eda
lea r8, [0x140023590]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140011eb2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140011e82
mov word [rbx], r13w
jmp 0x140011ee2
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 0x140011e8f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140011ee2
cmp word [rsp + 0x70], r13w
jne 0x140011ebf
cmp rbx, r14
je 0x140011e7c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140013e04
cmp word [rsp + 0x70], r13w
je 0x140011ee5
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, [0x140023590]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140011edf
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140011ee5
Function at 0x1400136d0
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000c790
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001375a
cmp byte [rbp - 0x21], r15b
je 0x140013755
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140013790
call fcn.1400093c4
test eax, eax
jne 0x14001377c
cmp byte [rbp - 0x21], r15b
je 0x140013774
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140013790
cmp byte [rbp - 0x21], r15b
je 0x14001378d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000bd70
test eax, eax
jne 0x140013830
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000c790
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400137cf
cmp byte [rbp - 0x21], r15b
je 0x140013804
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140013804
call fcn.1400093c4
test eax, eax
jne 0x1400137f0
cmp byte [rbp - 0x21], r15b
je 0x1400137e9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140013804
cmp byte [rbp - 0x21], r15b
je 0x140013801
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000bd70
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140013830
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140013833
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140013841
mov rcx, rdi
call fcn.140009174
cmp byte [rbp + 0x3f], r15b
je 0x140013850
mov rcx, qword [rbp + 0x27]
call fcn.140009174
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140015e00
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140015e28
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140015e28
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140003ae0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003b14
cmp word [rcx], 0x5a4d
jne 0x140003b14
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003b14
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003b14
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003a20
test eax, eax
jne 0x140003b30
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140003a90
test rax, rax
je 0x140003b25
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.1400042d9
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x1400041e0
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140004180
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140004634
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x14053a438]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x14053a434]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140004682
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000467a
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140004769
inc ebx
add rax, 0x28
jmp 0x14000465a
mov rcx, r12
call fcn.140004e61
mov rbp, rax
test rax, rax
jne 0x1400046a1
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1400045d0
movsxd rbx, ebx
mov rax, qword [0x14053a438]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.140004f0f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14053a438]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140004703
mov rax, qword [0x14053a438]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400045d0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140004763
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140004763
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 [0x14053a438]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140004763
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400045d0
inc dword [0x14053a434]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140004b90
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x14053a4a0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14053a480]
test rbx, rbx
je 0x140004bdc
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140004bd6
test eax, eax
jne 0x140004bd6
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140004bae
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140004d90
Capabilities:
Parse pe header

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

Function at 0x140004db4
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x140004dee
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140004de5
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140004df0
inc r8d
add rax, 0x28
jmp 0x140004dcc
xor eax, eax
ret

Function at 0x140004e61
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140536530]
mov r8, rcx
mov rcx, r9
call fcn.140004d90
test eax, eax
je 0x140004e8d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140004db4
xor eax, eax
add rsp, 0x28
ret
Function at 0x140003e10
Capabilities:
Enumerate process modules

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x490], rbx
mov rax, qword [0x140089010]
xor rax, rbp
mov qword [rbp + 0x440], rax
mov rdi, rdx
mov dword [rbp], 0x438
mov edx, dword [rcx + 0x10]
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rbp]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
xor r14d, r14d
movabs r15, 0xffffffffffffff0
lea rcx, [rbp + 0x30]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], r14w
jne 0x140003e80
lea edx, [rax + 1]
cmp edx, 0x3fffffff
jg 0x140003efa
cdqe
lea rax, [rax*2 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x140003eab
mov rcx, r15
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.14006b540
sub rsp, rcx
lea rbx, [rsp + 0x40]
test rbx, rbx
je 0x140003efa
lea eax, [rdx + rdx]
mov qword [rsp + 0x38], r14
xor edx, edx
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], eax
lea r8, [rbp + 0x30]
mov r9d, 0xffffffff
mov byte [rbx], r14b
mov qword [rsp + 0x20], rbx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
cmove rbx, r14
jmp 0x140003efd
mov rbx, r14
cmp qword [rdi + 0x18], 0x10
mov rdx, rdi
jb 0x140003f0a
mov rdx, qword [rdi]
sub rdx, rbx
nop dword [rax]
movzx ecx, byte [rbx]
movzx eax, byte [rbx + rdx]
sub ecx, eax
jne 0x140003f22
inc rbx
test eax, eax
jne 0x140003f10
test ecx, ecx
mov rcx, rsi
je 0x140003f82
lea rdx, [rbp]
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x140003e71
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x140003f7e
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x140003f79
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003ff9
mov rcx, r8
call fcn.14006a92c
xor eax, eax
jmp 0x140003fc5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rdi + 0x18]
mov rbx, qword [rbp + 0x28]
cmp rdx, 0x10
jb 0x140003fc2
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x140003fbd
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003ff9
mov rcx, r8
call fcn.14006a92c
mov rax, rbx
mov byte [rdi], r14b
mov qword [rdi + 0x18], 0xf
mov qword [rdi + 0x10], r14
mov rcx, qword [rbp + 0x440]
xor rcx, rbp
call fcn.14006a490
mov rbx, qword [rbp + 0x490]
lea rsp, [rbp + 0x450]
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3