joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180008850
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x288
mov rax, qword [0x18009b018]
xor rax, rsp
mov qword [rsp + 0x278], rax
mov dword [rsp + 0x34], 0
mov qword [rsp + 0x38], 0
mov byte [rsp + 0x250], 0x67
mov byte [rsp + 0x251], 0x32
mov byte [rsp + 0x252], 0x4f
mov byte [rsp + 0x253], 0x63
mov byte [rsp + 0x254], 0x36
mov byte [rsp + 0x255], WSAStartup
mov byte [rsp + 0x256], 0x57
mov byte [rsp + 0x257], 0x52
mov byte [rsp + 0x258], 0x55
mov byte [rsp + 0x259], 0x33
mov byte [rsp + 0x25a], WSAStartup
mov byte [rsp + 0x25b], 0x2e
mov byte [rsp + 0x25c], 0x42
mov byte [rsp + 0x25d], 0x30
mov byte [rsp + 0x25e], 0x50
mov byte [rsp + 0x25f], WSAStartup
mov byte [rsp + 0x260], 0
cmp qword [rsp + 0x290], 0
je 0x18000892a
cmp dword [rsp + 0x298], 0
jne 0x180008931
xor eax, eax
jmp 0x180008a0f
mov dword [rsp + 0x30], 0
jmp 0x180008945
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x298]
cmp dword [rsp + 0x30], eax
jae 0x180008979
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x290]
movzx eax, byte [rcx + rax]
cmp eax, 0x20
jne 0x180008977
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x290]
mov byte [rcx + rax], 0x2b
jmp 0x18000893b
mov eax, dword [rsp + 0x298]
mov dword [rsp + 0x34], eax
lea rdx, [rsp + 0x34]
mov rcx, qword [rsp + 0x290]
call fcn.180005e50
mov qword [rsp + 0x38], rax
mov r8d, 0x80
lea rdx, [rsp + 0x250]
lea rcx, [rsp + 0x40]
call fcn.180001bb0
mov r8d, 0x10
xor edx, edx
lea rcx, [rsp + 0x268]
call fcn.18004b400
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x38]
mov r8, qword [rsp + 0x38]
lea rdx, [rsp + 0x268]
lea rcx, [rsp + 0x40]
call fcn.180005d30
mov rax, qword [rsp + 0x2a0]
mov rcx, qword [rsp + 0x38]
mov qword [rax], rcx
mov rax, qword [rsp + 0x2a8]
mov ecx, dword [rsp + 0x34]
mov dword [rax], ecx
mov eax, 1
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.180047960
add rsp, 0x288
ret
Function at 0x180008a30
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [rsp + 0x20], r9d
mov word [rsp + 0x18], r8w
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2a0
mov rax, qword [0x18009b018]
xor rax, rsp
mov qword [rsp + 0x298], rax
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0xa
rep stosb byte [rdi], al
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x40], 0
mov byte [rsp + 0x270], 0x67
mov byte [rsp + 0x271], 0x32
mov byte [rsp + 0x272], 0x4f
mov byte [rsp + 0x273], 0x63
mov byte [rsp + 0x274], 0x36
mov byte [rsp + 0x275], WSAStartup
mov byte [rsp + 0x276], 0x57
mov byte [rsp + 0x277], 0x52
mov byte [rsp + 0x278], 0x55
mov byte [rsp + 0x279], 0x33
mov byte [rsp + 0x27a], WSAStartup
mov byte [rsp + 0x27b], 0x2e
mov byte [rsp + 0x27c], 0x42
mov byte [rsp + 0x27d], 0x30
mov byte [rsp + 0x27e], 0x50
mov byte [rsp + 0x27f], WSAStartup
mov byte [rsp + 0x280], 0
cmp qword [rsp + 0x2d8], 0
jne 0x180008b1f
mov dword [rsp + 0x2e0], 0
mov eax, dword [rsp + 0x2c8]
mov dword [rsp + 0x56], eax
movzx eax, word [rsp + 0x2c0]
mov word [rsp + 0x50], ax
mov eax, dword [rsp + 0x2d0]
mov dword [rsp + 0x52], eax
mov eax, dword [rsp + 0x2e0]
add rax, 0xa
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
add eax, 0x10
mov eax, eax
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x180008b7b
xor eax, eax
jmp 0x180008cb0
mov eax, dword [rsp + 0x40]
mov r9d, 0xa
lea r8, [rsp + 0x50]
mov edx, eax
mov rcx, qword [rsp + 0x38]
call fcn.1800064c0
cmp qword [rsp + 0x2d8], 0
je 0x180008bd7
mov eax, dword [rsp + 0x2e0]
mov ecx, dword [rsp + 0x2e0]
mov rdx, qword [rsp + 0x38]
add rdx, 0xa
mov qword [rsp + 0x48], rdx
mov r9d, eax
mov r8, qword [rsp + 0x2d8]
mov edx, ecx
mov rax, qword [rsp + 0x48]
mov rcx, rax
call fcn.1800064c0
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x30], eax
xor edx, edx
mov eax, dword [rsp + 0x30]
mov ecx, 0x10
div ecx
mov eax, edx
test eax, eax
je 0x180008c16
xor edx, edx
mov eax, dword [rsp + 0x30]
mov ecx, 0x10
div ecx
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
imul eax, dword [rsp + 0x30], 0x10
mov dword [rsp + 0x30], eax
mov r8d, 0x80
lea rdx, [rsp + 0x270]
lea rcx, [rsp + 0x60]
call fcn.180001bb0
mov r8d, 0x10
xor edx, edx
lea rcx, [rsp + 0x288]
call fcn.18004b400
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x38]
mov r8, qword [rsp + 0x38]
lea rdx, [rsp + 0x288]
lea rcx, [rsp + 0x60]
call fcn.180005c50
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
call fcn.1800061a0
mov rcx, qword [rsp + 0x2b0]
mov qword [rcx], rax
mov rax, qword [rsp + 0x2b8]
mov ecx, dword [rsp + 0x30]
mov dword [rax], ecx
cmp qword [rsp + 0x38], 0
je 0x180008ca2
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rsp + 0x38], 0
mov eax, 1
mov rcx, qword [rsp + 0x298]
xor rcx, rsp
call fcn.180047960
add rsp, 0x2a0
pop rdi
ret
Function at 0x180009050
Capabilities:
Create thread

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x690
mov rax, qword [0x18009b018]
xor rax, rsp
mov qword [rsp + 0x680], rax
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x260]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea rax, [rsp + 0x470]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov qword [rsp + 0x38], 0xffffffffffffffff
mov r8, qword [rsp + 0x6b0]
lea rdx, [0x180078028]
lea rcx, [rsp + 0x470]
call fcn.180008df0
lea r8, [0x18009d668]
lea rdx, [sym.2048.dll_functionInDll]
mov ecx, 6
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExA]
mov r8d, 0x104
lea rdx, [0x18009d460]
mov rcx, qword [0x18009d668]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dx, 0x5c
lea rcx, [0x18009d460]
call fcn.18004b590
mov qword [rsp + 0x30], rax
lea rcx, [0x18009d460]
call fcn.180051d0c
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x30]
call fcn.180051d0c
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
shl rax, 1
mov r8, rax
lea rdx, [0x18009d460]
lea rcx, [rsp + 0x260]
call fcn.18004af90
lea r8, [rsp + 0x260]
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.180051b54
lea r8, [0x180078030]
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.180051ad4
lea r8, [rsp + 0x470]
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.180051ad4
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
lea r8, [0x180046730]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x38], rax
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x680]
xor rcx, rsp
call fcn.180047960
add rsp, 0x690
pop rdi
ret
Function at 0x1800332b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov rax, qword [0x18009b018]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xc0]
cmp qword [rax + 0x68], 0
je 0x1800332ed
mov rax, qword [rsp + 0xc0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1800332f4
mov al, 1
jmp 0x18003345c
mov dword [rsp + 0x40], 0xffffffff
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax]
mov edx, dword [rsp + 0x40]
mov rcx, qword [rsp + 0xc0]
call qword [rax + 0x18]
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x48], 0xffffffff
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jne 0x180033336
mov dword [rsp + 0x38], 1
jmp 0x18003333e
mov dword [rsp + 0x38], 0
movzx eax, byte [rsp + 0x38]
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x180033357
xor al, al
jmp 0x18003345c
mov qword [rsp + 0x70], 0x20
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x98]
mov rcx, qword [rsp + 0xc0]
add rcx, 0x74
mov rdx, qword [rsp + 0x58]
mov rdx, qword [rdx]
mov qword [rsp + 0x60], rdx
lea r8, [rsp + 0x68]
mov qword [rsp + 0x20], r8
mov r9, rax
lea r8, [rsp + 0x78]
mov rdx, rcx
mov rcx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x60]
call qword [rax + 0x40]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x1800333d6
cmp dword [rsp + 0x34], 1
je 0x1800333e2
cmp dword [rsp + 0x34], 3
je 0x180033456
jmp 0x18003345a
mov rax, qword [rsp + 0xc0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x78]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jbe 0x18003342d
mov rax, qword [rsp + 0xc0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
lea rcx, [rsp + 0x78]
call fcn.1800599e8
cmp qword [rsp + 0x50], rax
je 0x18003342d
xor al, al
jmp 0x18003345c
mov rax, qword [rsp + 0xc0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x180033447
mov dword [rsp + 0x3c], 1
jmp 0x18003344f
mov dword [rsp + 0x3c], 0
movzx eax, byte [rsp + 0x3c]
jmp 0x18003345c
mov al, 1
jmp 0x18003345c
xor al, al
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.180047960
add rsp, 0xb8
ret
Function at 0x180035bd0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
xor eax, eax
cmp eax, 1
je 0x180035d6d
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x68], 0
je 0x180035c13
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call fcn.18001b8d0
jmp 0x180035d81
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x38]
cmp qword [rax], 0
je 0x180035c3d
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x50]
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
jmp 0x180035c45
mov dword [rsp + 0x20], 0
movsxd rax, dword [rsp + 0x20]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x60], 0
jle 0x180035d08
cmp qword [rsp + 0x28], 0
jle 0x180035d08
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x60], rax
jge 0x180035c7d
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x38]
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x58]
call fcn.18004af90
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x50]
mov ecx, dword [rsp + 0x28]
mov eax, dword [rax]
sub eax, ecx
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x50]
mov dword [rcx], eax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x38]
movsxd rcx, dword [rsp + 0x28]
add rcx, qword [rax]
mov rax, rcx
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x38]
mov qword [rcx], rax
cmp qword [rsp + 0x60], 0
jle 0x180035d59
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x80], 0
je 0x180035d59
mov rcx, qword [rsp + 0x50]
call fcn.1800339c0
mov rax, qword [rsp + 0x50]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x60]
mov edx, 1
mov rcx, qword [rsp + 0x58]
call fcn.180059480
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
jmp 0x180035d81
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call fcn.18001b8d0
add rsp, 0x48
ret
Function at 0x180035d90
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
xor eax, eax
cmp eax, 1
je 0x180035f23
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x68], 0
je 0x180035dd3
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call fcn.18001ba70
jmp 0x180035f37
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x40]
cmp qword [rax], 0
je 0x180035dfd
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x58]
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
jmp 0x180035e05
mov dword [rsp + 0x20], 0
movsxd rax, dword [rsp + 0x20]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x60], 0
jle 0x180035ec8
cmp qword [rsp + 0x28], 0
jle 0x180035ec8
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x60], rax
jge 0x180035e3d
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x30]
call fcn.18004af90
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x58]
mov ecx, dword [rsp + 0x28]
mov eax, dword [rax]
sub eax, ecx
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x58]
mov dword [rcx], eax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x40]
movsxd rcx, dword [rsp + 0x28]
add rcx, qword [rax]
mov rax, rcx
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x40]
mov qword [rcx], rax
cmp qword [rsp + 0x60], 0
jle 0x180035f0f
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x80], 0
je 0x180035f0f
mov rax, qword [rsp + 0x50]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x60]
mov edx, 1
mov rcx, qword [rsp + 0x58]
call fcn.1800599e8
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
jmp 0x180035f37
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call fcn.18001ba70
add rsp, 0x48
ret
Function at 0x180046e10
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x1388
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0
mov r9d, 0xff
xor r8d, r8d
mov edx, 0x40000003
lea rcx, [0x18009da68]
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov qword [0x18009da88], rax
cmp qword [0x18009da88], 0xffffffffffffffff
jne 0x180046e6a
xor eax, eax
jmp 0x180046e7b
mov rdx, qword [rsp + 0x50]
mov rcx, qword [0x18009da88]
call fcn.180046e90
add rsp, 0x48
ret

Function at 0x180046e90
Capabilities:
Connect pipe

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x24], 0
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x180046ec5
xor eax, eax
jmp 0x180046f0c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x217
je 0x180046eef
cmp dword [rsp + 0x20], 0x3e5
je 0x180046ee5
jmp 0x180046f04
mov dword [rsp + 0x24], 1
jmp 0x180046f08
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x180046f04
jmp 0x180046f08
xor eax, eax
jmp 0x180046f0c
mov eax, dword [rsp + 0x24]
add rsp, 0x38
ret
Function at 0x180046f20
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x34], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x50], rax
mov edx, 0xa
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], 0xa
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x48], 0
mov dword [0x18009edbc], 1
xor eax, eax
cmp eax, 1
je 0x1800470a3
mov r8d, 0xa
xor edx, edx
mov rcx, qword [rsp + 0x40]
call fcn.18004b400
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, dword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x30], 0
je 0x180047091
mov rax, qword [rsp + 0x40]
cmp dword [rax + 2], 0
jne 0x180046ffe
mov rax, qword [rsp + 0x40]
mov edx, dword [rax + 6]
mov rax, qword [rsp + 0x40]
movzx ecx, word [rax]
call fcn.180006d90
test eax, eax
jne 0x180046ff9
mov dword [0x18009edb8], 0
jmp 0x1800470a3
jmp 0x180047091
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 2]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov rax, qword [rsp + 0x40]
mov r8d, dword [rax + 2]
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x40]
mov r9d, dword [rax + 6]
mov rax, qword [rsp + 0x40]
mov r8d, dword [rax + 2]
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
movzx ecx, word [rax]
call fcn.1800069b0
test eax, eax
jne 0x180047086
mov dword [0x18009edb8], 0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1800470a3
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, qword [rsp + 0x40]
cmp dword [rax + 6], 0
je 0x18004709e
jmp 0x1800470a3
jmp 0x180046f73
mov dword [0x18009edbc], 0
mov rcx, qword [rsp + 0x50]
call fcn.180046dc0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
add rsp, 0x68
ret

Function at 0x1800472c0
Capabilities:
Get system information on windows

Disassembly:
push rdi
sub rsp, 0x60
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
mov qword [rsp + 0x28], 0xffffffffffffffff
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [rsp + 0x30]
test eax, eax
jne 0x18004730b
mov eax, 1
jmp 0x18004732a
call qword [0x18009ee58]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
call qword [0x18009ee60]
mov eax, dword [rsp + 0x20]
add rsp, 0x60
pop rdi
ret
Function at 0x18005a040
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x180059f17
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180059f17
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180059f17
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180059f17
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180059f17
cmp dword [rcx + 0x84], 0xe
jbe 0x180059f17
cmp dword [rcx + 0xf8], 0
je 0x180059f17
mov ecx, ebx
call fcn.180059fb8
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.180059da8
cmp dword [rbp + 0x20], 0
je 0x180059f64
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180059f6c
int3
xor r8d, r8d
xor edx, edx
jmp 0x180059eb0

Function at 0x180064950
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x180064970
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.18004e65c
or eax, 0xffffffff
jmp 0x180064972
xor eax, eax
add rsp, 0x28
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14008b430]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14008b440]
mov dword [rax], 1
mov rax, qword [0x14008b450]
mov dword [rax], 1
mov rax, qword [0x14008b3d0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14008b420]
mov dword [0x14008e00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x14008b520]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x14008b500]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x14008b380]
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 [sym._matherr]
call sym.__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

Function at 0x1400014df
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
call sym.__main
movabs rax, 0x652e656d6167796d
mov qword [rbp - 0xb], rax
mov dword [rbp - 4], 0x657865
lea rax, [rbp - 0xb]
mov r8, rax
mov rax, qword [0x14008b4e0]
mov rdx, rax
mov rax, qword [0x14008b4f0]
mov rcx, rax
call sym.write_char__char__char_
lea rax, [rbp - 0xb]
mov rcx, rax
call sym.system
mov eax, 0
add rsp, 0x30
pop rbp
ret

Function at 0x140001800
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]