joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011350
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0xe0
movzx ebp, dl
mov r14, rcx
lea rdx, str.startHooks
lea rcx, [0x14001c488]
call fcn.140011000
xorps xmm1, xmm1
xor eax, eax
mov qword [rsp + 0x60], rax
xorps xmm0, xmm0
mov qword [rsp + 0xd0], rax
xor r15d, r15d
lea rax, str.winsta0default
xor r9d, r9d
movups xmmword [rsp + 0x70], xmm1
xor r8d, r8d
movzx edx, bpl
movups xmmword [rsp + 0x80], xmm1
mov rcx, r14
mov qword [rsp + 0x80], rax
movups xmmword [rsp + 0xa0], xmm1
mov ebx, 8
mov dword [rsp + 0x70], 0x68
movups xmmword [rsp + 0xb0], xmm1
mov word [rsp + 0xb0], r15w
mov edi, r15d
movups xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0xac], 1
movups xmmword [rsp + 0x90], xmm1
movups xmmword [rsp + 0xc0], xmm1
call fcn.140011140
mov esi, eax
cmp eax, 0xffffffff
jne 0x14001142b
lea rcx, str.buildCmdline_failed_n
call fcn.140011000
jmp 0x1400114e1
inc esi
mov ecx, 0x40
movsxd rdx, esi
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r9d, esi
movzx edx, bpl
mov r8, rax
mov rcx, r14
mov rdi, rax
call fcn.140011140
mov rdx, rdi
lea rcx, str.cmdline:__s_n
call fcn.1400110a0
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rsp + 0x70]
mov rdx, rdi
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x30
mov dword [rsp + 0x20], r15d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1400114b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CreateProcess_failed:__d_n
call fcn.140011000
jmp 0x1400114e1
mov rcx, qword [rsp + 0x50]
mov edx, 0x4e20
call qword [sym.imp.USER32.dll_WaitForInputIdle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, r15d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rdx, str.startHooks
lea rcx, str._s_____n
call fcn.140011000
lea r11, [rsp + 0xe0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140013fac
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013dd8
Function at 0x1400159ec
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x140026008]
xor rax, rsp
mov qword [rbp + 0x1b8], rax
xor edi, edi
mov qword [rsp + 0x58], rdx
mov r12, rcx
test rdx, rdx
jne 0x1400154e9
call fcn.1400153a4
lea ebx, [rdi + 0x16]
mov dword [rax], ebx
call fcn.140015138
mov eax, ebx
jmp 0x14001581f
xorps xmm0, xmm0
mov qword [rdx], rdi
mov rax, qword [rcx]
movdqu xmmword [rsp + 0x30], xmm0
mov rsi, qword [rsp + 0x38]
mov r14, qword [rsp + 0x30]
mov qword [rsp + 0x40], rdi
test rax, rax
je 0x1400156e0
lea rdx, [rbp + 0x1b0]
mov dword [rbp + 0x1b0], 0x3f002a
mov rcx, rax
mov word [rbp + 0x1b4], di
movabs rbx, 0x200000000801
call fcn.140017078
mov r13, qword [r12]
mov rcx, rax
test rax, rax
jne 0x14001556c
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
mov rcx, r13
call fcn.140015860
mov rsi, qword [rsp + 0x38]
mov r15d, eax
mov r14, qword [rsp + 0x30]
test eax, eax
jmp 0x1400156cd
cmp rax, r13
je 0x140015590
movzx eax, word [rcx]
sub ax, 0x2f
cmp ax, 0x2d
ja 0x140015587
movzx eax, ax
bt rbx, rax
jb 0x140015590
sub rcx, 2
cmp rcx, r13
jne 0x140015571
movzx edx, word [rcx]
cmp dx, 0x3a
jne 0x1400155bc
lea rax, [r13 + 2]
cmp rcx, rax
je 0x1400155bc
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
mov rcx, r13
call fcn.140015860
mov r15d, eax
jmp 0x1400156c0
sub dx, 0x2f
cmp dx, 0x2d
ja 0x1400155d1
movzx eax, dx
bt rbx, rax
mov al, 1
jb 0x1400155d4
mov al, dil
sub rcx, r13
mov dword [rsp + 0x28], edi
sar rcx, 1
lea r8, [rsp + 0x60]
inc rcx
mov qword [rsp + 0x20], rdi
neg al
sbb r15, r15
xor r9d, r9d
and r15, rcx
xor edx, edx
mov rcx, r13
mov qword [rsp + 0x48], r15
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400155a2
sub rsi, r14
sar rsi, 3
mov qword [rsp + 0x50], rsi
cmp word [rbp - 0x74], 0x2e
jne 0x140015635
cmp word [rbp - 0x72], di
je 0x140015655
cmp word [rbp - 0x72], 0x2e
jne 0x140015635
cmp word [rbp - 0x70], di
je 0x140015655
lea r9, [rsp + 0x30]
mov r8, r15
mov rdx, r13
lea rcx, [rbp - 0x74]
call fcn.140015860
mov r15d, eax
test eax, eax
jne 0x1400156b7
mov r15, qword [rsp + 0x48]
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14001561b
mov rsi, qword [rsp + 0x38]
mov r14, qword [rsp + 0x30]
mov rdx, rsi
mov rax, qword [rsp + 0x50]
sub rdx, r14
sar rdx, 3
cmp rax, rdx
jne 0x140015690
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1400156d3
sub rdx, rax
lea rcx, [r14 + rax*8]
lea r9, [0x140015480]
mov r8d, 8
call fcn.140018710
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r15d, edi
jmp 0x1400156ca
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rsi, qword [rsp + 0x38]
mov r14, qword [rsp + 0x30]
test r15d, r15d
jne 0x1400157e1
add r12, 8
mov rax, qword [r12]
jmp 0x140015507
mov rax, rsi
mov qword [rbp + 0x1b0], rdi
sub rax, r14
mov r10, rdi
mov r15, rax
mov rdx, r14
sar r15, 3
mov r9, rdi
inc r15
lea rcx, [rax + 7]
shr rcx, 3
cmp r14, rsi
cmova rcx, rdi
test rcx, rcx
je 0x14001573e
jmp 0x140015494
Function at 0x180002770
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x1800027a1
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x18000281b
mov rdi, r14
mov rcx, rbx
call fcn.1800038e0
test rax, rax
jle 0x1800027f3
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.18000dd90
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 0x18000280b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x180002813
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x1800027b5
sub r14, rdi
jmp 0x1800028ff
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x180002832
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180002834
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180002866
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.18000dd90
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1800028fc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1800028a1
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x1800028dd
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.180015a58
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x1800028fc
cmp rbp, rax
ja 0x1800028b0
test rbp, rbp
je 0x1800028fc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.180015a58
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1800072b0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.180007500
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x1800073ca
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180007314
mov rax, qword [0x180042008]
cmp qword [rsp + 0x20], rax
ja 0x180007314
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x1800072d6
mov r8d, gethostbyname
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.18000e440
mov r8d, gethostbyname
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x180007345
jmp 0x1800073ca
cmp dword [rsp + 0x50], 0x10000
jne 0x1800073ad
cmp qword [rsp + 0x48], 0x10000
jb 0x1800073ad
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18000738b
mov rax, qword [rsp + 0x28]
jmp 0x1800073cc
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x18000739b
xor eax, eax
jmp 0x1800073cc
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x1800073c5
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.180007500
mov qword [rsp + 0x20], rax
jmp 0x1800072d6
xor eax, eax
add rsp, 0x68
ret

Function at 0x1800073e0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.180007540
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x1800074f6
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x18000743b
mov rax, qword [0x180042008]
cmp qword [rsp + 0x20], rax
ja 0x18000743b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x1800073fd
mov r8d, gethostbyname
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.18000e440
mov r8d, gethostbyname
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x18000746c
jmp 0x1800074f6
cmp dword [rsp + 0x50], 0x10000
jne 0x1800074d4
cmp qword [rsp + 0x48], 0x10000
jb 0x1800074d4
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800074b2
mov rax, qword [rsp + 0x28]
jmp 0x1800074f8
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1800074c2
xor eax, eax
jmp 0x1800074f8
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x1800074f1
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180007540
mov qword [rsp + 0x20], rax
jmp 0x1800073fd
xor eax, eax
add rsp, 0x68
ret
Function at 0x180007590
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180007b20
mov qword [rsp + 0x28], 0
cmp qword [0x180043438], 0
jne 0x1800075d8
cmp qword [0x180043430], 0
je 0x1800075d8
mov rax, qword [0x180043430]
mov qword [0x180043438], rax
cmp qword [0x180043438], 0
je 0x18000767e
mov rax, qword [0x180043438]
cmp qword [rax + 0x10], 0
je 0x18000767e
mov rax, qword [0x180043438]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18000767e
mov rax, qword [0x180043438]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18000767e
mov rax, qword [0x180043438]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x180007644
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x18000764b
xor eax, eax
jmp 0x1800077f9
mov rax, qword [0x180043438]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call fcn.18000e440
mov rax, qword [rsp + 0x28]
jmp 0x1800077f9
mov rax, qword [0x180043430]
mov qword [0x180043438], rax
jmp 0x1800076a0
mov rax, qword [0x180043438]
mov rax, qword [rax + 8]
mov qword [0x180043438], rax
cmp qword [0x180043438], 0
je 0x1800076ed
cmp qword [0x180043438], 0
je 0x1800076eb
mov rax, qword [0x180043438]
cmp qword [rax + 0x10], 0
je 0x1800076eb
mov rax, qword [0x180043438]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x1800076eb
mov rax, qword [0x180043438]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x1800076eb
jmp 0x18000761c
jmp 0x18000768e
mov rcx, qword [rsp + 0x60]
call fcn.180009770
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180007800
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x1800077f7
mov rax, qword [rsp + 0x48]
mov qword [0x180043438], rax
mov rax, qword [0x180043438]
mov dword [rax], 0x52727464
mov rax, qword [0x180043438]
mov qword [rax + 0x10], 0
mov rax, qword [0x180043438]
mov rcx, qword [0x180043430]
mov qword [rax + 8], rcx
mov rax, qword [0x180043438]
mov qword [0x180043430], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x180043438]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x1800077a8
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x1800077e2
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x18000779e
mov rax, qword [0x180043438]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x18000761c
xor eax, eax
add rsp, 0x58
ret
Function at 0x180008510
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, gethostbyname
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_VirtualQuery
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x180008557
xor al, al
jmp 0x1800085f9
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x180008581
xor al, al
jmp 0x1800085f9
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x88], rax
jb 0x1800085f1
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov ecx, 8
imul rcx, rcx, 0xc
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx + 0x8c]
add rax, rcx
cmp qword [rsp + 0x88], rax
jae 0x1800085f1
mov al, 1
jmp 0x1800085f9
jmp 0x1800085f7
xor al, al
add rsp, 0x78
ret

Function at 0x180008900
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x180043430]
mov qword [rsp + 0x28], rax
jmp 0x180008920
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18000894f
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x18000894d
call sub.KERNEL32.dll_GetLastError
jmp 0x180008951
jmp 0x180008912
xor eax, eax
add rsp, 0x38
ret
Function at 0x180009010
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x180043448], eax
je 0x18000902b
mov eax, 0x10dd
jmp 0x180009150
mov rax, qword [0x180043460]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800090d5
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x18]
call sub.KERNEL32.dll_VirtualProtect
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x1800090a0
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x1800090a0
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.180007c60
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, gethostbyname
mov rcx, qword [rsp + 0x38]
call fcn.18000abb0
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x180009037
mov qword [0x180043460], 0
call fcn.1800086c0
mov rax, qword [0x180043458]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x180009139
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call sub.KERNEL32.dll_ResumeThread
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x48]
call fcn.18000abb0
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x1800090f1
mov qword [0x180043458], 0
mov dword [0x180043448], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x180009680
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x18004344c], 0
je 0x18000969d
mov eax, dword [0x18004344c]
jmp 0x180009763
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x1800096b0
xor eax, eax
jmp 0x180009763
mov ecx, 0x10
call fcn.18000abb8
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x18000971e
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x180009703
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x38]
call fcn.18000abb0
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x18004344c], eax
mov qword [0x180043450], 0
mov eax, dword [rsp + 0x20]
jmp 0x180009763
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x180009738
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x1800096d9
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x180043458]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x180043458], rax
xor eax, eax
add rsp, 0x48
ret
Function at 0x180020f7c
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 0x180020fae
call fcn.180018248
mov dword [rax], 0x16
call fcn.180016190
jmp 0x1800210cd
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1800210cd
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1800210cd
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x180020fdd
lock or dword [rcx + 0x14], 0x10
jmp 0x1800210cd
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x180020ff1
call fcn.180021678
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.18001bc7c
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.180021b90
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1800210bb
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x180021086
mov rcx, rsi
call fcn.18001bc7c
cmp eax, edi
je 0x180021071
mov rcx, rsi
call fcn.18001bc7c
cmp eax, 0xfffffffe
je 0x180021071
mov rcx, rsi
call fcn.18001bc7c
movsxd rbx, eax
lea r14, [0x1800444e0]
mov rcx, rsi
sar rbx, 6
call fcn.18001bc7c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x180021078
lea rdx, [0x1800423d0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x180021086
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1800210aa
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1800210aa
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1800210aa
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 0x1800210d0
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
Function at 0x1800213f8
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.18002cdd0
sub rsp, rax
mov rax, qword [0x180042020]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18001bc7c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180021447
mov rax, rbp
jmp 0x18002154f
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 + 0x444e0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180022368
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x444e0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18002154b
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 0x18002154b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180022368
test rax, rax
js 0x18002154b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18002154b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18002153d
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18002153d
cmp byte [rcx], 0xd
jne 0x180021523
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180021532
cmp byte [rcx + 1], 0xa
jne 0x180021532
inc rcx
jmp 0x180021532
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x42420]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180021505
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18002154f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18000ab90
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret