joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140025bd0
Capabilities:
Get file size

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

Function at 0x1400273d0
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, [0x140046020]
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 0x140027427
cmp word [rdx], r13w
jne 0x140027427
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14002742c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140027551
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140027572
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140027465
mov rdx, r9
mov word [rbx], cx
jmp 0x14002748c
cmp r9, r8
jae 0x14002749c
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 0x140027446
jmp 0x140027551
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 0x140027546
cmp dword [rsp + 0x80], esi
je 0x140027546
lea r8, [0x140046020]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14002751e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400274ee
mov word [rbx], r13w
jmp 0x14002754e
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 0x1400274fb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14002754e
cmp word [rsp + 0x70], r13w
jne 0x14002752b
cmp rbx, r14
je 0x1400274e8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140024af8
cmp word [rsp + 0x70], r13w
je 0x140027551
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, [0x140046020]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14002754b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140027551
Function at 0x140029468
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 0x1400294ef
mov rsi, rbx
cmp word [rax], bp
je 0x1400294ae
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140029498
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140029494
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140025e6c
mov rdi, rax
test rax, rax
je 0x1400294dc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14001d6d0
mov rbp, rdi
xor ecx, ecx
call fcn.140023ee0
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 0x14002e000
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.140024af8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140024af8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002e150
cmp rax, 0xffffffffffffffff
je 0x14002e150
xor edi, edi
test rbp, rbp
jle 0x14002e0fb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400281b8
mov rbx, rax
test rax, rax
jne 0x14002e088
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002e0f1
mov edx, 0x8000
mov ecx, r14d
call fcn.1400230b0
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.1400257d0
cmp eax, 0xffffffff
je 0x14002e0d1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14002e098
mov edx, r15d
mov ecx, r14d
call fcn.1400230b0
jmp 0x14002e0f1
cmp byte [rsi + 0x38], dil
je 0x14002e0e8
cmp dword [rsi + 0x34], 5
jne 0x14002e0e8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002e0f1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140023ee0
jmp 0x14002e164
jns 0x14002e164
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140024af8
cmp rax, 0xffffffffffffffff
jne 0x14002e11c
cmp byte [rsi + 0x30], dil
je 0x14002e164
mov edi, dword [rsi + 0x2c]
jmp 0x14002e164
mov ecx, r14d
call fcn.140029f5c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14002e164
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 0x14002e164
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14002e15d
mov eax, dword [rsi + 0x2c]
jmp 0x14002e162
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140024af8
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 0x1400051d0
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
je 0x140005200
mov eax, 0
cmp word [rcx], 0x5a4d
jne 0x1400051ff
mov eax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140005205
cdqe
add rax, rcx
cmp dword [rax], 0x4550
mov edx, 0
cmovne rax, rdx
ret
mov rax, rcx
jmp 0x1400051ff
mov eax, 0
jmp 0x1400051ff

Function at 0x140005880
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.140005830
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 0x14000eea0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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.1400179e0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400179e0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x14000ef10
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1404783d4]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x14000f0a0
mov rax, qword [0x1404783d8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x14000ef5c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x14000efe5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x14000ef40
mov rcx, rdi
call fcn.14000fa70
test rax, rax
mov r12, rax
je 0x14000f0f2
mov rax, qword [0x1404783d8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.14000fbb0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1404783d8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000f0d5
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000efde
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000f050
add dword [0x1404783d4], 1
cmp ebx, 8
jae 0x14000f011
test bl, 4
jne 0x14000f0b0
test ebx, ebx
je 0x14000f006
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x14000f0c4
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
sub ebx, 1
mov rdx, qword [rbp + rax - 8]
cmp ebx, 8
mov qword [rdi + rax - 8], rdx
jb 0x14000f006
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, ebx
mov qword [rdi + rdx], rcx
jb 0x14000f02a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rsi, qword [0x1404783d8]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000efde
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000eea0
xor esi, esi
jmp 0x14000ef67
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x14000f006
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x14000f006
mov rax, qword [0x1404783d8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.14000eea0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call fcn.14000eea0
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x14000f6c0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140478440]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140478420]
test rbx, rbx
je 0x14000f714
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14000f70b
test rsi, rsi
je 0x14000f70b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000f6f0
lea rcx, [0x140478440]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14000fa70
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140473410]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14000fadf
mov rcx, r9
call fcn.14000f940
test eax, eax
je 0x14000fadf
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x14000fadd
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x14000fad4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14000fadf
add rdx, 0x28
cmp rdx, r9
jne 0x14000fac0
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x140019da0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x14046f3c0]
jmp 0x1400108a0

Function at 0x140019db0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x14046f3c0]
jmp 0x1400108a0
Function at 0x140001000
Capabilities:
Initialize winsock library
Send data
Send data on socket
Set socket configuration

Disassembly:
mov r11, rsp
sub rsp, 0x178
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x160], rax
cmp byte [0x140005e38], 0
mov qword [r11 - 8], rdi
mov edi, 2
mov byte [rsp + 0x50], 1
jne 0x140001127
mov qword [r11 + 8], rbx
lea rdx, [0x140005c60]
mov ebx, 0x202
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14000105d
call fcn.1400012a0
jmp 0x14000111f
cmp word [0x140005c60], bx
je 0x140001084
xor r9d, r9d
lea r8, [0x140003fe0]
lea rdx, str.VERSION_ERROR_
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x14000111f
mov r8d, sendto
mov edx, edi
mov ecx, edi
call qword [sym.imp.WS2_32.dll_socket]
mov qword [0x140005e00], rax
cmp rax, 0xffffffffffffffff
jne 0x1400010a8
call fcn.1400012a0
jmp 0x14000111f
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 1
mov edx, 0xffff
mov r8d, 0x20
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x1400010d4
call fcn.1400012a0
jmp 0x14000111f
xor ecx, ecx
lea rax, [rsp + 0x54]
mov qword [rsp + 0x40], rcx
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], rcx
mov r9d, 4
mov qword [rsp + 0x30], rax
mov edx, 0x9800000c
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rcx
mov dword [rsp + 0x58], ecx
mov dword [rsp + 0x54], ecx
mov rcx, qword [0x140005e00]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov byte [0x140005e38], 1
mov rbx, qword [rsp + 0x180]
mov ecx, 0xc2bb
call qword [sym.imp.WS2_32.dll_htons]
lea rcx, str.127.0.0.1
mov word [0x140005e18], di
mov word [0x140005e1a], ax
call qword [sym.imp.WS2_32.dll_inet_addr]
movsd xmm0, qword [str.Hello__World_]
lea rcx, [rsp + 0x6e]
mov dword [0x140005e1c], eax
xor edx, edx
mov eax, dword [0x1400032d8]
mov r8d, 0xf2
mov dword [rsp + 0x68], eax
movzx eax, word [0x1400032dc]
mov word [rsp + 0x6c], ax
mov byte [0x140005e39], 1
movsd qword [rsp + 0x60], xmm0
call sub.VCRUNTIME140.dll_memset
mov rdi, qword [rsp + 0x170]
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x1400011a4
mov rcx, qword [0x140005e00]
lea rax, [0x140005e18]
mov dword [rsp + 0x28], socket
lea rdx, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x1400011e1
call fcn.1400012a0
cmp byte [0x140005e38], 1
jne 0x14000120d
mov rcx, qword [0x140005e00]
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x140001200
call fcn.1400012a0
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov byte [0x140005e38], 0
xor eax, eax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400013e0
add rsp, 0x178
ret

Function at 0x140001ca0
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rdi, rcx
cmp dword [rcx + 0xc], ebx
jbe 0x180002ed4
mov r8, qword [rdi]
xor edx, edx
mov r8d, dword [r8 + rbx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180002ecd
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x180002ea1
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x18029f550]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_HeapFree]

Function at 0x180002ef8
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov dword [rax + 0x10], edx
push rdi
sub rsp, 0x20
mov eax, ecx
imul rdi, rax, 0x38
add rdi, qword [0x18029f580]
mov rdx, qword [rdi]
mov cl, byte [rdi + 0x20]
mov rsi, rdx
lea rbx, [rdx - 5]
and cl, 1
je 0x180002f31
mov rsi, rbx
movzx eax, cl
lea r9, [rsp + 0x38]
test cl, cl
mov r8d, 0x40
cmove rbx, rdx
lea rbp, [rax*2 + 5]
mov rcx, rbx
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180002f64
mov eax, 0xa
jmp 0x180002fb1
mov byte [rbx], 0xe9
mov eax, dword [rdi + 8]
sub eax, esi
sub eax, 5
mov dword [rbx + 1], eax
test byte [rdi + 0x20], 1
je 0x180002f80
mov rax, qword [rdi]
mov word [rax], 0xf9eb
mov r8d, dword [rsp + 0x38]
lea r9, [rsp + 0x38]
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [rdi + 0x20], 6
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x18000338c
Capabilities:
Check for software breakpoints

Disassembly:
mov r8b, byte [rcx]
mov r9d, edx
test r8b, r8b
je 0x1800033a3
cmp r8b, 0x90
je 0x1800033a3
cmp r8b, 0xcc
jne 0x1800033c5
mov r10d, 1
mov edx, r10d
cmp r9d, r10d
jbe 0x1800033c1
mov eax, edx
cmp byte [rax + rcx], r8b
jne 0x1800033c5
add edx, r10d
cmp edx, r9d
jb 0x1800033b1
mov eax, r10d
ret
xor eax, eax
ret
Function at 0x18000372c
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rbp - 0x58]
cmp rdi, 0x40000000
jbe 0x180003776
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rbx, qword [0x18029f570]
lea r12, [rdi + 0x40000000]
cmp qword [rbp - 0x50], r12
cmovbe r12, qword [rbp - 0x50]
sub r12, 0xfff
xor esi, esi
jmp 0x1800037af
cmp rbx, r14
jb 0x1800037ac
cmp rbx, r12
jae 0x1800037ac
cmp qword [rbx + 8], rsi
jne 0x180003911
mov rbx, qword [rbx]
test rbx, rbx
jne 0x180003798
mov r15, rdi
cmp rdi, r14
jb 0x1800038cb
mov r13d, dword [rbp - 0x38]
xor edx, edx
mov rax, r15
div r13
sub r15, rdx
jmp 0x1800037fb
mov r8d, Ordinal_50
lea rdx, [rbp - 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180003835
cmp dword [rbp - 0x10], 0x10000
je 0x180003805
mov r15, qword [rbp - 0x28]
cmp r15, r13
jb 0x180003835
sub r15, r13
cmp r15, r14
jae 0x1800037d1
jmp 0x180003835
test r15, r15
je 0x180003835
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x1800038d6
cmp r15, r14
jae 0x1800037c0
test rbx, rbx
jmp 0x1800038c9
mov r15d, dword [rbp - 0x38]
xor edx, edx
mov rax, rdi
mov r14d, r15d
div r15
mov eax, r15d
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r12
ja 0x180003911
mov r8d, Ordinal_50
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180003911
cmp dword [rbp - 0x10], 0x10000
je 0x1800038a4
xor edx, edx
lea edi, [r15 - 1]
add rdi, qword [rbp - 0x18]
add rdi, qword [rbp - 0x30]
mov rax, rdi
div r14
sub rdi, rdx
cmp rdi, r12
jbe 0x180003861
jmp 0x180003911
test rdi, rdi
je 0x180003911
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x1800038d6
cmp rdi, r12
jbe 0x18000383d
jmp 0x180003911
lea rcx, [rbx + 0x40]
mov dword [rbx + 0x10], esi
mov edx, 0x40
mov qword [rcx], rsi
mov rax, rcx
mov qword [rbx + 8], rcx
add rdx, 0x40
add rcx, 0x40
mov rsi, rax
cmp rdx, 0xfc0
jbe 0x1800038e2
mov rax, qword [0x18029f570]
mov qword [rbx], rax
mov qword [0x18029f570], rbx
lea r11, [rsp + 0x80]
mov rax, rbx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1800092f0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x18029b200]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x18029dac0]
mov edi, edx
mov esi, ecx
cmp byte [rbx + 0x1fd5], 0
jne 0x180009358
cmp byte [rbx + 0x1fd6], 0
jne 0x180009358
movsx r9d, word [rbx + 0x30b6]
lea r8, str.Tooltip__02d
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x20]
call fcn.18000dd20
test sil, 1
je 0x180009489
jmp 0x1800093f1
movss xmm1, dword [rbx + 0x1628]
lea r8, str.Tooltip__02d
movaps xmm0, xmm1
lea rcx, [rsp + 0x20]
mulss xmm0, dword [0x180127a94]
xor eax, eax
mov edx, reloc.WS2_32.dll_recv
mulss xmm1, dword [0x180127a88]
addss xmm0, dword [rbx + 0x128]
addss xmm1, dword [rbx + 0x12c]
or dword [rbx + 0x1d38], 1
mov qword [rbx + 0x1d50], rax
movss dword [rbx + 0x1d48], xmm0
mov dword [rbx + 0x1d3c], 1
movss dword [rbx + 0x1d4c], xmm1
movss xmm0, dword [rbx + 0x1690]
mov rax, qword [0x18029dac0]
mulss xmm0, dword [0x180127a34]
or dword [rax + 0x1d38], 0x40
movss dword [rax + 0x1d98], xmm0
movsx r9d, word [rbx + 0x30b6]
call fcn.18000dd20
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x180009441
lea r11, [0x180127180]
cmp r9b, 0x23
jne 0x180009424
cmp byte [r8], r9b
jne 0x180009424
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x180009411
not ecx
call fcn.18000c920
test rax, rax
je 0x180009489
cmp byte [rax + 0x8e], 0
je 0x180009489
mov byte [rax + 0x95], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xb0], 1
lea rcx, [rsp + 0x20]
inc word [rbx + 0x30b6]
mov edx, reloc.WS2_32.dll_recv
movsx r9d, word [rbx + 0x30b6]
call fcn.18000dd20
or edi, 0x20c0347
lea rcx, [rsp + 0x20]
mov r8d, edi
xor edx, edx
call fcn.180005d90
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.18011eca0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x18000d0f0
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0xd0]
lea r8, [0x180127180]
movsxd rcx, dword [rcx + 0xc8]
mov r11d, edx
shr r11d, 0x18
mov r9d, edx
shr r9d, 8
mov r10d, edx
shr r10d, 0x10
mov ebx, dword [rax + rcx*4 - 4]
not ebx
movzx eax, dl
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, r9b
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, r10b
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
mov rax, qword [0x18029dac0]
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
shr ebx, 8
xor rcx, r11
xor ebx, dword [r8 + rcx*4]
not ebx
cmp dword [rax + 0x1c8c], ebx
jne 0x18000d17c
mov dword [rax + 0x1c90], ebx
cmp dword [rax + 0x1cc8], ebx
jne 0x18000d18b
mov byte [rax + 0x1ccc], 1
mov rcx, qword [0x18029dac0]
cmp dword [rcx + 0x1c74], ebx
jne 0x18000d1ac
movsxd r8, edx
xor r9d, r9d
mov edx, 4
mov ecx, ebx
call fcn.18000afb0
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x18000df20
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 0x18000df7d
lea rbx, [0x180127180]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x18000df64
cmp r10, 2
jb 0x18000df64
cmp byte [r9], r8b
jne 0x18000df64
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 0x18000df40
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x18000dfbf
lea rbx, [0x180127180]
cmp r8b, 0x23
jne 0x18000dfa3
cmp byte [r9], r8b
jne 0x18000dfa3
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 0x18000df90
mov rbx, qword [rsp + 8]
not eax
ret