joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008e8b8
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 0x14008e8f2
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14008e8f7
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 0x14008e940
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400a9c70]
cmp byte [rcx + rax], 0
je 0x14008e940
dec r8
sub rdx, 1
jne 0x14008e926
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14008f048
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.14008ea40
mov ebx, eax
test eax, eax
jne 0x14008f078
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x14008f0db
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14008f0d2
test al, 0x10
je 0x14008f0d2
bt eax, 0xa
jae 0x14008f0cb
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.14008f0ec
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x14008f0c7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x14008f0c7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x14008f0d2
and dword [rsp + 0x3c], 0
jmp 0x14008f0d7
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140090358
Capabilities:
Parse pe header

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

Disassembly:
mov r11, rsp
sub rsp, 0x98
mov rax, qword [0x180042010]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rcx, qword [0x180043fa8]
cmp dword [rcx + 0x18ca2f8], 1
jne 0x18000b7e0
mov r9d, 0xa
mov qword [r11 - 8], rdi
add rcx, 0x18c92e0
mov qword [r11 + 8], rbx
lea rdx, str.K_0_0_c_c
lea r8d, [r9 + 3]
call fcn.180002970
mov rdx, qword [0x180043fa8]
xor edi, edi
cmp dword [rdx + 0x18ca2f8], 1
jne 0x18000b6b8
mov rbx, qword [rdx + 0x4774770]
cmp dword [rbx + 8], 1
je 0x18000b6b8
add rdx, 0x18c92e0
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], dil
jne 0x18000b692
mov rcx, qword [rbx + 0xe00028]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rbx + 0xe00020], edi
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 0x1f4
call fcn.18000ea90
movsxd r8, eax
test eax, eax
je 0x18000b7d0
mov rbx, qword [0x180043fa8]
mov edx, edi
mov rcx, qword [rbx + 0x4774770]
jle 0x18000b719
mov r9d, dword [rcx + 0xe00018]
mov eax, dword [rcx + 0xe0001c]
cmp r9d, eax
je 0x18000b719
inc eax
mov dword [rcx + 0xe0001c], eax
cmp eax, 0x700000
jb 0x18000b712
mov dword [rcx + 0xe0001c], edi
inc edx
cmp edx, r8d
jl 0x18000b6f2
xorps xmm0, xmm0
mov byte [r8 + rbx + 0x11b12e0], dil
movups xmmword [rsp + 0x60], xmm0
lea r11, [rbx + 0x11b12e6]
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 0x18000b76a
movsx ecx, cl
lea edx, [r8 + r8*4]
lea r8d, [rcx + rdx*2]
jmp 0x18000b775
cmp dl, 0x2d
jne 0x18000b780
mov r9d, 1
inc rax
cmp rax, 0x10
jl 0x18000b750
jmp 0x18000b788
cmp dl, 0x2c
jne 0x18000b788
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 0x18000b7b0
sub cl, 0x2c
cmp cl, 1
ja 0x18000b7bc
inc r10
cmp r10, 0x1000
jl 0x18000b740
cmp dword [rsp + 0x6c], 0x128e0
jl 0x18000b7d0
mov eax, dword [rsp + 0x70]
mov dword [rbx + 0x47746c0], eax
mov rbx, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.180013130
add rsp, 0x98
ret
Function at 0x18000c0e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xa0
movaps xmmword [rsp + 0x90], xmm6
mov rax, qword [0x180042010]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r9, qword [0x180043fa8]
lea rdx, str.RAMP__d__d_r_n
movsd xmm6, qword [0x18003cd78]
movsd xmm0, qword [r9 + 0x18]
lea rcx, [r9 + 0x18c92e0]
mov r9d, dword [r9 + 0x50]
mulsd xmm0, xmm6
cvttsd2si r8d, xmm0
call fcn.180002970
mov rdx, qword [0x180043fa8]
xor edi, edi
cmp dword [rdx + 0x18ca2f8], 1
jne 0x18000c196
mov rbx, qword [rdx + 0x4774770]
cmp dword [rbx + 8], 1
je 0x18000c196
add rdx, 0x18c92e0
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rdx + r8], dil
jne 0x18000c170
mov rcx, qword [rbx + 0xe00028]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rbx + 0xe00020], edi
mov r8d, 0x1f4
call fcn.18000ea90
movsxd r8, eax
test eax, eax
jg 0x18000c1b2
mov eax, 0xffffffff
jmp 0x18000c2e0
mov rbx, qword [0x180043fa8]
mov edx, edi
mov byte [r8 + rbx + 0x11b12e0], dil
mov rcx, qword [rbx + 0x4774770]
mov r9d, dword [rcx + 0xe00018]
mov eax, dword [rcx + 0xe0001c]
cmp r9d, eax
je 0x18000c1f8
inc eax
mov dword [rcx + 0xe0001c], eax
cmp eax, 0x700000
jb 0x18000c1f1
mov dword [rcx + 0xe0001c], edi
inc edx
cmp edx, r8d
jl 0x18000c1d1
xorps xmm0, xmm0
lea r11, [rbx + 0x11b12e5]
movups xmmword [rsp + 0x40], xmm0
mov r10, rdi
movups xmmword [rsp + 0x50], xmm0
nop
mov r8d, edi
mov r9d, edi
mov rdx, rdi
nop dword [rax]
movzx ecx, byte [rdx + r11]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x18000c239
movsx eax, al
lea ecx, [r8 + r8*4]
lea r8d, [rax + rcx*2]
jmp 0x18000c244
cmp cl, 0x2d
jne 0x18000c24f
mov r9d, 1
inc rdx
cmp rdx, 0x10
jl 0x18000c220
jmp 0x18000c257
cmp cl, 0x2c
jne 0x18000c257
inc rdx
add r11, rdx
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 0x18000c27f
sub cl, 0x2c
cmp cl, 1
ja 0x18000c28b
inc r10
cmp r10, 0x1000
jl 0x18000c210
movd xmm0, dword [rsp + 0x48]
movd xmm1, dword [rsp + 0x58]
mov eax, dword [rsp + 0x50]
mov ecx, dword [rsp + 0x4c]
cvtdq2pd xmm0, xmm0
mov dword [rbx + 0x10], eax
xor eax, eax
mov dword [rbx + 0x14], ecx
mov dword [rbx + 0x47746c0], ecx
cvtdq2pd xmm1, xmm1
divsd xmm0, xmm6
divsd xmm1, xmm6
movsd qword [rbx + 0x18ca330], xmm0
movd xmm0, dword [rsp + 0x54]
cvtdq2pd xmm0, xmm0
movsd qword [rbx + 0x18ca300], xmm1
divsd xmm0, xmm6
movsd qword [rbx + 8], xmm0
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.180013130
mov rbx, qword [rsp + 0xb0]
movaps xmm6, xmmword [rsp + 0x90]
add rsp, 0xa0
pop rdi
ret
Function at 0x18000c770
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x1a0
mov rax, qword [0x180042010]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov rax, qword [0x180043fa8]
lea rcx, [rsp + 0x70]
mov dword [rax + 0x18ca374], 0
call fcn.18001b71c
lea rcx, [rsp + 0x70]
call fcn.18001ba88
mov r8, qword [0x180043fa8]
mov rbx, rax
movups xmm0, xmmword [rax]
cmp dword [r8 + 0x18ca35c], 0
movups xmmword [r8 + 0x47746d0], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [r8 + 0x47746e0], xmm1
mov ecx, dword [rax + 0x20]
mov dword [r8 + 0x47746f0], ecx
jne 0x18000c7f3
cmp dword [r8 + 0x18ca370], 0
je 0x18000c999
add r8, 0x11b0be0
lea rdx, str._sLogFile
lea rcx, [rsp + 0x90]
call fcn.180002970
lea rcx, [rsp + 0x90]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
cmp eax, 1
je 0x18000c831
xor edx, edx
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov rax, qword [0x180043fa8]
cmp dword [rax + 0x18ca39c], 0
jne 0x18000c8a1
cmp dword [rax + 0x18ca360], 2
jne 0x18000c8a1
mov edx, dword [rbx + 0x10]
lea rcx, [rax + 0x11b0ce0]
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.180002970
jmp 0x18000c946
cmp dword [rax + 0x47746f8], 1
lea rcx, [0x18003c7c0]
lea rdx, [0x18003c7bc]
cmovne rdx, rcx
lea rcx, [rsp + 0x78]
call fcn.180002970
mov rax, qword [0x180043fa8]
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 + 0x18]
lea rcx, [rax + 0x11b0ce0]
mov eax, dword [rax + 0x5c]
mulsd xmm0, qword [0x18003cd78]
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.180002970
mov rax, qword [0x180043fa8]
xorps xmm0, xmm0
mov dword [rax + 0x47746cc], 1
movups xmmword [rax + 0x11b0b50], xmm0
movups xmmword [rax + 0x11b0b60], xmm0
movups xmmword [rax + 0x11b0b70], xmm0
movups xmmword [rax + 0x11b0b80], xmm0
movups xmmword [rax + 0x11b0b90], xmm0
movups xmmword [rax + 0x11b0ba0], xmm0
movups xmmword [rax + 0x11b0bb0], xmm0
movups xmmword [rax + 0x11b0bc0], xmm0
movups xmmword [rax + 0x11b0bd0], xmm0
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.180013130
add rsp, 0x1a0
pop rbx
ret
Function at 0x180010740
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x48
mov rax, qword [0x180042010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r8, qword [0x180043fa8]
cmp dword [r8 + 0x47747ac], 0
je 0x180010804
lea rcx, [r8 + 0x18c92e0]
mov dword [rsp + 0x20], 0xa
mov r8d, dword [r8 + 0x47747a8]
lea rdx, str.AVERAGE__d_c_c
mov r9d, 0xd
call fcn.180002970
mov rdx, qword [0x180043fa8]
cmp dword [rdx + 0x18ca2f8], 1
jne 0x1800107f4
mov qword [rsp + 0x40], rbx
mov rbx, qword [rdx + 0x4774770]
cmp dword [rbx + 8], 1
je 0x1800107ef
add rdx, 0x18c92e0
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x1800107c0
mov rcx, qword [rbx + 0xe00028]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rbx + 0xe00020], 0
mov rbx, qword [rsp + 0x40]
call fcn.1800105d0
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180013130
add rsp, 0x48
ret
Function at 0x180012060
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x180043fa8]
lea rdx, [0x18003c8f8]
add rcx, 0x11b0ee0
call fcn.18001a8d0
mov rbx, rax
test rax, rax
jne 0x18001208e
add rsp, 0x20
pop rbx
ret
mov rcx, qword [0x180043fa8]
mov edx, 0x80
add rcx, 0x11b12e0
mov qword [rsp + 0x30], rdi
mov r9, rbx
lea r8d, [rdx - 0x7f]
call fcn.18001fe9c
mov rcx, qword [0x180043fa8]
xor edi, edi
add rcx, 0x11b12e0
mov r9, rbx
lea edx, [rdi + 0x20]
lea r8d, [rdi + 1]
call fcn.18001fe9c
cmp eax, 1
jl 0x18001214d
mov r8, qword [0x180043fa8]
mov r9, rbx
movzx ecx, byte [r8 + 0x11b12e8]
movzx eax, byte [r8 + 0x11b12e9]
shl ecx, 8
or ecx, eax
movzx eax, byte [r8 + 0x11b12ea]
shl ecx, 8
or ecx, eax
movzx eax, byte [r8 + 0x11b12eb]
shl ecx, 8
or ecx, eax
sub ecx, 0x20
movsxd rdx, ecx
lea rcx, [r8 + 0x11b1300]
mov r8d, 1
call fcn.18001fe9c
mov rcx, qword [0x180043fa8]
mov edx, 0x20
add rcx, 0x11b12e0
mov r9, rbx
inc edi
lea r8d, [rdx - 0x1f]
call fcn.18001fe9c
cmp eax, 1
jge 0x1800120d6
mov rcx, rbx
call fcn.18001ade8
mov rcx, rbx
call fcn.18001ade8
mov eax, edi
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
Function at 0x1800127d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rcx, qword [0x180043fa8]
lea rdx, [0x18003c8f8]
add rcx, 0x11b0ee0
call fcn.18001a8d0
mov rdi, rax
test rax, rax
jne 0x180012824
mov rax, qword [0x180043fa8]
xor esi, esi
mov dword [rax + 0x477477c], esi
mov dword [rax + 0x18ca370], esi
lea eax, [rdi - 1]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [0x180043fa8]
mov edx, 0x80
mov qword [rsp + 0x38], rbx
add rcx, 0x11b12e0
mov r9, rdi
mov qword [rsp + 0x40], rbp
lea r8d, [rdx - 0x7f]
call fcn.18001fe9c
mov rcx, qword [0x180043fa8]
xor esi, esi
mov ebp, esi
mov eax, dword [rcx + 0x18ca374]
inc eax
test eax, eax
jle 0x18001298b
nop dword [rax + rax]
mov edx, 0x20
add rcx, 0x11b12e0
mov r9, rdi
lea r8d, [rdx - 0x1f]
call fcn.18001fe9c
cmp eax, 1
jl 0x180012936
mov rcx, qword [0x180043fa8]
mov r9, rdi
mov r8d, 1
movzx eax, byte [rcx + 0x11b12e9]
movzx ebx, byte [rcx + 0x11b12e8]
shl ebx, 8
or ebx, eax
movzx eax, byte [rcx + 0x11b12ea]
shl ebx, 8
or ebx, eax
movzx eax, byte [rcx + 0x11b12eb]
shl ebx, 8
or ebx, eax
movzx eax, byte [rcx + 0x11b12fc]
mov byte [rsp + 0x30], al
movzx eax, byte [rcx + 0x11b12fd]
mov byte [rsp + 0x31], al
movzx eax, byte [rcx + 0x11b12fe]
mov byte [rsp + 0x32], al
movzx eax, byte [rcx + 0x11b12ff]
mov byte [rsp + 0x33], al
lea eax, [rbx - 0x20]
movss xmm0, dword [rsp + 0x30]
cvtps2pd xmm0, xmm0
movsxd rdx, eax
movsd qword [rcx + 0x18ca3d8], xmm0
add rcx, 0x11b1300
call fcn.18001fe9c
mov rcx, qword [0x180043fa8]
inc ebp
mov eax, dword [rcx + 0x18ca374]
inc eax
cmp ebp, eax
jl 0x180012870
jmp 0x18001298f
mov rcx, rdi
call fcn.18001ade8
mov rax, qword [0x180043fa8]
mov dword [rax + 0x477477c], esi
cmp dword [rax + 0x18ca370], esi
jle 0x18001295d
mov dword [rax + 0x18ca670], 5
mov dword [rax + 0x18ca370], esi
or dword [rax + 0x11b0b44], 0x1000
or dword [rax + 0x11b0b48], 0x40000
mov dword [rax + 0x47746b8], esi
or dword [rax + 0x11b0b44], 0x40
mov eax, 0xffffffff
jmp 0x1800129cb
mov ebx, dword [rsp + 0x30]
mov rcx, rdi
call fcn.18001ade8
mov rdi, qword [0x180043fa8]
add ebx, 0xffffffe0
movsxd r8, ebx
lea rdx, [rdi + 0x11b1300]
lea rcx, [rdi + 0xa0]
call fcn.180016cd0
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
mov dword [rdi + 0x18ca2e0], eax
call fcn.1800129e0
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x180012eb0
Capabilities:
Create thread

Disassembly:
push rbx
push rdi
sub rsp, 0x78
mov rax, qword [0x180042010]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rax, qword [rcx + 0xe00028]
mov edi, r8d
dec rax
mov r10, rdx
mov rbx, rcx
cmp rax, 0xfffffffffffffffd
ja 0x180012ee6
mov eax, 1
jmp 0x180012f31
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 + 0xe00028], rax
cmp rax, 0xffffffffffffffff
jne 0x180012f45
mov dword [rbx + 8], 1
xor eax, eax
mov rsi, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.180013130
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 0x180012f2a
mov rcx, qword [rbx + 0xe00028]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetCommState]
mov eax, dword [rsp + 0x48]
lea rdx, [rsp + 0x40]
mov rcx, qword [rbx + 0xe00028]
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 0x180012f2a
mov qword [rsp + 0x28], rsi
lea r8, [0x180012fe0]
mov r9, rbx
mov dword [rsp + 0x20], esi
xor edx, edx
xor ecx, ecx
call fcn.18001a734
mov qword [rbx + 0xe00030], rax
mov eax, 1
jmp 0x180012f2c
Function at 0x1800263a4
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.180030940
sub rsp, rax
mov rax, qword [0x180042010]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180023210
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1800263f3
mov rax, rbp
jmp 0x1800264fb
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, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x43620]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180025fe8
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x43620]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1800264f7
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 0x1800264f7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180025fe8
test rax, rax
js 0x1800264f7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1800264f7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1800264e9
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x1800264e9
cmp byte [rcx], 0xd
jne 0x1800264cf
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1800264de
cmp byte [rcx + 1], 0xa
jne 0x1800264de
inc rcx
jmp 0x1800264de
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x424f0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1800264b1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1800264fb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180013130
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 0x180026668
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x180026645
call fcn.1800218dc
mov dword [rax], 0x16
call fcn.1800217a0
or eax, 0xffffffff
jmp 0x180026662
sub dword [rcx + 0x10], 1
jns 0x180026654
add rsp, 0x28
jmp fcn.18002848c
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x180026624
Function at 0x180027a78
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, [0x180043620]
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 0x180027ad6
cmp word [rdx], r12w
jne 0x180027ad6
or byte [rax + r8*8 + 0x38], cl
jmp 0x180027adc
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x180027c37
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x180027c12
lea r9, [rcx + 2]
cmp ax, r13w
je 0x180027b15
mov rcx, r9
jmp 0x180027b38
cmp r9, rdx
jae 0x180027b4f
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 0x180027af9
jmp 0x180027c37
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 0x180027c0c
cmp dword [rsp + 0x80], edi
je 0x180027c0c
mov rdx, r14
lea r11, [0x180043620]
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 0x180027be5
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x180027bb8
mov word [rbx], r12w
jmp 0x180027c33
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 0x180027bc1
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x180027c33
cmp word [rsp + 0x70], r12w
jne 0x180027bf2
cmp rbx, rsi
je 0x180027bb2
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.180025ff0
cmp word [rsp + 0x70], r12w
je 0x180027c37
mov word [rbx], r13w
jmp 0x180027c33
lea r11, [0x180043620]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x180027c2f
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x180027c37
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 0x18002848c
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 0x1800284be
call fcn.1800218dc
mov dword [rax], 0x16
call fcn.1800217a0
jmp 0x1800285dd
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1800285dd
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1800285dd
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1800284ed
lock or dword [rcx + 0x14], 0x10
jmp 0x1800285dd
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x180028501
call fcn.18002e298
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.180023210
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.180027f24
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1800285cb
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x180028596
mov rcx, rsi
call fcn.180023210
cmp eax, edi
je 0x180028581
mov rcx, rsi
call fcn.180023210
cmp eax, 0xfffffffe
je 0x180028581
mov rcx, rsi
call fcn.180023210
movsxd rbx, eax
lea r14, [0x180043620]
mov rcx, rsi
sar rbx, 6
call fcn.180023210
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x180028588
lea rdx, [0x1800422d0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x180028596
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1800285ba
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1800285ba
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1800285ba
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 0x1800285e0
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