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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140035e80]
mov dword [rax], 1
mov rax, qword [0x140035e90]
mov dword [rax], 1
mov rax, qword [0x140035ea0]
mov dword [rax], 1
mov rax, qword [0x140035e70]
mov dword [rax], 1
mov rax, qword [0x140035d00]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014de
mov eax, 0
jmp 0x14000158b
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 0x14000150a
mov eax, 0
jmp 0x14000158b
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 0x140001530
cmp eax, 0x20b
je 0x140001557
jmp 0x140001586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001543
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001572
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140003130
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x20
mov r13, rcx
mov rcx, rdx
mov edx, 1
mov rbx, r8
mov r9, r13
call sym.fread
mov r12, rax
cmp rbx, rax
je 0x140003163
mov rcx, r13
call sym.ferror
test eax, eax
jne 0x140003170
mov rax, r12
add rsp, 0x20
pop rbx
pop r12
pop r13
ret
mov rcx, r13
call sym.checkErr__systemZio_141.part.0
nop
nop dword [rax]

Function at 0x140003b60
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x28
mov r12, rcx
mov rcx, rdx
mov edx, 1
mov r9, r12
call sym.fwrite
mov rcx, r12
mov r13, rax
call sym.ferror
test eax, eax
jne 0x140003b96
mov rax, r13
add rsp, 0x28
pop r12
pop r13
ret
mov rcx, r12
call sym.checkErr__systemZio_141.part.0
nop
nop

Function at 0x140003d10
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rdi, qword [sym.__acrt_iob_func]
xor ebx, ebx
mov rbp, rcx
mov rsi, rdx
test rdx, rdx
jle 0x140003d53
nop
mov r12, qword [rbp + rbx*8]
mov ecx, 1
add rbx, 1
call rdi
xor r8d, r8d
mov rcx, rax
mov rdx, r12
call sym.writeWindows__systemZio_205
cmp rsi, rbx
jg 0x140003d30
mov ecx, 1
call rdi
mov r8d, 1
mov edx, 1
lea rcx, [0x1400311fc]
mov r9, rax
call sym.fwrite
mov ecx, 1
call rdi
mov rcx, rax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp sym.fflush
Function at 0x140003f10
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0x20
xor r12d, r12d
mov r15, rcx
mov ecx, 0xfa0
call sym.mnewString
mov r14, rax
lea rbx, [rax + 0x10]
test rax, rax
je 0x140003ffd
nop dword [rax]
mov rdx, qword [r14]
test rdx, rdx
jg 0x140003f53
sub rdx, 1
xor ecx, ecx
call sym.raiseIndexError2
mov r9, r15
mov r8d, 0xfa0
mov edx, 1
mov rcx, rbx
call sym.fread
mov r13, rax
cmp rax, 0xfa0
je 0x140004038
mov rcx, r15
call sym.ferror
test eax, eax
jne 0x1400040a9
test r13, r13
js 0x140004090
mov rdx, r13
mov rcx, r14
call sym.setLengthStr
mov rbx, rax
test rax, rax
je 0x140004070
mov rdx, qword [rax]
mov rcx, r12
call sym.resizeString
lea rdx, [rbx + 0x10]
mov r12, rax
mov rax, qword [rax]
lea rcx, [r12 + rax + 0x10]
mov rax, qword [rbx]
lea r8, [rax + 1]
call sym.memcpy
mov rax, qword [rbx]
add qword [r12], rax
mov rax, r12
add rsp, 0x20
pop rbx
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, r12
xor edx, edx
call sym.resizeString
mov r12, rax
mov rdx, 0xffffffffffffffff
xor ecx, ecx
call sym.raiseIndexError2
mov r9, r15
mov r8d, 0xfa0
mov edx, 1
mov ecx, 0x10
call sym.fread
mov r13, rax
cmp rax, 0xfa0
jne 0x140003f78
jmp 0x140003ff0
mov rdx, qword [r14]
mov rcx, r12
call sym.resizeString
mov rdx, rbx
mov r12, rax
mov rax, qword [rax]
lea rcx, [r12 + rax + 0x10]
mov rax, qword [r14]
lea r8, [rax + 1]
call sym.memcpy
mov rax, qword [r14]
add qword [r12], rax
jmp 0x140003f40
xor edx, edx
mov rcx, r12
add rsp, 0x20
pop rbx
pop r12
pop r13
pop r14
pop r15
jmp sym.resizeString
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, r13
call sym.raiseRangeErrorI
jmp 0x140003f91
mov rcx, r15
call sym.checkErr__systemZio_141.part.0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x1400040c0
Capabilities:
Read file on windows

Disassembly:
push r14
push r13
push r12
push rsi
push rbx
sub rsp, 0x20
mov r13, rcx
mov rbx, rdx
test rdx, rdx
js 0x140004228
mov rcx, rbx
call sym.mnewString
mov r12, rax
test rax, rax
je 0x140004218
mov rdx, qword [rax]
test rdx, rdx
jle 0x140004180
test rbx, rbx
js 0x140004194
lea rcx, [r12 + 0x10]
mov r9, r13
mov r8, rbx
mov edx, 1
call sym.fread
mov rcx, r13
mov r14, rax
cmp rbx, rax
je 0x1400041b0
call sym.ferror
mov rcx, r13
test eax, eax
jne 0x140004279
call sym.fgetc
mov rdx, r13
mov esi, eax
mov ecx, eax
call sym.ungetc
test esi, esi
jns 0x1400041c5
cmp rbx, r14
jle 0x140004202
test r14, r14
js 0x140004260
mov rdx, r14
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
pop r13
pop r14
jmp sym.setLengthStr
sub rdx, 1
xor ecx, ecx
call sym.raiseIndexError2
test rbx, rbx
jns 0x140004104
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rbx
call sym.raiseRangeErrorI
jmp 0x140004104
call sym.fgetc
mov rdx, r13
mov ebx, eax
mov ecx, eax
call sym.ungetc
test ebx, ebx
js 0x140004202
mov rcx, r13
call sym.readAllBuffer__systemZio_421
mov rbx, rax
test rax, rax
je 0x140004248
mov rdx, qword [rax]
mov rcx, r12
call sym.resizeString
lea rdx, [rbx + 0x10]
mov r12, rax
mov rax, qword [rax]
lea rcx, [r12 + rax + 0x10]
mov rax, qword [rbx]
lea r8, [rax + 1]
call sym.memcpy
mov rax, qword [rbx]
add qword [r12], rax
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
pop r13
pop r14
ret
mov rdx, 0xffffffffffffffff
jmp 0x140004184
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rbx
call sym.raiseRangeErrorI
jmp 0x1400040db
xor edx, edx
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
pop r13
pop r14
jmp sym.resizeString
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, r14
call sym.raiseRangeErrorI
jmp 0x14000415f
call sym.checkErr__systemZio_141.part.0
nop
nop

Function at 0x140004280
Capabilities:
Read file on windows

Disassembly:
push r14
push r13
push r12
push rbx
sub rsp, 0x28
mov r12, rcx
xor ecx, ecx
call qword [sym.__acrt_iob_func]
cmp r12, rax
je 0x1400042d8
mov r13, qword [sym._ftelli64]
mov rcx, r12
call r13
xor edx, edx
mov r8d, 2
mov rcx, r12
mov r14, rax
mov rbx, qword [sym._fseeki64]
call rbx
mov rcx, r12
call r13
xor r8d, r8d
mov rdx, r14
mov rcx, r12
mov r13, rax
call rbx
test r13, r13
jg 0x1400042f0
mov rcx, r12
add rsp, 0x28
pop rbx
pop r12
pop r13
pop r14
jmp sym.readAllBuffer__systemZio_421
mov rdx, r13
mov rcx, r12
add rsp, 0x28
pop rbx
pop r12
pop r13
pop r14
jmp sym.readAllFile__systemZio_434

Function at 0x140004aa0
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x28
xor r8d, r8d
mov r13, rcx
mov r12, rdx
test rdx, rdx
je 0x140004ac1
mov rcx, rdx
call sym.strlen
mov r8, rax
mov rcx, r12
mov r9, r13
mov edx, 1
call sym.fwrite
mov rcx, r13
add rsp, 0x28
pop r12
pop r13
jmp sym.fflush
Function at 0x140004b80
Capabilities:
Write file on windows

Disassembly:
push r12
sub rsp, 0x20
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov r8d, 0x4b
mov edx, 1
lea rcx, str._GC__cannot_register_thread_local_variable__too_many_thread_local_variables
mov r12, rax
mov r9, rax
call sym.fwrite
mov rcx, r12
call sym.fflush
mov ecx, 1
call sym.exit
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140009cd0
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x20
mov rbx, rdx
mov r13, rcx
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov rcx, r13
mov r8, rbx
mov edx, 1
mov r12, rax
mov r9, rax
call sym.fwrite
mov rcx, r12
add rsp, 0x20
pop rbx
pop r12
pop r13
jmp sym.fflush

Function at 0x140010500
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
push r12
push rbx
sub rsp, 0x150
movaps xmmword [rbp - 0x20], xmm6
cmp qword [0x14004c978], 0
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov byte [rbp - 0x131], 1
je 0x1400105f2
mov rax, qword [0x14004c968]
lea rcx, [rbp - 0x120]
mov rdx, rbp
mov qword [rbp - 0x130], rax
lea rax, [rbp - 0x130]
mov qword [0x14004c968], rax
call sym._setjmp
cdqe
mov qword [rbp - 0x128], rax
test rax, rax
jne 0x140010618
xor r12d, r12d
cmp qword [rbp + 0x10], 0
je 0x1400105c3
mov rcx, qword [rbp + 0x10]
call sym.strlen
mov edx, 7
lea rcx, [0x140030020]
cmp rax, rdx
movq xmm6, rax
mov rbx, rax
cmovge rdx, rax
movq xmm0, rdx
add rdx, 0x11
punpcklqdq xmm6, xmm0
call sym.rawNewObj__system_5697.constprop.0
mov rdx, qword [rbp + 0x10]
lea r8, [rbx + 1]
movups xmmword [rax], xmm6
lea rcx, [rax + 0x10]
mov r12, rax
call sym.memcpy
mov rcx, r12
call qword [0x14004c978]
mov rax, qword [0x14004c968]
cmp qword [rbp - 0x128], 0
mov byte [rbp - 0x131], 0
mov rax, qword [rax]
mov qword [0x14004c968], rax
jne 0x140010685
movzx eax, byte [rbp - 0x131]
test al, al
jne 0x1400106a0
movaps xmm6, xmmword [rbp - 0x20]
add rsp, 0x150
pop rbx
pop r12
pop rbp
ret
mov rax, qword [0x14004c968]
mov rax, qword [rax]
mov qword [rbp - 0x128], 0
mov qword [0x14004c968], rax
mov rax, qword [0x14004c960]
mov rbx, qword [rax + 0x28]
test rbx, rbx
je 0x140010655
add qword [rbx - 0x10], 8
mov rax, qword [0x14004c960]
test rax, rax
je 0x140010670
mov rdx, qword [rax - 0x10]
lea rcx, [rax - 0x10]
sub rdx, 8
mov qword [rax - 0x10], rdx
cmp rdx, 7
ja 0x140010670
call sym.addZCT__system_5314.constprop.0
cmp qword [rbp - 0x128], 0
mov qword [0x14004c960], rbx
je 0x1400105f2
mov rcx, qword [0x14004c960]
test rcx, rcx
je 0x1400106d0
call sym.raiseExceptionAux__system_2868
jmp 0x1400105f2
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov rcx, qword [rbp + 0x10]
mov r8, qword [rbp + 0x18]
mov edx, 1
mov r12, rax
mov r9, rax
call sym.fwrite
mov rcx, r12
call sym.fflush
jmp 0x140010601
call sym.sysFatal__system_2900.constprop.0
nop
nop word cs:[rax + rax]
Function at 0x1400125e0
Capabilities:
Encode data using xor

Disassembly:
xor r9d, r9d
test rcx, rcx
je 0x14001263b
mov rdx, qword [rcx]
add rcx, 0x10
xor eax, eax
lea r8, [rcx + rdx]
test rdx, rdx
jle 0x14001263b
nop word [rax + rax]
movzx edx, byte [rcx]
add rcx, 1
add rdx, rax
mov rax, rdx
shl rax, 0xa
add rax, rdx
mov rdx, rax
shr rdx, 6
xor rax, rdx
cmp r8, rcx
jne 0x140012600
lea rdx, [rax + rax*8]
mov rax, rdx
shr rax, 0xb
xor rax, rdx
mov r9, rax
shl r9, 0xf
add r9, rax
mov rax, r9
ret

Function at 0x14001a5f0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [r8]
mov rbx, qword [r8 + 8]
mov rdi, rcx
mov rbp, rdx
test rcx, rcx
je 0x14001a621
mov rcx, qword [rcx]
lea rdx, [0x14004de60]
call sym.isObj
test al, al
je 0x14001a6c0
mov rax, qword [rbp]
test rsi, rsi
js 0x14001a688
test rax, rax
je 0x14001a670
mov rdx, qword [rax]
cmp rdx, rsi
jle 0x14001a690
add rbx, 1
jo 0x14001a6d4
sub rbx, rsi
jo 0x14001a6ca
test rbx, rbx
js 0x14001a6a0
mov rax, qword [rbp]
mov rcx, qword [rdi + 0x58]
mov r8, rbx
lea rdx, [rax + rsi + 0x10]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp sym.readBuffer__systemZio_144
mov rdx, 0xffffffffffffffff
mov rcx, rsi
call sym.raiseIndexError2
jmp 0x14001a637
test rax, rax
je 0x14001a670
mov rdx, qword [rax]
sub rdx, 1
jmp 0x14001a677
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rbx
call sym.raiseRangeErrorI
jmp 0x14001a64f
call sym.raiseObjectConversionError
jmp 0x14001a621
call sym.raiseOverflow
jmp 0x14001a64a
call sym.raiseOverflow
jmp 0x14001a641

Function at 0x14001a6e0
Capabilities:
Read file on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov r12, rdx
mov rsi, r8
test rcx, rcx
je 0x14001a709
mov rcx, qword [rcx]
lea rdx, [0x14004de60]
call sym.isObj
test al, al
je 0x14001a740
test rsi, rsi
js 0x14001a728
mov rcx, qword [rbx + 0x58]
mov r8, rsi
mov rdx, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
jmp sym.readBuffer__systemZio_144
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rsi
call sym.raiseRangeErrorI
jmp 0x14001a70e
call sym.raiseObjectConversionError
jmp 0x14001a709
Function at 0x140028660
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 r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x140029292
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14004fac8]
test eax, eax
je 0x14002932a
lea rax, [0x14004faa0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14004fad0]
mov qword [rbp - 8], rax
jmp 0x14002930e
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 0x140029302
cmp qword [rbp - 0x10], 0
je 0x140029302
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 0x1400292c8
lea rax, [0x14004faa0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14002932b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140029430
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 0x140029458
mov eax, 0
jmp 0x1400294a6
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 0x140029481
mov eax, 0
jmp 0x1400294a6
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 0x1400294a1
mov eax, 0
jmp 0x1400294a6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x1400294ac
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 0x14002952a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140029521
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 0x140029521
mov rax, qword [rbp - 8]
jmp 0x14002953f
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 0x1400294f4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d1030
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.2fc4d2110
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d1a32
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f4108]
test eax, eax
je 0x2fc4d1aca
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 0x2fc4d1aae
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 0x2fc4d1aa2
cmp qword [rbp - 0x10], 0
je 0x2fc4d1aa2
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 0x2fc4d1a68
lea rax, [0x2fc4f40e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d1acb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d1bd0
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 0x2fc4d1bf8
mov eax, 0
jmp 0x2fc4d1c46
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 0x2fc4d1c21
mov eax, 0
jmp 0x2fc4d1c46
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 0x2fc4d1c41
mov eax, 0
jmp 0x2fc4d1c46
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d1c4c
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 0x2fc4d1cca
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d1cc1
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 0x2fc4d1cc1
mov rax, qword [rbp - 8]
jmp 0x2fc4d1cdf
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 0x2fc4d1c94
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d1720
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.2fc4d2800
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d2122
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f4108]
test eax, eax
je 0x2fc4d21ba
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 0x2fc4d219e
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 0x2fc4d2192
cmp qword [rbp - 0x10], 0
je 0x2fc4d2192
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 0x2fc4d2158
lea rax, [0x2fc4f40e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d21bb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d22c0
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 0x2fc4d22e8
mov eax, 0
jmp 0x2fc4d2336
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 0x2fc4d2311
mov eax, 0
jmp 0x2fc4d2336
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 0x2fc4d2331
mov eax, 0
jmp 0x2fc4d2336
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d233c
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 0x2fc4d23ba
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d23b1
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 0x2fc4d23b1
mov rax, qword [rbp - 8]
jmp 0x2fc4d23cf
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 0x2fc4d2384
mov eax, 0
add rsp, 0x20
pop rbp
ret