joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140097030
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x1400971d8
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x140097095
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x140097095
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140097095
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x1400970cc
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x140097122
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140097122
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140097122
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140097122
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140097122
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.140096ae0
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x140097184
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140072e90
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.140096eb0
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400971d0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140072e90
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x140098940
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1400d6080]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x1400989d5
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x140098a36
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.140072e90
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400abb90
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x140098af1
sub ecx, 1
je 0x140098b64
sub ecx, 1
je 0x140098aa0
cmp ecx, 1
je 0x140098a83
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400c5b40]
call fcn.140072e90
jmp 0x140098b64
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.140098670
test eax, eax
je 0x140098b64
jmp 0x140098a0a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x140098b64
sub rax, rsi
cmp rax, rbp
jae 0x140098b64
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.140073010
jmp 0x140098b64
cmp r8d, 4
jle 0x140098b64
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x140098b64
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.140072db0
mov esi, eax
test eax, eax
je 0x140098b43
mov edx, 5
mov rcx, rbx
call fcn.140099630
mov eax, esi
jmp 0x140098a0a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.140081890
mov rcx, r14
call fcn.140081b70
test eax, eax
je 0x140098a08
mov edx, 5
mov rcx, rbx
call fcn.140099630
mov eax, Ordinal_45
jmp 0x140098a0a
Function at 0x1400ab900
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400ab942
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400ab989
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400ab9e2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400ab9a0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400aba23
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400bf2fa]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400bf2fb]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400ab9f0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x1400acc78
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14001f1c0]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x1400071f8
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140007188
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x1400211f0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020628]
jmp 0x140007234
cmp qword [rbx + 0x18], rdi
je 0x14000723b
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14000722b
jmp 0x140007255
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140020628]
call fcn.140011fd8
lea rcx, [0x1400211f0]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rdi - 0x41000000], bh
add byte [rax], al
add byte [rdi - 0x41000000], bh
add byte [rax], al
add byte [rdi - 0x41000000], bh
add byte [rax], al
add byte [rdi - 0x41000000], bh
add byte [rdi - 0x41000000], bh
add byte [rax], al
add byte [rdi - 0x41000000], bh
add byte [rax], al
add byte [rdi - 0x41000000], bh
add byte [rax], al
add byte [rdi - 0x41000000], bh
add byte [rax], al
add byte [rdi - 0x41000000], bh
add byte [rax], al
add byte [rdi - 0x41000000], bh
add byte [rax], al
add byte [rdi - 0x41000000], bh
add byte [rax], al
add byte [rdi - 0x41000000], bh
add byte [rax], al
add byte [rdi - 0x41000000], bh
add byte [rax], al
add byte [rdi - 0x41000000], bh
add byte [rax], al
add byte [rdi - 0x41000000], bh
add byte [rax], al
add byte [rdi - 0x41000000], bh
add byte [rax], al
invalid
invalid
add byte [rdi - 0x41000000], bh
add byte [rax], al
add byte [rdi - 0x41000000], bh
add byte [rax], al
add byte [rdi - 0x41000000], bh
add byte [rax], al
add byte [rdi - 0x41000000], bh
add byte [rax], al
add byte [rdi - 0x41000000], bh
add byte [rax], al
add byte [rdi - 0x41000000], bh
add byte [rax], al
add byte [rdi - 0x41000000], bh
add byte [rax], al
add byte [rdi - 0x41000000], bh
add byte [rax], al
add byte [rdi - 0x41000000], bh
add byte [rax], al
add byte [rdi - 0x41000000], bh
add byte [rax], al
add byte [rdi - 0x41000000], bh
add byte [rax], al
add byte [rdi - 0x41000000], bh
add byte [rax], al
add byte [rax], al
add bh, bh
Function at 0x18000379b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
mov rbp, rsp
push rsi
push rbx
sub rsp, 0xa0
mov qword [rbp - 0x18], rcx
call fcn.1800033a4
mov edx, dword [0x18005e2e4]
mov rcx, rax
movsxd r8, dword [rax + 0x3c]
mov dword [0x18005e2e0], 0x4f1
mov r9d, dword [rax + r8 + 0x88]
mov r8d, r9d
mov dword [0x18005e2e0], 0xfffff88b
mov r9d, dword [rax + r8 + 0x20]
mov r10d, r9d
mov r11, rcx
add r11, r10
mov r9d, dword [rax + r8 + 0x18]
cmp r9d, 0
mov qword [rbp - 0x20], r11
mov dword [rbp - 0x24], edx
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x38], r8
mov dword [rbp - 0x3c], r9d
je 0x180003843
mov rax, qword [rbp - 0x30]
mov rcx, qword [rbp - 0x38]
mov edx, dword [rax + rcx + 0x24]
mov r8d, edx
add rax, r8
mov edx, dword [rbp - 0x24]
add edx, 0xfffffd03
mov qword [rbp - 0x48], rax
mov dword [rbp - 0x4c], edx
xor eax, eax
mov ecx, dword [rbp - 0x4c]
mov rdx, qword [rbp - 0x48]
mov qword [rbp - 0x58], rdx
mov dword [rbp - 0x5c], ecx
mov dword [rbp - 0x60], eax
jmp 0x18000385a
xor eax, eax
mov ecx, eax
mov dword [0x18005e2e4], 0x1abe
mov qword [rbp - 0x68], rcx
jmp 0x1800039b9
mov eax, dword [rbp - 0x60]
mov rcx, qword [rbp - 0x58]
mov edx, dword [rbp - 0x5c]
xor r8d, r8d
mov r9d, eax
mov r10d, r9d
mov r11, qword [rbp - 0x20]
mov r9d, dword [r11 + r10*4]
mov r10d, r9d
mov dword [0x18005e2e0], 0x1341
mov dword [0x18005e2e4], edx
mov dword [rbp - 0x6c], eax
mov qword [rbp - 0x78], rcx
mov qword [rbp - 0x80], r10
mov dword [rbp - 0x84], r8d
mov eax, dword [rbp - 0x84]
mov ecx, eax
mov edx, ecx
mov dword [0x18005e2e4], 0x10b6
mov r8, rdx
mov r9, qword [rbp - 0x80]
add r8, r9
mov r10, qword [rbp - 0x30]
mov r11b, byte [r10 + r8]
mov r8, qword [rbp - 0x18]
mov bl, byte [r8 + rdx]
cmp r11b, bl
sete sil
cmp r11b, 0
mov dword [rbp - 0x88], eax
mov byte [rbp - 0x89], sil
mov byte [rbp - 0x8a], bl
je 0x180003924
mov eax, dword [rbp - 0x88]
add eax, 1
mov cl, byte [rbp - 0x8a]
cmp cl, 0
setne dl
mov r8b, byte [rbp - 0x89]
and r8b, dl
cmp eax, 0x20
setb dl
and r8b, dl
test r8b, 1
mov dword [rbp - 0x84], eax
jne 0x18000389a
mov al, byte [rbp - 0x89]
test al, 1
jne 0x18000396f
jmp 0x180003930
mov eax, 0xdb9
mov ecx, dword [rbp - 0x6c]
add ecx, 1
mov rdx, qword [rbp - 0x78]
add rdx, 2
mov dword [0x18005e2e0], 0x1340
mov r8d, dword [rbp - 0x3c]
cmp ecx, r8d
mov qword [rbp - 0x58], rdx
mov dword [rbp - 0x5c], eax
mov dword [rbp - 0x60], ecx
jb 0x18000385a
jmp 0x180003843
mov rax, qword [rbp - 0x78]
mov cx, word [rax]
mov rdx, qword [rbp - 0x30]
mov r8, qword [rbp - 0x38]
mov r9d, dword [rdx + r8 + 0x1c]
mov r10d, r9d
add rdx, r10
movzx r9d, cx
mov r10d, r9d
mov r9d, dword [rdx + r10*4]
mov dword [0x18005e2e4], 0xb0f
mov r9d, r9d
mov edx, r9d
mov r10, qword [rbp - 0x30]
add r10, rdx
mov dword [0x18005e2e0], 0x2092
mov qword [rbp - 0x68], r10
mov rax, qword [rbp - 0x68]
add rsp, 0xa0
pop rbx
pop rsi
pop rbp
ret
Function at 0x1800039c8
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xa0
mov dword [0x18005e2e0], 0x1a78
mov qword [rbp - 0x28], rcx
xor eax, eax
mov ecx, eax
xor eax, eax
mov dword [0x18005e2e4], 0x387
mov qword [rbp - 0x30], rcx
mov dword [rbp - 0x34], eax
mov eax, dword [rbp - 0x34]
mov rcx, qword [rbp - 0x30]
lea rdx, section..data
imul r8, rcx, 0x168
mov r9, rdx
add r9, r8
add r9, 0xc0
mov r10d, dword [r9]
imul r8, rcx, 0x168
add rdx, r8
add rdx, 0x10
xor r10d, dword [rdx]
add r10d, eax
add rcx, 1
cmp rcx, 0x3eb
mov eax, r10d
mov dword [rbp - 0x38], r10d
mov qword [rbp - 0x30], rcx
mov dword [rbp - 0x34], eax
jne 0x1800039f8
xor eax, eax
mov ecx, eax
lea rdx, [rbp - 0x20]
mov dword [0x18005e2e4], 0xff97973a
mov dword [0x18005e2e0], 0x33a9
mov byte [rbp - 0x20], 0x56
mov qword [rbp - 0x40], rdx
mov qword [rbp - 0x48], rcx
mov rax, qword [rbp - 0x48]
lea rcx, [0x1800055e3]
lea rdx, [0x1800056a0]
mov r8, rax
add r8, 1
mov r9b, byte [rdx + rax + 1]
mov r10b, byte [rcx + rax + 1]
sub r10b, r9b
mov byte [rbp + rax - 0x1f], r10b
cmp r8, 0xd
mov qword [rbp - 0x48], r8
jne 0x180003a7a
mov dword [0x18005e2e0], 0x18722
mov dword [0x18005e2e4], 0x153a
call fcn.180004585
mov rcx, rax
mov rdx, qword [rbp - 0x40]
call fcn.18000346f
xor r8d, r8d
mov ecx, r8d
mov r8d, 0x1000
mov r9d, 4
mov r10d, dword [rbp - 0x38]
mov r11d, r10d
mov edx, r11d
call rax
xor r8d, r8d
mov ecx, r8d
xor r8d, r8d
mov r9d, dword [0x18005e2e0]
add r9d, 0xfffffacd
mov dword [0x18005e2e0], r9d
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x58], rcx
mov dword [rbp - 0x5c], r8d
mov eax, dword [rbp - 0x5c]
mov rcx, qword [rbp - 0x58]
lea rdx, section..data
imul r8, rcx, 0x168
mov r9, rdx
add r9, r8
add r9, 0xc0
mov r10d, dword [r9]
imul r8, rcx, 0x168
mov r9, rdx
add r9, r8
add r9, 0x160
mov r8, qword [r9]
mov r11d, dword [0x18005e2e4]
add r11d, 0xfffff9b0
mov dword [0x18005e2e0], r11d
imul r9, rcx, 0x168
add rdx, r9
add rdx, 0x10
xor r10d, dword [rdx]
mov r11d, eax
mov edx, r11d
mov r9, qword [rbp - 0x50]
add r9, rdx
mov r11d, r10d
mov edx, r11d
mov qword [rbp - 0x68], rcx
mov rcx, r9
mov qword [rbp - 0x70], rdx
mov rdx, r8
mov r8, qword [rbp - 0x70]
mov dword [rbp - 0x74], eax
mov dword [rbp - 0x78], r10d
call fcn.1800047d9
mov eax, dword [rbp - 0x78]
mov r10d, dword [rbp - 0x74]
add eax, r10d
mov rcx, qword [rbp - 0x68]
add rcx, 1
cmp rcx, 0x3eb
mov qword [rbp - 0x58], rcx
mov dword [rbp - 0x5c], eax
jne 0x180003b22
mov eax, dword [0x18005e2e4]
add eax, 0xfffff7f6
mov dword [0x18005e2e4], eax
mov rcx, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x50]
mov r8d, dword [rbp - 0x38]
call fcn.180004702
mov rcx, qword [rbp - 0x50]
add rcx, 0x125ca5
mov rdx, qword [rbp - 0x28]
mov qword [rdx], rcx
mov qword [rdx + 8], 0x1b9800
mov rcx, qword [rbp - 0x50]
add rcx, 0x105017
mov qword [rbp - 0x80], rcx
mov rax, qword [rbp - 0x28]
mov rcx, qword [rbp - 0x80]
mov qword [rax + 0x10], rcx
mov dword [0x18005e2e4], 0x115f
mov qword [rax + 0x18], 0x2030
mov dword [0x18005e2e0], 0xffffe548
xor eax, eax
add rsp, 0xa0
pop rbp
ret
Function at 0x18000400b
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x28
mov dword [0x18005e2e0], 0x25a
mov eax, dword [0x18005e2e4]
add eax, 0xfffff307
mov dword [rbp - 4], eax
lea rax, [fcn.18000400b]
mov ecx, dword [rbp - 4]
mov dword [rbp - 8], ecx
mov qword [rbp - 0x10], rax
jmp 0x18000403e
mov rax, qword [rbp - 0x10]
mov ecx, dword [rbp - 8]
cmp word [rax], 0x5a4d
mov qword [rbp - 0x18], rax
mov dword [rbp - 0x1c], ecx
jne 0x180004077
mov rax, qword [rbp - 0x18]
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x180004077
mov eax, dword [rbp - 0x1c]
mov dword [0x18005e2e4], eax
mov rax, qword [rbp - 0x18]
add rsp, 0x28
pop rbp
ret
mov rax, qword [rbp - 0x18]
add rax, 0xfffffffffffff000
and rax, 0xfffffffffffff000
mov qword [rbp - 0x28], rax
mov eax, 0x423
mov rcx, qword [rbp - 0x28]
mov dword [rbp - 8], eax
mov qword [rbp - 0x10], rcx
jmp 0x18000403e
Function at 0x140001954
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor esi, esi
mov r14, r8
mov r15, rdx
mov rbx, rcx
test rcx, rcx
je 0x140001a01
mov rax, qword [rcx + 0x78]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140001a01
movzx edi, word [rcx + 0x28]
lea ecx, [rsi + 0x40]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [r15], rax
test rax, rax
je 0x140001a10
mov rcx, qword [rbx + 0x78]
mov r9, r14
and qword [rsp + 0x20], rsi
mov r8d, edi
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
test eax, eax
je 0x1400019d2
mov edx, dword [r14]
cmp edx, edi
je 0x140001a10
lea rbp, str.ERROR_kull_m_busylight_device_read_raw____device__u___u_byte_s__readed___u_wanted_n
jmp 0x1400019e4
lea rbp, str.ERROR_kull_m_busylight_device_read_raw____device__u__ReadFile__0x_08x__n
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [rbx + 8]
mov edi, eax
mov r8d, edi
mov rcx, rbp
call fcn.14000bf1c
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_LocalFree]
and dword [r14], 0
mov qword [r15], rax
jmp 0x140001a10
mov edx, dword [rcx + 8]
lea rcx, str.ERROR_kull_m_busylight_device_read_raw____device__u__Invalid_Device_Busy_Handle_n
call fcn.14000bf1c
mov rbx, qword [rsp + 0x50]
mov eax, esi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x140001ab0
Capabilities:
Write file on windows

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, 0x40
mov r14, rdx
mov rsi, rcx
mov edx, Ordinal_69
mov r15d, r9d
mov edi, r8d
lea ecx, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
xor r12d, r12d
mov rbx, rax
test rax, rax
je 0x140001c65
lea ebp, [r12 + 7]
cmp edi, ebp
jb 0x140001b0f
mov edx, edi
lea rcx, str.ERROR_kull_m_busylight_request_create___count_u__max_is_7__n
call fcn.14000bf1c
cmp edi, ebp
cmovb ebp, edi
mov r10d, r12d
mov edi, 1
test ebp, ebp
je 0x140001b9b
lea r9, [r14 + 2]
movzx edx, byte [r9 - 2]
lea r8d, [r10*8]
lea ecx, [r8 + 2]
mov al, dl
or al, 0x10
movzx eax, al
test dl, 0xf0
cmove edx, eax
lea eax, [r8 + 1]
add r10d, edi
mov byte [rax + rbx], dl
mov al, byte [r9 - 1]
mov byte [rcx + rbx], al
lea ecx, [r8 + 3]
mov al, byte [r9]
lea r9, [r9 + 8]
mov byte [rcx + rbx], al
lea ecx, [r8 + 4]
mov al, byte [r9 - 7]
mov byte [rcx + rbx], al
lea ecx, [r8 + 5]
mov al, byte [r9 - 6]
mov byte [rcx + rbx], al
lea ecx, [r8 + 6]
mov al, byte [r9 - 5]
mov byte [rcx + rbx], al
lea ecx, [r8 + 7]
mov al, byte [r9 - 4]
mov byte [rcx + rbx], al
lea ecx, [r8 + 8]
mov al, byte [r9 - 3]
mov byte [rcx + rbx], al
cmp r10d, ebp
jb 0x140001b22
or word [rbx + 0x3d], 0xffff
lea rdx, [rbx + 1]
mov dword [rbx + 0x39], 0xff550404
movzx ecx, r12w
mov r8d, 0x3e
movzx eax, byte [rdx]
add rdx, rdi
add cx, ax
sub r8, rdi
jne 0x140001bb6
movzx eax, cx
mov byte [rbx + 0x40], cl
shr ax, 8
mov byte [rbx + 0x3f], al
jmp 0x140001c51
mov rcx, qword [rsi + 0x78]
mov ebp, r12d
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140001c38
movzx r9d, word [rsi + 0x2a]
mov r8d, Ordinal_69
cmp r9d, r8d
jb 0x140001c27
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], r12
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebp, eax
test eax, eax
jne 0x140001c47
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [rsi + 8]
lea rcx, str.ERROR_kull_m_busylight_device_send_raw____device__u__WriteFile__0x_08x__n
mov r8d, eax
call fcn.14000bf1c
jmp 0x140001c47
mov edx, dword [rsi + 8]
lea rcx, str.ERROR_kull_m_busylight_device_send_raw____device__u__Size_is_not_valide__siz___u__max___u__n
call fcn.14000bf1c
jmp 0x140001c47
mov edx, dword [rsi + 8]
lea rcx, str.ERROR_kull_m_busylight_device_send_raw____device__u__Invalid_Device_Busy_Handle_n
call fcn.14000bf1c
and edi, ebp
test r15d, r15d
je 0x140001c5a
mov rsi, qword [rsi]
test rsi, rsi
jne 0x140001bd3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140001c68
mov edi, r12d
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rdi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop r12
ret