joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1c23820f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1c23dd074]
mov r12, rcx
test ebx, ebx
jle 0x1c2382220
mov rax, qword [0x1c23dd078]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x1c238213c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1c23821c3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x1c2382120
mov rcx, r12
call fcn.1c2382870
mov rsi, rax
test rax, rax
je 0x1c2382242
mov rax, qword [0x1c23dd078]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.1c23829a0
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1c23dd078]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1c2382227
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1c23821bc
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1c23821d0
add dword [0x1c23dd074], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x1c23dd078]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1c23821bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1c2382080
nop dword [rax]
xor ebx, ebx
jmp 0x1c2382147
mov rax, qword [0x1c23dd078]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1c2382080
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1c2382080
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1c23824e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1c23dd0a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1c23dd080]
test rbx, rbx
je 0x1c2382534
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x1c238252b
test r12, r12
je 0x1c238252b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1c2382510
lea rcx, [0x1c23dd0a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1c2382870
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1c23da200]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1c2382890
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1c2382898
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1c2382890
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x1c23828e5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1c23828dc
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1c2382890
add rax, 0x28
cmp rax, r9
jne 0x1c23828c8
xor eax, eax
ret

Function at 0x1c23828f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1c23da200]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1c2382910
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1c2382918
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x1c2382910
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x1c23829a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1c23da200]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1c23829c0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x1c23829c8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x140008c10
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
sub rsp, 0x98
mov rax, qword [0x14003e010]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rcx, qword [0x14003ffb0]
cmp dword [rcx + 0x11cba38], 1
jne 0x140008de0
mov r9d, 0xa
mov qword [r11 - 8], rdi
add rcx, 0x11caa08
mov qword [r11 + 8], rbx
lea rdx, str.K_0_0_c_c
lea r8d, [r9 + 3]
call fcn.1400010b0
mov rdx, qword [0x14003ffb0]
xor edi, edi
cmp dword [rdx + 0x11cba38], 1
jne 0x140008cb8
mov rbx, qword [rdx + 0x1280df8]
cmp dword [rbx + 8], 1
je 0x140008cb8
add rdx, 0x11caa08
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], dil
jne 0x140008c92
mov rcx, qword [rbx + 0x200028]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rbx + 0x200020], edi
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 0x1f4
call fcn.14000a530
movsxd r8, eax
test eax, eax
je 0x140008dd0
mov rbx, qword [0x14003ffb0]
mov edx, edi
mov rcx, qword [rbx + 0x1280df8]
jle 0x140008d19
mov r9d, dword [rcx + 0x200018]
mov eax, dword [rcx + 0x20001c]
cmp r9d, eax
je 0x140008d19
inc eax
mov dword [rcx + 0x20001c], eax
cmp eax, 0x100000
jb 0x140008d12
mov dword [rcx + 0x20001c], edi
inc edx
cmp edx, r8d
jl 0x140008cf2
xorps xmm0, xmm0
mov byte [r8 + rbx + 0xdb0a08], dil
movups xmmword [rsp + 0x60], xmm0
lea r11, [rbx + 0xdb0a0e]
mov r10, rdi
movups xmmword [rsp + 0x70], xmm0
nop dword [rax + rax]
mov r8d, edi
mov r9d, edi
mov rax, rdi
nop dword [rax]
movzx edx, byte [rax + r11]
lea ecx, [rdx - 0x30]
cmp cl, 9
ja 0x140008d6a
movsx ecx, cl
lea edx, [r8 + r8*4]
lea r8d, [rcx + rdx*2]
jmp 0x140008d75
cmp dl, 0x2d
jne 0x140008d80
mov r9d, 1
inc rax
cmp rax, 0x10
jl 0x140008d50
jmp 0x140008d88
cmp dl, 0x2c
jne 0x140008d88
inc rax
add r11, rax
mov eax, r8d
neg eax
cmp r9d, 1
movzx ecx, byte [r11]
cmovne eax, r8d
mov dword [rsp + r10*4 + 0x40], eax
lea eax, [rcx - 0x30]
cmp al, 9
jbe 0x140008db0
sub cl, 0x2c
cmp cl, 1
ja 0x140008dbc
inc r10
cmp r10, 0x1000
jl 0x140008d40
cmp dword [rsp + 0x6c], 0x128e0
jl 0x140008dd0
mov eax, dword [rsp + 0x70]
mov dword [rbx + 0x1280db0], eax
mov rbx, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140010d70
add rsp, 0x98
ret
Function at 0x140008e00
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xd0
mov rax, qword [0x14003e010]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov r9d, 0xa
lea rdx, str.DELSAMPLE_0_0_c_c
lea rcx, [rsp + 0x80]
lea r8d, [r9 + 3]
call fcn.1400010b0
mov rdi, qword [0x14003ffb0]
xor ebx, ebx
cmp dword [rdi + 0x11cba38], 1
jne 0x140008e9e
mov rdi, qword [rdi + 0x1280df8]
cmp dword [rdi + 8], 1
je 0x140008e9e
lea rax, [rsp + 0x80]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], bl
jne 0x140008e70
mov rcx, qword [rdi + 0x200028]
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x80]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rdi + 0x200020], ebx
call fcn.14000b4b0
mov rcx, qword [0x14003ffb0]
test eax, eax
jne 0x140008fb2
mov qword [rsp + 0xe0], rsi
add rcx, 0xdb0a08
movabs rsi, 0x100100002401
mov edx, ebx
nop dword [rax]
movzx eax, byte [rcx]
cmp al, 0x2c
ja 0x140008edd
bt rsi, rax
jb 0x140008eea
inc rcx
inc edx
cmp edx, 0x100
jl 0x140008ed0
lea rdx, [rsp + 0x38]
mov r8d, ebx
lea rdi, [rcx + 1]
movzx ecx, byte [rdi]
cmp cl, 0x2c
ja 0x140008f04
bt rsi, rcx
jb 0x140008f1a
mov byte [rdx], cl
inc rdi
inc rdx
inc r8d
cmp r8d, 0x100
jl 0x140008ef6
jmp 0x140008f1c
mov byte [rdx], bl
lea rcx, [rsp + 0x38]
call fcn.1400199c0
lea rdx, [rsp + 0x38]
inc rdi
mov r8d, ebx
movzx ecx, byte [rdi]
cmp cl, 0x2c
ja 0x140008f3f
bt rsi, rcx
jb 0x140008f55
mov byte [rdx], cl
inc rdi
inc rdx
inc r8d
cmp r8d, 0x100
jl 0x140008f31
jmp 0x140008f57
mov byte [rdx], bl
lea rcx, [rsp + 0x38]
call fcn.1400199c0
lea rax, [rsp + 0x58]
sub rdi, rax
lea rcx, [rsp + 0x58]
nop
movzx edx, byte [rdi + rcx + 1]
cmp dl, 0x2c
ja 0x140008f80
bt rsi, rdx
jb 0x140008f91
mov byte [rcx], dl
inc ebx
inc rcx
cmp ebx, 0x100
jl 0x140008f70
jmp 0x140008f94
mov byte [rcx], 0
lea rcx, [rsp + 0x58]
call fcn.1400199c0
mov rcx, qword [0x14003ffb0]
mov rsi, qword [rsp + 0xe0]
mov dword [rcx + 0x60], eax
jmp 0x140008fc0
mov eax, dword [rcx + 0x11cbacc]
test eax, eax
cmovg ebx, eax
mov dword [rcx + 0x60], ebx
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140010d70
mov rbx, qword [rsp + 0xe8]
add rsp, 0xd0
pop rdi
ret
Function at 0x140008ff0
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x1a0
mov rax, qword [0x14003e010]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov rax, qword [0x14003ffb0]
lea rcx, [rsp + 0x70]
mov dword [rax + 0x11cba8c], 0
call fcn.140018b2c
lea rcx, [rsp + 0x70]
call fcn.140018e98
mov r8, qword [0x14003ffb0]
mov rbx, rax
cmp dword [r8 + 0x11cba78], 0
je 0x140009250
add r8, 0xdb0308
lea rdx, str._sLogFile
lea rcx, [rsp + 0x90]
call fcn.1400010b0
lea rcx, [rsp + 0x90]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
cmp eax, 1
je 0x140009086
xor edx, edx
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov rax, qword [0x14003ffb0]
cmp dword [rax + 0x11cbab4], 0
jne 0x140009158
mov ecx, dword [rax + 0x11cba7c]
cmp ecx, 1
jne 0x1400090fc
mov edx, dword [rbx + 0x10]
lea rcx, [rax + 0xdb0408]
mov eax, dword [rbx]
lea r8, [rsp + 0x90]
mov r9d, dword [rbx + 0x14]
inc edx
mov dword [rsp + 0x48], 0x2e
add r9d, 0x76c
mov dword [rsp + 0x40], eax
mov eax, dword [rbx + 4]
mov dword [rsp + 0x38], eax
mov eax, dword [rbx + 8]
mov dword [rsp + 0x30], eax
mov eax, dword [rbx + 0xc]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edx
lea rdx, str._slog__04d__02d_02d__02d_02d_02d_RAW_ccsv
call fcn.1400010b0
jmp 0x1400091fd
cmp ecx, 2
jne 0x140009158
mov edx, dword [rbx + 0x10]
lea rcx, [rax + 0xdb0408]
mov eax, dword [rbx]
lea r8, [rsp + 0x90]
mov r9d, dword [rbx + 0x14]
inc edx
mov dword [rsp + 0x48], 0x2e
add r9d, 0x76c
mov dword [rsp + 0x40], eax
mov eax, dword [rbx + 4]
mov dword [rsp + 0x38], eax
mov eax, dword [rbx + 8]
mov dword [rsp + 0x30], eax
mov eax, dword [rbx + 0xc]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edx
lea rdx, str._slog__04d__02d_02d__02d_02d_02d_RAW_cbin
call fcn.1400010b0
jmp 0x1400091fd
cmp dword [rax + 0x1280dc4], 1
lea rcx, [0x140038840]
lea rdx, [0x14003883c]
cmovne rdx, rcx
lea rcx, [rsp + 0x78]
call fcn.1400010b0
mov rax, qword [0x14003ffb0]
lea r10, [rsp + 0x78]
mov r8d, dword [rbx + 0x10]
mov r9d, dword [rbx + 0x14]
inc r8d
mov dword [rsp + 0x60], 0x2e
add r9d, 0x76c
movsd xmm0, qword [rax + 0x78]
lea rcx, [rax + 0xdb0408]
mov eax, dword [rax + 0x50]
mulsd xmm0, qword [0x140039560]
mov qword [rsp + 0x58], r10
mov dword [rsp + 0x50], eax
mov eax, dword [rbx]
cvttsd2si edx, xmm0
mov dword [rsp + 0x48], edx
lea rdx, str._slog__04d__02d_02d__02d_02d_02d_R_05d_Th_02d__s_ccsv
mov dword [rsp + 0x40], eax
mov eax, dword [rbx + 4]
mov dword [rsp + 0x38], eax
mov eax, dword [rbx + 8]
mov dword [rsp + 0x30], eax
mov eax, dword [rbx + 0xc]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r8d
lea r8, [rsp + 0x90]
call fcn.1400010b0
mov rax, qword [0x14003ffb0]
xorps xmm0, xmm0
mov dword [rax + 0x1280dbc], 1
movups xmmword [rax + 0xdb0278], xmm0
movups xmmword [rax + 0xdb0288], xmm0
movups xmmword [rax + 0xdb0298], xmm0
movups xmmword [rax + 0xdb02a8], xmm0
movups xmmword [rax + 0xdb02b8], xmm0
movups xmmword [rax + 0xdb02c8], xmm0
movups xmmword [rax + 0xdb02d8], xmm0
movups xmmword [rax + 0xdb02e8], xmm0
movups xmmword [rax + 0xdb02f8], xmm0
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140010d70
add rsp, 0x1a0
pop rbx
ret
Function at 0x14000b570
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x48
mov rax, qword [0x14003e010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r8, qword [0x14003ffb0]
cmp dword [r8 + 0x1280e74], 0
je 0x14000b634
lea rcx, [r8 + 0x11caa08]
mov dword [rsp + 0x20], 0xa
mov r8d, dword [r8 + 0x1280e70]
lea rdx, str.AVERAGE__d_c_c
mov r9d, InitCommonControls
call fcn.1400010b0
mov rdx, qword [0x14003ffb0]
cmp dword [rdx + 0x11cba38], 1
jne 0x14000b624
mov qword [rsp + 0x40], rbx
mov rbx, qword [rdx + 0x1280df8]
cmp dword [rbx + 8], 1
je 0x14000b61f
add rdx, 0x11caa08
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x14000b5f0
mov rcx, qword [rbx + 0x200028]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rbx + 0x200020], 0
mov rbx, qword [rsp + 0x40]
call fcn.14000b4b0
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140010d70
add rsp, 0x48
ret
Function at 0x14000c7c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
sub rsp, 0x28
mov rcx, qword [0x14003ffb0]
lea rdx, [0x140038938]
add rcx, 0xdb0608
call fcn.1400150c4
mov rbp, rax
test rax, rax
jne 0x14000c806
mov rax, qword [0x14003ffb0]
xor esi, esi
mov dword [rax + 0x1280e04], esi
lea eax, [rbp - 1]
add rsp, 0x28
pop rsi
pop rbp
ret
mov rcx, qword [0x14003ffb0]
mov edx, 0x80
mov qword [rsp + 0x48], rbx
add rcx, 0xdb0a08
mov qword [rsp + 0x50], rdi
mov r9, rbp
mov qword [rsp + 0x20], r14
lea r8d, [rdx - 0x7f]
call fcn.14001d2ac
mov rcx, qword [0x14003ffb0]
xor esi, esi
mov r14d, esi
mov eax, dword [rcx + 0x11cba8c]
lea ebx, [rsi + 0x20]
inc eax
test eax, eax
jle 0x14000c95b
nop dword [rax]
nop word [rax + rax]
add rcx, 0xdb0a08
mov r9, rbp
mov r8d, 1
mov rdx, rbx
call fcn.14001d2ac
cmp eax, 1
jl 0x14000c928
mov rcx, qword [0x14003ffb0]
mov r9, rbp
mov r8d, 1
movzx eax, byte [rcx + 0xdb0a11]
movzx edi, byte [rcx + 0xdb0a10]
shl edi, 8
or edi, eax
movzx eax, byte [rcx + 0xdb0a12]
shl edi, 8
or edi, eax
movzx eax, byte [rcx + 0xdb0a13]
shl edi, 8
or edi, eax
movzx eax, byte [rcx + 0xdb0a24]
mov byte [rsp + 0x40], al
movzx eax, byte [rcx + 0xdb0a25]
mov byte [rsp + 0x41], al
movzx eax, byte [rcx + 0xdb0a26]
mov byte [rsp + 0x42], al
movzx eax, byte [rcx + 0xdb0a27]
mov byte [rsp + 0x43], al
lea eax, [rdi - 0x20]
movss xmm0, dword [rsp + 0x40]
cvtps2pd xmm0, xmm0
movsxd rdx, eax
movsd qword [rcx + 0x11cbaf0], xmm0
add rcx, 0xdb0a28
call fcn.14001d2ac
mov rcx, qword [0x14003ffb0]
inc r14d
mov eax, dword [rcx + 0x11cba8c]
inc eax
cmp r14d, eax
jl 0x14000c860
jmp 0x14000c95f
mov rcx, rbp
call fcn.140015644
mov rax, qword [0x14003ffb0]
mov dword [rax + 0x1280e04], esi
or dword [rax + 0xdb026c], 0x200
or dword [rax + 0xdb0270], 0x40000
mov eax, 0xffffffff
jmp 0x14000ca07
mov edi, dword [rsp + 0x40]
mov rcx, rbp
call fcn.140015644
mov r9, qword [0x14003ffb0]
movsxd rdi, edi
cmp rdi, rbx
jle 0x14000c9f9
movzx ecx, byte [r9 + 0xdb0a20]
lea r11, [r9 + 0x88]
movzx eax, byte [r9 + 0xdb0a21]
mov r10, rsi
shl rcx, 8
mov r14d, 0x100
or rcx, rax
add rcx, 6
lea rbp, [rcx + rcx*2]
shl rbp, 2
nop dword [rax]
lea r8, [rbx + r9]
inc esi
inc rbx
lea r11, [r11 + 8]
inc r10
lea rax, [rbx + r9]
inc rbx
movzx edx, byte [rax + 0xdb0a08]
movsx eax, r14w
imul edx, eax
movzx eax, byte [r8 + 0xdb0a08]
add ax, dx
cwde
movd xmm0, eax
cvtdq2pd xmm0, xmm0
movsd qword [r11 - 8], xmm0
cmp rbp, r10
jle 0x14000c9f9
cmp rbx, rdi
jl 0x14000c9b0
mov dword [r9 + 0x11cba08], esi
call fcn.14000ca20
xor eax, eax
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rsi
pop rbp
ret
Function at 0x14000cc20
Capabilities:
Create thread

Disassembly:
push rbx
push rdi
sub rsp, 0x78
mov rax, qword [0x14003e010]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rax, qword [rcx + 0x200028]
mov edi, r8d
dec rax
mov r10, rdx
mov rbx, rcx
cmp rax, 0xfffffffffffffffd
ja 0x14000cc56
mov eax, 1
jmp 0x14000cca1
mov qword [rsp + 0x70], rsi
xor r9d, r9d
xor esi, esi
xor r8d, r8d
mov qword [rsp + 0x30], rsi
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x80
mov rcx, r10
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbx + 0x200028], rax
cmp rax, 0xffffffffffffffff
jne 0x14000ccb5
mov dword [rbx + 8], 1
xor eax, eax
mov rsi, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140010d70
add rsp, 0x78
pop rdi
pop rbx
ret
mov edx, 0x100000
mov dword [rbx + 8], esi
mov r8d, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetupComm]
test eax, eax
je 0x14000cc9a
mov rcx, qword [rbx + 0x200028]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetCommState]
mov eax, dword [rsp + 0x48]
lea rdx, [rsp + 0x40]
mov rcx, qword [rbx + 0x200028]
and eax, 0xffff8001
or eax, 1
mov dword [rsp + 0x44], edi
mov dword [rsp + 0x48], eax
mov word [rsp + 0x52], 8
mov byte [rsp + 0x54], sil
call qword [sym.imp.KERNEL32.dll_SetCommState]
test eax, eax
je 0x14000cc9a
mov qword [rsp + 0x28], rsi
lea r8, [0x14000cd50]
mov r9, rbx
mov dword [rsp + 0x20], esi
xor edx, edx
xor ecx, ecx
call fcn.140014f28
mov qword [rbx + 0x200030], rax
mov eax, 1
jmp 0x14000cc9c

Function at 0x140011a54
Capabilities:
Parse pe header

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

Function at 0x14001d88c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001d67c
Function at 0x140021dcc
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.14002e2d0
sub rsp, rax
mov rax, qword [0x14003e010]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400207a8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140021e1b
mov rax, rbp
jmp 0x140021f23
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 + 0x3f9f0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140021a10
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x3f9f0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140021f1f
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 0x140021f1f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140021a10
test rax, rax
js 0x140021f1f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140021f1f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140021f11
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140021f11
cmp byte [rcx], 0xd
jne 0x140021ef7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140021f06
cmp byte [rcx + 1], 0xa
jne 0x140021f06
inc rcx
jmp 0x140021f06
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3e500]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140021ed9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140021f23
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140010d70
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 0x140023a20
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x1400239fd
call fcn.14001f0bc
mov dword [rax], 0x16
call fcn.14001ef80
or eax, 0xffffffff
jmp 0x140023a1a
sub dword [rcx + 0x10], 1
jns 0x140023a0c
add rsp, 0x28
jmp fcn.140025844
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x1400239dc
Function at 0x140024e30
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14003f9f0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x140024e8e
cmp word [rdx], r12w
jne 0x140024e8e
or byte [rax + r8*8 + 0x38], cl
jmp 0x140024e94
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x140024fef
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140024fca
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140024ecd
mov rcx, r9
jmp 0x140024ef0
cmp r9, rdx
jae 0x140024f07
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x140024eb1
jmp 0x140024fef
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140024fc4
cmp dword [rsp + 0x80], edi
je 0x140024fc4
mov rdx, r14
lea r11, [0x14003f9f0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x140024f9d
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140024f70
mov word [rbx], r12w
jmp 0x140024feb
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x140024f79
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140024feb
cmp word [rsp + 0x70], r12w
jne 0x140024faa
cmp rbx, rsi
je 0x140024f6a
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140021a18
cmp word [rsp + 0x70], r12w
je 0x140024fef
mov word [rbx], r13w
jmp 0x140024feb
lea r11, [0x14003f9f0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140024fe7
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140024fef
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140025844
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x140025876
call fcn.14001f0bc
mov dword [rax], 0x16
call fcn.14001ef80
jmp 0x140025995
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140025995
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140025995
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400258a5
lock or dword [rcx + 0x14], 0x10
jmp 0x140025995
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400258b9
call fcn.14002b238
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1400207a8
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.1400252dc
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140025983
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14002594e
mov rcx, rsi
call fcn.1400207a8
cmp eax, edi
je 0x140025939
mov rcx, rsi
call fcn.1400207a8
cmp eax, 0xfffffffe
je 0x140025939
mov rcx, rsi
call fcn.1400207a8
movsxd rbx, eax
lea r14, [0x14003f9f0]
mov rcx, rsi
sar rbx, 6
call fcn.1400207a8
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x140025940
lea rdx, [0x14003e2e0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14002594e
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x140025972
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x140025972
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x140025972
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x140025998
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret