joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001a4e0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140026af0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x14001a500
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x14001a508
ret
cmp word [rdx + 0x18], 0x20b
jne 0x14001a500
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x14001a550
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14001a547
test rcx, rcx
je 0x14001a500
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x14001a538
xor eax, eax
ret

Function at 0x14001a560
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140026af0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14001a57f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14001a588
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

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

Disassembly:
mov rdx, qword [0x140026af0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14001a5c0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14001a5c8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14001a5c0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x14001a5c0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x14001a614
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14001a620
add rdx, 0x28
cmp r9, rdx
jne 0x14001a600
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140026af0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x14001a652
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x14001a660
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14001a652
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x14001a652
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x14001a652
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x14001a6b5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x14001a6c8
add rdx, 0x28
cmp rdx, r10
jne 0x14001a6a0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14001a6d7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14001a6e7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14001a6be
test ecx, ecx
jg 0x14001a6d0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140a382c0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140a38447
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140a382f1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a382d7
add dl, dl
jne 0x140a382fe
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a3835e
xor eax, eax
add dl, dl
jne 0x140a3830d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a38415
add dl, dl
jne 0x140a3831e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a3832b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a38338
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a38345
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140a38352
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140a382e6
mov eax, 1
add dl, dl
jne 0x140a3836e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a3837b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a38363
sub eax, ebx
mov ebx, 1
jne 0x140a383b4
mov ecx, 1
add dl, dl
jne 0x140a38396
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a383a3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a3838b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a382e6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140a383d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a383dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a383c5
cmp eax, 0x7d00
jae 0x140a38403
cmp eax, 0x500
jb 0x140a383fe
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a382e6
cmp eax, 0x7f
ja 0x140a38406
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a382e6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140a3843a
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 0x140a382e6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x2fc52f130
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.2fc530210
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc52fb32
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc552108]
test eax, eax
je 0x2fc52fbca
lea rax, [0x2fc5520e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc552110]
mov qword [rbp - 8], rax
jmp 0x2fc52fbae
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 0x2fc52fba2
cmp qword [rbp - 0x10], 0
je 0x2fc52fba2
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 0x2fc52fb68
lea rax, [0x2fc5520e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc52fbcb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc52fcd0
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 0x2fc52fcf8
mov eax, 0
jmp 0x2fc52fd46
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 0x2fc52fd21
mov eax, 0
jmp 0x2fc52fd46
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 0x2fc52fd41
mov eax, 0
jmp 0x2fc52fd46
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x18000ad30
Capabilities:
Print debug messages

Disassembly:
push rbp
push r12
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov r12, rcx
lea rcx, str.IF_YOU_CAN_READ_THIS__YOUR_PROGRAM_IS_ABOUT_TO_BREAK__n_nEither_you_or_somebody_else_is_using_FAudio_CommitChanges__nwhen_they_should_be_using_FAudio_CommitOperationSet_instead._n_nIf_your_program_calls_this__move_to_CommitOperationSet._n_nIf_somebody_else_is_calling_this__find_out_who_it_is_and_nfile_a_bug_report_with_them_ASAP.
call sym.FAudio_Log
test byte [r12 + 0xe0], 0x10
jne 0x18000ad78
mov rcx, r12
call sym.FAudio_OPERATIONSET_CommitAll
test byte [r12 + 0xe0], 0x10
jne 0x18000adb0
xor eax, eax
add rsp, 0x38
pop r12
pop rbp
ret
lea r9, str.FAudio_CommitOperationSet
mov r8d, 0x35d
mov rcx, r12
lea rax, str.API_Enter:__s
mov qword [rsp + 0x28], r9
lea rdx, str..._src_wine_libs_faudio_src_FAudio.c
mov qword [rsp + 0x20], rax
call sym.FAudio_INTERNAL_debug
jmp 0x18000ad56
lea r9, str.FAudio_CommitOperationSet
mov r8d, 0x366
mov rcx, r12
lea rax, str.API_Exit:__s
mov qword [rsp + 0x28], r9
lea rdx, str..._src_wine_libs_faudio_src_FAudio.c
mov qword [rsp + 0x20], rax
call sym.FAudio_INTERNAL_debug
xor eax, eax
add rsp, 0x38
pop r12
pop rbp
ret
Function at 0x180012570
Capabilities:
Print debug messages

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x448
lea rbp, [rsp + 0x80]
mov r15d, r8d
mov r8d, dword [rcx + 0xe8]
mov rbx, rcx
mov rdi, rdx
mov byte [rbp - 0x40], 0
mov rsi, r9
test r8d, r8d
jne 0x180012630
mov ecx, dword [rbx + 0xec]
lea r14, [rbp - 0x40]
mov r13d, 0x400
mov r12, r14
test ecx, ecx
jne 0x18001266d
mov edx, dword [rbx + 0xf0]
test edx, edx
jne 0x1800126a7
mov eax, dword [rbx + 0xf4]
test eax, eax
jne 0x1800126dc
lea rax, [rbp + 0x438]
mov r9, qword [rbp + 0x430]
mov r8, r13
mov rdx, r12
mov qword [rbp - 0x48], rax
mov ecx, 6
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
call qword [sym.imp.ucrtbase.dll___stdio_common_vsprintf]
mov rcx, r14
call sym.FAudio_Log
nop
add rsp, 0x448
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call sym.FAudio_PlatformGetThreadID
lea r14, [rbp - 0x40]
mov edx, 0x400
lea r8, str.0x_llx
mov rcx, r14
mov r9, rax
mov r13d, 0x400
call sym.snprintf
mov ecx, dword [rbx + 0xec]
cdqe
lea r12, [r14 + rax]
sub r13, rax
test ecx, ecx
je 0x1800125c6
mov dword [rsp + 0x20], r15d
mov rdx, r13
mov rcx, r12
mov r9, rdi
lea r8, str._s:_u
call sym.snprintf
mov edx, dword [rbx + 0xf0]
cdqe
add r12, rax
mov rax, r14
sub rax, r12
lea r13, [rax + 0x400]
test edx, edx
je 0x1800125d4
mov rdx, r13
mov rcx, r12
lea r8, [0x180020d4f]
mov r9, rsi
call sym.snprintf
cdqe
add r12, rax
mov rax, r14
sub rax, r12
lea r13, [rax + 0x400]
mov eax, dword [rbx + 0xf4]
test eax, eax
je 0x1800125e2
call sym.FAudio_timems
mov rdx, r13
mov rcx, r12
lea r8, str._dms
mov r9d, eax
call sym.snprintf
cdqe
add r12, rax
mov rax, r14
sub rax, r12
lea r13, [rax + 0x400]
jmp 0x1800125e2
Function at 0x180013d00
Capabilities:
Print debug messages

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov rax, qword [rcx]
mov r12, qword [rbp + 0x70]
mov r15d, dword [rbp + 0x78]
mov rdi, rcx
mov rcx, qword [rax + 0x48]
mov r14, rdx
mov ebx, r8d
mov r13d, r9d
call sym.FAudio_PlatformLockMutex
mov r10, qword [rdi]
test byte [r10 + 0xe0], 0x80
jne 0x180013df0
mov ecx, 0x30
call qword [r10 + 0xb8]
mov dword [rax], 7
mov rsi, rax
mov qword [rax + 8], rdi
mov dword [rax + 4], r15d
mov qword [rax + 0x28], 0
mov rdx, qword [rdi]
mov rax, qword [rdx + 0x78]
test rax, rax
je 0x180013e70
nop dword [rax + rax]
mov rdx, rax
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x180013d80
mov qword [rdx + 0x28], rsi
mov dword [rsi + 0x18], ebx
mov r8d, r13d
mov ebx, ebx
imul rbx, r8
mov qword [rsi + 0x10], r14
mov dword [rsi + 0x1c], r13d
mov rax, qword [rdi]
shl rbx, 2
mov rcx, rbx
call qword [rax + 0xb8]
mov r8, rbx
mov rdx, r12
mov qword [rsi + 0x20], rax
mov rcx, rax
call sym.memcpy
mov rax, qword [rdi]
mov rcx, qword [rax + 0x48]
call sym.FAudio_PlatformUnlockMutex
mov rcx, qword [rdi]
test byte [rcx + 0xe0], 0x80
jne 0x180013e30
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rax, qword [r10 + 0x48]
mov rcx, r10
lea r9, str.FAudio_OPERATIONSET_QueueSetOutputMatrix
mov r8d, 0x24f
lea rdx, str..._src_wine_libs_faudio_src_FAudio_operationset.c
mov qword [rsp + 0x28], rax
lea rax, [0x180021062]
mov qword [rsp + 0x20], rax
call sym.FAudio_INTERNAL_debug
mov r10, qword [rdi]
jmp 0x180013d46
mov rax, qword [rcx + 0x48]
lea r9, str.FAudio_OPERATIONSET_QueueSetOutputMatrix
mov r8d, 0x264
lea rdx, str..._src_wine_libs_faudio_src_FAudio_operationset.c
mov qword [rbp + 0x78], rax
lea rax, [0x180021071]
mov qword [rbp + 0x70], rax
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp sym.FAudio_INTERNAL_debug
mov qword [rdx + 0x78], rsi
jmp 0x180013d90

Function at 0x1800142e0
Capabilities:
Create thread

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov rdi, rcx
mov rsi, rdx
mov rbx, r8
mov ecx, 0x18
call qword [sym.imp.ucrtbase.dll_malloc]
test rax, rax
je 0x180014336
mov qword [rax], rdi
mov r9, rax
lea r8, [sym.FaudioThreadWrapper]
xor edx, edx
mov qword [rax + 8], rsi
xor ecx, ecx
mov qword [rax + 0x10], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.kernel32.dll_CreateThread]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x180017450
Capabilities:
Query environment variable

Disassembly:
push rbp
push r12
push rsi
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov rsi, rcx
mov r12, rdx
mov rbx, r8
test byte [0x18001e9e0], 8
jne 0x180017490
mov rcx, qword [rsi + 0x40]
mov r8, rbx
mov rdx, r12
add rsp, 0x48
pop rbx
pop rsi
pop r12
pop rbp
jmp sym.FAudio_SetDebugConfiguration
mov qword [rsp + 0x30], r8
lea r9, str.__p_____p___p__n
lea r8, str.IXAudio2Impl_SetDebugConfiguration
mov qword [rsp + 0x28], rdx
lea rdx, [0x18001e9e0]
mov qword [rsp + 0x20], rcx
mov ecx, 3
call sym.wine_dbg_log.constprop.0_1
jmp 0x180017470

Function at 0x18001c090
Capabilities:
Query environment variable

Disassembly:
push rbp
push r12
push rsi
push rbx
sub rsp, 0x238
lea rbp, [rsp + 0x80]
mov rax, qword [0x18001ec50]
mov r12, rcx
mov rbx, rdx
test rax, rax
je 0x18001c128
mov rcx, rbx
call rax
mov dword [rbx + 0xc], eax
test eax, eax
js 0x18001c114
lea rsi, [rbp - 0x60]
mov r8d, 0x104
mov rcx, r12
mov rdx, rsi
call qword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov rcx, qword [rbx]
mov r8, rsi
lea rdx, str.MODULE
mov rax, qword [rcx]
call qword [rax + 0x18]
mov r8d, 0x104
mov rdx, rsi
lea rcx, str.SystemRoot
call qword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov rcx, qword [rbx]
mov r8, rsi
lea rdx, str.SystemRoot
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rax, qword [rbx]
add rsp, 0x238
pop rbx
pop rsi
pop r12
pop rbp
ret
lea rcx, str.atl100.dll
call qword [sym.imp.kernel32.dll_LoadLibraryW]
mov rcx, rax
test rax, rax
je 0x18001c15a
lea rdx, str.AtlCreateRegistrar
call qword [sym.imp.kernel32.dll_GetProcAddress]
mov qword [0x18001ec50], rax
test rax, rax
jne 0x18001c0b6
mov dword [rbx + 0xc], 0x80004002
xor eax, eax
jmp 0x18001c117
Function at 0x18001c990
Capabilities:
Write file on windows

Disassembly:
push rbp
push r12
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov r12, rcx
call qword [sym.imp.ucrtbase.dll_strlen]
mov rbx, rax
xor eax, eax
test rbx, rbx
je 0x18001c9e9
cmp byte [r12 + rbx - 1], 0xa
je 0x18001c9c4
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x48]
xchg dword [0x18001eca0], eax
mov ecx, 2
call qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov edx, 1
mov r9, rax
mov r8, rbx
mov rcx, r12
call qword [sym.imp.ucrtbase.dll_fwrite]
add rsp, 0x20
pop rbx
pop r12
pop rbp
ret

Function at 0x18001cbd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov r10, rdx
mov r12, rcx
mov rdx, r8
mov rbx, r9
mov r8, r10
call qword [sym.imp.kernel32.dll_FindResourceW]
mov rcx, r12
mov r13, rax
mov rdx, rax
call qword [sym.imp.kernel32.dll_LoadResource]
mov rdx, r13
mov rcx, r12
mov rsi, rax
call qword [sym.imp.kernel32.dll_SizeofResource]
mov r13d, eax
test rsi, rsi
je 0x18001cd18
cmp qword [rbx], 0
je 0x18001cd00
mov r9d, r13d
mov r8, rsi
xor edx, edx
mov ecx, 0xfde9
mov dword [rsp + 0x28], 0
mov r14, qword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov qword [rsp + 0x20], 0
call r14
xor edx, edx
mov edi, eax
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
lea r8d, [rdi + 1]
mov r15, r8
add r8, r8
mov rcx, qword [rax + 0x30]
call qword [sym.imp.kernel32.dll_HeapAlloc]
mov r12, rax
test rax, rax
je 0x18001cd1c
xor edx, edx
mov ecx, 0xfde9
mov dword [rsp + 0x28], r15d
mov r9d, r13d
mov qword [rsp + 0x20], rax
mov r8, rsi
call r14
mov edx, dword [rbx + 8]
mov rcx, qword [rbx]
xor eax, eax
mov word [r12 + rdi*2], ax
test edx, edx
mov rax, qword [rcx]
mov rdx, r12
jne 0x18001ccf8
call qword [rax + 0x50]
mov dword [rbx + 0xc], eax
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov r8, r12
xor edx, edx
mov rcx, qword [rax + 0x30]
call qword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [rbx + 0xc]
not eax
shr eax, 0x1f
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [rax + 0x48]
mov dword [rbx + 0xc], eax
jmp 0x18001ccbe
mov rdx, rbx
mov rcx, r12
call sym.create_registrar
test rax, rax
jne 0x18001cc2e
nop dword [rax]
xor eax, eax
jmp 0x18001cce2
mov dword [rbx + 0xc], 0x8007000e
xor eax, eax
jmp 0x18001cce2
Function at 0x2fc4d1270
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.2fc4d2350
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d1c72
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f4108]
test eax, eax
je 0x2fc4d1d0a
lea rax, [0x2fc4f40e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f4110]
mov qword [rbp - 8], rax
jmp 0x2fc4d1cee
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 0x2fc4d1ce2
cmp qword [rbp - 0x10], 0
je 0x2fc4d1ce2
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 0x2fc4d1ca8
lea rax, [0x2fc4f40e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d1d0b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d1e10
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 0x2fc4d1e38
mov eax, 0
jmp 0x2fc4d1e86
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 0x2fc4d1e61
mov eax, 0
jmp 0x2fc4d1e86
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 0x2fc4d1e81
mov eax, 0
jmp 0x2fc4d1e86
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d1e8c
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 0x2fc4d1f0a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d1f01
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 0x2fc4d1f01
mov rax, qword [rbp - 8]
jmp 0x2fc4d1f1f
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 0x2fc4d1ed4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140048860
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x1400488bd
lea rbx, [0x1400efd00]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1400488a4
cmp r10, 2
jb 0x1400488a4
cmp byte [r9], r8b
jne 0x1400488a4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140048880
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x1400488ff
lea rbx, [0x1400efd00]
cmp r8b, 0x23
jne 0x1400488e3
cmp byte [r9], r8b
jne 0x1400488e3
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x1400488d0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140048a40
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x140048a5a
mov qword [r8], 0
lea rdx, [0x14015ca20]
call fcn.140048910
mov rbx, rax
test rax, rax
jne 0x140048a7a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x140048b51
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140048b51
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140048b51
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140048b51
cmp rdi, 0xffffffffffffffff
je 0x140048b51
mov rax, qword [0x140173d48]
test rax, rax
je 0x140048aee
inc dword [rax + 0xec]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140048b51
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x140048b3e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140173d48]
test rax, rax
je 0x140048b33
dec dword [rax + 0xec]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140048b5a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x140048b4c
mov qword [r14], rdi
mov rax, rsi
jmp 0x140048b5c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret