joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2f1ac
Capabilities:
Map section object
Resolve function by parsing pe exports

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xc0
xor ebx, ebx
xor eax, eax
mov qword [r11 - 0x60], rdx
lea edi, [rbx + 1]
lea r9, [r11 - 0x80]
lea r8, [r11 - 0x70]
lea rcx, [r11 + 0x10]
mov edx, 0x100020
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], edi
mov qword [r11 + 0x20], rbx
mov qword [rsp + 0x50], rbx
mov dword [r11 - 0x70], 0x30
mov qword [r11 - 0x68], rbx
mov dword [r11 - 0x58], 0x40
mov qword [r11 - 0x50], rax
mov qword [r11 - 0x48], rax
call qword [sym.imp.ntoskrnl.exe_ZwOpenFile]
cmp eax, ebx
jge 0x2f223
xor eax, eax
jmp 0x2f388
mov rax, qword [rsp + 0x108]
lea r8, [rsp + 0x88]
lea rcx, [rsp + 0x110]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov edx, 0xf001f
mov dword [rsp + 0x28], 0x1000000
mov dword [rsp + 0x20], 0x10
mov qword [rsp + 0x98], rbx
call qword [sym.imp.ntoskrnl.exe_ZwCreateSection]
cmp eax, ebx
jge 0x2f27a
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x2f21c
mov rcx, qword [rsp + 0x110]
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x40], 0x100000
mov dword [rsp + 0x38], edi
lea rax, [rsp + 0x50]
lea r8, [rsp + 0x118]
mov qword [rsp + 0x30], rax
xor r9d, r9d
or rdx, 0xffffffffffffffff
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 0x3e8
call qword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
cmp eax, ebx
jge 0x2f2d7
mov rcx, qword [rsp + 0x110]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x2f26a
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov r13, qword [rsp + 0x118]
lea rdx, str.NtQueryVirtualMemory
movsxd rax, dword [r13 + 0x3c]
lea rcx, [rsp + 0x58]
mov edi, dword [rax + r13 + 0x88]
add rdi, r13
mov r14d, dword [rdi + 0x1c]
mov ebp, dword [rdi + 0x20]
mov r12d, dword [rdi + 0x24]
mov r15d, dword [rdi + 0x10]
add r14, r13
add rbp, r13
add r12, r13
call qword [sym.imp.ntoskrnl.exe_RtlInitString]
mov esi, ebx
cmp dword [rdi + 0x14], ebx
jbe 0x2f377
mov edx, dword [rbp]
lea rcx, [rsp + 0x68]
add rdx, r13
call qword [sym.imp.ntoskrnl.exe_RtlInitString]
movzx r11d, word [r12]
lea rdx, [rsp + 0x58]
lea eax, [r11 + r15 - 1]
lea rcx, [rsp + 0x68]
mov r8b, 1
mov ebx, dword [r14 + rax*4]
add rbx, r13
call qword [sym.imp.ntoskrnl.exe_RtlCompareString]
test eax, eax
je 0x2f377
inc esi
add rbp, 4
add r12, 2
cmp esi, dword [rdi + 0x14]
jb 0x2f32d
xor ebx, ebx
mov rcx, qword [rsp + 0x110]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rax, rbx
mov rbx, qword [rsp + 0x100]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x2f920
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, 0x1000
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rsi
cmp qword [0x00065b00], rdi
jne 0x2f960
call fcn.0002f480
cmp qword [0x00065b00], rdi
jne 0x2f960
call fcn.0002f6c0
jmp 0x2fa2f
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], esi
or rsi, 0xffffffffffffffff
lea r9, [rsp + 0x48]
lea rdx, [rsp + 0x40]
xor r8d, r8d
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
cmp eax, edi
jge 0x2f99a
xor eax, eax
jmp 0x2fa2f
mov r8, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
xor edx, edx
call fcn.000407c0
mov r11, qword [rsp + 0x40]
mov ecx, 0x500
lea rax, [r11 + 0x10]
mov qword [r11 + 8], rax
mov rax, qword [rsp + 0x40]
mov word [rax + 2], cx
mov rcx, rbx
call sub.ntoskrnl.exe_PsGetProcessSectionBaseAddress
cmp rax, rdi
je 0x2fa0d
mov r9, qword [rsp + 0x40]
mov r8d, 2
mov rdx, rax
mov rcx, rsi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0x510
call qword [0x00065b00]
cmp eax, edi
jl 0x2fa0d
mov rcx, qword [rsp + 0x40]
cmp word [rcx], di
je 0x2fa0d
call fcn.0002f528
jmp 0x2fa12
call fcn.0002f6c0
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x40]
mov r9d, 0x8000
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x6d008
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x40
and dword [rax + 0x18], 0
xor esi, esi
and qword [rax - 0x20], rsi
lea r9, [rax + 0x18]
xor r8d, r8d
lea rdx, [rax + 0x18]
lea edi, [rsi + 0xb]
mov ecx, edi
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov eax, dword [rsp + 0x60]
test eax, eax
jne 0x6d04b
xor eax, eax
jmp 0x6d102
lea edx, [rax + rax]
xor ecx, ecx
mov r8d, 0x5f4d5655
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
mov qword [rsp + 0x28], rax
test rax, rax
je 0x6d102
mov eax, dword [rsp + 0x60]
lea r8d, [rax + rax]
xor edx, edx
mov rcx, rbx
call fcn.000407c0
mov r8d, dword [rsp + 0x60]
add r8d, r8d
lea r9, [rsp + 0x60]
mov rdx, rbx
mov ecx, edi
call sub.ntoskrnl.exe_ZwQuerySystemInformation
test eax, eax
js 0x6d0e1
xor edi, edi
mov dword [rsp + 0x20], edi
cmp edi, dword [rbx]
jae 0x6d0e1
mov r12d, edi
imul r12, r12, 0x128
movzx eax, word [r12 + rbx + 0x2e]
add rax, r12
lea rcx, [rax + rbx + 0x30]
lea rdx, [0x0006db50]
call qword [sym.imp.ntoskrnl.exe__stricmp]
test eax, eax
jne 0x6d0d9
mov rsi, qword [r12 + rbx + 0x18]
mov qword [rsp + 0x30], rsi
jmp 0x6d0e1
inc edi
mov dword [rsp + 0x20], edi
jmp 0x6d0a0
jmp 0x6d0ef
test rbx, rbx
je 0x6d0ff
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r12
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
cmp rdx, r8
je 0x6d207
mov r11d, dword [rax + rcx + 0x8c]
mov dword [rsp + 0x60], r11d
mov esi, dword [rax + rcx + 0x88]
lea rax, [rcx + rsi]
mov r14d, dword [rax + 0x1c]
add r14, rcx
mov r13d, dword [rax + 0x24]
add r13, rcx
mov r12d, dword [rax + 0x20]
lea rdi, [rcx + r12]
mov qword [rsp + 0x10], rdi
mov r15d, dword [rax + 0x18]
mov r9d, dword [rax + 0x14]
mov dword [rsp + 0x68], r9d
mov edx, r8d
mov dword [rsp], edx
cmp edx, r12d
jae 0x6d214
mov r10d, edx
movsx eax, word [r13 + r10*2]
cmp edx, r15d
jae 0x6d203
cmp eax, r9d
jae 0x6d203
mov r9d, dword [r14 + rax*4]
cmp r9d, esi
jb 0x6d1ba
lea eax, [rsi + r11]
cmp r9d, eax
jb 0x6d1f7
mov eax, dword [rdi + r10*4]
add rax, rcx
mov rdi, rbx
sub rdi, rax
movzx r10d, byte [rax]
movzx r11d, byte [rax + rdi]
sub r10d, r11d
jne 0x6d1dd
inc rax
test r11d, r11d
jne 0x6d1c7
cmp r10d, r8d
jne 0x6d1ed
lea r8, [rcx + r9]
mov qword [rsp + 8], r8
jmp 0x6d214
mov r11d, dword [rsp + 0x60]
mov rdi, qword [rsp + 0x10]
inc edx
mov dword [rsp], edx
mov r9d, dword [rsp + 0x68]
jmp 0x6d190
xor eax, eax
jmp 0x6d221
mov r8d, dword [rax + rcx + 0x28]
add r8, rcx
mov qword [rsp + 8], r8
jmp 0x6d21e
mov rax, r8
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x6d460
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x150
mov rax, qword [0x0004b108]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rcx
lea rcx, [rsp + 0x20]
xor edi, edi
call qword [sym.imp.ntoskrnl.exe_RtlGetVersion]
cmp dword [rsp + 0x24], 5
mov rax, qword [0x000640b8]
jne 0x6d4ab
mov edi, 0x7d5e0000
test rax, rax
cmovne rdi, rax
jmp 0x6d4c0
cmp dword [rsp + 0x24], 6
jne 0x6d4c0
cmp dword [rsp + 0x28], 2
jae 0x6d4c0
mov edi, dword [0x7ffe036c]
test rdi, rdi
jne 0x6d4e1
mov ecx, dword [0x00063be0]
cmp ecx, 6
jb 0x6d4e1
cmp dword [0x00063be4], 2
jae 0x6d4de
cmp ecx, 6
jbe 0x6d4e1
mov rdi, rax
lea rdx, [0x0006db60]
mov rcx, rdi
call fcn.0006d240
lea rdx, [0x0006db80]
mov rcx, rdi
mov dword [rbx], eax
call fcn.0006d240
lea rdx, [0x0006db90]
mov rcx, rdi
mov dword [rbx + 4], eax
call fcn.0006d240
or rcx, 0xffffffffffffffff
lea rdx, [0x00064820]
mov dword [rbx + 8], eax
xor eax, eax
mov rdi, rdx
repne scasw ax, word [rdi]
lea eax, [rbx + 0x1c]
not rcx
mov dword [rbx + 0x10], eax
dec rcx
add cx, cx
mov word [rbx + 0xe], cx
mov word [rbx + 0xc], cx
movzx r8d, cx
mov ecx, eax
call fcn.00040300
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, str.DelayInitialize
lea rdx, str.DelayInitialize
repne scasb al, byte [rdi]
mov eax, dword [rbx + 0x10]
not rcx
dec rcx
movzx r8d, cx
mov word [rbx + 0x16], cx
mov word [rbx + 0x14], cx
movzx ecx, word [rbx + 0xc]
add eax, ecx
mov ecx, eax
mov dword [rbx + 0x18], eax
call fcn.00040300
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.00040240
mov rbx, qword [rsp + 0x168]
add rsp, 0x150
pop rdi
ret
Function at 0x6d5b0
Capabilities:
Allocate or change rwx memory
Attach user process memory
Execute shellcode via indirect call

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x80
mov r8d, dword [0x0004b100]
and qword [r11 + 0x18], 0
lea rax, [r11 + 0x20]
mov qword [r11 - 0x58], rax
mov rax, qword [0x00042018]
add r8d, 0x800
mov rdi, rcx
mov rcx, qword [rax]
add r8, 0xfff
and r8, 0xfffffffffffff000
mov rsi, rdx
mov byte [rsp + 0x28], 0
mov qword [r11 - 0x68], rcx
mov qword [r11 - 0x48], r8
mov rcx, rdi
mov r9d, 0x1f0fff
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
test eax, eax
js 0x6d70e
mov rcx, qword [rsp + 0xa8]
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0xa0]
xor r8d, r8d
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0x1000
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov rcx, qword [rsp + 0xa8]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ZwClose]
test ebx, ebx
js 0x6d70e
lea rdx, [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov r8d, dword [0x0004b100]
mov rcx, qword [rsp + 0xa0]
lea rdi, [0x00040140]
mov rdx, rdi
call fcn.00040300
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov edx, 0x58
xor ecx, ecx
mov r8d, 0x5f4d5655
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
and qword [rsp + 0x38], 0
mov rcx, qword [rsp + 0xa0]
mov rbx, rax
sub rcx, rdi
lea rax, [0x000401c0]
add rcx, rax
mov byte [rsp + 0x30], 1
lea r9, [0x00022260]
mov qword [rsp + 0x28], rcx
and qword [rsp + 0x20], 0
xor r8d, r8d
mov rcx, rbx
mov rdx, rsi
call fcn.00040646
mov rdx, qword [rsp + 0xa0]
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call sub.ntoskrnl.exe_KeInsertQueueApc
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x6d900
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x60
mov rdi, rcx
call fcn.00022374
call fcn.00022428
xor ebx, ebx
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x70]
mov edx, 0x20019
mov dword [rsp + 0x30], 0x30
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x48], ebx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbx
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, ebx
jl 0x6d9c0
mov esi, 0x10000
lea ecx, [rbx + 1]
mov rdx, rsi
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rcx, qword [rsp + 0x70]
lea r8d, [rbx + 2]
lea rdx, [0x00044ff0]
mov r9, rax
mov qword [rsp + 0x28], rbx
mov rdi, rax
mov dword [rsp + 0x20], esi
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov rcx, qword [rsp + 0x70]
lea r8d, [rbx + 2]
lea rdx, [0x00045000]
mov r9, rdi
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], esi
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea r12, [0x00064210]
mov edx, 0x200
mov rcx, r12
call fcn.00022478
cmp eax, ebx
je 0x6dacf
mov rcx, rbx
lea r8, [0x00064410]
movzx eax, word [rcx + r12]
mov word [rcx + r8], ax
add rcx, 2
cmp ax, bx
jne 0x6d9e6
xor eax, eax
or r10, 0xffffffffffffffff
mov rdi, r8
mov rcx, r10
lea r11d, [rax + 0x16]
lea rsi, [0x0006dbb0]
repne scasw ax, word [rdi]
mov rcx, r11
mov rdx, rbx
sub rdi, 2
lea r9, [0x0006dbe0]
rep movsw word [rdi], word [rsi]
lea rdi, [0x00064610]
movzx eax, word [rdx + r9]
mov word [rdx + rdi], ax
add rdx, 2
cmp ax, bx
jne 0x6da2e
xor eax, eax
mov rcx, r10
repne scasw ax, word [rdi]
xor ecx, ecx
movzx eax, word [r8 + rcx]
add rcx, 2
mov word [rdi + rcx - 4], ax
test ax, ax
jne 0x6da4a
mov rdx, rbx
lea r8, [0x00064820]
movzx eax, word [rdx + r12]
mov word [rdx + r8], ax
add rdx, 2
cmp ax, bx
jne 0x6da67
xor eax, eax
mov rdi, r8
mov rcx, r10
repne scasw ax, word [rdi]
lea rsi, [0x0006dbf0]
mov rcx, r11
sub rdi, 2
mov rdx, rbx
rep movsw word [rdi], word [rsi]
lea rdi, [0x00064a20]
movzx eax, word [rdx + r9]
mov word [rdx + rdi], ax
add rdx, 2
cmp ax, bx
jne 0x6daa0
xor eax, eax
mov rcx, r10
repne scasw ax, word [rdi]
xor ecx, ecx
movzx eax, word [r8 + rcx]
add rcx, 2
mov word [rdi + rcx - 4], ax
test ax, ax
jne 0x6dabc
lea rcx, [0x0006d72c]
call qword [0x00064200]
lea rcx, [0x00022158]
call qword [sym.imp.ntoskrnl.exe_PsSetLoadImageNotifyRoutine]
lea r11, [rsp + 0x60]
mov dword [0x000640ac], 1
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
Function at 0x26cc60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
add r11b, dl
mov qword [rsp + 0x10], rdi
and r11w, r14w
cmp si, r13w
sbb r9w, r10w
xor edi, edi
mov bh, 0xec
inc r9b
sets r11b
movzx ebx, r8b
movzx r8d, r12w
jmp 0x26cc95
mov r11, rcx
dec r9w
xchg r8b, r8b
mov r8, rdi
movsx r9w, r12b
nop
bswap r9w
movzx r9d, byte [r11]
movzx r10d, byte [rdx]
jmp 0x26ccb9
inc r11
jmp 0x26ccc1
inc rdx
test si, r9w
test ch, 0x74
test bl, bl
jmp 0x26ccd2
je 0x26cd00
mov ecx, r8d
stc
cwde
btc ax, ax
mov eax, 0x17c032f1
rol eax, cl
test r9w, di
jmp 0x26ccf2
add al, r8b
xor r9b, al
jmp 0x26ccfd
inc r8
test r9b, r9b
jmp 0x26cd08
je 0x26cd1c
cmp r9b, r10b
jmp 0x26cd16
je 0x26ccac
cmp r9b, r10b
jmp 0x26cd24
jae 0x26cd41
or eax, 0xffffffff
movsx bx, bh
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
jmp 0x26cd40
ret
mov rbx, qword [rsp + 8]
seta dil
movsx ax, r8b
mov rax, 0x3bb7e0b
not ah
mov eax, edi
mov dil, 0x94
xchg dil, dil
mov rdi, qword [rsp + 0x10]
jmp 0x26cd6a
ret

Function at 0x140003a30
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003a64
cmp word [rcx], 0x5a4d
jne 0x140003a64
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003a64
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003a64
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003970
test eax, eax
jne 0x140003a80
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.1400039e0
test rax, rax
je 0x140003a75
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.140004229
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140004130
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.1400040d0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140004ce0
Capabilities:
Parse pe header

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

Function at 0x140004db1
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140534330]
mov r8, rcx
mov rcx, r9
call fcn.140004ce0
test eax, eax
je 0x140004ddd
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140004d04
xor eax, eax
add rsp, 0x28
ret
Function at 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x140005490]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x1400054a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call sym._amsg_exit
jmp 0x14000123c
mov rax, qword [0x1400054a0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x1400054a0]
mov dword [rax], 1
mov rax, qword [0x1400054e0]
mov rdx, rax
mov rax, qword [0x1400054d0]
mov rcx, rax
call sym._initterm
jmp 0x14000123c
mov dword [0x140009024], 1
mov rax, qword [0x1400054a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x1400054c0]
mov rdx, rax
mov rax, qword [0x1400054b0]
mov rcx, rax
call sym._initterm
mov rax, qword [0x1400054a0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x140005490]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x1400053e0]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x1400053e0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call sym._pei386_runtime_relocator
mov rax, qword [sym._gnu_exception_handler]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x140005480]
mov qword [rdx], rax
lea rax, [sym.__mingw_invalidParameterHandler]
mov rcx, rax
call sym._set_invalid_parameter_handler
call sym._fpreset
mov eax, dword [0x140009004]
lea rdx, [0x140009008]
mov ecx, eax
call sym.duplicate_ppstrings
call sym.__main
mov rax, qword [0x140005410]
mov rax, qword [rax]
mov rdx, qword [0x140009010]
mov qword [rax], rdx
mov rcx, qword [0x140009010]
mov rdx, qword [0x140009008]
mov eax, dword [0x140009004]
mov r8, rcx
mov ecx, eax
call sym.main
mov dword [0x14000901c], eax
mov eax, dword [0x140009020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14000901c]
mov ecx, eax
call sym.exit
mov eax, dword [0x140009024]
test eax, eax
jne 0x14000136c
call sym._cexit
mov eax, dword [0x14000901c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140005440]
mov dword [rax], 1
mov rax, qword [0x140005450]
mov dword [rax], 1
mov rax, qword [0x140005460]
mov dword [rax], 1
mov rax, qword [0x140005400]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
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 0x1400013f5
mov eax, 0
jmp 0x140001476
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 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001a30
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 0x140002702
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140009168]
test eax, eax
je 0x14000279a
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 0x14000277e
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 0x140002772
cmp qword [rbp - 0x10], 0
je 0x140002772
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 0x140002738
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000279b
nop
add rsp, 0x30
pop rbp
ret