joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407260
Capabilities:
Get common file path

Disassembly:
push r15
mov eax, 0x2048
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.0040dd10
sub rsp, rax
test rdx, rdx
mov r15, rcx
mov r12, rdx
je 0x407380
lea rcx, [0x00413d23]
call fcn.00406ff0
mov rcx, r12
mov r14, rax
call fcn.00407110
test rax, rax
mov rbx, rax
je 0x40737c
lea rcx, [0x00413d28]
mov rdx, rax
call qword [sym.imp.msvcrt.dll__wputenv_s]
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_free
test esi, esi
jne 0x4073d1
lea rbp, [rsp + 0x40]
mov ecx, 0x1000
mov ebx, 5
lea rdi, [rsp + 0x20]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
call sub.msvcrt.dll__getpid
lea r8, str._MEI_d
mov edx, 0x10
mov rcx, rdi
mov r9d, eax
call fcn.00406e70
mov r13, qword [sym.imp.msvcrt.dll__wtempnam]
mov rdx, rdi
mov rcx, rbp
call r13
mov rcx, rax
mov rsi, rax
call fcn.00408490
test eax, eax
je 0x407390
mov rcx, rsi
call sub.msvcrt.dll_free
sub ebx, 1
jne 0x40730d
test r12, r12
je 0x40737c
test r14, r14
je 0x407370
lea rcx, [0x00413d23]
mov rdx, r14
xor ebx, ebx
call fcn.00407070
mov rcx, r14
call sub.msvcrt.dll_free
mov eax, ebx
add rsp, 0x2048
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x00413d23]
call fcn.004070d0
xor ebx, ebx
jmp 0x407355
xor r14d, r14d
jmp 0x4072cd
mov r8d, 0x1000
mov rdx, rsi
mov rcx, r15
call fcn.00407fd0
mov rcx, rsi
mov ebx, 1
call sub.msvcrt.dll_free
test r12, r12
je 0x407355
test r14, r14
je 0x4073e4
lea rcx, [0x00413d23]
mov rdx, r14
call fcn.00407070
mov rcx, r14
call sub.msvcrt.dll_free
jmp 0x407355
lea rcx, str.LOADER:_Failed_to_set_the_TMP_environment_variable._n
xor ebx, ebx
call fcn.00402b10
jmp 0x407355
lea rcx, [0x00413d23]
call fcn.004070d0
jmp 0x407355

Function at 0x407470
Capabilities:
Delete directory

Disassembly:
push r13
mov eax, 0x44a8
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.0040dd10
sub rsp, rax
mov r8d, 0x1000
lea r13, [rsp + 0x2490]
mov rdx, rcx
lea rsi, [rsp + 0x480]
mov rcx, r13
call fcn.00408270
mov rdx, r13
mov rcx, rsi
call sub.msvcrt.dll_wcscpy
mov rcx, rsi
call sub.msvcrt.dll_wcslen
mov rbp, rax
movzx eax, word [rsp + rax*2 + 0x47e]
cmp ax, 0x2f
je 0x4074d0
cmp ax, 0x5c
jne 0x407515
lea rdx, [0x00413db0]
mov rcx, rsi
call sub.msvcrt.dll_wcscat
lea rbx, [rsp + 0x250]
mov rcx, rsi
mov rdx, rbx
call fcn.0040e5e0
cmp rax, 0xffffffffffffffff
mov r12, rax
jne 0x407530
mov rcx, r13
call qword [sym.imp.msvcrt.dll__wrmdir]
nop
add rsp, 0x44a8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rdx, [0x00413dac]
mov rcx, rsi
add rbp, 1
call sub.msvcrt.dll_wcscat
jmp 0x4074d0
lea rdi, [rsp + 0x20]
mov r8d, 0x230
mov rdx, rbx
mov rcx, rdi
call sub.msvcrt.dll_memcpy
mov r8, rdi
mov rdx, rbp
mov rcx, rsi
call fcn.00407570
mov rdx, rbx
mov rcx, r12
call fcn.0040e670
test eax, eax
je 0x407535
mov rcx, r12
call qword [sym.imp.msvcrt.dll__findclose]
jmp 0x4074fb
Function at 0x407570
Capabilities:
Delete directory
Delete file

Disassembly:
push rbp
mov eax, 0x1038
push rdi
push rsi
push rbx
call fcn.0040dd10
sub rsp, rax
lea rbx, [r8 + 0x24]
mov rdi, rcx
mov rbp, rdx
lea rdx, [0x00413db4]
mov rcx, rbx
mov rsi, r8
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x4075b0
add rsp, 0x1038
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rdx, [0x00413db8]
mov rcx, rbx
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x4075a1
xor eax, eax
mov rcx, rdi
mov rdx, rbx
mov word [rdi + rbp*2], ax
call sub.msvcrt.dll_wcscat
test byte [rsi], 0x10
mov rcx, rdi
je 0x407605
call fcn.00408640
test eax, eax
jne 0x407630
lea rbx, [rsp + 0x20]
mov r8d, 0x1000
mov rdx, rdi
mov rcx, rbx
call fcn.00407fd0
mov rcx, rbx
call fcn.00407470
jmp 0x4075a1
mov rbx, qword [sym.imp.msvcrt.dll__wremove]
call rbx
test eax, eax
je 0x4075a1
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rdi
call rbx
jmp 0x4075a1
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__wrmdir]
jmp 0x4075a1

Function at 0x4078a0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rdi
mov eax, 0x1020
push rsi
push rbx
call fcn.0040dd10
sub rsp, rax
mov rsi, rdx
mov rdi, r8
lea rdx, [0x00413e4c]
call fcn.00404200
mov rdx, rdi
mov rcx, rsi
mov rbx, rax
call fcn.00407640
test rbx, rbx
mov rdi, rax
je 0x407994
test rax, rax
je 0x407994
lea rsi, [rsp + 0x20]
nop word [rax + rax]
mov rcx, rbx
call sub.msvcrt.dll_feof
test eax, eax
jne 0x407990
mov r9, rbx
mov r8d, 0x1000
mov edx, 1
mov rcx, rsi
call sub.msvcrt.dll_fread
test rax, rax
jne 0x407940
mov rcx, rbx
call sub.msvcrt.dll_ferror
test eax, eax
je 0x4078f0
mov rcx, rbx
mov esi, 0xffffffff
call sub.msvcrt.dll_clearerr
jmp 0x407971
mov r9, rdi
mov r8, rax
mov edx, 1
mov rcx, rsi
call sub.msvcrt.dll_fwrite
test rax, rax
je 0x407964
mov rcx, rdi
call sub.msvcrt.dll_ferror
test eax, eax
je 0x4078f0
mov rcx, rdi
mov esi, 0xffffffff
call sub.msvcrt.dll_clearerr
mov rcx, rbx
call sub.msvcrt.dll_fclose
mov rcx, rdi
call sub.msvcrt.dll_fclose
mov eax, esi
add rsp, 0x1020
pop rbx
pop rsi
pop rdi
ret
xor esi, esi
jmp 0x407971
test rbx, rbx
je 0x4079a1
mov rcx, rbx
call sub.msvcrt.dll_fclose
test rdi, rdi
mov esi, 0xffffffff
jne 0x407979
jmp 0x407981
Function at 0x407a20
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
push rdi
mov eax, 0x2110
push rsi
push rbx
call fcn.0040dd10
sub rsp, rax
mov r8d, 0x1000
lea rsi, [rsp + 0x110]
mov rdx, rcx
mov dword [rsp + 0x5c], 0
lea rdi, [rsp + 0xa0]
mov rcx, rsi
call fcn.00408270
mov edx, 1
lea rcx, [0x00406e20]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov rcx, rdi
mov dword [rsp + 0x60], 0x18
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x70], 1
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, 1
xor ecx, ecx
mov rbx, qword [fcn.0040f0e0]
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xb8], 0
mov dword [rsp + 0xdc], 0x101
mov word [rsp + 0xe0], ax
call rbx
mov rcx, rax
call fcn.00406e40
mov ecx, 1
mov qword [rsp + 0xf0], rax
call rbx
mov rcx, rax
call fcn.00406e40
mov ecx, 2
mov qword [rsp + 0xf8], rax
call rbx
mov rcx, rax
call fcn.00406e40
mov qword [rsp + 0x100], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r9d, r9d
mov qword [rsp + 0x40], rdi
mov rcx, rsi
lea rdx, [rsp + 0x80]
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x48], rdx
lea r8, [rsp + 0x60]
mov rdx, rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x407ba0
mov rcx, qword [rsp + 0x80]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x5c]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [rsp + 0x5c]
add rsp, 0x2110
pop rbx
pop rsi
pop rdi
ret
lea rdx, str.Error_creating_child_process__n
lea rcx, str.CreateProcessW
call fcn.00402bf0
mov eax, 0xffffffff
add rsp, 0x2110
pop rbx
pop rsi
pop rdi
ret

Function at 0x407db0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov r12, rcx
mov ecx, 0x2000
mov rbp, rdx
mov rsi, r8
call sub.msvcrt.dll_malloc
test rax, rax
mov rbx, rax
je 0x407eb2
xor edx, edx
mov r8d, 2
mov rcx, r12
call fcn.0040e920
test eax, eax
js 0x407eb2
mov rcx, r12
call fcn.0040ee10
movsxd rdi, eax
cmp rdi, rsi
jb 0x407eb2
lea rax, [rsi - 1]
mov qword [rsp + 0x28], rax
cmp rdi, 0x2000
mov r14d, 0x2000
cmovae r14, rdi
lea r13, [r14 - 0x2000]
sub rdi, r13
cmp rsi, rdi
ja 0x407eb2
xor r8d, r8d
mov edx, r13d
mov rcx, r12
call fcn.0040e920
test eax, eax
js 0x407eb2
mov r9, r12
mov r8, rdi
mov edx, 1
mov rcx, rbx
call sub.msvcrt.dll_fread
cmp rax, rdi
jne 0x407eb2
sub rax, rsi
add rax, 1
mov rdi, rax
jne 0x407e78
jmp 0x407ea0
test r15, r15
mov rdi, r15
je 0x407ea0
lea r15, [rdi - 1]
mov r8, rsi
mov rdx, rbp
lea rcx, [rbx + r15]
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x407e70
lea rsi, [r14 + rdi - 0x2001]
jmp 0x407eb4
mov rax, qword [rsp + 0x28]
test r13, r13
lea rdi, [rax + r13]
jne 0x407e14
xor esi, esi
mov rcx, rbx
call sub.msvcrt.dll_free
mov rax, rsi
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x408490
Capabilities:
Create directory

Disassembly:
push r14
mov eax, 0x2060
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.0040dd10
sub rsp, rax
mov dword [rsp + 0x3c], 0
mov r12, rcx
mov qword [rsp + 0x40], 0xffffffffffffffff
lea rsi, [rsp + 0x40]
mov qword [rsp + 0x60], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rsi
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x408591
mov rbx, qword [rsp + 0x40]
lea rdi, [rsp + 0x60]
xor ebp, ebp
mov rcx, rbp
call sub.msvcrt.dll_free
cmp rbx, 0xffffffffffffffff
je 0x40850b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
lea r9, str.S_1_3_4
mov edx, 0x1000
mov rcx, rdi
lea r8, str.D:_A__FA____s_
test rbx, rbx
cmovne r9, rbx
call qword [sym.imp.msvcrt.dll__snwprintf]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor r9d, r9d
mov edx, 1
mov rcx, rdi
mov dword [rsp + 0x40], 0x18
lea r8, [rsi + 8]
mov dword [rsp + 0x50], 0
call qword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
je 0x408630
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
sete al
movzx eax, al
neg eax
add rsp, 0x2060
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
lea r13, [rsp + 0x3c]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x20], r13
mov edx, 1
mov rdi, qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call rdi
test eax, eax
jne 0x4085c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4084e8
mov edx, dword [rsp + 0x3c]
mov ecx, 1
mov r14, rdx
call sub.msvcrt.dll_calloc
mov rbx, qword [rsp + 0x40]
test rax, rax
mov rbp, rax
je 0x408603
mov qword [rsp + 0x20], r13
mov r9d, r14d
mov r8, rax
mov edx, 1
mov rcx, rbx
call rdi
test eax, eax
jne 0x408610
mov rbx, qword [rsp + 0x40]
lea rdi, [rsp + 0x60]
jmp 0x4084f4
lea rdi, [rsp + 0x60]
mov rcx, qword [rbp]
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
mov rbx, qword [rsp + 0x40]
jmp 0x4084f4
mov eax, 0xffffffff
jmp 0x40857f
Function at 0x408bd0
Capabilities:
Hash data with crc32

Disassembly:
push rsi
push rbx
mov eax, 0x80000000
test ecx, ecx
je 0x408c45
lea rsi, [0x00414100]
mov ebx, 3
jmp 0x408bf7
add ebx, 1
sar ecx, 1
je 0x408c45
test cl, 1
je 0x408bf0
mov edx, ebx
mov r8d, 0x80000000
and edx, 0x1f
mov r11d, dword [rsi + rdx*4]
mov edx, eax
xor eax, eax
jmp 0x408c2e
mov r10d, edx
shr edx, 1
mov r9d, edx
and r10d, 1
shr r8d, 1
xor r9d, 0xedb88320
test r10d, r10d
cmovne edx, r9d
test r11d, r8d
je 0x408c11
lea r9d, [r8 - 1]
xor eax, edx
test r9d, r11d
jne 0x408c11
add ebx, 1
sar ecx, 1
jne 0x408bf7
pop rbx
pop rsi
ret
Function at 0x40cdb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00429a04]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x40cf38
mov rax, qword [0x00429a08]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x40cdfc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x40ce85
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x40cde0
mov rcx, rbx
call fcn.0040da50
test rax, rax
mov r12, rax
je 0x40cf6d
mov rax, qword [0x00429a08]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.0040db80
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00429a08]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x40cf50
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x40ce7e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x40cee0
add dword [0x00429a04], 1
cmp edi, 8
jae 0x40ceb3
test dil, 4
jne 0x40cf24
test edi, edi
je 0x40cea8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x40cf3f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x40cea8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x40cecc
jmp 0x40cea8
add rsi, qword [0x00429a08]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40ce7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.0040f1e0
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x40cea8
xor esi, esi
jmp 0x40ce07
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x40cea8
mov rax, qword [0x00429a08]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.0040f1e0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.0040f1e0
nop
nop dword [rax]

Function at 0x40d6c0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00429ce0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00429cc0]
test rbx, rbx
je 0x40d714
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x40d70b
test rsi, rsi
je 0x40d70b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x40d6f0
lea rcx, [0x00429ce0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x40da50
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00417cb0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x40dabd
mov rcx, r8
call fcn.0040d930
test eax, eax
je 0x40dabd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x40dabd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x40dab4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x40dabf
add rax, 0x28
cmp rax, r9
jne 0x40daa0
xor eax, eax
add rsp, 0x28
ret

Function at 0x40f1e0
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401560]
jmp 0x401530
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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.0040f0e0
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.0040f0e0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401550
Function at 0x140011375
Capabilities:
Terminate process

Disassembly:
jmp 0x140017040
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 0x14001145b
Capabilities:
Parse pe header

Disassembly:
jmp 0x140018390
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400183b0
xor al, al
jmp 0x140018431
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400183c3
xor al, al
jmp 0x140018431
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 0x1400183ed
xor al, al
jmp 0x140018431
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140018401
xor al, al
jmp 0x140018431
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140018413
xor al, al
jmp 0x140018431
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001842f
xor al, al
jmp 0x140018431
mov al, 1
add rsp, 0x38
ret
Function at 0x14001d208
Capabilities:
Create thread

Disassembly:
jmp 0x140036e80
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x178
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x22
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x198]
mov rax, qword [0x14006d158]
xor rax, rbp
mov qword [rbp + 0x130], rax
lea rcx, [0x1400770e1]
call fcn.14001e13a
mov edx, 8
lea rcx, [rbp + 8]
call fcn.14001dfb4
mov rcx, qword [rbp + 0x178]
call fcn.14001d78f
mov qword [rbp + 0x118], rax
mov rcx, qword [rbp + 0x170]
call fcn.14001dee2
mov qword [rbp + 0x120], rax
mov rcx, qword [rbp + 0x168]
call fcn.14001e2b1
mov rcx, qword [rbp + 0x118]
mov r9, rcx
mov rcx, qword [rbp + 0x120]
mov r8, rcx
mov rdx, rax
lea rcx, [rbp + 0x108]
call fcn.14001d62c
mov qword [rbp + 0x128], rax
mov rdx, qword [rbp + 0x128]
lea rcx, [rbp + 8]
call fcn.14001e2f7
nop
lea rcx, [rbp + 0x108]
call fcn.14001da37
lea rax, [0x14001d6db]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x160]
add rax, 8
mov qword [rbp + 0x118], rax
lea rcx, [rbp + 8]
call fcn.14001e0f4
mov rcx, qword [rbp + 0x118]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rbp + 0x28]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll__beginthreadex]
mov rcx, qword [rbp + 0x160]
mov qword [rcx], rax
mov rax, qword [rbp + 0x160]
cmp qword [rax], 0
je 0x140036fcc
lea rcx, [rbp + 8]
call fcn.14001db31
jmp 0x140036fe5
mov rax, qword [rbp + 0x160]
mov dword [rax + 8], 0
mov ecx, 6
call fcn.14001d410
nop
lea rcx, [rbp + 8]
call fcn.14001da37
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_accept
call fcn.14001de01
mov rcx, qword [rbp + 0x130]
xor rcx, rbp
call fcn.14001d857
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret
Function at 0x14001d8ed
Capabilities:
Set socket configuration

Disassembly:
jmp 0x140031c30
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x138
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, reloc.WS2_32.dll_select
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x158]
mov rax, qword [0x14006d158]
xor rax, rbp
mov qword [rbp + 0xf8], rax
lea rcx, [0x140077081]
call fcn.14001e13a
mov dword [rbp + 4], 0xffffffff
mov eax, dword [rbp + 0x128]
mov dword [rbp + 0xf4], eax
mov eax, dword [rbp + 0xf4]
dec eax
mov dword [rbp + 0xf4], eax
cmp dword [rbp + 0xf4], 8
ja case.0x140031cc8.7
movsxd rax, dword [rbp + 0xf4]
lea rcx, [0x140000000]
mov eax, dword [rcx + rax*4 + 0x31e80]
add rax, rcx
jmp rax
mov eax, dword [rbp + 0x130]
mov dword [rbp + 0x24], eax
lea r8, [rbp + 0x24]
mov edx, 0x8004667e
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [rbp + 4], eax
jmp case.0x140031cc8.7
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x130]
mov r8d, 0x20
mov edx, 0xffff
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rbp + 4], eax
jmp case.0x140031cc8.7
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x130]
mov r8d, 4
mov edx, 0xffff
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rbp + 4], eax
jmp case.0x140031cc8.7
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x130]
mov r8d, 0x1002
mov edx, 0xffff
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rbp + 4], eax
jmp case.0x140031cc8.7
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x130]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rbp + 4], eax
jmp case.0x140031cc8.7
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x130]
mov r8d, 0x1006
mov edx, 0xffff
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rbp + 4], eax
jmp case.0x140031cc8.7
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x130]
mov r8d, 0x1005
mov edx, 0xffff
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rbp + 4], eax
jmp case.0x140031cc8.7
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x130]
mov r8d, 1
mov edx, 6
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0xffffffff
jne 0x140031e41
mov dword [rbp + 0xf4], 0xffffffff
jmp 0x140031e4b
mov dword [rbp + 0xf4], 0
mov eax, dword [rbp + 0xf4]
mov edi, eax
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_accept
call fcn.14001de01
mov eax, edi
mov rcx, qword [rbp + 0xf8]
xor rcx, rbp
call fcn.14001d857
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x14001d97e
Capabilities:
Terminate process

Disassembly:
jmp 0x1400536c0
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 0x14001da19
Capabilities:
Read file on windows

Disassembly:
jmp 0x1400358f0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x168]
mov rax, qword [0x14006d158]
xor rax, rbp
mov qword [rbp + 0x118], rax
lea rcx, [0x1400770aa]
call fcn.14001e13a
lea r8, [0x14005f714]
mov rdx, qword [rbp + 0x140]
lea rcx, [rbp + 8]
call qword [sym.imp.ucrtbased.dll_fopen_s]
cmp qword [rbp + 8], 0
jne 0x140035964
xor eax, eax
jmp 0x1400359fa
mov r8d, 2
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_fseek]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_ftell]
mov dword [rbp + 0x24], eax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_fseek]
mov eax, dword [rbp + 0x24]
mov ecx, eax
call qword [sym.imp.ucrtbased.dll_malloc]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
je 0x1400359f8
mov eax, dword [rbp + 0x24]
mov r8d, eax
xor edx, edx
mov rcx, qword [rbp + 0x48]
call fcn.14001dcdf
mov eax, dword [rbp + 0x24]
mov r9, qword [rbp + 8]
mov r8d, 1
mov edx, eax
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ucrtbased.dll_fread]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_fclose]
cmp qword [rbp + 0x148], 0
je 0x1400359f2
mov rax, qword [rbp + 0x148]
mov ecx, dword [rbp + 0x24]
mov dword [rax], ecx
mov rax, qword [rbp + 0x48]
jmp 0x1400359fa
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_accept
call fcn.14001de01
mov rax, rdi
mov rcx, qword [rbp + 0x118]
xor rcx, rbp
call fcn.14001d857
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret

Function at 0x14001dbea
Capabilities:
Parse pe header

Disassembly:
jmp 0x140055cb0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140055cd0
xor al, al
jmp 0x140055d51
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140055ce3
xor al, al
jmp 0x140055d51
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 0x140055d0d
xor al, al
jmp 0x140055d51
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140055d21
xor al, al
jmp 0x140055d51
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140055d33
xor al, al
jmp 0x140055d51
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140055d4f
xor al, al
jmp 0x140055d51
mov al, 1
add rsp, 0x38
ret