joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180008ac0
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.180008d10
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x180008bda
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180008b24
mov rax, qword [0x180046008]
cmp qword [rsp + 0x20], rax
ja 0x180008b24
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180008ae6
mov r8d, gethostbyname
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.18000fc50
mov r8d, gethostbyname
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x180008b55
jmp 0x180008bda
cmp dword [rsp + 0x50], 0x10000
jne 0x180008bbd
cmp qword [rsp + 0x48], 0x10000
jb 0x180008bbd
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 0x180008b9b
mov rax, qword [rsp + 0x28]
jmp 0x180008bdc
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x180008bab
xor eax, eax
jmp 0x180008bdc
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180008bd5
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.180008d10
mov qword [rsp + 0x20], rax
jmp 0x180008ae6
xor eax, eax
add rsp, 0x68
ret

Function at 0x180008bf0
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.180008d50
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x180008d06
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180008c4b
mov rax, qword [0x180046008]
cmp qword [rsp + 0x20], rax
ja 0x180008c4b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180008c0d
mov r8d, gethostbyname
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.18000fc50
mov r8d, gethostbyname
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x180008c7c
jmp 0x180008d06
cmp dword [rsp + 0x50], 0x10000
jne 0x180008ce4
cmp qword [rsp + 0x48], 0x10000
jb 0x180008ce4
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 0x180008cc2
mov rax, qword [rsp + 0x28]
jmp 0x180008d08
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x180008cd2
xor eax, eax
jmp 0x180008d08
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180008d01
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180008d50
mov qword [rsp + 0x20], rax
jmp 0x180008c0d
xor eax, eax
add rsp, 0x68
ret
Function at 0x180008da0
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.180009330
mov qword [rsp + 0x28], 0
cmp qword [0x180047488], 0
jne 0x180008de8
cmp qword [0x180047480], 0
je 0x180008de8
mov rax, qword [0x180047480]
mov qword [0x180047488], rax
cmp qword [0x180047488], 0
je 0x180008e8e
mov rax, qword [0x180047488]
cmp qword [rax + 0x10], 0
je 0x180008e8e
mov rax, qword [0x180047488]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x180008e8e
mov rax, qword [0x180047488]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x180008e8e
mov rax, qword [0x180047488]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x180008e54
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x180008e5b
xor eax, eax
jmp 0x180009009
mov rax, qword [0x180047488]
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.18000fc50
mov rax, qword [rsp + 0x28]
jmp 0x180009009
mov rax, qword [0x180047480]
mov qword [0x180047488], rax
jmp 0x180008eb0
mov rax, qword [0x180047488]
mov rax, qword [rax + 8]
mov qword [0x180047488], rax
cmp qword [0x180047488], 0
je 0x180008efd
cmp qword [0x180047488], 0
je 0x180008efb
mov rax, qword [0x180047488]
cmp qword [rax + 0x10], 0
je 0x180008efb
mov rax, qword [0x180047488]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x180008efb
mov rax, qword [0x180047488]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x180008efb
jmp 0x180008e2c
jmp 0x180008e9e
mov rcx, qword [rsp + 0x60]
call fcn.18000af80
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.180009010
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180009007
mov rax, qword [rsp + 0x48]
mov qword [0x180047488], rax
mov rax, qword [0x180047488]
mov dword [rax], 0x52727464
mov rax, qword [0x180047488]
mov qword [rax + 0x10], 0
mov rax, qword [0x180047488]
mov rcx, qword [0x180047480]
mov qword [rax + 8], rcx
mov rax, qword [0x180047488]
mov qword [0x180047480], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x180047488]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x180008fb8
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x180008ff2
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 0x180008fae
mov rax, qword [0x180047488]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x180008e2c
xor eax, eax
add rsp, 0x58
ret
Function at 0x180009d20
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 0x180009d67
xor al, al
jmp 0x180009e09
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 0x180009d91
xor al, al
jmp 0x180009e09
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 0x180009e01
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 0x180009e01
mov al, 1
jmp 0x180009e09
jmp 0x180009e07
xor al, al
add rsp, 0x78
ret

Function at 0x18000a110
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x180047480]
mov qword [rsp + 0x28], rax
jmp 0x18000a130
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18000a15f
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x18000a15d
call sub.KERNEL32.dll_GetLastError
jmp 0x18000a161
jmp 0x18000a122
xor eax, eax
add rsp, 0x38
ret
Function at 0x18000a820
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x180047498], eax
je 0x18000a83b
mov eax, 0x10dd
jmp 0x18000a960
mov rax, qword [0x1800474b0]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18000a8e5
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 0x18000a8b0
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x18000a8b0
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.180009470
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.18000c3c0
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x18000a847
mov qword [0x1800474b0], 0
call fcn.180009ed0
mov rax, qword [0x1800474a8]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x18000a949
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, send
mov rcx, qword [rsp + 0x48]
call fcn.18000c3c0
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x18000a901
mov qword [0x1800474a8], 0
mov dword [0x180047498], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x18000ae90
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x18004749c], 0
je 0x18000aead
mov eax, dword [0x18004749c]
jmp 0x18000af73
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x18000aec0
xor eax, eax
jmp 0x18000af73
mov ecx, send
call fcn.18000c3c8
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x18000af2e
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x18000af13
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, send
mov rcx, qword [rsp + 0x38]
call fcn.18000c3c0
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x18004749c], eax
mov qword [0x1800474a0], 0
mov eax, dword [rsp + 0x20]
jmp 0x18000af73
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x18000af48
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x18000aee9
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x1800474a8]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x1800474a8], rax
xor eax, eax
add rsp, 0x48
ret
Function at 0x18002353c
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 0x18002356e
call fcn.18001a808
mov dword [rax], 0x16
call fcn.1800185e8
jmp 0x18002368d
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x18002368d
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x18002368d
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x18002359d
lock or dword [rcx + 0x14], 0x10
jmp 0x18002368d
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1800235b1
call fcn.180023c38
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.18001e23c
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.180024150
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x18002367b
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x180023646
mov rcx, rsi
call fcn.18001e23c
cmp eax, edi
je 0x180023631
mov rcx, rsi
call fcn.18001e23c
cmp eax, 0xfffffffe
je 0x180023631
mov rcx, rsi
call fcn.18001e23c
movsxd rbx, eax
lea r14, [0x180048530]
mov rcx, rsi
sar rbx, 6
call fcn.18001e23c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x180023638
lea rdx, [0x1800463d0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x180023646
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x18002366a
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x18002366a
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x18002366a
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 0x180023690
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 0x1800239b8
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.18002f390
sub rsp, rax
mov rax, qword [0x180046020]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18001e23c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180023a07
mov rax, rbp
jmp 0x180023b0f
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 + 0x48530]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180024928
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x48530]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180023b0b
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 0x180023b0b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180024928
test rax, rax
js 0x180023b0b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180023b0b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180023afd
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180023afd
cmp byte [rcx], 0xd
jne 0x180023ae3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180023af2
cmp byte [rcx + 1], 0xa
jne 0x180023af2
inc rcx
jmp 0x180023af2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x46420]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180023ac5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180023b0f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18000c3a0
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 0x180023ca4
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, [0x180048530]
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 0x180023d02
cmp word [rdx], r12w
jne 0x180023d02
or byte [rax + r8*8 + 0x38], cl
jmp 0x180023d08
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x180023e63
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x180023e3e
lea r9, [rcx + 2]
cmp ax, r13w
je 0x180023d41
mov rcx, r9
jmp 0x180023d64
cmp r9, rdx
jae 0x180023d7b
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 0x180023d25
jmp 0x180023e63
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 0x180023e38
cmp dword [rsp + 0x80], edi
je 0x180023e38
mov rdx, r14
lea r11, [0x180048530]
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 0x180023e11
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x180023de4
mov word [rbx], r12w
jmp 0x180023e5f
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 0x180023ded
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x180023e5f
cmp word [rsp + 0x70], r12w
jne 0x180023e1e
cmp rbx, rsi
je 0x180023dde
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.180024930
cmp word [rsp + 0x70], r12w
je 0x180023e63
mov word [rbx], r13w
jmp 0x180023e5f
lea r11, [0x180048530]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x180023e5b
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x180023e63
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 0x180026ae4
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x180026b14
xor eax, eax
jmp 0x180026bd7
mov rbp, rbx
cmp word [rax], si
je 0x180026b39
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180026b20
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180026b1c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.180026a34
movsxd r14, eax
test eax, eax
jne 0x180026b77
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180026b0d
mov rcx, r14
call fcn.180022160
mov rdi, rax
test rax, rax
jne 0x180026b90
xor ecx, ecx
call fcn.180020734
jmp 0x180026b6c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.180026a34
test eax, eax
jne 0x180026bc1
mov rcx, rdi
call fcn.180020734
jmp 0x180026bcb
xor ecx, ecx
call fcn.180020734
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Initialize winhttp library

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x30]
mov edx, 1
mov r8d, 0x40
lea rcx, [0x14000366c]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
xor r9d, r9d
mov dword [rsp + 0x20], 0
xor r8d, r8d
lea rcx, str.User_Agent
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
xor r9d, r9d
lea rdx, [0x14000366c]
mov rcx, rax
mov r8d, 0xc00
mov rbx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400010a0
add rsp, 0x40
pop rbx
ret

Function at 0x140001968
Capabilities:
Parse pe header

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

Function at 0x14100e5e4
Capabilities:
Encode data using xor

Disassembly:
jmp 0x14100e5ee
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x14100e617
pop rbp
sub rbp, 0x33
sub rbp, 0x100e5e4
sub rsp, 0x20
jmp 0x14100e636
mov rax, 0x100e5e4
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffff905f9abc
xor byte [rax], dl
inc rax
dec rcx
jne 0x14100e655
jmp 0x14100e66c
hlt
Function at 0x412ea0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x41302b
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call sym.runtime.stdcall3.abi0
xorps xmm15, xmm15
mov r14, qword [0x00606f48]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x412f05
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x412f14
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x412f33
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x412f43
cmp rbx, 0x1000
jae 0x412f0b
jmp 0x412fad
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x412f55
xor edx, edx
jmp 0x412fa4
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call sym.runtime.stdcall3.abi0
xorps xmm15, xmm15
mov r14, qword [0x00606f48]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x412f39
jmp 0x412f28
call sym.runtime.getlasterror.abi0
xorps xmm15, xmm15
mov r14, qword [0x00606f48]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call sym.runtime.printlock
lea rax, [0x004f30bd]
mov ebx, 0x18
nop dword [rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x38]
call sym.runtime.printuint
lea rax, [0x004f35b4]
mov ebx, 0x19
nop dword [rax + rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x30]
call sym.runtime.printuint
call sym.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x004f59cd]
mov ebx, 0x21
call sym.runtime.throw
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp sym.runtime.sysUnusedOS