joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180066680
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.180066c10
mov qword [rsp + 0x28], 0
cmp qword [0x1800ecfd8], 0
jne 0x1800666c8
cmp qword [0x1800ecfd0], 0
je 0x1800666c8
mov rax, qword [0x1800ecfd0]
mov qword [0x1800ecfd8], rax
cmp qword [0x1800ecfd8], 0
je 0x18006676e
mov rax, qword [0x1800ecfd8]
cmp qword [rax + 0x10], 0
je 0x18006676e
mov rax, qword [0x1800ecfd8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18006676e
mov rax, qword [0x1800ecfd8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18006676e
mov rax, qword [0x1800ecfd8]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x180066734
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x18006673b
xor eax, eax
jmp 0x1800668e9
mov rax, qword [0x1800ecfd8]
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.18006b16e
mov rax, qword [rsp + 0x28]
jmp 0x1800668e9
mov rax, qword [0x1800ecfd0]
mov qword [0x1800ecfd8], rax
jmp 0x180066790
mov rax, qword [0x1800ecfd8]
mov rax, qword [rax + 8]
mov qword [0x1800ecfd8], rax
cmp qword [0x1800ecfd8], 0
je 0x1800667dd
cmp qword [0x1800ecfd8], 0
je 0x1800667db
mov rax, qword [0x1800ecfd8]
cmp qword [rax + 0x10], 0
je 0x1800667db
mov rax, qword [0x1800ecfd8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x1800667db
mov rax, qword [0x1800ecfd8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x1800667db
jmp 0x18006670c
jmp 0x18006677e
mov rcx, qword [rsp + 0x60]
call fcn.180068860
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.1800668f0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x1800668e7
mov rax, qword [rsp + 0x48]
mov qword [0x1800ecfd8], rax
mov rax, qword [0x1800ecfd8]
mov dword [rax], 0x52727464
mov rax, qword [0x1800ecfd8]
mov qword [rax + 0x10], 0
mov rax, qword [0x1800ecfd8]
mov rcx, qword [0x1800ecfd0]
mov qword [rax + 8], rcx
mov rax, qword [0x1800ecfd8]
mov qword [0x1800ecfd0], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x1800ecfd8]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x180066898
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x1800668d2
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 0x18006688e
mov rax, qword [0x1800ecfd8]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x18006670c
xor eax, eax
add rsp, 0x58
ret
Function at 0x180067600
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call fcn.18006622f
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x180067647
xor al, al
jmp 0x1800676e9
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 0x180067671
xor al, al
jmp 0x1800676e9
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 0x1800676e1
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 0x1800676e1
mov al, 1
jmp 0x1800676e9
jmp 0x1800676e7
xor al, al
add rsp, 0x78
ret
Function at 0x140005464
Capabilities:
Parse pe header

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

Function at 0x1400076fc
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 rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x14000772a
xor eax, eax
jmp 0x140007810
cmp qword [rcx + 0x68], 0
je 0x14000773b
call fcn.14000782c
jmp 0x140007810
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140007752
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140007754
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140007786
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140021ca0
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x14000780a
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x1400077bd
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x1400077e6
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140012ac8
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14000780a
cmp rsi, rbx
ja 0x1400077c4
test rsi, rsi
je 0x14000780a
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140012ac8
sub rsi, rax
sub rbp, rsi
mov rax, rbp
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

Function at 0x14000e75c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000e558
Function at 0x140017c68
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 0x140017c98
xor eax, eax
jmp 0x140017d5b
mov rbp, rbx
cmp word [rax], si
je 0x140017cbd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140017ca4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140017ca0
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.140017b88
movsxd r14, eax
test eax, eax
jne 0x140017cfb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140017c91
mov rcx, r14
call fcn.140015088
mov rdi, rax
test rax, rax
jne 0x140017d14
xor ecx, ecx
call fcn.140014cfc
jmp 0x140017cf0
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.140017b88
test eax, eax
jne 0x140017d45
mov rcx, rdi
call fcn.140014cfc
jmp 0x140017d4f
xor ecx, ecx
call fcn.140014cfc
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 0x14001b174
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.140014924
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 0x14001b215
cmp ebx, dword [rsp + 0x30]
je 0x14001b20e
test esi, esi
je 0x14001b20e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14001b1e9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14001b1f6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14001b1d3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14001b1fa
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14001b217
mov eax, 1
jmp 0x14001b217
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001d73c
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.140004df0
sub rsp, rax
mov rax, qword [0x140034080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140015260
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001d78b
mov rax, rbp
jmp 0x14001d893
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 + 0x35df0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001e85c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x35df0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001d88f
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 0x14001d88f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001e85c
test rax, rax
js 0x14001d88f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001d88f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001d881
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001d881
cmp byte [rcx], 0xd
jne 0x14001d867
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001d876
cmp byte [rcx + 1], 0xa
jne 0x14001d876
inc rcx
jmp 0x14001d876
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x34b90]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001d849
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001d893
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140021630
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 0x14001dab4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001daca
mov al, 1
jmp 0x14001db2a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001dadb
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001db28
mov ecx, dword [rcx + 0x18]
nop
call fcn.140018a90
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001db28
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001db28
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001db28
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001db2a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001dbfc
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, [0x140035df0]
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 0x14001dc53
cmp word [rdx], r13w
jne 0x14001dc53
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001dc58
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001dd7d
mov r11d, recv
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001dd9e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001dc91
mov rdx, r9
mov word [rbx], cx
jmp 0x14001dcb8
cmp r9, r8
jae 0x14001dcc8
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 0x14001dc72
jmp 0x14001dd7d
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 0x14001dd72
cmp dword [rsp + 0x80], esi
je 0x14001dd72
lea r8, [0x140035df0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001dd4a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001dd1a
mov word [rbx], r13w
jmp 0x14001dd7a
mov ecx, recv
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 0x14001dd27
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001dd7a
cmp word [rsp + 0x70], r13w
jne 0x14001dd57
cmp rbx, r14
je 0x14001dd14
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001e864
cmp word [rsp + 0x70], r13w
je 0x14001dd7d
mov ecx, recv
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, [0x140035df0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001dd77
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001dd7d
Function at 0x14001fc24
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400136bc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001fcae
cmp byte [rbp - 0x21], r15b
je 0x14001fca9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001fce4
call fcn.140015d98
test eax, eax
jne 0x14001fcd0
cmp byte [rbp - 0x21], r15b
je 0x14001fcc8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001fce4
cmp byte [rbp - 0x21], r15b
je 0x14001fce1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400137c8
test eax, eax
jne 0x14001fd84
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400136bc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001fd23
cmp byte [rbp - 0x21], r15b
je 0x14001fd58
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001fd58
call fcn.140015d98
test eax, eax
jne 0x14001fd44
cmp byte [rbp - 0x21], r15b
je 0x14001fd3d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001fd58
cmp byte [rbp - 0x21], r15b
je 0x14001fd55
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400137c8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001fd84
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001fd87
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001fd95
mov rcx, rdi
call fcn.140014cfc
cmp byte [rbp + 0x3f], r15b
je 0x14001fda4
mov rcx, qword [rbp + 0x27]
call fcn.140014cfc
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x1400216f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140021718
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140021718
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140024500
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x178
mov rax, qword [rsp + 0x190]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14002453f
xor eax, eax
jmp 0x140024680
mov rax, qword [rsp + 0x38]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x4550
je 0x14002456c
xor eax, eax
jmp 0x140024680
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x40]
mov rdi, rax
lea rsi, [rcx + 0x18]
mov ecx, 0xf0
rep movsb byte [rdi], byte [rsi]
mov eax, 8
imul rax, rax, 0
mov eax, dword [rsp + rax + 0xf0]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x20], 0
jmp 0x140024603
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x20], eax
jae 0x14002467e
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
mov eax, dword [rsp + 0x198]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x60]
call fcn.140024690
mov rcx, qword [rsp + 0x68]
cmp rcx, rax
jne 0x140024679
mov rax, qword [rsp + 0x70]
jmp 0x140024680
jmp 0x1400245f9
xor eax, eax
add rsp, 0x178
pop rdi
pop rsi
ret
Function at 0x100cbfa80
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x100cbfa8d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x100cbfa9d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x100cbfa85
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x100cbfab5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x100cbfaa2
sub eax, 3
jb 0x100cbfacf
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x100cbfb06
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x100cbfaf6
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x100cbfaf4
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x100cbfae3
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.100cbfa42
jmp 0x100cbfa8d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x44b090
mov dl, 0x2f
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x100cbfb52
cmp rsi, rcx
jae 0x100cbfb5a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x100cbfb39
cmp al, 0x8f
ja 0x100cbfb39
cmp byte [rsi - 2], 0xf
je 0x100cbfb3f
sub al, 0xe8
cmp al, 1
ja 0x100cbfb23
cmp rsi, rcx
jae 0x100cbfb5a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x100cbfb29
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x100cbfb5a
lodsb al, byte [rsi]
jmp 0x100cbfb39
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xcbb000]
mov eax, dword [rdi]
or eax, eax
je 0x100cbfbb7
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xcf3998]
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 0x100cbfb67
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 0x100cbfbb1
mov qword [rbx], rax
add rbx, 8
jmp 0x100cbfb87
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
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 + 0x1af]
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
mov byte [fcn.100cbfc3a], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.100cbfc3a
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x100cbfc2a
sub rsp, 0xffffffffffffff80
jmp 0x100002f90

Function at 0x140001cf4
Capabilities:
Parse pe header

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

Disassembly:
cld
pop r11
jmp 0x140006aed
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140006afd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140006ae5
lea eax, [rcx + 1]
jmp 0x140006b0b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x140006b1e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140006b04
sub eax, 3
jb 0x140006b3c
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140006b74
sar eax, 1
movsxd rbp, eax
jmp 0x140006b3f
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x140006b60
inc ecx
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140006b5b
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140006b4a
add ecx, 2
cmp rbp, 0xfffffffffffffb00
adc ecx, 1
call fcn.140006aa2
jmp 0x140006aed
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x4000]
mov eax, dword [rdi]
or eax, eax
je 0x140006bd0
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x653c]
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 0x140006b80
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 0x140006bca
mov qword [rbx], rax
add rbx, 8
jmp 0x140006ba0
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
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 + 0x1ff]
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 0x140006c28
sub rsp, 0xffffffffffffff80
jmp 0x1400014c4