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

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, dword [0x1400d6dd0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140001082
mov r8, qword [0x1400d3091]
lea edx, [rax + 8]
mov rcx, qword [0x1400d6d88]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1400d6dd0]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, rbx
call fcn.1400fc7a7
mov rdx, rbx
lea rcx, [0x1400010a8]
call fcn.140003b7c
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x14000108c
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400d6dd0], eax
add rsp, 0x28
jmp fcn.140001028

Function at 0x140001f00
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1c0
mov ebx, reloc.WS2_32.dll_recv
lea r8, [0x140001e1c]
mov edx, ebx
lea ecx, [rbx + 0x28]
call fcn.140016664
xor r8d, r8d
mov qword [0x1400d7468], rax
xor edx, edx
mov ecx, ebx
call fcn.1400028c8
xor ebx, ebx
mov qword [0x1400d7478], rax
cmp word [0x1400d7460], bx
jne 0x140002023
mov ecx, 0x101
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea edi, [rbx + 1]
test eax, eax
jne 0x140001f68
movzx eax, di
jmp 0x140001f6a
mov eax, ebx
lea rcx, str.ws2_32.dll
mov word [0x1400d7460], ax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x1400d7470], rax
test rax, rax
je 0x140002023
lea rdx, str.getaddrinfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400d7470]
lea rdx, str.freeaddrinfo
mov qword [0x1400d7440], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400d7470]
lea rdx, str.getnameinfo
mov qword [0x1400d7448], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400d7470]
lea rdx, str.WSAStringToAddressA
mov qword [0x1400d7450], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x1400d7440], rbx
mov qword [0x1400d7458], rax
je 0x140002023
cmp qword [0x1400d7448], rbx
je 0x140002023
cmp qword [0x1400d7450], rbx
je 0x140002023
mov ecx, dword [0x1400d7464]
test rax, rax
cmovne ecx, edi
mov dword [0x1400d7464], ecx
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1c0
pop rdi
ret

Function at 0x140002070
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rcx
mov dword [rsp + 0x40], eax
cmp dword [rcx + 0x1c], eax
jne 0x1400020b4
mov r8d, dword [rcx + 0x10]
lea r9, [rsp + 0x40]
sub r8d, dword [rcx + 0x14]
mov rdx, qword [rcx + 8]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
movsxd rax, dword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
cdqe
add rsp, 0x30
pop rbx
ret
Function at 0x1400020c0
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, rcx
cmp rcx, 0xffffffffffffffff
mov rcx, qword [0x1400d7480]
jne 0x1400020e0
add rsp, 0x30
pop rdi
jmp fcn.140004d14
mov rdx, rdi
mov qword [rsp + 0x48], rbx
call fcn.1400165bc
mov rbx, rax
test rax, rax
je 0x140002155
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14000213d
xor eax, eax
mov dword [rsp + 0x40], eax
cmp dword [rbx + 0x1c], eax
jne 0x14000212a
mov r8d, dword [rbx + 0x10]
lea r9, [rsp + 0x40]
sub r8d, dword [rbx + 0x14]
mov rcx, qword [rbx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
mov r8, qword [rbx + 8]
xor edx, edx
mov rcx, qword [0x1400d6d88]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1400d7480]
mov rdx, rdi
call fcn.140016628
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140002750
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, rcx
mov rcx, qword [0x1400d7480]
call fcn.1400165bc
mov rbx, rax
test rax, rax
je 0x1400027a3
cmp qword [rax + 8], 0
je 0x140002782
cmp dword [rax + 0x1c], 0
jne 0x140002782
mov rcx, rax
call fcn.140002070
mov rcx, qword [rbx]
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [rsp + 0x38]
shl rcx, 0x20
mov eax, eax
or rax, rcx
add rsp, 0x20
pop rbx
ret
mov rax, 0xffffffffffffffff
add rsp, 0x20
pop rbx
ret

Function at 0x1400027b0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov dword [rsp + 0x58], 0
mov rdx, rcx
mov rbx, r8
mov rcx, qword [0x1400d7480]
call fcn.1400165bc
test rax, rax
je 0x140002818
cmp qword [rax + 8], 0
mov rdx, rdi
je 0x1400027fe
mov r8, rbx
mov rcx, rax
call fcn.14001d0c0
cdqe
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x58]
mov r8d, ebx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd rax, dword [rsp + 0x58]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140002830
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov edi, r8d
mov dword [rsp + 0x48], ebx
mov rsi, rdx
test rdx, rdx
je 0x1400028a8
test r8d, r8d
je 0x1400028a8
mov rdx, rcx
mov rcx, qword [0x1400d7480]
call fcn.1400165bc
test rax, rax
je 0x1400028a4
mov r8d, edi
mov rdx, rsi
cmp qword [rax + 8], rbx
je 0x140002891
mov rcx, rax
call fcn.14001d210
mov ebx, eax
cdqe
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140003b7c
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
cmp dword [0x1400d7580], 0
lea rbx, [0x1400d7590]
mov r14, rdx
mov r15, rcx
jne 0x140003bc9
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, rbx
mov dword [0x1400d7584], eax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x1400d7580], 1
mov ecx, dword [0x1400d7584]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
test rax, rax
jne 0x140003c9e
mov rcx, qword [0x1400d6d88]
lea edx, [rax + 8]
lea r8d, [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x140003cc9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1400d7588]
test rax, rax
je 0x140003c19
mov qword [rax], rbp
mov rcx, rbx
mov qword [rbp + 8], rax
mov qword [0x1400d7588], rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [rsp + 0x30], 0
lea r9, [rbp + 0x20]
and dword [rsp + 0x28], 0
mov rcx, rax
mov r8, rdi
mov dword [rsp + 0x20], 0x100000
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x18]
mov r9, rbp
mov dword [rsp + 0x28], 8
or dword [rsp + 0x20], 0xffffffff
lea r8, [0x140003d98]
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
mov ecx, dword [0x1400d7584]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x1400d6d88]
xor edx, edx
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x140003cc9
mov qword [rax + 8], r15
mov qword [rax + 0x10], r14
mov rcx, qword [rbp + 0x10]
mov qword [rax], rcx
mov qword [rbp + 0x10], rax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x140004524
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x1400045a0
movsxd rdx, ecx
lea rcx, [0x140004628]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rbx, qword [0x1400d75c0]
test rbx, rbx
je 0x140004613
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140004596
cmp byte [rbx + 0x20], 0
je 0x140004596
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
xor r8d, r8d
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea rdx, [r9 - 2]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rbx, rdi
test rdi, rdi
jne 0x14000455c
jmp 0x140004613
mov rbx, qword [0x1400d75c0]
test rbx, rbx
je 0x140004613
mov rsi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x14000460b
cmp byte [rbx + 0x21], 0
je 0x1400045cf
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.dll_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x1400045fb
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
xor r8d, r8d
and dword [rsp + 0x28], 0
or rdx, 0xffffffffffffffff
and dword [rsp + 0x20], 0
call qword [sym.imp.USER32.dll_SetWindowPos]
lea rdx, [rbx + 0x10]
lea rcx, [0x1400d75c0]
call fcn.140016f14
mov rbx, rsi
test rsi, rsi
jne 0x1400045ac
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140015f3c
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
xor edi, edi
mov r13, r8
cmp dword [rcx + 0x20], 1
mov rbx, rdx
mov r15, rcx
mov r12d, edi
jne 0x1400160f1
test rdx, rdx
je 0x1400160f1
mov qword [rsp + 0x30], rdi
lea r8d, [rdi + 7]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x1400160f1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, qword [0x1400d6d88]
xor edx, edx
mov eax, eax
mov r8d, 0x200000
mov qword [rsp + 0xc8], rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
je 0x1400160e8
call fcn.14003a7e0
mov rsi, rax
test rax, rax
je 0x1400160d6
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140049bbc
mov edx, 0x1a4
mov rcx, rsi
call fcn.14003ad20
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14004b410
mov rax, qword [r15 + 0x48]
mov ecx, dword [rax + 0x10]
dec ecx
test ecx, 0xfffffffd
je 0x140016034
mov rdx, r13
mov rcx, rsi
call fcn.14003ad10
jmp 0x140016052
mov rcx, r13
call fcn.14004a6f0
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call fcn.14003ad00
mov rcx, rbx
call fcn.14004a630
mov rbx, qword [rsp + 0xc8]
mov rcx, rsi
mov rdx, rbx
call fcn.14003ad60
mov edx, 0x8000
mov rcx, rsi
call fcn.14003ac20
mov rcx, qword [r15]
mov rdx, rsi
call fcn.14004afd0
jmp 0x14001609d
mov rcx, qword [r15]
mov rdx, r14
movsxd r8, eax
call fcn.14004afe0
movsxd rcx, dword [rsp + 0xb0]
cmp rax, rcx
jne 0x1400160c7
add r12, rcx
lea r9, [rsp + 0xb0]
mov qword [rsp + 0x20], rdi
mov r8d, 0x200000
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0xb0]
test eax, eax
jg 0x14001607f
mov rcx, rsi
call fcn.14003a710
cmp r12, rbx
sete dil
mov rcx, qword [0x1400d6d88]
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0xb8]
mov rax, rdi
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001bad0
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push r12
sub rsp, 0x48
xor ebx, ebx
mov r12d, edx
mov qword [rsp + 0x30], rbx
mov ebp, 1
mov dword [rsp + 0x28], ebx
xor r9d, r9d
mov r8d, ebp
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14001bcae
xor edx, edx
mov qword [rsp + 0x70], rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0xffffffff
je 0x14001bb5c
test eax, eax
jle 0x14001bb5c
mov rdx, qword [0x1400d7560]
lea r9, [rsp + 0x80]
mov r8d, eax
mov qword [rsp + 0x20], rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001bb5c
cmp dword [rsp + 0x80], edi
cmove ebx, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x14001bca9
mov rax, qword [0x1400d7560]
mov rdx, rax
cmp dword [rax], 0x50555245
jne 0x14001bca9
mov qword [rsp + 0x40], r15
mov r15d, dword [rax + 8]
add rax, 0xc
add r15d, 0xadbaaccf
cmp r15d, 8
ja 0x14001bca4
lea ecx, [rdi - 8]
mov qword [rsp + 0x88], r14
movsxd r14, ecx
lea rcx, [r14 + rdx]
cmp rax, rcx
jae 0x14001bc9c
mov qword [rsp + 0x78], r13
lea r13, [0x140000000]
nop dword [rax + rax]
cmp dword [rax], 0x434e5354
lea rsi, [rax + 8]
movsxd rdi, dword [rax + 4]
jne 0x14001bc80
test edi, edi
jle 0x14001bc80
mov rcx, qword [0x1400d6d88]
lea r8, [rdi + 0x28]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x14001bc80
lea rcx, [rax + 0x28]
mov dword [rax + 0x10], edi
mov r8, rdi
mov qword [rax + 8], rcx
mov rdx, rsi
mov dword [rax + 0x14], r12d
call fcn.140016720
movsxd rcx, r15d
mov edx, dword [r13 + rcx*4 + 0x1bcb8]
add rdx, r13
jmp rdx
lea rax, [0x14001b7a0]
mov qword [rbx + 0x18], rax
lea rax, [0x14001b7b0]
jmp 0x14001bc6b
lea rax, [0x14001b7c0]
mov qword [rbx + 0x18], rax
lea rax, [0x14001b8b0]
jmp 0x14001bc6b
lea rax, [0x14001b8e0]
mov qword [rbx + 0x18], rax
lea rax, [0x14001ba60]
mov qword [rbx + 0x20], rax
mov rax, qword [0x1400d7ee0]
mov qword [rbx], rax
mov qword [0x1400d7ee0], rbx
mov rdx, qword [0x1400d7560]
lea rax, [rsi + rdi]
add rdx, r14
cmp rax, rdx
jb 0x14001bbd0
mov r13, qword [rsp + 0x78]
mov r14, qword [rsp + 0x88]
mov r15, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x70]
add rsp, 0x48
pop r12
pop rsi
pop rbp
pop rbx
ret
Function at 0x14001d0c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
xor ebp, ebp
mov rdi, r8
mov r15, rdx
mov r14, rcx
cmp dword [rcx + 0x1c], ebp
jne 0x14001d0f7
call fcn.140002070
mov dword [r14 + 0x1c], 1
mov dword [r14 + 0x14], ebp
movsxd r12, dword [r14 + 0x14]
mov eax, dword [r14 + 0x18]
mov rbx, r12
sub eax, r12d
movsxd rdx, eax
add rdx, qword [r14 + 8]
cmp r12, rdi
jl 0x14001d170
mov rax, rdi
sub rax, 1
je 0x14001d161
sub rax, 1
je 0x14001d14e
cmp rax, 2
je 0x14001d13d
mov r8, rdi
mov rcx, r15
call fcn.140016720
sub dword [r14 + 0x14], edi
movsxd rax, edi
jmp 0x14001d1ea
mov eax, dword [rdx]
mov dword [r15], eax
sub dword [r14 + 0x14], edi
movsxd rax, edi
jmp 0x14001d1ea
movzx eax, word [rdx]
mov word [r15], ax
sub dword [r14 + 0x14], edi
movsxd rax, edi
jmp 0x14001d1ea
movzx eax, byte [rdx]
mov byte [r15], al
sub dword [r14 + 0x14], edi
movsxd rax, edi
jmp 0x14001d1ea
mov r8, rbx
mov rcx, r15
call fcn.140016720
movsxd r8, dword [r14 + 0x10]
lea r9, [rsp + 0x60]
mov rcx, qword [r14]
add r15, rbx
sub rdi, rbx
mov qword [rsp + 0x20], rbp
cmp rdi, r8
jl 0x14001d1b0
mov r8d, edi
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x60]
add eax, r12d
mov dword [r14 + 0x14], ebp
jmp 0x14001d1e8
mov rdx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd rax, dword [rsp + 0x60]
mov rcx, r15
mov rdx, qword [r14 + 8]
cmp rdi, rax
mov rbx, rax
mov dword [r14 + 0x14], eax
cmovle rbx, rdi
mov dword [r14 + 0x18], eax
mov r8, rbx
call fcn.140016720
sub dword [r14 + 0x14], ebx
lea eax, [rbx + r12]
cdqe
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14001d210
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push r14
sub rsp, 0x38
xor ebp, ebp
movsxd rbx, r8d
mov r14, rdx
mov rsi, rcx
mov dword [rsp + 0x60], ebp
cmp dword [rcx + 0x24], ebp
jne 0x14001d30a
cmp dword [rcx + 0x1c], 1
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x30], r15
jne 0x14001d26b
mov eax, dword [rcx + 0x14]
lea r9d, [rbp + 1]
mov rcx, qword [rcx]
lea r8, [rsp + 0x7c]
neg eax
cdqe
mov edx, eax
mov qword [rsp + 0x78], rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [rsi + 0x10]
mov dword [rsi + 0x14], eax
mov dword [rsi + 0x1c], ebp
mov ecx, dword [rsi + 0x14]
cmp ecx, ebx
jle 0x14001d2cc
mov eax, dword [rsi + 0x10]
mov edx, ebx
sub eax, ecx
movsxd rcx, eax
add rcx, qword [rsi + 8]
sub edx, 1
je 0x14001d2c4
sub edx, 1
je 0x14001d2bb
cmp edx, 2
je 0x14001d2b4
mov r8, rbx
mov rdx, r14
call fcn.140016720
sub dword [rsi + 0x14], ebx
mov rax, rbx
mov rdi, qword [rsp + 0x68]
mov r15, qword [rsp + 0x30]
add rsp, 0x38
pop r14
pop rsi
pop rbp
pop rbx
ret
mov eax, dword [r14]
mov dword [rcx], eax
jmp 0x14001d29a
movzx eax, word [r14]
mov word [rcx], ax
jmp 0x14001d29a
movzx eax, byte [r14]
mov byte [rcx], al
jmp 0x14001d29a
mov rcx, rsi
call fcn.140002070
mov eax, dword [rsi + 0x10]
mov rdx, r14
cmp ebx, eax
jl 0x14001d2fb
mov rcx, qword [rsi]
lea r9, [rsp + 0x60]
mov r8d, ebx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
movsxd rax, dword [rsp + 0x60]
jmp 0x14001d2a0
sub eax, dword [rsi + 0x14]
mov r8, rbx
movsxd rcx, eax
add rcx, qword [rsi + 8]
jmp 0x14001d295
movsxd rax, ebp
add rsp, 0x38
pop r14
pop rsi
pop rbp
pop rbx
ret

Function at 0x14001d804
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001d94c
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 0x14001d9bb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001d9bb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001d9bb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001d9bb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001d9bb
cmp dword [rcx + 0x84], 0xe
jbe 0x14001d9bb
cmp dword [rcx + 0xf8], 0
je 0x14001d9bb
mov ecx, ebx
call fcn.14001d884
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.14001dae0
nop
cmp dword [rbp + 0x20], 0
je 0x14001da09
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001d918
int3
Function at 0x1400226f0
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x40
call fcn.140022db0
call fcn.140027b20
xor ecx, ecx
call fcn.140021a10
test eax, eax
jne 0x140022700
mov rbx, qword [0x1400d7540]
test rbx, rbx
je 0x1400227e0
cmp dword [0x1400d753c], eax
je 0x1400227e0
cmp dword [0x1400d7f50], 0
mov eax, dword [0x1400d7538]
mov dword [rsp + 0x20], 0x23
lea eax, [rax*4]
mov dword [rsp + 0x24], eax
je 0x1400227ab
mov rcx, qword [0x1400d7560]
mov rdx, rbx
movsxd r8, eax
call fcn.140016720
xor r9d, r9d
cmp dword [0x1400d7538], r9d
jle 0x1400227a4
xor r8d, r8d
nop word [rax + rax]
mov rdx, qword [0x1400d7560]
inc r9d
add rdx, r8
add r8, 4
movzx ecx, byte [rdx]
movzx eax, byte [rdx + 3]
mov byte [rdx], al
movzx eax, byte [rdx + 2]
mov byte [rdx + 3], cl
movzx ecx, byte [rdx + 1]
mov byte [rdx + 1], al
mov byte [rdx + 2], cl
cmp r9d, dword [0x1400d7538]
jl 0x140022770
mov rbx, qword [0x1400d7560]
call fcn.1400697c0
lea rcx, [0x1400d9060]
mov dword [rsp + 0x30], eax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1400d7f78]
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [rax + 0x18]
lea rcx, [0x1400d9060]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [rsp + 0x20], 1
call fcn.1400697c0
lea rcx, [0x1400d9060]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x24], 0
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1400d7f78]
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [rax + 0x18]
lea rcx, [0x1400d9060]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [0x1400d7f78]
call qword [rax + 0x28]
lea rcx, [0x1400d9020]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x1400d9060]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x1400d90a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [0x1400d7f68]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x1400d7f68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1400d7f70]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x1400d7f70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x1400d9020]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1400d9060]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1400d90a0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1400d9020]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x1400d9060]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x1400d90a0]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
add rsp, 0x40
pop rbx
ret
Function at 0x140026e50
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x110
mov rsi, rdx
mov rbp, r8
lea rdx, [rsp + 0x40]
mov rdi, rcx
xor ebx, ebx
call fcn.140026850
test eax, eax
je 0x140026f49
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140033cd0
test eax, eax
jne 0x140026f49
lea rdx, [rsp + 0xa4]
mov rcx, rbp
call fcn.140033cd0
test eax, eax
jne 0x140026f49
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 1]
mov dword [rsp + 0x28], ebx
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140026f49
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140026f40
test eax, eax
jle 0x140026f40
lea ecx, [rdi + 1]
movsxd rcx, ecx
call fcn.140035c4c
mov rsi, rax
test rax, rax
je 0x140026f40
lea r9, [rsp + 0x138]
mov qword [rsp + 0x20], rbx
mov r8d, edi
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140026f40
cmp dword [rsp + 0x138], edi
jne 0x140026f40
mov rcx, rsi
mov byte [rdi + rsi], bl
call fcn.140026b80
mov ebx, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x110]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret