joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3600ee34
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r15d, r15d
mov rbp, r9
mov r14d, r8d
mov rdi, rdx
mov rsi, rcx
cmp r9, r15
je 0x3600ee67
mov qword [r9], r15
cmp rdx, r15
jne 0x3600ee74
or eax, 0xffffffff
jmp 0x3600f040
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x3600f03b
movsxd rax, dword [rdx + 0x3c]
mov edx, 0x4550
cmp dword [rax + rdi], edx
jne 0x3600f03b
lea rcx, [rax + rdi + 4]
mov r8d, 0x8664
cmp word [rcx], r8w
jne 0x3600f03b
mov r9d, 0x20b
cmp word [rax + rdi + 0x18], r9w
jne 0x3600f03b
cmp dword [rax + rdi + 0x84], 0x10
jne 0x3600f03b
cmp rcx, r15
je 0x3600f03b
cmp dword [rax + rdi], edx
jne 0x3600eef4
cmp word [rax + rdi + 4], r8w
jne 0x3600eef4
lea rcx, [rax + rdi + 0x18]
cmp word [rcx], r9w
jne 0x3600eef4
cmp dword [rax + rdi + 0x84], 0x10
je 0x3600eef7
mov rcx, r15
mov r12, qword [rcx + 0x18]
test byte [rcx + 0x46], 0x40
mov eax, dword [rcx + 0x38]
cmovne r12, r15
add eax, 0x7ff
mov r9d, 0x40
and eax, 0xfffffc00
mov r8d, 0x3000
mov rcx, r12
mov edx, eax
mov r13d, eax
call qword [rsi + 0x18]
mov rbx, rax
cmp rax, r15
jne 0x3600ef55
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, r13
xor ecx, ecx
call qword [rsi + 0x18]
mov rbx, rax
cmp rax, r15
jne 0x3600ef55
mov eax, 0xfffffffb
jmp 0x3600f040
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.360088c8
mov r11, qword [rsp + 0x70]
cmp r11, r15
je 0x3600ef82
mov rdx, rsi
mov rcx, rbx
call r11
cmp eax, r15d
jne 0x3600ef9c
mov edi, 0xfffffffa
jmp 0x3600efb9
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call fcn.3600d964
cmp eax, r15d
jne 0x3600ef9c
mov edi, 0xfffffff9
jmp 0x3600efb9
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call fcn.3600859c
cmp eax, r15d
jne 0x3600efcb
cmp rbx, r12
je 0x3600efcb
mov edi, 0xfffffff8
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [rsi + 0x30]
mov eax, edi
jmp 0x3600f040
cmp rbx, r15
je 0x3600f00a
movsxd rax, dword [rbx + 0x3c]
add rax, rbx
cmp dword [rax], 0x4550
jne 0x3600f00a
mov ecx, 0x8664
cmp word [rax + 4], cx
jne 0x3600f00a
lea rcx, [rax + 0x18]
mov edx, 0x20b
cmp word [rcx], dx
jne 0x3600f00a
cmp dword [rax + 0x84], 0x10
jne 0x3600f00a
cmp rcx, r15
je 0x3600f00a
mov qword [rcx + 0x18], rbx
mov r8d, 1
mov rdx, rbx
mov rcx, rsi
call fcn.36008710
mov edi, r15d
cmp r14d, r15d
je 0x3600f030
mov rdx, rbx
mov rcx, rsi
call fcn.360084c8
mov edi, eax
cmp rbp, r15
je 0x3600efb9
mov qword [rbp], rbx
jmp 0x3600efc7
mov eax, 0xfffffffe
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x360102ec
Capabilities:
Create thread

Disassembly:
sub rsp, 0x148
mov rcx, qword [0x3601d190]
lea rdx, [rsp + 0x30]
mov r8d, 0x103
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea r11, [rsp + 0x150]
lea r8, [0x36010224]
mov qword [rsp + 0x28], r11
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
add rsp, 0x148
ret

Function at 0x36010344
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 1]
call fcn.36006e54
mov rax, qword [0x3601d400]
test rax, rax
je 0x36010409
mov rax, qword [rax + 0x298]
movabs rcx, 0x75f8a22b153fbf60
mov edx, 0x4f9337d9
add rax, rcx
mov r9d, 0xe1357dd2
mov r8d, 0x95c669c6
mov ecx, 0xa6a0e8da
call rax
mov r11, qword [0x3601d400]
movabs rcx, 0xdb859afda39f8245
mov rax, qword [r11 + 0x198]
mov edx, 0x23b2fc7f
mov r9d, 0xaffa0b3a
mov r8d, 0xcf592daf
mov dword [rsp + 0x28], 0x961db32
mov dword [rsp + 0x20], 0x16bd974f
imul rax, rcx
mov ecx, 0xaa470323
call rax
mov r11, qword [0x3601d400]
movabs rcx, 0x2510709c49b82cba
mov rax, qword [r11 + 0x240]
mov edx, 0x678cc1db
mov r8d, 0xf306b4d5
sub rax, rcx
mov ecx, 0xc5834de6
call rax
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [0x36006f54]
mov r9, rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
jne 0x3601043d
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x360105bf
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 1]
call fcn.36006e54
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 4]
call fcn.36006e54
call fcn.360102ec
or edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x3601d400]
test rax, rax
je 0x360105ba
mov rax, qword [rax + 0x228]
xor edx, edx
movabs rcx, 0xd19e36d42f716d5a
div rcx
mov r9d, 0xcef842f7
mov r8d, 0xf4fb2e60
mov r10, rdx
mov edx, 0xe75511e3
mov ecx, 0xf52defcd
call r10
mov r11, qword [0x3601d400]
movabs rcx, 0x54aca5643f016f33
mov rax, qword [r11 + 0x158]
add rax, rcx
call rax
mov r11, qword [0x3601d400]
movabs rcx, 0xac2723a883c06f96
mov rax, qword [r11 + 0x188]
imul rax, rcx
mov ecx, 0x50a9215c
call rax
mov rax, qword [0x3601d400]
movabs rcx, 0x3e113df89549655c
mov rax, qword [rax + 0x1e8]
xor edx, edx
div rcx
mov ecx, 0xa905222c
call rdx
mov rax, qword [0x3601d400]
xor edx, edx
mov rax, qword [rax + 0xc8]
movabs rcx, 0x5519518caacc3152
mov r9d, 0xcd5afbbd
div rcx
mov r8d, 0x2786adaf
mov ecx, 0xdc7ac936
mov r10, rdx
mov edx, 0xc9144c2a
mov dword [rsp + 0x28], 0xb3db3d40
mov dword [rsp + 0x20], 0xa564f30b
call r10
mov r11, qword [0x3601d400]
mov r10, qword [r11 + 0x160]
movabs rcx, 0x746ee1c28b983f83
mov edx, 0x75f36f5e
mov r9d, 0xb84ae745
mov r8d, 0x872b99cd
imul r10, rcx
mov ecx, 0x1137509
call r10
mov r11, qword [0x3601d400]
movabs rcx, 0x2a23706b74e6579a
mov rdx, qword [r11 + 0x300]
add rdx, rcx
mov ecx, 0x961ef772
call rdx
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x36011ce8
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.360142e0
nop
cmp dword [0x3601d458], 1
je 0x36011c94
mov dword [0x3601d454], 1
mov byte [0x3601d450], r12b
test ebx, ebx
jne 0x36011c80
mov rcx, qword [0x3601e4d8]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x36011c6d
mov rcx, qword [0x3601e4d0]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x36011c0c
call fcn.36012360
cmp qword [rdi], rax
jne 0x36011c0c
jmp 0x36011bf2
cmp rdi, rsi
jb 0x36011c6d
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.36012360
mov qword [rdi], rax
call rbx
mov rcx, qword [0x3601e4d8]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x3601e4d0]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x36011c4b
cmp r13, rax
je 0x36011c6b
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x36011bf2
lea rdx, [0x36001440]
lea rcx, [0x36001438]
call fcn.36011a3c
lea rdx, [0x36001450]
lea rcx, [0x36001448]
call fcn.36011a3c
nop
test r12d, r12d
je 0x36011ca3
mov ecx, 8
call fcn.360141e0
test r12d, r12d
jne 0x36011cce
mov dword [0x3601d458], 1
lea ecx, [r12 + 8]
call fcn.360141e0
mov ecx, r15d
call fcn.360119d0
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x36011b5c

Function at 0x36011cf4
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x36011b5c
Function at 0x36016518
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.36012360
xor ebx, ebx
mov rdi, rax
cmp qword [0x3601dbb0], rbx
jne 0x3601661e
lea rcx, [0x36002398]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x360166f3
lea rdx, [0x36002388]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x360166f3
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x36002378]
mov rcx, rsi
mov qword [0x3601dbb0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x36002360]
mov rcx, rsi
mov qword [0x3601dbb8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x36002340]
mov rcx, rsi
mov qword [0x3601dbc0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x3601dbd0], rax
test rax, rax
je 0x36016615
lea rdx, [0x36002328]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x3601dbc8], rax
jmp 0x36016625
mov rax, qword [0x3601dbc8]
jmp 0x3601662c
mov rax, qword [0x3601dbc8]
mov r11, qword [0x3601dbd0]
cmp rax, rdi
je 0x36016694
cmp r11, rdi
je 0x36016694
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x3601dbd0]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x36016694
test rax, rax
je 0x36016694
call rsi
test rax, rax
je 0x3601668e
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x3601668e
test byte [rsp + 0x38], 1
jne 0x36016694
bts ebp, 0x15
jmp 0x360166d2
mov rcx, qword [0x3601dbb8]
cmp rcx, rdi
je 0x360166d2
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x360166d2
call rax
mov rbx, rax
test rax, rax
je 0x360166d2
mov rcx, qword [0x3601dbc0]
cmp rcx, rdi
je 0x360166d2
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x360166d2
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x3601dbb0]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x360166f3
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x360166f5
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x36017ab7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x3601cdc0]
jne 0x36016aba
rol rcx, 0x10
test cx, 0xffff
jne 0x36016ab6
repz ret
ror rcx, 0x10
jmp 0x36017a10
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x3601dca0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x3601dd98]
mov qword [rsp + 0x58], r11
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 0x36017a95
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, [0x3601dca0]
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 0x36017ab7
mov rax, qword [rsp + 0x88]
mov qword [0x3601dd98], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x3601dd38], rax
mov rax, qword [0x3601dd98]
mov qword [0x3601dc10], rax
mov rax, qword [rsp + 0x90]
mov qword [0x3601dd20], rax
mov dword [0x3601dc00], 0xc0000409
mov dword [0x3601dc04], 1
mov rax, qword [0x3601cdc0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x3601cdc8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x3601dc98], eax
mov ecx, 1
call fcn.360169ec
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x36002d18]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x3601dc98], 0
jne 0x36017b3e
mov ecx, 1
call fcn.360169ec
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 0x14002982c
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001ce24
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001ce24
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002997c
cmp rax, 0xffffffffffffffff
je 0x14002997c
xor edi, edi
test rbp, rbp
jle 0x140029927
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f738
mov rbx, rax
test rax, rax
jne 0x1400298b4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002991d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a758
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001db00
cmp eax, 0xffffffff
je 0x1400298fd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400298c4
mov edx, r15d
mov ecx, r14d
call fcn.14001a758
jmp 0x14002991d
cmp byte [rsi + 0x38], dil
je 0x140029914
cmp dword [rsi + 0x34], 5
jne 0x140029914
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002991d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b4ec
jmp 0x140029990
jns 0x140029990
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001ce24
cmp rax, 0xffffffffffffffff
jne 0x140029948
cmp byte [rsi + 0x30], dil
je 0x140029990
mov edi, dword [rsi + 0x2c]
jmp 0x140029990
mov ecx, r14d
call fcn.140018c10
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029990
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140029990
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029989
mov eax, dword [rsi + 0x2c]
jmp 0x14002998e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001ce24
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14002aa80
Capabilities:
Parse pe header

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

Function at 0x100001778
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x1000017c5
cmp rcx, 0xffffffffffffffff
je 0x1000017c5
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1000017bd
cmp dword [rcx + 0x3c], edx
jl 0x1000017bd
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1000017bd
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 0x1000017c5
mov rax, rdx
add rsp, 0x18
ret
Function at 0x2fc4d50a0
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.2fc4d6180
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d5aa2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f8108]
test eax, eax
je 0x2fc4d5b3a
lea rax, [0x2fc4f80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f8110]
mov qword [rbp - 8], rax
jmp 0x2fc4d5b1e
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 0x2fc4d5b12
cmp qword [rbp - 0x10], 0
je 0x2fc4d5b12
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 0x2fc4d5ad8
lea rax, [0x2fc4f80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d5b3b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d5c40
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 0x2fc4d5c68
mov eax, 0
jmp 0x2fc4d5cb6
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 0x2fc4d5c91
mov eax, 0
jmp 0x2fc4d5cb6
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 0x2fc4d5cb1
mov eax, 0
jmp 0x2fc4d5cb6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d5cbc
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 0x2fc4d5d3a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d5d31
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 0x2fc4d5d31
mov rax, qword [rbp - 8]
jmp 0x2fc4d5d4f
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 0x2fc4d5d04
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d6c30
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.2fc4d7d10
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d7632
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fa108]
test eax, eax
je 0x2fc4d76ca
lea rax, [0x2fc4fa0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fa110]
mov qword [rbp - 8], rax
jmp 0x2fc4d76ae
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 0x2fc4d76a2
cmp qword [rbp - 0x10], 0
je 0x2fc4d76a2
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 0x2fc4d7668
lea rax, [0x2fc4fa0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d76cb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d77d0
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 0x2fc4d77f8
mov eax, 0
jmp 0x2fc4d7846
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 0x2fc4d7821
mov eax, 0
jmp 0x2fc4d7846
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 0x2fc4d7841
mov eax, 0
jmp 0x2fc4d7846
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d784c
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 0x2fc4d78ca
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d78c1
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 0x2fc4d78c1
mov rax, qword [rbp - 8]
jmp 0x2fc4d78df
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 0x2fc4d7894
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140011294
Capabilities:
Terminate process

Disassembly:
jmp 0x140013fd0
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 0x140011343
Capabilities:
Create thread

Disassembly:
jmp 0x140012a20
push rbp
push rdi
sub rsp, 0xf8
lea rbp, [rsp + 0x30]
lea rcx, [0x1400250ae]
call fcn.1400114a1
call fcn.14001135c
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x14001145b]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret

Function at 0x140011352
Capabilities:
Parse pe header

Disassembly:
jmp 0x140015320
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140015340
xor al, al
jmp 0x1400153c1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140015353
xor al, al
jmp 0x1400153c1
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 0x14001537d
xor al, al
jmp 0x1400153c1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140015391
xor al, al
jmp 0x1400153c1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400153a3
xor al, al
jmp 0x1400153c1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400153bf
xor al, al
jmp 0x1400153c1
mov al, 1
add rsp, 0x38
ret