joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400726f0
Capabilities:
Print debug messages

Disassembly:
push rdi
sub rsp, 0x20
cmp dword [rcx + 0x12c], 0
mov rdi, rcx
jne 0x140072810
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], rsi
nop word [rax + rax]
mov ecx, dword [rdi + 0x130]
lea rdx, [rdi + 0x138]
or r9d, 0xffffffff
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_synch_l1_2_1.dll_WaitForMultipleObjects]
mov esi, eax
test eax, eax
je 0x1400727f4
cmp qword [rdi + 0xe8], 0
je 0x1400727f4
mov edx, dword [rdi + 0xf0]
xor ecx, ecx
test edx, edx
je 0x140072772
mov rbx, qword [rdi + 0xe0]
cmp qword [rbx + rcx*8], 0
jne 0x14007278a
inc ecx
cmp ecx, edx
jb 0x140072765
xor ebx, ebx
test rbx, rbx
je 0x1400727f4
nop dword [rax]
mov r11, rbx
test rbx, rbx
jne 0x140072790
jmp 0x1400727d1
mov rbx, qword [rbx + rcx*8]
jmp 0x140072774
mov rcx, qword [rbx + 0x10]
test rcx, rcx
jne 0x1400727ce
mov eax, dword [rbx + 0x18]
xor edx, edx
mov r10d, dword [rdi + 0xf0]
div r10d
inc edx
nop word [rax + rax]
cmp edx, r10d
jae 0x1400727ce
mov rax, qword [rdi + 0xe0]
mov r9, qword [rax + rdx*8]
test r9, r9
cmovne rcx, r9
inc edx
test rcx, rcx
je 0x1400727b0
mov rbx, rcx
mov rax, qword [r11 + 8]
test rax, rax
je 0x1400727ef
cmp dword [rax + 0x18], esi
jne 0x1400727ef
mov rcx, qword [rax]
test rcx, rcx
je 0x1400727ef
mov edx, dword [rax + 8]
call fcn.1400723a0
test rbx, rbx
jne 0x140072780
cmp dword [rdi + 0x12c], 0
je 0x140072720
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov r8d, 0xd2
lea rdx, str.CTimerEventNotify::WorkThreadLoop
lea rcx, [0x140094818]
add rsp, 0x20
pop rdi
jmp fcn.140033040
Function at 0x1400733d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x160
mov rax, qword [0x1400d8010]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov r15, qword [rsp + 0x1b0]
xor edx, edx
mov rbp, qword [rsp + 0x1b8]
mov rsi, rcx
lea rcx, [rsp + 0xe0]
mov r14, r9
lea r8d, [rdx + 0x64]
call fcn.1400825c0
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x64]
call fcn.1400825c0
lea r8, [0x1400a8890]
mov edx, 0x6d
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_1.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x1400735d4
mov rdx, rax
mov qword [rsp + 0x198], rbx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
mov rdx, rdi
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_SizeofResource]
mov rcx, rbx
mov edi, eax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LockResource]
xor r8d, r8d
mov dword [rsp + 0x24], 0x204d454d
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov dword [rsp + 0x3c], edi
call qword [sym.imp.api_ms_win_mm_misc_l1_1_0.dll_mmioOpenW]
mov r9d, 0x20
mov dword [rsp + 0xb0], 0x45564157
mov rcx, rax
lea rdx, [rsp + 0xa8]
xor r8d, r8d
mov rbx, rax
call qword [sym.imp.api_ms_win_mm_misc_l1_1_0.dll_mmioDescend]
mov rcx, rbx
test eax, eax
jne 0x140073534
lea r9d, [rax + 0x10]
mov dword [rsp + 0x90], 0x20746d66
lea r8, [rsp + 0xa8]
lea rdx, [rsp + 0x90]
call qword [sym.imp.api_ms_win_mm_misc_l1_1_0.dll_mmioDescend]
mov rcx, rbx
test eax, eax
jne 0x140073534
xor r8d, r8d
lea rdx, [rsp + 0x90]
call qword [sym.imp.api_ms_win_mm_misc_l1_1_0.dll_mmioAscend]
mov r9d, 0x10
mov dword [rsp + 0xc0], 0x61746164
lea r8, [rsp + 0xa8]
mov rcx, rbx
lea rdx, [rsp + 0xc0]
call qword [sym.imp.api_ms_win_mm_misc_l1_1_0.dll_mmioDescend]
mov rcx, rbx
test eax, eax
je 0x140073565
xor edx, edx
call qword [sym.imp.api_ms_win_mm_misc_l1_1_0.dll_mmioClose]
mov rbx, qword [rsp + 0x198]
xor eax, eax
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140079e30
add rsp, 0x160
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
xor r8d, r8d
lea rdx, [rsp + 0xc0]
call qword [sym.imp.api_ms_win_mm_misc_l1_1_0.dll_mmioAscend]
mov edx, dword [rsp + 0x9c]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.api_ms_win_mm_misc_l1_1_0.dll_mmioSeek]
mov r8d, dword [rsp + 0x94]
lea rdi, [rsi + 0xfc]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.api_ms_win_mm_misc_l1_1_0.dll_mmioRead]
cmp dword [rsp + 0x94], eax
je 0x1400735b4
xor edx, edx
mov rcx, rbx
jmp 0x140073536
mov eax, dword [rsp + 0xc4]
xor edx, edx
mov qword [r14], rdi
mov dword [r15], eax
movzx ecx, word [rsi + 0x108]
div ecx
mov dword [rbp], eax
jmp 0x14007353c
mov eax, 0x80004005
jmp 0x140073546
Function at 0x140074330
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1400d8010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [rcx + 0x58], rdx
lea r8, [rsp + 0x30]
mov rbx, rcx
mov rcx, qword [rcx + 0x28]
mov rax, qword [rcx]
mov edx, dword [rbx + 0x50]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
test eax, eax
jns 0x140074385
mov edx, eax
lea rcx, str.Failed_to_get_buffer:__x._n
call fcn.140074d10
xor al, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140079e30
add rsp, 0x40
pop rbx
ret
mov rcx, qword [rbx + 0x28]
mov r8d, 2
mov edx, dword [rbx + 0x50]
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
jns 0x1400743bf
mov edx, eax
lea rcx, str.Failed_to_release_buffer:__x._n
call fcn.140074d10
xor al, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140079e30
add rsp, 0x40
pop rbx
ret
xor eax, eax
lea r8, [0x140074510]
mov qword [rsp + 0x28], rax
mov r9, rbx
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov qword [rbx + 0x30], rax
test rax, rax
jne 0x140074410
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str.Unable_to_create_transport_thread:__x.
call fcn.140074d10
xor al, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140079e30
add rsp, 0x40
pop rbx
ret
mov rcx, qword [rbx + 0x20]
mov rax, qword [rcx]
call qword [rax + 0x50]
test eax, eax
jns 0x140074441
mov edx, eax
lea rcx, str.Unable_to_start_render_client:__x._n
call fcn.140074d10
xor al, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140079e30
add rsp, 0x40
pop rbx
ret
mov al, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140079e30
add rsp, 0x40
pop rbx
ret
Function at 0x140074d70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0xa0
mov rax, qword [0x1400d8010]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbx, rcx
mov qword [rcx + 0xa0], 1
mov rcx, qword [rcx]
xor edi, edi
test rcx, rcx
je 0x140074daf
call fcn.14007a4b8
mov qword [rbx], rdi
lea r8, [0x1400a8890]
mov qword [rbx + 8], rdi
mov edx, 0x6d
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_1.dll_FindResourceW]
mov rdi, rax
test rax, rax
jne 0x140074df3
lea r8, [0x1400b2798]
xor ecx, ecx
lea edx, [rax + 0x6d]
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_1.dll_FindResourceW]
mov rdi, rax
test rax, rax
jne 0x140074df3
mov eax, 0x80004005
jmp 0x140074f1a
xor ecx, ecx
mov qword [rsp + 0xc0], rsi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x140074e42
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_SizeofResource]
mov edi, eax
test eax, eax
je 0x140074e42
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LockResource]
mov rsi, rax
test rax, rax
jne 0x140074e4c
mov eax, 0x80004005
jmp 0x140074f12
mov rcx, rdi
mov qword [rsp + 0xb8], rbp
call fcn.14007a4b0
mov qword [rbx + 0xc0], rax
test rax, rax
jne 0x140074e72
mov eax, 0x8007000e
jmp 0x140074f0a
mov r8, rdi
mov rdx, rsi
mov rcx, rax
call fcn.1400816b0
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x64]
call fcn.1400825c0
mov rax, qword [rbx + 0xc0]
lea rdx, [rsp + 0x20]
mov r8d, 0x10000
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov dword [rsp + 0x24], 0x204d454d
mov dword [rsp + 0x3c], edi
call qword [sym.imp.api_ms_win_mm_misc_l1_1_0.dll_mmioOpenW]
mov rcx, rbx
mov qword [rbx + 8], rax
call fcn.140074f40
mov edi, eax
test eax, eax
jns 0x140074edb
mov rcx, qword [rbx + 8]
xor edx, edx
call qword [sym.imp.api_ms_win_mm_misc_l1_1_0.dll_mmioClose]
jmp 0x140074f08
mov rcx, rbx
call fcn.1400750e0
mov edi, eax
test eax, eax
js 0x140074f0a
mov eax, dword [rbx + 0x14]
lea rdx, str.CWaveFile::Open
mov r8d, 0x66
mov dword [rbx + 0x38], eax
lea rcx, str._s__d_End
call fcn.140033040
mov eax, edi
mov rbp, qword [rsp + 0xb8]
mov rsi, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140079e30
mov rbx, qword [rsp + 0xc8]
add rsp, 0xa0
pop rdi
ret
Function at 0x1400774c0
Capabilities:
Enumerate process modules

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x4860
call fcn.140082ff0
sub rsp, rax
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48b0], rbx
mov rax, qword [0x1400d8010]
xor rax, rsp
mov qword [rsp + 0x4850], rax
mov r14, rdx
mov r12, rcx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rdx
xor edx, edx
mov r8d, 0x4000
lea rcx, [rsp + 0x50]
call fcn.1400825c0
mov dword [rsp + 0x40], 0
xor ebx, ebx
lea r8, [rsp + 0x40]
mov edx, 0x4000
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_psapi_l1_1_0.dll_K32EnumProcesses]
or ebp, 0xffffffff
test eax, eax
je 0x14007768e
mov r15d, dword [rsp + 0x40]
shr r15, 2
xor esi, esi
test r15, r15
je 0x14007768e
lea r13d, [rbx + 1]
test ebx, ebx
jne 0x14007768e
mov r8d, dword [rsp + rsi*4 + 0x50]
mov edx, r13d
mov ecx, 0x1fffff
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x140077682
mov qword [rsp + 0x38], 0
lea r9, [rsp + 0x40]
lea r8d, [rbx + 8]
lea rdx, [rsp + 0x38]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_psapi_l1_1_0.dll_K32EnumProcessModules]
test eax, eax
je 0x140077679
test dword [rsp + 0x40], 0xfffffff8
jbe 0x140077679
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x4050]
call fcn.1400825c0
mov r9d, 0x3ff
lea r8, [rsp + 0x4050]
mov rdx, qword [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_psapi_l1_1_0.dll_K32GetModuleBaseNameW]
lea rdx, [rsp + 0x4050]
mov rcx, qword [r12]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140077679
mov rax, qword [r14]
cmp dword [rax - 0x10], ebx
jne 0x140077611
mov ebx, r13d
jmp 0x140077679
xor eax, eax
mov qword [rsp + 0x48], rax
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.140077df0
mov rdx, qword [r14]
test rdx, rdx
je 0x14007765b
mov rax, qword [rsp + 0x48]
cmp dword [rax - 0x10], 0
jl 0x140077660
mov rcx, rax
call fcn.140081b98
mov rcx, rax
test rax, rax
je 0x14007765b
mov rax, qword [rsp + 0x48]
sub rcx, rax
sar rcx, 1
test ecx, ecx
cmovns ebx, r13d
jmp 0x140077660
mov rax, qword [rsp + 0x48]
lea rdx, [rax - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
sub eax, r13d
jg 0x140077679
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
inc rsi
cmp rsi, r15
jl 0x140077560
mov rdx, qword [r12]
sub rdx, 0x18
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400776ac
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r14]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebp
sub ebp, 1
jg 0x1400776c7
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, ebx
mov rcx, qword [rsp + 0x4850]
xor rcx, rsp
call fcn.140079e30
mov rbx, qword [rsp + 0x48b0]
add rsp, 0x4860
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140077840
Capabilities:
Check mutex on windows

Disassembly:
sub rsp, 0x28
or rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140077850
test rax, rax
jne 0x140077869
mov eax, 1
add rsp, 0x28
ret
mov r8, rcx
mov qword [rsp + 0x20], rbx
xor ecx, ecx
mov edx, 1
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateMutexW]
mov rbx, rax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400778a3
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rbx, qword [rsp + 0x20]
xor eax, eax
add rsp, 0x28
ret
mov eax, 1
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
Function at 0x140079110
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1400d8010]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp dword [rcx + 8], 0
mov rbx, rcx
je 0x14007916b
lea rax, [rsp + 0x30]
mov r9, rcx
mov qword [rsp + 0x28], rax
lea r8, [0x140079080]
xor edx, edx
mov dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov qword [rbx + 0x18], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140079e30
add rsp, 0x40
pop rbx
ret
xor r8d, r8d
lea rcx, [0x140078ff0]
mov rdx, rbx
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_CreateThreadpoolWork]
mov rcx, rax
mov qword [rbx + 0x10], rax
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_SubmitThreadpoolWork]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140079e30
add rsp, 0x40
pop rbx
ret

Function at 0x1400791a0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov dword [rcx + 8], 1
mov ecx, 0x90
call fcn.14007a474
xor edx, edx
mov qword [rsp + 0x30], rax
mov r8d, 0x90
mov rcx, rax
mov rbx, rax
call fcn.1400825c0
mov rcx, rbx
call fcn.14003e3e0
mov qword [rdi + 0x10], rax
call fcn.1400097d0
movzx ecx, word [rax + 0x4e]
mov rax, qword [rdi + 0x10]
and ecx, 1
mov dword [rax + 0x1c], ecx
call fcn.1400097d0
mov ecx, dword [rax + 0x4c]
mov rax, qword [rdi + 0x10]
shr ecx, 0x11
and ecx, 1
mov dword [rax + 0x20], ecx
call fcn.1400097d0
mov ecx, dword [rax + 0x4c]
mov rax, qword [rdi + 0x10]
shr ecx, 9
and ecx, 1
mov dword [rax + 0x24], ecx
call fcn.1400097d0
mov ecx, dword [rax + 0x4c]
mov rax, qword [rdi + 0x10]
shr ecx, 0xb
and ecx, 1
mov dword [rax + 0x28], ecx
mov rcx, qword [rdi + 0x10]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.14003e640
Function at 0x1400822f0
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
lea r9, [0x140090550]
xor ecx, ecx
lea r8, [0x140090548]
lea rdx, str.FlsAlloc
call fcn.140082118
mov rbx, rax
test rax, rax
je 0x140082330
mov rcx, rax
call fcn.14007ad54
mov rcx, rdi
call rbx
jmp 0x140082336
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsAlloc]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140082398
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x140090560]
mov ecx, 2
lea r8, [0x140090558]
lea rdx, str.FlsGetValue
call fcn.140082118
mov rdi, rax
test rax, rax
je 0x1400823d9
mov rcx, rax
call fcn.14007ad54
mov ecx, ebx
call rdi
jmp 0x1400823e1
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400823ec
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x140090568]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x140090560]
call fcn.140082118
mov rsi, rax
test rax, rax
je 0x140082438
mov rcx, rax
call fcn.14007ad54
mov rdx, rbx
mov ecx, edi
call rsi
jmp 0x140082443
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x2fc4d4580
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.2fc4d5660
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d4f82
Capabilities:
Get thread local storage value

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

Function at 0x2fc4d5120
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 0x2fc4d5148
mov eax, 0
jmp 0x2fc4d5196
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 0x2fc4d5171
mov eax, 0
jmp 0x2fc4d5196
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 0x2fc4d5191
mov eax, 0
jmp 0x2fc4d5196
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d519c
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 0x2fc4d521a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d5211
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 0x2fc4d5211
mov rax, qword [rbp - 8]
jmp 0x2fc4d522f
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 0x2fc4d51e4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400111fe
Capabilities:
Terminate process

Disassembly:
jmp 0x1400130a0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140011280
Capabilities:
Get hostname
Initialize winsock library
Resolve dns
Terminate process

Disassembly:
jmp 0x1400118b0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x488
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xba
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x4a8]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x450], rax
lea rcx, [0x1400230a8]
call fcn.140011389
lea rdx, [rbp + 0x10]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rbp + 0x1c4], eax
cmp dword [rbp + 0x1c4], 0
je 0x140011935
mov edx, dword [rbp + 0x1c4]
lea rcx, str.WSAStartup_failed:_d_n
call fcn.14001119f
mov eax, 0xffffffff
jmp 0x140011ad9
lea rax, [rbp + 0x1f0]
mov rdi, rax
xor eax, eax
mov ecx, 0x64
rep stosb byte [rdi], al
mov edx, 0x64
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jge 0x14001196a
lea rcx, str.Error:gethostname__n
call fcn.14001119f
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rbp + 0x278], rax
cmp qword [rbp + 0x278], 0
jne 0x14001199d
lea rcx, str.Get_IP_address_error_
call qword [sym.imp.ucrtbased.dll_puts]
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll_exit]
mov dword [rbp + 0x294], 0
jmp 0x1400119b7
mov eax, dword [rbp + 0x294]
inc eax
mov dword [rbp + 0x294], eax
movsxd rax, dword [rbp + 0x294]
mov rcx, qword [rbp + 0x278]
mov rcx, qword [rcx + 8]
cmp qword [rcx + rax*8], 0
je 0x1400119fc
movsxd rax, dword [rbp + 0x294]
mov rcx, qword [rbp + 0x278]
mov rcx, qword [rcx + 8]
mov edx, dword [rbp + 0x294]
inc edx
mov r8, qword [rcx + rax*8]
lea rcx, str.Aliases__d_n
call fcn.14001119f
jmp 0x1400119a9
mov rax, qword [rbp + 0x278]
movsx eax, word [rax + 0x10]
cmp eax, 2
jne 0x140011a1c
lea rax, str.AF_INET
mov qword [rbp + 0x448], rax
jmp 0x140011a2a
lea rax, str.AF_INET6
mov qword [rbp + 0x448], rax
mov rdx, qword [rbp + 0x448]
lea rcx, str.Address_type:_s_n
call fcn.14001119f
mov dword [rbp + 0x2b4], 0
jmp 0x140011a57
mov eax, dword [rbp + 0x2b4]
inc eax
mov dword [rbp + 0x2b4], eax
movsxd rax, dword [rbp + 0x2b4]
mov rcx, qword [rbp + 0x278]
mov rcx, qword [rcx + 0x18]
cmp qword [rcx + rax*8], 0
je 0x140011aa9
movsxd rax, dword [rbp + 0x2b4]
mov rcx, qword [rbp + 0x278]
mov rcx, qword [rcx + 0x18]
mov rax, qword [rcx + rax*8]
mov ecx, dword [rax]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, dword [rbp + 0x2b4]
inc ecx
mov r8, rax
mov edx, ecx
lea rcx, str.IP_Address__d:__s_n
call fcn.14001119f
jmp 0x140011a49
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [rbp + 0x1c4], eax
cmp dword [rbp + 0x1c4], 0
je 0x140011ad7
mov edx, dword [rbp + 0x1c4]
lea rcx, str.WSACleanup_failed:_d_n
call fcn.14001119f
mov eax, 0xffffffff
jmp 0x140011ad9
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001acd0]
call fcn.140011320
mov rax, rdi
mov rcx, qword [rbp + 0x450]
xor rcx, rbp
call fcn.1400111b8
lea rsp, [rbp + 0x468]
pop rdi
pop rbp
ret
Function at 0x14001128a
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400143f0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014410
xor al, al
jmp 0x140014491
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014423
xor al, al
jmp 0x140014491
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001444d
xor al, al
jmp 0x140014491
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014461
xor al, al
jmp 0x140014491
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014473
xor al, al
jmp 0x140014491
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001448f
xor al, al
jmp 0x140014491
mov al, 1
add rsp, 0x38
ret