joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18005fe80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x350
mov rax, qword [0x180142010]
xor rax, rsp
mov qword [rsp + 0x340], rax
mov eax, dword [rcx + 0x58]
lea rbx, [rsp + 0x30]
mov r14d, dword [rsp + 0x398]
mov rdi, rcx
mov dword [rsp + 0x48], eax
mov eax, dword [rcx + 0x5c]
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x390]
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x3a0]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x40], edx
mov dword [rsp + 0x44], r8d
mov dword [rsp + 0x38], r9d
mov dword [rsp + 0x30], r14d
mov esi, dword [rbx + 0x1c]
mov ecx, esi
mov ebp, dword [rbx + 4]
cmp esi, ebp
mov r8d, dword [rbx + 0x14]
mov eax, r8d
mov edx, dword [rbx + 0xc]
cmovg ecx, ebp
cmp r8d, edx
cmovg eax, edx
cmp eax, ecx
jl 0x18005ffd0
cmp esi, ebp
mov eax, ebp
cmovg eax, esi
cmp r8d, edx
cmovg edx, r8d
cmp edx, eax
jg 0x18005ffd0
cmp esi, ebp
jne 0x18005ff36
sub rbx, 0x18
jmp 0x18005ffdc
mov edx, dword [rdi + 0x88]
xor r9d, r9d
cmp esi, ebp
setg r9b
inc r9d
cmp edx, r9d
je 0x18005ff94
mov eax, dword [rdi + 4]
mov ecx, eax
neg ecx
cmp esi, ebp
jg 0x18005ff62
dec eax
add eax, esi
and eax, ecx
sub eax, esi
jmp 0x18005ff68
and ecx, esi
mov eax, esi
sub eax, ecx
cmp eax, dword [rdi + 8]
setge r10b
test edx, edx
je 0x18005ff82
mov dl, r10b
mov rcx, rdi
call fcn.18005f55c
test al, al
jne 0x18005ffcc
mov r8b, r10b
mov edx, r9d
mov rcx, rdi
call fcn.18005f490
test al, al
jne 0x18005ffcc
mov ecx, dword [rdi + 0x60]
lea r9, [fcn.18005f6d0]
mov eax, dword [rdi + 0x64]
mov r8, rbx
mov dword [rsp + 0x28], eax
mov edx, 3
mov dword [rsp + 0x20], ecx
mov rcx, rdi
cmp esi, ebp
jg 0x18005ffbf
call fcn.18005f91c
jmp 0x18005ffc4
call fcn.18005fa90
test al, al
je 0x18005ff2d
mov al, 1
jmp 0x18005fff7
mov rcx, rbx
call fcn.18005f6d0
add rbx, 0x18
lea rax, [rsp + 0x30]
cmp rbx, rax
jb 0x18005ffee
mov r14d, dword [rbx]
jmp 0x18005feee
mov dword [rdi + 0x58], r14d
xor al, al
mov dword [rdi + 0x5c], ebp
mov rcx, qword [rsp + 0x340]
xor rcx, rsp
call fcn.1800ac940
lea r11, [rsp + 0x350]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x180060328
Capabilities:
Encrypt data using rc4 prga
Resolve function by parsing pe exports

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 rax, qword [rcx + 0x20]
xor r14d, r14d
sub rax, 0x34
mov qword [rcx + 0x78], r14
mov qword [rcx + 0x28], rax
mov ebp, edx
mov rax, qword [rcx + 0x30]
mov rbx, rcx
mov word [rcx + 0x6a], r14w
lea r15d, [r14 + 1]
mov dword [rcx + 0x3c], r14d
mov esi, r14d
mov qword [rcx + 0x70], rax
mov qword [rax + 0x10], rax
mov word [rcx + 0x68], r14w
cmp r14w, word [rcx + 0xb8]
jge 0x180060476
movzx r10d, r14w
mov edi, r14d
mov rax, qword [rbx + 0xd0]
mov r9d, ebp
mov dword [rbx + 0x88], r14d
movzx edx, r10w
mov qword [rbx + 0x80], r14
mov rcx, rbx
movzx r8d, word [rdi + rax]
call fcn.180060020
test al, al
jne 0x18006050e
mov rax, qword [rbx + 0xd0]
mov r8d, dword [rbx + 4]
mov edx, dword [rbx + 0x5c]
movzx r10d, word [rdi + rax]
lea eax, [r8 - 1]
test edx, eax
jne 0x180060405
cmp edx, dword [rbx + 0x60]
jl 0x180060405
cmp edx, dword [rbx + 0x64]
jg 0x180060405
mov r9, qword [rbx + 0x80]
test r9, r9
je 0x180060405
mov rax, qword [rbx + 0x70]
mov cl, byte [rax + 0x18]
xor cl, byte [r9 + 0x18]
test cl, 8
jne 0x180060405
add qword [rbx + 0x30], 0xfffffffffffffffc
mov r9, qword [rbx + 0x70]
mov rax, qword [r9 + 0x10]
cmp qword [rbx + 0x30], rax
je 0x180060428
test byte [r9 + 0x18], 8
je 0x180060428
neg r8d
and r8d, edx
sub edx, r8d
cmp edx, dword [rbx + 8]
jmp 0x180060439
lea eax, [r8 - 1]
neg r8d
add eax, edx
and eax, r8d
sub eax, edx
cmp eax, dword [rbx + 8]
setge dl
mov rcx, rbx
call fcn.18005f55c
test al, al
jne 0x18006050e
mov rax, qword [rbx + 0x80]
test rax, rax
je 0x18006045c
mov qword [r9 + 0x28], rax
movsx eax, word [rbx + 0xb8]
add esi, r15d
add rdi, 2
add r10w, r15w
cmp esi, eax
jl 0x18006038e
movzx r11d, word [rbx + 0x68]
mov rdx, qword [rbx + 0x78]
cmp r11w, r15w
jbe 0x180060513
test rdx, rdx
je 0x180060513
lea rdi, [rdx + 8]
cmp r11w, r15w
jbe 0x1800604aa
movsxd rcx, dword [rdx + 0x1c]
mov rax, qword [rdx + 0x10]
lea r10, [rax + rcx*4]
jmp 0x1800604ad
mov r10, r14
mov qword [rdi], r10
test byte [rdx + 0x18], 8
mov r10d, dword [rdx + 0x20]
mov r8d, r10d
mov eax, dword [rdx + 0x1c]
je 0x1800604c8
dec r10d
add r10d, eax
jmp 0x1800604df
sub r8d, eax
add r8d, r15d
dec eax
mov dword [rdx + 0x20], r8d
movsxd rcx, eax
shl rcx, 2
add qword [rdx + 0x10], rcx
mov edx, r8d
mov rcx, rbx
call fcn.18005f5f0
test al, al
jne 0x18006050e
lea edx, [r10 + 1]
mov rcx, rbx
call fcn.18005f5f0
test al, al
jne 0x18006050e
mov rdx, qword [rdi]
mov eax, 0xffff
add r11w, ax
je 0x180060517
jmp 0x180060492
mov al, r15b
jmp 0x180060522
mov qword [rbx + 0x78], r14
mov rax, qword [rbx + 0x28]
cmp qword [rbx + 0x30], rax
setae al
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 0x1800ab74c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
xor r10d, r10d
mov r11, rdx
mov r9d, ecx
test rdx, rdx
je 0x1800ab7d1
lea rdi, [0x1801331d0]
not r9d
cmp r8d, 8
jb 0x1800ab7a8
mov edx, r8d
shr rdx, 3
add r8d, 0xfffffff8
mov ebx, 8
movzx ecx, byte [r11]
mov eax, r9d
xor rcx, rax
shr r9d, 8
movzx eax, cl
inc r11
xor r9d, dword [rdi + rax*4]
sub rbx, 1
jne 0x1800ab784
sub rdx, 1
jne 0x1800ab77b
test r8d, r8d
je 0x1800ab7cb
movzx ecx, byte [r11]
mov eax, r9d
xor rcx, rax
shr r9d, 8
movzx eax, cl
inc r11
xor r9d, dword [rdi + rax*4]
add r8d, 0xffffffff
jne 0x1800ab7ad
not r9d
mov r10d, r9d
mov rbx, qword [rsp + 8]
mov eax, r10d
mov rdi, qword [rsp + 0x10]
ret
Function at 0x180166770
Capabilities:
Encrypt data using rc4 prga

Disassembly:
call fcn.1801ef08d
xor cl, ah
jmp fcn.18020ea3e
Function at 0x1400204d0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x10090
call fcn.140024360
sub rsp, rax
mov rax, qword [0x1400611a8]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx edx, byte [rcx]
lea rbx, [rsp + 0x30]
xor eax, eax
mov rsi, rcx
mov word [rsp + 0x80], ax
mov word [rsp + 0x30], ax
lea edi, [rax + 0x28]
test dl, dl
je 0x140020592
nop dword [rax + rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14002053d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x140020530
cmp rcx, 1
jb 0x1400205ea
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140020560
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14003354c
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x140020520
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x1400205c3
lea rcx, [rsp + 0x80]
call fcn.140036380
jmp 0x1400205c5
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.140024090
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.1400332f8
int3
Function at 0x140023b80
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1400611a8]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rbx, [rsp + 0x30]
mov rbp, rdx
mov word [rsp + 0x30], ax
movzx edx, byte [rcx]
mov rsi, rcx
lea edi, [rax + 0x28]
test dl, dl
je 0x140023c25
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x140023bdd
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x140023bd0
cmp rcx, 1
jb 0x140023c56
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140023bf3
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14003354c
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x140023bc0
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140024090
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.1400332f8
int3
Function at 0x140023d60
Capabilities:
Set environment variable

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0xb0
mov rax, qword [0x1400611a8]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rax, qword [0x140063100]
mov rbp, r8
mov rsi, rdx
mov r14, rcx
test rax, rax
jne 0x140023db0
lea rcx, [0x14004408c]
call qword [sym.imp.python311.dll_PyImport_ImportModule]
mov qword [0x140063100], rax
test rax, rax
je 0x140023fea
mov qword [rsp + 0xa8], rbx
lea rdx, str.environ
mov qword [rsp + 0xa0], rdi
mov rcx, rax
mov qword [rsp + 0x98], r13
mov qword [rsp + 0x90], r15
call qword [sym.imp.python311.dll_PyObject_GetAttrString]
mov rcx, rsi
mov r15, rax
call qword [sym.imp.python311.dll_PyUnicode_FromString]
movzx edx, byte [rsi]
lea rbx, [rsp + 0x30]
xor ecx, ecx
mov r13, rax
mov word [rsp + 0x30], cx
lea edi, [rcx + 0x28]
test rbp, rbp
je 0x140023ee6
test dl, dl
je 0x140023e82
nop
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x140023e2d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x140023e20
cmp rcx, 1
jb 0x140023ff0
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140023e50
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14003354c
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x140023e10
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, 0xffffffffffffffff
mov rcx, rbp
call qword [sym.imp.python311.dll_PyUnicode_FromWideChar]
mov rdx, r13
mov rcx, r15
mov r8, rax
mov rbx, rax
call qword [sym.imp.python311.dll_PyObject_SetItem]
test eax, eax
je 0x140023ecd
mov ecx, 1
call qword [sym.imp.python311.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python311.dll_Py_Exit]
int3
sub qword [rbx], 1
jne 0x140023f87
mov rax, qword [rbx + 8]
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x140023f87
test dl, dl
je 0x140023f62
nop word [rax + rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x140023f0d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x140023f00
cmp rcx, 1
jb 0x140023fe4
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140023f30
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14003354c
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x140023ef0
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, r13
mov rcx, r15
call qword [sym.imp.python311.dll_PyObject_DelItem]
test eax, eax
je 0x140023f87
mov rcx, r14
call fcn.14000f9e0
sub qword [r13], 1
jne 0x140023f98
mov rax, qword [r13 + 8]
mov rcx, r13
call qword [rax + 0x30]
sub qword [r15], 1
jne 0x140023fa8
mov rax, qword [r15 + 8]
mov rcx, r15
call qword [rax + 0x30]
mov r13, qword [rsp + 0x98]
mov rdi, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0xa8]
mov r15, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140024090
add rsp, 0xb0
pop r14
pop rsi
pop rbp
ret
call fcn.1400332f8
int3
call fcn.1400332f8
int3
call fcn.1400332f8
int3
Function at 0x140024ad8
Capabilities:
Parse pe header

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

Function at 0x140029a44
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400298a3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400298a3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400298a3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400298a3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400298a3
cmp dword [rcx + 0x84], 0xe
jbe 0x1400298a3
cmp dword [rcx + 0xf8], 0
je 0x1400298a3
mov ecx, ebx
call fcn.140029960
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140029730
nop
cmp dword [rbp + 0x20], 0
je 0x1400298f1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400298fc
int3
xor r8d, r8d
xor edx, edx
jmp 0x140029834
Function at 0x14003b564
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 0x14003b5eb
mov rsi, rbx
cmp word [rax], bp
je 0x14003b5aa
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14003b594
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14003b590
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14003646c
mov rdi, rax
test rax, rax
je 0x14003b5d8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140024e80
mov rbp, rdi
xor ecx, ecx
call fcn.14003737c
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 0x140dedec0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140dedecd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140dededd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140dedec5
lea eax, [rcx + 1]
jmp 0x140dedeeb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x140dedefe
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140dedee4
sub eax, 3
jb 0x140dedf1e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140dedf6d
sar eax, 1
movsxd rbp, eax
jb 0x140dedf54
jmp 0x140dedf2c
add ebx, ebx
jne 0x140dedf2a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140dedf54
inc ecx
add ebx, ebx
jne 0x140dedf3a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140dedf54
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140dedf4d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140dedf3c
add ecx, 2
jmp 0x140dedf59
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140dede82
jmp 0x140dedecd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x505800
mov dl, 0x70
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140dedfb9
cmp rsi, rcx
jae 0x140dedfc1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140dedfa0
cmp al, 0x8f
ja 0x140dedfa0
cmp byte [rsi - 2], 0xf
je 0x140dedfa6
sub al, 0xe8
cmp al, 1
ja 0x140dedf8a
cmp rsi, rcx
jae 0x140dedfc1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140dedf90
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140dedfc1
lodsb al, byte [rsi]
jmp 0x140dedfa0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xddc000]
mov eax, dword [rdi]
or eax, eax
je 0x140dee02a
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xe06850]
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 0x140dedfce
jns 0x140dee003
movzx rdx, word [rdi]
add rdi, 2
jmp 0x140dee00d
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 0x140dee024
mov qword [rbx], rax
add rbx, 8
jmp 0x140dedfee
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 0x140dee06e
cmp al, 0xef
ja 0x140dee056
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140dee036
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x140dee045
mov eax, dword [rdi]
add rdi, 4
jmp 0x140dee045
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 + 0x247]
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 0x140dee0c2
sub rsp, 0xffffffffffffff80
jmp 0x14046d0c0
Function at 0x140001010
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [section..data]
jne 0x14000102b
rol rcx, 0x10
test cx, 0xffff
jne 0x140001027
ret 0
ror rcx, 0x10
jmp 0x140001310
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400030f0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x1400031e8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140001395
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1400030f0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1400013b7
mov rax, qword [rsp + 0x88]
mov qword [0x1400031e8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140003188], rax
mov rax, qword [0x1400031e8]
mov qword [0x140003060], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140003170], rax
mov dword [0x140003050], 0xc0000409
mov dword [0x140003054], 1
mov rax, qword [section..data]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140003008]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140002190]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x14000107c
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 [0x1400035f0], rdi
je 0x1400010ca
cmp rax, rdi
jne 0x1400010bd
mov edi, 1
mov r12d, edi
jmp 0x1400010cf
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400010a1
mov edi, 1
mov eax, dword [0x1400035e8]
cmp eax, edi
jne 0x1400010e5
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x140001142
mov eax, dword [0x1400035e8]
test eax, eax
jne 0x14000113c
mov dword [0x1400035e8], edi
lea r13, [0x140002188]
lea rsi, [0x140002170]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], eax
cmp rsi, r13
jae 0x14000112e
test eax, eax
jne 0x14000112e
mov rcx, qword [rsi]
test rcx, rcx
je 0x140001123
call rcx
mov dword [rsp + 0x20], eax
add rsi, 8
mov qword [rsp + 0x28], rsi
jmp 0x14000110c
test eax, eax
je 0x140001142
mov eax, 0xff
jmp 0x140001214
mov dword [0x140003044], edi
mov eax, dword [0x1400035e8]
cmp eax, edi
jne 0x140001169
lea rdx, [0x140002168]
lea rcx, [0x140002158]
call sub.msvcrt.dll__initterm
mov dword [0x1400035e8], 2
test r12d, r12d
jne 0x140001177
xor eax, eax
xchg qword [0x1400035f0], rax
cmp qword [0x1400035f8], 0
je 0x1400011a0
lea rcx, [0x1400035f8]
call fcn.140001508
test eax, eax
je 0x1400011a0
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x1400035f8]
mov r8, qword [0x140003028]
mov rdx, qword [0x140003030]
mov ecx, dword [0x140003020]
call fcn.140001b60
mov dword [0x140003040], eax
cmp dword [0x140003024], 0
jne 0x1400011d0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140003044], 0
jne 0x1400011e5
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140003040]
jmp 0x140001214
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.140093000
add rsp, 0x28
jmp 0x14000107c

Function at 0x140001550
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x14000159d
cmp rcx, 0xffffffffffffffff
je 0x14000159d
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140001595
cmp dword [rcx + 0x3c], edx
jl 0x140001595
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140001595
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 0x14000159d
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140001820
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, str.WinDivert.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rbx], rax
test rax, rax
jne 0x14000186a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [sym.imp.msvcrt.dll__iob]
lea rdx, str.LoadLibrary_failed___u___08X___n
add rcx, 0x60
mov r9d, eax
mov r8d, eax
call qword [sym.imp.msvcrt.dll_fprintf]
xor eax, eax
add rsp, 0x20
pop rbx
ret
lea rdx, str.DivertOpen
mov rcx, rax
mov qword [rsp + 0x30], rdi
mov edi, 1
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x1400018b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [sym.imp.msvcrt.dll__iob]
lea rdx, str.GetProcAddress_for_DivertOpen_failed___u___08X___n
add rcx, 0x60
mov r9d, eax
mov r8d, eax
call qword [sym.imp.msvcrt.dll_fprintf]
xor edi, edi
mov rcx, qword [rbx]
lea rdx, str.DivertRecv
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x18], rax
test rax, rax
jne 0x1400018f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [sym.imp.msvcrt.dll__iob]
lea rdx, str.GetProcAddress_for_DivertRecv_failed___u___08X___n
add rcx, 0x60
mov r9d, eax
mov r8d, eax
call qword [sym.imp.msvcrt.dll_fprintf]
xor edi, edi
mov rcx, qword [rbx]
lea rdx, str.DivertSend
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x20], rax
test rax, rax
jne 0x140001931
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [sym.imp.msvcrt.dll__iob]
lea rdx, str.GetProcAddress_for_DivertSend_failed___u___08X___n
add rcx, 0x60
mov r9d, eax
mov r8d, eax
call qword [sym.imp.msvcrt.dll_fprintf]
xor edi, edi
mov rcx, qword [rbx]
lea rdx, str.DivertClose
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x28], rax
test rax, rax
jne 0x140001970
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [sym.imp.msvcrt.dll__iob]
lea rdx, str.GetProcAddress_for_DivertClose_failed___u___08X___n
add rcx, 0x60
mov r9d, eax
mov r8d, eax
call qword [sym.imp.msvcrt.dll_fprintf]
xor edi, edi
mov rcx, qword [rbx]
lea rdx, str.DivertHelperParsePacket
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x30], rax
test rax, rax
jne 0x1400019af
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [sym.imp.msvcrt.dll__iob]
lea rdx, str.GetProcAddress_for_DivertHelperParsePacket_failed___u___08X___n
add rcx, 0x60
mov r9d, eax
mov r8d, eax
call qword [sym.imp.msvcrt.dll_fprintf]
xor edi, edi
mov eax, edi
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret