joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400040e0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x1030
call fcn.1400087a0
sub rsp, rax
mov rax, qword [0x140033018]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rbx, rdx
mov rdi, r8
lea rdx, [0x1400233f0]
call fcn.140002ca0
mov rdx, rdi
mov rcx, rbx
mov rsi, rax
call fcn.140004550
xor edi, edi
mov rbx, rax
test rsi, rsi
je 0x1400041d6
mov rcx, rsi
test rax, rax
je 0x1400041de
call fcn.14000aafc
test eax, eax
jne 0x1400041c2
nop word [rax + rax]
mov r9, rsi
lea rcx, [rsp + 0x20]
mov edx, 0x1000
mov r8d, 1
call fcn.14000ade4
cmp rax, 0xffffffffffffffff
jne 0x14000417f
mov rcx, rsi
call fcn.14000ab28
test eax, eax
je 0x1400041a7
mov rcx, rsi
jmp 0x1400041b8
mov r9, rbx
lea rcx, [rsp + 0x20]
mov edx, 0x1000
mov r8d, 1
call fcn.14000b808
test eax, eax
jle 0x1400041b5
mov rcx, rbx
call fcn.14000ab28
test eax, eax
jne 0x1400041b5
mov rcx, rsi
call fcn.14000aafc
test eax, eax
je 0x140004150
jmp 0x1400041c2
mov rcx, rbx
call fcn.140011afc
mov edi, 0xffffffff
mov rcx, rsi
call fcn.14000aa98
mov rcx, rbx
call fcn.14000aa98
mov eax, edi
jmp 0x1400041e8
test rbx, rbx
je 0x1400041e3
mov rcx, rbx
call fcn.14000aa98
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.140008760
add rsp, 0x1030
pop rdi
pop rsi
pop rbx
ret
Function at 0x140004270
Capabilities:
Get common file path
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
mov eax, 0x3070
call fcn.1400087a0
sub rsp, rax
mov rax, qword [0x140033018]
xor rax, rsp
mov qword [rsp + 0x3060], rax
mov rbp, rdx
mov r14, rcx
test rdx, rdx
je 0x14000430c
lea rcx, [0x140024880]
call fcn.1400044a0
mov r8, rbp
lea rcx, [rsp + 0x50]
mov edx, 0x1000
mov rsi, rax
call fcn.140002d10
xor r8d, r8d
lea rdx, [0x140024880]
xor ecx, ecx
call fcn.1400056f0
xor r8d, r8d
lea rdx, [rsp + 0x50]
xor ecx, ecx
mov rdi, rax
call fcn.1400056f0
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call fcn.1400108b0
mov rcx, rdi
call fcn.14000a9f8
mov rcx, rbx
call fcn.14000a9f8
jmp 0x140004311
mov rsi, qword [rsp + 0x20]
lea rdx, [rsp + 0x1060]
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
call sub.KERNEL32.dll_GetCurrentProcessId
mov r9d, eax
lea r8, str._MEI_d
mov edx, 0x10
lea rcx, [rsp + 0x28]
call fcn.140004e80
xor ebx, ebx
nop dword [rax]
nop dword [rax + rax]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x1060]
call fcn.140011ae0
mov rcx, rax
mov rdi, rax
call fcn.1400054c0
test eax, eax
je 0x1400043ef
mov rcx, rdi
call fcn.14000a9f8
inc ebx
cmp ebx, 5
jl 0x140004350
test rbp, rbp
je 0x1400043eb
xor r8d, r8d
lea rdx, [0x140024880]
xor ecx, ecx
call fcn.1400056f0
mov rdi, rax
test rsi, rsi
je 0x1400043d8
xor r8d, r8d
mov rdx, rsi
xor ecx, ecx
call fcn.1400056f0
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call fcn.1400108b0
mov rcx, rdi
call fcn.14000a9f8
mov rcx, rbx
call fcn.14000a9f8
mov rcx, rsi
call fcn.14000a9f8
xor eax, eax
jmp 0x14000446e
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rdi
call fcn.14000a9f8
xor eax, eax
jmp 0x14000446e
mov r8d, 0x1000
mov rdx, rdi
mov rcx, r14
call fcn.1400057d0
mov rcx, rdi
call fcn.14000a9f8
test rbp, rbp
je 0x140004469
xor r8d, r8d
lea rdx, [0x140024880]
xor ecx, ecx
call fcn.1400056f0
mov rdi, rax
test rsi, rsi
je 0x140004456
xor r8d, r8d
mov rdx, rsi
xor ecx, ecx
call fcn.1400056f0
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call fcn.1400108b0
mov rcx, rdi
call fcn.14000a9f8
mov rcx, rbx
call fcn.14000a9f8
mov rcx, rsi
jmp 0x140004464
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rdi
call fcn.14000a9f8
mov eax, 1
mov rcx, qword [rsp + 0x3060]
xor rcx, rsp
call fcn.140008760
lea r11, [rsp + 0x3070]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1400044a0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4038
call fcn.1400087a0
sub rsp, rax
mov rax, qword [0x140033018]
xor rax, rsp
mov qword [rsp + 0x4020], rax
mov rdx, rcx
xor r8d, r8d
xor ecx, ecx
call fcn.1400056f0
mov r8d, 0x2000
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140004536
mov r8d, 0x2000
lea rdx, [rsp + 0x2020]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor r8d, r8d
lea rdx, [rsp + 0x20]
xor ecx, ecx
call fcn.1400057d0
test rax, rax
je 0x140004536
cmp byte [rax], 0
je 0x140004536
mov rcx, rax
call fcn.14000fcc4
mov rcx, qword [rsp + 0x4020]
xor rcx, rsp
call fcn.140008760
add rsp, 0x4038
ret
xor eax, eax
mov rcx, qword [rsp + 0x4020]
xor rcx, rsp
call fcn.140008760
add rsp, 0x4038
ret

Function at 0x140004b10
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdx, rcx
xor r8d, r8d
xor ecx, ecx
call fcn.1400056f0
xor edx, edx
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rdi
mov ebx, eax
call fcn.14000a9f8
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140004b50
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x2110
call fcn.1400087a0
sub rsp, rax
mov rax, qword [0x140033018]
xor rax, rsp
mov qword [rsp + 0x2100], rax
mov rdx, rcx
xor edi, edi
lea rcx, [rsp + 0x100]
mov dword [rsp + 0x50], edi
mov r8d, 0x1000
call fcn.1400056f0
mov ebx, 1
lea ecx, [rdi + 0x16]
mov edx, ebx
call fcn.140011540
mov edx, ebx
lea ecx, [rdi + 2]
call fcn.140011540
mov edx, ebx
lea ecx, [rdi + 0xf]
call fcn.140011540
mov edx, ebx
lea ecx, [rdi + 0x15]
call fcn.140011540
lea rcx, [rsp + 0x90]
mov dword [rsp + 0x58], 0x18
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x68], ebx
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xorps xmm0, xmm0
mov qword [rsp + 0x98], rdi
xor ecx, ecx
movdqa xmmword [rsp + 0xa0], xmm0
mov dword [rsp + 0xcc], 0x101
mov word [rsp + 0xd0], bx
call fcn.14000b9ac
mov rcx, rax
call fcn.140010504
mov ecx, eax
call fcn.1400110f4
mov ecx, ebx
mov qword [rsp + 0xe0], rax
call fcn.14000b9ac
mov rcx, rax
call fcn.140010504
mov ecx, eax
call fcn.1400110f4
lea ecx, [rdi + 2]
mov qword [rsp + 0xe8], rax
call fcn.14000b9ac
mov rcx, rax
call fcn.140010504
mov ecx, eax
call fcn.1400110f4
mov qword [rsp + 0xf0], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r9d, r9d
lea r8, [rsp + 0x58]
mov rdx, rax
lea rcx, [rsp + 0x100]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140004cd1
mov rcx, qword [rsp + 0x70]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [rsp + 0x50]
jmp 0x140004ce9
lea rdx, str.Error_creating_child_process__n
lea rcx, [0x140024948]
call fcn.140001ab0
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x2100]
xor rcx, rsp
call fcn.140008760
mov rbx, qword [rsp + 0x2128]
add rsp, 0x2110
pop rdi
ret

Function at 0x1400054c0
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x140033018]
xor rax, rsp
mov qword [rsp + 0x60], rax
movups xmm0, xmmword [str.D:_A__FA___S_1_3_4_]
xor r9d, r9d
mov rbx, rcx
movups xmm1, xmmword [0x140024b40]
lea r8, [rsp + 0x28]
mov dword [rsp + 0x20], 0x18
movups xmmword [rsp + 0x38], xmm0
lea edx, [r9 + 1]
mov dword [rsp + 0x30], 0
movsd xmm0, qword [0x140024b50]
lea rcx, [rsp + 0x38]
movsd qword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x48], xmm1
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
je 0x14000554f
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14000554f
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140008760
add rsp, 0x70
pop rbx
ret
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140008760
add rsp, 0x70
pop rbx
ret
Function at 0x1400108e8
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x140010908
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14000e298
or eax, 0xffffffff
jmp 0x14001090a
xor eax, eax
add rsp, 0x28
ret

Function at 0x140010c38
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x140033018]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor esi, esi
mov rbx, rdx
test rdx, rdx
jne 0x140010977
call fcn.14000e308
mov dword [rax], 0x16
call fcn.140013ed4
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140008760
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
test rcx, rcx
je 0x14001093e
mov dword [rsp + 0x28], esi
lea r8, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400109e5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x1400109b8
cmp eax, 3
jbe 0x1400109d5
cmp eax, 8
je 0x1400109c5
cmp eax, 0x12
je 0x1400109d5
call fcn.14000e308
mov dword [rax], 0x16
jmp 0x14001094e
call fcn.14000e308
mov dword [rax], ntohl
jmp 0x14001094e
call fcn.14000e308
mov dword [rax], 2
jmp 0x14001094e
mov eax, dword [rsp + 0x30]
lea rcx, [rsp + 0x34]
cmp eax, 0x80
cmove eax, esi
mov dword [rbx], eax
call fcn.140010b80
lea rcx, [rsp + 0x3c]
mov qword [rbx + 8], rax
call fcn.140010b80
lea rcx, [rsp + 0x44]
mov qword [rbx + 0x10], rax
call fcn.140010b80
mov qword [rbx + 0x18], rax
lea rcx, [rbx + 0x24]
mov eax, dword [rsp + 0x50]
lea r8, [rsp + 0x5c]
mov edx, 0x104
mov dword [rbx + 0x20], eax
call fcn.140019948
test eax, eax
jne 0x140010a43
mov rax, rdi
jmp 0x140010952
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140013ef4
int3
jmp 0x140010910
Function at 0x140010c40
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x290
mov rax, qword [0x140033018]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor edi, edi
mov rbx, rdx
test rcx, rcx
jne 0x140010ab5
call fcn.14000e308
mov dword [rax], 0x16
call fcn.140013ed4
or eax, 0xffffffff
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140008760
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x290
pop rdi
ret
cmp rcx, 0xffffffffffffffff
je 0x140010a81
test rbx, rbx
je 0x140010a81
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140010b10
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x140010ae9
cmp eax, 3
jbe 0x140010b03
cmp eax, 8
je 0x140010af6
cmp eax, 0x12
je 0x140010b03
call fcn.14000e308
mov dword [rax], 0x16
jmp 0x140010a91
call fcn.14000e308
mov dword [rax], ntohl
jmp 0x140010a91
call fcn.14000e308
mov dword [rax], 2
jmp 0x140010a91
mov eax, dword [rsp + 0x30]
lea rcx, [rsp + 0x34]
cmp eax, 0x80
cmove eax, edi
mov dword [rbx], eax
call fcn.140010b80
lea rcx, [rsp + 0x3c]
mov qword [rbx + 8], rax
call fcn.140010b80
lea rcx, [rsp + 0x44]
mov qword [rbx + 0x10], rax
call fcn.140010b80
mov qword [rbx + 0x18], rax
lea rcx, [rbx + 0x24]
mov eax, dword [rsp + 0x50]
lea r8, [rsp + 0x5c]
mov edx, 0x104
mov dword [rbx + 0x20], eax
call fcn.140019948
test eax, eax
je 0x140010a94
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140013ef4
int3
jmp 0x140010a58

Function at 0x14001171c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14001173c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14000e298
or eax, 0xffffffff
jmp 0x14001173e
xor eax, eax
add rsp, 0x28
ret

Function at 0x140012ac8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400128f4
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 [0x1400055b0]
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 [0x1400055c0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call sym._amsg_exit
jmp 0x14000123c
mov rax, qword [0x1400055c0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x1400055c0]
mov dword [rax], 1
mov rax, qword [0x140005600]
mov rdx, rax
mov rax, qword [0x1400055f0]
mov rcx, rax
call sym._initterm
jmp 0x14000123c
mov dword [0x140009024], 1
mov rax, qword [0x1400055c0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x1400055e0]
mov rdx, rax
mov rax, qword [0x1400055d0]
mov rcx, rax
call sym._initterm
mov rax, qword [0x1400055c0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x1400055b0]
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 [0x140005500]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x140005500]
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 [0x1400055a0]
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 [0x140005530]
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 dbg.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 [0x140005560]
mov dword [rax], 1
mov rax, qword [0x140005570]
mov dword [rax], 1
mov rax, qword [0x140005580]
mov dword [rax], 1
mov rax, qword [0x140005520]
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 0x140001bc0
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 0x140002892
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140009168]
test eax, eax
je 0x14000292a
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 0x14000290e
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 0x140002902
cmp qword [rbp - 0x10], 0
je 0x140002902
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 0x1400028c8
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000292b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140002a30
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 0x140002a58
mov eax, 0
jmp 0x140002aa6
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 0x140002a81
mov eax, 0
jmp 0x140002aa6
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 0x140002aa1
mov eax, 0
jmp 0x140002aa6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x140002aac
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 0x140002b2a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140002b21
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 0x140002b21
mov rax, qword [rbp - 8]
jmp 0x140002b3f
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 0x140002af4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14000d7a0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14000d7ad
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14000d7bd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14000d7a5
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x14000d7d5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14000d7c2
sub eax, 3
jb 0x14000d7ef
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14000d826
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x14000d816
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14000d814
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14000d803
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.14000d762
jmp 0x14000d7ad
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x3200
mov dl, 5
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14000d872
cmp rsi, rcx
jae 0x14000d87a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14000d859
cmp al, 0x8f
ja 0x14000d859
cmp byte [rsi - 2], 0xf
je 0x14000d85f
sub al, 0xe8
cmp al, 1
ja 0x14000d843
cmp rsi, rcx
jae 0x14000d87a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14000d849
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14000d87a
lodsb al, byte [rsi]
jmp 0x14000d859
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xb000]
mov eax, dword [rdi]
or eax, eax
je 0x14000d8d7
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xd1dc]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14000d887
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14000d8d1
mov qword [rbx], rax
add rbx, 8
jmp 0x14000d8a7
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14000d911
cmp al, 0xef
ja 0x14000d903
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14000d8e3
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14000d8f2
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x22f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14000d965
sub rsp, 0xffffffffffffff80
jmp 0x14000383c
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
xor dl, byte [rbx - 0x353737a1]
mov ebp, 0x218b69b6
jp 0x1400232c7
invalid
clc
sahf
cmp edi, 0xffffff97
sub bh, byte [rsi]
jno 0x1400232f4
cld
invalid