joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180013920
Capabilities:
Terminate process

Disassembly:
push rbx
push rbp
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1070
call fcn.18001d500
sub rsp, rax
mov rax, qword [0x1800760b0]
xor rax, rsp
mov qword [rsp + 0x1060], rax
xor r13d, r13d
mov ebp, 0xff
mov r15d, r8d
sub bpl, byte [rcx]
mov qword [rsp + 0x30], rdx
mov rbx, rcx
lea rdi, [rcx + 1]
mov r14d, r13d
cmp r8d, 0x1000
jbe 0x18001399b
mov ecx, r15d
call fcn.18001a080
mov r14, rax
test rax, rax
jne 0x180013996
lea rdx, str.7p4lZIVVm5QrtbBKZt9XeU4lyjDQSHjjp5v8WMGUOYM_qhlb_3SDyQ
xor ecx, ecx
call fcn.180011fa0
xor eax, eax
jmp 0x180013acb
mov r12, rax
jmp 0x1800139a0
lea r12, [rsp + 0x60]
xor ecx, ecx
mov rdx, rbx
mov qword [rsp + 0x10c8], rsi
lea r8d, [rcx + 1]
call fcn.180013c00
mov esi, r13d
movzx ecx, ax
test r15d, r15d
je 0x180013a07
sub r12, rdi
lea rdx, [0x180052c80]
nop dword [rax + rax]
movzx eax, bpl
mov r8d, 1
movzx ebx, byte [rax + rdx]
mov rdx, rdi
xor bl, byte [rdi]
mov byte [r12 + rdi], bl
call fcn.180013c00
inc rdi
movzx ecx, ax
test bl, bl
je 0x180013a07
inc esi
inc bpl
lea rdx, [0x180052c80]
cmp esi, r15d
jb 0x1800139d0
mov r8d, 2
mov rdx, rdi
call fcn.180013c00
mov rsi, qword [rsp + 0x10c8]
test ax, ax
je 0x180013a3b
test r14, r14
je 0x180013a2f
mov rcx, r14
call fcn.18001b768
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rax, qword [0x180079aa8]
test rax, rax
jne 0x180013a8a
mov rcx, qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.180015880
lea rdx, [rsp + 0x38]
lea rcx, [0x180074468]
mov r8d, 0x20
mov rbx, rax
call fcn.180013540
mov rcx, rbx
mov rdx, rax
call fcn.180014780
test rax, rax
cmove rax, qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov qword [0x180079aa8], rax
mov rcx, qword [rsp + 0x30]
mov dword [rsp + 0x28], r15d
or r9d, 0xffffffff
mov qword [rsp + 0x20], rcx
xor ecx, ecx
xor edx, edx
test r14, r14
je 0x180013ab7
mov r8, r14
call rax
mov rcx, r14
mov ebx, eax
call fcn.18001bc40
jmp 0x180013ac0
lea r8, [rsp + 0x60]
call rax
mov ebx, eax
test ebx, ebx
je 0x180013ac8
lea r13d, [rbx - 1]
mov eax, r13d
mov rcx, qword [rsp + 0x1060]
xor rcx, rsp
call fcn.18001a840
add rsp, 0x1070
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret
Function at 0x180013af0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
test rcx, rcx
je 0x180013bee
cmp byte [rcx], 0
je 0x180013bee
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], r14
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
call fcn.18001d848
call fcn.18001d81c
mov edx, 0xff
sub dl, al
xor ecx, ecx
mov esi, eax
mov byte [rbx], dl
lea r8d, [rcx + 1]
mov rdx, rbx
call fcn.180013c00
movzx ecx, sil
inc rbx
lea r14, [0x180052c80]
mov r8d, 1
mov rdx, rbx
movzx ecx, byte [rcx + r14]
xor cl, byte [rdi]
mov byte [rbx], cl
movzx ecx, ax
call fcn.180013c00
cmp byte [rdi], 0
mov ebp, 2
movzx r9d, ax
je 0x180013bc2
sub rdi, rbx
nop word [rax + rax]
inc rbx
inc sil
mov r8d, 1
movzx ecx, sil
mov rdx, rbx
movzx eax, byte [rcx + r14]
movzx ecx, r9w
xor al, byte [rdi + rbx]
mov byte [rbx], al
call fcn.180013c00
inc ebp
cmp byte [rdi + rbx], 0
movzx r9d, ax
jne 0x180013b90
mov r14, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
movzx eax, r9w
shr ax, 8
mov byte [rbx + 1], al
lea eax, [rbp + 2]
mov rbp, qword [rsp + 0x30]
mov byte [rbx + 2], r9b
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
xor eax, eax
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x180013c00
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
xor eax, eax
mov r9, rdx
cmp ax, r8w
jae 0x180013c58
mov qword [rsp], rbx
movzx r10d, r8w
mov r11d, 0xff
lea rbx, [0x180052d80]
movzx eax, byte [r9]
movzx r8d, cx
lea r9, [r9 + 1]
shr r8w, 8
xor r8w, ax
movzx eax, cx
and r8w, r11w
shl ax, 8
movzx edx, r8w
movzx ecx, word [rbx + rdx*2]
xor cx, ax
dec r10
jne 0x180013c24
mov rbx, qword [rsp]
movzx eax, cx
add rsp, 8
ret
Function at 0x180014580
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov r11, rsp
push rdi
push r15
sub rsp, 0x1e8
mov rax, qword [0x1800760b0]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov r10, qword [0x180079ad0]
mov qword [r11 + 0x18], rbx
xor ebx, ebx
mov qword [r11 - 0x18], rbp
mov rdi, rdx
mov r15, rcx
mov qword [rsp + 0x20], rbx
test r10, r10
jne 0x18001467e
movdqa xmm0, xmmword [str.LdrGetProcedureA_]
mov rcx, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [r11 - 0x20], rsi
mov qword [r11 - 0x28], r14
mov dword [rsp + 0x50], 0x65726464
mov word [rsp + 0x54], 0x7373
movdqa xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x56], bl
call fcn.180015880
movsxd rcx, dword [rax + 0x3c]
mov r11, rax
mov edx, dword [rcx + rax + 0x88]
add rdx, rax
mov r14d, dword [rdx + 0x1c]
mov r9d, dword [rdx + 0x20]
mov r10d, dword [rdx + 0x24]
mov esi, dword [rdx + 0x18]
add r14, rax
add r9, rax
add r10, rax
test esi, esi
je 0x180014667
nop word [rax + rax]
mov r8d, dword [r9]
movzx ebp, word [r10]
lea rax, [rsp + 0x40]
add r8, r11
sub r8, rax
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x180014655
inc rax
test ecx, ecx
jne 0x180014642
test edx, edx
je 0x1800146c3
inc ebx
add r10, 2
add r9, 4
cmp ebx, esi
jb 0x180014630
mov r10, qword [0x180079ad0]
mov rsi, qword [rsp + 0x1d8]
mov r14, qword [rsp + 0x1d0]
mov rax, qword [0x18007a628]
mov rbp, qword [rsp + 0x1e0]
mov rbx, qword [rsp + 0x210]
test rax, rax
cmovne r10, rax
mov rax, rdi
shr rax, 0x20
mov qword [0x180079ad0], r10
test eax, eax
jne 0x1800146cc
mov eax, edi
shr eax, 0x10
test ax, ax
jne 0x1800146cc
movzx r8d, di
xor edx, edx
jmp 0x180014749
mov r10d, dword [r14 + rbp*4]
add r10, r11
jmp 0x18001466e
lea rax, [rsp + 0xb0]
mov r9d, 0x104
mov r8, rdi
sub r8, rax
mov edx, r9d
lea rcx, [rsp + 0xb0]
nop dword [rax + rax]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x180014711
movzx eax, byte [r8 + rcx]
test al, al
je 0x180014711
mov byte [rcx], al
inc rcx
dec rdx
jne 0x1800146f0
jmp 0x180014716
test rdx, rdx
jne 0x180014719
dec rcx
mov byte [rcx], 0
or rax, 0xffffffffffffffff
inc rax
cmp byte [rdi + rax], 0
jne 0x180014720
mov word [rsp + 0x28], ax
lea rax, [rsp + 0xb0]
mov word [rsp + 0x2a], r9w
xor r8d, r8d
lea rdx, [rsp + 0x28]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x20]
mov rcx, r15
call r10
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.18001a840
add rsp, 0x1e8
pop r15
pop rdi
ret
Function at 0x180015810
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1800760b0]
xor rax, rsp
mov qword [rsp + 0x50], rax
movzx eax, byte [0x18007a36a]
test al, al
jne 0x180015866
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x48]
mov cl, 1
cmp eax, 2
je 0x18001585d
nop dword [rax]
nop dword [rax + rax]
inc cl
mov edx, 1
shl edx, cl
cmp edx, eax
jne 0x180015850
mov byte [0x18007a36a], cl
movzx eax, cl
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18001a840
add rsp, 0x68
ret

Function at 0x180015880
Capabilities:
Parse pe header

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x60
mov rax, qword [0x1800760b0]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor eax, eax
mov rbx, rcx
mov qword [r11 - 0x48], 0
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x20], rax
mov rax, qword [0x18007a3e0]
mov r8d, 0x30
lea rdx, [r11 - 0x48]
test rax, rax
je 0x1800158d4
call rax
mov eax, eax
jmp 0x1800158da
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800158fe
cmp dword [rsp + 0x48], 0x1000000
je 0x1800158fe
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18001a840
add rsp, 0x60
pop rbx
ret
mov qword [rsp + 0x80], rsi
call fcn.180015810
movzx esi, al
mov ecx, esi
shr rbx, cl
movzx ecx, al
shl rbx, cl
test rbx, rbx
je 0x1800159e6
mov edx, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1800159e6
mov qword [rsp + 0x78], rbp
mov ebp, 0x5a4d
mov qword [rsp + 0x88], rdi
nop word [rax + rax]
mov edx, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x180015988
cmp word [rbx], bp
jne 0x180015988
movsxd rdi, dword [rbx + 0x3c]
mov edx, 0x108
add rdi, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x180015988
cmp dword [rdi], 0x4550
je 0x1800159e1
mov ecx, esi
mov eax, 1
shl rax, cl
sub rbx, rax
je 0x1800159a9
mov edx, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x180015950
lea rdx, str.Qi1GnqygDnaupI2XKp9yUHvaXFwqiRkj45FSQrL_zVNAmSvWyByCP9hAeOOutEdUkoEPhMPD_A
xor ecx, ecx
call fcn.180011fa0
xor eax, eax
mov rdi, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18001a840
add rsp, 0x60
pop rbx
ret
mov rax, rbx
jmp 0x1800159b9
lea rdx, str.RsycZQYTbYyEoQ9XpIiZlSu7dnxm9116Ia0ONMzUT16b_9FZVd040cUdwzzQQSrnuaNpXGsMA
xor ecx, ecx
call fcn.180011fa0
xor eax, eax
jmp 0x1800159c6
Function at 0x180015bf0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x180015c11
mov eax, 0x5a4d
cmp word [rcx], ax
je 0x180015c18
lea rdx, str.oQLsRzGKflKPPemsnNVjZcdi8Yg1xrYSX7gd_4nGgM82uEnpEpZ0GDkDsrj3TsEyw
xor ecx, ecx
call fcn.180011fa0
xor eax, eax
add rsp, 0x28
ret
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
je 0x180015c3a
lea rdx, str.pGf75h7WbDWMOcFJPcSju1BygJ82t4ss5EzQS2HlO9kXGjQa7q81uVhF1Ej_fK9d
xor ecx, ecx
call fcn.180011fa0
xor eax, eax
add rsp, 0x28
ret
mov edx, dword [rax + rcx + 0x88]
test edx, edx
jne 0x180015c5a
lea rdx, str.pGf75h7WbDWMOcFJPcSju1BygJ82t4sr5RrUX3juaeNjTiYR5aQIoy1CVQ
xor ecx, ecx
call fcn.180011fa0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rdx + rcx + 0xc]
add rax, rcx
add rsp, 0x28
ret

Function at 0x1800163b0
Capabilities:
Get system information on windows

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x70
mov qword [r11 - 0x48], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov rax, qword [0x1800760b0]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdi, rcx
mov qword [r11 - 0x58], rcx
xor eax, eax
mov qword [rcx + 0x50], rax
mov qword [rcx + 0x58], rax
mov qword [rcx + 0x60], rax
mov qword [rcx + 0x68], rax
mov qword [rcx + 0x70], rax
xor esi, esi
mov dword [rcx + 0x78], esi
mov dword [rcx + 0x7c], esi
lea rbx, [rcx + 0x80]
mov qword [r11 - 0x50], rbx
mov qword [rbx], rsi
mov qword [rbx + 8], rsi
mov rcx, rbx
call fcn.180016600
mov qword [rbx], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov qword [rdi + 0x28], rsi
mov dword [rdi + 0x30], esi
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [rsp + 0x3c]
mov dword [rdi + 0x34], ecx
mov ecx, dword [rsp + 0x60]
mov dword [rdi + 0x38], ecx
mov qword [rdi + 0x48], rsi
mov qword [rdi + 0x40], rsi
mov rax, rdi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.18001a840
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x180022e54
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x180022e67
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x20]
movzx edx, ax
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.18002bd28
lea rdx, [0x180071f78]
lea rcx, [rsp + 0x20]
call fcn.18001cca0
int3
Function at 0x18003b804
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x1800804fc]
xor edx, edx
jmp fcn.180022e54

Function at 0x18003c1a8
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x1800804fc]
jmp fcn.180022e54

Function at 0x18003c2c8
Capabilities:
Get thread local storage value

Disassembly:
mov rcx, qword [rcx + 0x40]
jmp 0x180049e44
mov rax, rsp
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rax - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov r13, r9
mov r12, r8
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov qword [rax + 8], rcx
call fcn.18002ba80
nop
mov edi, dword [rbx + 4]
mov esi, dword [rbx + 4]
dec esi
mov eax, dword [rbx]
cmp esi, eax
jl 0x180049e1e
lea ebp, [rsi + 1]
movsxd r15, esi
movsxd rcx, dword [rbx + 8]
and rcx, r15
mov rax, qword [rbx + 0x20]
mov r14, qword [rax + rcx*8]
test r14, r14
je 0x180049e14
mov rdx, r12
mov rcx, r14
call qword [rsp + 0x78]
test al, al
je 0x180049e14
mov rdx, r12
mov rcx, r14
call r13
test al, al
je 0x180049e14
cmp ebp, edi
jne 0x180049e04
dec edi
jmp 0x180049e14
movsxd rcx, dword [rbx + 8]
and rcx, r15
mov rax, qword [rbx + 0x20]
and qword [rax + rcx*8], 0
dec esi
dec ebp
mov eax, dword [rbx]
cmp esi, eax
jge 0x180049dca
xchg dword [rbx + 4], edi
mov rcx, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
jmp fcn.18002bac8
add rcx, 0xb0
jmp 0x180049d80

Function at 0x180049c48
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r9, qword [rdx + 0x1a8]
mov r8, rcx
mov r9, qword [r9 + 8]
lea rdx, [0x180049d04]
add rcx, 0x40
jmp fcn.1800334c0

Function at 0x180049cdc
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r9, qword [rdx + 0x1a8]
mov r8, rcx
mov r9, qword [r9 + 8]
lea rdx, [0x180049d14]
add rcx, 0x40
jmp fcn.1800334c0
Function at 0x140002952
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
test rdx, rdx
mov rsi, rcx
mov rbx, rdx
je 0x140002971
mov rcx, rdx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14001a4e8

Function at 0x1400055bb
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rsi, rcx
mov qword [rsp + 0x28], rdx
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rsp + 0x28]
mov rcx, rsi
mov edx, 1
mov rbx, rax
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rcx, rbx
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.14001a4e8

Function at 0x1400055fa
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
cmp qword [0x140ed20f0], 0
jne 0x140005612
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.1400055bb
lea rsi, [rsp + 0x20]
mov rdx, rcx
mov rcx, rsi
call fcn.140005534
mov rbx, qword [rsp + 0x28]
mov rcx, rsi
call qword [0x140ed20f0]
test rbx, rbx
je 0x140005643
test byte [rbx + 7], 0x40
jne 0x140005643
mov rcx, rbx
call fcn.1400039df
lea rcx, [0x140020320]
call fcn.140015130
cmp byte [rax], 0
je 0x14000567b
lea rcx, [0x140020220]
mov byte [rax], 0
call fcn.140015130
xor r8d, r8d
mov rcx, rax
mov rax, qword [rax]
mov rdx, qword [rax + 0x38]
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.140003f44
add rsp, 0x38
pop rbx
pop rsi
ret

Function at 0x140005cf2
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
lea r12, [0x140ed20c0]
xor ebx, ebx
lea r14, [0x140020320]
lea r13, [rsp + 0x20]
mov rsi, rcx
mov rdi, rdx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbp, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rdi
mov ecx, 1
jl 0x140005d78
call rbp
mov r8d, 1
mov edx, 1
lea rcx, [0x14002139b]
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov ecx, 1
call rbp
mov rcx, rax
call fcn.14001a4e8
mov rcx, r12
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rbp
xor r8d, r8d
mov rdx, r13
mov rcx, rax
mov rax, rbx
shl rax, 4
movups xmm0, xmmword [rsi + rax]
movaps xmmword [rsp + 0x20], xmm0
call fcn.140005bcb
mov rcx, r14
call fcn.140015130
cmp byte [rax], 0
jne 0x140005daa
inc rbx
jmp 0x140005d2b
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x140011098
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x1400110d6
cmp word [rcx], 0x5a4d
jne 0x1400110d6
movsxd rdx, dword [rcx + 0x3c]
cmp edx, 0x400
jg 0x1400110d6
call fcn.1400075c9
mov rcx, qword [0x140ecd4f0]
mov rbx, rax
call fcn.140015130
cmp byte [rax], 0
jne 0x1400110d6
cmp dword [rbx], 0x4550
je 0x1400110d8
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x1400142a0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, [0x140eccbe0]
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.14001a1d0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x140014310
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140ed2b04]
test esi, esi
mov rbx, rcx
jle 0x140014440
mov rax, qword [0x140ed2b08]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14001435b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400143e5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140014340
mov rcx, rbx
call fcn.140014d80
test rax, rax
mov rdi, rax
je 0x140014462
mov rax, qword [0x140ed2b08]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140014ec0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140ed2b08]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140014447
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400143de
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400143f0
add dword [0x140ed2b04], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x140ed2b08]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400143de
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140eccc58]
mov edx, eax
call fcn.1400142a0
nop dword [rax]
xor esi, esi
jmp 0x140014368
mov rax, qword [0x140ed2b08]
lea rcx, [0x140eccc20]
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.1400142a0
lea rcx, [0x140eccc00]
mov rdx, rbx
call fcn.1400142a0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x1400149d0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140ed2b60]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140ed2b40]
test rbx, rbx
je 0x140014a2c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140014a23
test rsi, rsi
je 0x140014a23
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140014a08
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140014c40
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140014c78
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140014c80
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140014c50
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140014c78
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140014c80
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140014c60
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140014c78
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140014c80
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

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

Disassembly:
mov rdx, qword [0x140ecd500]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140014da0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140014da8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140014da0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140014dfd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x140014df4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140014da0
add rax, 0x28
cmp rax, r9
jne 0x140014de0
xor eax, eax
ret

Function at 0x140014e00
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140ecd500]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140014e1f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140014e28
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140014e1f
movzx ecx, word [rax + 6]
mov eax, ecx
ret