joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000362c
Capabilities:
Encode data using xor

Disassembly:
mov dword [rsp + 0x5c], 0
jmp 0x1400035f1
test dword [rax], eax
add byte [rax], al
mov ax, word [rsp + 0x44]
xor ax, 0x68ed
mov word [rsp + 0x76], ax
mov rax, qword [rsp + 0xb8]
add rsp, 0xc8
pop rbx
pop rsi
ret
mov al, byte [rsp + 0x47]
or al, al
mov byte [rsp + 0x9f], al
mov rcx, qword [rsp + 0x78]
add rcx, 0xfffffffffffffff0
mov qword [rsp + 0xb8], rcx
jmp 0x14000356c
invalid
mov eax, dword [rsp + 0x5c]
mov ecx, eax
mov edx, ecx
mov r8, qword [rsp + 0x80]
mov r9w, word [r8 + rdx*2]
mov r10w, r9w
add r10w, 0xffbf
mov r11w, r9w
add r11w, 0x20
cmp r10w, 0x1a
cmovb r9w, r11w
mov r8, qword [rsp + 0x48]
cmp word [r8 + rdx*2], r9w
sete bl
and bl, 1
mov byte [rsp + 0x8f], bl
mov r10w, word [rsp + 0x44]
xor r10w, 0xffff
mov bl, byte [rsp + 0x8f]
add byte [rax], al
add byte [rbx + 0x4c8b01c0], al
and al, 0x58
cmp r9w, 0
setne sil
and bl, sil
mov word [rsp + 0x76], r10w
cmp eax, ecx
setb sil
and bl, sil
mov dword [rsp + 0x5c], eax
test bl, 1
jne 0x1400035f1
jmp 0x140003773
movabs rax, 0x1a1e114c715c1fa2
mov rcx, qword [rsp + 0xc0]
mov qword [rsp + 0x78], rcx
mov dx, word [rsp + 0x44]
add dx, 0x4aa2
add edx, 0x89664aa2
push rsp
and al, 0x76
mov rcx, qword [rsp + 0x78]
mov r8d, dword [rsp + 0x2c]
xor r8d, 0x282cadb6
mov dword [rsp + 0x70], r8d
mov rcx, qword [rcx + 0x50]
mov qword [rsp + 0x90], 0x4355b145
mov qword [rsp + 0x80], rcx
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x90], rax
mov rax, qword [rcx + 0x20]
mov byte [rsp + 0x9f], 0xe0
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x30]
xor rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0xa0]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x50]
cmp rcx, rax
sete r9b
mov r10b, byte [rsp + 0x6f]
mov byte [rsp + 0x9f], 0xea
mov r11b, byte [rsp + 0x47]
sub r11b, 0xaa
and r10b, r9b
mov byte [rsp + 0x9f], r11b
test r10b, 1
jne 0x1400035ce
mov qword [rsp + 0x90], 0x1975387b
mov rax, qword [rsp + 0x78]
mov cx, word [rax + 0x48]
shr cx, 1
movzx edx, cx
mov dword [rsp + 0x58], edx
cmp cx, 0
je 0x1400037f9
jmp 0x14000355f
mov rax, qword [rsp + 0xa0]
mov cl, byte [rsp + 0x8f]
mov qword [rsp + 0xb8], rax
test cl, 1
jne 0x14000356c
jmp 0x1400037f9
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0xb0]
mov rax, qword [rax]
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0xb8], 0
cmp rax, rcx
je 0x14000356c
jmp 0x14000367f
Function at 0x14000b9fc
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140016950], eax
call fcn.14000b77c
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140016950], 0
jne case.default.0x14000ba52
mov ecx, 1
call fcn.14000b77c
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
invalid
or edi, dword [rax + 0x6c]
cmp al, 0xde
jmp 0x140023301
Function at 0x1400705ae
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140105410
mov rax, rcx
neg rcx
test rax, 7
je 0x14010542d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x140105488
test al, 7
jne 0x140105420
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x140105441
mov rdx, qword [rax - 8]
test dl, dl
je 0x1401054b2
test dh, dh
je 0x1401054ac
shr rdx, 0x10
test dl, dl
je 0x1401054a6
test dh, dh
je 0x1401054a0
shr rdx, 0x10
test dl, dl
je 0x14010549a
test dh, dh
je 0x140105494
shr edx, 0x10
test dl, dl
je 0x14010548e
test dh, dh
jne 0x140105441
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x1400708d3
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140090b90
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140090510
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140090bcf
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401ee020]
jmp 0x140090bd9
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x140070a1d
Capabilities:
Query environment variable

Disassembly:
jmp 0x14011ff50
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14011fd80
lea rcx, [rsp + 0x40]
call fcn.14011ff00
movzx eax, al
test eax, eax
jne 0x14011ff98
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.14011fdb0
mov rax, qword [rsp + 0x70]
jmp 0x140120169
lea rcx, [rsp + 0x40]
call fcn.14011fed0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.14011fe70
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.14011fed0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.140071431
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14012003e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.14011fdb0
mov rax, qword [rsp + 0x80]
jmp 0x140120169
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1400707d4
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400706b2
lea rcx, [rsp + 0x48]
call fcn.14007038d
movzx eax, al
test eax, eax
jne 0x1401200a5
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.14006f76c
lea rcx, [rsp + 0x40]
call fcn.14011fdb0
mov rax, qword [rsp + 0x88]
jmp 0x140120169
lea rcx, [rsp + 0x48]
call fcn.140070cd4
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.14011fed0
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.140071431
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14012013b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.14006f76c
lea rcx, [rsp + 0x40]
call fcn.14011fdb0
mov rax, qword [rsp + 0xa0]
jmp 0x140120169
lea rcx, [rsp + 0x48]
call fcn.14007068f
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.14006f76c
lea rcx, [rsp + 0x40]
call fcn.14011fdb0
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret

Function at 0x140070a2c
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140090ac0
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.140090490
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140090b01
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401ee020]
jmp 0x140090b07
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret
Function at 0x140070aa9
Capabilities:
Get geographical location

Disassembly:
jmp 0x140109e50
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.140108d80
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140109eb7
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x1401ee030]
jmp 0x140109ed9
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.140070338
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret

Function at 0x140070abd
Capabilities:
Terminate process

Disassembly:
jmp 0x140079730
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140070c84
Capabilities:
Print debug messages

Disassembly:
jmp 0x14013e970
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x1401db398]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x14013e996
jmp 0x14013ea13
mov rcx, qword [rbp + 0x30]
call fcn.1400705ae
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x14013e9af
jmp 0x14013ea13
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14013e9cc
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.14006f8b1
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.14006fc67
test eax, eax
jne 0x14013ea13
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.140070766
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x1400710f8
Capabilities:
Parse pe header

Disassembly:
jmp 0x140077e00
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140077e20
xor al, al
jmp 0x140077ea1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140077e33
xor al, al
jmp 0x140077ea1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140077e5d
xor al, al
jmp 0x140077ea1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140077e71
xor al, al
jmp 0x140077ea1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140077e83
xor al, al
jmp 0x140077ea1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140077e9f
xor al, al
jmp 0x140077ea1
mov al, 1
add rsp, 0x38
ret
Function at 0x140071328
Capabilities:
Allocate or change rwx memory
Execute shellcode via windows callback function

Disassembly:
jmp 0x140075a40
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x22
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1a8]
lea rcx, [0x1401ed0a2]
call fcn.140072052
mov qword [rbp + 8], 0
mov dword [rbp + 0x24], 0
mov qword [rbp + 0x48], 0
mov r9d, 4
mov r8d, 0x3000
mov rdx, qword [rbp + 0x168]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140075acd
lea rcx, [0x140158060]
call fcn.1400706e4
xor eax, eax
jmp 0x140075b60
mov r8, qword [rbp + 0x168]
mov rdx, qword [rbp + 0x160]
mov rcx, qword [rbp + 8]
call fcn.14007076b
lea r9, [rbp + 0x24]
mov r8d, 0x40
mov rdx, qword [rbp + 0x168]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x64], 0
jne 0x140075b18
lea rcx, [0x140158078]
call fcn.1400706e4
xor eax, eax
jmp 0x140075b60
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rbp + 8]
xor edx, edx
lea rcx, [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_CreateTimerQueueTimer]
test eax, eax
jne 0x140075b60
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____CreateTimerQueueTimer_Failed_With_Error_:__d__n
call fcn.1400706e4
mov eax, 0xffffffff
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x140158030]
call fcn.1400717ce
mov rax, rdi
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret
Function at 0x1400715bc
Capabilities:
Terminate process

Disassembly:
jmp 0x140105e00
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x140105e2e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.140071cd3
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140071d32
Capabilities:
Print debug messages

Disassembly:
jmp 0x140117bc0
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x140071dd7
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140090c00
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140090550
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140090c49
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401ee020]
jmp 0x140090c58
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x140071e6d
Capabilities:
Set environment variable

Disassembly:
jmp 0x140141820
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.14007021b
lea rcx, [rsp + 0x48]
call fcn.14007021b
call fcn.1400709d2
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.140070045
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14014188f
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.1400704e6
lea rcx, [rsp + 0x78]
call fcn.1400704e6
mov eax, dword [rsp + 0x24]
jmp 0x140141920
call fcn.1400709d2
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.140070045
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x1401418d6
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.1400704e6
lea rcx, [rsp + 0x78]
call fcn.1400704e6
mov eax, dword [rsp + 0x2c]
jmp 0x140141920
lea rcx, [rsp + 0x48]
call fcn.1400701a3
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.1400701a3
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.1400704e6
lea rcx, [rsp + 0x78]
call fcn.1400704e6
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x14012f780
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.14006f8b1
sub rsp, rax
mov rax, qword [0x1401db398]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1401ddde0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x14012f972
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x14012f8c6
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x14012f8c6
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x14012f8ab
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x14012f848
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14012f932
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14012f991
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x14012f96d
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14012f991
jmp 0x14012f81e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140070766
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x14012fa40
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.14006f8b1
sub rsp, rax
mov rax, qword [0x1401db398]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1401ddde0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x14012fc4d
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x14012fb99
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x14012fb99
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x14012fb79
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x14012fb08
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14012fc0d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14012fc6c
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x14012fc48
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14012fc6c
jmp 0x14012fade
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140070766
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140001d40
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call fcn.140002290
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.140002290
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3

Function at 0x1400023b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x140006008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14000241c
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000241c
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14000241c
movzx edx, word [rax + 6]
test edx, edx
je 0x14000241c
sub rcx, qword [0x140006008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140002408
add rax, 0x28
dec edx
je 0x14000241c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140002400
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140002400
jmp 0x14000241e
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x140006008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x140002455
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x140002455
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x140002455
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x1400024d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400024fc
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400024fc
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x1400024fe
xor eax, eax
ret

Function at 0x14000a9ec
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000aa38
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000aa30
cmp dword [rcx + 0x3c], edx
jl 0x14000aa30
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14000aa30
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000aa38
mov rax, rdx
add rsp, 0x18
ret