joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000e2d4
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x58]
sub rsp, 0x150
mov rax, qword [0x140055118]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov ebx, ecx
lea r8, [0x14005a3e0]
mov edi, 0x432
mov edx, edi
lea rsi, [0x14005b450]
mov rcx, rsi
call fcn.14001b494
lea r8, [0x14003b760]
mov edx, edi
mov rcx, rsi
call fcn.14001b410
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x14000e343
mov rcx, rsi
call fcn.14001edb8
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14000e551
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x30]
call fcn.1400158d0
mov dword [rsp + 0x20], 1
mov r9d, 0x40
lea r8d, [r9 - 0x3e]
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.14000ad48
nop
lea rdx, str._echo_off
lea rcx, [rsp + 0x30]
call fcn.14000a4b8
mov rcx, rax
call fcn.14000aa80
lea rdi, [0x14003b934]
cmp ebx, 1
jne 0x14000e3e9
lea rdx, str.sc_stop_igfxCUIService1.0.0.0
lea rcx, [rsp + 0x30]
call fcn.14000a4b8
mov rcx, rax
call fcn.14000aa80
lea rdx, str.TIMEOUT_1__NOBREAK
lea rcx, [rsp + 0x30]
call fcn.14000a4b8
mov rcx, rax
call fcn.14000aa80
lea rdx, str.sc_delete_igfxCUIService1.0.0.0
jmp 0x14000e4b9
cmp ebx, 2
jne 0x14000e4cb
lea rdx, str.sc_stop_igfxCUIService2.0.0.0
lea rcx, [rsp + 0x30]
call fcn.14000a4b8
mov rcx, rax
call fcn.14000aa80
lea rdx, str.TIMEOUT_1__NOBREAK
lea rcx, [rsp + 0x30]
call fcn.14000a4b8
mov rcx, rax
call fcn.14000aa80
lea rdx, str.sc_delete_igfxCUIService2.0.0.0
lea rcx, [rsp + 0x30]
call fcn.14000a4b8
mov rcx, rax
call fcn.14000aa80
lea rdx, str.TIMEOUT_5__NOBREAK
lea rcx, [rsp + 0x30]
call fcn.14000a4b8
mov rcx, rax
call fcn.14000aa80
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.14000a4b8
mov rcx, rax
lea rdx, [0x1400593e0]
call fcn.14000a4b8
mov rcx, rax
lea rdx, [0x14003b160]
call fcn.14000a4b8
mov rcx, rax
lea rdx, [0x14003b938]
call fcn.14000a4b8
mov rcx, rax
mov rdx, rdi
call fcn.14000a4b8
mov rcx, rax
lea rdx, str.__service
call fcn.14000a184
mov rcx, rax
call fcn.14000aa80
lea rdx, str.sc_start_igfxCUIService1.0.0.0
lea rcx, [rsp + 0x30]
call fcn.14000a4b8
mov rcx, rax
call fcn.14000aa80
lea rdx, [0x14003b9f8]
lea rcx, [rsp + 0x30]
call fcn.14000a4b8
mov rcx, rax
mov rdx, rdi
call fcn.14000a4b8
mov rcx, rax
lea rdx, [0x14005a3e0]
call fcn.14000a4b8
mov rcx, rax
lea rdx, [0x14003b160]
call fcn.14000a4b8
mov rcx, rax
lea rdx, str.8A694AF2_286D_429D_867A_3F95898EE308.bat
call fcn.14000a4b8
mov rcx, rax
mov rdx, rdi
call fcn.14000a4b8
mov rcx, rax
call fcn.14000aa80
lea rcx, [rsp + 0x30]
call fcn.14000f5d0
nop
lea rcx, [rbp - 0x28]
call fcn.14000b704
nop
lea rcx, vtable.std::ios_base.0
mov qword [rbp - 0x28], rcx
lea rcx, [rbp - 0x28]
call fcn.140015428
nop
mov al, 1
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.140013ce0
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1400290a0
Capabilities:
Read 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 r14
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x140028dc2
call fcn.14001b348
mov dword [rax], 0x16
call fcn.14001b1dc
jmp 0x140028f12
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140028f12
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140028f12
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140028df1
lock or dword [rcx + 0x14], 0x10
jmp 0x140028f12
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140028e05
call fcn.1400294a0
mov ebp, dword [rbx + 0x10]
cmp ebp, 1
jne 0x140028e15
mov rax, qword [rbx]
mov r14b, byte [rax]
jmp 0x140028e18
xor r14b, r14b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.140028a78
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.14003398c
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x140028f00
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x140028eab
mov rcx, rbx
call fcn.140028a78
cmp eax, 0xffffffff
je 0x140028e96
mov rcx, rbx
call fcn.140028a78
cmp eax, 0xfffffffe
je 0x140028e96
mov rcx, rbx
call fcn.140028a78
movsxd rdi, eax
lea rsi, [0x14005d680]
mov rcx, rbx
sar rdi, 6
call fcn.140028a78
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x140028e9d
lea rdx, [0x140055520]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140028eab
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x140028ecf
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x140028ecf
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x140028ecf
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp ebp, 1
jne 0x140028eed
movzx ecx, byte [rdx]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, r14b
or cx, ax
inc rdx
jmp 0x140028ef8
movzx ecx, word [rdx]
add dword [rbx + 0x10], 0xfffffffe
add rdx, 2
mov qword [rbx], rdx
movzx eax, cx
jmp 0x140028f17
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x140028d8c
Function at 0x14002aa6c
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.140014180
sub rsp, rax
mov rax, qword [0x140055118]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140028a78
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002aabb
mov rax, rbp
jmp 0x14002abc3
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 + 0x5d680]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14002af5c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x5d680]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14002abbf
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 0x14002abbf
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14002af5c
test rax, rax
js 0x14002abbf
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14002abbf
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14002abb1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14002abb1
cmp byte [rcx], 0xd
jne 0x14002ab97
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002aba6
cmp byte [rcx + 1], 0xa
jne 0x14002aba6
inc rcx
jmp 0x14002aba6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x55c60]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14002ab79
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002abc3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140013ce0
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 0x14002cc74
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 0x14002ccfb
mov rsi, rbx
cmp word [rax], bp
je 0x14002ccba
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14002cca4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14002cca0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400274c4
mov rdi, rax
test rax, rax
je 0x14002cce8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140016740
mov rbp, rdi
xor ecx, ecx
call fcn.140026dac
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 0x1400334e0
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, [0x14005d680]
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 0x14003353e
cmp word [rdx], r12w
jne 0x14003353e
or byte [rax + r8*8 + 0x38], cl
jmp 0x140033544
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14003369f
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14003367a
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14003357d
mov rcx, r9
jmp 0x1400335a0
cmp r9, rdx
jae 0x1400335b7
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 0x140033561
jmp 0x14003369f
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 0x140033674
cmp dword [rsp + 0x80], edi
je 0x140033674
mov rdx, r14
lea r11, [0x14005d680]
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 0x14003364d
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140033620
mov word [rbx], r12w
jmp 0x14003369b
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 0x140033629
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14003369b
cmp word [rsp + 0x70], r12w
jne 0x14003365a
cmp rbx, rsi
je 0x14003361a
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14002af64
cmp word [rsp + 0x70], r12w
je 0x14003369f
mov word [rbx], r13w
jmp 0x14003369b
lea r11, [0x14005d680]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140033697
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14003369f
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 0x1400368a8
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.14002af64
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14002af64
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400369f8
cmp rax, 0xffffffffffffffff
je 0x1400369f8
xor edi, edi
test rbp, rbp
jle 0x1400369a3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14002b008
mov rbx, rax
test rax, rax
jne 0x140036930
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140036999
mov edx, 0x8000
mov ecx, r14d
call fcn.140020bbc
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.14002a44c
cmp eax, 0xffffffff
je 0x140036979
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140036940
mov edx, r15d
mov ecx, r14d
call fcn.140020bbc
jmp 0x140036999
cmp byte [rsi + 0x38], dil
je 0x140036990
cmp dword [rsi + 0x34], 5
jne 0x140036990
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140036999
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140026dac
jmp 0x140036a0c
jns 0x140036a0c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14002af64
cmp rax, 0xffffffffffffffff
jne 0x1400369c4
cmp byte [rsi + 0x30], dil
je 0x140036a0c
mov edi, dword [rsi + 0x2c]
jmp 0x140036a0c
mov ecx, r14d
call fcn.14002d1bc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140036a0c
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 0x140036a0c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140036a05
mov eax, dword [rsi + 0x2c]
jmp 0x140036a0a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14002af64
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 0x180004c00
Capabilities:
Read data from internet
Receive data

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x180038028]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov r14, r8
mov dword [rsp + 0x30], 1
mov rbx, rdx
mov rbp, rcx
xor r8d, r8d
lea rdx, [0x180025cb8]
mov rcx, r9
mov rsi, r9
xor dil, dil
call fcn.180004df0
cmp qword [rbx + 0x18], 0x10
jb 0x180004c53
mov rbx, qword [rbx]
mov qword [rsp + 0x28], 0
mov r9d, 0xffffffff
mov r8, r14
mov dword [rsp + 0x20], 0x4000000
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov rbp, rax
test rax, rax
je 0x180004d33
cmp dword [rsp + 0x30], 0
jbe 0x180004d27
lea r9, [rsp + 0x30]
mov r8d, 0x1f3
lea rdx, [rsp + 0x40]
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x180004d27
mov ebx, dword [rsp + 0x30]
cmp rbx, 0x1f4
jae 0x180004d55
mov rdx, qword [rsi + 0x18]
mov rcx, qword [rsi + 0x10]
mov rax, rdx
sub rax, rcx
mov byte [rsp + rbx + 0x40], 0
cmp rbx, rax
ja 0x180004d04
lea rax, [rcx + rbx]
mov qword [rsi + 0x10], rax
mov rax, rsi
cmp rdx, 0x10
jb 0x180004cea
mov rax, qword [rsi]
lea rdi, [rax + rcx]
mov r8, rbx
mov rcx, rdi
lea rdx, [rsp + 0x40]
call fcn.180009b50
mov byte [rdi + rbx], 0
jmp 0x180004d1c
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rbx
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call fcn.180001de0
cmp dword [rsp + 0x30], 0
ja 0x180004c90
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov dil, 1
movzx eax, dil
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.180006ff0
add rsp, 0x250
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.180006d48
int3
Function at 0x1800052a0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x180038028]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r13, r9
mov rsi, r8
mov qword [rsp + 0x38], r8
mov rdi, rdx
mov r15, rcx
mov qword [rsp + 0x40], rcx
xor ebp, ebp
mov dword [rsp + 0x30], ebp
mov qword [rcx], rbp
mov qword [rcx + 0x10], rbp
mov qword [rcx + 0x18], 0xf
mov byte [rcx], bpl
xor r8d, r8d
lea rdx, [0x180025cb8]
call fcn.180004df0
mov dword [rsp + 0x30], 1
mov r14d, ebp
mov r12d, dword [rsp + 0xc0]
cmp r14d, r12d
jge 0x18000544b
inc r14d
mov ecx, 0x50
call fcn.180006874
mov rbx, rax
test rax, rax
je 0x18000535e
mov qword [rax + 8], rbp
mov qword [rax + 0x20], rbp
mov qword [rax + 0x28], rbp
mov qword [rax + 0x30], rbp
mov qword [rax + 0x38], rbp
mov qword [rax + 0x40], rbp
mov qword [rax + 0x48], rbp
mov qword [rax], rbp
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], 0xf
jmp 0x180005361
mov rbx, rbp
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rdi + r8], 0
jne 0x180005370
mov rdx, rdi
mov rcx, rbx
call fcn.180004df0
mov qword [rbx + 0x20], rbp
mov byte [rbx + 0x28], 0
mov qword [rbx + 0x40], rbp
mov qword [rbx + 0x48], rbp
mov qword [rbx + 0x30], rsi
mov qword [rbx + 0x38], r13
mov ebp, 0xffffffff
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, rbx
lea r8, [0x180005c10]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
mov edx, 0xbb8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1800053fb
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x1800053ec
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x1800053fb
call qword [sym.imp.WININET.dll_InternetCloseHandle]
cmp byte [rbx + 0x28], 0
je 0x180005423
mov r8, qword [rbx + 0x20]
mov rdx, r8
cmp qword [r8 + 0x18], 0x10
jb 0x180005412
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
mov rcx, r15
call fcn.180004d60
mov ebp, 1
test rsi, rsi
je 0x180005431
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebp, 0xffffffff
jne 0x18000544b
lea ecx, [rbp + 0x65]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rsi, qword [rsp + 0x38]
xor ebp, ebp
jmp 0x180005313
mov rax, r15
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180006ff0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180006360
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x180006382
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x1800063fc
mov rdi, r14
mov rcx, rbx
call fcn.1800048e0
test rax, rax
jle 0x1800063d4
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.180009b50
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1800063ec
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x1800063f4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x180006396
sub r14, rdi
jmp 0x1800064e9
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x180006413
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180006415
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x18000644a
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.180009b50
mov rax, qword [rbx + 0x50]
sub rbp, rdi
add rsi, rdi
mov r8, rbp
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1800064e6
mov r9, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r9], rax
jne 0x180006485
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x1800064c1
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.18000f26c
sub rbp, rax
add rsi, rax
mov rdi, rbp
cmp rax, 0xfff
jne 0x1800064ff
cmp rbp, rax
ja 0x180006491
mov r8, rdi
test rdi, rdi
je 0x1800064e6
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.18000f26c
mov r8, rdi
sub r8, rax
sub r14, r8
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
sub r14, rbp
jmp 0x1800064e9
Function at 0x18001974c
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.180023510
sub rsp, rax
mov rax, qword [0x180038028]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18001832c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18001979b
mov rax, rbp
jmp 0x1800198a3
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 + 0x3a460]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18001a86c
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x3a460]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18001989f
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 0x18001989f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18001a86c
test rax, rax
js 0x18001989f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18001989f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180019891
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180019891
cmp byte [rcx], 0xd
jne 0x180019877
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180019886
cmp byte [rcx + 1], 0xa
jne 0x180019886
inc rcx
jmp 0x180019886
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x38420]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180019859
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1800198a3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180006ff0
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 0x180019ac4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180019ada
mov al, 1
jmp 0x180019b3a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180019aeb
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180019b38
mov ecx, dword [rcx + 0x18]
nop
call fcn.180021224
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180019b38
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180019b38
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180019b38
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180019b3a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180019c0c
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, [0x18003a460]
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 0x180019c63
cmp word [rdx], r13w
jne 0x180019c63
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180019c68
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180019d8d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180019dae
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180019ca1
mov rdx, r9
mov word [rbx], cx
jmp 0x180019cc8
cmp r9, r8
jae 0x180019cd8
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 0x180019c82
jmp 0x180019d8d
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 0x180019d82
cmp dword [rsp + 0x80], esi
je 0x180019d82
lea r8, [0x18003a460]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180019d5a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180019d2a
mov word [rbx], r13w
jmp 0x180019d8a
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 0x180019d37
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180019d8a
cmp word [rsp + 0x70], r13w
jne 0x180019d67
cmp rbx, r14
je 0x180019d24
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18001a874
cmp word [rsp + 0x70], r13w
je 0x180019d8d
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, [0x18003a460]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180019d87
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180019d8d