joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002e1c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0xb0
mov rax, qword [0x14007f010]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov ebp, r8d
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x88], rdx
mov eax, dword [rcx + 0x50]
inc eax
mov dword [r11 - 0x50], eax
xorps xmm0, xmm0
mov ebx, eax
movdqu xmmword [r11 - 0x48], xmm0
xor r14d, r14d
mov qword [r11 - 0x38], r14
test eax, eax
je 0x14002e24a
lfence
mov edx, ebx
lea rcx, [r11 - 0x48]
call fcn.140003380
mov qword [rsp + 0x90], rax
lea r8, [rbx + rbx]
lea rbx, [r8 + rax]
mov qword [rsp + 0xa0], rbx
xor edx, edx
mov rcx, rax
call fcn.140033ee0
mov qword [rsp + 0x98], rbx
mov rbx, qword [rsp + 0x90]
mov edx, 1
mov rcx, rsi
call fcn.14002df60
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x88]
mov r8, rbx
mov edx, ebp
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ebx, eax
test eax, eax
jne 0x14002e32a
mov r8d, dword [rsp + 0x88]
mov qword [rdi], r14
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], 7
mov word [rdi], r14w
mov rdx, qword [rsp + 0x90]
mov rcx, rdi
call fcn.140002f50
nop
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x14002e303
mov rdx, qword [rsp + 0xa0]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002e2fe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002e324
call fcn.14002ef0c
mov rax, rdi
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.14002ec60
add rsp, 0xb0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.1400385e8
nop
mov rcx, rsi
call fcn.140023cb0
mov r8, rax
lea rdx, str.Failed_to_retrieve_value_name
lea rcx, [rsp + 0x68]
call fcn.140027930
mov r9, rax
call fcn.140012df0
mov r8, rax
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.1400046a0
lea rdx, [0x14007d108]
lea rcx, [rsp + 0x40]
call fcn.140033e04
int3
Function at 0x14002e370
Capabilities:
Query or enumerate registry key

Disassembly:
mov r11, rsp
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0xb0
mov rax, qword [0x14007f010]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov ebp, r8d
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x88], rdx
mov eax, dword [rcx + 0x48]
inc eax
mov dword [r11 - 0x50], eax
xorps xmm0, xmm0
mov ebx, eax
movdqu xmmword [r11 - 0x48], xmm0
xor r14d, r14d
mov qword [r11 - 0x38], r14
test eax, eax
je 0x14002e3fa
lfence
mov edx, ebx
lea rcx, [r11 - 0x48]
call fcn.140003380
mov qword [rsp + 0x90], rax
lea r8, [rbx + rbx]
lea rbx, [r8 + rax]
mov qword [rsp + 0xa0], rbx
xor edx, edx
mov rcx, rax
call fcn.140033ee0
mov qword [rsp + 0x98], rbx
mov rbx, qword [rsp + 0x90]
mov edx, 8
mov rcx, rsi
call fcn.14002df60
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x88]
mov r8, rbx
mov edx, ebp
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
test eax, eax
jne 0x14002e4da
mov r8d, dword [rsp + 0x88]
mov qword [rdi], r14
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], 7
mov word [rdi], r14w
mov rdx, qword [rsp + 0x90]
mov rcx, rdi
call fcn.140002f50
nop
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x14002e4b3
mov rdx, qword [rsp + 0xa0]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002e4ae
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002e4d4
call fcn.14002ef0c
mov rax, rdi
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.14002ec60
add rsp, 0xb0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.1400385e8
nop
mov rcx, rsi
call fcn.140023cb0
mov r8, rax
lea rdx, str.Failed_to_retrieve_value_name
lea rcx, [rsp + 0x68]
call fcn.140027930
mov r9, rax
call fcn.140012df0
mov r8, rax
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.1400046a0
lea rdx, [0x14007d108]
lea rcx, [rsp + 0x40]
call fcn.140033e04
int3
Function at 0x140030e30
Capabilities:
Read file 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, 0x20
mov rdi, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140030e5d
xor eax, eax
jmp 0x140030f57
cmp qword [rcx + 0x68], 0
je 0x140030e71
lfence
call fcn.140005c60
jmp 0x140030f57
mov rax, qword [rcx + 0x38]
mov rbp, rdi
mov rdx, qword [rax]
test rdx, rdx
je 0x140030e88
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140030e8a
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140030ebc
cmp rax, rdi
mov rbx, rdi
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140034100
mov rax, qword [rsi + 0x50]
add r14, rbx
sub rbp, rbx
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140030f4e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140030ef7
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov rbx, rbp
mov r15d, 0xfff
jmp 0x140030f27
mov r9, qword [rsi + 0x80]
mov r8, r15
mov edx, 1
mov rcx, r14
call fcn.1400465b4
sub rbp, rax
add r14, rax
mov rbx, rbp
cmp rax, r15
jne 0x140030f4e
cmp rbp, r15
ja 0x140030f02
test rbx, rbx
je 0x140030f4e
mov r9, qword [rsi + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, r14
call fcn.1400465b4
mov rbp, rbx
sub rbp, rax
sub rdi, rbp
mov rax, rdi
lfence
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x14004fcac
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 0x14004fcde
call fcn.140041fc8
mov dword [rax], SafeArrayPutElement
call fcn.1400385c8
jmp 0x14004fdfd
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14004fdfd
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14004fdfd
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14004fd0d
lock or dword [rcx + 0x14], 0x10
jmp 0x14004fdfd
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14004fd21
call fcn.14004fa98
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14004bd08
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.1400560b0
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14004fdeb
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14004fdb6
mov rcx, rsi
call fcn.14004bd08
cmp eax, edi
je 0x14004fda1
mov rcx, rsi
call fcn.14004bd08
cmp eax, 0xfffffffe
je 0x14004fda1
mov rcx, rsi
call fcn.14004bd08
movsxd rbx, eax
lea r14, [0x140082af0]
mov rcx, rsi
sar rbx, 6
call fcn.14004bd08
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14004fda8
lea rdx, [0x14007f3d0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14004fdb6
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14004fdda
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14004fdda
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14004fdda
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 0x14004fe00
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 0x14004fe18
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 0x14004fb3a
call fcn.140041fc8
mov dword [rax], SafeArrayPutElement
call fcn.1400385c8
jmp 0x14004fc8a
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14004fc8a
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14004fc8a
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14004fb69
lock or dword [rcx + 0x14], 0x10
jmp 0x14004fc8a
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14004fb7d
call fcn.14004fa98
mov ebp, dword [rbx + 0x10]
cmp ebp, 1
jne 0x14004fb8d
mov rax, qword [rbx]
mov r14b, byte [rax]
jmp 0x14004fb90
xor r14b, r14b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.14004bd08
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.1400560b0
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x14004fc78
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x14004fc23
mov rcx, rbx
call fcn.14004bd08
cmp eax, 0xffffffff
je 0x14004fc0e
mov rcx, rbx
call fcn.14004bd08
cmp eax, 0xfffffffe
je 0x14004fc0e
mov rcx, rbx
call fcn.14004bd08
movsxd rdi, eax
lea rsi, [0x140082af0]
mov rcx, rbx
sar rdi, 6
call fcn.14004bd08
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x14004fc15
lea rdx, [0x14007f3d0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14004fc23
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x14004fc47
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x14004fc47
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x14004fc47
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp ebp, 1
jne 0x14004fc65
movzx ecx, byte [rdx]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, r14b
or cx, ax
inc rdx
jmp 0x14004fc70
movzx ecx, word [rdx]
add dword [rbx + 0x10], 0xfffffffe
add rdx, 2
mov qword [rbx], rdx
movzx eax, cx
jmp 0x14004fc8f
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 0x14004fb04
Function at 0x1400501e4
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.14005bd30
sub rsp, rax
mov rax, qword [0x14007f010]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14004bd08
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140050233
mov rax, rbp
jmp 0x14005033b
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 + 0x82af0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400506d4
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x82af0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140050337
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 0x140050337
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400506d4
test rax, rax
js 0x140050337
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140050337
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140050329
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140050329
cmp byte [rcx], 0xd
jne 0x14005030f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14005031e
cmp byte [rcx + 1], 0xa
jne 0x14005031e
inc rcx
jmp 0x14005031e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x7fb30]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400502f1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14005033b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14002ec60
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 0x140052534
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 0x140052564
xor eax, eax
jmp 0x140052627
mov rbp, rbx
cmp word [rax], si
je 0x140052589
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140052570
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14005256c
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.1400509a0
movsxd r14, eax
test eax, eax
jne 0x1400525c7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14005255d
mov rcx, r14
call fcn.14004aa30
mov rdi, rax
test rax, rax
jne 0x1400525e0
xor ecx, ecx
call fcn.14004a97c
jmp 0x1400525bc
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.1400509a0
test eax, eax
jne 0x140052611
mov rcx, rdi
call fcn.14004a97c
jmp 0x14005261b
xor ecx, ecx
call fcn.14004a97c
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 0x140052644
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 0x1400526cb
mov rsi, rbx
cmp word [rax], bp
je 0x14005268a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140052674
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140052670
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14004aa30
mov rdi, rax
test rax, rax
je 0x1400526b8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140034100
mov rbp, rdi
xor ecx, ecx
call fcn.14004a97c
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 0x140055c04
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, [0x140082af0]
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 0x140055c62
cmp word [rdx], r12w
jne 0x140055c62
or byte [rax + r8*8 + 0x38], cl
jmp 0x140055c68
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x140055dc3
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140055d9e
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140055ca1
mov rcx, r9
jmp 0x140055cc4
cmp r9, rdx
jae 0x140055cdb
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 0x140055c85
jmp 0x140055dc3
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 0x140055d98
cmp dword [rsp + 0x80], edi
je 0x140055d98
mov rdx, r14
lea r11, [0x140082af0]
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 0x140055d71
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140055d44
mov word [rbx], r12w
jmp 0x140055dbf
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 0x140055d4d
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140055dbf
cmp word [rsp + 0x70], r12w
jne 0x140055d7e
cmp rbx, rsi
je 0x140055d3e
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1400506dc
cmp word [rsp + 0x70], r12w
je 0x140055dc3
mov word [rbx], r13w
jmp 0x140055dbf
lea r11, [0x140082af0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140055dbb
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140055dc3
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 0x140001510
Capabilities:
Download url
Receive data

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0xf70]
mov eax, 0x1070
call fcn.140010a20
sub rsp, rax
mov rax, qword [0x14001c010]
xor rax, rsp
mov qword [rbp + 0xf60], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x38], rcx
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
xor esi, esi
mov qword [rsp + 0x50], rsi
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jns 0x140001575
mov qword [rbx], rsi
mov qword [rbx + 8], rsi
mov qword [rbx + 0x10], rsi
jmp 0x140001650
mov qword [rsp + 0x38], rsi
cmp qword [rdi + 0x18], 0x10
jb 0x140001584
mov rdi, qword [rdi]
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea r8, [rsp + 0x38]
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLOpenBlockingStreamA]
test eax, eax
jns 0x1400015c2
call qword [sym.imp.ole32.dll_CoUninitialize]
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov qword [rbx], rsi
mov qword [rbx + 8], rsi
mov qword [rbx + 0x10], rsi
jmp 0x14000163f
mov dword [rsp + 0x30], esi
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
lea rdx, [rsp + 0x60]
call qword [rax + 0x18]
mov edi, eax
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140001607
lea r9, [rsp + 0x60]
add r9, rax
lea r8, [rsp + 0x60]
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x40]
call fcn.1400020a0
test edi, edi
js 0x140001610
cmp edi, 1
jne 0x1400015c2
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x50], rsi
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x48], rsi
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x40], rsi
mov qword [rbx], rax
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140001650
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rax, rbx
mov rcx, qword [rbp + 0xf60]
xor rcx, rsp
call fcn.1400024e0
mov rbx, qword [rsp + 0x10a0]
add rsp, 0x1070
pop rdi
pop rsi
pop rbp
ret

Function at 0x14000759c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400073c8
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
xor rdx, rdx
push rcx
mov rdx, qword gs:[rdx + 0x60]
push rsi
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
movzx rcx, word [rdx + 0x4a]
mov rsi, qword [rdx + 0x50]
xor r9, r9
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
push rax
mov r8d, dword [rax + 0x20]
add r8, rdx
mov ecx, dword [rax + 0x18]
jrcxz 0x1400040ca
xor r9, r9
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
lodsb al, byte [rsi]
ror r9d, 0xd
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
add rax, rdx
pop r8
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021

Function at 0x140004000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x38
and rsp, 0xfffffffffffffff0
movabs rcx, 0x140004062
movabs rax, sym.imp.KERNEL32.dll_LoadLibraryA
call qword [rax]
movabs rdx, 0x14000406b
mov rcx, rax
movabs rax, sym.imp.KERNEL32.dll_GetProcAddress
call qword [rax]
xor ecx, ecx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rcx
mov r9, rcx
movabs r8, 0x140004078
mov rdx, rcx
call rax
leave
jmp loc.140001000
Function at 0x10000129c
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x1000036f8]
lea rdx, [0x100003700]
call qword [sym.imp.API_MS_WIN_Service_Core_L1_1_0.dll_SetServiceStatus]
test eax, eax
jne 0x1000012e6
mov dword [0x100003704], 1
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
cmp qword [0x1000036f8], 0
mov dword [0x10000370c], eax
je 0x1000012dd
call fcn.10000129c
xor ecx, ecx
call qword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_ExitProcess]
inc dword [0x100003714]
add rsp, 0x28
ret

Function at 0x1000014b0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], r12
push r13
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
xor r12d, r12d
xor eax, eax
lock cmpxchg qword [0x100003740], rdi
je 0x1000014fe
cmp rax, rdi
jne 0x1000014f1
mov edi, 1
mov r12d, edi
jmp 0x100001503
mov ecx, 0x3e8
call qword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_Sleep]
jmp 0x1000014d5
mov edi, 1
mov eax, dword [0x100003738]
cmp eax, edi
jne 0x100001519
mov ecx, 0x1f
call fcn.100171000
jmp 0x100001576
mov eax, dword [0x100003738]
test eax, eax
jne 0x100001570
mov dword [0x100003738], edi
lea r13, [0x1000011a0]
lea rsi, [0x100001188]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], eax
cmp rsi, r13
jae 0x100001562
test eax, eax
jne 0x100001562
mov rcx, qword [rsi]
test rcx, rcx
je 0x100001557
call rcx
mov dword [rsp + 0x20], eax
add rsi, 8
mov qword [rsp + 0x28], rsi
jmp 0x100001540
test eax, eax
je 0x100001576
mov eax, 0xff
jmp 0x100001648
mov dword [0x100003164], edi
mov eax, dword [0x100003738]
cmp eax, edi
jne 0x10000159d
lea rdx, [0x100001180]
lea rcx, [0x100001170]
call sub.msvcrt.dll__initterm
mov dword [0x100003738], 2
test r12d, r12d
jne 0x1000015ab
xor eax, eax
xchg qword [0x100003740], rax
cmp qword [0x100003748], 0
je 0x1000015d4
lea rcx, [0x100003748]
call fcn.10000189c
test eax, eax
je 0x1000015d4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100003748]
mov r8, qword [0x100003148]
mov rdx, qword [0x100003150]
mov ecx, dword [0x100003140]
call fcn.100001440
mov dword [0x100003160], eax
cmp dword [0x100003144], 0
jne 0x100001604
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x100003164], 0
jne 0x100001619
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x100003160]
jmp 0x100001648
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
add rsp, 0x30
pop r13
ret
sub rsp, 0x28
call fcn.1000019b0
add rsp, 0x28
jmp 0x1000014b0

Function at 0x100001908
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x100001955
cmp rcx, 0xffffffffffffffff
je 0x100001955
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x10000194d
cmp dword [rcx + 0x3c], edx
jl 0x10000194d
cmp dword [rcx + 0x3c], 0x10000000
jae 0x10000194d
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x100001955
mov rax, rdx
add rsp, 0x18
ret