joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140013220
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0xa0], rbx
mov r15, rdx
mov rbx, rcx
cmp dword [rcx + 0x244], 0
jne 0x140013263
mov rdx, qword [rdx]
mov r14, 0xffffffffffffffff
jmp 0x14001341a
lea rdx, [0x1400656b8]
mov r14, 0xffffffffffffffff
mov rax, r14
inc rax
cmp word [rdx + rax*2], 0
jne 0x140013274
mov r8d, eax
mov rcx, r15
call fcn.140002920
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
cmp dword [rbx + 0x248], 0
je 0x140013398
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileType]
xor r13d, r13d
test al, 1
jne 0x14001336d
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
mov r9d, r14d
mov r8, qword [r15]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbx, eax
mov rcx, rbx
call fcn.140017048
mov rdi, rax
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, r14d
mov r8, qword [r15]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
call qword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov ebx, eax
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov r8, r14
inc r8
cmp byte [rdi + r8], r13b
jne 0x140013332
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x90]
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov rcx, rdi
jmp 0x140013411
mov rdx, qword [r15]
mov r8d, dword [rdx - 0x10]
add r8d, r8d
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x90]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
jmp 0x140013417
call qword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov ebp, eax
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov rcx, qword [r15]
movsxd rdi, dword [rcx - 0x10]
lea rcx, [rdi + 1]
call fcn.140017048
mov rsi, rax
mov r8, rdi
xor edx, edx
mov rcx, rax
call fcn.140038400
mov r8d, edi
mov rdx, rsi
mov rcx, qword [r15]
call qword [sym.imp.USER32.dll_CharToOemBuffW]
mov byte [rdi + rsi], 0
xor r13d, r13d
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x90]
mov r8d, edi
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov rcx, rsi
call fcn.140017040
nop
mov rdx, qword [r15]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], r14d
sub r14d, 1
jg 0x140013433
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0xa0]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140016300
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r14d, r8d
mov r15, rcx
mov rdi, r9
mov rbp, rdx
lea eax, [r14 + 1]
mov ecx, eax
mov ebx, eax
call fcn.140017048
mov r8d, ebx
xor edx, edx
mov rcx, rax
mov rsi, rax
call fcn.140038400
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rdi + r8], 0
jne 0x140016350
xor r9d, r9d
lea r10, [r15 + 0x40]
nop dword [rax]
nop word [rax + rax]
xor edx, edx
lea r10, [r10 + 1]
mov eax, r9d
div r8d
movzx eax, byte [rdx + rdi]
mov byte [r10 - 1], r9b
inc r9d
mov byte [r10 + 0xff], al
cmp r9d, 0xff
jle 0x140016370
xor r9b, r9b
lea r8, [r15 + 0x40]
mov r10d, 0x100
nop dword [rax]
nop dword [rax + rax]
movzx edx, byte [r8]
movzx eax, byte [r8 + 0x100]
lea r8, [r8 + 1]
add al, dl
add r9b, al
movzx ecx, r9b
movzx eax, byte [rcx + r15 + 0x40]
mov byte [r8 - 1], al
mov byte [rcx + r15 + 0x40], dl
sub r10, 1
jne 0x1400163b0
xor bl, bl
test r14d, r14d
je 0x140016439
mov r9, rsi
sub rbp, rsi
mov rdi, r14
nop
inc r10b
lea r9, [r9 + 1]
movzx edx, r10b
movzx r8d, byte [rdx + r15 + 0x40]
add bl, r8b
movzx ecx, bl
movzx eax, byte [rcx + r15 + 0x40]
mov byte [rdx + r15 + 0x40], al
mov byte [rcx + r15 + 0x40], r8b
movzx eax, byte [rdx + r15 + 0x40]
add r8, rax
movzx eax, r8b
movzx ecx, byte [rax + r15 + 0x40]
xor cl, byte [r9 + rbp - 1]
mov byte [r9 - 1], cl
sub rdi, 1
jne 0x1400163f0
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x140016ad0
Capabilities:
Accept command line arguments

Disassembly:
push rdi
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov r14, rdx
movsxd rsi, ecx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rbx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
xor r9d, r9d
mov r8, rbx
xor edx, edx
call fcn.140027c60
test eax, eax
jne 0x140016b33
lea rcx, str.Fatal_Error:_MFC_initialization_failed_n
call fcn.140001c10
mov eax, 1
jmp 0x140016c8f
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov ecx, 0x2c0
call fcn.140016ff8
mov qword [rsp + 0x68], rax
test rax, rax
je 0x140016b5c
mov rcx, rax
call fcn.140010cf0
mov rdi, rax
jmp 0x140016b5e
xor edi, edi
mov rbp, rsi
cmp rsi, 1
jle 0x140016c4a
mov esi, 1
lea r15, str.____
mov rbx, qword [r14 + rsi*8]
call fcn.1400179f4
test rax, rax
je 0x140016ca8
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsp + 0x68], rax
mov rdx, rbx
lea rcx, [rsp + 0x68]
call fcn.140001f80
test al, al
jne 0x140016bdb
test rbx, rbx
jne 0x140016bb5
xor eax, eax
jmp 0x140016bca
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x140016bc0
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x68]
call fcn.140002300
nop
mov rbx, qword [rsp + 0x68]
cmp qword [rdi + 0x2a8], 0
jne 0x140016c0e
xor eax, eax
nop dword [rax]
movzx ecx, word [rbx + rax*2]
inc rax
cmp cx, word [r15 + rax*2 - 2]
jne 0x140016c0e
cmp rax, 8
jne 0x140016bf0
mov byte [rdi + 0x240], 1
jmp 0x140016c22
lea rcx, [rdi + 0x298]
mov r8, rbx
mov rdx, qword [rcx + 0x10]
call fcn.140017648
nop
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140016c3e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
inc rsi
cmp rsi, rbp
jl 0x140016b77
mov rcx, rdi
call fcn.140011cf0
cmp byte [rdi + 0x240], 0
jne 0x140016c7f
mov rax, qword [rdi + 0x260]
cmp dword [rax - 0x10], 0
je 0x140016c7f
mov rax, qword [rdi + 0x268]
cmp dword [rax - 0x10], 0
je 0x140016c7f
mov rcx, rdi
call fcn.140011850
jmp 0x140016c8f
call fcn.14000c970
mov rcx, rax
mov rdx, rdi
call fcn.14000cde0
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
mov ecx, 0x80004005
call fcn.1400024c0
int3
Function at 0x14001bd30
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rbx, r8
mov rcx, qword [rcx + 0x40]
call fcn.14002c7c4
mov rdi, rax
test rax, rax
je 0x14001bdac
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov esi, eax
test rbx, rbx
je 0x14001bda7
cmp dword [rbx], 0x40
jb 0x14001bda7
mov rcx, qword [rbp + 0x40]
xor r9d, r9d
or dword [rbx + 4], 1
xor r8d, r8d
or qword [rbx + 0x30], 0xffffffffffffffff
mov edx, 0x87
mov qword [rbx + 8], rcx
mov rcx, rdi
mov qword [rbx + 0x10], rdi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xd
jb 0x14001bda7
or dword [rbx + 4], 0x80000002
mov rax, rsi
jmp 0x14001bdb0
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140021f34
Capabilities:
Get graphical window text

Disassembly:
sub rsp, 0x78
test rdx, rdx
je 0x140021f9c
mov r10, qword [rcx + 0x10]
test r10, r10
je 0x140021f86
cmp qword [rcx + 0x18], 0
jne 0x140021f81
mov eax, dword [rcx + 0xc]
cmp eax, dword [rcx + 0x30]
jae 0x140021fa2
mov qword [rsp + 0x58], rdx
lea r9, [rsp + 0x20]
mov dword [rsp + 0x20], 0x50
mov edx, eax
mov dword [rsp + 0x24], 0x40
mov r8d, 1
mov rcx, qword [r10 + 8]
call qword [sym.imp.USER32.dll_SetMenuItemInfoW]
add rsp, 0x78
ret
mov rcx, qword [rcx + 0x20]
test rcx, rcx
je 0x140021f9c
mov rcx, qword [rcx + 0x40]
add rsp, 0x78
jmp 0x14002c704
call fcn.140017cfc
int3
call fcn.140017cfc
int3
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x230
mov rax, qword [0x14007a6a0]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov rbx, rdx
mov rdi, rcx
test rcx, rcx
je 0x14002c7bb
test rdx, rdx
je 0x14002c7bb
mov rcx, rdx
call fcn.14003d7cc
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x200
mov rsi, rax
call fcn.140038400
mov eax, 0x100
cmp rsi, rax
ja 0x14002c78a
mov r8d, eax
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, esi
jne 0x14002c78a
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x14002c796
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.1400361e0
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.140017cfc
int3
Function at 0x140029914
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x14002997b
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002998f
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14002998f
mov rcx, qword [rbx]
xor r9d, r9d
and qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rdi
mov rcx, rsi
call qword [case.0x14001b3ee.0]
jmp 0x140029994
cmp dword [rcx + 8], 0
je 0x14002998f
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x140029994
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x14002f578
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
cmp qword [rcx + 0xb0], 0
mov edi, r9d
mov rbx, r8
mov rax, rdx
je 0x14002f5f3
xor r8d, r8d
call fcn.14002f840
mov rsi, rax
test rax, rax
je 0x14002f5ef
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x30]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14002f5ef
mov eax, dword [rsp + 0x30]
jmp 0x14002f609
mov eax, edi
jmp 0x14002f609
mov r9, qword [rcx + 0xd8]
mov r8d, edi
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x14003148c
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, rdx
mov rcx, qword [rdx]
cmp dword [rcx - 0x10], 0
je 0x1400314be
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400314be
lea rcx, [rdi + 0x120]
mov rdx, rbx
call fcn.1400348e4
mov rbx, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x20
pop rdi
ret

Function at 0x1400314d0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x1400314f6
mov r8, rdx
mov rdx, qword [rbx]
call fcn.140029914
jmp 0x140031561
cmp byte [0x14007ff38], 0
jne 0x14003153a
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003152a
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14007ff30], rax
jmp 0x140031531
mov rax, qword [0x14007ff30]
mov byte [0x14007ff38], 1
jmp 0x140031541
mov rax, qword [0x14007ff30]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x14003155b
mov r8d, dword [rbx + 8]
xor r9d, r9d
call qword [case.0x14001b3ee.0]
jmp 0x140031561
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140040e80
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140040cac
Function at 0x2fc4d3f40
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.2fc4d5020
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d4942
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f7108]
test eax, eax
je 0x2fc4d49da
lea rax, [0x2fc4f70e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f7110]
mov qword [rbp - 8], rax
jmp 0x2fc4d49be
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 0x2fc4d49b2
cmp qword [rbp - 0x10], 0
je 0x2fc4d49b2
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 0x2fc4d4978
lea rax, [0x2fc4f70e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d49db
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d4ae0
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 0x2fc4d4b08
mov eax, 0
jmp 0x2fc4d4b56
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 0x2fc4d4b31
mov eax, 0
jmp 0x2fc4d4b56
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 0x2fc4d4b51
mov eax, 0
jmp 0x2fc4d4b56
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d4b5c
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 0x2fc4d4bda
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d4bd1
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 0x2fc4d4bd1
mov rax, qword [rbp - 8]
jmp 0x2fc4d4bef
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 0x2fc4d4ba4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d5ef0
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.2fc4d6fd0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d68f2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f9108]
test eax, eax
je 0x2fc4d698a
lea rax, [0x2fc4f90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f9110]
mov qword [rbp - 8], rax
jmp 0x2fc4d696e
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 0x2fc4d6962
cmp qword [rbp - 0x10], 0
je 0x2fc4d6962
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 0x2fc4d6928
lea rax, [0x2fc4f90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d698b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d6a90
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 0x2fc4d6ab8
mov eax, 0
jmp 0x2fc4d6b06
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 0x2fc4d6ae1
mov eax, 0
jmp 0x2fc4d6b06
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 0x2fc4d6b01
mov eax, 0
jmp 0x2fc4d6b06
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d6b0c
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 0x2fc4d6b8a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d6b81
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 0x2fc4d6b81
mov rax, qword [rbp - 8]
jmp 0x2fc4d6b9f
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 0x2fc4d6b54
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d58f0
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.2fc4d69d0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d62f2
Capabilities:
Get thread local storage value

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

Function at 0x2fc4d6490
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 0x2fc4d64b8
mov eax, 0
jmp 0x2fc4d6506
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 0x2fc4d64e1
mov eax, 0
jmp 0x2fc4d6506
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 0x2fc4d6501
mov eax, 0
jmp 0x2fc4d6506
mov eax, 1
add rsp, 0x20
pop rbp
ret