joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001510c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x178]
sub rsp, 0x270
mov rax, qword [0x140039008]
xor rax, rsp
mov qword [rbp + 0x160], rax
and qword [rsp + 0x40], 0
mov rdi, rcx
mov r14d, 0x80070000
lea rax, [rsp + 0x50]
mov dword [rsp + 0x48], 0x100
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x48]
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x60]
and qword [rsp + 0x28], 0
xor edx, edx
and qword [rsp + 0x20], 0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
jne 0x14001520b
lea rax, [rsp + 0x40]
mov r9d, 0x2001f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14001521e
mov rcx, qword [rsp + 0x40]
call fcn.14001510c
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14001521e
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x40], 0
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14001521e
jmp 0x140015213
cmp ebx, 0x80070103
je 0x14001521c
test ebx, ebx
jne 0x14001521e
jmp 0x14001514a
xor ebx, ebx
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14001522e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140015cc0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x140015258
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x140039008]
xor rax, rsp
mov qword [rsp + 0x230], rax
or r9, 0xffffffffffffffff
lea r8, str.SOFTWAREMicrosoftOfficeDeliverySourceEngineDownloads
mov edx, 0x104
lea rcx, [rsp + 0x20]
call fcn.1400197c0
cmp eax, 0x50
jne 0x140015298
mov eax, 0x8007007a
jmp 0x1400152dd
xor ebx, ebx
lea rdx, [rsp + 0x20]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, eax
test eax, eax
jne 0x1400152f6
mov edx, 0x5c
lea rcx, [rsp + 0x20]
call fcn.1400175fc
test rax, rax
je 0x1400152cf
mov word [rax], bx
cmp bx, word [rax + 2]
je 0x1400152b2
cmp word [rsp + 0x20], bx
je 0x1400152db
test rax, rax
jne 0x14001529a
mov eax, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140015cc0
add rsp, 0x240
pop rbx
ret
add eax, 0xfffffffe
cmp eax, 1
jbe 0x14001530d
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x14001530f
mov eax, ebx
cmp eax, 1
jne 0x1400152dd
jmp 0x14001529a
Function at 0x140015318
Capabilities:
Delete registry key

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x30
and qword [r11 + 0x18], 0
lea rax, [r11 + 0x18]
mov r9d, 0x2001f
mov qword [r11 - 0x18], rax
xor r8d, r8d
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
jne 0x140015354
lea ebx, [rax - 1]
jmp 0x1400153a1
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400153a1
mov rcx, qword [rsp + 0x50]
call fcn.14001510c
mov ebx, eax
test eax, eax
js 0x1400153a1
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x50], 0
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400153b1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140015478
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
xor ecx, ecx
call qword [sym.imp.RPCRT4.dll_RpcImpersonateClient]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400154f0
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r9, rdi
xor r8d, r8d
mov rcx, rax
mov edx, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x1400154d1
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
call qword [sym.imp.RPCRT4.dll_RpcRevertToSelf]
test eax, eax
je 0x1400154f0
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140015cdc
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x140019314
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
lea r9, str.FlsAlloc
xor ecx, ecx
lea r8, [0x14002ad30]
lea rdx, str.FlsAlloc
call fcn.14001913c
mov rbx, rax
test rax, rax
je 0x140019354
mov rcx, rax
call fcn.14001666c
mov rcx, rdi
call rbx
jmp 0x14001935a
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400193bc
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
lea r9, str.FlsGetValue
mov ecx, 2
lea r8, [0x14002ad58]
lea rdx, str.FlsGetValue
call fcn.14001913c
mov rdi, rax
test rax, rax
je 0x1400193fd
mov rcx, rax
call fcn.14001666c
mov ecx, ebx
call rdi
jmp 0x140019405
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140019410
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, str.FlsSetValue
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x14002ad70]
call fcn.14001913c
mov rsi, rax
test rax, rax
je 0x14001945c
mov rcx, rax
call fcn.14001666c
mov rdx, rbx
mov ecx, edi
call rsi
jmp 0x140019467
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14001e37c
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.140022788
test al, al
je 0x14001e3b4
mov rax, qword gs:[0x60]
mov edx, dword [rax + 0xbc]
shr edx, 8
test dl, 1
jne 0x14001e3b4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, ebx
call fcn.14001e3c4
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x140028410
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
movsxd r8, dword [0x14000003c]
lea rdi, [0x140000000]
add r8, rdi
mov r11, rdx
mov rbx, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x140028483
mov r9d, dword [r8 + 0xf0]
xor edx, edx
test r9d, r9d
je 0x140028483
movzx eax, word [r8 + 0x14]
lea rcx, [r8 + 0x18]
movzx r10d, word [r8 + 6]
add rcx, rax
mov r9d, dword [r9 + rdi + 0xc]
test r10d, r10d
je 0x140028483
mov eax, dword [rcx + 0xc]
cmp r9d, eax
jb 0x140028478
mov r8d, dword [rcx + 8]
add eax, r8d
cmp r9d, eax
jb 0x140028490
inc edx
add rcx, 0x28
cmp edx, r10d
jb 0x140028464
xor eax, eax
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret
mov dword [rbx], r8d
mov eax, dword [rcx + 0x24]
mov dword [r11], eax
mov eax, dword [rcx + 0xc]
add rax, rdi
jmp 0x140028485
Function at 0x140030e70
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140030e7d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140030e8d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140030e75
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140030ea5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140030e92
sub eax, 3
jb 0x140030ebf
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140030ef6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x140030ee6
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140030ee4
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140030ed3
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.140030e32
jmp 0x140030e7d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xea00
mov dl, 5
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140030f42
cmp rsi, rcx
jae 0x140030f4a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140030f29
cmp al, 0x8f
ja 0x140030f29
cmp byte [rsi - 2], 0xf
je 0x140030f2f
sub al, 0xe8
cmp al, 1
ja 0x140030f13
cmp rsi, rcx
jae 0x140030f4a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140030f19
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140030f4a
lodsb al, byte [rsi]
jmp 0x140030f29
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x2e000]
mov eax, dword [rdi]
or eax, eax
je 0x140030fa7
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x35868]
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 0x140030f57
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 0x140030fa1
mov qword [rbx], rax
add rbx, 8
jmp 0x140030f77
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 0x140030fe1
cmp al, 0xef
ja 0x140030fd3
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140030fb3
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140030fc2
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 + 0x237]
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 0x140031035
sub rsp, 0xffffffffffffff80
jmp 0x140002ca8
Function at 0x140003de0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003e14
cmp word [rcx], 0x5a4d
jne 0x140003e14
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003e14
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003e14
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003d20
test eax, eax
jne 0x140003e30
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140003d90
test rax, rax
je 0x140003e25
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.1400045d6
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x1400044e0
Capabilities:
Execute syscall

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

Function at 0x140004934
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x1409ae9d8]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x1409ae9d4]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140004982
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000497a
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140004a69
inc ebx
add rax, 0x28
jmp 0x14000495a
mov rcx, r12
call fcn.140005161
mov rbp, rax
test rax, rax
jne 0x1400049a1
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1400048d0
movsxd rbx, ebx
mov rax, qword [0x1409ae9d8]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.14000520f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1409ae9d8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140004a03
mov rax, qword [0x1409ae9d8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400048d0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140004a63
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140004a63
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1409ae9d8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140004a63
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400048d0
inc dword [0x1409ae9d4]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140004e90
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x1409aea40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1409aea20]
test rbx, rbx
je 0x140004edc
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140004ed6
test eax, eax
jne 0x140004ed6
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140004eae
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140005090
Capabilities:
Parse pe header

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

Function at 0x1400050b4
Capabilities:
Enumerate pe sections

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

Function at 0x140005161
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1409aaa10]
mov r8, rcx
mov rcx, r9
call fcn.140005090
test eax, eax
je 0x14000518d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.1400050b4
xor eax, eax
add rsp, 0x28
ret
Function at 0x180002120
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
sub rsp, 0x70
mov rax, qword [0x18004a1b0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov r15, rcx
mov dword [rsp + 0x20], edx
lea rcx, [0x18004dfe0]
mov qword [rsp + 0x28], r8
call fcn.18000a170
test eax, eax
jne 0x180002277
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x60], rbp
mov rbp, qword [0x18004df70]
mov qword [rsp + 0x58], rsi
lea esi, [rax + 4]
mov qword [rsp + 0x50], rdi
xor edi, edi
mov qword [rsp + 0x48], r12
mov ebx, edi
mov qword [rsp + 0x40], r14
movsxd rax, ebx
lea rdx, [rsp + 0x20]
add rdx, rax
xor r9d, r9d
mov r8d, esi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x1800021a9
add ebx, eax
sub esi, eax
cmp ebx, 4
jl 0x180002181
mov r14, qword [0x18004df70]
cmp eax, 0xffffffff
mov ebp, edi
mov ebx, edi
setne bpl
mov esi, 8
dec ebp
movsxd rax, ebx
lea rdx, [rsp + 0x28]
add rdx, rax
xor r9d, r9d
mov r8d, esi
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x1800021ea
add ebx, eax
sub esi, eax
cmp ebx, 8
jl 0x1800021c2
mov esi, dword [rsp + 0x20]
mov r12d, 0xffffffff
mov r14, qword [0x18004df70]
cmp eax, r12d
cmove ebp, r12d
test esi, esi
jle 0x180002237
mov ebx, esi
nop dword [rax + rax]
movsxd rdx, edi
xor r9d, r9d
add rdx, r15
mov r8d, ebx
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
cmp eax, r12d
je 0x180002234
add edi, eax
sub ebx, eax
cmp edi, esi
jl 0x180002210
jmp 0x180002237
mov ebp, r12d
lea rcx, [0x18004dfe0]
call fcn.18000a194
mov r14, qword [rsp + 0x40]
mov eax, ebp
mov rbp, qword [rsp + 0x60]
mov r12, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.18000e350
add rsp, 0x70
pop r15
ret
mov ecx, eax
call fcn.18000c32c
int3
Function at 0x180023bf0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180023c06
mov al, 1
jmp 0x180023c66
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180023c17
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180023c64
mov ecx, dword [rcx + 0x18]
nop
call fcn.18002d760
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180023c64
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180023c64
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180023c64
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180023c66
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180025130
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.18000ee40
sub rsp, rax
mov rax, qword [0x18004a1b0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180021cf8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18002517f
mov rax, rbp
jmp 0x180025287
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, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x4d820]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180026010
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x4d820]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180025283
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 0x180025283
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180026010
test rax, rax
js 0x180025283
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180025283
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180025275
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180025275
cmp byte [rcx], 0xd
jne 0x18002525b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18002526a
cmp byte [rcx + 1], 0xa
jne 0x18002526a
inc rcx
jmp 0x18002526a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x4a5a0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18002523d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180025287
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18000e350
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 0x1800253b0
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, [0x18004d820]
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 0x180025407
cmp word [rdx], r13w
jne 0x180025407
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18002540c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180025531
mov r11d, recv
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180025552
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180025445
mov rdx, r9
mov word [rbx], cx
jmp 0x18002546c
cmp r9, r8
jae 0x18002547c
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 0x180025426
jmp 0x180025531
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 0x180025526
cmp dword [rsp + 0x80], esi
je 0x180025526
lea r8, [0x18004d820]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1800254fe
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1800254ce
mov word [rbx], r13w
jmp 0x18002552e
mov ecx, recv
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 0x1800254db
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18002552e
cmp word [rsp + 0x70], r13w
jne 0x18002550b
cmp rbx, r14
je 0x1800254c8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180026018
cmp word [rsp + 0x70], r13w
je 0x180025531
mov ecx, recv
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, [0x18004d820]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18002552b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180025531