joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800019b0
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.180001f40
mov qword [rsp + 0x28], 0
cmp qword [0x180029bb8], 0
jne 0x1800019f8
cmp qword [0x180029bb0], 0
je 0x1800019f8
mov rax, qword [0x180029bb0]
mov qword [0x180029bb8], rax
cmp qword [0x180029bb8], 0
je 0x180001a9e
mov rax, qword [0x180029bb8]
cmp qword [rax + 0x10], 0
je 0x180001a9e
mov rax, qword [0x180029bb8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x180001a9e
mov rax, qword [0x180029bb8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x180001a9e
mov rax, qword [0x180029bb8]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x180001a64
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x180001a6b
xor eax, eax
jmp 0x180001c15
mov rax, qword [0x180029bb8]
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.18001c400
mov rax, qword [rsp + 0x28]
jmp 0x180001c15
mov rax, qword [0x180029bb0]
mov qword [0x180029bb8], rax
jmp 0x180001ac0
mov rax, qword [0x180029bb8]
mov rax, qword [rax + 8]
mov qword [0x180029bb8], rax
cmp qword [0x180029bb8], 0
je 0x180001b0d
cmp qword [0x180029bb8], 0
je 0x180001b0b
mov rax, qword [0x180029bb8]
cmp qword [rax + 0x10], 0
je 0x180001b0b
mov rax, qword [0x180029bb8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x180001b0b
mov rax, qword [0x180029bb8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x180001b0b
jmp 0x180001a3c
jmp 0x180001aae
mov rax, qword [rsp + 0x60]
and rax, 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.180001c20
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180001c13
mov rax, qword [rsp + 0x48]
mov qword [0x180029bb8], rax
mov rax, qword [0x180029bb8]
mov dword [rax], 0x52727464
mov rax, qword [0x180029bb8]
mov qword [rax + 0x10], 0
mov rax, qword [0x180029bb8]
mov rcx, qword [0x180029bb0]
mov qword [rax + 8], rcx
mov rax, qword [0x180029bb8]
mov qword [0x180029bb0], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x180029bb8]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x180001bc4
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x180001bfe
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 0x180001bba
mov rax, qword [0x180029bb8]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x180001a3c
xor eax, eax
add rsp, 0x58
ret
Function at 0x180002930
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 sub.KERNEL32.dll_VirtualQuery
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x180002977
xor al, al
jmp 0x180002a19
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 0x1800029a1
xor al, al
jmp 0x180002a19
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 0x180002a11
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 0x180002a11
mov al, 1
jmp 0x180002a19
jmp 0x180002a17
xor al, al
add rsp, 0x78
ret

Function at 0x180002d20
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x180029bb0]
mov qword [rsp + 0x28], rax
jmp 0x180002d40
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180002d6f
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x180002d6d
call sub.KERNEL32.dll_GetLastError
jmp 0x180002d71
jmp 0x180002d32
xor eax, eax
add rsp, 0x38
ret
Function at 0x180003610
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x20], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x180029bc8], eax
je 0x18000363d
mov eax, 0x10dd
jmp 0x180003856
cmp dword [0x180029bcc], 0
je 0x180003651
mov eax, dword [0x180029bcc]
jmp 0x180003856
cmp qword [rsp + 0x78], 0
jne 0x180003663
mov eax, 0x57
jmp 0x180003856
cmp qword [rsp + 0x70], 0
jne 0x180003675
mov eax, 6
jmp 0x180003856
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
jne 0x1800036a7
mov dword [rsp + 0x20], 6
mov eax, dword [rsp + 0x20]
mov dword [0x180029bcc], eax
mov rax, qword [rsp + 0x70]
mov qword [0x180029bd0], rax
mov eax, dword [rsp + 0x20]
jmp 0x180003856
mov ecx, 0x30
call fcn.18000628c
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x180003719
mov dword [rsp + 0x20], 8
mov eax, dword [rsp + 0x20]
mov dword [0x180029bcc], eax
cmp qword [rsp + 0x30], 0
je 0x180003704
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x50]
call fcn.1800062c8
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x70]
mov qword [0x180029bd0], rax
mov eax, dword [rsp + 0x20]
jmp 0x180003856
xor edx, edx
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
call fcn.1800035e0
mov qword [rsp + 0x38], rax
xor edx, edx
mov rcx, qword [rsp + 0x78]
call fcn.1800035e0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax + 0x3e]
mov dword [rsp + 0x24], eax
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx + 0x48]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp dword [rsp + 0x24], 0
je 0x180003776
movsxd rax, dword [rsp + 0x24]
cmp rax, 0x1e
jbe 0x180003793
mov dword [rsp + 0x20], 9
cmp dword [0x180029bc0], 0
je 0x18000378e
jmp 0x1800036da
jmp 0x1800036d0
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x78]
cmp qword [rax + 0x50], rcx
je 0x1800037c0
mov dword [rsp + 0x20], 9
cmp dword [0x180029bc0], 0
je 0x1800037bb
jmp 0x1800036da
jmp 0x1800036d0
mov dword [rsp + 0x28], 0
movsxd rax, dword [rsp + 0x24]
lea r9, [rsp + 0x28]
mov r8d, 0x40
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1800037f7
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x1800036d0
mov rax, qword [rsp + 0x30]
mov dword [rax + 8], 1
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov qword [rax + 0x20], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x28]
mov dword [rax + 0x28], ecx
mov rax, qword [rsp + 0x30]
mov rcx, qword [0x180029be0]
mov qword [rax], rcx
mov rax, qword [rsp + 0x30]
mov qword [0x180029be0], rax
xor eax, eax
add rsp, 0x68
ret
Function at 0x180003860
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x180029bc8], eax
je 0x18000387b
mov eax, 0x10dd
jmp 0x1800039a0
mov rax, qword [0x180029be0]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180003925
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x18]
call sub.KERNEL32.dll_VirtualProtect
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x1800038f0
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x1800038f0
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.180002080
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x38]
call fcn.1800062c8
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x180003887
mov qword [0x180029be0], 0
call fcn.180002ae0
mov rax, qword [0x180029bd8]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x180003989
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call sub.KERNEL32.dll_ResumeThread
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x48]
call fcn.1800062c8
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x180003941
mov qword [0x180029bd8], 0
mov dword [0x180029bc8], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x180003ed0
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x180029bcc], 0
je 0x180003eed
mov eax, dword [0x180029bcc]
jmp 0x180003fb3
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x180003f00
xor eax, eax
jmp 0x180003fb3
mov ecx, 0x10
call fcn.18000628c
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x180003f6e
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x180003f53
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x38]
call fcn.1800062c8
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x180029bcc], eax
mov qword [0x180029bd0], 0
mov eax, dword [rsp + 0x20]
jmp 0x180003fb3
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x180003f88
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x180003f29
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x180029bd8]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x180029bd8], rax
xor eax, eax
add rsp, 0x48
ret
Function at 0x1800040a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x80], 0
jne 0x1800040cd
xor ecx, ecx
call sub.KERNEL32.dll_GetModuleHandleW
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1800040ed
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180004266
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0x4550
je 0x180004124
mov ecx, 0xbf
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180004266
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x14]
test eax, eax
jne 0x180004142
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180004266
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x20], 0
jmp 0x18000416e
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x20], eax
jae 0x18000424a
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
lea rdx, [0x18001d880]
mov rcx, rax
call fcn.18000cc50
test eax, eax
jne 0x180004245
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x48]
cmp dword [rcx + rax + 0xc], 0
je 0x1800041d3
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x48]
cmp dword [rcx + rax + 0x10], 0
jne 0x1800041d5
jmp 0x18000424a
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax + 0xc]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax]
cmp rax, 0x40
jb 0x18000421b
mov rax, qword [rsp + 0x28]
cmp dword [rax + 4], 0x727444
je 0x18000421d
jmp 0x18000424a
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x180004237
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rcx]
mov dword [rax + 8], ecx
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
jmp 0x180004266
jmp 0x180004164
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180004266
add rsp, 0x78
ret
Function at 0x180004270
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [rsp + 0x90]
add rax, 0x10000
mov qword [rsp + 0x30], rax
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.18001c400
jmp 0x1800042b8
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov r8d, 0x30
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
ja 0x1800042d7
jmp 0x18000437b
cmp dword [rsp + 0x68], 0x1000
jne 0x1800042fc
mov eax, dword [rsp + 0x6c]
and eax, 0xff
cmp eax, 1
je 0x1800042fc
mov eax, dword [rsp + 0x6c]
and eax, 0x100
test eax, eax
je 0x1800042fe
jmp 0x1800042a3
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x180004334
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, qword [rsp + 0x60]
ja 0x180004334
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, 0x40
jae 0x180004339
jmp 0x1800042a3
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0x4550
jne 0x1800042a3
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x20]
jmp 0x18000437d
xor eax, eax
add rsp, 0x88
ret

Function at 0x1800045d0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.18001c400
nop
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
ja 0x18000461a
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x1800046e2
cmp dword [rsp + 0x60], 0x1000
jne 0x18000463f
mov eax, dword [rsp + 0x64]
and eax, 0xff
cmp eax, 1
je 0x18000463f
mov eax, dword [rsp + 0x64]
and eax, 0x100
test eax, eax
je 0x180004650
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x1800046e2
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x180004677
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x1800046e2
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 0x1800046ab
mov ecx, 0xbf
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x1800046e2
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x14]
test eax, eax
jne 0x1800046c6
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x1800046e2
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
jmp 0x1800046e2
add rsp, 0x78
ret
Function at 0x180013140
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 0x180013170
xor eax, eax
jmp 0x180013233
mov rbp, rbx
cmp word [rax], si
je 0x180013195
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18001317c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180013178
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.180013060
movsxd r14, eax
test eax, eax
jne 0x1800131d3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180013169
mov rcx, r14
call fcn.18001001c
mov rdi, rax
test rax, rax
jne 0x1800131ec
xor ecx, ecx
call fcn.18000e36c
jmp 0x1800131c8
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.180013060
test eax, eax
jne 0x18001321d
mov rcx, rdi
call fcn.18000e36c
jmp 0x180013227
xor ecx, ecx
call fcn.18000e36c
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 0x180015bbc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180015bd2
mov al, 1
jmp 0x180015c32
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180015be3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180015c30
mov ecx, dword [rcx + 0x18]
nop
call fcn.180014aa4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180015c30
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180015c30
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180015c30
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180015c32
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1800193e8
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, [0x18002a690]
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 0x18001943f
cmp word [rdx], r13w
jne 0x18001943f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180019444
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180019569
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18001958a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18001947d
mov rdx, r9
mov word [rbx], cx
jmp 0x1800194a4
cmp r9, r8
jae 0x1800194b4
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 0x18001945e
jmp 0x180019569
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 0x18001955e
cmp dword [rsp + 0x80], esi
je 0x18001955e
lea r8, [0x18002a690]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180019536
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180019506
mov word [rbx], r13w
jmp 0x180019566
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 0x180019513
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180019566
cmp word [rsp + 0x70], r13w
jne 0x180019543
cmp rbx, r14
je 0x180019500
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180019308
cmp word [rsp + 0x70], r13w
je 0x180019569
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, [0x18002a690]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180019563
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180019569
Function at 0x180019e74
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.180019308
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180019308
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180019fc4
cmp rax, 0xffffffffffffffff
je 0x180019fc4
xor edi, edi
test rbp, rbp
jle 0x180019f6f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18000e2f4
mov rbx, rax
test rax, rax
jne 0x180019efc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180019f65
mov edx, 0x8000
mov ecx, r14d
call fcn.180019cf8
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.1800142f0
cmp eax, 0xffffffff
je 0x180019f45
cdqe
sub rbp, rax
test rbp, rbp
jg 0x180019f0c
mov edx, r15d
mov ecx, r14d
call fcn.180019cf8
jmp 0x180019f65
cmp byte [rsi + 0x38], dil
je 0x180019f5c
cmp dword [rsi + 0x34], 5
jne 0x180019f5c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180019f65
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18000e36c
jmp 0x180019fd8
jns 0x180019fd8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180019308
cmp rax, 0xffffffffffffffff
jne 0x180019f90
cmp byte [rsi + 0x30], dil
je 0x180019fd8
mov edi, dword [rsi + 0x2c]
jmp 0x180019fd8
mov ecx, r14d
call fcn.180014aa4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180019fd8
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 0x180019fd8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180019fd1
mov eax, dword [rsi + 0x2c]
jmp 0x180019fd6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180019308
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 0x18001ba50
Capabilities:
Parse pe header

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