joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140022620
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14002d148]
jne 0x14002263b
rol rcx, 0x10
test cx, 0xffff
jne 0x140022637
ret 0
ror rcx, 0x10
jmp 0x140022e50
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14002dc60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov r11, qword [0x14002dd58]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.ntdll.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140022ed5
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14002dc60]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.ntdll.dll_RtlVirtualUnwind
jmp 0x140022ef7
mov rax, qword [rsp + 0x88]
mov qword [0x14002dd58], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14002dcf8], rax
mov rax, qword [0x14002dd58]
mov qword [0x14002dbd0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14002dce0], rax
mov dword [0x14002dbc0], 0xc0000409
mov dword [0x14002dbc4], 1
mov rax, qword [0x14002d148]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14002d150]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140001b80]
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_UnhandledExceptionFilter]
call qword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x140022660
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x530
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x1400226cb
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x1400226eb
mov rax, qword [rsp + 0x538]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x538]
mov qword [rsp + 0xf8], rax
lea rcx, [0x140001b40]
call qword [sym.imp.API_MS_Win_Core_Debug_L1_1_0.dll_OutputDebugStringA]
add rsp, 0x530
pop rbx
ret

Function at 0x140022cec
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x140022d39
cmp rcx, 0xffffffffffffffff
je 0x140022d39
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140022d31
cmp dword [rcx + 0x3c], edx
jl 0x140022d31
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140022d31
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140022d39
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140005bf0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rax, rdx
mov rsi, qword [rbp + 0x70]
mov rdi, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x60]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x140005c70
cmp r11, r10
ja 0x140005ce7
cmp r10, rdx
ja 0x140005cf9
add r11, r9
xor r15d, r15d
nop dword [rax + rax]
cmp r14, r15
je 0x140005c72
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140005c50
jmp 0x140005cd4
ja 0x140005c7a
mov r11, r10
cmp rax, r8
jne 0x140005c1e
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x140005cb0
mov rdi, r8
sub ecx, edx
jns 0x140005ccb
jmp 0x140005cd6
cmp r8, rsi
je 0x140005d08
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x140005cd6
xor al, 1
cmp rdi, rsi
jne 0x140005c90
jmp 0x140005cd6
sub eax, eax
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140004df0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140003a80
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.140004e60
int3
Function at 0x14000c5b0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsp
nop
pop rbp
nop
push rdx
pop rax
sub rdx, rcx
cmp rdx, 0x20
jae 0x14000c5d5
cmp rax, rcx
je 0x14000c5db
cmp rdx, 4
jae 0x14000c5e2
xor eax, eax
xor r8d, r8d
jmp 0x14000c680
pop rbp
jmp fcn.140003610
sub eax, eax
jmp 0x14000c697
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x1400353f0]
movdqa xmm3, xmmword [0x140035400]
pxor xmm1, xmm1
nop word cs:[rax + rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x14000c610
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14000c697
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14000c680
pop rbp
ret
Function at 0x14000d970
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov r10, qword [rcx]
or r10, r10
je 0x14000d9f4
mov r11, qword [rcx + 8]
mov r8, qword [rcx + 0x10]
cmp r8, r11
jae 0x14000d9f4
movzx eax, byte [r10 + r8]
cmp eax, 0x49
mov rbx, rcx
je 0x14000da0d
cmp eax, 0x42
jne 0x14000d9f4
lea rsi, [r8 + 1]
mov qword [rcx + 0x10], rsi
mov r9b, 1
cmp rsi, r11
jae 0x14000db3d
cmp byte [r10 + rsi], 0x5f
jne 0x14000dacc
lea rax, [r8 + 2]
mov qword [rcx + 0x10], rax
xor eax, eax
cmp rax, r8
jae 0x14000db3d
mov edx, dword [rcx + 0x18]
inc edx
cmp edx, 0x1f4
jbe 0x14000db97
mov dil, 1
sub r9d, r9d
jmp 0x14000db3f
sub edx, edx
call fcn.140009080
mov esi, eax
add sil, sil
mov eax, esi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
inc r8
mov qword [rcx + 0x10], r8
xor edx, edx
call fcn.140009080
test al, al
jne 0x14000db7d
push rbx
nop
pop rdx
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14000da4c
lea rdx, [0x14087e1fb]
mov r8d, 1
call fcn.140003af0
push rbx
pop rdx
nop
test al, al
jne 0x14000db7d
mov rax, qword [rdx]
mov sil, 1
or rax, rax
je 0x14000da00
xor r14d, r14d
lea rdi, [0x14087e551]
nop word cs:[rax + rax]
mov rcx, qword [rdx + 0x10]
cmp rcx, qword [rdx + 8]
jae 0x14000da84
cmp byte [rax + rcx], 0x45
je 0x14000dbd0
sub r14, 1
jb 0x14000daac
mov rcx, qword [rdx + 0x20]
or rcx, rcx
je 0x14000daac
mov r8d, 2
nop
push rdi
pop rdx
call fcn.140003af0
push rbx
pop rdx
nop
test al, al
jne 0x14000db7d
mov rcx, rdx
call fcn.14000a910
test al, al
jne 0x14000db7d
nop
push rbx
pop rdx
mov rax, qword [rbx]
or rax, rax
jne 0x14000da70
jmp 0x14000da00
sub eax, eax
mov r14d, 0x3e
nop word cs:[rax + rax]
movzx edx, byte [r10 + rsi]
cmp dl, 0x5f
je 0x14000db2d
lea edi, [rdx - 0x30]
cmp dil, 0xa
jb 0x14000db0f
lea edi, [rdx - 0x61]
cmp dil, 0x1a
jae 0x14000db01
add dl, 0xa9
jmp 0x14000db0d
lea edi, [rdx - 0x41]
cmp dil, 0x1a
jae 0x14000db3d
add dl, 0xe3
mov edi, edx
inc rsi
mov qword [rcx + 0x10], rsi
mul r14
jo 0x14000db3d
movzx edx, dil
sub edi, edi
add rax, rdx
jb 0x14000db3f
cmp rsi, r11
jb 0x14000dae0
jmp 0x14000db3f
inc rsi
mov qword [rcx + 0x10], rsi
inc rax
jne 0x14000d9cf
xor edi, edi
mov rax, qword [rcx + 0x20]
or rax, rax
je 0x14000db85
mov ecx, r9d
xor cl, 1
movzx ecx, cl
lea r8, [rcx + rcx*8]
add r8, 0x10
lea rcx, str.invalid_syntaxrecursion_limit_reached_for_______::closureshim_as__mut_const___dyn___unsafe_extern__
lea rdx, [0x14087e530]
test r9b, r9b
cmovne rdx, rcx
mov rcx, rax
call fcn.140003af0
mov rcx, rbx
test al, al
je 0x14000db85
mov sil, 2
jmp 0x14000da00
mov qword [rcx], 0
mov byte [rcx + 8], dil
xor esi, esi
jmp 0x14000da00
cmp qword [rcx + 0x20], 0
je 0x14000db90
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
movaps xmmword [rbp - 0x10], xmm1
movaps xmmword [rbp - 0x20], xmm0
mov qword [rcx + 0x10], rax
mov dword [rcx + 0x18], edx
push rcx
nop
pop rsi
call fcn.14000d970
movaps xmm0, xmmword [rbp - 0x20]
movaps xmm1, xmmword [rbp - 0x10]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14000da02
inc rcx
mov qword [rdx + 0x10], rcx
jmp 0x14000da00
Function at 0x14000faf0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
push rcx
nop
pop rsi
cmp qword [rcx], 0
je 0x14000fb85
mov rax, qword [0x140889040]
mov dword [rbp], 0
lea rbx, [rsi + 0x10]
mov r8, rbp
nop
push rbx
pop rcx
xor edx, edx
sub r9d, r9d
call sub.kernel32.dll_InitOnceBeginInitialize
mov dword [rbp - 4], eax
cmp eax, 1
jne 0x14000fbc4
cmp dword [rbp], 0
je 0x14000fba8
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x14000fbd9
mov edi, eax
mov rax, qword [0x1408870e0]
nop word cs:[rax + rax]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1408870e0], rsi
jne 0x14000fb60
mov eax, edi
inc eax
mov dword [rsi + 0x18], eax
nop
push rbx
pop rcx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x14000fbb9
call sub.kernel32.dll_TlsAlloc
mov dword [rbp + 4], eax
cmp eax, 0xffffffff
je 0x14000fc1b
mov ecx, eax
inc ecx
sub eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x14000fbad
mov edi, dword [rbp + 4]
jmp 0x14000fbb9
mov edi, dword [rsi + 0x18]
jmp 0x14000fbb7
mov edi, eax
mov ecx, dword [rbp + 4]
call sub.kernel32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov qword [rbp - 0x38], 0
lea rcx, [rbp - 4]
lea rdx, [rbp - 0x38]
call fcn.140010a00
nop
push rbx
pop rcx
mov edx, 4
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
mov qword [rbp - 0x28], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rdx, str.library_std_src_syspalwindows_thread_local_key.rs
lea rcx, [rbp - 0x38]
call fcn.140003100
lea rax, str.out_of_TLS_indexes
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
mov qword [rbp - 0x28], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 4]
lea rdx, [rbp - 0x38]
call fcn.140010a50
int3
Function at 0x1400119d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov ecx, dword [0x1400340a8]
test ecx, ecx
je 0x140011aa2
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x140011a01
add rax, 8
jmp 0x140011a99
je 0x140011a97
movzx eax, byte [0x140887030]
mov ecx, 0x10
call fcn.14002e370
test rax, rax
je 0x140011ad5
push rax
pop rbx
nop
push rax
pop rsi
nop
lea rax, [0x140034090]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1400340a8]
test ecx, ecx
je 0x140011ab5
dec ecx
call sub.kernel32.dll_TlsGetValue
push rax
nop
pop rdi
mov ecx, dword [0x1400340a8]
test ecx, ecx
je 0x140011ac5
dec ecx
add rbx, 8
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
or rdi, rdi
je 0x140011a92
mov rax, qword [rdi + 8]
test rax, rax
je 0x140011a85
lock dec qword [rax]
jne 0x140011a85
push rdi
nop
pop rcx
add rcx, 8
call fcn.140011300
mov edx, 8
nop
push rdi
pop rcx
call fcn.140002550
push rbx
nop
pop rax
jmp 0x140011a99
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x140034090]
call fcn.14000faf0
mov ecx, eax
jmp 0x1400119ed
lea rcx, [0x140034090]
call fcn.14000faf0
mov ecx, eax
jmp 0x140011a45
lea rcx, [0x140034090]
call fcn.14000faf0
mov ecx, eax
jmp 0x140011a59
mov ecx, 8
mov edx, 0x10
call fcn.140002940
int3

Function at 0x140011f70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov ecx, dword [0x140034088]
or ecx, ecx
je 0x14001201c
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x140011f9e
add rax, 8
jmp 0x140012013
je 0x140012011
movzx eax, byte [0x140887030]
mov ecx, 0x10
call fcn.14002e370
or rax, rax
je 0x14001204f
mov rbx, rax
push rax
pop rsi
nop
lea rax, [0x140034070]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x140034088]
or ecx, ecx
je 0x14001202f
dec ecx
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x140034088]
test ecx, ecx
je 0x14001203f
dec ecx
add rbx, 8
nop
push rsi
pop rdx
call sub.kernel32.dll_TlsSetValue
or rdi, rdi
je 0x14001200c
mov edx, 8
push rdi
nop
pop rcx
call fcn.140002550
push rbx
nop
pop rax
jmp 0x140012013
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x140034070]
call fcn.14000faf0
mov ecx, eax
jmp 0x140011f8d
lea rcx, [0x140034070]
call fcn.14000faf0
mov ecx, eax
jmp 0x140011fda
lea rcx, [0x140034070]
call fcn.14000faf0
mov ecx, eax
jmp 0x140011fee
mov ecx, 8
mov edx, 0x10
call fcn.140002940
int3
Function at 0x140012430
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov ecx, dword [0x140034068]
test ecx, ecx
je 0x1400124e4
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x14001245e
add rax, 8
jmp 0x1400124db
je 0x1400124d9
movzx eax, byte [0x140887030]
mov ecx, 0x18
call fcn.14002e370
or rax, rax
je 0x140012517
nop
push rax
pop rbx
push rax
pop rsi
nop
lea rax, [0x140034050]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov byte [rsi + 0x10], 0
mov ecx, dword [0x140034068]
test ecx, ecx
je 0x1400124f7
dec ecx
call sub.kernel32.dll_TlsGetValue
nop
push rax
pop rdi
mov ecx, dword [0x140034068]
test ecx, ecx
je 0x140012507
dec ecx
add rbx, 8
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x1400124d4
mov edx, 8
push rdi
pop rcx
nop
call fcn.140002550
mov rax, rbx
jmp 0x1400124db
sub eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x140034050]
call fcn.14000faf0
mov ecx, eax
jmp 0x14001244d
lea rcx, [0x140034050]
call fcn.14000faf0
mov ecx, eax
jmp 0x1400124a2
lea rcx, [0x140034050]
call fcn.14000faf0
mov ecx, eax
jmp 0x1400124b6
mov ecx, 8
mov edx, 0x18
call fcn.140002940
int3

Function at 0x140014220
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
sub byte [rax - 0x73], cl
insb byte [rdi], dx
and al, 0x20
Function at 0x140032f10
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 fcn.140033d20
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.140033d20
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x140032f80
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x140887174]
mov r12, rcx
push rdx
nop
pop rsi
mov rbx, r8
or edi, edi
jle 0x140033130
mov rax, qword [0x140887178]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x140032fcc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140033057
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x140032fb0
mov rcx, r12
call fcn.140033a30
push rax
nop
pop rbp
test rax, rax
je 0x14003318d
mov rax, qword [0x140887178]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.140033b60
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x140887178]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140033172
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140033050
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400330e0
add dword [0x140887174], 1
cmp ebx, 8
jae 0x140033088
test bl, 4
jne 0x140033140
test ebx, ebx
je 0x140033079
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x140033160
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 0x140033079
and ebx, 0xfffffff8
sub eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x1400330ba
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 [0x140887178]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
or eax, eax
jne 0x140033050
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140032f10
sub edi, edi
jmp 0x140032fd7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x140033079
push rbx
pop rbx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x140033079
mov rax, qword [0x140887178]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.140032f10
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140032f10
nop
nop dword [rax]
Function at 0x1400336a0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1408871e0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1408871c0]
test rbx, rbx
je 0x1400336f4
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 0x1400336eb
or r12, r12
je 0x1400336eb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
or rbx, rbx
jne 0x1400336d0
lea rcx, [0x1408871e0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140033a30
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x140881340]
sub r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x140033aa9
mov rcx, r10
call fcn.140033900
or eax, eax
je 0x140033aa9
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]
or eax, eax
je 0x140033aa6
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 0x140033a9d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x140033aa9
add r8, 0x28
cmp r8, r9
jne 0x140033a88
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x140006828
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 0x140006856
xor eax, eax
jmp 0x14000693c
cmp qword [rcx + 0x68], 0
je 0x140006867
call fcn.140006958
jmp 0x14000693c
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000687e
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140006880
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400068b2
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140020830
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 0x140006936
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x1400068e9
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 0x140006912
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14000edf0
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140006936
cmp rsi, rbx
ja 0x1400068f0
test rsi, rsi
je 0x140006936
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14000edf0
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 0x1400088d8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [0x1400231a8]
test rax, rax
je 0x140008922
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140008922
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140008922
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140008922
cmp dword [rcx + 0x84], 0xe
jbe 0x140008922
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140008924
xor al, al
add rsp, 0x28
ret
Function at 0x14000d590
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000d5ff
xor ecx, ecx
call qword [0x1400231a8]
test rax, rax
je 0x14000d5ff
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000d5ff
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000d5ff
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000d5ff
cmp dword [rcx + 0x84], 0xe
jbe 0x14000d5ff
cmp dword [rcx + 0xf8], 0
je 0x14000d5ff
mov ecx, ebx
call fcn.14000d6a4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000d498
nop
cmp dword [rbp + 0x20], 0
jne 0x14000d660
call fcn.140013f30
cmp eax, 1
jne 0x14000d650
xor dl, dl
jmp 0x14000d65a
call fcn.140013efc
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x14000d66b
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000d674
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000d590

Function at 0x14000d778
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000d5ff
xor ecx, ecx
call qword [0x1400231a8]
test rax, rax
je 0x14000d5ff
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000d5ff
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000d5ff
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000d5ff
cmp dword [rcx + 0x84], 0xe
jbe 0x14000d5ff
cmp dword [rcx + 0xf8], 0
je 0x14000d5ff
mov ecx, ebx
call fcn.14000d6a4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000d498
nop
cmp dword [rbp + 0x20], 0
jne 0x14000d660
call fcn.140013f30
cmp eax, 1
jne 0x14000d650
xor dl, dl
jmp 0x14000d65a
call fcn.140013efc
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x14000d66b
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000d674
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000d590

Function at 0x140020500
Capabilities:
Parse pe header

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