joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400013b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140001428
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140001428
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140001415
nop
cmp rbx, rcx
jae 0x140001428
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140001400
cmp rbx, rcx
jae 0x140001428
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
jmp 0x14000142a
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140005360
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000e040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000538d
xor eax, eax
jmp 0x1400054f9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400053c7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400053c7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x1400054f9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400054ec
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000540a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140005435
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400054f1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400054a4
sub eax, 1
je 0x1400054a4
cmp eax, 2
jne 0x1400054ec
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400054f1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400054d2
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x1400054ec
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400054f1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140007700
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140005980
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000e040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140005a53
cmp byte [rcx + 0x71], 0
je 0x140005a53
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140005a4f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140005a14
sub eax, 1
je 0x140005a18
cmp eax, 2
jne 0x140005a4f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140007700
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140005a46
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140005a4f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400059fc
xor al, al
jmp 0x1400059fc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140007700
add rsp, 0x60
pop rbx
ret

Function at 0x140008204
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000824e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000824e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000824e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000824e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000824e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140008250
xor al, al
add rsp, 0x28
ret
Function at 0x140019940
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x140019ad0
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [0x1403a89c0]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.1400397a0
xorps xmm15, xmm15
mov r14, qword [0x14087a330]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x1400199a5
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x1400199c0
add rsp, 0x48
pop rbp
ret
call fcn.140054c40
mov rbx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x38]
sub rbx, rcx
nop dword [rax]
test rbx, rbx
jbe 0x1400199df
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x1400199ef
cmp rbx, 0x1000
jae 0x1400199ab
jmp 0x140019a5a
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x140019a02
xor edx, edx
nop
jmp 0x140019a51
mov rcx, qword [0x1403a89c0]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.1400397a0
xorps xmm15, xmm15
mov r14, qword [0x14087a330]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x1400199e5
jmp 0x1400199d4
call fcn.14006b900
xorps xmm15, xmm15
mov r14, qword [0x14087a330]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.14003d840
lea rax, [0x140445bdb]
mov ebx, 0x18
call fcn.14003e080
mov rax, qword [rsp + 0x38]
call fcn.14003dde0
lea rax, [0x140445e3a]
mov ebx, 0x19
call fcn.14003e080
mov rax, qword [rsp + 0x30]
call fcn.14003dde0
call fcn.14003da60
call fcn.14003d8a0
lea rax, [0x14044731d]
mov ebx, 0x21
call fcn.14003c000
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.140068380
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.140019940
Function at 0x140019b00
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x140019d2a
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov rcx, qword [0x1403a89b8]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.140039840
xorps xmm15, xmm15
mov r14, qword [0x14087a330]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x140019b73
mov rbx, qword [rsp + 0x68]
mov rax, rbx
jmp 0x140019b9a
add rsp, 0x50
pop rbp
ret
mov rax, rcx
nop dword [rax]
call fcn.140054c40
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
sub rbx, rcx
mov rcx, rax
mov rax, qword [rsp + 0x68]
test rbx, rbx
jbe 0x140019bbc
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov rdx, rbx
jmp 0x140019bcc
cmp rbx, 0x1000
jae 0x140019b79
jmp 0x140019c4e
add rsp, 0x50
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x140019bde
xor esi, esi
jmp 0x140019c40
mov rax, qword [0x1403a89b8]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.140039840
xorps xmm15, xmm15
mov r14, qword [0x14087a330]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x28], 0
sete al
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov esi, eax
mov rax, qword [rsp + 0x68]
nop dword [rax + rax]
test sil, sil
jne 0x140019bc2
jmp 0x140019bae
call fcn.14006b900
xorps xmm15, xmm15
mov r14, qword [0x14087a330]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov dword [rsp + 0x34], eax
cmp eax, 8
jne 0x140019cc9
call fcn.14003d840
lea rax, [0x140445e53]
mov ebx, 0x19
call fcn.14003e080
mov rax, qword [rsp + 0x68]
call fcn.14003dde0
lea rax, [0x140445e3a]
mov ebx, 0x19
nop dword [rax]
call fcn.14003e080
mov eax, dword [rsp + 0x34]
call fcn.14003dde0
call fcn.14003da60
call fcn.14003d8a0
lea rax, [0x1404443d0]
mov ebx, 0xd
call fcn.14003c000
cmp eax, 0x5af
je 0x140019c71
call fcn.14003d840
lea rax, [0x140445e53]
mov ebx, 0x19
call fcn.14003e080
mov rax, qword [rsp + 0x38]
call fcn.14003dde0
lea rax, [0x140445e3a]
mov ebx, 0x19
nop dword [rax]
call fcn.14003e080
mov eax, dword [rsp + 0x34]
call fcn.14003dde0
call fcn.14003da60
call fcn.14003d8a0
lea rax, [0x140446e63]
mov ebx, 0x1f
call fcn.14003c000
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.140068380
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.140019b00
Function at 0x140026180
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x140026286
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rsp + 0x70], rcx
mov byte [rsp + 0x17], dil
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x18], 0
jmp 0x1400261c3
mov rax, qword [rsp + 0x60]
mov rcx, rdx
mov rbx, qword [rsp + 0x68]
movzx edi, byte [rsp + 0x17]
cmp qword [rsp + 0x18], rbx
jae 0x14002627b
test byte [rax], al
lea rcx, [rax + 0x100b8]
mov ebx, edi
mov rax, rcx
nop dword [rax]
call fcn.140026f00
test rax, rax
je 0x14002627b
movups xmmword [rsp + 0x20], xmm15
movups xmmword [rsp + 0x30], xmm15
movups xmmword [rsp + 0x40], xmm15
lea rcx, [0x1400262c0]
mov qword [rsp + 0x20], rcx
lea rdx, [rsp + 0x18]
mov qword [rsp + 0x28], rdx
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rbx
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x48], rax
lea rbx, [rsp + 0x20]
mov qword [rsp], rbx
nop dword [rax]
call fcn.140068240
xorps xmm15, xmm15
mov r14, qword [0x14087a330]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rdx, qword [rsp + 0x70]
nop dword [rax]
test rdx, rdx
jne 0x140026269
xor eax, eax
jmp 0x140026273
mov rax, qword [rdx]
call rax
mov rdx, qword [rsp + 0x70]
test al, al
je 0x1400261b1
mov rax, qword [rsp + 0x18]
add rsp, 0x50
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov byte [rsp + 0x20], dil
call fcn.140068380
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
movzx edi, byte [rsp + 0x20]
jmp fcn.140026180

Function at 0x14005f260
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x14005f30f
push rbp
mov rbp, rsp
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x68]
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rsi, [0x14005f360]
mov qword [rsp + 0x10], rsi
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.140068240
xorps xmm15, xmm15
mov r14, qword [0x14087a330]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
add rsp, 0x58
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.140068380
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
nop dword [rax]
jmp fcn.14005f260
Function at 0x14006a1c0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x14000b17e
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x28], rbx
call fcn.14000b200
mov rbx, qword [rsp + 0x28]
xor rbx, rax
xor rbx, qword [0x14087a520]
movabs rcx, 0xe7037ed1a0b428db
xor rax, rcx
movabs rcx, 0xa0761d6478bd642f
xor rbx, rcx
call fcn.14000b1a0
mov rbx, rax
movabs rax, 0x1d8e4e27c47d1247
call fcn.14000b1a0
add rsp, 0x10
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.140068380
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x14000b120
cmp byte [0x14087a0cd], 0
je 0x14006a1f6
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x14087aa40]
aesenc xmm0, xmmword [0x14087aa50]
aesenc xmm0, xmmword [0x14087aa60]
movq rax, xmm0
ret
jmp 0x14000b120

Function at 0x14038c130
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140806ce0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14038c150
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14038c158
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14038c150
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x14038c1a5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14038c19c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14038c150
add rax, 0x28
cmp rax, r9
jne 0x14038c188
xor eax, eax
ret

Function at 0x14038c1b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140806ce0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14038c1d0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14038c1d8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x14038c1d0
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x14038c260
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140806ce0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14038c280
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x14038c288
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x2fc54e360
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc54ed62
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc571108]
test eax, eax
je 0x2fc54edfa
lea rax, [0x2fc5710e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc571110]
mov qword [rbp - 8], rax
jmp 0x2fc54edde
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 0x2fc54edd2
cmp qword [rbp - 0x10], 0
je 0x2fc54edd2
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 0x2fc54ed98
lea rax, [0x2fc5710e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc54edfb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc54ef00
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 0x2fc54ef28
mov eax, 0
jmp 0x2fc54ef76
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 0x2fc54ef51
mov eax, 0
jmp 0x2fc54ef76
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 0x2fc54ef71
mov eax, 0
jmp 0x2fc54ef76
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc54ef7c
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 0x2fc54effa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc54eff1
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 0x2fc54eff1
mov rax, qword [rbp - 8]
jmp 0x2fc54f00f
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 0x2fc54efc4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400015b5
Capabilities:
Create process on windows

Disassembly:
push rbp
push rdi
sub rsp, 0x648
lea rbp, [rsp + 0x80]
call dbg.__main
mov qword [rbp + 0x90], 0
mov qword [rbp + 0x98], 0
lea rdx, [rbp + 0xa0]
mov eax, 0
mov ecx, 0x7e
mov rdi, rdx
rep stosq qword [rdi], rax
lea rdx, [rbp + 0x20]
mov eax, 0
mov ecx, 0xe
mov rdi, rdx
rep stosq qword [rdi], rax
mov dword [rbp - 0x60], 0x63
mov dword [rbp - 0x5c], 0x3a
mov dword [rbp - 0x58], 0x5c
mov dword [rbp - 0x54], 0x77
mov dword [rbp - 0x50], 0x69
mov dword [rbp - 0x4c], 0x6e
mov dword [rbp - 0x48], 0x64
mov dword [rbp - 0x44], 0x6f
mov dword [rbp - 0x40], 0x77
mov dword [rbp - 0x3c], 0x73
mov dword [rbp - 0x38], 0x5c
mov dword [rbp - 0x34], 0x73
mov dword [rbp - 0x30], 0x79
mov dword [rbp - 0x2c], 0x73
mov dword [rbp - 0x28], 0x74
mov dword [rbp - 0x24], 0x65
mov dword [rbp - 0x20], 0x6d
mov dword [rbp - 0x1c], 0x33
mov dword [rbp - 0x18], 0x32
mov dword [rbp - 0x14], 0x5c
mov dword [rbp - 0x10], 0x63
mov dword [rbp - 0xc], 0x6d
mov dword [rbp - 8], 0x64
mov dword [rbp - 4], 0x2e
mov dword [rbp], 0x65
mov dword [rbp + 4], 0x78
mov dword [rbp + 8], 0x65
mov dword [rbp + 0xc], 0x20
mov dword [rbp + 0x10], 0x2f
mov dword [rbp + 0x14], 0x6b
lea rdx, [rbp + 0x90]
lea rax, [rbp - 0x60]
mov r8d, 0x1e
mov rcx, rax
call sym.asciiToString
lea rax, [rbp + 0x490]
mov r8d, 0x104
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call rax
test eax, eax
je 0x1400017ed
lea rax, [rbp + 0x490]
mov edx, 0x2e
mov rcx, rax
call sym.strrchr
mov qword [rbp + 0x5b0], rax
cmp qword [rbp + 0x5b0], 0
je 0x140001755
mov rax, qword [rbp + 0x5b0]
mov dword [rax], 0x7478742e
mov byte [rax + 4], 0
jmp 0x14000177b
lea rax, [rbp + 0x490]
mov rcx, rax
call sym.strlen
mov rdx, rax
lea rax, [rbp + 0x490]
add rax, rdx
mov dword [rax], 0x7478742e
mov byte [rax + 4], 0
lea rax, [rbp + 0x490]
lea rdx, section..rdata
mov rcx, rax
call sym.fopen
mov qword [rbp + 0x5a8], rax
cmp qword [rbp + 0x5a8], 0
je 0x1400017ed
mov rdx, qword [rbp + 0x5a8]
lea rax, [rbp + 0x90]
mov r8, rdx
mov edx, 0x400
mov rcx, rax
call sym.fgets
mov rax, qword [rbp + 0x5a8]
mov rcx, rax
call sym.fclose
lea rax, [rbp + 0x90]
lea rdx, [0x140004002]
mov rcx, rax
call sym.strcspn
mov byte [rbp + rax + 0x90], 0
lea rax, [rbp + 0x90]
mov qword [rbp + 0x5a0], rax
lea rax, [rbp + 0x90]
mov edx, 0x20
mov rcx, rax
call sym.strchr
mov qword [rbp + 0x5b8], rax
cmp qword [rbp + 0x5b8], 0
je 0x140001832
mov rax, qword [rbp + 0x5b8]
mov byte [rax], 0
add qword [rbp + 0x5b8], 1
mov dword [rbp + 0x20], 0x70
mov dword [rbp + 0x24], 0x40
mov qword [rbp + 0x28], 0
lea rax, str.open
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0x5a0]
mov qword [rbp + 0x38], rax
cmp qword [rbp + 0x5b8], 0
je 0x140001871
mov rax, qword [rbp + 0x5b8]
jmp 0x140001878
lea rax, [0x140004009]
mov qword [rbp + 0x40], rax
mov qword [rbp + 0x48], 0
mov dword [rbp + 0x50], 1
lea rax, [rbp + 0x20]
mov rcx, rax
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteExA]
call rax
mov eax, 0
add rsp, 0x648
pop rdi
pop rbp
ret
Function at 0x140001b80
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]