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

Disassembly:
jmp 0x140012e50
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x14001126c
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
jmp 0x1400117c0
push rbp
push rdi
sub rsp, 0x778
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x13e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14001c008]
xor rax, rbp
mov qword [rbp + 0x728], rax
lea rcx, [0x1400220ab]
call fcn.140011370
lea rdx, [rbp + 0x10]
mov cx, 2
call qword [sym.imp.WSOCK32.dll_WSAStartup]
mov r8d, 6
mov edx, 1
mov ecx, 2
call qword [sym.imp.WSOCK32.dll_socket]
mov qword [rbp + 0x1c8], rax
mov r8d, 0x10
xor edx, edx
lea rcx, [rbp + 0x1e8]
call fcn.1400112bc
mov cx, 0x87
call qword [sym.imp.WSOCK32.dll_htons]
mov word [rbp + 0x1ea], ax
lea rcx, str.127.0.0.1
call qword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [rbp + 0x1ec], eax
mov eax, 2
mov word [rbp + 0x1e8], ax
mov r8d, 0x10
lea rdx, [rbp + 0x1e8]
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WSOCK32.dll_connect]
mov dword [rbp + 0x214], eax
mov dword [rbp + 0x2e4], 0x310
mov dword [rbp + 0x304], 0x13371337
mov eax, dword [rbp + 0x2e4]
sub eax, 0x30
imul eax, eax, 0x4000
xor edx, edx
mov ecx, 8
div ecx
sub eax, 0xfff
mov ecx, dword [rbp + 0x304]
and ecx, 0xfff
sub eax, ecx
mov dword [rbp + 0x324], eax
mov r8d, 0x190
xor edx, edx
lea rcx, [rbp + 0x350]
call fcn.1400112bc
mov eax, 4
imul rax, rax, 6
mov ecx, dword [rbp + 0x304]
mov dword [rbp + rax + 0x350], ecx
mov eax, 4
imul rax, rax, 7
mov ecx, dword [rbp + 0x324]
mov dword [rbp + rax + 0x350], ecx
mov eax, 4
imul rax, rax, 0xa
mov dword [rbp + rax + 0x350], 1
mov qword [rsp + 0x38], 0
lea rax, [rbp + 0x2c4]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
lea rax, [rbp + 0x240]
mov qword [rsp + 0x20], rax
mov r9d, 0x30
lea r8, [rbp + 0x350]
mov edx, 0x12127
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x40]
lea rdx, [0x140019d20]
call fcn.140011307
mov eax, edi
mov rcx, qword [rbp + 0x728]
xor rcx, rbp
call fcn.1400111a9
lea rsp, [rbp + 0x738]
pop rdi
pop rbp
ret
Function at 0x140011276
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400141a0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400141c0
xor al, al
jmp 0x140014241
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400141d3
xor al, al
jmp 0x140014241
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400141fd
xor al, al
jmp 0x140014241
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014211
xor al, al
jmp 0x140014241
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014223
xor al, al
jmp 0x140014241
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001423f
xor al, al
jmp 0x140014241
mov al, 1
add rsp, 0x38
ret
Function at 0x140027cb4
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001babc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001babc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027e04
cmp rax, 0xffffffffffffffff
je 0x140027e04
xor edi, edi
test rbp, rbp
jle 0x140027daf
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001e0e0
mov rbx, rax
test rax, rax
jne 0x140027d3c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140027da5
mov edx, 0x8000
mov ecx, r14d
call fcn.140015690
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001c7bc
cmp eax, 0xffffffff
je 0x140027d85
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140027d4c
mov edx, r15d
mov ecx, r14d
call fcn.140015690
jmp 0x140027da5
cmp byte [rsi + 0x38], dil
je 0x140027d9c
cmp dword [rsi + 0x34], 5
jne 0x140027d9c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140027da5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001a168
jmp 0x140027e18
jns 0x140027e18
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001babc
cmp rax, 0xffffffffffffffff
jne 0x140027dd0
cmp byte [rsi + 0x30], dil
je 0x140027e18
mov edi, dword [rsi + 0x2c]
jmp 0x140027e18
mov ecx, r14d
call fcn.140016c88
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140027e18
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140027e18
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140027e11
mov eax, dword [rsi + 0x2c]
jmp 0x140027e16
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001babc
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140001908
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001952
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001952
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001952
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001952
cmp dword [rcx + 0x84], 0xe
jbe 0x140001952
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001954
xor al, al
add rsp, 0x28
ret
Function at 0x141766058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1417661df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141766089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14176606f
add dl, dl
jne 0x141766096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1417660f6
xor eax, eax
add dl, dl
jne 0x1417660a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1417661ad
add dl, dl
jne 0x1417660b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1417660c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1417660d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1417660dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1417660ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14176607e
mov eax, 1
add dl, dl
jne 0x141766106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141766113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1417660fb
sub eax, ebx
mov ebx, 1
jne 0x14176614c
mov ecx, 1
add dl, dl
jne 0x14176612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14176613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141766123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14176607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141766168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141766175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14176615d
cmp eax, 0x7d00
jae 0x14176619b
cmp eax, 0x500
jb 0x141766196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14176607e
cmp eax, 0x7f
ja 0x14176619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14176607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1417661d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14176607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x2be0a14da
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
mov rsi, rcx
mov rbx, rdx
test rdx, rdx
je 0x2be0a14f9
mov rcx, rdx
call sym.strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sym.fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp 0x2be0b7fa8
jmp qword [sym.imp.msvcrt.dll_fflush]

Function at 0x2be0a2da1
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov qword [rsp + 0x28], rdx
mov rsi, rcx
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8, qword [rsp + 0x28]
mov rcx, rsi
mov edx, 1
mov rbx, rax
mov r9, rax
call sym.fwrite
mov rcx, rbx
add rsp, 0x38
pop rbx
pop rsi
jmp 0x2be0b7fa8

Function at 0x2be0a5397
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, qword [dbg.__acrt_iob_func]
xor ebx, ebx
mov rdi, rcx
mov rbp, rdx
cmp rbx, rbp
jl 0x2be0a53ef
mov ecx, 1
call rsi
mov r8d, 1
mov edx, 1
lea rcx, [0x2be1430b3]
mov r9, rax
call sym.fwrite
mov ecx, 1
call rsi
mov rcx, rax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp 0x2be0b7fa8
mov r12, qword [rdi + rbx*8]
mov ecx, 1
inc rbx
call rsi
xor r8d, r8d
mov rcx, rax
mov rdx, r12
call sym.writeWindows__systemZio_205
jmp 0x2be0a53b0
Function at 0x2be0b1d50
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x2be0b1dc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x2be15ff64]
mov rbx, rcx
test esi, esi
jle 0x2be0b1ef0
mov rax, qword [0x2be15ff68]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x2be0b1e0b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x2be0b1e95
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x2be0b1df0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x2be0b1f12
mov rax, qword [0x2be15ff68]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x2be15ff68]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x2be0b1ef7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x2be0b1e8e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x2be0b1ea0
add dword [0x2be15ff64], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
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 [0x2be15ff68]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x2be0b1e8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x2be0b1e18
mov rax, qword [0x2be15ff68]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x2be0b2290
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x2be15ffa0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x2be15ff80]
test rbx, rbx
je 0x2be0b22ec
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x2be0b22e3
test rsi, rsi
je 0x2be0b22e3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x2be0b22c8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x2be0b2500
Capabilities:
Parse pe header

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

Function at 0x2be0b2530
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x2be0b257d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x2be0b2574
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x2be0b257f
add rax, 0x28
cmp rax, r9
jne 0x2be0b2560
xor eax, eax
ret

Function at 0x2be0b2580
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x2be0b2610
mov rdx, qword [0x2be146650]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x2be0b25fe
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x2be0b25fe
cmp word [rax + 0x18], 0x20b
jne 0x2be0b25fe
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x2be0b2610
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x2be0b25e9
add rbx, 0x28
cmp rbx, rdi
je 0x2be0b2610
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x2be0b25e0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x2be0b2620
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x2be146650]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x2be0b2640
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x2be0b2648
ret
cmp word [r8 + 0x18], 0x20b
jne 0x2be0b2640
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x2be0b269d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x2be0b2694
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x2be0b2640
add rax, 0x28
cmp rax, r9
jne 0x2be0b2680
xor eax, eax
ret

Function at 0x2be0b26a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x2be146650]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x2be0b26bf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x2be0b26c8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x2be0b26bf
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x2be0b26e0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x2be146650]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x2be0b2700
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x2be0b2708
ret
cmp word [rdx + 0x18], 0x20b
jne 0x2be0b2700
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x2be0b2750
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x2be0b2747
test rcx, rcx
je 0x2be0b2700
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x2be0b2738
xor eax, eax
ret

Function at 0x2be0b2760
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x2be146650]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x2be0b277f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x2be0b2788
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x2be0b27a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x2be146650]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x2be0b27c0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x2be0b27c8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x2be0b27c0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x2be0b27c0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x2be0b2814
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x2be0b2820
add rdx, 0x28
cmp r9, rdx
jne 0x2be0b2800
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x2be0b2830
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x2be146650]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x2be0b2852
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x2be0b2860
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x2be0b2852
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x2be0b2852
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x2be0b2852
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x2be0b28b5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x2be0b28c8
add rdx, 0x28
cmp rdx, r10
jne 0x2be0b28a0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x2be0b28d7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x2be0b28e7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x2be0b28be
test ecx, ecx
jg 0x2be0b28d0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1400036b0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x14000370d
lea rbx, [0x140059ea0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1400036f4
cmp r10, 2
jb 0x1400036f4
cmp byte [r9], r8b
jne 0x1400036f4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x1400036d0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000374f
lea rbx, [0x140059ea0]
cmp r8b, 0x23
jne 0x140003733
cmp byte [r9], r8b
jne 0x140003733
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140003720
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140003890
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x1400038aa
mov qword [r8], 0
lea rdx, [0x140059854]
call fcn.140003760
mov rbx, rax
test rax, rax
jne 0x1400038ca
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x1400039a1
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400039a1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x1400039a1
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400039a1
cmp rdi, 0xffffffffffffffff
je 0x1400039a1
mov rax, qword [0x140068a40]
test rax, rax
je 0x14000393e
inc dword [rax + 0x3ac]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x1400039a1
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x14000398e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140068a40]
test rax, rax
je 0x140003983
dec dword [rax + 0x3ac]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1400039aa
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x14000399c
mov qword [r14], rdi
mov rax, rsi
jmp 0x1400039ac
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x1400063f0
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0x100]
mov rax, qword [rcx + 0x108]
movsxd r9, edx
mov ebx, dword [rax + r8*4 - 4]
lea r8, [0x140059ea0]
not ebx
movzx eax, r9b
movzx ecx, bl
xor rcx, rax
shr ebx, 8
mov eax, r9d
shr eax, 8
movzx edx, al
mov eax, r9d
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
mov rax, qword [0x140068a40]
xor rdx, rcx
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r9d
shr rdx, 0x18
xor rdx, rcx
xor ebx, dword [r8 + rdx*4]
not ebx
cmp dword [rax + 0x1d7c], ebx
jne 0x14000647d
mov dword [rax + 0x1d80], ebx
cmp dword [rax + 0x1db8], ebx
jne 0x14000648c
mov byte [rax + 0x1dbc], 1
cmp dword [rax + 0x1d64], ebx
jne 0x1400064a3
mov r8, r9
mov edx, 4
mov ecx, ebx
call fcn.1400246e0
mov eax, ebx
add rsp, 0x20
pop rbx
ret