joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007f430
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [section..data]
mov rdi, rax
test rax, rax
jne 0x14007f472
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x14007f4b9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x14007f512
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x14007f4d0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14007f553
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x140096149]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14009614a]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14007f520
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x140080880
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140080904
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x140080904
dec r8
sub rdx, 1
jne 0x1400808ea
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140081e2c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140081e76
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140081e76
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140081e76
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140081e76
cmp dword [rcx + 0x84], 0xe
jbe 0x140081e76
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140081e78
xor al, al
add rsp, 0x28
ret
Function at 0x140005e20
Capabilities:
Get system firmware table

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor esi, esi
mov ecx, 0xe0
call fcn.140014cc4
mov rbx, rax
mov qword [rsp + 0x28], rax
test rax, rax
je 0x140005f1b
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 0xf
mov byte [rax], sil
movups xmmword [rax + 0x20], xmm0
mov qword [rax + 0x30], rsi
mov qword [rax + 0x38], 0xf
mov byte [rax + 0x20], sil
movups xmmword [rax + 0x40], xmm0
mov qword [rax + 0x50], rsi
mov qword [rax + 0x58], 0xf
mov byte [rax + 0x40], sil
movups xmmword [rax + 0x60], xmm0
mov qword [rax + 0x70], rsi
mov qword [rax + 0x78], 0xf
mov byte [rax + 0x60], sil
movups xmmword [rax + 0x80], xmm0
mov qword [rax + 0x90], rsi
mov qword [rax + 0x98], 0xf
mov byte [rax + 0x80], sil
movups xmmword [rax + 0xa0], xmm0
mov qword [rax + 0xb0], rsi
mov qword [rax + 0xb8], 0xf
mov byte [rax + 0xa0], sil
movups xmmword [rax + 0xc0], xmm0
mov qword [rax + 0xd0], rsi
mov qword [rax + 0xd8], 0xf
mov byte [rax + 0xc0], sil
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0x52534d42
call qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
nop
jmp 0x140005f1e
mov rbx, rsi
mov qword [rdi], rbx
mov rax, rdi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14000a330
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x14000a3fc
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14000a3fc
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x14000a415
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x14000a3ec
cmp byte [rax], 0x5c
jne 0x14000a3e6
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x14000a3e6
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14000a3d2
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x14000a3e3
test r8b, 0x10
jne 0x14000a3e6
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x14000a3e6
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.14000c6b0
test edi, edi
jne 0x14000a350
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
mov rcx, rbx
call fcn.14000b310
int3

Function at 0x14000eaf0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x14000eb24
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x14000eb10
ret

Function at 0x1400156fc
Capabilities:
Parse pe header

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

Disassembly:
cld
pop r11
jmp 0x1406c584d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1406c585d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1406c5845
lea eax, [rcx + 1]
jmp 0x1406c586b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1406c587e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1406c5864
sub eax, 3
jb 0x1406c589e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1406c58ed
sar eax, 1
movsxd rbp, eax
jb 0x1406c58d4
jmp 0x1406c58ac
add ebx, ebx
jne 0x1406c58aa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1406c58d4
inc ecx
add ebx, ebx
jne 0x1406c58ba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1406c58d4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1406c58cd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1406c58bc
add ecx, 2
jmp 0x1406c58d9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1406c5802
jmp 0x1406c584d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x340c00
mov dl, 0x4f
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1406c593d
cmp rsi, rcx
jae 0x1406c5945
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1406c5924
cmp al, 0x8f
ja 0x1406c5924
cmp byte [rsi - 2], 0xf
je 0x1406c592a
sub al, 0xe8
cmp al, 1
ja 0x1406c590e
cmp rsi, rcx
jae 0x1406c5945
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1406c5914
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1406c5945
lodsb al, byte [rsi]
jmp 0x1406c5924
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x6c2000]
mov eax, dword [rdi]
or eax, eax
je 0x1406c59ae
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x6c5554]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1406c5952
jns 0x1406c5987
movzx rdx, word [rdi]
add rdi, 2
jmp 0x1406c5991
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1406c59a8
mov qword [rbx], rax
add rbx, 8
jmp 0x1406c5972
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1406c59f2
cmp al, 0xef
ja 0x1406c59da
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1406c59ba
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x1406c59c9
mov eax, dword [rdi]
add rdi, 4
jmp 0x1406c59c9
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x217]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1406c5a46
sub rsp, 0xffffffffffffff80
jmp 0x140064fd8
Function at 0x2fc4dad60
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.2fc4dbe40
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4db762
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fe108]
test eax, eax
je 0x2fc4db7fa
lea rax, [0x2fc4fe0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fe110]
mov qword [rbp - 8], rax
jmp 0x2fc4db7de
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 0x2fc4db7d2
cmp qword [rbp - 0x10], 0
je 0x2fc4db7d2
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 0x2fc4db798
lea rax, [0x2fc4fe0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4db7fb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4db900
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 0x2fc4db928
mov eax, 0
jmp 0x2fc4db976
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 0x2fc4db951
mov eax, 0
jmp 0x2fc4db976
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 0x2fc4db971
mov eax, 0
jmp 0x2fc4db976
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4db97c
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 0x2fc4db9fa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4db9f1
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 0x2fc4db9f1
mov rax, qword [rbp - 8]
jmp 0x2fc4dba0f
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 0x2fc4db9c4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d49e0
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.2fc4d5ac0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d53e2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f7108]
test eax, eax
je 0x2fc4d547a
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 0x2fc4d545e
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 0x2fc4d5452
cmp qword [rbp - 0x10], 0
je 0x2fc4d5452
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 0x2fc4d5418
lea rax, [0x2fc4f70e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d547b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d5580
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 0x2fc4d55a8
mov eax, 0
jmp 0x2fc4d55f6
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 0x2fc4d55d1
mov eax, 0
jmp 0x2fc4d55f6
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 0x2fc4d55f1
mov eax, 0
jmp 0x2fc4d55f6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d55fc
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 0x2fc4d567a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d5671
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 0x2fc4d5671
mov rax, qword [rbp - 8]
jmp 0x2fc4d568f
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 0x2fc4d5644
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d9620
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.2fc4da700
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4da022
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fc108]
test eax, eax
je 0x2fc4da0ba
lea rax, [0x2fc4fc0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fc110]
mov qword [rbp - 8], rax
jmp 0x2fc4da09e
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 0x2fc4da092
cmp qword [rbp - 0x10], 0
je 0x2fc4da092
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 0x2fc4da058
lea rax, [0x2fc4fc0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4da0bb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4da1c0
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 0x2fc4da1e8
mov eax, 0
jmp 0x2fc4da236
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 0x2fc4da211
mov eax, 0
jmp 0x2fc4da236
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 0x2fc4da231
mov eax, 0
jmp 0x2fc4da236
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4da23c
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 0x2fc4da2ba
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4da2b1
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 0x2fc4da2b1
mov rax, qword [rbp - 8]
jmp 0x2fc4da2cf
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 0x2fc4da284
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140002454
Capabilities:
Parse pe header

Disassembly:
lea rax, [sym.wer.dll_WerpSetReportIsFatal]
mov rcx, qword [rsp + 0x20]
imul rdx, rcx, 0x156549f7
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x18], 0x645d4257
mov qword [rsp + 0x10], rcx
mov qword [rsp + 8], rax
jmp 0x14000248a

Function at 0x1400024c8
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [rsp]
add rsp, 0x30
ret
mov rax, qword [rsp + 8]
mov rcx, qword [rsp + 0x10]
and rcx, rcx
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x10]
xor rcx, 0xffffffffffffffff
mov dx, word [rax]
mov qword [rsp + 0x20], rcx
cmp dx, 0x5a4d
mov qword [rsp], rax
je 0x1400024fb
mov eax, 0x645d3257
mov ecx, eax
mov eax, dword [rsp + 0x2c]
xor eax, 0x7965dfc6
mov dword [rsp + 0x2c], eax
mov rdx, qword [rsp + 0x18]
sub rcx, qword [rsp + 0x18]
and al, 0x18
mov eax, dword [rsp + 0x2c]
add rdx, 0xffffffff9ba2ada9
or eax, 0xfc77f39
mov dword [rsp + 0x2c], eax
mov r8, qword [rsp]
add r8, rcx
and r8, rdx
mov qword [rsp + 8], r8
jmp 0x14000248a
mov rax, qword [rsp]
movsxd rcx, dword [rax + 0x3c]
mov rdx, qword [rsp + 0x10]
mov qword [rsp + 0x20], rdx
cmp dword [rax + rcx], 0x4550
je 0x140002481
jmp 0x1400024b8

Function at 0x1400024d4
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [rsp]
add rsp, 0x30
ret
mov rax, qword [rsp + 8]
mov rcx, qword [rsp + 0x10]
and rcx, rcx
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x10]
xor rcx, 0xffffffffffffffff
mov dx, word [rax]
mov qword [rsp + 0x20], rcx
cmp dx, 0x5a4d
mov qword [rsp], rax
je 0x1400024fb
mov eax, 0x645d3257
mov ecx, eax
mov eax, dword [rsp + 0x2c]
xor eax, 0x7965dfc6
mov dword [rsp + 0x2c], eax
mov rdx, qword [rsp + 0x18]
sub rcx, qword [rsp + 0x18]
and al, 0x18
mov eax, dword [rsp + 0x2c]
add rdx, 0xffffffff9ba2ada9
or eax, 0xfc77f39
mov dword [rsp + 0x2c], eax
mov r8, qword [rsp]
add r8, rcx
and r8, rdx
mov qword [rsp + 8], r8
jmp 0x14000248a
mov rax, qword [rsp]
movsxd rcx, dword [rax + 0x3c]
mov rdx, qword [rsp + 0x10]
mov qword [rsp + 0x20], rdx
cmp dword [rax + rcx], 0x4550
je 0x140002481
jmp 0x1400024b8

Function at 0x140002960
Capabilities:
Encode data using xor

Disassembly:
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffff8803091b
mov word [rsp + 0x36], cx
mov r8, qword [rsp + 0x20]
mov r9b, byte [r8 + rax]
mov r10, qword [rsp + 0x10]
mov byte [r10 + rax], r9b
add rax, rdx
mov rdx, qword [rsp + 0x18]
cmp rax, rdx
cmp eax, edx
mov qword [rsp], rax
jne 0x140002953
Function at 0x1400029a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rsi
push rdi
sub rsp, 0xd8
mov al, byte [rsp + 0xd7]
mov dl, al
xor dl, 0x37
mov byte [rsp + 0xd7], dl
mov byte [rsp + 0xc7], 0x34
mov dword [rsp + 0xc0], 0x70720716
mov qword [rsp + 0xb8], 0xa2aa500
mov r8d, dword [rsp + 0xd0]
mov r9d, r8d
or r9d, 0x3545b2c8
mov r10, qword [rsp + 0xb8]
mov dword [rsp + 0xd0], r9d
mov r11, r10
xor r11, 0x24939f7f
mov qword [rsp + 0xa8], r11
mov qword [rsp + 0x50], rcx
mov byte [rsp + 0x4f], al
mov dword [rsp + 0x48], r8d
mov qword [rsp + 0x40], r10
call fcn.140003220
mov si, word [rsp + 0xc4]
mov di, si
xor di, 0xe8d5
mov rcx, rax
mov word [rsp + 0x3e], di
mov word [rsp + 0x3c], si
mov qword [rsp + 0x30], rax
xor al, ch
invalid
sti
invalid
jmp qword [rsi - 0x75]
je 0x140002a76
mov word ds:[rsp + 0xc4], si
mov rcx, qword [rsp + 0xa8]
mov r8d, dword [rax + 0x88]
invalid
invalid

Function at 0x1400033d0
Capabilities:
Encode data using xor

Disassembly:
lea rdx, [0x1400040a0]
mov r8d, 0xb
lea rax, [rsp + 0x70]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x68]
call fcn.140001f70
mov r9w, 0xedff
mov qword [rsp + 0x58], 0
mov r10w, word [rsp + 0x2e]
sub r9w, r10w
mov word [rsp + 0xd6], r9w
lea r8, [rsp + 0x30]
mov qword [rsp + 0x68], r8
mov r9w, word [rsp + 0x2e]
and r9w, 0x1a26
mov r8, qword [rsp + 0xc8]
mov word [rsp + 0xd6], r9w
sub rdx, r8
mov qword [rsp + 0x58], rdx
mov r9w, word [rsp + 0x26]
mov r9d, dword [rsp + 0x26]
cmp ax, r9w
je 0x140003341
jmp 0x1400032ff