joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402629f0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
cmp qword [rdx + 0x18], 0x10
jb 0x1402629fe
mov rdx, qword [rdx]
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x140263670
Capabilities:
Get disk information

Disassembly:
push rdi
sub rsp, 0xb0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x1403c2c80]
xor rax, rsp
mov qword [rsp + 0xa0], rax
xor dil, dil
mov qword [rsp + 0x40], shutdown
mov qword [rsp + 0x38], 0
mov byte [rsp + 0x28], dil
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rsp + 0x28]
call fcn.1400082f0
nop
mov r9d, 2
xor r8d, r8d
lea rdx, [0x14032440c]
lea rcx, [rsp + 0x28]
call fcn.14000dc90
cmp rax, 0xffffffffffffffff
je 0x140263759
mov r9, rax
xor r8d, r8d
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x28]
call fcn.14000cc30
nop
lea r8, [0x14032440c]
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.14000d330
nop
cmp qword [rsp + 0x90], 0x10
jb 0x140263720
mov rcx, qword [rsp + 0x78]
call fcn.140290ed8
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 4
sete dil
cmp qword [rsp + 0x68], 0x10
jb 0x140263750
mov rcx, qword [rsp + 0x50]
call fcn.140290ed8
test dil, dil
jne 0x14026381a
mov r9d, 2
xor r8d, r8d
lea rdx, [0x1403223c8]
lea rcx, [rsp + 0x28]
call fcn.14000dc90
cmp rax, 0xffffffffffffffff
jne 0x14026381a
mov rcx, qword [rsp + 0x38]
inc rcx
call sub.mfc100.dll_Ordinal_265
mov r11, rax
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rdx, qword [rsp + 0x28]
mov rcx, rax
sub rcx, rdx
nop word [rax + rax]
movzx eax, byte [rdx]
mov byte [rcx + rdx], al
inc rdx
test al, al
jne 0x1402637b0
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r11
repne scasb al, byte [rdi]
not rcx
dec rcx
cmp rcx, 2
jbe 0x1402637e6
cmp byte [r11], 0x5c
jne 0x1402637e6
cmp byte [r11 + 1], 0x5c
jne 0x1402637e6
mov dil, 1
jmp 0x14026381a
call fcn.14006c390
mov rdi, qword [rax + 0x20]
call fcn.14006c390
lea rdx, [rax + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x140263802
mov rdx, qword [rdx]
mov r9, rdi
xor r8d, r8d
lea rcx, [rsp + 0x28]
call fcn.14000dc90
cmp rax, 0xffffffffffffffff
sete dil
cmp qword [rsp + 0x40], 0x10
jb 0x14026382c
mov rcx, qword [rsp + 0x28]
call fcn.140290ed8
movzx eax, dil
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1402912a0
add rsp, 0xb0
pop rdi
ret
Function at 0x140264fe0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x130
mov rax, qword [0x1403c2c80]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rbx, r8
xor r8d, r8d
mov rdi, rdx
mov rsi, rcx
call fcn.140264c20
test al, al
je 0x140265096
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call fcn.140264c20
test al, al
je 0x140265096
cmp qword [rbx + 0x18], 0x10
jb 0x140265037
mov rdx, qword [rbx]
jmp 0x14026503a
mov rdx, rbx
cmp qword [rdi + 0x18], 0x10
jb 0x140265046
mov rcx, qword [rdi]
jmp 0x140265049
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
setne sil
test sil, sil
jne 0x140265090
cmp qword [rbx + 0x18], 0x10
jb 0x140265064
mov rbx, qword [rbx]
cmp qword [rdi + 0x18], 0x10
jb 0x14026506e
mov rdi, qword [rdi]
lea rdx, str.Unable_to_rename__s_to__s
lea rcx, [rsp + 0x20]
mov r9, rbx
mov r8, rdi
call qword [sym.imp.MSVCR100.dll_sprintf]
lea rcx, [rsp + 0x20]
call fcn.140262930
movzx eax, sil
jmp 0x140265098
xor al, al
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1402912a0
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1402658e0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
call fcn.140264ea0
test al, al
je 0x140265906
mov al, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1402650c0
Function at 0x140265fb0
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1403c2c80]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
xor edi, edi
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], edi
lea rcx, [rsp + 0x28]
mov dword [rsp + 0x20], shutdown
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov qword [rbx + 0x10], rdi
or rcx, 0xffffffffffffffff
mov qword [rbx + 0x18], shutdown
mov byte [rbx], dil
xor eax, eax
lea rdi, [rsp + 0x28]
lea rdx, [rsp + 0x28]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, rbx
call fcn.140008ba0
mov rax, rbx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1402912a0
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1402679d8
Capabilities:
Encrypt data using rc4 prga
Query environment variable

Disassembly:
push rdi
push rsi
sub rsp, 0x58
mov eax, dword [0x1403c2bc0]
cmp eax, 0xffffffff
je 0x1402679f0
add rsp, 0x58
pop rsi
pop rdi
ret
lea rsi, [rsp + 0x40]
lea rdi, [0x140429178]
mov rax, rsi
mov dl, byte [rdi]
add rdi, 1
mov byte [rsi], dl
add rsi, 1
test dl, dl
jne 0x1402679ff
lea rcx, [rsp + 0x40]
xor esi, esi
xor eax, eax
movzx edx, byte [rcx + rax]
test edx, edx
je 0x140267a31
movzx edx, byte [rcx + rax + 1]
add rax, 2
test edx, edx
jne 0x140267a18
add rax, 0xffffffffffffffff
test rax, rax
jbe 0x140267a87
mov eax, 0x66666667
lea rcx, [rsp + 0x40]
mov r9d, esi
add r9d, r9d
imul r9d
mov edi, r9d
sar edi, 0x1f
sar edx, 1
sub edx, edi
lea r8d, [rdx + rdx*4]
sub r9d, r8d
add r9d, 1
xor byte [rsp + rsi + 0x40], r9b
add rsi, 1
xor eax, eax
movzx edx, byte [rcx + rax]
test edx, edx
je 0x140267a82
movzx edx, byte [rcx + rax + 1]
add rax, 2
test edx, edx
jne 0x140267a69
add rax, 0xffffffffffffffff
cmp rax, rsi
ja 0x140267a36
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x20]
mov r8d, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x140267ad3
lea rcx, [rsp + 0x20]
call sub.MSVCR100.dll_atoi
test eax, eax
jne 0x140267abf
lea rdx, [rsp + 0x20]
movsx rcx, byte [rdx]
cmp ecx, 0x30
je 0x140267ae5
jmp 0x140267ad3
jl 0x140267ad3
cmp eax, 2
jg 0x140267ad3
mov dword [0x1403c2bc0], eax
add rsp, 0x58
pop rsi
pop rdi
ret
mov eax, dword [0x1403c2bc0]
cmp eax, 0xffffffff
je 0x140267afc
add rsp, 0x58
pop rsi
pop rdi
ret
movsx rdx, byte [rsp + 0x21]
test edx, edx
jne 0x140267ad3
mov dword [0x1403c2bc0], eax
add rsp, 0x58
pop rsi
pop rdi
ret
call fcn.14027a1f0
test eax, eax
je 0x140267b1b
mov dword [0x1403c2bc0], 2
mov eax, 2
add rsp, 0x58
pop rsi
pop rdi
ret
call fcn.14027a1d0
test eax, eax
je 0x140267b3a
mov dword [0x1403c2bc0], 1
mov eax, 1
add rsp, 0x58
pop rsi
pop rdi
ret
mov dword [0x1403c2bc0], 0
xor eax, eax
add rsp, 0x58
pop rsi
pop rdi
ret

Function at 0x14027a148
Capabilities:
Set environment variable

Disassembly:
sub rsp, 0x28
lea rcx, [0x14042918c]
lea rdx, [0x140429198]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
add rsp, 0x28
ret

Function at 0x14027a168
Capabilities:
Set environment variable

Disassembly:
sub rsp, 0x28
lea rcx, [0x14042918c]
lea rdx, [0x14042919c]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
add rsp, 0x28
ret
Function at 0x140291b3f
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1403c2c80]
jne 0x1402912ba
rol rcx, 0x10
test cx, 0xffff
jne 0x1402912b6
repz ret
ror rcx, 0x10
jmp 0x140291a98
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1403fed20]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1403fee18]
mov qword [rsp + 0x58], rax
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 0x140291b1d
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, [0x1403fed20]
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 0x140291b3f
mov rax, qword [rsp + 0x88]
mov qword [0x1403fee18], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1403fedb8], rax
mov rax, qword [0x1403fee18]
mov qword [0x1403fec90], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1403feda0], rax
mov dword [0x1403fec80], 0xc0000409
mov dword [0x1403fec84], 1
mov rax, qword [0x1403c2c80]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1403c2c88]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1403fed18], eax
mov ecx, 1
call sub.MSVCR100.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1403235d8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1403fed18], 0
jne 0x140291bc6
mov ecx, 1
call sub.MSVCR100.dll___crt_debugger_hook
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 0x2fc4caac0
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 0x2fc4cb4c2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f0108]
test eax, eax
je 0x2fc4cb55a
lea rax, [0x2fc4f00e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f0110]
mov qword [rbp - 8], rax
jmp 0x2fc4cb53e
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 0x2fc4cb532
cmp qword [rbp - 0x10], 0
je 0x2fc4cb532
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 0x2fc4cb4f8
lea rax, [0x2fc4f00e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4cb55b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4cb660
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 0x2fc4cb688
mov eax, 0
jmp 0x2fc4cb6d6
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 0x2fc4cb6b1
mov eax, 0
jmp 0x2fc4cb6d6
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 0x2fc4cb6d1
mov eax, 0
jmp 0x2fc4cb6d6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4cb6dc
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 0x2fc4cb75a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4cb751
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 0x2fc4cb751
mov rax, qword [rbp - 8]
jmp 0x2fc4cb76f
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 0x2fc4cb724
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14001129e
Capabilities:
Terminate process

Disassembly:
jmp 0x140013ed0
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 0x14001134d
Capabilities:
Parse pe header

Disassembly:
jmp 0x140015220
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140015240
xor al, al
jmp 0x1400152c1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140015253
xor al, al
jmp 0x1400152c1
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 0x14001527d
xor al, al
jmp 0x1400152c1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140015291
xor al, al
jmp 0x1400152c1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400152a3
xor al, al
jmp 0x1400152c1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400152bf
xor al, al
jmp 0x1400152c1
mov al, 1
add rsp, 0x38
ret
Function at 0x2fc4ddea0
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 0x2fc4de8a2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc503108]
test eax, eax
je 0x2fc4de93a
lea rax, [0x2fc5030e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc503110]
mov qword [rbp - 8], rax
jmp 0x2fc4de91e
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 0x2fc4de912
cmp qword [rbp - 0x10], 0
je 0x2fc4de912
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 0x2fc4de8d8
lea rax, [0x2fc5030e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4de93b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4dea40
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 0x2fc4dea68
mov eax, 0
jmp 0x2fc4deab6
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 0x2fc4dea91
mov eax, 0
jmp 0x2fc4deab6
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 0x2fc4deab1
mov eax, 0
jmp 0x2fc4deab6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4deabc
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 0x2fc4deb3a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4deb31
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 0x2fc4deb31
mov rax, qword [rbp - 8]
jmp 0x2fc4deb4f
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 0x2fc4deb04
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0xc9d058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00c9d1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0xc9d089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xc9d06f
add dl, dl
jne 0xc9d096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xc9d0f6
xor eax, eax
add dl, dl
jne 0xc9d0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xc9d1ad
add dl, dl
jne 0xc9d0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc9d0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc9d0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc9d0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0xc9d0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0xc9d07e
mov eax, 1
add dl, dl
jne 0xc9d106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc9d113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xc9d0fb
sub eax, ebx
mov ebx, 1
jne 0xc9d14c
mov ecx, 1
add dl, dl
jne 0xc9d12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc9d13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xc9d123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xc9d07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xc9d168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc9d175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xc9d15d
cmp eax, 0x7d00
jae 0xc9d19b
cmp eax, 0x500
jb 0xc9d196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xc9d07e
cmp eax, 0x7f
ja 0xc9d19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xc9d07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0xc9d1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0xc9d07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x2fc4d39c0
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 0x2fc4d43c2
Capabilities:
Get thread local storage value

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

Function at 0x2fc4d4560
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 0x2fc4d4588
mov eax, 0
jmp 0x2fc4d45d6
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 0x2fc4d45b1
mov eax, 0
jmp 0x2fc4d45d6
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 0x2fc4d45d1
mov eax, 0
jmp 0x2fc4d45d6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d45dc
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 0x2fc4d465a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d4651
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 0x2fc4d4651
mov rax, qword [rbp - 8]
jmp 0x2fc4d466f
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 0x2fc4d4624
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400030d0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x280
mov rax, qword [0x1400bd040]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbx, rcx
mov qword [rsp + 0x38], rcx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xorps xmm0, xmm0
test eax, eax
js 0x140003185
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x140003130
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.14000e410
nop
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 7
cmova rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
lea r8, [rdx + rcx*2]
lea rdx, [rsp + 0x40]
cmova rdx, qword [rsp + 0x40]
mov rcx, rbx
call fcn.14000dac0
nop
lea rcx, [rsp + 0x40]
call fcn.14000ce50
jmp 0x1400031aa
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
xor r8d, r8d
lea rdx, [0x140098fb1]
mov rcx, rbx
call fcn.14000e830
mov rax, rbx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140092d60
add rsp, 0x280
pop rbx
ret