joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140010958
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.14000b81c
xor ebx, ebx
mov rdi, rax
cmp qword [0x140749670], rbx
jne 0x140010a5e
lea rcx, [0x140014888]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x140010b33
lea rdx, [0x140014878]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140010b33
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x140014868]
mov rcx, rsi
mov qword [0x140749670], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x140014850]
mov rcx, rsi
mov qword [0x140749678], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x140014830]
mov rcx, rsi
mov qword [0x140749680], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x140749690], rax
test rax, rax
je 0x140010a55
lea rdx, [0x140014818]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x140749688], rax
jmp 0x140010a65
mov rax, qword [0x140749688]
jmp 0x140010a6c
mov rax, qword [0x140749688]
mov r11, qword [0x140749690]
cmp rax, rdi
je 0x140010ad4
cmp r11, rdi
je 0x140010ad4
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x140749690]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x140010ad4
test rax, rax
je 0x140010ad4
call rsi
test rax, rax
je 0x140010ace
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 0x140010ace
test byte [rsp + 0x38], 1
jne 0x140010ad4
bts ebp, 0x15
jmp 0x140010b12
mov rcx, qword [0x140749678]
cmp rcx, rdi
je 0x140010b12
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140010b12
call rax
mov rbx, rax
test rax, rax
je 0x140010b12
mov rcx, qword [0x140749680]
cmp rcx, rdi
je 0x140010b12
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140010b12
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140749670]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140010b33
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x140010b35
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 0x140002a70
Capabilities:
Get common file path

Disassembly:
mov dword [rsp + 8], ecx
push rsi
push rdi
sub rsp, 0xe8
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x60], 0x32
mov edx, 0x32
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov eax, 2
imul rax, rax, 2
xor ecx, ecx
mov word [rsp + rax + 0x70], cx
mov dword [rsp + 0x64], 0
cmp dword [rsp + 0x100], 0
je 0x140002afb
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
sub qword [rsp + 0x48], 2
add qword [rsp + 0x48], 2
mov rax, qword [rsp + 0x48]
cmp word [rax], 0
jne 0x140002acf
mov rax, qword [rsp + 0x48]
lea rcx, str.Documents_and_SettingsDefault_User_sys
mov rdi, rax
mov rsi, rcx
mov ecx, 0x52
rep movsb byte [rdi], byte [rsi]
jmp 0x140002b35
lea rax, [rsp + 0x70]
mov qword [rsp + 0x50], rax
sub qword [rsp + 0x50], 2
add qword [rsp + 0x50], 2
mov rax, qword [rsp + 0x50]
cmp word [rax], 0
jne 0x140002b0b
mov rax, qword [rsp + 0x50]
lea rcx, [0x140020238]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x24
rep movsb byte [rdi], byte [rsi]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0x20
jne 0x140002b90
cmp dword [rsp + 0x44], 2
je 0x140002b90
cmp dword [rsp + 0x44], 0
jne 0x140002bfa
mov dword [rsp + 0x40], 1
cmp dword [rsp + 0x44], 2
jne 0x140002ba7
mov dword [rsp + 0x40], 0xb
cmp dword [rsp + 0x44], 0
je 0x140002bf2
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x140002bf2
mov dword [rsp + 0x40], 0
mov eax, dword [rsp + 0x40]
jmp 0x140002c11
mov dword [rsp + 0x40], 2
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x40]
add rsp, 0xe8
pop rdi
pop rsi
ret
Function at 0x140002c20
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x88
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r8d, dword [rsp + 0x90]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x140002c5c
xor eax, eax
jmp 0x140002dcb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x140002c78
xor eax, eax
jmp 0x140002dcb
mov rax, qword [rsp + 0x58]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx + rax + 0x50]
mov dword [rsp + 0x40], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, eax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x140002cf5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0xa
lea rdx, [rsp + 0x70]
mov ecx, eax
call fcn.14000b5b4
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140002dcb
mov qword [rsp + 0x68], 0
mov eax, dword [rsp + 0x40]
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x20], rcx
mov r9d, eax
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x140002d5a
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, 2
jmp 0x140002dcb
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [0x1400023b0]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
jne 0x140002dc6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x48], eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, 3
jmp 0x140002dcb
mov eax, 5
add rsp, 0x88
ret
Function at 0x1400071a0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x148
mov r8d, 0x114
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.140001e60
mov dword [rsp + 0x20], 0x114
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x24], 5
jne 0x1400071dc
mov eax, 1
jmp 0x1400071de
xor eax, eax
add rsp, 0x148
ret
Function at 0x1400082b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140008341
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x140008341
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140008341
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140008325
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x14000831f
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140008327
add rdx, 0x28
jmp 0x140008304
xor edx, edx
test rdx, rdx
jne 0x140008330
xor al, al
jmp 0x140008347
test dword [rdx + 0x24], 0x80000000
je 0x14000833d
xor al, al
jmp 0x140008347
mov al, 1
jmp 0x140008347
xor al, al
jmp 0x140008347
add rsp, 0x18
ret

Function at 0x140009a84
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x140009858
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140009858
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140009858
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140009858
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140009858
cmp dword [rcx + 0x84], 0xe
jbe 0x140009858
cmp dword [rcx + 0xf8], esi
je 0x140009858
mov ecx, r14d
call fcn.1400099a0
mov ecx, 2
call fcn.14000cbec
nop
cmp byte [0x140032a20], 0
jne 0x140009922
mov r15d, 1
mov eax, r15d
xchg dword [0x140032a10], eax
test ebx, ebx
jne 0x1400098cb
mov rdi, qword [0x140023018]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140032a18]
cmp rcx, rax
je 0x1400098c2
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.1400084d4]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140032c98]
jmp 0x1400098d7
cmp ebx, r15d
jne 0x1400098dd
lea rcx, [0x140032cb0]
call fcn.14000c448
nop
test ebx, ebx
jne 0x1400098f4
lea rdx, [0x1400183c8]
lea rcx, [0x1400183a8]
call fcn.14000be04
lea rdx, [0x1400183d8]
lea rcx, [0x1400183d0]
call fcn.14000be04
movzx eax, byte [0x140032a20]
test esi, esi
cmove eax, r15d
mov byte [0x140032a20], al
jmp 0x140009922
mov ecx, 2
call fcn.14000cc40
test esi, esi
jne 0x140009939
mov ecx, r14d
call fcn.140009954
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x1400097e8

Function at 0x140920068
Capabilities:
Encode data using xor

Disassembly:
push qword [rsp + 0x18]
popfq
lea rsp, [rsp + 0x20]
call fcn.1412aaa21
imul ebp, dword [rbp + 0x6d], 0xffffff9f
invalid
Function at 0x140001580
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x70
mov rbx, rcx
xor edx, edx
mov ecx, 0x5c
call fcn.140001570
lea edx, [rcx - 0x5b]
mov word [rsp + 0x40], ax
call fcn.140001570
lea ecx, [rdx + 0x2d]
mov word [rsp + 0x42], ax
lea edx, [rcx - 0x2c]
call fcn.140001570
lea ecx, [rdx + 0x5a]
mov word [rsp + 0x44], ax
lea edx, [rcx - 0x59]
call fcn.140001570
lea ecx, [rdx + 0x42]
mov word [rsp + 0x46], ax
lea edx, [rcx - 0x41]
call fcn.140001570
lea ecx, [rdx + 0x45]
mov word [rsp + 0x48], ax
lea edx, [rcx - 0x44]
call fcn.140001570
lea ecx, [rdx + 0x4c]
mov word [rsp + 0x4a], ax
lea edx, [rcx - 0x4b]
call fcn.140001570
lea ecx, [rdx + 0x3e]
mov word [rsp + 0x4c], ax
lea edx, [rcx - 0x3d]
call fcn.140001570
lea ecx, [rdx + 0x4f]
mov word [rsp + 0x4e], ax
lea edx, [rcx - 0x4e]
call fcn.140001570
xor ecx, ecx
mov word [rsp + 0x50], ax
lea edx, [rcx + 9]
call fcn.140001570
lea edx, [rcx + 0xa]
mov word [rsp + 0x52], ax
movzx ecx, word [0x14008252c]
call fcn.140001570
movzx ecx, word [0x14008252e]
mov edx, ntohl
mov word [rsp + 0x54], ax
call fcn.140001570
movzx ecx, word [0x140082530]
mov edx, recv
mov word [rsp + 0x56], ax
call fcn.140001570
movzx ecx, word [0x140082532]
mov edx, reloc.WS2_32.dll_listen
mov word [rsp + 0x58], ax
call fcn.140001570
movzx ecx, word [0x140082534]
mov edx, reloc.WS2_32.dll_ntohl
mov word [rsp + 0x5a], ax
call fcn.140001570
movzx ecx, word [0x140082536]
mov edx, reloc.WS2_32.dll_ntohs
mov word [rsp + 0x5c], ax
call fcn.140001570
movzx ecx, word [0x140082538]
mov edx, reloc.WS2_32.dll_recv
mov word [rsp + 0x5e], ax
call fcn.140001570
movzx ecx, word [0x14008253a]
mov edx, reloc.WS2_32.dll_recvfrom
mov word [rsp + 0x60], ax
call fcn.140001570
movzx ecx, word [0x14008253c]
mov edx, reloc.WS2_32.dll_select
mov word [rsp + 0x62], ax
call fcn.140001570
mov word [rsp + 0x64], ax
mov r9d, 0x133
xor eax, eax
mov word [rsp + 0x66], ax
xor r10d, r10d
nop word [rax + rax]
movsxd rcx, eax
lea rdx, [rsp + 0x40]
lea rdx, [rdx + rcx*2]
lea ecx, [r9 + rax]
inc eax
xor word [rdx], cx
cmp eax, 0x13
jb 0x140001700
mov qword [rsp + 0x30], r10
lea rcx, [rsp + 0x40]
xor r9d, r9d
mov dword [rsp + 0x28], r10d
mov edx, 0xc0000000
mov word [rsp + 0x66], r10w
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 8], rax
add rsp, 0x70
pop rbx
ret
Function at 0x1400035d0
Capabilities:
Execute command

Disassembly:
sub rsp, 0x28
lea rcx, str.Color_0D
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str._n_n______________________________________________________________________________n______________________________________________________________________________n__________________________________________________________________________n______________________________________________________________________________n___________________________________________________________________n_______________________________________________________________________________n_t_t_n__
call fcn.14000a980
mov rcx, qword [0x1400b3ac0]
mov edx, 7
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
Function at 0x1400048a0
Capabilities:
Create process on windows
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
cmp qword [rdx + 0x18], 7
mov rbx, rdx
mov rdi, rcx
mov r9, rdx
jbe 0x1400048c2
mov r9, qword [rdx]
cmp qword [rcx + 0x18], 7
mov r8, rdi
jbe 0x1400048cf
mov r8, qword [rcx]
mov ecx, WSAStartup
xor edx, edx
call fcn.140001570
lea ecx, [rdx + 0x75]
mov word [rsp + 0x30], ax
lea edx, [rcx - 0x74]
call fcn.140001570
lea ecx, [rdx + 0x6d]
mov word [rsp + 0x32], ax
lea edx, [rcx - 0x6c]
call fcn.140001570
lea ecx, [rdx + 0x5f]
mov word [rsp + 0x34], ax
lea edx, [rcx - 0x5e]
call fcn.140001570
lea ecx, [rdx + 0x70]
mov word [rsp + 0x36], ax
lea edx, [rcx - 0x6f]
call fcn.140001570
xor ecx, ecx
mov word [rsp + 0x38], ax
lea edx, [rcx + 5]
call fcn.140001570
lea edx, [rcx + 6]
mov word [rsp + 0x3a], ax
movzx ecx, word [0x14008297c]
call fcn.140001570
movzx ecx, word [0x14008297e]
mov edx, 7
mov word [rsp + 0x3c], ax
call fcn.140001570
movzx ecx, word [str.taskkill__f__im_Battle.net.exe]
mov edx, 8
mov word [rsp + 0x3e], ax
call fcn.140001570
movzx ecx, word [0x140082982]
mov edx, 9
mov word [rsp + 0x40], ax
call fcn.140001570
movzx ecx, word [0x140082984]
mov edx, 0xa
mov word [rsp + 0x42], ax
call fcn.140001570
mov word [rsp + 0x44], ax
mov r10d, 0x133
xor eax, eax
mov word [rsp + 0x46], ax
xor esi, esi
nop word [rax + rax]
movsxd rcx, eax
lea rdx, [rsp + 0x30]
lea rdx, [rdx + rcx*2]
lea ecx, [r10 + rax]
inc eax
xor word [rdx], cx
cmp eax, 0xb
jb 0x1400049b0
mov dword [rsp + 0x28], esi
lea rdx, [rsp + 0x30]
xor ecx, ecx
mov qword [rsp + 0x20], rsi
mov word [rsp + 0x46], si
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rdx, qword [rdi + 0x18]
cmp rdx, 7
jbe 0x140004a20
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140004a1b
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140004a89
mov rcx, r8
call fcn.140070238
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], 7
mov word [rdi], si
mov rdx, qword [rbx + 0x18]
cmp rdx, 7
jbe 0x140004a6a
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140004a65
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140004a89
mov rcx, r8
call fcn.140070238
mov qword [rbx + 0x10], rsi
mov word [rbx], si
mov rsi, qword [rsp + 0x78]
mov qword [rbx + 0x18], 7
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140004a90
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14008f080]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebp, ebp
mov rdi, rcx
cmp qword [rcx + 0x18], 7
mov dword [rsp + 0x40], ebp
jbe 0x140004ac1
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x10000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x140004b62
mov rdx, qword [rdi + 0x18]
cmp rdx, 7
jbe 0x140004b34
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140004b2f
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140004c0b
mov rcx, r8
call fcn.140070238
mov al, 1
mov word [rdi], bp
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rbp
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14006feb0
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
cmp rsi, 0xffffffffffffffff
jne 0x140004ba7
mov rdx, qword [rdi + 0x18]
cmp rdx, 7
jbe 0x140004ba3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140004b9e
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140004c0b
mov rcx, r8
call fcn.140070238
xor al, al
jmp 0x140004b36
lea r9, [rsp + 0x40]
mov qword [rsp + 0x68], rbx
mov r8d, 0x21400
mov qword [rsp + 0x20], rbp
lea rdx, [0x140091510]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rdi + 0x18]
test bl, bl
mov rbx, qword [rsp + 0x68]
jne 0x140004bf4
cmp rax, 7
jbe 0x140004ba3
lea rdx, [rax*2 + 2]
jmp 0x140004b7a
cmp rax, 7
jbe 0x140004b34
lea rdx, [rax*2 + 2]
jmp 0x140004b07
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140004c20
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14008f080]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebp, ebp
mov rdi, rcx
cmp qword [rcx + 0x18], 7
mov dword [rsp + 0x40], ebp
jbe 0x140004c51
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x10000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x140004cf2
mov rdx, qword [rdi + 0x18]
cmp rdx, 7
jbe 0x140004cc4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140004cbf
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140004d9b
mov rcx, r8
call fcn.140070238
mov al, 1
mov word [rdi], bp
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rbp
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14006feb0
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
cmp rsi, 0xffffffffffffffff
jne 0x140004d37
mov rdx, qword [rdi + 0x18]
cmp rdx, 7
jbe 0x140004d33
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140004d2e
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140004d9b
mov rcx, r8
call fcn.140070238
xor al, al
jmp 0x140004cc6
lea r9, [rsp + 0x40]
mov qword [rsp + 0x68], rbx
mov r8d, 0x2400
mov qword [rsp + 0x20], rbp
lea rdx, [0x14008f110]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rdi + 0x18]
test bl, bl
mov rbx, qword [rsp + 0x68]
jne 0x140004d84
cmp rax, 7
jbe 0x140004d33
lea rdx, [rax*2 + 2]
jmp 0x140004d0a
cmp rax, 7
jbe 0x140004cc4
lea rdx, [rax*2 + 2]
jmp 0x140004c97
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140005e20
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push r14
mov r14, rcx
mov rsi, r8
mov rbp, rdx
sub r14, qword [r8 + 0x30]
je 0x140005fa2
test byte [r8 + 0x5e], 0x40
jne 0x140005e4d
xor eax, eax
mov rbp, qword [rsp + 0x30]
pop r14
pop rsi
ret
movzx edx, word [rsi + 0x14]
movzx eax, word [rsi + 6]
add rdx, 0x18
mov r8d, dword [r8 + 0xb0]
add rdx, rsi
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
cmp rdx, r9
jae 0x140005fa2
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140005e86
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140005e9d
add rdx, 0x28
cmp rdx, r9
jb 0x140005e74
mov eax, 1
mov rbp, qword [rsp + 0x30]
pop r14
pop rsi
ret
mov qword [rsp + 0x18], rbx
mov ebx, dword [rdx + 0x14]
sub rbx, rcx
mov qword [rsp + 0x28], r15
mov r15d, dword [rsi + 0xb4]
add rbx, r8
add rbx, rbp
add r15, rbx
test rbx, rbx
je 0x140005f98
cmp rbx, r15
jae 0x140005f98
mov qword [rsp + 0x20], rdi
mov eax, dword [rbx + 4]
test eax, eax
je 0x140005f93
add eax, 0xfffffff8
shr eax, 1
je 0x140005f84
lea r11, [rbx + 8]
mov edi, eax
movzx r8d, word [r11]
movzx eax, r8w
shr ax, 0xc
and r8d, 0x80000fff
jge 0x140005f12
dec r8d
or r8d, 0xfffff000
inc r8d
cmp ax, 3
je 0x140005f1e
cmp ax, 0xa
jne 0x140005f76
movzx eax, word [rsi + 0x14]
movzx ecx, word [rsi + 6]
add rax, 0x18
mov r9d, dword [rbx]
add rax, rsi
lea rdx, [rcx + rcx*4]
lea r10, [rax + rdx*8]
cmp rax, r10
jae 0x140005f6b
nop dword [rax]
mov edx, dword [rax + 0xc]
cmp r9, rdx
jb 0x140005f52
mov ecx, dword [rax + 8]
add ecx, edx
cmp r9, rcx
jb 0x140005f5d
add rax, 0x28
cmp rax, r10
jb 0x140005f40
jmp 0x140005f6b
mov ecx, dword [rax + 0x14]
sub rcx, rdx
add rcx, r9
add rcx, rbp
jne 0x140005f6e
mov rcx, rbp
movzx eax, r8w
add qword [rax + rcx], r14
add r11, 2
sub rdi, 1
jne 0x140005ef0
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, r15
jb 0x140005ed4
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x18]
mov r15, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov eax, 1
pop r14
pop rsi
ret