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

Disassembly:
mov qword [rsp + 8], rbx
cwde
mov ax, si
cdqe
mov qword [rsp + 0x18], rbp
push rsi
push rdi
movsxd rax, eax
push r14
bswap ax
mov eax, 0x1450
call fcn.14044e565
sub rsp, rax
and rbp, 0x4fae231d
mov rax, qword [0x1400b7288]
bswap r14
bts r14w, sp
xor rax, rsp
mov qword [rsp + 0x1440], rax
cwde
movsxd rdi, r13d
movsxd r10, edx
mov rdi, rcx
shld edx, r10d, 0x66
mov rax, r10
clc
mov ebp, r9d
shl r14d, cl
sar rax, 6
stc
xadd r14b, dl
xor r14b, 0x14
lea rcx, [0x1400ba940]
add sil, 0x43
rol sil, 0x4b
and r10d, 0x3f
bsf si, r15w
lea rbp, [rbp + r8]
movsxd r14, r9d
xor rdx, 0x78123346
dec r14b
mov rsi, r8
sal edx, 0x33
mov rax, qword [rcx + rax*8]
ror dl, 0x67
rcl dl, cl
lea rdx, [r10 + r10*8]
neg r14b
cmc
cmp r8w, 0x5c3
mov r14, qword [rax + rdx*8 + 0x28]
clc
xor eax, eax
test r11b, spl
mov qword [rdi], rax
test dx, bx
clc
mov dword [rdi + 8], eax
cmp r8, rbp
jmp 0x1404e21aa
jae 0x1404e22d2
lea rbx, [rsp + 0x40]
cmp rsi, rbp
jmp 0x1404e21bd
jae 0x1404e2222
movzx eax, word [rsi]
add rsi, 2
cmp ax, 0xa
jmp 0x1404e21d3
jne 0x1404e21f3
add dword [rdi + 8], 2
sar cl, cl
ror rcx, 0x3e
shl cx, 0xd3
mov ecx, 0xd
mov word [rbx], cx
add rbx, 2
mov word [rbx], ax
sar ax, cl
xadd ax, ax
test edi, r15d
add rbx, 2
ror ah, 0xcb
neg al
bswap rax
lea rax, [rsp + 0x143e]
cmp rbx, rax
jmp 0x1404e221c
jb 0x1404e21b5
and qword [rsp + 0x20], 0
bsf r8w, r8w
lea rax, [rsp + 0x40]
btr r8w, 0x71
movzx rdx, dx
bsr rdx, r10
sub rbx, rax
bts dx, si
lea r9, [rsp + 0x30]
sar rbx, 1
lea rdx, [rsp + 0x40]
sbb rcx, rdx
add ebx, ebx
mov rcx, r14
seta r8b
movzx r8w, spl
xchg r8w, r8w
mov r8d, ebx
jmp 0x1404e2271
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jmp 0x1404e227e
je 0x1404e22be
mov eax, dword [rsp + 0x30]
cmp r9w, 0x1f66
test r8b, spl
cmp r11b, bl
add dword [rdi + 4], eax
test esi, 0x1f23342c
clc
cmp eax, ebx
jmp 0x1404e22a5
jb 0x1404e22d2
cmp rsi, rbp
jmp 0x1404e22b3
jb 0x1404e21b0
jmp 0x1404e22d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
sbb rax, 0x7d733be8
rcr ch, cl
sal rcx, cl
mov rax, rdi
shld rcx, r10, 0x6b
movsx ecx, r15w
mov rcx, qword [rsp + 0x1440]
test cl, 0x8d
xor rcx, rsp
jmp 0x1404e22f1
call fcn.1404a55f8
lea r11, [rsp + 0x1450]
movsx rdi, bx
mov rbx, qword [r11 + 0x20]
movzx di, r12b
movsx rbp, bx
mov rbp, qword [r11 + 0x30]
movzx rsi, cx
mov rsp, r11
setp dil
not edi
pop r14
pop rdi
cmovle rsi, rdi
jmp 0x1404e2331
pop rsi
ret
Function at 0x1404e2333
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
cdqe
mov qword [rsp + 0x18], rbp
push rsi
movzx eax, r10w
movsx eax, r15w
movzx ax, r15b
push rdi
mov ax, bx
not rax
push r12
push r14
lahf
jmp 0x1404e2367
push r15
lahf
cdqe
jmp 0x1404e2371
mov eax, 0x1470
jmp 0x1404e237b
call fcn.14044e565
sub rsp, rax
sbb al, r11b
and r10b, 0x67
mov rax, qword [0x1400b7288]
shld r10w, bx, 0xea
xor rax, rsp
shrd r10, rbx, 0x3e
rcl r14d, 0x2f
mov qword [rsp + 0x1460], rax
movsxd r10, edx
mov rbx, rcx
sbb r15w, 0x2b2
mov rax, r10
mov r14d, r9d
cqo
sar rax, 6
cwd
lea rcx, [0x1400ba940]
bsf r12w, dx
and r10d, 0x3f
lea r14, [r14 + r8]
mov r15, r8
shld dx, r12w, 0x3e
mov rdi, r8
mov rax, qword [rcx + rax*8]
sbb r12w, 0x76b8
sbb r12b, dil
inc rdx
lea rdx, [r10 + r10*8]
mov r12, qword [rax + rdx*8 + 0x28]
sub eax, eax
mov qword [rbx], rax
cmp r8, r14
mov dword [rbx + 8], eax
jmp 0x1404e240e
jae 0x1404e25a3
lea rax, [rsp + 0x50]
cmp cl, 0x5d
clc
cmp rdi, r14
jae 0x1404e2489
movzx ecx, word [rdi]
jmp 0x1404e242f
add rdi, 2
stc
cmp r13w, 0x3b4c
jmp 0x1404e243f
cmp cx, 0xa
jmp 0x1404e2448
jne 0x1404e245e
mov edx, 0xd
cmp ebx, r11d
mov word [rax], dx
add rax, 2
cmc
mov word [rax], cx
add rax, 2
bt ecx, 0xb9
mov cx, 0x3380
shr cx, cl
lea rcx, [rsp + 0x6f8]
cmp cl, spl
cmp rax, rcx
jmp 0x1404e2483
jb 0x1404e241d
and qword [rsp + 0x38], 0
sbb r8w, 0x4572
movsxd r9, r11d
lea rcx, [rsp + 0x50]
btc r9w, r8w
rol r9d, 0xf3
and qword [rsp + 0x30], 0
rcl r8w, 0xca
shl r9, cl
lea r8, [rsp + 0x50]
sub rax, rcx
adc ch, 0x36
mov r9b, r11b
mov dword [rsp + 0x28], 0xd55
bts r9d, edi
movzx r9, r12w
mov ch, 0x11
lea rcx, [rsp + 0x700]
sar rax, 1
mov qword [rsp + 0x20], rcx
adc cl, r10b
btc cx, dx
mov r9d, eax
mov ecx, 0xfde9
sub edx, edx
call fcn.1404cf280
mov ebp, eax
test eax, eax
jmp 0x1404e2504
je 0x1404e259b
xor esi, esi
cmp bpl, r14b
test eax, eax
jmp 0x1404e2516
je 0x1404e2583
and qword [rsp + 0x20], 0
lea rdx, [rsp + 0x700]
xchg r8b, cl
rol cx, 0x54
mov ecx, esi
lea r9, [rsp + 0x40]
sub r8b, r8b
rol r8w, cl
mov r8d, ebp
clc
jmp 0x1404e2548
add rdx, rcx
bsr cx, di
shld cx, r15w, 6
mov rcx, r12
test r10d, ebx
sub r8d, esi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1404e259b
add esi, dword [rsp + 0x40]
jmp 0x1404e257b
cmp esi, ebp
jb 0x1404e251c
mov eax, edi
cmp bpl, 0xee
cmp rsp, rcx
stc
sub eax, r15d
mov dword [rbx + 4], eax
cmp rdi, r14
jmp 0x1404e240e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
mov rax, rbx
movzx ecx, r11w
mov rcx, qword [rsp + 0x1460]
cmp bp, 0x7275
clc
xor rcx, rsp
jmp 0x1404e25c0
call fcn.1404a55f8
lea r11, [rsp + 0x1470]
xchg r12b, bpl
mov ebp, 0x2b635ac1
cmovb di, bp
mov rbx, qword [r11 + 0x30]
movsx r15, si
mov rbp, qword [r11 + 0x40]
mov rsp, r11
mov r12d, 0x6a16488
movzx rdi, cx
pop r15
movzx rdi, bx
setg r12b
pop r14
movzx r12w, sil
mov dil, bpl
pop r12
mov rsi, 0x5f0a44aa
bswap di
mov dil, bpl
pop rdi
movzx esi, r9w
xchg si, si
movzx si, r11b
pop rsi
jmp 0x1404e2628
ret
Function at 0x1404e5d33
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
or r9b, r8b
movzx r8w, al
btc r9, 0xcf
push rdi
shl r8d, 0x1e
sub rsp, 0x20
mov rbx, rdx
xchg r9b, r9b
movsx rdi, r11w
cwd
lea r9, [0x1400c8ea8]
mov edi, ecx
movsx cx, r13b
movsx r8, bx
lea rdx, [0x1400cf748]
bswap r8
mov cl, 0x70
jmp 0x1404e5d7d
mov ecx, 3
mov r8, r10
lea r8, [0x1400c8ea0]
jmp 0x1404e5d91
call fcn.1404e5e9b
mov rdx, rbx
sbb cl, 0xc4
cmc
mov ecx, edi
cmp r11w, bp
jmp 0x1404e5daf
test rax, rax
jmp 0x1404e5db7
je 0x1404e5dc8
call qword [case.0x14044e461.0]
jmp 0x1404e5dce
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
movsxd rdi, edi
pop rdi
jmp 0x1404e5de0
ret
Function at 0x180001000
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
push r14
push r15
sub rsp, 0x170
mov rax, qword [0x18001f018]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor r15d, r15d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x58], r15
mov r14, rdx
mov qword [rsp + 0x50], r15
mov rdi, rcx
mov qword [rsp + 0x48], r15
xor r9d, r9d
mov qword [rsp + 0x40], r15
xor r8d, r8d
mov qword [rsp + 0x38], rax
xor edx, edx
mov qword [rsp + 0x30], r15
mov rcx, r14
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x18000119d
mov qword [rsp + 0x1a8], rbp
mov ebp, r15d
cmp dword [rsp + 0x60], r15d
jbe 0x180001195
mov qword [rsp + 0x168], rsi
mov qword [rsp + 0x160], r12
lea r12, [r15 - 1]
mov qword [rsp + 0x1a0], rbx
lea rax, [rsp + 0x64]
mov dword [rsp + 0x68], 0x64
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x68]
lea rax, [rsp + 0x70]
mov dword [rsp + 0x64], 4
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x80]
lea rax, [rsp + 0x6c]
mov edx, ebp
mov qword [rsp + 0x28], rax
mov rcx, r14
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x180001171
cmp dword [rsp + 0x6c], 4
jne 0x180001171
mov edx, dword [rdi]
mov eax, r15d
mov esi, dword [rsp + 0x70]
test edx, edx
je 0x18000111e
mov r8, qword [rdi + 8]
nop dword [rax + rax]
mov ecx, eax
cmp dword [r8 + rcx*4], esi
je 0x180001171
inc eax
cmp eax, edx
jb 0x180001110
mov eax, dword [rdi + 4]
cmp edx, eax
jne 0x180001166
add eax, 0x10
mov ecx, eax
mov dword [rdi + 4], eax
mov eax, 4
mul rcx
cmovo rax, r12
mov rcx, rax
call fcn.180008448
mov r8d, dword [rdi]
mov rcx, rax
mov rdx, qword [rdi + 8]
mov rbx, rax
shl r8, 2
call fcn.180009480
mov rcx, qword [rdi + 8]
mov qword [rdi + 8], rbx
call fcn.180008404
mov edx, dword [rdi]
mov rax, qword [rdi + 8]
mov ecx, edx
mov dword [rax + rcx*4], esi
inc dword [rdi]
inc ebp
cmp ebp, dword [rsp + 0x60]
jb 0x1800010a0
mov r12, qword [rsp + 0x160]
mov rsi, qword [rsp + 0x168]
mov rbx, qword [rsp + 0x1a0]
mov rbp, qword [rsp + 0x1a8]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1800083e0
add rsp, 0x170
pop r15
pop r14
pop rdi
ret
Function at 0x1800011c0
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
push r14
push r15
sub rsp, 0x160
mov rax, qword [0x18001f018]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor r15d, r15d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x58], r15
mov r14, rdx
mov qword [rsp + 0x50], r15
mov rdi, rcx
mov qword [rsp + 0x48], r15
xor r9d, r9d
mov qword [rsp + 0x40], r15
xor r8d, r8d
mov qword [rsp + 0x38], rax
xor edx, edx
mov qword [rsp + 0x30], r15
mov rcx, r14
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1800013d8
mov qword [rsp + 0x198], rbp
mov ecx, 0x20a
mov qword [rsp + 0x158], rsi
call fcn.180008448
mov rsi, rax
mov ebp, r15d
cmp dword [rsp + 0x60], r15d
jbe 0x1800013c0
mov qword [rsp + 0x190], rbx
mov qword [rsp + 0x150], r12
lea r12, [r15 - 1]
nop dword [rax]
lea rax, [rsp + 0x64]
mov dword [rsp + 0x68], 0x64
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x68]
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x70]
mov edx, ebp
mov qword [rsp + 0x20], r15
mov rcx, r14
mov dword [rsp + 0x64], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x1800013a4
cmp dword [rsp + 0x6c], 1
jne 0x1800013a4
test rsi, rsi
je 0x1800013a4
mov ebx, r15d
cmp dword [rdi], ebx
jbe 0x18000131a
nop word [rax + rax]
mov rdx, rsi
mov rax, qword [rdi + 0x10]
mov ecx, ebx
lea rcx, [rax + rcx*8]
mov rcx, qword [rcx]
cmp dword [rdi + 8], r15d
je 0x1800012fe
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
jmp 0x180001304
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
mov ecx, r15d
sete cl
test ecx, ecx
jne 0x1800013a4
inc ebx
cmp ebx, dword [rdi]
jb 0x1800012e0
mov eax, dword [rdi + 4]
cmp dword [rdi], eax
jne 0x180001360
add eax, 0x10
mov ecx, eax
mov dword [rdi + 4], eax
mov eax, 8
mul rcx
cmovo rax, r12
mov rcx, rax
call fcn.180008448
mov r8d, dword [rdi]
mov rcx, rax
mov rdx, qword [rdi + 0x10]
mov rbx, rax
shl r8, 3
call fcn.180009480
mov rcx, qword [rdi + 0x10]
mov qword [rdi + 0x10], rbx
call fcn.180008404
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
movsxd rcx, eax
mov eax, 2
mul rcx
cmovo rax, r12
mov rcx, rax
call fcn.180008448
mov edx, dword [rdi]
mov rcx, qword [rdi + 0x10]
mov qword [rcx + rdx*8], rax
mov edx, dword [rdi]
mov rax, qword [rdi + 0x10]
mov rcx, qword [rax + rdx*8]
lea eax, [rdx + 1]
mov rdx, rsi
mov dword [rdi], eax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
inc ebp
cmp ebp, dword [rsp + 0x60]
jb 0x180001270
mov r12, qword [rsp + 0x150]
mov rbx, qword [rsp + 0x190]
mov rcx, rsi
call fcn.180008404
mov rsi, qword [rsp + 0x158]
mov rbp, qword [rsp + 0x198]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800083e0
add rsp, 0x160
pop r15
pop r14
pop rdi
ret
Function at 0x180003f20
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x18001f018]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rcx
cmp edx, 1
jne 0x180004080
mov r8d, 0x104
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
js 0x18000407c
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test rax, rax
je 0x180003f93
mov r8d, 6
lea rdx, str.dialer
mov rcx, rax
call fcn.18000a610
test eax, eax
je 0x18000407c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x18000402e
movzx ecx, word [rbx + 0x40]
mov eax, 0x7268
sub cx, ax
cmp cx, 0xf
ja 0x180003fc7
mov eax, 0x8801
bt eax, ecx
jb 0x18000407c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 4
mov r8d, 0x200
mov rcx, rax
mov rdx, rbx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x18000402e
mov eax, 0x7277
mov word [rbx + 0x40], ax
lea rax, [0x180004750]
mov qword [rbx + 0x42], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, dword [rsp + 0x30]
mov r8d, 0x200
mov rcx, rax
mov rdx, rbx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
cmp byte [0x180020cb9], 0
jne 0x180004089
cmp qword [0x180020c90], 0
mov byte [0x180020cb9], 1
mov qword [0x180020cf0], rdi
jne 0x180004075
xor eax, eax
lea r8, [0x180001ed0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x180020c90], rax
call fcn.180001f20
jmp 0x180004089
xor eax, eax
jmp 0x18000408e
test edx, edx
jne 0x180004089
call fcn.1800044f0
mov eax, 1
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1800083e0
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
Function at 0x1800040b0
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov rax, qword gs:[0x60]
mov esi, edx
mov edi, ecx
xor ebp, ebp
mov r8, qword [rax + 0x18]
mov rbx, qword [r8 + 0x20]
mov r10, rbx
nop
mov r9, qword [r10 + 0x50]
test r9, r9
je 0x180004120
movzx ecx, word [r10 + 0x48]
mov eax, ebp
cmp bp, cx
jae 0x18000411c
mov r11d, ecx
nop dword [rax + rax]
movsx edx, byte [r9]
lea r9, [r9 + 1]
ror eax, 0xd
cmp dl, 0x61
lea ecx, [rdx - 0x20]
cmovl ecx, edx
add eax, ecx
sub r11, 1
jne 0x180004100
cmp eax, edi
je 0x18000413f
mov r10, qword [r10]
cmp r10, rbx
jne 0x1800040e0
xor eax, eax
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret
mov r11, qword [r10 + 0x20]
mov r9d, ebp
movsxd rax, dword [r11 + 0x3c]
mov edi, dword [rax + r11 + 0x88]
add rdi, r11
mov r8d, dword [rdi + 0x20]
mov r10d, dword [rdi + 0x24]
add r8, r11
mov ebx, dword [rdi + 0x18]
add r10, r11
test ebx, ebx
je 0x180004128
nop word [rax + rax]
mov edx, dword [r8]
mov ecx, ebp
add rdx, r11
movzx eax, byte [rdx]
test al, al
je 0x180004193
nop
ror ecx, 0xd
lea rdx, [rdx + 1]
movsx eax, al
add ecx, eax
movzx eax, byte [rdx]
test al, al
jne 0x180004180
cmp ecx, esi
je 0x1800041ac
inc r9d
add r8, 4
add r10, 2
cmp r9d, ebx
jb 0x180004170
jmp 0x180004128
mov ecx, dword [rdi + 0x1c]
movzx edx, word [r10]
add rcx, r11
mov eax, dword [rcx + rdx*4]
add rax, r11
jmp 0x18000412a
Function at 0x1800044f0
Capabilities:
Terminate thread

Disassembly:
sub rsp, 0x48
mov rax, qword [0x18001f018]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp byte [0x180020cb9], 0
je 0x18000473a
xor ecx, ecx
mov qword [rsp + 0x40], rbx
mov byte [0x180020cb9], 0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x180004596
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 4
mov r8d, 0x200
mov rcx, rax
mov rdx, rbx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x180004596
mov eax, 0x1f0e
mov word [rbx + 0x40], ax
movabs rax, 0xb821cd09b4000eba
mov qword [rbx + 0x42], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, dword [rsp + 0x30]
mov r8d, 0x200
mov rcx, rax
mov rdx, rbx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rcx, qword [0x180020c90]
mov rbx, qword [rsp + 0x40]
test rcx, rcx
je 0x1800045ba
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov qword [0x180020c90], 0
cmp byte [0x180020cb8], 0
je 0x18000473a
mov byte [0x180020cb8], 0
call fcn.1800069c0
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call fcn.180006ee0
mov rax, qword [0x180020cb0]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x180004603
lea rdx, [0x180002260]
lea rcx, [rsp + 0x30]
call fcn.180006620
mov rax, qword [0x180020c98]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x180004625
lea rdx, [0x1800024f0]
lea rcx, [rsp + 0x30]
call fcn.180006620
mov rax, qword [0x180020ce8]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x180004647
lea rdx, [0x180002630]
lea rcx, [rsp + 0x30]
call fcn.180006620
mov rax, qword [0x180020ca8]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x180004669
lea rdx, [0x180002a10]
lea rcx, [rsp + 0x30]
call fcn.180006620
mov rax, qword [0x180020ca0]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x18000468b
lea rdx, [0x180003030]
lea rcx, [rsp + 0x30]
call fcn.180006620
mov rax, qword [0x180020cc0]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1800046ad
lea rdx, [0x180003120]
lea rcx, [rsp + 0x30]
call fcn.180006620
mov rax, qword [0x180020cc8]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1800046cf
lea rdx, [0x180003210]
lea rcx, [rsp + 0x30]
call fcn.180006620
mov rax, qword [0x180020cd0]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1800046f1
lea rdx, [0x1800032a0]
lea rcx, [rsp + 0x30]
call fcn.180006620
mov rax, qword [0x180020cd8]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x180004713
lea rdx, [0x180003330]
lea rcx, [rsp + 0x30]
call fcn.180006620
mov rax, qword [0x180020ce0]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x180004735
lea rdx, [0x1800033c0]
lea rcx, [rsp + 0x30]
call fcn.180006620
call fcn.180006a30
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800083e0
add rsp, 0x48
ret
Function at 0x1800048f0
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.180004b40
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x180004a0a
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180004954
mov rax, qword [0x18001f008]
cmp qword [rsp + 0x20], rax
ja 0x180004954
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180004916
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.180009890
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x180004985
jmp 0x180004a0a
cmp dword [rsp + 0x50], 0x10000
jne 0x1800049ed
cmp qword [rsp + 0x48], 0x10000
jb 0x1800049ed
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 0x1800049cb
mov rax, qword [rsp + 0x28]
jmp 0x180004a0c
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1800049db
xor eax, eax
jmp 0x180004a0c
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180004a05
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.180004b40
mov qword [rsp + 0x20], rax
jmp 0x180004916
xor eax, eax
add rsp, 0x68
ret

Function at 0x180004a20
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.180004b80
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x180004b36
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180004a7b
mov rax, qword [0x18001f008]
cmp qword [rsp + 0x20], rax
ja 0x180004a7b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180004a3d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.180009890
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x180004aac
jmp 0x180004b36
cmp dword [rsp + 0x50], 0x10000
jne 0x180004b14
cmp qword [rsp + 0x48], 0x10000
jb 0x180004b14
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 0x180004af2
mov rax, qword [rsp + 0x28]
jmp 0x180004b38
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x180004b02
xor eax, eax
jmp 0x180004b38
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180004b31
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180004b80
mov qword [rsp + 0x20], rax
jmp 0x180004a3d
xor eax, eax
add rsp, 0x68
ret
Function at 0x180004bd0
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.180005160
mov qword [rsp + 0x28], 0
cmp qword [0x18001faa8], 0
jne 0x180004c18
cmp qword [0x18001faa0], 0
je 0x180004c18
mov rax, qword [0x18001faa0]
mov qword [0x18001faa8], rax
cmp qword [0x18001faa8], 0
je 0x180004cbe
mov rax, qword [0x18001faa8]
cmp qword [rax + 0x10], 0
je 0x180004cbe
mov rax, qword [0x18001faa8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x180004cbe
mov rax, qword [0x18001faa8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x180004cbe
mov rax, qword [0x18001faa8]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x180004c84
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x180004c8b
xor eax, eax
jmp 0x180004e39
mov rax, qword [0x18001faa8]
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.180009890
mov rax, qword [rsp + 0x28]
jmp 0x180004e39
mov rax, qword [0x18001faa0]
mov qword [0x18001faa8], rax
jmp 0x180004ce0
mov rax, qword [0x18001faa8]
mov rax, qword [rax + 8]
mov qword [0x18001faa8], rax
cmp qword [0x18001faa8], 0
je 0x180004d2d
cmp qword [0x18001faa8], 0
je 0x180004d2b
mov rax, qword [0x18001faa8]
cmp qword [rax + 0x10], 0
je 0x180004d2b
mov rax, qword [0x18001faa8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x180004d2b
mov rax, qword [0x18001faa8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x180004d2b
jmp 0x180004c5c
jmp 0x180004cce
mov rcx, qword [rsp + 0x60]
call fcn.180006fd0
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.180004e40
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180004e37
mov rax, qword [rsp + 0x48]
mov qword [0x18001faa8], rax
mov rax, qword [0x18001faa8]
mov dword [rax], 0x52727464
mov rax, qword [0x18001faa8]
mov qword [rax + 0x10], 0
mov rax, qword [0x18001faa8]
mov rcx, qword [0x18001faa0]
mov qword [rax + 8], rcx
mov rax, qword [0x18001faa8]
mov qword [0x18001faa0], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x18001faa8]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x180004de8
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x180004e22
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 0x180004dde
mov rax, qword [0x18001faa8]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x180004c5c
xor eax, eax
add rsp, 0x58
ret