joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400deacc
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, rdx
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400deb04
test al, 0x10
jne 0x1400deb00
and eax, 0xffffffdf
mov rcx, rbx
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1400deb04
mov al, 1
jmp 0x1400deb1a
mov rdx, qword [rdi + 0x64b5f0]
mov r8, rbx
mov ecx, 0x10
call fcn.140002150
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400e3468
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [0x1401d4300], 0
je 0x1400e3483
or eax, 0xffffffff
jmp 0x1400e3591
mov rax, qword [0x1401c41c0]
test rax, rax
jg 0x1400e34a3
dec rax
mov qword [0x1401c41c0], rax
and qword [0x1401d4210], 0
jmp 0x1400e347b
mov rbx, qword [0x1401d4210]
test rbx, rbx
jg 0x1400e34f7
mov rcx, qword [0x1401d4200]
mov ebx, 0x2000
mov edx, ebx
call fcn.1400e31c0
movsxd rcx, eax
mov qword [0x1401d4210], rcx
test eax, eax
je 0x1400e3529
cmp rcx, 0xffffffffffffffff
je 0x1400e3533
mov rax, qword [0x1401d4200]
add qword [0x1401d4250], rbx
mov qword [0x1401d4208], rax
call fcn.1400e2e90
mov rbx, qword [0x1401d4210]
mov rax, qword [0x1401c41e8]
test byte [rax + 0x40], 1
je 0x1400e3576
cmp byte [0x1401d5401], 0
je 0x1400e354b
test rbx, rbx
je 0x1400e3576
mov rcx, qword [0x1401d4208]
lea r8, [0x1401d5408]
mov edx, ebx
call fcn.1400e6d20
jmp 0x1400e356f
cmp rcx, 0xffffffffffffffff
jne 0x1400e3499
lea rdx, [0x140173f4a]
lea rcx, [0x140149f20]
call fcn.14003c960
jmp 0x1400e3499
mov rdi, qword [0x1401d4208]
test rbx, rbx
je 0x1400e3576
call fcn.1400e623c
xor byte [rdi], al
movzx ecx, byte [rdi]
call fcn.1400e625c
inc rdi
sub rbx, 1
jne 0x1400e3557
mov rbx, qword [0x1401d4210]
mov rax, qword [0x1401d4208]
dec rbx
mov qword [0x1401d4210], rbx
movzx eax, byte [rax]
inc qword [0x1401d4208]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400e625c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov r8d, dword [0x1401d535c]
mov eax, ecx
mov r9d, ecx
mov edx, r8d
lea r10, [0x1401c3da0]
shr r8d, 8
xor rdx, rax
movzx eax, dl
mov edx, dword [r10 + rax*4]
xor edx, r8d
movzx eax, dl
mov dword [0x1401d535c], edx
mov edx, dword [0x1401d5364]
add eax, dword [0x1401d5360]
imul eax, eax, 0x8088405
inc eax
mov ecx, eax
mov dword [0x1401d5360], eax
mov eax, edx
shr ecx, 0x18
shr edx, 8
xor rcx, rax
movzx eax, cl
mov eax, dword [r10 + rax*4]
xor eax, edx
mov dword [0x1401d5364], eax
mov eax, r9d
ret
Function at 0x1400e6314
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140132350]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, rcx
mov rcx, qword [0x1401d5368]
call fcn.1400e62c8
mov rax, qword [rbx]
lea r11, [rsp + 0x20]
mov qword [r11], rax
mov eax, dword [rbx + 8]
mov dword [r11 + 8], eax
xor r11d, r11d
mov rbx, r11
mov ecx, dword [0x1401d5364]
and ecx, 0xfffd
or ecx, 2
mov eax, ecx
xor eax, 1
imul eax, ecx
shr eax, 8
xor byte [rsp + rbx + 0x20], al
movzx ecx, byte [rsp + rbx + 0x20]
call fcn.1400e625c
inc rbx
cmp rbx, 0xc
jl 0x1400e6354
mov rax, qword [0x1401c41e8]
movzx ecx, byte [0x1401d427f]
test byte [rax + 0x40], 2
movzx eax, byte [0x1401d4277]
cmovne ecx, eax
movzx eax, byte [rsp + 0x2b]
cmp eax, ecx
je 0x1400e63b0
or r11d, 0xffffffff
jmp 0x1400e63fd
mov rbx, qword [0x1401d4210]
mov rax, qword [0x1401c41c0]
mov rdi, qword [0x1401d4208]
movsxd rcx, ebx
cmp rcx, rax
cmovg ebx, eax
jmp 0x1400e63f8
mov eax, dword [0x1401d5364]
dec ebx
and eax, 0xfffd
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
shr ecx, 8
xor byte [rdi], cl
movzx ecx, byte [rdi]
call fcn.1400e625c
inc rdi
cmp ebx, r11d
jne 0x1400e63d0
mov eax, r11d
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400e9d80
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x1400e68f8
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov eax, dword [r8 + 0xdc]
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp eax, 0xffffffff
je 0x1400e6995
cmp eax, 0x40
jbe 0x1400e693e
lea rcx, [r8 + 0x40]
mov rdx, rdi
mov r8b, 1
call fcn.1400e680c
mov dword [rdi + 0xdc], 0x14
mov ecx, dword [rdi + 0xdc]
mov r8d, 0x40
xor edx, edx
sub r8d, ecx
add rcx, rdi
call fcn.1400eada0
mov r11, rdi
mov eax, 0x10
xor dword [r11], 0x36363636
add r11, 4
sub rax, 1
jne 0x1400e695f
lea rcx, [rdi + 0x40]
call fcn.140064f24
lea rcx, [rdi + 0x40]
mov r9b, 1
mov r8d, 0x40
mov rdx, rdi
call fcn.140064f50
or dword [rdi + 0xdc], 0xffffffff
test esi, esi
je 0x1400e69ab
lea rcx, [rdi + 0x40]
mov r8, rsi
mov r9b, 1
mov rdx, rbp
call fcn.140064f50
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400e69c0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140132350]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp dword [r8 + 0xdc], 0xffffffff
mov rbx, r8
mov edi, edx
mov rbp, rcx
je 0x1400e69f6
xor edx, edx
xor ecx, ecx
call fcn.1400e68f8
lea rdx, [rsp + 0x20]
lea rcx, [rbx + 0x40]
mov r8b, 1
call fcn.1400e680c
mov r11, rbx
mov eax, 0x10
xor dword [r11], 0x6a6a6a6a
add r11, 4
sub rax, 1
jne 0x1400e6a0f
lea rcx, [rbx + 0x40]
call fcn.140064f24
lea rcx, [rbx + 0x40]
mov r9b, 1
mov r8d, 0x40
mov rdx, rbx
call fcn.140064f50
lea rdx, [rsp + 0x20]
lea rcx, [rbx + 0x40]
mov r9b, 1
mov r8d, 0x14
call fcn.140064f50
lea rdx, [rsp + 0x20]
lea rcx, [rbx + 0x40]
mov r8b, 1
call fcn.1400e680c
test edi, edi
je 0x1400e6a7a
lea rdx, [rsp + 0x20]
mov r8, rdi
mov rcx, rbp
call fcn.1400e9de0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400e9d80
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400e6a94
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x308
mov rax, qword [0x140132350]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov r15, qword [rsp + 0x378]
mov rbx, rcx
mov rsi, r8
mov edi, edx
mov r12d, 0xe0
lea rcx, [rsp + 0x100]
mov r8, r12
xor edx, edx
mov ebp, r9d
call fcn.1400eada0
lea r8, [rsp + 0x100]
mov edx, edi
mov rcx, rbx
call fcn.1400e685c
lea rcx, [rsp + 0x1e0]
lea rdx, [rsp + 0x100]
mov r8, r12
call fcn.1400e9de0
lea r8, [rsp + 0x1e0]
mov edx, ebp
mov rcx, rsi
call fcn.1400e68f8
mov r14d, dword [rsp + 0x380]
mov eax, 0xcccccccd
lea ecx, [r14 - 1]
mul ecx
mov r13d, edx
shr r13d, 4
add r13d, 1
je 0x1400e6c68
mov ebp, dword [rsp + 0x370]
xor edi, edi
lea ebx, [rdi + 1]
xor eax, eax
lea rcx, [rsp + 0x20]
lea rdx, [rsp + 0x1e0]
mov r8, r12
mov qword [rsp + 0x2d8], rax
mov qword [rsp + 0x2e0], rax
mov dword [rsp + 0x2e8], eax
call fcn.1400e9de0
mov eax, ebx
shr eax, 0x10
mov r11d, ebx
mov byte [rsp + 0x2c3], bl
mov byte [rsp + 0x2c1], al
shr r11d, 0x18
mov eax, ebx
shr eax, 8
mov byte [rsp + 0x2c0], r11b
mov r12d, 4
mov byte [rsp + 0x2c2], al
test ebp, ebp
je 0x1400e6c27
mov rsi, rbp
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x2c0]
mov edx, r12d
call fcn.1400e68f8
mov r12d, 0x14
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x2c0]
mov edx, r12d
call fcn.1400e69c0
xor r11d, r11d
mov rcx, r12
mov al, byte [rsp + r11 + 0x2c0]
inc r11
xor byte [rsp + r11 + 0x2d7], al
sub rcx, 1
jne 0x1400e6bf0
lea rcx, [rsp + 0x20]
lea rdx, [rsp + 0x100]
mov r8d, 0xe0
call fcn.1400e9de0
sub rsi, 1
jne 0x1400e6bba
movsxd rdx, edi
xor ecx, ecx
lea r8, [rsp + 0x2d8]
add rdx, r15
lea eax, [rdi + rcx]
cmp eax, r14d
jae 0x1400e6c51
mov al, byte [r8]
inc ecx
inc r8
mov byte [rdx], al
inc rdx
cmp ecx, 0x14
jb 0x1400e6c37
inc ebx
add edi, 0x14
mov r12d, 0xe0
lea eax, [rbx - 1]
cmp eax, r13d
jb 0x1400e6b51
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.1400e9d80
add rsp, 0x308
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400f14af
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140132350]
jne 0x1400e9d9a
rol rcx, 0x10
test cx, 0xffff
jne 0x1400e9d96
repz ret
ror rcx, 0x10
jmp 0x1400f1408
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1401d75e0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x1401d76d8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400f148d
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1401d75e0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1400f14af
mov rax, qword [rsp + 0x88]
mov qword [0x1401d76d8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1401d7678], rax
mov rax, qword [0x1401d76d8]
mov qword [0x1401d7550], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1401d7660], rax
mov dword [0x1401d7540], 0xc0000409
mov dword [0x1401d7544], 1
mov rax, qword [0x140132350]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140132358]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1401d75d8], eax
mov ecx, 1
call fcn.1400f9e1c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1401182f8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1401d75d8], 0
jne 0x1400f1536
mov ecx, 1
call fcn.1400f9e1c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x1400f428c
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400f4100
Function at 0x1400f4298
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.1400f60a4
nop
cmp dword [0x1401d7e48], 1
je 0x1400f4238
mov dword [0x1401d7e44], 1
mov byte [0x1401d7e40], r12b
test ebx, ebx
jne 0x1400f4224
mov rcx, qword [0x1401d95b0]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400f4211
mov rcx, qword [0x1401d95a8]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x1400f41b0
call fcn.1400f0da4
cmp qword [rdi], rax
jne 0x1400f41b0
jmp 0x1400f4196
cmp rdi, rsi
jb 0x1400f4211
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.1400f0da4
mov qword [rdi], rax
call rbx
mov rcx, qword [0x1401d95b0]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x1401d95a8]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x1400f41ef
cmp r13, rax
je 0x1400f420f
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x1400f4196
lea rdx, [0x140108f70]
lea rcx, [0x140108f58]
call fcn.1400f3fe0
lea rdx, [0x140108f80]
lea rcx, [0x140108f78]
call fcn.1400f3fe0
nop
test r12d, r12d
je 0x1400f4247
mov ecx, 8
call fcn.1400f5fa4
test r12d, r12d
jne 0x1400f4272
mov dword [0x1401d7e48], 1
lea ecx, [r12 + 8]
call fcn.1400f5fa4
mov ecx, r15d
call fcn.1400f3f74
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x1400f4100
Function at 0x1400fa0c4
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.1400f0da4
xor ebx, ebx
mov rdi, rax
cmp qword [0x1401d81e0], rbx
jne 0x1400fa1ca
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x1400fa29f
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400fa29f
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1401d81e0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x140119460]
mov rcx, rsi
mov qword [0x1401d81e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x1401d81f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x1401d8200], rax
test rax, rax
je 0x1400fa1c1
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x1401d81f8], rax
jmp 0x1400fa1d1
mov rax, qword [0x1401d81f8]
jmp 0x1400fa1d8
mov rax, qword [0x1401d81f8]
mov r11, qword [0x1401d8200]
cmp rax, rdi
je 0x1400fa240
cmp r11, rdi
je 0x1400fa240
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x1401d8200]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x1400fa240
test rax, rax
je 0x1400fa240
call rsi
test rax, rax
je 0x1400fa23a
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1400fa23a
test byte [rsp + 0x38], 1
jne 0x1400fa240
bts ebp, 0x15
jmp 0x1400fa27e
mov rcx, qword [0x1401d81e8]
cmp rcx, rdi
je 0x1400fa27e
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x1400fa27e
call rax
mov rbx, rax
test rax, rax
je 0x1400fa27e
mov rcx, qword [0x1401d81f0]
cmp rcx, rdi
je 0x1400fa27e
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x1400fa27e
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1401d81e0]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x1400fa29f
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x1400fa2a1
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x14000147f
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140005460]
mov dword [rax], 1
mov rax, qword [0x140005470]
mov dword [rax], 1
mov rax, qword [0x140005480]
mov dword [rax], 1
mov rax, qword [0x140005420]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014d0
mov eax, 0
jmp 0x14000157d
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400014fc
mov eax, 0
jmp 0x14000157d
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001522
cmp eax, 0x20b
je 0x140001549
jmp 0x140001578
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001535
mov eax, 0
jmp 0x14000157d
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000157d
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001564
mov eax, 0
jmp 0x14000157d
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000157d
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001b30
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x140002802
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140009168]
test eax, eax
je 0x14000289a
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140009170]
mov qword [rbp - 8], rax
jmp 0x14000287e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140002872
cmp qword [rbp - 0x10], 0
je 0x140002872
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140002838
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000289b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1401bf870]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1401bf880]
mov dword [rax], 1
mov rax, qword [0x1401bf890]
mov dword [rax], 1
mov rax, qword [0x1401bf860]
mov dword [rax], 1
mov rax, qword [0x1401bf720]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x1401bf850]
mov dword [0x1401c200c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x1400010c0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1401bf810]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1401bf7f0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1401bf6d0]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067
Function at 0x140001746
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov qword [rbp - 8], 0
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140001779
mov eax, 0
jmp 0x1400018be
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 0x20]
add rax, rdx
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400017a5
mov eax, 0
jmp 0x1400018be
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0xf8]
test eax, eax
je 0x1400017bd
mov eax, 0
jmp 0x1400018be
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 0x20]
add rax, rdx
add rax, 0x108
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0x50]
mov edx, eax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 0x30]
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140001836
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0x50]
mov eax, eax
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140001844
mov eax, 0
jmp 0x1400018be
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0x54]
mov ecx, eax
mov rdx, qword [rbp - 0x20]
mov rax, qword [rbp - 8]
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov dword [rbp - 0x14], 0
jmp 0x1400018aa
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x10]
mov ecx, eax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x14]
mov edx, eax
mov rax, qword [rbp - 0x20]
add rax, rdx
mov rdx, rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0xc]
mov r8d, eax
mov rax, qword [rbp - 8]
add rax, r8
mov r8, rcx
mov rcx, rax
call sym.memcpy
add qword [rbp - 0x10], 0x28
add dword [rbp - 0x14], 1
mov rax, qword [rbp - 0x28]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0x14], eax
jl 0x140001869
mov rax, qword [rbp - 8]
add rsp, 0x50
pop rbp
ret

Function at 0x140001d50
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x140001dc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x1401c20a4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x140001f70
mov rax, qword [0x1401c20a8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x140001e0c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001e97
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x140001df0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x140001fcd
mov rax, qword [0x1401c20a8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1401c20a8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001fb2
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001e90
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001f20
add dword [0x1401c20a4], 1
cmp ebx, 8
jae 0x140001ec8
test bl, 4
jne 0x140001f80
test ebx, ebx
je 0x140001eb9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x140001fa0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x140001eb9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x140001efa
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x1401c20a8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001e90
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
xor edi, edi
jmp 0x140001e17
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x140001eb9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x140001eb9
mov rax, qword [0x1401c20a8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop dword [rax]