joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc4cf570
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.2fc4d0650
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4cff72
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f2108]
test eax, eax
je 0x2fc4d000a
lea rax, [0x2fc4f20e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f2110]
mov qword [rbp - 8], rax
jmp 0x2fc4cffee
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 0x2fc4cffe2
cmp qword [rbp - 0x10], 0
je 0x2fc4cffe2
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 0x2fc4cffa8
lea rax, [0x2fc4f20e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d000b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d0110
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 0x2fc4d0138
mov eax, 0
jmp 0x2fc4d0186
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 0x2fc4d0161
mov eax, 0
jmp 0x2fc4d0186
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 0x2fc4d0181
mov eax, 0
jmp 0x2fc4d0186
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d018c
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 0x2fc4d020a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d0201
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 0x2fc4d0201
mov rax, qword [rbp - 8]
jmp 0x2fc4d021f
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 0x2fc4d01d4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x7ff673b81154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x7ff673b811ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x7ff673b8119e
mov dword [rbp - 4], 1
jmp 0x7ff673b811e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x7ff673b854f0]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x7ff673b8118b
mov rax, qword [0x7ff673b85500]
mov eax, dword [rax]
cmp eax, 1
jne 0x7ff673b811fd
mov ecx, 0x1f
call fcn.7ff673b830b0
jmp 0x7ff673b8123c
mov rax, qword [0x7ff673b85500]
mov eax, dword [rax]
test eax, eax
jne 0x7ff673b81232
mov rax, qword [0x7ff673b85500]
mov dword [rax], 1
mov rax, qword [0x7ff673b85540]
mov rdx, rax
mov rax, qword [0x7ff673b85530]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x7ff673b8123c
mov dword [0x7ff673b89024], 1
mov rax, qword [0x7ff673b85500]
mov eax, dword [rax]
cmp eax, 1
jne 0x7ff673b81270
mov rax, qword [0x7ff673b85520]
mov rdx, rax
mov rax, qword [0x7ff673b85510]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x7ff673b85500]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x7ff673b81294
mov rax, qword [0x7ff673b854f0]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x7ff673b85440]
mov rax, qword [rax]
test rax, rax
je 0x7ff673b812bf
mov rax, qword [0x7ff673b85440]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.7ff673b822d8
mov rax, qword [0x7ff673b85580]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x7ff673b854e0]
mov qword [rdx], rax
lea rax, section..text
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.7ff673b81ad0
mov eax, dword [0x7ff673b89004]
lea rdx, [0x7ff673b89008]
mov ecx, eax
call fcn.7ff673b8147c
call fcn.7ff673b81867
mov rax, qword [0x7ff673b85470]
mov rax, qword [rax]
mov rdx, qword [0x7ff673b89010]
mov qword [rax], rdx
mov rcx, qword [0x7ff673b89010]
mov rdx, qword [0x7ff673b89008]
mov eax, dword [0x7ff673b89004]
mov r8, rcx
mov ecx, eax
call fcn.7ff673b816d0
mov dword [0x7ff673b8901c], eax
mov eax, dword [0x7ff673b89020]
test eax, eax
jne 0x7ff673b8135d
mov eax, dword [0x7ff673b8901c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x7ff673b89024]
test eax, eax
jne 0x7ff673b8136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x7ff673b8901c]
add rsp, 0x70
pop rbp
ret
Function at 0x7ff673b81378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x7ff673b854a0]
mov dword [rax], 1
mov rax, qword [0x7ff673b854b0]
mov dword [rax], 1
mov rax, qword [0x7ff673b854c0]
mov dword [rax], 1
mov rax, qword [0x7ff673b85460]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x7ff673b813c9
mov eax, 0
jmp 0x7ff673b81476
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 0x7ff673b813f5
mov eax, 0
jmp 0x7ff673b81476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x7ff673b8141b
cmp eax, 0x20b
je 0x7ff673b81442
jmp 0x7ff673b81471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x7ff673b8142e
mov eax, 0
jmp 0x7ff673b81476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x7ff673b81476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x7ff673b8145d
mov eax, 0
jmp 0x7ff673b81476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x7ff673b81476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x7ff673b816d0
Capabilities:
Hide graphical window

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
call fcn.7ff673b81867
mov rax, qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
call fcn.7ff673b81716
mov eax, 0
add rsp, 0x30
pop rbp
ret

Function at 0x7ff673b81716
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
lea r8, str.W0lv3rIn3
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateMutexA]
call rax
mov qword [rbp - 8], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
cmp eax, 0xb7
jne 0x7ff673b8175a
mov ecx, 1
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
lea rax, str.Why_shouldnt_you_make_an_agreement_with_wolverine_
mov rcx, rax
call fcn.7ff673b82e90
lea rax, str.Because_of_his_retractable_clause
mov rcx, rax
call fcn.7ff673b82e90
lea rax, [0x7ff673b850ba]
mov rcx, rax
call fcn.7ff673b82e90
lea rax, [0x7ff673b850ba]
mov rcx, rax
call fcn.7ff673b82e90
call sub.api_ms_win_crt_stdio_l1_1_0.dll_getchar
nop
add rsp, 0x30
pop rbp
ret
Function at 0x7ff673b81ae0
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.7ff673b82e40
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x7ff673b827b2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x7ff673b89168]
test eax, eax
je 0x7ff673b8284a
lea rax, [0x7ff673b89140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x7ff673b89170]
mov qword [rbp - 8], rax
jmp 0x7ff673b8282e
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 0x7ff673b82822
cmp qword [rbp - 0x10], 0
je 0x7ff673b82822
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 0x7ff673b827e8
lea rax, [0x7ff673b89140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x7ff673b8284b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x7ff673b82950
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 0x7ff673b82978
mov eax, 0
jmp 0x7ff673b829c6
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 0x7ff673b829a1
mov eax, 0
jmp 0x7ff673b829c6
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 0x7ff673b829c1
mov eax, 0
jmp 0x7ff673b829c6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x7ff673b829cc
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 0x7ff673b82a4a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x7ff673b82a41
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 0x7ff673b82a41
mov rax, qword [rbp - 8]
jmp 0x7ff673b82a5f
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 0x7ff673b82a14
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140015050
Capabilities:
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x2a0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x290], rax
xor ebp, ebp
mov rbx, rdx
mov rsi, rcx
cmp rdx, rbp
je 0x1400151d2
mov r8, rdx
lea ecx, [rbp + 8]
lea rdx, str.CRecorderMgr::CleanupThreadProcedure:_Cleaning_...__s
call fcn.140001110
lea rax, [rsp + 0x60]
mov rdi, rbx
mov edx, 0x104
lea rcx, [rsp + 0x60]
mov r8d, ebp
sub rdi, rax
lea rax, [rdx + 0x7ffffefa]
cmp rax, rbp
je 0x1400150ce
movzx eax, word [rdi + rcx]
cmp ax, bp
je 0x1400150ce
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x1400150ac
cmp rdx, rbp
je 0x1400222ac
cmp r8d, ebp
mov word [rcx], bp
jl 0x1400222bb
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x60]
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp ecx, ebp
je 0x14001510e
lea eax, [rcx - 1]
mov edi, 0x5c
cmp word [rsp + rax*2 + 0x60], di
jne 0x1400222d1
xor edx, edx
lea rcx, [rsp + 0x24]
mov dword [rsp + 0x20], 0x2a
lea r8d, [rdx + 0x3c]
call sub.msvcrt.dll_memset
lea r8, str..TmpSBE
lea rcx, [rsp + 0x20]
mov edx, 0x20
call fcn.1400119d0
cmp eax, ebp
jl 0x140015152
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.1400151fc
lea r8, [0x14005b8f0]
lea rcx, [rsp + 0x60]
mov edx, VarUI4FromDisp
call fcn.1400119d0
cmp eax, ebp
jl 0x1400222e5
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea rcx, [rsp + 0x60]
mov edx, 0x80
mov edi, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea r8, [0x14005b8ec]
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.1400151fc
mov rdx, qword [rsi + 0x90]
lea r8, [0x14005b8ec]
mov rcx, rsi
call fcn.1400151fc
lea rcx, [rsp + 0x60]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, 2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140001170
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x2a0
pop rdi
pop rsi
pop rbp
ret
sub rcx, 2
mov r8d, 0x8007007a
jmp 0x1400150d7
lea rdx, str.CRecorderMgr::CleanupThreadProcedure:_Failed_to_call_StringCchCopy__0x_x.
mov ecx, 1
call fcn.140001110
jmp 0x1400151d2
mov eax, ecx
mov word [rsp + rax*2 + 0x60], di
lea eax, [rcx + 1]
mov word [rsp + rax*2 + 0x60], bp
jmp 0x14001510e
mov r8d, eax
lea rdx, str.CRecorderMgr::CleanupThreadProcedure:_Failed_to_call_StringCchCat__0x_x.
jmp 0x1400222c2
Function at 0x140016168
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x1400161af
cmp rcx, 0xffffffffffffffff
je 0x1400161af
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400161ad
cmp dword [rcx + 0x3c], edx
jl 0x1400161ad
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400161ad
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1400161af
mov rax, rdx
add rsp, 0x18
ret

Function at 0x1400161e8
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call sub.msvcrt.dll_memset
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x140000000]
mov esi, DllRegisterServer
lea rcx, [rsp + 0x20]
mov r8, rsi
xor edx, edx
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rax
mov dword [rbx], 0x60
mov byte [rbx + 0x18], 0
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov esi, 1
jne 0x140024bdc
cmp dword [rsp + 0x24], 5
jb 0x140016283
jmp 0x14001627f
mov byte [rbx + 0x18], sil
lea rax, [0x14005ad38]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.140015eb4
movzx ecx, byte [0x1400a4e20]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x1400a4e20], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140001170
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
cmp dword [rsp + 0x30], esi
jne 0x140016283
cmp dword [rsp + 0x24], 4
ja 0x14001627f
jne 0x140016283
cmp dword [rsp + 0x28], 0
ja 0x14001627f
jmp 0x140016283
Function at 0x140039dc0
Capabilities:
Get geographical location

Disassembly:
push rbx
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov r8, rdx
mov rbx, rcx
and qword [rsp + 0x50], 0
test rdx, rdx
jne 0x140039e10
mov r8d, dword [rcx + 0xc8]
lea rdx, str.CRecorder__d_::GetCountryCode:_Supplied_Tune_Request_is_NULL
mov ecx, 1
call fcn.140001110
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140039e09
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
xor eax, eax
jmp 0x140039f3d
mov rax, qword [rdx]
lea rdx, [rsp + 0x50]
mov rcx, r8
call qword [rax + 0x38]
test eax, eax
jns 0x140039e55
mov r9d, eax
mov r8d, dword [rbx + 0xc8]
lea rdx, str.CRecorder__d_::GetCountryCode:_Could_not_get_Tune_Request_TuningSpace__0x_x
mov ecx, 1
call fcn.140001110
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140039e4e
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
xor eax, eax
jmp 0x140039f3d
xor ecx, ecx
mov qword [rsp + 0x58], rcx
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x140039e80
mov r9, qword [rax]
lea r8, [rsp + 0x58]
lea rdx, str.__n
mov rcx, rax
call qword [r9]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
jne 0x140039ec3
mov r8d, dword [rbx + 0xc8]
lea rdx, str.CRecorder__d_::GetCountryCode:_Failed_to_get_IAnalogTVTuningSpace_interface_from_pTuningSpace.
mov ecx, 1
call fcn.140001110
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140039eaf
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140039ebf
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
xor eax, eax
jmp 0x140039f3d
mov rax, qword [rcx]
lea rdx, [rsp + 0x48]
call qword [rax + 0x100]
test eax, eax
jns 0x140039f16
mov r9d, eax
mov r8d, dword [rbx + 0xc8]
lea rdx, str.CRecorder__d_::GetCountryCode:_Failed_to_get_country_code_from_IAnalogTVTuningSpace__0x_x.
mov ecx, 1
call fcn.140001110
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140039f02
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140039f12
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
xor eax, eax
jmp 0x140039f3d
mov ebx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140039f2b
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140039f3b
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x2fc4d8850
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.2fc4d9930
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d9252
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fb108]
test eax, eax
je 0x2fc4d92ea
lea rax, [0x2fc4fb0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fb110]
mov qword [rbp - 8], rax
jmp 0x2fc4d92ce
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 0x2fc4d92c2
cmp qword [rbp - 0x10], 0
je 0x2fc4d92c2
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 0x2fc4d9288
lea rax, [0x2fc4fb0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d92eb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d93f0
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 0x2fc4d9418
mov eax, 0
jmp 0x2fc4d9466
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 0x2fc4d9441
mov eax, 0
jmp 0x2fc4d9466
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 0x2fc4d9461
mov eax, 0
jmp 0x2fc4d9466
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d946c
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 0x2fc4d94ea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d94e1
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 0x2fc4d94e1
mov rax, qword [rbp - 8]
jmp 0x2fc4d94ff
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 0x2fc4d94b4
mov eax, 0
add rsp, 0x20
pop rbp
ret