joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1801bdf20
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x240
mov rax, qword [0x1802d63c0]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdx, [0x18028c6b8]
mov rbp, rcx
call fcn.1801db770
xor edi, edi
test rax, rax
je 0x1801be006
mov ebx, edi
call fcn.18017a630
mov r14d, dword [rax]
call fcn.18017a630
mov r8d, 0x104
lea rcx, [rsp + 0x20]
mov rdx, rbp
mov dword [rax], edi
call fcn.1801db634
mov rsi, rax
test rax, rax
je 0x1801bdf97
call fcn.18017a630
mov dword [rax], r14d
jmp 0x1801bdfc1
call fcn.18017a630
cmp dword [rax], 0x22
jne 0x1801bdffe
call fcn.18017a630
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1801db634
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x1801bdffe
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x1801bdfc5
cmp rax, 3
je 0x1801bdfe0
mov rcx, rsi
call fcn.1801bde68
test al, al
je 0x1801bdff1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1801bdff1
mov dil, 1
mov rcx, rbx
call fcn.1801a714c
mov al, dil
jmp 0x1801be008
mov rcx, rbx
call fcn.1801a714c
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.180131440
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x1801c7530
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rbx, rcx
test rcx, rcx
jne 0x1801c754f
call fcn.1801e3470
jmp 0x1801c7604
and qword [rbp - 0x30], 0
lea rcx, [rbp - 0x50]
and qword [rbp - 0x28], 0
xor edx, edx
and qword [rbp - 0x20], 0
and qword [rbp - 0x18], 0
and qword [rbp - 0x10], 0
mov byte [rbp - 8], 0
call fcn.18017ced8
mov rax, qword [rbp - 0x48]
mov r9d, 0xfde9
cmp dword [rax + 0xc], r9d
jne 0x1801c759a
cmp byte [rbp - 0x38], 0
je 0x1801c75cf
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1801c75cf
call fcn.1801d5ab4
test eax, eax
jne 0x1801c75bb
cmp byte [rbp - 0x38], al
je 0x1801c75b3
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1801c75cf
cmp byte [rbp - 0x38], 0
je 0x1801c75cc
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
xor r9d, r9d
lea r8, [rbp + 0x10]
mov rcx, rbx
lea rdx, [rbp - 0x30]
call fcn.1801aab24
test eax, eax
je 0x1801c75e8
or ebx, 0xffffffff
jmp 0x1801c75f3
mov rcx, qword [rbp - 0x20]
call fcn.1801e3470
mov ebx, eax
cmp byte [rbp - 8], 0
je 0x1801c7602
mov rcx, qword [rbp - 0x20]
call fcn.1801d29a4
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rbp
ret
Function at 0x1801cad00
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x1802e1190]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x1801cad5e
cmp word [rdx], r12w
jne 0x1801cad5e
or byte [rax + r8*8 + 0x38], cl
jmp 0x1801cad64
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1801caebf
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1801cae9a
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1801cad9d
mov rcx, r9
jmp 0x1801cadc0
cmp r9, rdx
jae 0x1801cadd7
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x1801cad81
jmp 0x1801caebf
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1801cae94
cmp dword [rsp + 0x80], edi
je 0x1801cae94
mov rdx, r14
lea r11, [0x1802e1190]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x1801cae6d
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1801cae40
mov word [rbx], r12w
jmp 0x1801caebb
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x1801cae49
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1801caebb
cmp word [rsp + 0x70], r12w
jne 0x1801cae7a
cmp rbx, rsi
je 0x1801cae3a
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1801d83b4
cmp word [rsp + 0x70], r12w
je 0x1801caebf
mov word [rbx], r13w
jmp 0x1801caebb
lea r11, [0x1802e1190]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1801caeb7
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1801caebf
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1801d75f8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x1801d762a
call fcn.18017a630
mov dword [rax], socket
call fcn.18017a440
jmp 0x1801d7749
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1801d7749
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1801d7749
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1801d7659
lock or dword [rcx + 0x14], 0x10
jmp 0x1801d7749
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1801d766d
call fcn.1801d8458
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1801c5844
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.1801cb2a4
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1801d7737
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1801d7702
mov rcx, rsi
call fcn.1801c5844
cmp eax, edi
je 0x1801d76ed
mov rcx, rsi
call fcn.1801c5844
cmp eax, 0xfffffffe
je 0x1801d76ed
mov rcx, rsi
call fcn.1801c5844
movsxd rbx, eax
lea r14, [0x1802e1190]
mov rcx, rsi
sar rbx, 6
call fcn.1801c5844
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1801d76f4
lea rdx, [0x1802d6b00]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1801d7702
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1801d7726
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1801d7726
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1801d7726
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x1801d774c
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x2fc4d7d00
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d8de0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d8702
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fb108]
test eax, eax
je 0x2fc4d879a
lea rax, [0x2fc4fb0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fb110]
mov qword [rbp - 8], rax
jmp 0x2fc4d877e
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 0x2fc4d8772
cmp qword [rbp - 0x10], 0
je 0x2fc4d8772
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 0x2fc4d8738
lea rax, [0x2fc4fb0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d879b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d88a0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d88c8
mov eax, 0
jmp 0x2fc4d8916
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 0x2fc4d88f1
mov eax, 0
jmp 0x2fc4d8916
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d8911
mov eax, 0
jmp 0x2fc4d8916
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d891c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d899a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d8991
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d8991
mov rax, qword [rbp - 8]
jmp 0x2fc4d89af
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d8964
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400012b0
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x60
mov rax, qword gs:[0x60]
mov qword [rsp + 0x70], rdi
mov rcx, qword [rax + 0x18]
mov rsi, qword [rcx + 0x18]
mov rbx, rsi
mov rbx, qword [rbx]
cmp qword [rbx + 0x30], 0
je 0x14000134f
mov rcx, qword [rbx + 0x60]
xor edx, edx
cmp word [rcx], dx
je 0x140001302
cmp rdx, 0x3f
jae 0x140001302
movzx eax, byte [rcx]
add rcx, 2
inc rdx
mov byte [rsp + rdx + 0x1f], al
cmp word [rcx], 0
jne 0x1400012e8
lea rcx, [rsp + 0x20]
mov byte [rsp + rdx + 0x20], 0
call qword [sym.imp.USER32.dll_CharLowerA]
or rcx, 0xffffffffffffffff
xor r8d, r8d
mov r11, rax
xor eax, eax
mov edx, 0x35
mov rdi, r11
repne scasb al, byte [rdi]
not rcx
dec rcx
je 0x14000134f
movsx eax, byte [r11]
inc r8d
lea edx, [rdx + rdx*2]
add edx, eax
movsxd rax, r8d
inc r11
cmp rax, rcx
jb 0x140001330
cmp edx, 0x35c206b
je 0x140001358
cmp rsi, rbx
jne 0x1400012d3
mov rax, qword [rbx + 0x30]
mov rdi, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rsi
ret

Function at 0x140001370
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
movsxd rax, dword [rcx + 0x3c]
xor ebx, ebx
mov ebp, edx
mov eax, dword [rax + rcx + 0x88]
mov rsi, rcx
mov r11d, dword [rax + rcx + 0x1c]
mov r9d, dword [rax + rcx + 0x20]
mov r13d, dword [rax + rcx + 0x24]
add r9, rcx
add r13, rcx
lea r12, [rcx + r11]
test r11d, r11d
je 0x140001415
nop dword [rax + rax]
mov r10d, dword [r9]
or rcx, 0xffffffffffffffff
xor eax, eax
add r10, rsi
xor r8d, r8d
mov edx, 0x35
mov rdi, r10
repne scasb al, byte [rdi]
not rcx
dec rcx
mov rdi, rcx
je 0x140001406
mov rcx, r10
nop word [rax + rax]
movsx eax, byte [rcx]
inc r8d
lea edx, [rdx + rdx*2]
add edx, eax
movsxd rax, r8d
inc rcx
cmp rax, rdi
jb 0x1400013f0
cmp edx, ebp
je 0x140001430
inc ebx
add r9, 4
cmp ebx, r11d
jb 0x1400013c0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
lea rcx, str.successfully_found___s____d_n
mov r8d, ebp
mov rdx, r10
call fcn.1400016d0
movzx eax, word [r13 + rbx*2]
mov eax, dword [r12 + rax*4]
add rax, rsi
jmp 0x140001417
Function at 0x140001460
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x30
mov rbp, rcx
call fcn.1400012b0
mov edx, 0xf0b03804
mov rcx, rax
mov rbx, rax
call fcn.140001370
mov edx, 0x1ac1e8e1
mov rcx, rbx
mov rdi, rax
call fcn.140001370
lea rcx, str.kernel32.dll
mov rsi, rax
call rdi
lea rdx, str.VirtualAlloc
mov rcx, rax
mov rbx, rax
call rsi
lea rdx, str.CreateThread
mov rcx, rbx
mov rdi, rax
call rsi
lea rdx, str.WaitForSingleObject
mov rcx, rbx
mov r12, rax
call rsi
xor r13d, r13d
mov r11, rbp
mov rsi, rax
mov r10d, r13d
mov r9d, r13d
lea r8, str.360dsb
nop
movsx ecx, byte [r9 + r8]
inc r9
mov eax, 0x4ac525d3
imul ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 0x2aaaaaab
imul edx, edx, 0x6d9
sub ecx, edx
imul r10d
add cl, 0x4f
xor byte [r11], cl
mov eax, edx
shr eax, 0x1f
add edx, eax
lea ecx, [rdx + rdx*2]
add ecx, ecx
cmp r10d, ecx
cmove r9, r13
inc r10d
inc r11
cmp r10d, 0x64000
jb 0x1400014f0
xor ecx, ecx
mov edx, 0x64000
mov r8d, 0x3000
lea r9d, [rcx + 0x40]
call rdi
mov r8d, 0x64000
mov rdx, rbp
mov rcx, rax
mov rbx, rax
call fcn.140006680
xor r9d, r9d
mov r8, rbx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r13d
call r12
or edx, 0xffffffff
mov rcx, rax
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r13
pop r12
pop rdi
jmp rax

Function at 0x140001ea0
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140001d10
Function at 0x140004c58
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x14000c550]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.140003fa0
xor ebx, ebx
cmp qword [0x14000de10], rbx
mov rdi, rax
jne 0x140004d6b
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140004e42
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140004e42
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14000de10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x14000de18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x14000de20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x14000de30], rax
test rax, rax
je 0x140004d62
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x14000de28], rax
jmp 0x140004d72
mov rax, qword [0x14000de28]
jmp 0x140004d79
mov rax, qword [0x14000de28]
mov r11, qword [0x14000de30]
cmp rax, rdi
je 0x140004de0
cmp r11, rdi
je 0x140004de0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x14000de30]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x140004de0
test rax, rax
je 0x140004de0
call rsi
test rax, rax
je 0x140004dda
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140004dda
test byte [rsp + 0x40], 1
jne 0x140004de0
bts ebp, 0x15
jmp 0x140004e20
mov rcx, qword [0x14000de18]
cmp rcx, rdi
je 0x140004e20
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140004e20
call rax
mov rbx, rax
test rax, rax
je 0x140004e20
mov rcx, qword [0x14000de20]
cmp rcx, rdi
je 0x140004e20
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140004e20
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14000de10]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140004e42
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x140004e44
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140005090
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140006ae3
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14000c550]
jne 0x1400050aa
rol rcx, 0x10
test cx, 0xffff
jne 0x1400050a6
repz ret
ror rcx, 0x10
jmp 0x140006a3c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14000df00]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14000dff8]
mov qword [rsp + 0x58], rax
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 0x140006ac1
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, [0x14000df00]
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 0x140006ae3
mov rax, qword [rsp + 0x88]
mov qword [0x14000dff8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14000df98], rax
mov rax, qword [0x14000dff8]
mov qword [0x14000de70], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14000df80], rax
mov dword [0x14000de60], 0xc0000409
mov dword [0x14000de64], 1
mov rax, qword [0x14000c550]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14000c558]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14000def8], eax
mov ecx, 1
call fcn.140006560
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14000a3d0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14000def8], 0
jne 0x140006b6a
mov ecx, 1
call fcn.140006560
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 0x2fc4d350c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d358a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d3581
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d3581
mov rax, qword [rbp - 8]
jmp 0x2fc4d359f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d3554
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14002f9f0]
mov dword [rax], 1
mov rax, qword [0x14002fa00]
mov dword [rax], 1
mov rax, qword [0x14002fa10]
mov dword [rax], 1
mov rax, qword [0x14002f9e0]
mov dword [rax], 1
mov rax, qword [0x14002f890]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014de
mov eax, 0
jmp 0x14000158b
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 0x14000150a
mov eax, 0
jmp 0x14000158b
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 0x140001530
cmp eax, 0x20b
je 0x140001557
jmp 0x140001586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001543
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001572
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140004dd6
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp - 8], 0
cmp qword [rbp + 0x18], 0
je 0x140004e06
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sym.nimCStrLen
mov rdx, rax
jmp 0x140004e0b
mov edx, 0
mov rax, qword [rbp + 0x18]
mov r9, qword [rbp + 0x10]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rcx, qword [rbp + 0x10]
call sym.fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14000ed6e
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp - 8], 0
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x18]
mov r9, qword [rbp + 0x10]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rcx, qword [rbp + 0x10]
call sym.fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret