joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140068670
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
cmp byte [rcx + 0xf1e], 0
movsxd r10, r9d
je 0x140068794
cmp r8d, 0xff
jne 0x1400686d1
lea eax, [r10 - 0xec]
cmp eax, 0x13
ja 0x1400686bb
lea r8, [0x140000000]
mov r9, qword [r8 + r10*8 + 0x8cad0]
mov r8, rdx
lea rdx, str._s_IAC__s_n
add rsp, 0x38
jmp fcn.140044fd0
mov r8, rdx
mov r9d, r10d
lea rdx, str._s_IAC__d_n
add rsp, 0x38
jmp fcn.140044fd0
cmp r8d, 0xfb
jne 0x1400686e3
lea r9, str.WILL
jmp 0x140068721
cmp r8d, 0xfc
jne 0x1400686f5
lea r9, str.WONT
jmp 0x140068721
cmp r8d, 0xfd
jne 0x140068707
lea r9, [0x14008d4f4]
jmp 0x140068721
xor r9d, r9d
lea rax, str.DONT
cmp r8d, 0xfe
cmove r9, rax
test r9, r9
je 0x14006877d
cmp r10d, 0x27
jg 0x140068754
lea r8, [0x140000000]
mov r8, qword [r8 + r10*8 + 0x8d0f0]
test r8, r8
jne 0x140068764
mov r8, rdx
mov dword [rsp + 0x20], r10d
lea rdx, str._s__s__d_n
call fcn.140044fd0
add rsp, 0x38
ret
cmp r10d, 0xff
jne 0x14006873b
lea r8, str.EXOPL
mov qword [rsp + 0x20], r8
mov r8, rdx
lea rdx, str._s__s__s_n
call fcn.140044fd0
add rsp, 0x38
ret
mov r9d, r8d
mov dword [rsp + 0x20], r10d
mov r8, rdx
lea rdx, str._s__d__d_n
call fcn.140044fd0
add rsp, 0x38
ret

Function at 0x140068ae0
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x10], 0xff
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x4c0]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140068b3f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140044e50
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.140068670
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140068cf0
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x140068e98
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 0x140068d55
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x140068d55
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140068d55
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 0x140068d8c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x140068de2
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140068de2
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140068de2
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140068de2
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140068de2
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.1400687a0
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 0x140068e44
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140044e50
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.140068b70
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 0x140068e90
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140044e50
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x14006a600
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1400a1080]
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 0x14006a695
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 0x14006a6f6
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.140044e50
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.14007ded0
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 0x14006a7b1
sub ecx, 1
je 0x14006a824
sub ecx, 1
je 0x14006a760
cmp ecx, 1
je 0x14006a743
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x14008af50]
call fcn.140044e50
jmp 0x14006a824
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.14006a330
test eax, eax
je 0x14006a824
jmp 0x14006a6ca
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 0x14006a824
sub rax, rsi
cmp rax, rbp
jae 0x14006a824
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.140044fd0
jmp 0x14006a824
cmp r8d, 4
jle 0x14006a824
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 0x14006a824
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.140044d70
mov esi, eax
test eax, eax
je 0x14006a803
mov edx, 5
mov rcx, rbx
call fcn.14006b2f0
mov eax, esi
jmp 0x14006a6ca
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.140053720
mov rcx, r14
call fcn.140053a00
test eax, eax
je 0x14006a6c8
mov edx, 5
mov rcx, rbx
call fcn.14006b2f0
mov eax, Ordinal_45
jmp 0x14006a6ca
Function at 0x14007d5c0
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 0x14007d602
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 0x14007d649
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 0x14007d6a2
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 0x14007d660
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14007d6e3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400906da]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400906db]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14007d6b0
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 0x14007d700
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14007d73a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14007d73f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14007d788
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x14007d788
dec r8
sub rdx, 1
jne 0x14007d76e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14007ece4
Capabilities:
Parse pe header

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

Disassembly:
call fcn.14248f1df
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 0x14248f089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14248f06f
add dl, dl
jne 0x14248f096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14248f0f6
xor eax, eax
add dl, dl
jne 0x14248f0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14248f1ad
add dl, dl
jne 0x14248f0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14248f0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14248f0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14248f0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14248f0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14248f07e
mov eax, 1
add dl, dl
jne 0x14248f106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14248f113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14248f0fb
sub eax, ebx
mov ebx, 1
jne 0x14248f14c
mov ecx, 1
add dl, dl
jne 0x14248f12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14248f13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14248f123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14248f07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14248f168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14248f175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14248f15d
cmp eax, 0x7d00
jae 0x14248f19b
cmp eax, 0x500
jb 0x14248f196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14248f07e
cmp eax, 0x7f
ja 0x14248f19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14248f07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14248f1d2
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 0x14248f07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400023f0
Capabilities:
Query environment variable

Disassembly:
push r12
push r13
push r14
push r15
sub rsp, 0x38
mov r12d, r9d
mov r14, r8
mov r13d, edx
mov r15, rcx
test rcx, rcx
je 0x140002607
test edx, edx
je 0x140002607
lea rdx, str.SystemRoot_
mov qword [rsp + 0x30], rdi
xor edi, edi
mov r8, rcx
sub r8, rdx
mov r10b, 0x5c
mov rax, rdx
cmp byte [r8 + rax], r10b
jne 0x1400025cf
movzx r10d, byte [rax + 1]
inc rax
inc edi
test r10b, r10b
jne 0x140002433
mov ecx, 0x104
mov qword [rsp + 0x68], rbp
call fcn.14000a970
mov rbp, rax
test rax, rax
jne 0x140002468
mov byte [r14], al
jmp 0x1400024ad
mov r8d, 0x104
mov qword [rsp + 0x60], rbx
mov rdx, rbp
lea rcx, str.SystemRoot
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov rcx, qword [0x14002fc48]
mov ebx, eax
test eax, eax
jne 0x1400024c4
lea rdx, str._IntelFWUpdateService_:_Could_not_find_the_SystemRoot_System_Environment_Variable__
call fcn.1400018b0
mov rcx, rbp
mov byte [r14], 0
call fcn.14000a950
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
ret
mov r9d, ebx
mov qword [rsp + 0x70], rsi
mov r8, rbp
lea rdx, str._IntelFWUpdateService_:_System_Root_Variable:___s___Length:__lu_n
call fcn.1400018b0
mov ecx, 0x104
call fcn.14000a970
mov rsi, rax
test rax, rax
je 0x1400025bd
lea edx, [rbx + 1]
mov r8, rbp
mov rcx, rax
call fcn.14000ee30
add rbx, rsi
lea r8, [0x1400204f4]
mov rcx, rbx
mov edx, 2
call fcn.14000ee30
movsxd r8, edi
lea rcx, [rbx + 1]
sub r13d, edi
add r8, r15
movsxd rdx, r13d
call fcn.14000ee30
mov rcx, qword [0x14002fc48]
lea rdx, str._n_s_n
mov r8, rsi
call fcn.1400018b0
mov edx, 0x5c
mov rcx, rsi
call fcn.1400078e0
test rax, rax
je 0x14000259e
mov byte [rax + 1], 0
sub eax, esi
inc eax
cmp r12d, 2
jne 0x14000256f
lea r8, str.OPROM_
lea edx, [r12 + 5]
jmp 0x140002581
cmp r12d, 5
jne 0x1400025b5
lea r8, str.FWDATA_
lea edx, [r12 + 3]
movsxd rcx, eax
add rcx, rsi
call fcn.14000ee30
mov r8, rsi
mov edx, 0x104
mov rcx, r14
call fcn.14000ee30
jmp 0x1400025b5
mov byte [r14], 0
lea rdx, str._IntelFWUpdateService_:_Path_Error_in_Image_Path_String_n
mov rcx, qword [0x14002fc48]
call fcn.1400018b0
mov rcx, rsi
call fcn.14000a950
mov rcx, rbp
call fcn.14000a950
mov rsi, qword [rsp + 0x70]
jmp 0x1400024a8
movsxd rcx, edi
mov r8d, edi
movsx eax, byte [rcx + rdx]
lea rdx, str._IntelFWUpdateService_:_Mismatch_Index:__d___c____c__n
movsx r9d, byte [rcx + r15]
mov rcx, qword [0x14002fc48]
mov dword [rsp + 0x20], eax
call fcn.1400018b0
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
ret
mov byte [r8], 0
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
ret
Function at 0x140003870
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x3b0
mov rax, qword [0x14002f198]
xor rax, rsp
mov qword [rsp + 0x3a0], rax
mov r15, qword [rsp + 0x410]
mov ebp, edx
mov qword [rsp + 0x30], r8
mov r13, rcx
mov dword [rsp + 0x20], edx
lea rcx, [rsp + 0x290]
xor edx, edx
mov qword [rsp + 0x28], r15
mov r8d, 0x104
mov qword [rsp + 0x38], r9
call fcn.140007550
xor edx, edx
lea rcx, [rsp + 0x180]
mov r8d, 0x104
call fcn.140007550
xor esi, esi
mov ecx, ebp
xor r14d, r14d
xor ebx, ebx
lea edi, [rsi + 1]
call fcn.1400011f0
mov r12d, eax
test r13, r13
je 0x140003ab4
test eax, eax
je 0x140003ab4
mov ecx, eax
sub ecx, edi
je 0x140003954
cmp ecx, edi
jne 0x140003ab4
mov r8, r13
mov byte [rsp + 0x180], bl
mov edx, 0x104
lea rcx, [rsp + 0x180]
call fcn.140005ff0
lea r8, str.dg__.bin
mov edx, 0x104
lea rcx, [rsp + 0x180]
call fcn.140005ff0
lea rdx, str._n_n_IntelFWUpdateService_:_for_IFWI_data_bin____Search_Folder_:___s_n
jmp 0x140003990
mov r8, r13
mov byte [rsp + 0x180], bl
mov edx, 0x104
lea rcx, [rsp + 0x180]
call fcn.140005ff0
lea r8, str.dg__.rom
mov edx, 0x104
lea rcx, [rsp + 0x180]
call fcn.140005ff0
lea rdx, str._n_n_IntelFWUpdateService_:_for_OPROM____Search_Folder_:___s_n
mov rcx, qword [0x14002fc48]
lea r8, [rsp + 0x180]
xor edi, edi
call fcn.1400018b0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x180]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x140003a9b
nop word [rax + rax]
mov r8, r13
mov byte [rsp + 0x290], 0
mov edx, 0x104
lea rcx, [rsp + 0x290]
call fcn.140005ff0
lea r8, [rsp + 0x6c]
mov edx, 0x104
lea rcx, [rsp + 0x290]
call fcn.140005ff0
lea rcx, [rsp + 0x290]
call fcn.140001340
movzx ebp, al
mov ecx, ebp
call fcn.1400011f0
mov ecx, ebp
call fcn.1400011f0
cmp eax, r12d
jne 0x140003a74
cmp bpl, 2
jne 0x140003a6c
lea rdx, [0x140020314]
lea rcx, [rsp + 0x6c]
call qword [sym.imp.SHLWAPI.dll_StrStrA]
test rax, rax
je 0x140003a4a
inc esi
inc ebx
jmp 0x140003a74
lea rdx, [0x140020318]
lea rcx, [rsp + 0x6c]
call qword [sym.imp.SHLWAPI.dll_StrStrA]
test rax, rax
jne 0x140003a65
inc esi
inc ebx
inc ebx
inc r14d
jmp 0x140003a74
cmp bpl, 5
jne 0x140003a74
inc ebx
lea rdx, [rsp + 0x40]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1400039d0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindClose]
mov ebp, dword [rsp + 0x20]
xor edi, edi
jmp 0x140003aaf
lea rdx, [rsp + 0x180]
lea rcx, str.Error_locating_the_Search_folder_:__s_n
call fcn.1400021e0
mov r15, qword [rsp + 0x28]
mov rax, qword [rsp + 0x30]
mov dword [rax], ebx
cmp ebp, 2
jne 0x140003ad7
test esi, esi
jle 0x140003acb
mov rax, qword [rsp + 0x38]
mov dword [rax], esi
mov eax, edi
test r14d, r14d
jle 0x140003ad9
mov dword [r15], r14d
jmp 0x140003ad9
mov eax, edi
mov rcx, qword [rsp + 0x3a0]
xor rcx, rsp
call fcn.1400067e0
mov rbx, qword [rsp + 0x3f0]
add rsp, 0x3b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140007210
Capabilities:
Parse pe header

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

Function at 0x14000bcd8
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.14001e6e0
sub rsp, rax
mov rax, qword [0x14002f198]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140011f60
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14000bd27
mov rax, rbp
jmp 0x14000be2f
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, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x30750]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140013ea4
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x30750]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14000be2b
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 0x14000be2b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140013ea4
test rax, rax
js 0x14000be2b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14000be2b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14000be1d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14000be1d
cmp byte [rcx], 0xd
jne 0x14000be03
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14000be12
cmp byte [rcx + 1], 0xa
jne 0x14000be12
inc rcx
jmp 0x14000be12
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x2f4c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14000bde5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14000be2f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400067e0
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 0x1400130dc
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, [0x140030750]
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 0x140013133
cmp word [rdx], r13w
jne 0x140013133
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140013138
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001325d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001327e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140013171
mov rdx, r9
mov word [rbx], cx
jmp 0x140013198
cmp r9, r8
jae 0x1400131a8
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 0x140013152
jmp 0x14001325d
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 0x140013252
cmp dword [rsp + 0x80], esi
je 0x140013252
lea r8, [0x140030750]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001322a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400131fa
mov word [rbx], r13w
jmp 0x14001325a
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 0x140013207
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001325a
cmp word [rsp + 0x70], r13w
jne 0x140013237
cmp rbx, r14
je 0x1400131f4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140013eac
cmp word [rsp + 0x70], r13w
je 0x14001325d
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, [0x140030750]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140013257
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001325d