joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400080a0
Capabilities:
Create thread
Resume thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rdi, rcx
mov rsi, rdx
mov rbx, r8
mov rbp, r9
call sym.pop_pthread_mem
mov r12, rax
test rax, rax
je 0x140008309
test rdi, rdi
je 0x1400080da
mov rax, qword [rax + 0x1d8]
mov qword [rdi], rax
mov r13, qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [r12 + 8], rbp
mov dword [r12 + 0x44], 1
mov rbp, qword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [r12 + 0xbc], 0
mov r14, r13
mov qword [r12 + 0x28], 0xffffffffffffffff
mov qword [r12 + 0x10], rbx
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call rbp
mov qword [r12 + 0x30], rax
test rax, rax
jne 0x140008147
add ebx, 1
cmp ebx, 1
je 0x140008250
mov ecx, 0x14
call r14
cmp ebx, 5
jne 0x140008115
mov qword [r12 + 0x38], 0xffffffffffffffff
lea r14, [r12 + 0x68]
mov rcx, r14
call sym.pthread_spin_destroy
cmp eax, 1
je 0x14000834f
cmp qword [r12 + 0x30], 0
mov qword [r12 + 0x68], 0xffffffffffffffff
mov dword [r12], 0xbab1f00d
mov dword [r12 + 0xc0], 0
mov dword [r12 + 0xb8], 0
je 0x1400082f2
xor edx, edx
test rsi, rsi
je 0x1400081bf
mov eax, dword [rsi]
mov edx, dword [rsi + 0x10]
mov dword [r12 + 0x44], eax
test al, 8
jne 0x140008320
mov eax, dword [rsi + 0x18]
mov dword [r12 + 0xc0], eax
lea r8, [sym.pthread_create_wrapper]
mov r9, r12
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov r13, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400082b0
mov eax, dword [r12 + 0xc0]
mov edx, 0xfffffff1
cmp eax, 0xfffffff2
jge 0x140008280
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [r12 + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test byte [r12 + 0x44], 4
jne 0x140008260
mov qword [r12 + 0x28], r13
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
xor ecx, ecx
call r13
jmp 0x140008115
mov qword [r12 + 0x28], 0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000822f
mov edx, 0xfffffffe
cmp eax, 0xffffffff
jl 0x140008205
mov edx, 0xf
cmp eax, 0xe
jg 0x140008205
cmp eax, 2
mov edx, 2
cmovle edx, eax
jmp 0x140008205
mov rcx, qword [r12 + 0x30]
test rcx, rcx
je 0x1400082c0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [r12 + 0x38]
call sym.pthread_mutex_destroy
mov rcx, r14
call sym.pthread_spin_destroy
cmp eax, 1
je 0x14000834f
mov qword [r12 + 0x68], 0xffffffffffffffff
mov qword [r12 + 0x30], 0
mov qword [r12 + 0x28], 0
test rdi, rdi
je 0x1400082fe
mov qword [rdi], 0
cmp qword [r12 + 0x1d0], 0
je 0x140008340
mov eax, 0xb
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov dword [rsp + 0x3c], edx
call sym.__pthread_self_lite
mov edx, dword [rsp + 0x3c]
mov eax, dword [rax + 0xc0]
mov dword [r12 + 0xc0], eax
jmp 0x1400081bf
mov rcx, r12
call sym.push_pthread_mem.part.0
mov eax, 0xb
jmp 0x14000830e
call sym.replace_spin_keys.part.0
nop
nop word cs:[rax + rax]
Function at 0x140008d90
Capabilities:
Print debug messages

Disassembly:
push r12
push rbx
sub rsp, 0x58
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140008db0
add rsp, 0x58
pop rbx
pop r12
ret
lea rdx, [rsp + 0x48]
mov r9d, 0x400
mov r8d, eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rdx
mov ecx, 0x1100
xor edx, edx
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x140008df8
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140008da4
int3
mov rcx, qword [rsp + 0x48]
mov rbx, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rbx
mov rcx, r12
call rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140008de5

Function at 0x140008e20
Capabilities:
Check mutex on windows

Disassembly:
push r12
sub rsp, 0x20
xor edx, edx
xor ecx, ecx
lea r8, [0x1400202c0]
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140008ed8
mov rdx, qword [0x140020200]
lea rcx, [0x140020200]
mov rax, qword [rdx + 8]
test rax, rax
je 0x140008ea8
cmp rdx, rcx
jne 0x140008e8a
mov qword [rdx], rax
cmp rax, rcx
je 0x140008e8f
nop dword [rax]
test rax, rax
je 0x140008eba
mov rdx, qword [rdx]
mov qword [rax], rdx
mov rdx, rax
mov rax, qword [rdx + 8]
cmp rax, rcx
jne 0x140008e78
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
test rax, rax
je 0x140008eba
mov rdx, rax
jmp 0x140008e86
lea rcx, [0x140020300]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x140008ef6
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x20
pop r12
ret
lea rcx, str.failed_to_to_lock_cleanup_mutex_n
call sym.__shmem_get_error
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x20
pop r12
ret
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_DeleteAtom]
jmp 0x140008eba
Function at 0x180004221
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rax, rdx
add rdx, 8
cmp qword [rax], 0
je 0x180004269
cmp qword [rax + 0x38], 0xffffffffffffffff
mov r8, qword [rax + 0x48]
mov r9, qword [rax + 0x50]
mov r10, qword [rax + 0x58]
mov rax, qword [rax + 0x60]
je 0x18000435f
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r10
mov byte [rsp + 0x30], 0
jmp 0x18000436e
mov bl, byte [rax + 0x1a]
mov r8, qword [rax + 8]
mov r10, qword [rax + 0x48]
mov r9, qword [rax + 0x50]
mov sil, byte [rax + 0x18]
xor r11d, r11d
test bl, bl
jne 0x180004394
mov edi, esi
xor dil, 1
mov byte [rax + 0x18], dil
test r8, r8
je 0x1800042ad
cmp r8, r9
jae 0x1800042a7
cmp byte [r10 + r8], 0xbf
jg 0x1800042ad
jmp 0x1800043a4
jne 0x1800043a4
cmp r8, r9
je 0x180004375
mov r14b, byte [r10 + r8]
movzx edi, r14b
test dil, dil
jns 0x18000431b
mov ebp, edi
and ebp, 0x1f
movzx r15d, byte [r10 + r8 + 1]
and r15d, 0x3f
cmp dil, 0xdf
jbe 0x18000430c
movzx edi, byte [r10 + r8 + 2]
shl r15d, 6
and edi, 0x3f
or edi, r15d
cmp r14b, 0xf0
jb 0x180004316
movzx r14d, byte [r10 + r8 + 3]
and ebp, 7
shl ebp, 0x12
shl edi, 6
and r14d, 0x3f
or r14d, edi
or r14d, ebp
mov edi, r14d
jmp 0x18000431b
shl ebp, 6
or ebp, r15d
mov edi, ebp
jmp 0x18000431b
shl ebp, 0xc
or edi, ebp
test sil, sil
jne 0x180004383
cmp edi, 0x110000
je 0x18000437a
mov esi, 1
cmp edi, 0x80
jb 0x180004351
mov esi, 2
cmp edi, 0x800
jb 0x180004351
cmp edi, 0x10000
mov esi, 4
sbb rsi, 0
add r8, rsi
mov qword [rdx], r8
mov sil, 1
jmp 0x18000427f
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r10
mov byte [rsp + 0x30], 1
call fcn.180003206
jmp 0x180004397
test sil, sil
jne 0x180004386
mov byte [rax + 0x1a], 1
xor r11d, r11d
jmp 0x180004394
mov r9, r8
mov qword [rcx + 8], r9
mov qword [rcx + 0x10], r9
mov r11d, 1
mov qword [rcx], r11
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea rax, str._rustc_d18480b84fdbf1efc34f62070951334aa833d761librarycore_src_strpattern.rs
mov qword [rsp + 0x20], rax
mov rcx, r10
mov rdx, r9
call fcn.180038d10
int3
Function at 0x180017740
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
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 0x1800177d0
cmp r11, r10
ja 0x180017846
cmp r10, rdx
ja 0x180017858
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x1800177d2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x1800177b0
jmp 0x180017834
ja 0x1800177da
mov r11, r10
cmp rax, r8
jne 0x180017774
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 0x180017810
mov rdi, r8
sub ecx, edx
jns 0x18001782b
jmp 0x180017836
cmp r8, rsi
je 0x180017867
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x180017836
xor al, 1
cmp rdi, rsi
jne 0x1800177f0
jmp 0x180017836
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.180038a50
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1800387f0
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.180038bc0
int3

Function at 0x18001ee50
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.18000f700
cmp rax, rcx
je 0x18001ee75
cmp rdx, 4
jae 0x18001ee78
xor eax, eax
xor r8d, r8d
jmp 0x18001ef10
xor eax, eax
ret
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x18003b4b0]
movdqa xmm3, xmmword [0x18003b4c0]
pxor xmm1, xmm1
nop dword [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 0x18001eea0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x18001ef27
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x18001ef10
ret
Function at 0x1800264d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
movzx r9d, byte [rdx + 0x38]
movzx eax, byte [rdx + 0x3a]
cmp al, byte [rax + r8*8 - 0x3f6af0bf]
Function at 0x180039950
Capabilities:
Resolve dns

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
mov r14, r8
inc r14
sete bpl
je 0x180039aca
js 0x180039ad6
mov rdi, r9
mov rbx, r8
mov r12, rdx
mov rsi, rcx
movzx eax, byte [0x18004e1d8]
xor ecx, ecx
mov rdx, r14
call fcn.180029780
test rax, rax
je 0x180039adb
mov r15, rax
mov rcx, rax
mov rdx, r12
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
cmp rbx, 0xf
ja 0x1800399d1
test rbx, rbx
je 0x180039a19
xor eax, eax
nop dword [rax + rax]
cmp byte [r12 + rax], 0
je 0x1800399e3
inc rax
cmp rbx, rax
jne 0x1800399c0
jmp 0x180039a19
xor ecx, ecx
mov rdx, r12
mov r8, rbx
call fcn.180017a70
test rax, rax
je 0x180039a19
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
test bpl, bpl
jne 0x180039aba
mov edx, 1
mov rcx, r15
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp fcn.18000bf40
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], rbx
lea rcx, [rsp + 0x30]
call fcn.18000e3d0
mov rbx, rax
mov r14, rdx
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x28]
mov rcx, rax
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x180039a89
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x180039a9e
mov rcx, qword [rdi]
mov rax, qword [rsp + 0x28]
movzx ecx, word [rcx]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov byte [rbx], 0
test r14, r14
je 0x180039aba
mov edx, 1
mov rcx, rbx
call fcn.18000bf40
nop
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, str.library_alloc_src_ffic_str.rs
call fcn.180038bc0
call fcn.18000e2c0
mov ecx, 1
mov rdx, r14
call fcn.180038660
int3
Function at 0x1400226ac
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x14000d8d2
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x14000d8b5
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x14000d8a0

Function at 0x14002dee0
Capabilities:
Parse pe header

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

Function at 0x14003ea48
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14003e844
Function at 0x140048dec
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 0x140048e1c
xor eax, eax
jmp 0x140048edf
mov rbp, rbx
cmp word [rax], si
je 0x140048e41
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140048e28
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140048e24
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.140046a4c
movsxd r14, eax
test eax, eax
jne 0x140048e7f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140048e15
mov rcx, r14
call fcn.140043014
mov rdi, rax
test rax, rax
jne 0x140048e98
xor ecx, ecx
call fcn.140041d64
jmp 0x140048e74
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.140046a4c
test eax, eax
jne 0x140048ec9
mov rcx, rdi
call fcn.140041d64
jmp 0x140048ed3
xor ecx, ecx
call fcn.140041d64
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 0x140048efc
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140048f83
mov rsi, rbx
cmp word [rax], bp
je 0x140048f42
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140048f2c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140048f28
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140043014
mov rdi, rax
test rax, rax
je 0x140048f70
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14002f100
mov rbp, rdi
xor ecx, ecx
call fcn.140041d64
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14004bf04
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140044794
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14004bfa5
cmp ebx, dword [rsp + 0x30]
je 0x14004bf9e
test esi, esi
je 0x14004bf9e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14004bf79
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14004bf86
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14004bf63
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14004bf8a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14004bfa7
mov eax, 1
jmp 0x14004bfa7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14004eb44
Capabilities:
Get file size

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

Function at 0x140051d50
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140051d78
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140051d78
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400c3020
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1400c302d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1400c303d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1400c3025
lea eax, [rcx + 1]
jmp 0x1400c304b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1400c305e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1400c3044
sub eax, 3
jb 0x1400c307e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400c30cd
sar eax, 1
movsxd rbp, eax
jb 0x1400c30b4
jmp 0x1400c308c
add ebx, ebx
jne 0x1400c308a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400c30b4
inc ecx
add ebx, ebx
jne 0x1400c309a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400c30b4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400c30ad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400c309c
add ecx, 2
jmp 0x1400c30b9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1400c2fe2
jmp 0x1400c302d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xfe00
mov dl, 6
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400c3119
cmp rsi, rcx
jae 0x1400c3121
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400c3100
cmp al, 0x8f
ja 0x1400c3100
cmp byte [rsi - 2], 0xf
je 0x1400c3106
sub al, 0xe8
cmp al, 1
ja 0x1400c30ea
cmp rsi, rcx
jae 0x1400c3121
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400c30f0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400c3121
lodsb al, byte [rsi]
jmp 0x1400c3100
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xb7000]
mov eax, dword [rdi]
or eax, eax
je 0x1400c318a
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xc7e0c]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1400c312e
jns 0x1400c3163
movzx rdx, word [rdi]
add rdi, 2
jmp 0x1400c316d
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1400c3184
mov qword [rbx], rax
add rbx, 8
jmp 0x1400c314e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1400c31c4
cmp al, 0xef
ja 0x1400c31b6
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1400c3196
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1400c31a5
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x23f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1400c3218
sub rsp, 0xffffffffffffff80
jmp 0x14000f700
Function at 0x140002ed0
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.14001a340
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.14001a340
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 0x140002f40
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1400210b4]
mov r12, rcx
test ebx, ebx
jle 0x140003070
mov rax, qword [0x1400210b8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x140002f8c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140003013
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x140002f70
mov rcx, r12
call fcn.1400038e0
mov rsi, rax
test rax, rax
je 0x140003092
mov rax, qword [0x1400210b8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.140003a10
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400210b8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140003077
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000300c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140003020
add dword [0x1400210b4], 1
add rsp, 0x50
pop rbx
pop rsi
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 rbx, qword [0x1400210b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000300c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002ed0
nop dword [rax]
xor ebx, ebx
jmp 0x140002f97
mov rax, qword [0x1400210b8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002ed0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140002ed0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003550
Capabilities:
Get thread local storage value

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