joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140027494
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.140014924
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14002751e
cmp byte [rbp - 0x21], r15b
je 0x140027519
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140027554
call fcn.14001ee4c
test eax, eax
jne 0x140027540
cmp byte [rbp - 0x21], r15b
je 0x140027538
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140027554
cmp byte [rbp - 0x21], r15b
je 0x140027551
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.140014edc
test eax, eax
jne 0x1400275f4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140014924
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140027593
cmp byte [rbp - 0x21], r15b
je 0x1400275c8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400275c8
call fcn.14001ee4c
test eax, eax
jne 0x1400275b4
cmp byte [rbp - 0x21], r15b
je 0x1400275ad
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400275c8
cmp byte [rbp - 0x21], r15b
je 0x1400275c5
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.140014edc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400275f4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400275f7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140027605
mov rcx, rdi
call fcn.14001a95c
cmp byte [rbp + 0x3f], r15b
je 0x140027614
mov rcx, qword [rbp + 0x27]
call fcn.14001a95c
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 0x140028bcc
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.14001c294
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c294
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140028d1c
cmp rax, 0xffffffffffffffff
je 0x140028d1c
xor edi, edi
test rbp, rbp
jle 0x140028cc7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001ebc0
mov rbx, rax
test rax, rax
jne 0x140028c54
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140028cbd
mov edx, 0x8000
mov ecx, r14d
call fcn.140019bc8
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.14001cf70
cmp eax, 0xffffffff
je 0x140028c9d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140028c64
mov edx, r15d
mov ecx, r14d
call fcn.140019bc8
jmp 0x140028cbd
cmp byte [rsi + 0x38], dil
je 0x140028cb4
cmp dword [rsi + 0x34], 5
jne 0x140028cb4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140028cbd
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001a95c
jmp 0x140028d30
jns 0x140028d30
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c294
cmp rax, 0xffffffffffffffff
jne 0x140028ce8
cmp byte [rsi + 0x30], dil
je 0x140028d30
mov edi, dword [rsi + 0x2c]
jmp 0x140028d30
mov ecx, r14d
call fcn.140018084
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140028d30
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 0x140028d30
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140028d29
mov eax, dword [rsi + 0x2c]
jmp 0x140028d2e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c294
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 0x140029e20
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x14001dc10
xor r8d, r8d
xor edx, edx
jmp 0x14001d8f4

Function at 0x1400016a4
Capabilities:
Print debug messages

Disassembly:
jmp 0x14005406c
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, r8d
mov rbp, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ebx, eax
test eax, eax
je 0x1400540b4
test rdi, rdi
je 0x1400540a3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.1400017f3
cmp eax, 1
je 0x1400540b4
mov eax, 4
jmp 0x1400540f9
call fcn.140003954
cmp eax, 2
jne 0x1400540f0
call fcn.14000184d
test al, al
je 0x1400540f0
call fcn.140002ac7
test al, al
jne 0x1400540e6
bts esi, 0x15
xor ecx, ecx
mov rdx, rdi
mov r8, rbp
mov r9d, esi
call fcn.14000398b
jmp 0x1400540f9
call fcn.140003837
mov rcx, rax
jmp 0x1400540d6
neg ebx
sbb eax, eax
neg eax
add eax, 3
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14000214e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x140065eb0
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x140099040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, qword [rsp + 0xa0]
lea rbx, [0x14009ba10]
xor r12d, r12d
lea rdi, [0x1400838c4]
test r9, r9
mov rax, rdx
mov r15, rdx
cmovne rbx, r9
test rdx, rdx
lea ebp, [r12 + 1]
cmovne rbp, r8
cmovne rdi, rdx
neg rax
sbb r14, r14
and r14, rcx
test rbp, rbp
jne 0x140065f1e
mov rax, 0xfffffffffffffffe
jmp 0x140066051
cmp word [rbx + 6], r12w
jne 0x140065f74
mov rcx, rdi
call fcn.1400038af
movsxd r8, eax
movzx eax, byte [rdi]
inc rdi
cmp r8d, 1
jbe 0x140065f64
lea ecx, [r8 - 2]
cmp ecx, 2
ja 0x140066046
movzx edx, r8b
mov ecx, 7
sub ecx, edx
mov r9b, r8b
mov edx, 1
shl edx, cl
dec edx
and edx, eax
jmp 0x140065f9d
test r14, r14
je 0x140065f6c
mov dword [r14], eax
mov rax, r8
jmp 0x140066051
mov r8b, byte [rbx + 4]
mov edx, dword [rbx]
mov r9b, byte [rbx + 6]
lea eax, [r8 - 2]
cmp al, 2
ja 0x140066046
cmp r9b, 1
jb 0x140066046
cmp r9b, r8b
jae 0x140066046
movzx r11d, r9b
cmp r11, rbp
mov r10d, r11d
cmovae r10, rbp
jmp 0x140065fcb
movzx ecx, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x140066046
mov eax, edx
and ecx, 0x3f
shl eax, 6
mov edx, ecx
or edx, eax
mov rax, rdi
sub rax, r15
cmp rax, r10
jb 0x140065fad
cmp r10, r11
jae 0x140065ff5
movzx eax, r8b
sub r9b, r10b
mov word [rbx + 4], ax
movzx eax, r9b
mov word [rbx + 6], ax
mov dword [rbx], edx
jmp 0x140065f12
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x140066046
cmp edx, 0x110000
jae 0x140066046
movzx eax, r8b
mov dword [rsp + 0x20], 0x80
mov dword [rsp + 0x24], 0x800
mov dword [rsp + 0x28], 0x10000
cmp edx, dword [rsp + rax*4 + 0x18]
jb 0x140066046
test r14, r14
je 0x140066034
mov dword [r14], edx
neg edx
mov rdx, rbx
sbb rcx, rcx
and rcx, r11
call fcn.140003986
jmp 0x140066051
mov rdx, rsi
mov rcx, rbx
call fcn.140003fbc
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400025b3
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140002194
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x14000798c
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140007a19
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140007a19
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140007a19
sub r8, rdx
movzx edx, word [rcx + 0x14]
add rdx, 0x18
add rdx, rcx
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140007a00
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x1400079fa
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140007a02
add rdx, 0x28
jmp 0x1400079df
xor edx, edx
test rdx, rdx
jne 0x140007a0b
xor al, al
jmp 0x140007a1f
cmp dword [rdx + 0x24], 0
jge 0x140007a15
xor al, al
jmp 0x140007a1f
mov al, 1
jmp 0x140007a1f
xor al, al
jmp 0x140007a1f
add rsp, 0x18
ret

Function at 0x140002450
Capabilities:
Query environment variable

Disassembly:
jmp 0x140058864
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 0x1400588eb
mov rsi, rbx
cmp word [rax], bp
je 0x1400588aa
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140058894
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140058890
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140001037
mov rdi, rax
test rax, rax
je 0x1400588d8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400025b8
mov rbp, rdi
xor ecx, ecx
call fcn.140001163
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 0x1400026e9
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1400153f8
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x140084888]
mov ecx, 2
lea r8, [0x140084880]
lea rdx, str.FlsGetValue
call fcn.140014ec8
mov ecx, ebx
test rax, rax
je 0x140015432
add rsp, 0x20
pop rbx
jmp qword [0x1400a5020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x14000282e
Capabilities:
Query environment variable

Disassembly:
jmp 0x140058710
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 0x140058740
xor eax, eax
jmp 0x140058803
mov rbp, rbx
cmp word [rax], si
je 0x140058765
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14005874c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140058748
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.14000319d
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x1400587a6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140058739
call fcn.140001037
mov rdi, rax
test rax, rax
jne 0x1400587bc
xor ecx, ecx
call fcn.140001163
jmp 0x14005879b
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.14000319d
test eax, eax
jne 0x1400587ed
mov rcx, rdi
call fcn.140001163
jmp 0x1400587f7
xor ecx, ecx
call fcn.140001163
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 0x140002838
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140015348
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x140084848]
xor ecx, ecx
lea r8, [0x140084840]
lea rdx, str.FlsAlloc
call fcn.140014ec8
test rax, rax
je 0x140015381
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [0x1400a5020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x1400028b5
Capabilities:
Get geographical location

Disassembly:
jmp 0x1400615fc
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x1400a6050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x140061661
test rax, rax
jne 0x14006164f
lea r9, [0x140088be8]
lea r8, [0x140088be0]
lea rdx, str.GetLocaleInfoEx
lea ecx, [rax + 0xa]
call fcn.140060a8c
test rax, rax
je 0x140061661
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.14000410b
jmp 0x14006167b
xor edx, edx
mov rcx, rbp
call fcn.1400021e4
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1400028bf
Capabilities:
Terminate process

Disassembly:
jmp 0x140078e6c
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x1400029fa
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001dba8
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x14001d8f4

Function at 0x140002b8f
Capabilities:
Parse pe header

Disassembly:
jmp 0x140078c60
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140078c88
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140078c88
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140002e9b
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140078ba0
movsxd r8, dword [rcx + 0x3c]
xor r9d, r9d
add r8, rcx
mov r10, rdx
movzx eax, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rax, 0x18
add rax, r8
test r11d, r11d
je 0x140078be1
mov edx, dword [rax + 0xc]
cmp r10, rdx
jb 0x140078bd5
mov ecx, dword [rax + 8]
add ecx, edx
cmp r10, rcx
jb 0x140078be3
inc r9d
add rax, 0x28
cmp r9d, r11d
jb 0x140078bc3
xor eax, eax
ret

Function at 0x140003300
Capabilities:
Terminate process

Disassembly:
jmp 0x1400537c8
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1400537e2
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
lea ecx, [r8 + 1]
call fcn.140003995
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x140003a76
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140015450
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x1400848a8]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x1400848a0]
call fcn.140014ec8
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x140015490
call qword [0x1400a5020]
jmp 0x140015496
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140003b07
Capabilities:
Set environment variable

Disassembly:
jmp 0x140069370
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.140002126
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400693fa
cmp byte [rbp - 0x21], r15b
je 0x1400693f5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140069430
call fcn.140003eae
test eax, eax
jne 0x14006941c
cmp byte [rbp - 0x21], r15b
je 0x140069414
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140069430
cmp byte [rbp - 0x21], r15b
je 0x14006942d
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.14000407a
test eax, eax
jne 0x1400694d0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140002126
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14006946f
cmp byte [rbp - 0x21], r15b
je 0x1400694a4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400694a4
call fcn.140003eae
test eax, eax
jne 0x140069490
cmp byte [rbp - 0x21], r15b
je 0x140069489
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400694a4
cmp byte [rbp - 0x21], r15b
je 0x1400694a1
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.14000407a
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400694d0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400694d3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400694e1
mov rcx, rdi
call fcn.140001163
cmp byte [rbp + 0x3f], r15b
je 0x1400694f0
mov rcx, qword [rbp + 0x27]
call fcn.140001163
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 0x140003bfc
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001db98
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 0x14001d963
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001d963
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001d963
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001d963
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001d963
cmp dword [rcx + 0x84], 0xe
jbe 0x14001d963
cmp dword [rcx + 0xf8], 0
je 0x14001d963
mov ecx, ebx
call fcn.14001dae8
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.14001d654
nop
cmp dword [rbp + 0x20], 0
jne 0x14001d9c4
call fcn.140001677
cmp eax, 1
jne 0x14001d9b4
xor dl, dl
jmp 0x14001d9be
call fcn.140002379
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x14001d9cf
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001da10
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14001d8f4

Function at 0x140007f48
Capabilities:
Parse pe header

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

Function at 0x14001b530
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x140099040]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov r10, rax
lea rdx, [rax - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x14001b5bc
lea r8, [rsp + 0x40]
xor edx, edx
mov cl, byte [rbx]
lea rax, [rsp + 0x234]
mov byte [r8], cl
inc r8
cmp r8, rax
je 0x14001b58e
movzx eax, word [rbx]
add rbx, 2
test ax, ax
jne 0x14001b56d
lea rax, [rsp + 0x40]
mov byte [rsp + 0x233], dl
sub r8d, eax
mov dword [rsp + 0x30], edx
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x30]
dec r8d
lea rdx, [rsp + 0x40]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400025b3
add rsp, 0x250
pop rbx
ret
Function at 0x14001d8f4
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001db98
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 0x14001d963
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001d963
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001d963
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001d963
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001d963
cmp dword [rcx + 0x84], 0xe
jbe 0x14001d963
cmp dword [rcx + 0xf8], 0
je 0x14001d963
mov ecx, ebx
call fcn.14001dae8
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.14001d654
nop
cmp dword [rbp + 0x20], 0
jne 0x14001d9c4
call fcn.140001677
cmp eax, 1
jne 0x14001d9b4
xor dl, dl
jmp 0x14001d9be
call fcn.140002379
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x14001d9cf
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001da10
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14001d8f4

Function at 0x14005406c
Capabilities:
Print debug messages

Disassembly:
jmp 0x14005406c
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, r8d
mov rbp, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ebx, eax
test eax, eax
je 0x1400540b4
test rdi, rdi
je 0x1400540a3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.1400017f3
cmp eax, 1
je 0x1400540b4
mov eax, 4
jmp 0x1400540f9
call fcn.140003954
cmp eax, 2
jne 0x1400540f0
call fcn.14000184d
test al, al
je 0x1400540f0
call fcn.140002ac7
test al, al
jne 0x1400540e6
bts esi, 0x15
xor ecx, ecx
mov rdx, rdi
mov r8, rbp
mov r9d, esi
call fcn.14000398b
jmp 0x1400540f9
call fcn.140003837
mov rcx, rax
jmp 0x1400540d6
neg ebx
sbb eax, eax
neg eax
add eax, 3
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret