joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140211f50
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x58
mov qword [rsp + 0x48], rcx
xor eax, eax
cmp rcx, 0
mov byte [rsp + 0x57], al
je 0x14021215e
mov eax, dword [0x14025e7b8]
mov ecx, dword [0x14025e7bc]
xor ecx, 0xfdbd66e7
imul eax, ecx
imul eax, eax, 0x6edfb174
mov ecx, eax
and ecx, 0x808cea74
shl ecx, 1
add eax, 0x808cea74
sub eax, ecx
and eax, 0x749b620b
mov ecx, 0x9ceb6fe0
xor ecx, 0x79db414
cmp eax, ecx
ja 0x14021216c
mov rcx, qword [rsp + 0x48]
mov eax, dword [0x14025e7c0]
mov r8d, dword [0x14025e7c4]
xor edx, edx
sub edx, r8d
sub eax, edx
mov r9d, 0x3da9bacb
xor r9d, 0x559429a9
mov edx, 0xecee188
xor edx, 0xf1311e77
xor r9d, edx
mov r8d, eax
and r8d, r9d
mov edx, eax
or edx, r9d
mov r9d, 0xcfedb57a
xor r9d, 0x30124a85
xor edx, r9d
imul edx, r8d
mov r8d, eax
and r8d, 0x683d9362
mov r9d, 0x73f7733e
xor r9d, 0x1bcae05c
or eax, r9d
imul eax, r8d
add eax, edx
mov r8d, 0xc61d6b3a
xor edx, edx
div r8d
mov r8d, 0xcd4d93d3
xor r8d, 0x822c77f1
xor edx, edx
div r8d
movabs rdx, 0xbcf467d71f290d55
movabs r8, 0x15e5a8038dcab83f
xor rdx, r8
sub rcx, rdx
movabs rdx, 0x87570f3fa55fb1fa
movabs r8, 0x78a8f0c05aa04e0a
xor rdx, r8
add rcx, rdx
movabs rdx, 0x1accf1f8e9ed9151
movabs r8, 0xb3dd3e2c7b0e243b
xor rdx, r8
add rcx, rdx
mov qword [rsp + 0x30], rcx
mov rcx, qword [rcx]
mov qword [rsp + 0x38], rcx
cmp rcx, 0x10
setb cl
mov byte [rsp + 0x47], cl
cmp eax, 0xa940c5d5
je 0x140211fae
mov cl, byte [rsp + 0x47]
mov al, 1
test cl, 1
mov byte [rsp + 0x57], al
jne 0x14021215e
jmp 0x1402120c7
mov r8, qword [rsp + 0x38]
movabs rcx, 0xa24dddc39b71620
movabs rax, 0xf5db2223c648e9d0
xor rcx, rax
mov rax, r8
add rax, rcx
mov qword [rsp + 0x28], rax
mov rdx, rax
xor rdx, 0xffffffffffffffff
mov rcx, r8
and rcx, rdx
xor r8, 0xffffffffffffffff
mov rdx, rax
and rdx, r8
or rcx, rdx
cmp rcx, 0
setl cl
movabs rdx, 0x5e6bb038bf5f8d4d
movabs r8, 0xa1944fc740a072b2
xor rdx, r8
cmp rax, rdx
setg al
and al, cl
test al, 1
jne 0x14021213b
jmp 0x14021214b
call fcn.140007e9d
xor eax, eax
mov byte [rsp + 0x57], al
jmp 0x14021215e
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
mov qword [rax], rcx
xor eax, eax
mov byte [rsp + 0x57], al
mov al, byte [rsp + 0x57]
and al, 1
movzx eax, al
add rsp, 0x58
ret
out 0xc7, eax
scasd eax, dword [rdi]
cmpsd dword [rsi], dword [rdi]
jmp 0x140211fae
Function at 0x14021ba20
Capabilities:
Encode data using xor

Disassembly:
push rbp
sub rsp, 0xd0
lea rbp, [rsp + 0x80]
mov qword [rbp - 0x38], r8
mov qword [rbp - 0x30], rdx
mov qword [rbp - 0x28], rcx
Function at 0x140234640
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x58
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rcx
call fcn.140241230
mov rdx, qword [rsp + 0x40]
xor eax, eax
test rdx, rdx
cmovg rax, rdx
mov qword [rsp + 0x48], rax
xor eax, eax
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov eax, dword [0x14025f4e8]
mov r8d, dword [0x14025f4ec]
mov r9d, r8d
xor r9d, 0xffffffff
mov edx, eax
and edx, r9d
mov ecx, eax
or ecx, r9d
mov r9d, 0x1e1ab49d
xor r9d, 0xe1e54b62
xor ecx, r9d
imul ecx, edx
mov edx, eax
and edx, r8d
or eax, r8d
imul eax, edx
add eax, ecx
sub eax, 0xa97ec23e
mov ecx, 0xfdf067dc
xor ecx, 0xad500915
add eax, ecx
mov ecx, 0x3ab640f8
xor ecx, 0x93c882c6
add eax, ecx
and eax, 0x91c9336
mov r8d, 0xffffffff
xor r8d, 0x8f9b7ee
mov edx, eax
and edx, r8d
mov ecx, eax
or ecx, r8d
xor ecx, 0xffffffff
imul ecx, edx
mov r8d, 0x343c43a9
xor r8d, 0x3cc5f447
mov edx, eax
and edx, r8d
mov r8d, 0x2c156816
xor r8d, 0x24ecdff8
or eax, r8d
imul eax, edx
add eax, ecx
cmp eax, 0x1e92514f
jb 0x1402347b7
mov rcx, qword [rsp + 0x30]
mov eax, dword [0x14025f4f0]
xor eax, 0x2bf65b09
sub eax, dword [0x14025f4f4]
sub eax, 0x6b42b87f
mov r8d, 0xa3d4b893
xor edx, edx
div r8d
mov rdx, qword [rsp + 0x48]
xor r8d, r8d
sub r8d, eax
xor eax, eax
sub eax, 0xb793621a
add r8d, eax
mov eax, 0xe4c81c27
xor eax, 0xe4c81c27
sub eax, r8d
cmp rcx, rdx
sete cl
mov byte [rsp + 0x2f], cl
cmp eax, 0xc129a010
je 0x140234728
mov al, byte [rsp + 0x2f]
test al, 1
jne 0x1402347b2
jmp 0x140234796
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov byte [rcx + rax], 0
add rax, 1
mov qword [rsp + 0x50], rax
jmp 0x14023466d
add rsp, 0x58
ret
in eax, 0xe7
and al, 0xee
jmp 0x140234728
Function at 0x14023c670
Capabilities:
Authenticate hmac

Disassembly:
push rbp
push rsi
sub rsp, 0x848
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x2f0], rcx
mov eax, 0x10
mov qword [rbp + 0x418], rax
call fcn.14024f5c0
sub rsp, rax
mov rax, qword [rbp + 0x418]
mov rcx, rsp
mov qword [rbp + 0x2f8], rcx
Function at 0x140243d60
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov rax, qword gs:[0x60]
movzx rax, byte [rax + 2]
ret
Function at 0x14024d480
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x38
mov ecx, dword [str.6k]
mov r8d, dword [0x14025fc4c]
mov eax, 0x6956821c
xor eax, 0x96a97de3
mov edx, r8d
xor edx, eax
mov eax, ecx
and eax, edx
mov edx, ecx
xor edx, r8d
add ecx, edx
sub ecx, eax
mov edx, 0xffffffff
xor edx, 0xfd2797b8
mov eax, ecx
xor eax, edx
and eax, ecx
mov r8d, 0xffffffff
xor r8d, 0xa8f2ec52
mov edx, eax
and edx, r8d
mov ecx, eax
or ecx, r8d
xor ecx, 0xffffffff
imul ecx, edx
mov edx, eax
and edx, 0xa8f2ec52
or eax, 0xa8f2ec52
imul eax, edx
add eax, ecx
mov ecx, 0x3eec6723
xor ecx, 0x4b043826
and ecx, eax
mov edx, 0xc2f71bce
xor edx, 0x3d08e431
xor ecx, edx
mov edx, 0x1f914256
xor edx, 0x6a791d53
add eax, edx
add eax, 1
add eax, ecx
mov ecx, 0x8d7428f3
xor ecx, 0xcb9a6580
cmp eax, ecx
jbe 0x14024d5e1
mov eax, dword [0x14025fc50]
mov ecx, dword [0x14025fc54]
xor ecx, 0xbc6df928
imul eax, ecx
mov ecx, 0xdf456c83
xor ecx, 0xdf456c83
mov edx, 0x3a86f09d
xor edx, 0xb8183c3f
sub ecx, edx
add eax, ecx
mov ecx, 0x91854fa6
xor edx, edx
div ecx
mov ecx, 0x5295ab36
xor ecx, 0xad6a54c9
mov edx, eax
xor edx, ecx
and edx, 0xf8bc601e
mov r8d, 0xa1a11e11
xor r8d, 0x591d7e0f
mov ecx, 0x76f29f6f
xor ecx, 0x890d6090
xor r8d, ecx
mov ecx, eax
and ecx, r8d
imul ecx, edx
mov edx, eax
and edx, 0xf8bc601e
or eax, 0xf8bc601e
imul eax, edx
add eax, ecx
mov dword [rsp + 0x2c], eax
mov rax, qword [0x140269990]
mov ecx, dword [rax]
call fcn.140007b33
mov rcx, rax
mov eax, dword [rsp + 0x2c]
mov qword [rsp + 0x30], rcx
cmp eax, 0x55eab53d
jb 0x14024d52c
mov rax, qword [rsp + 0x30]
add rsp, 0x38
ret
cmp al, 0x1e
test dword [rbx], 0xffff42e9
dec dword [rax - 0x7d]
sub rsp, 0x48
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rcx
call fcn.14024d480
mov rdx, qword [rsp + 0x30]
xor eax, eax
test rdx, rdx
cmovg rax, rdx
mov qword [rsp + 0x38], rax
xor eax, eax
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
cmp rax, rcx
je 0x14024d661
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov byte [rcx + rax], 0
movabs rcx, 0x9315de15921d7a40
movabs rdx, 0x9315de15921d7a41
xor rcx, rdx
add rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x14024d617
add rsp, 0x48
ret
Function at 0x14024d77f
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
sub rsp, 0x48
mov eax, dword [0x14025c398]
mov ecx, dword [0x14025c39c]
mov edx, 0x3638330
xor edx, 0x84561c9c
xor ecx, edx
xor edx, edx
div ecx
mov ecx, eax
mov eax, 0x3168ffeb
xor eax, 0x31ed28f3
sub ecx, eax
mov edx, 0x69fe0808
xor edx, 0x9c6b459f
mov eax, ecx
and eax, edx
shl eax, 1
add ecx, 0xf5954d97
sub ecx, eax
mov eax, ecx
xor eax, 0xffffffff
mov edx, ecx
xor edx, 0xffffffff
and eax, edx
mov edx, 0xffffffff
xor edx, 0x4d8d73cb
mov r8d, 0xffffffff
xor r8d, 0x4d8d73cb
and edx, r8d
or eax, edx
xor eax, 0xffffffff
or ecx, 0x4d8d73cb
xor ecx, 0xffffffff
or eax, ecx
xor eax, 0xffffffff
cmp eax, 0xea3d4a3a
ja 0x1401bd2c6
mov eax, dword [0x14025c3a0]
mov ecx, 0x45f0b295
xor ecx, 0xffeb1e73
xor eax, ecx
mov ecx, dword [0x14025c3a4]
mov edx, 0xab6f57be
xor edx, 0xc48ee0b1
xor ecx, edx
and eax, ecx
mov edx, 0x66f07fdf
xor edx, 0x990f8020
mov ecx, eax
xor ecx, edx
and ecx, 0x82b2a581
mov edx, 0xffffffff
xor edx, 0x82b2a581
and eax, edx
sub eax, ecx
mov ecx, 0x57627977
xor ecx, 0x2db741e1
add eax, ecx
mov ecx, 0xbce21204
xor ecx, 0xbce21204
sub ecx, eax
xor eax, eax
sub eax, 0x71f46c60
add ecx, eax
xor eax, eax
sub eax, ecx
mov dword [rsp + 0x34], eax
call fcn.1401bd2d0
mov qword [rsp + 0x28], rax
mov ecx, 0x20
call fcn.140051cdd
mov rcx, qword [rsp + 0x28]
mov rdx, rax
mov eax, dword [rsp + 0x34]
mov qword [rsp + 0x38], rdx
cmp byte [rcx + 0x50], 0
sete cl
mov byte [rsp + 0x47], cl
cmp eax, 0x2fb8a424
jbe 0x1401bd2c6
mov al, byte [rsp + 0x47]
test al, 1
jne 0x1401bd2b1
jmp 0x1401bd2bd
mov rax, qword [rsp + 0x38]
mov qword [0x1402dcfb0], rax
add rsp, 0x48
jmp fcn.140037d85
push r11
invalid
sub rsp, 0x28
call fcn.140065780
call fcn.140065c46
call fcn.140067040
call fcn.14006c3fc
call fcn.1400a2150
call fcn.1400aad97
call fcn.1400dcb87
call fcn.140130e15
call fcn.140131f02
call fcn.140143ebe
call fcn.140144c40
call fcn.14015b1e0
call fcn.1401a67d0
nop
add rsp, 0x28
jmp 0x1401bd160
sub rsp, 0x28
call fcn.140003025
call fcn.140003320
call fcn.140004ea0
call fcn.140038963
mov rax, qword [sym.imp.KERNEL32.dll_TlsAlloc]
call rax
mov ecx, eax
mov rax, qword [0x140269990]
mov dword [rax], ecx
mov rdx, qword [0x1402699b0]
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
call fcn.140038942
call fcn.1400a4bf4
call fcn.1400a4c7c
call fcn.1400a4da0
call fcn.1400bb960
call fcn.140143eec
call fcn.140243ee0
call fcn.140246580
nop
add rsp, 0x28
jmp 0x14024d730
Function at 0x14024f110
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14024f138
mov eax, 0
jmp 0x14024f186
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14024f161
mov eax, 0
jmp 0x14024f186
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14024f181
mov eax, 0
jmp 0x14024f186
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14024f18c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14024f20a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14024f201
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14024f201
mov rax, qword [rbp - 8]
jmp 0x14024f21f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14024f1d4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1414f483b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1414e87c0]
jne 0x1414f239e
rol rcx, 0x10
test cx, 0xffff
jne 0x1414f239a
repz ret
ror rcx, 0x10
jmp 0x1414f4794
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1414ec5e0]
call qword [sym.imp.kernel32.dll_RtlCaptureContext]
mov rax, qword [0x1414ec6d8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.kernel32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1414f4819
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, [0x1414ec5e0]
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.kernel32.dll_RtlVirtualUnwind
jmp 0x1414f483b
mov rax, qword [rsp + 0x88]
mov qword [0x1414ec6d8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1414ec678], rax
mov rax, qword [0x1414ec6d8]
mov qword [0x1414ec550], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1414ec660], rax
mov dword [0x1414ec540], 0xc0000409
mov dword [0x1414ec544], 1
mov rax, qword [0x1414e87c0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1414e87c8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x1414ec5d8], eax
mov ecx, 1
call fcn.1414f23a4
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1414eb0e0]
call qword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x1414ec5d8], 0
jne 0x1414f48c2
mov ecx, 1
call fcn.1414f23a4
call qword [sym.imp.kernel32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.kernel32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x1414f495c
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x1414e87c0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.1414efa5c
xor ebx, ebx
cmp qword [0x1414ecab8], rbx
mov rdi, rax
jne 0x1414f4a6f
lea rcx, str.USER32.DLL
call qword [sym.imp.kernel32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x1414f4b46
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x1414f4b46
mov rcx, rax
call qword [sym.imp.kernel32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1414ecab8], rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.kernel32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1414ecac0], rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.kernel32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x1414ecac8], rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.kernel32.dll_EncodePointer]
mov r11, rax
mov qword [0x1414ecad8], rax
test rax, rax
je 0x1414f4a66
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.kernel32.dll_EncodePointer]
mov qword [0x1414ecad0], rax
jmp 0x1414f4a76
mov rax, qword [0x1414ecad0]
jmp 0x1414f4a7d
mov rax, qword [0x1414ecad0]
mov r11, qword [0x1414ecad8]
cmp rax, rdi
je 0x1414f4ae4
cmp r11, rdi
je 0x1414f4ae4
mov rcx, rax
call qword [sym.imp.kernel32.dll_DecodePointer]
mov rcx, qword [0x1414ecad8]
mov rsi, rax
call qword [sym.imp.kernel32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x1414f4ae4
test rax, rax
je 0x1414f4ae4
call rsi
test rax, rax
je 0x1414f4ade
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1414f4ade
test byte [rsp + 0x40], 1
jne 0x1414f4ae4
bts ebp, 0x15
jmp 0x1414f4b24
mov rcx, qword [0x1414ecac0]
cmp rcx, rdi
je 0x1414f4b24
call qword [sym.imp.kernel32.dll_DecodePointer]
test rax, rax
je 0x1414f4b24
call rax
mov rbx, rax
test rax, rax
je 0x1414f4b24
mov rcx, qword [0x1414ecac8]
cmp rcx, rdi
je 0x1414f4b24
call qword [sym.imp.kernel32.dll_DecodePointer]
test rax, rax
je 0x1414f4b24
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1414ecab8]
call qword [sym.imp.kernel32.dll_DecodePointer]
test rax, rax
je 0x1414f4b46
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x1414f4b48
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1414f2384
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140002860
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140002882
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x1400028fc
mov rdi, r14
mov rcx, rbx
call fcn.140003960
test rax, rax
jle 0x1400028d4
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.1400225a0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1400028ec
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x1400028f4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140002896
sub r14, rdi
jmp 0x1400029df
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140002913
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140002915
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140002947
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1400225a0
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1400029dc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140002982
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x1400029bd
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14000e4d0
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x1400029dc
cmp rbp, rax
ja 0x140002990
test rbp, rbp
je 0x1400029dc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14000e4d0
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret

Function at 0x1400072ec
Capabilities:
Parse pe header

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

Function at 0x140010f94
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140010d90
Function at 0x140013a8c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140013aa2
mov al, 1
jmp 0x140013b02
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140013ab3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140013b00
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001bee4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140013b00
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140013b00
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140013b00
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140013b02
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400168d8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140006bd0
sub rsp, rax
mov rax, qword [0x140033080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001396c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140016927
mov rax, rbp
jmp 0x140016a2f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x35310]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140017824
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x35310]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140016a2b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140016a2b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140017824
test rax, rax
js 0x140016a2b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140016a2b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140016a1d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140016a1d
cmp byte [rcx], 0xd
jne 0x140016a03
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140016a12
cmp byte [rcx + 1], 0xa
jne 0x140016a12
inc rcx
jmp 0x140016a12
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x334b0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400169e5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140016a2f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140006580
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140016bc4
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, [0x140035310]
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 0x140016c1b
cmp word [rdx], r13w
jne 0x140016c1b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140016c20
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140016d45
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140016d66
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140016c59
mov rdx, r9
mov word [rbx], cx
jmp 0x140016c80
cmp r9, r8
jae 0x140016c90
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 0x140016c3a
jmp 0x140016d45
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 0x140016d3a
cmp dword [rsp + 0x80], esi
je 0x140016d3a
lea r8, [0x140035310]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140016d12
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140016ce2
mov word [rbx], r13w
jmp 0x140016d42
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 0x140016cef
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140016d42
cmp word [rsp + 0x70], r13w
jne 0x140016d1f
cmp rbx, r14
je 0x140016cdc
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001782c
cmp word [rsp + 0x70], r13w
je 0x140016d45
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, [0x140035310]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140016d3f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140016d45