joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100021350
Capabilities:
Delete service
Stop service

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x10002137d
xor eax, eax
jmp 0x100021475
mov r8d, 0xf01ff
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1000213da
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [rsp + 0x50], 0x424
jne 0x1000213c9
mov dword [rsp + 0x58], 1
jmp 0x1000213d1
mov dword [rsp + 0x58], 0
mov eax, dword [rsp + 0x58]
jmp 0x100021475
lea r8, [rsp + 0x30]
mov edx, 1
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov r9d, 0x3a98
lea r8, [rsp + 0x30]
mov edx, 1
mov rcx, qword [rsp + 0x28]
call fcn.100021210
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x10002145a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x54], eax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [rsp + 0x54], 0x430
jne 0x10002144c
mov dword [rsp + 0x5c], 1
jmp 0x100021454
mov dword [rsp + 0x5c], 0
mov eax, dword [rsp + 0x5c]
jmp 0x100021475
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
add rsp, 0x68
ret

Function at 0x100023254
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rcx, 0x23c12f2b
jmp 0x10000ae09
dec rcx
jmp 0x10000b128
jne 0x10000ae09
jmp 0x10000be5d
jmp 0x10000bec2
jmp 0x10000bf22
jmp 0x10000bfb5
jmp 0x10000bfc6
jmp 0x10000c019
jmp 0x10000c060
jmp 0x10000c0f8
jmp 0x10000c135
jmp 0x10000c153
jmp 0x10000c1ca
jmp 0x10000c1f2
jmp 0x10000c272
jmp 0x10000c2c6
jmp 0x10000c2f8
jmp 0x10000c35e
jmp 0x10000c390
jmp 0x10000c3f7
jmp 0x10000c437
jmp 0x10000c479
jmp 0x10000c4e0
xor rcx, rcx
mov rdx, 0x6c91
mov r8d, 0x1000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call 0x10000c500
pop rsi
add rsi, 0xe6f
mov rdi, rax
mov rcx, 0x6c91
rep movsb byte [rdi], byte [rsi]
jmp rax
sub rsp, 0x28
call fcn.100026650
add rsp, 0x28
xor rcx, rcx
jmp 0x100003a9c
Function at 0x1000253b4
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
mov dword [rax + 0x18], r8d
push r12
sub rsp, 0x30
mov edi, r8d
mov ebx, edx
mov r12d, ecx
mov ecx, 8
call fcn.10002a49c
nop
cmp dword [0x100036aa4], 1
je 0x100025467
mov dword [0x100036aa0], 1
mov byte [0x100036a5c], dil
test ebx, ebx
jne 0x100025453
mov rcx, qword [0x100038d90]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov rcx, qword [0x100038d88]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov qword [rsp + 0x20], rax
test rsi, rsi
je 0x100025440
sub rbx, 8
mov qword [rsp + 0x20], rbx
cmp rbx, rsi
jb 0x100025440
mov rcx, qword [rbx]
test rcx, rcx
je 0x10002543e
call rcx
jmp 0x100025426
lea rdx, [0x1000143f8]
lea rcx, [0x1000143e0]
call fcn.100025218
lea rdx, [0x100014408]
lea rcx, [0x100014400]
call fcn.100025218
nop
test edi, edi
je 0x100025475
mov ecx, 8
call fcn.10002a368
test edi, edi
jne 0x10002549d
mov dword [0x100036aa4], 1
lea ecx, [rdi + 8]
call fcn.10002a368
mov ecx, r12d
call fcn.10002519c
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
xor r8d, r8d
xor edx, edx
jmp 0x1000253b4

Function at 0x1000254dc
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
mov dword [rax + 0x18], r8d
push r12
sub rsp, 0x30
mov edi, r8d
mov ebx, edx
mov r12d, ecx
mov ecx, 8
call fcn.10002a49c
nop
cmp dword [0x100036aa4], 1
je 0x100025467
mov dword [0x100036aa0], 1
mov byte [0x100036a5c], dil
test ebx, ebx
jne 0x100025453
mov rcx, qword [0x100038d90]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov rcx, qword [0x100038d88]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov qword [rsp + 0x20], rax
test rsi, rsi
je 0x100025440
sub rbx, 8
mov qword [rsp + 0x20], rbx
cmp rbx, rsi
jb 0x100025440
mov rcx, qword [rbx]
test rcx, rcx
je 0x10002543e
call rcx
jmp 0x100025426
lea rdx, [0x1000143f8]
lea rcx, [0x1000143e0]
call fcn.100025218
lea rdx, [0x100014408]
lea rcx, [0x100014400]
call fcn.100025218
nop
test edi, edi
je 0x100025475
mov ecx, 8
call fcn.10002a368
test edi, edi
jne 0x10002549d
mov dword [0x100036aa4], 1
lea ecx, [rdi + 8]
call fcn.10002a368
mov ecx, r12d
call fcn.10002519c
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
xor r8d, r8d
xor edx, edx
jmp 0x1000253b4

Function at 0x1000254ec
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x1000253b4
Function at 0x10002558c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r13
sub rsp, 0x30
lea r13, [0x100035340]
mov ebx, ecx
xor edi, edi
mov rax, r13
cmp ecx, dword [rax]
je 0x1000255bf
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x1000255af
cmp edi, 0x17
jae 0x10002576d
mov ebp, 3
mov ecx, ebp
call fcn.10002c4f0
cmp eax, 1
je 0x100025725
mov ecx, ebp
call fcn.10002c4f0
test eax, eax
jne 0x1000255f5
cmp dword [0x1000351b0], 1
je 0x100025725
cmp ebx, 0xfc
je 0x10002576d
lea rbx, [0x100036ab0]
mov ebp, 0x314
lea r8, [0x100014d30]
mov rcx, rbx
mov rdx, rbp
call fcn.10002a1c8
test eax, eax
je 0x100025638
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.100026834
lea rdx, [0x100036ac9]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x100036bcd], 0
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100025689
lea r8, [0x100014d18]
lea rcx, [0x100036ac9]
mov edx, 0x2fb
call fcn.10002a1c8
test eax, eax
je 0x100025689
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.100026834
lea r8, [0x100036ac9]
mov rdx, rbp
mov rcx, rbx
call fcn.10002c45c
test eax, eax
je 0x1000256b4
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.100026834
lea r8, [0x100014d10]
mov rdx, rbp
mov rcx, rbx
call fcn.10002c45c
test eax, eax
je 0x1000256df
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.100026834
movsxd r8, edi
mov rdx, rbp
mov rcx, rbx
add r8, r8
mov r8, qword [r13 + r8*8 + 8]
call fcn.10002c45c
test eax, eax
je 0x10002570e
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.100026834
lea rdx, [0x100014ce8]
mov r8d, 0x12010
mov rcx, rbx
call fcn.10002c228
jmp 0x10002576d
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x10002576d
or rcx, 0xffffffffffffffff
cmp rax, rcx
je 0x10002576d
movsxd rdx, edi
xor eax, eax
lea r9, [rsp + 0x48]
and qword [rsp + 0x20], rax
add rdx, rdx
mov rdx, qword [r13 + rdx*8 + 8]
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r13
ret
Function at 0x100025e60
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebx, ebx
cmp rax, rbx
mov rdi, rax
jne 0x100025e88
xor eax, eax
jmp 0x100025ed4
cmp word [rdi], bx
je 0x100025e9f
add rax, 2
cmp word [rax], bx
jne 0x100025e8d
add rax, 2
cmp word [rax], bx
jne 0x100025e8d
sub eax, edi
add eax, 2
movsxd rbp, eax
mov rcx, rbp
call fcn.1000248f0
cmp rax, rbx
mov rsi, rax
je 0x100025ec8
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call fcn.1000293f0
mov rbx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1000267b3
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1000355a0]
jne 0x10002329a
rol rcx, 0x10
test cx, 0xffff
jne 0x100023296
repz ret
ror rcx, 0x10
jmp 0x10002670c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x100037090]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x100037188]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x100026791
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x100037090]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1000267b3
mov rax, qword [rsp + 0x88]
mov qword [0x100037188], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x100037128], rax
mov rax, qword [0x100037188]
mov qword [0x100037000], rax
mov rax, qword [rsp + 0x90]
mov qword [0x100037110], rax
mov dword [0x100036ff0], 0xc0000409
mov dword [0x100036ff4], 1
mov rax, qword [0x1000355a0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1000355a8]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x100014d50]
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, 0x88
ret
Function at 0x100026834
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x530
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x10002689f
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
jmp 0x1000268bf
mov rax, qword [rsp + 0x538]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x538]
mov qword [rsp + 0xf8], rax
lea rcx, [0x100014d60]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add rsp, 0x530
pop rbx
ret
Function at 0x10002c228
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x50
mov ebx, r8d
mov r12, rdx
mov r13, rcx
call fcn.1000261d8
xor ebp, ebp
and dword [rsp + 0x88], ebp
and dword [rsp + 0x30], ebp
cmp qword [0x100037838], rbp
mov rdi, rax
jne 0x10002c35b
lea rcx, [0x100014f38]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
mov rsi, rax
jne 0x10002c287
xor eax, eax
jmp 0x10002c43b
lea rdx, [0x100014f28]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x10002c280
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x100014f18]
mov rcx, rsi
mov qword [0x100037838], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x100014f00]
mov rcx, rsi
mov qword [0x100037840], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rcx, [rsp + 0x88]
mov qword [0x100037848], rax
call fcn.100025254
test eax, eax
je 0x10002c30e
and qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.100026834
cmp dword [rsp + 0x88], 2
jne 0x10002c35b
lea rdx, [0x100014ee0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
test rax, rax
mov qword [0x100037858], rax
je 0x10002c35b
lea rdx, [0x100014ec8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x100037850], rax
mov rcx, qword [0x100037850]
cmp rcx, rdi
je 0x10002c3ed
cmp qword [0x100037858], rdi
je 0x10002c3ed
call sub.KERNEL32.dll_DecodePointer
call rax
test rax, rax
mov rsi, rax
je 0x10002c3b8
mov rcx, qword [0x100037858]
call sub.KERNEL32.dll_DecodePointer
lea rcx, [rsp + 0x34]
mov r9d, 0xc
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
lea r8, [rsp + 0x38]
mov rcx, rsi
call rax
test eax, eax
je 0x10002c3b8
test byte [rsp + 0x40], 1
jne 0x10002c3ed
lea rcx, [rsp + 0x30]
call fcn.1000252a0
test eax, eax
je 0x10002c3da
and qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.100026834
cmp dword [rsp + 0x30], 4
jb 0x10002c3e7
bts ebx, 0x15
jmp 0x10002c421
bts ebx, 0x12
jmp 0x10002c421
mov rcx, qword [0x100037840]
cmp rcx, rdi
je 0x10002c421
call sub.KERNEL32.dll_DecodePointer
call rax
test rax, rax
mov rbp, rax
je 0x10002c421
mov rcx, qword [0x100037848]
cmp rcx, rdi
je 0x10002c421
call sub.KERNEL32.dll_DecodePointer
mov rcx, rbp
call rax
mov rbp, rax
mov rcx, qword [0x100037838]
call sub.KERNEL32.dll_DecodePointer
mov r9d, ebx
mov r8, r12
mov rdx, r13
mov rcx, rbp
call rax
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x10002d86c
Capabilities:
Get system information on windows

Disassembly:
push rbp
push r12
push r13
sub rsp, 0x90
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x90], rbx
mov qword [rbp + 0x98], rsi
mov qword [rbp + 0xa0], rdi
mov rax, qword [0x1000355a0]
xor rax, rbp
mov qword [rbp + 0x68], rax
mov eax, dword [rsp]
sub rsp, 0x10
lea r12, [rsp + 0x20]
mov eax, dword [r12]
lea rdx, [rbp + 8]
mov r8d, 0x30
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x10002d972
mov r13, qword [rbp + 0x10]
lea rcx, [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [rbp + 0x3c]
lea rcx, [rbp]
xor ebx, ebx
and dword [rbp], ebx
call qword [sym.imp.KERNEL32.dll_SetThreadStackGuarantee]
cmp eax, 1
jne 0x10002d8fa
mov eax, dword [rbp]
test eax, eax
cmovne ebx, eax
lea edx, [rdi - 1]
lea ecx, [rdx + rbx]
cmp ecx, ebx
jb 0x10002d972
mov eax, edx
not eax
and ecx, eax
je 0x10002d915
lea eax, [rcx + rdi]
cmp eax, ecx
jb 0x10002d972
mov ecx, eax
lea eax, [rdi + rdi*2]
mov ebx, edx
cmp ecx, eax
not rbx
cmovb ecx, eax
and rbx, r12
lea rax, [r13 + rdi]
mov esi, ecx
sub rbx, rsi
cmp rbx, rax
jb 0x10002d972
mov r9d, 4
mov r8d, 0x1000
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x10002d972
lea r9, [rbp + 4]
mov r8d, 0x104
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10002d972
mov eax, 1
jmp 0x10002d974
xor eax, eax
mov rcx, qword [rbp + 0x68]
xor rcx, rbp
call fcn.100023280
mov rbx, qword [rbp + 0x90]
mov rsi, qword [rbp + 0x98]
mov rdi, qword [rbp + 0xa0]
lea rsp, [rbp + 0x70]
pop r13
pop r12
pop rbp
ret
Function at 0x2fc4d1290
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d2370
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d1c92
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f4108]
test eax, eax
je 0x2fc4d1d2a
lea rax, [0x2fc4f40e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f4110]
mov qword [rbp - 8], rax
jmp 0x2fc4d1d0e
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 0x2fc4d1d02
cmp qword [rbp - 0x10], 0
je 0x2fc4d1d02
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 0x2fc4d1cc8
lea rax, [0x2fc4f40e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d1d2b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d1e30
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 0x2fc4d1e58
mov eax, 0
jmp 0x2fc4d1ea6
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 0x2fc4d1e81
mov eax, 0
jmp 0x2fc4d1ea6
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 0x2fc4d1ea1
mov eax, 0
jmp 0x2fc4d1ea6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d1eac
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 0x2fc4d1f2a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d1f21
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 0x2fc4d1f21
mov rax, qword [rbp - 8]
jmp 0x2fc4d1f3f
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 0x2fc4d1ef4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140003fcc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004016
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140004016
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004016
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140004016
cmp dword [rcx + 0x84], 0xe
jbe 0x140004016
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140004018
xor al, al
add rsp, 0x28
ret
Function at 0x2fc533960
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc534a40
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc534362
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc556108]
test eax, eax
je 0x2fc5343fa
lea rax, [0x2fc5560e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc556110]
mov qword [rbp - 8], rax
jmp 0x2fc5343de
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 0x2fc5343d2
cmp qword [rbp - 0x10], 0
je 0x2fc5343d2
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 0x2fc534398
lea rax, [0x2fc5560e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc5343fb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc534500
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 0x2fc534528
mov eax, 0
jmp 0x2fc534576
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 0x2fc534551
mov eax, 0
jmp 0x2fc534576
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 0x2fc534571
mov eax, 0
jmp 0x2fc534576
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc53457c
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 0x2fc5345fa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc5345f1
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 0x2fc5345f1
mov rax, qword [rbp - 8]
jmp 0x2fc53460f
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 0x2fc5345c4
mov eax, 0
add rsp, 0x20
pop rbp
ret