joyce8/EMBER2024-capa huggingface dataset:
Function at 0x444f30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rbx
sub rsp, 0x28
test rcx, rcx
mov rbx, rcx
jne 0x444f47
jmp 0x444fd0
mov rbx, qword [rbx + 0x28]
movzx eax, byte [rbx + 0x18]
sub eax, 6
cmp al, 1
jbe 0x444f43
cmp dword [rbx + 0x3c], 0xffffffff
je 0x444fd0
movzx ecx, byte [rbx + 0x64]
xor eax, eax
test cl, 8
jne 0x444fc7
movzx eax, byte [rdx]
mov esi, 1
mov r9d, eax
and r9d, 3
cmp r9b, 1
jbe 0x444f85
movzx r9d, byte [rbx + 0x65]
xor esi, esi
test r9b, 4
je 0x444fe0
movzx ecx, byte [rbx + 0x61]
and ecx, 3
je 0x444fae
xor eax, eax
cmp cl, 2
jbe 0x444fc7
cmp cl, 3
jne 0x444fae
mov rdx, qword [rdx + 0x28]
cmp dword [rdx + 0x40], 1
jne 0x444fc7
test r8d, r8d
jne 0x44501c
mov esi, 1
movzx edx, byte [rbx + 0x63]
test dl, 2
jne 0x445010
and edx, 0xa
mov eax, 1
jne 0x444fc7
cmp byte [rbx + 0x18], 3
je 0x445010
add rsp, 0x28
pop rbx
pop rsi
ret
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
test al, 4
mov esi, 1
jne 0x444f85
and r9d, 0x10
jne 0x444f85
xor esi, esi
test byte [rdx + 6], 2
je 0x444f85
shr cl, 4
xor ecx, 1
mov esi, ecx
and esi, 1
jmp 0x444f85
mov eax, esi
xor eax, 1
add rsp, 0x28
pop rbx
pop rsi
ret
mov rax, qword [rdx + 0x68]
movzx ecx, byte [rbx + 0x60]
mov rax, qword [rax + 8]
mov rax, qword [rax + 0x370]
call qword [rax + 0x2e8]
test eax, eax
jne 0x444fae
jmp 0x444fa9
Function at 0x451340
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [rsp + 0x60]
mov rbx, r8
mov r8, qword [r9 + 8]
mov r11, rcx
mov ecx, dword [r9 + 0x40]
mov r10, rdx
mov rax, qword [r8 + 8]
shr rax, cl
test eax, eax
je 0x451430
mov eax, eax
cmp rax, qword [r9 + 0x28]
jb 0x4513f0
sub rax, qword [r9 + 0x30]
mov rdx, qword [r9 + 0x38]
mov r9, qword [rdx + rax*8]
test r9, r9
jne 0x451394
jmp 0x451439
mov r9, qword [r9 + 0x28]
movzx eax, byte [r9 + 0x18]
sub eax, 6
cmp al, 1
jbe 0x451390
movzx edx, byte [r9 + 0x65]
or byte [r9 + 0x64], 0x20
mov rax, r9
test dl, 0x20
je 0x4513c0
mov rax, qword [rax + 0x70]
or byte [rax + 0x64], 0x20
test byte [rax + 0x65], 0x20
jne 0x4513b2
test rsi, rsi
je 0x451414
and edx, 0x10
je 0x451414
mov rax, qword [r9 + 0x80]
movzx edx, byte [rax + 0x2c]
shr dl, 3
xor edx, 1
and edx, 1
mov dword [rsi], edx
add rsp, 0x28
pop rbx
pop rsi
ret
mov rdx, rax
shl rdx, 5
add rdx, qword [r9 + 0x18]
movzx ecx, byte [rdx + 0x14]
shr cl, 4
test cl, cl
jne 0x451373
mov qword [rsp + 0x60], rdx
xor r9d, r9d
jmp 0x45141d
mov qword [rsp + 0x60], 0
mov rdx, r11
mov rcx, r10
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
jmp rax
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rax, qword [r11 + 0x20]
mov rdx, qword [r10 + 0xf8]
lea rcx, str._F_P:_corrupt_input:__pB_n
call qword [rax + 0x58]
xor eax, eax
jmp 0x4513e0
Function at 0x465080
Capabilities:
Encode data using xor

Disassembly:
xor r9d, r9d
mov r8d, 1
mov rdx, rcx
lea rcx, [0x00521520]
jmp fcn.0040eb60

Function at 0x465c00
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov eax, dword [rcx + 0x44]
mov rdi, rcx
mov rbp, rdx
mov esi, r8d
mov ebx, r9d
test eax, eax
jne 0x465d10
mov r14d, dword [rcx + 0x40]
xor r13d, r13d
test r14d, r14d
je 0x465c60
lea eax, [r14 - 1]
xor r13d, r13d
lea r8, [rdx + rax + 1]
nop
add rdx, 1
movzx ecx, byte [rdx - 1]
mov eax, ecx
shl eax, 0x11
add eax, ecx
add r13d, eax
mov eax, r13d
shr eax, 2
xor r13d, eax
cmp rdx, r8
jne 0x465c40
xor edx, edx
mov eax, r13d
div dword [rdi + 0x18]
mov rax, qword [rdi]
mov edx, edx
mov r12, qword [rax + rdx*8]
test r12, r12
je 0x465cd0
mov r15d, r14d
jmp 0x465c89
mov r12, qword [r12]
test r12, r12
je 0x465cd0
cmp r13d, dword [r12 + 0x10]
jne 0x465c80
cmp r14d, dword [r12 + 0x18]
jne 0x465c80
mov rcx, qword [r12 + 8]
mov r8, r15
mov rdx, rbp
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x465c80
cmp dword [r12 + 0x1c], esi
jae 0x465cf5
test ebx, ebx
je 0x465dd5
mov dword [r12 + 0x18], 0
mov dword [r12 + 0x1c], 0
jmp 0x465cd8
test ebx, ebx
je 0x465dd5
mov r8d, r13d
mov rdx, rbp
mov rcx, rdi
call fcn.0040e970
test rax, rax
mov r12, rax
je 0x465cf5
mov dword [rax + 0x18], r14d
mov dword [rax + 0x1c], esi
mov rax, r12
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r9d, dword [rcx + 0x40]
cmp r9d, 1
je 0x465ddd
lea r13d, [r9 - 1]
xor r12d, r12d
xor eax, eax
mov r10, rdx
add r13, 1
test r9d, r9d
je 0x465dd0
nop word [rax + rax]
movzx edx, byte [r10]
lea r8, [r10 + 1]
xor ecx, ecx
mov r11, r8
test dl, dl
je 0x465d5e
jmp 0x465d90
add r11, 1
cmp byte [r11 - 1], 0
jne 0x465d90
add ecx, 1
cmp r9d, ecx
jne 0x465d53
mov r14d, r12d
imul r14d, r9d
add eax, r12d
shl r12d, 0x11
add eax, r12d
mov r13d, eax
shr r13d, 2
xor r13d, eax
add r14d, r9d
jmp 0x465c60
lea r11, [r10 + r13]
jmp 0x465da8
movzx edx, byte [r8]
add r8, 1
movzx ecx, dl
mov r10, r8
mov edx, ecx
shl edx, 0x11
add edx, ecx
add eax, edx
mov edx, eax
shr edx, 2
xor eax, edx
cmp r8, r11
jne 0x465da0
add r12d, 1
test r9d, r9d
jne 0x465d40
xor r14d, r14d
jmp 0x465d6d
xor r12d, r12d
jmp 0x465cf5
lea r8, [rdx + 1]
movzx edx, byte [rdx]
test edx, edx
je 0x465e2d
xor r14d, r14d
xor eax, eax
nop dword [rax]
mov ecx, edx
add r14d, 1
add r8, 1
shl ecx, 0x11
add edx, ecx
add eax, edx
mov edx, eax
shr edx, 2
xor eax, edx
movzx edx, byte [r8 - 1]
test edx, edx
jne 0x465df0
mov r13d, r14d
add eax, r14d
shl r13d, 0x11
add eax, r13d
mov r13d, eax
shr r13d, 2
xor r13d, eax
jmp 0x465d81
xor r13d, r13d
xor r14d, r14d
jmp 0x465d81
Function at 0x4852c0
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb8
mov eax, dword [rcx + 8]
mov rdi, qword [rcx]
mov r8d, 1
mov r14, qword [rcx + 0x28]
mov rbp, qword [rcx + 0x10]
mov r15, rcx
mov r11d, r8d
sub eax, 5
add rax, rdi
mov r12d, dword [r14 + 0x3c]
mov rbx, rbp
mov qword [rsp], rax
mov eax, dword [rcx + 0x18]
mov ecx, dword [r14 + 0x70]
mov rsi, qword [r14 + 0x60]
mov r10d, r12d
sub edx, eax
sub eax, 0x101
shl r11d, cl
add rax, rbp
sub rbx, rdx
mov ecx, r11d
mov qword [rsp + 8], rax
mov eax, dword [r14 + 0x34]
sub ecx, 1
mov qword [rsp + 0x30], rbx
mov ebx, dword [r14 + 0x38]
mov dword [rsp + 0x10], ecx
mov ecx, dword [r14 + 0x74]
mov dword [rsp + 0x14], eax
mov rax, qword [r14 + 0x40]
mov dword [rsp + 0x40], ebx
mov edx, dword [r14 + 0x4c]
shl r8d, cl
mov rbx, qword [r14 + 0x68]
lea ecx, [r8 - 1]
mov r9, rax
mov qword [rsp + 0x18], rax
mov eax, dword [r14 + 0x48]
mov dword [rsp + 0x24], ecx
mov rcx, r9
neg rcx
and ecx, 0xf
cmp ecx, r12d
cmova ecx, r12d
sub r10d, ecx
mov r11d, ecx
mov dword [rsp + 0x28], ecx
lea ecx, [r10 - 0x10]
mov dword [rsp + 0x50], r10d
shr ecx, 4
add ecx, 1
mov dword [rsp + 0x4c], ecx
shl ecx, 4
mov r10d, ecx
mov dword [rsp + 0x48], ecx
lea ecx, [r12 - 1]
mov r13d, r10d
mov r10d, dword [rsp + 0x14]
mov r8d, ecx
mov dword [rsp + 0x20], ecx
mov qword [rsp + 0x38], r13
sub r8d, r11d
mov r13d, 1
add r10d, r12d
mov dword [rsp + 0x44], r8d
mov dword [rsp + 0x54], r10d
lea r10, [r9 + 0x10]
mov qword [rsp + 0x58], r10
mov ecx, dword [rsp + 0x20]
mov dword [rsp + 0x2c], r12d
mov qword [rsp + 0x60], rcx
add rcx, 1
mov qword [rsp + 0x68], rcx
mov ecx, r11d
add r9, rcx
add rcx, 1
mov qword [rsp + 0x70], r9
mov qword [rsp + 0x78], rcx
Function at 0x48fc10
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x18]
mov esi, edx
mov rbx, rcx
movzx edx, byte [rax]
cmp dl, 0x5f
je 0x48fc57
test esi, esi
jne 0x48fc31
cmp dl, 0x5a
je 0x48fc3e
xor edi, edi
mov rax, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
add rax, 1
xor edx, edx
mov rcx, rbx
mov qword [rbx + 0x18], rax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp fcn.0048f4e0
lea rdx, [rax + 1]
mov qword [rcx + 0x18], rdx
cmp byte [rax + 1], 0x5a
jne 0x48fc31
add rax, 2
mov edx, esi
mov qword [rcx + 0x18], rax
call fcn.0048f4e0
test esi, esi
mov rdi, rax
je 0x48fc33
test byte [rbx + 0x10], 1
je 0x48fc33
mov rdx, qword [rbx + 0x18]
cmp byte [rdx], 0x2e
jne 0x48fc33
movzx eax, byte [rdx + 1]
lea ecx, [rax - 0x61]
cmp cl, 0x19
jbe 0x48fd0e
cmp al, 0x5f
je 0x48fd0e
sub eax, 0x30
cmp al, 9
ja 0x48fc33
movzx eax, byte [rdx]
mov r8, rdx
cmp al, 0x2e
jne 0x48fce4
nop dword [rax + rax]
movzx eax, byte [r8 + 1]
sub eax, 0x30
cmp al, 9
ja 0x48fce4
movzx eax, byte [r8 + 2]
lea r9, [r8 + 2]
mov r8, r9
lea ecx, [rax - 0x30]
cmp cl, 9
ja 0x48fca7
add r8, 1
movzx eax, byte [r8]
lea ecx, [rax - 0x30]
cmp cl, 9
jbe 0x48fcd0
cmp al, 0x2e
je 0x48fcb0
mov qword [rbx + 0x18], r8
mov rcx, rbx
sub r8d, edx
call fcn.004878f0
mov r8, rdi
mov r9, rax
mov edx, 0x4e
mov rcx, rbx
call fcn.004872a0
mov rdi, rax
jmp 0x48fc81
movzx eax, byte [rdx + 2]
lea r8, [rdx + 2]
lea ecx, [rax - 0x61]
cmp cl, 0x19
ja 0x48fd30
nop
add r8, 1
movzx eax, byte [r8]
lea ecx, [rax - 0x61]
cmp cl, 0x19
jbe 0x48fd20
cmp al, 0x5f
je 0x48fd20
jmp 0x48fca7
Function at 0x4980d0
Capabilities:
Query environment variable

Disassembly:
mov r9d, 1
jmp fcn.00497be0

Function at 0x4980f0
Capabilities:
Get common file path

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rax, qword [0x005215c0]
test rax, rax
je 0x498110
add rsp, 0x28
pop rbx
pop rsi
ret
xor edx, edx
xor ecx, ecx
mov rsi, qword [sym.imp.KERNEL32.dll_GetTempPathA]
call rsi
test eax, eax
mov ebx, eax
jne 0x498145
mov rax, qword [0x005215c0]
test rax, rax
jne 0x498102
nop
lea rcx, [0x0050a270]
call fcn.00499860
mov qword [0x005215c0], rax
jmp 0x498102
mov ecx, eax
call fcn.00499790
mov ecx, ebx
mov qword [0x005215c0], rax
mov rdx, rax
call rsi
test eax, eax
jne 0x498123
mov rcx, qword [0x005215c0]
call sub.msvcrt.dll_free
mov qword [0x005215c0], 0
jmp 0x498130

Function at 0x49a1e0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rsi, rcx
mov ecx, dword [0x00521d44]
mov rdi, rdx
mov rbp, r8
test ecx, ecx
jle 0x49a2f8
mov rax, qword [0x00521d48]
xor ebx, ebx
add rax, 8
mov rdx, qword [rax]
cmp rsi, rdx
jb 0x49a22c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rsi, rdx
jb 0x49a2de
add ebx, 1
add rax, 0x18
cmp ebx, ecx
jne 0x49a210
mov rcx, rsi
call fcn.0049ae40
test rax, rax
mov r12, rax
je 0x49a330
movsxd rbx, ebx
lea rbx, [rbx + rbx*2]
shl rbx, 3
mov r13, rbx
add r13, qword [0x00521d48]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call fcn.0049af90
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x00521d48]
mov rcx, qword [rax + rbx + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x49a313
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x49a2d7
sub eax, 4
and eax, 0xfffffffb
je 0x49a2d7
add rbx, qword [0x00521d48]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x49a2ff
add dword [0x00521d44], 1
mov r8, rbp
mov rdx, rdi
mov rcx, rsi
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sub.msvcrt.dll_memcpy
xor ebx, ebx
jmp 0x49a237
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.0049a170
mov rax, qword [0x00521d48]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 8]
call fcn.0049a170
lea rcx, str.Address__p_has_no_image_section
mov rdx, rsi
call fcn.0049a170
nop
Function at 0x49aab0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00522020]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00522000]
test rbx, rbx
je 0x49ab04
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x49aafb
test rsi, rsi
je 0x49aafb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x49aae0
lea rcx, [0x00522020]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x49ae40
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x0050ad20]
xor edx, edx
mov r8, rcx
cmp word [r9], 0x5a4d
je 0x49ae60
mov rax, rdx
add rsp, 0x28
ret
mov rcx, r9
call fcn.0049ad20
test eax, eax
je 0x49ae58
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add rax, r9
movzx edx, word [rax + 0x14]
lea rdx, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x49aebd
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x49aeb4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x49ae58
add rdx, 0x28
cmp rdx, r9
jne 0x49aea0
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x49b180
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x138
mov rbx, rcx
call sub.msvcrt.dll__errno
test rbx, rbx
mov dword [rax], 0
je 0x49b30c
cmp byte [rbx], 0
je 0x49b2d4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x49b2f0
test al, 0x10
je 0x49b2d4
lea rdi, [rsp + 0x20]
mov r8d, 0x104
mov rdx, rbx
mov rcx, rdi
mov rsi, rdi
call sub.msvcrt.dll__fullpath
mov edx, dword [rsi]
add rsi, 4
lea eax, [rdx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x49b1de
mov edx, eax
shr edx, 0x10
test eax, 0x8080
cmove eax, edx
lea rdx, [rsi + 2]
mov ecx, eax
cmove rsi, rdx
add cl, al
sbb rsi, 3
sub rsi, rdi
lea rcx, [rsi + 0x24b]
call sub.msvcrt.dll_malloc
test rax, rax
mov rbx, rax
je 0x49b2ff
lea r9, [rax + 0x244]
lea rbp, [rsi + 1]
mov rdx, rdi
mov rcx, r9
mov r8, rbp
call sub.msvcrt.dll_memcpy
cmp byte [rbx + 0x244], 0
mov r9, rax
je 0x49b270
movzx eax, byte [rbx + rsi + 0x243]
cmp al, 0x2f
je 0x49b270
cmp al, 0x5c
je 0x49b270
mov r8d, 0x5c
mov word [r9 + rsi], r8w
mov rsi, rbp
mov eax, 0x2a
xor edx, edx
xor ecx, ecx
mov word [r9 + rsi], ax
mov word [rbx + 0x12c], dx
lea rdx, [rbx + 0x130]
mov word [rbx + 0x12e], cx
xor eax, eax
mov ecx, 0x20
mov rdi, rdx
mov qword [rbx + 0x238], 0xffffffffffffffff
mov dword [rbx + 0x240], 0
mov dword [rbx + 0x128], 0
rep stosq qword [rdi], rax
mov dword [rdi], 0
mov rax, rbx
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ebx, ebx
call sub.msvcrt.dll__errno
mov dword [rax], 0x14
mov rax, rbx
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [rax], 2
jmp 0x49b2c5
call sub.msvcrt.dll__errno
mov dword [rax], 0xc
jmp 0x49b2c5
call sub.msvcrt.dll__errno
mov dword [rax], 0xe
jmp 0x49b2c5
Function at 0x2fc53d4c0
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.2fc53e5a0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc53dec2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc560108]
test eax, eax
je 0x2fc53df5a
lea rax, [0x2fc5600e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc560110]
mov qword [rbp - 8], rax
jmp 0x2fc53df3e
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 0x2fc53df32
cmp qword [rbp - 0x10], 0
je 0x2fc53df32
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 0x2fc53def8
lea rax, [0x2fc5600e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc53df5b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc53e060
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 0x2fc53e088
mov eax, 0
jmp 0x2fc53e0d6
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 0x2fc53e0b1
mov eax, 0
jmp 0x2fc53e0d6
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 0x2fc53e0d1
mov eax, 0
jmp 0x2fc53e0d6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc53e0dc
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 0x2fc53e15a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc53e151
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 0x2fc53e151
mov rax, qword [rbp - 8]
jmp 0x2fc53e16f
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 0x2fc53e124
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d51c0
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.2fc4d62a0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d5bc2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f8108]
test eax, eax
je 0x2fc4d5c5a
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 0x2fc4d5c3e
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 0x2fc4d5c32
cmp qword [rbp - 0x10], 0
je 0x2fc4d5c32
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 0x2fc4d5bf8
lea rax, [0x2fc4f80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d5c5b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d5d60
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 0x2fc4d5d88
mov eax, 0
jmp 0x2fc4d5dd6
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 0x2fc4d5db1
mov eax, 0
jmp 0x2fc4d5dd6
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 0x2fc4d5dd1
mov eax, 0
jmp 0x2fc4d5dd6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d5ddc
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 0x2fc4d5e5a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d5e51
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 0x2fc4d5e51
mov rax, qword [rbp - 8]
jmp 0x2fc4d5e6f
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 0x2fc4d5e24
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400021d0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140002250
Capabilities:
Parse pe header

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

Function at 0x140002310
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400097e0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000232f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002338
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret