joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003ab80
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x68
cmp byte [0x1404acc8d], 0
je 0x14003ab94
xor al, al
add rsp, 0x68
ret
cmp byte [0x1404acc8c], 0
mov byte [0x1404acc8d], 1
jne 0x14003abdb
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1402ced28], eax
cmp eax, 0xffffffff
jne 0x14003abdb
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
lea rdx, str.Cant_initialize_threads:_error__d_n
mov r8d, 1
call fcn.140018470
mov al, 1
add rsp, 0x68
ret
mov qword [rsp + 0x78], rbx
mov byte [0x1404acc8c], 1
call fcn.14003aed0
xor bl, bl
cmp byte [0x1404acc8d], bl
je 0x14003ad77
mov ecx, dword [0x1402ced28]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x14003ad62
mov edx, 2
xor ecx, ecx
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_abort_behavior
lea rdx, [0x14003a5f0]
mov ecx, reloc.WS2_32.dll_shutdown
call sub.api_ms_win_crt_runtime_l1_1_0.dll_signal
mov edx, 0xb0
mov ecx, 1
call sub.api_ms_win_crt_heap_l1_1_0.dll_calloc
mov qword [rsp + 0x70], rax
test rax, rax
jne 0x14003ac4c
mov bl, 1
jmp 0x14003ad62
mov ecx, dword [0x1402ced28]
mov rdx, rax
mov qword [rsp + 0x60], rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rcx, qword [rsp + 0x70]
mov dword [rcx + 0x88], eax
mov rcx, qword [rsp + 0x70]
call fcn.14003af60
mov eax, dword [0x1402ced78]
lea rcx, [rsp + 0x70]
neg eax
cdqe
add rcx, rax
mov rax, qword [rsp + 0x70]
mov qword [rax + 0x78], rcx
mov rdx, qword [0x140524448]
test rdx, rdx
je 0x14003acef
mov rax, qword [0x1402cf2d8]
lea r9, str.D:winx64_packages_build_srcmysysmy_thr_init.c
xor r8d, r8d
mov dword [rsp + 0x20], 0x130
lea rcx, [rsp + 0x30]
call qword [rax + 0x190]
lea rcx, [0x140524420]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test rdi, rdi
je 0x14003acfc
mov rax, qword [0x1402cf2d8]
xor edx, edx
mov rcx, rdi
call qword [rax + 0x198]
jmp 0x14003acfc
lea rcx, [0x140524420]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rsp + 0x70]
mov rdx, qword [0x1404acc90]
mov rdi, qword [rsp + 0x60]
inc rdx
mov qword [0x1404acc90], rdx
mov qword [rax + 0x98], rdx
mov rax, qword [rsp + 0x70]
mov qword [rax + 0x90], rdx
inc dword [0x1404acc88]
mov rcx, qword [0x140524448]
test rcx, rcx
je 0x14003ad49
mov rax, qword [0x1402cf2d8]
call qword [rax + 0x160]
lea rcx, [0x140524420]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [rsp + 0x70]
mov byte [rax + 0xa8], 1
test bl, bl
jne 0x14003ad77
call fcn.14003ad90
mov rbx, qword [rsp + 0x78]
xor al, al
add rsp, 0x68
ret
mov rbx, qword [rsp + 0x78]
mov al, 1
add rsp, 0x68
ret
Function at 0x14003e870
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r13d, r9d
mov rsi, r8
mov r15, rdx
mov rbp, rcx
xor r14d, r14d
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ftell
mov r9, rbp
movsxd r12, eax
mov r8, rsi
mov edx, 1
mov rcx, r15
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, rax
cmp rax, rsi
je 0x14003e922
nop
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov rdi, rax
call fcn.14003a5e0
mov ecx, dword [rdi]
mov dword [rax], ecx
cmp rbx, 0xffffffffffffffff
je 0x14003e8e3
add r12, rbx
add r15, rbx
add r14, rbx
sub rsi, rbx
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov rcx, rbp
cmp dword [rax], 4
jne 0x14003e92c
xor r8d, r8d
mov edx, r12d
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
test eax, eax
jne 0x14003e907
mov rcx, rbp
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ftell
mov r9, rbp
mov r8, rsi
mov edx, 1
mov rcx, r15
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, rax
cmp rax, rsi
jne 0x14003e8c0
test r13b, 6
je 0x14003e978
xor eax, eax
jmp 0x14003e97c
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ferror
test eax, eax
jne 0x14003e93b
test r13b, 6
je 0x14003e978
test r13b, 0x1a
je 0x14003e96f
mov rcx, rbp
call fcn.140046d10
mov ebx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov ecx, ebx
mov rdi, rax
call fcn.140047470
mov r9d, dword [rdi]
mov r8, rax
mov edx, 4
mov ecx, 3
call fcn.14003a440
mov rax, 0xffffffffffffffff
jmp 0x14003e97c
lea rax, [rbx + r14]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14003f180
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x14049b9c0]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rax, qword [0x1402cf2d8]
mov rbx, rdx
mov rdi, rcx
lea rdx, [rcx + 0x48]
mov ecx, dword [0x140524394]
call qword [rax + 0x40]
lea rcx, [rdi + 0x48]
mov qword [rdi + 0x70], rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, dword [0x140524370]
xor r9d, r9d
mov dword [rsp + 0x30], 0
mov r8d, 8
mov qword [rsp + 0x28], 5
mov rdx, rdi
mov qword [rsp + 0x20], 1
call fcn.14003f9b0
test al, al
je 0x14003f255
mov rcx, rdi
call fcn.14003f8e0
mov rcx, qword [rdi + 0x70]
test rcx, rcx
je 0x14003f224
mov rax, qword [0x1402cf2d8]
call qword [rax + 0x48]
mov qword [rdi + 0x70], 0
lea rcx, [rdi + 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov al, 1
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14008e500
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
test rbx, rbx
je 0x14003f25f
cmp byte [rbx], 0
jne 0x14003f2b0
lea rcx, str.TMPDIR
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov rbx, rax
test rax, rax
jne 0x14003f282
lea rcx, str.TEMP
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov rbx, rax
test rbx, rbx
jne 0x14003f29b
lea rcx, [0x1400a9af4]
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov rbx, rax
test rax, rax
je 0x14003f2a0
cmp byte [rbx], 0
jne 0x14003f2b0
lea rbx, str.C:TEMP
nop word [rax + rax]
mov edx, 0x3b
mov rcx, rbx
call fcn.140074210
mov r8d, eax
lea rcx, [rsp + 0x50]
sub r8d, ebx
mov rdx, rbx
mov rsi, rax
call fcn.140028d30
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.140047640
mov ecx, dword [0x140524370]
lea rdx, [rsp + 0x50]
mov r9d, reloc.WS2_32.dll_recv
mov r8, rax
call fcn.14003bc10
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14003f22e
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14003fa50
test al, al
jne 0x14003f22e
lea rbx, [rsi + 1]
cmp byte [rsi], al
jne 0x14003f2b0
mov rcx, rdi
call fcn.14003f920
mov rax, qword [rdi]
mov qword [rdi + 0x30], rax
mov rax, qword [rdi + 8]
dec rax
mov qword [rdi + 0x38], 0
mov qword [rdi + 0x40], rax
xor al, al
jmp 0x14003f230
Function at 0x1400456b0
Capabilities:
Get file size

Disassembly:
jmp 0x140046e80
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
movsxd rax, ecx
mov rsi, rdx
lea rcx, [rax + rax*2]
mov rax, qword [0x1402cee90]
mov rdi, qword [rax + rcx*8 + 8]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 2
lea r9, [rsp + 0x60]
mov rcx, rax
mov r8, rbx
xor eax, eax
mov rdx, rdi
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x140046f00
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140048f80
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rsp + 0x60]
xor edx, edx
call sub.api_ms_win_crt_stdio_l1_1_0.dll__open_osfhandle
mov ebx, eax
test eax, eax
js 0x140046eeb
mov rdx, rsi
mov ecx, eax
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__fstat64
mov edi, eax
test eax, eax
jne 0x140046f31
mov rcx, qword [rsp + 0x60]
lea rdx, [rsi + 0x18]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ecx, ebx
call sub.api_ms_win_crt_stdio_l1_1_0.dll__close
mov rbx, qword [rsp + 0x50]
mov eax, edi
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x140046e80
Capabilities:
Get file size

Disassembly:
jmp 0x140046e80
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
movsxd rax, ecx
mov rsi, rdx
lea rcx, [rax + rax*2]
mov rax, qword [0x1402cee90]
mov rdi, qword [rax + rcx*8 + 8]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 2
lea r9, [rsp + 0x60]
mov rcx, rax
mov r8, rbx
xor eax, eax
mov rdx, rdi
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x140046f00
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140048f80
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rsp + 0x60]
xor edx, edx
call sub.api_ms_win_crt_stdio_l1_1_0.dll__open_osfhandle
mov ebx, eax
test eax, eax
js 0x140046eeb
mov rdx, rsi
mov ecx, eax
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__fstat64
mov edi, eax
test eax, eax
jne 0x140046f31
mov rcx, qword [rsp + 0x60]
lea rdx, [rsi + 0x18]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ecx, ebx
call sub.api_ms_win_crt_stdio_l1_1_0.dll__close
mov rbx, qword [rsp + 0x50]
mov eax, edi
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140046fc0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
mov r9, r8
test r8, r8
je 0x140047030
movsxd rax, ecx
mov r8d, 0xffffffff
cmp r9, r8
mov qword [rsp + 0x20], 0
cmovbe r8d, r9d
lea r9, [rsp + 0x50]
lea rcx, [rax + rax*2]
mov rax, qword [0x1402cee90]
mov rcx, qword [rax + rcx*8 + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140047027
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
je 0x140047030
cmp eax, 0x6d
je 0x140047030
mov ecx, eax
call fcn.140048f80
mov rax, 0xffffffffffffffff
add rsp, 0x38
ret
mov eax, dword [rsp + 0x50]
add rsp, 0x38
ret
xor eax, eax
add rsp, 0x38
ret

Function at 0x1400473d0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x58
xor r9d, r9d
mov r10, rdx
test r8, r8
jne 0x1400473e6
xor eax, eax
add rsp, 0x58
ret
movsxd rax, ecx
mov r11d, 0xffffffff
cmp r8, r11
mov edx, r11d
cmovbe rdx, r8
lea rcx, [rax + rax*2]
mov rax, qword [0x1402cee90]
test byte [rax + rcx*8 + 0x10], 8
je 0x140047428
mov qword [rsp + 0x30], r9
mov qword [rsp + 0x38], r9
mov qword [rsp + 0x48], r9
lea r9, [rsp + 0x30]
mov qword [rsp + 0x40], 0xffffffffffffffff
mov rcx, qword [rax + rcx*8 + 8]
mov r8d, edx
mov qword [rsp + 0x20], r9
mov rdx, r10
lea r9, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140047460
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140048f80
mov rax, 0xffffffffffffffff
add rsp, 0x58
ret
mov eax, dword [rsp + 0x70]
add rsp, 0x58
ret

Function at 0x140048050
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x138
mov rax, qword [0x14049b9c0]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov ebp, r9d
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
test rdx, rdx
jne 0x14004809d
lea rdx, [rsp + 0x20]
mov ecx, 0xf6
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
lea rcx, [rsp + 0x20]
cmove rcx, rbx
mov rbx, rcx
mov r9, rsi
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x1400480ba
mov eax, 0xffffffff
jmp 0x140048100
mov r8d, dword [rsp + 0x180]
mov rcx, rsi
mov edx, r8d
and edx, 0x40
or edx, ebp
or edx, 0x302
call fcn.14003e440
mov edi, eax
test eax, eax
jns 0x1400480f8
call fcn.14003a5e0
xor edx, edx
mov rcx, rsi
mov ebx, dword [rax]
call fcn.140049140
call fcn.14003a5e0
mov dword [rax], ebx
jmp 0x1400480fe
inc dword [0x1404ad534]
mov eax, edi
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.14008e500
add rsp, 0x138
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140048dd0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x140048de4
lea rbx, [rcx - 1]
add rbx, rax
cmp rbx, rdi
jb 0x140048e75
nop dword [rax]
movsx eax, byte [rbx]
cmp al, 0x5c
je 0x140048e75
cmp al, 0x2f
je 0x140048e75
cmp al, 0x3a
je 0x140048e30
mov edx, eax
lea rcx, str.__:___
call fcn.14008ee78
test rax, rax
jne 0x140048ef0
dec rbx
cmp rbx, rdi
jae 0x140048e00
jmp 0x140048e75
sub rbx, rdi
mov qword [rsp + 0x30], rsi
cmp rbx, 1
jne 0x140048e6a
movsx ebx, byte [rdi]
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, ebx
mov esi, eax
call sub.api_ms_win_crt_string_l1_1_0.dll_toupper
lea ecx, [rax - 0x41]
cmp cl, 0x19
ja 0x140048e6a
movsx ecx, al
sub ecx, 0x41
movzx edx, cl
bt esi, edx
jae 0x140048e6a
mov al, 1
jmp 0x140048e6c
xor al, al
mov rsi, qword [rsp + 0x30]
test al, al
je 0x140048ef0
mov rcx, rdi
call fcn.14003f510
mov edx, 0x2e
lea rbx, [rax + rdi]
mov rcx, rbx
call fcn.14008ee78
mov r9, rax
test rax, rax
jne 0x140048ea1
mov rcx, rbx
call fcn.140074010
mov r9, rax
cmp rbx, r9
je 0x140048f20
mov eax, r9d
sub eax, ebx
cmp eax, 6
ja 0x140048f20
mov rax, qword [str.CLOCK_]
lea r10, str.CLOCK_
test rax, rax
je 0x140048f20
mov r11, qword [0x1402d4670]
nop word [rax + rax]
mov rdx, rbx
movzx r8d, byte [rax]
movzx ecx, byte [rdx]
cmp r8b, byte [rcx + r11]
jne 0x140048f09
inc rdx
inc rax
cmp rdx, r9
jne 0x140048f00
cmp byte [rax], 0
jne 0x140048ed3
mov eax, 1
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movzx r8d, byte [rax]
test r8b, r8b
jne 0x140048ed7
mov rax, qword [r10 + 8]
add r10, 8
test rax, rax
jne 0x140048ed0
nop word [rax + rax]
mov rbx, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x140048f30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140048f54
test al, 1
je 0x140048f4c
test bl, 2
jne 0x140048f54
xor eax, eax
add rsp, 0x20
pop rbx
ret
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [rax], recv
call fcn.14003a5e0
mov dword [rax], recv
mov eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
Function at 0x140049200
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
mov r11, rsp
push rbp
push rdi
push r14
sub rsp, 0x190
mov rax, qword [0x14049b9c0]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov qword [r11 + 0x10], rbx
mov rdi, rcx
mov qword [r11 + 0x18], rsi
mov ebp, 0x32
xor r14d, r14d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140049334
test al, 0x10
jne 0x1400493ad
mov rcx, rdi
bt eax, 0xa
jae 0x140049269
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x1400493a9
jmp 0x140049334
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], r14d
mov edx, 0x10000
mov r8d, 7
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400492cc
mov r9d, 4
mov dword [rsp + 0x40], 3
lea r8, [rsp + 0x40]
mov edx, reloc.WS2_32.dll_setsockopt
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFileInformationByHandle]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x1400493a9
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], 0x4000000
xor r8d, r8d
mov edx, 0x10000
mov dword [rsp + 0x20], 3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
jne 0x1400493a0
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], 0x4000000
mov edx, 0x10000
mov r8d, 7
mov dword [rsp + 0x20], 3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14004935e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x140049355
test ebp, ebp
je 0x140049355
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
dec ebp
jmp 0x140049233
mov ecx, eax
call fcn.140048f80
jmp 0x1400493b8
rdtsc
shl rdx, 0x20
lea r8, str._s._llx.deleted
or rax, rdx
lea rcx, [rsp + 0x50]
mov edx, 0x127
mov qword [rsp + 0x20], rax
mov r9, rdi
call fcn.140051970
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400493bd
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400493bd
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [rax], reloc.WS2_32.dll_shutdown
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x1c0]
mov rbx, qword [rsp + 0x1b8]
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.14008e500
add rsp, 0x190
pop r14
pop rdi
pop rbp
ret
Function at 0x140049760
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x14049b9c0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov ebx, edx
mov rdi, r9
mov rdx, rcx
test ebx, ebx
jne 0x14004978d
mov eax, r8d
jmp 0x14004992a
movaps xmmword [rsp + 0x40], xmm6
xorps xmm6, xmm6
pinsrd xmm6, r8d, 0
cmp ebx, 0x20
jae 0x140049825
cmp ebx, 0x10
jne 0x1400497b6
movdqu xmm4, xmmword [rcx]
xorps xmm4, xmm6
jmp 0x1400498c8
jae 0x140049812
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
mov r8, rbx
movups xmmword [rsp + 0x20], xmm0
call fcn.140092830
movdqa xmm4, xmmword [rsp + 0x20]
lea rax, [0x1400ac390]
xorps xmm4, xmm6
cmp ebx, 4
jae 0x1400497fa
mov ecx, 8
sub ecx, ebx
sub rax, rcx
movdqu xmm0, xmmword [rax]
pshufb xmm4, xmm0
jmp 0x1400498ee
mov ecx, reloc.WS2_32.dll_recv
sub ecx, ebx
sub rax, rcx
movdqu xmm0, xmmword [rax]
pshufb xmm4, xmm0
jmp 0x1400498c8
movdqu xmm4, xmmword [rcx]
mov eax, reloc.WS2_32.dll_recv
movdqu xmm3, xmmword [r9]
xorps xmm4, xmm6
jmp 0x14004986f
movdqu xmm4, xmmword [rcx]
mov eax, reloc.WS2_32.dll_recv
movdqu xmm3, xmmword [r9]
xorps xmm4, xmm6
nop word [rax + rax]
movdqa xmm1, xmm4
mov ecx, eax
pclmulqdq xmm4, xmm3, 0x10
add eax, 0x10
pclmulqdq xmm1, xmm3, 1
movdqu xmm0, xmmword [rcx + rdx]
lea ecx, [rax + 0x10]
xorps xmm1, xmm0
movdqa xmm0, xmm4
movdqa xmm4, xmm1
xorps xmm4, xmm0
cmp ecx, ebx
jbe 0x140049840
movdqa xmm5, xmm4
cmp eax, ebx
jae 0x1400498c8
movdqa xmm2, xmmword [0x1400ac3d0]
lea rcx, [0x1400ac3e0]
movdqa xmm1, xmm4
mov eax, ebx
and eax, 0xf
movdqu xmm0, xmmword [rax + rcx]
lea eax, [rbx - 0x10]
pshufb xmm1, xmm0
xorps xmm2, xmm0
movdqa xmm4, xmm1
movdqa xmm0, xmm2
pclmulqdq xmm4, xmm3, 0x10
pclmulqdq xmm1, xmm3, 1
xorps xmm4, xmm1
movdqu xmm1, xmmword [rax + rdx]
pshufb xmm5, xmm2
pblendvb xmm5, xmm1, xmm0
xorps xmm4, xmm5
movdqa xmm1, xmm4
psrldq xmm4, 8
pclmulqdq xmm1, xmmword [rdi + 0x10], 0
xorps xmm1, xmm4
movdqa xmm4, xmm1
pslldq xmm4, 4
pclmulqdq xmm4, xmmword [rdi + 0x10], 0x10
xorps xmm4, xmm1
movdqa xmm3, xmmword [0x1400ac3c0]
movaps xmm6, xmmword [rsp + 0x40]
andps xmm3, xmm4
movdqa xmm1, xmm3
pclmulqdq xmm1, xmmword [rdi + 0x20], 0
xorps xmm1, xmm3
andps xmm1, xmmword [0x1400ac3b0]
movdqa xmm0, xmm1
pclmulqdq xmm0, xmmword [rdi + 0x20], 0x10
xorps xmm0, xmm1
xorps xmm0, xmm3
pextrd eax, xmm0, 2
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14008e500
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140068270
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, r8d
mov r10, rcx
mov rcx, qword [rdx]
and eax, 0xfff
mov rdi, rdx
mov r11, qword [rcx + 0x28]
movzx ebx, byte [rax + r11]
test bl, bl
jns 0x1400682e9
lea rax, [0x14010301c]
cmp qword [r10], rax
je 0x1400682e9
mov edx, dword [r10 + 0x1c]
shl edx, 8
add edx, dword [r10 + 0x20]
mov eax, edx
and eax, 0xfff
test byte [rax + r11], 0x40
je 0x1400682e9
mov rax, qword [rcx + 0x20]
imul rcx, qword [rcx + 0x18], 0x3c
add rcx, rax
cmp rax, rcx
jae 0x1400682e9
nop word [rax + rax]
cmp byte [rax + 0x3a], 0
je 0x1400682e0
cmp edx, dword [rax]
jne 0x1400682e0
cmp r8d, dword [rax + 4]
je 0x1400682ff
add rax, 0x3c
cmp rax, rcx
jb 0x1400682d0
test bl, 1
je 0x140068311
mov rdx, rdi
mov rcx, r10
mov rbx, qword [rsp + 0x10]
pop rdi
jmp fcn.140068b60
test rax, rax
je 0x1400682e9
xor ecx, ecx
mov qword [r10 + 0x1c], rcx
mov rbx, qword [rsp + 0x10]
pop rdi
ret
mov rbx, qword [rsp + 0x10]
xor eax, eax
pop rdi
ret
Function at 0x14008ec10
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14008ec5a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14008ec5a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14008ec5a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14008ec5a
cmp dword [rcx + 0x84], 0xe
jbe 0x14008ec5a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14008ec5c
xor al, al
add rsp, 0x28
ret

Function at 0x140092620
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140092648
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140092648
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140036670
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [rcx + 0x10]
cmp rbx, qword [rcx + 0x18]
je 0x1400366b6
mov r15, rbx
test r15, r15
je 0x140036791
mov rax, qword [rdi]
mov qword [r15], rax
add qword [rsi + 0x10], 8
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r12, qword [rsi]
mov r14, qword [rsi + 8]
mov rax, r14
sub rax, r12
jbe 0x140036712
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov r12, rax
neg r12
shl rax, 3
mov r15, r14
sub r15, rax
sub rbx, r14
je 0x140036701
mov rcx, r15
mov rdx, r14
mov r8, rbx
call fcn.140149050
mov r14, qword [rsi + 8]
add r15, rbx
mov qword [rsi + 0x10], r15
lea rax, [r14 + r12*8]
mov qword [rsi + 8], rax
jmp 0x140036692
mov rax, rbx
sub rax, r12
sar rax, 2
cmp rbx, r12
mov r13d, 1
cmovne r13, rax
mov rax, r13
shr rax, 0x3d
jne 0x1400367ad
lea rcx, [r13*8]
call fcn.14010f3f0
mov rcx, r13
and rcx, 0xfffffffffffffffc
lea rcx, [rax + rcx*2]
mov rdx, rbx
mov r15, rcx
sub rdx, r14
je 0x140036773
xor r15d, r15d
mov r8, rcx
add r8, r15
je 0x140036791
mov r9, qword [r14 + r15]
mov qword [r8], r9
add r15, 8
cmp rdx, r15
jne 0x140036758
add r15, rcx
lea rdx, [rax + r13*8]
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], rdx
cmp rbx, r14
je 0x140036793
add rbx, 0xfffffffffffffff8
jne 0x140036786
ud2
test r12, r12
je 0x140036692
mov rcx, r12
call fcn.14010f42c
mov r15, qword [rsi + 0x10]
jmp 0x140036692
call fcn.14014aec0
int3
Function at 0x14004aa80
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x14034e040]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor eax, eax
mov qword [rcx], rax
mov r14, qword [rdx]
mov qword [rdx], rax
lea r15, [r14 + 1]
cmp r15, 2
jb 0x14004aabe
call fcn.1400e1920
cmp qword [rsi], r14
je 0x14004aaf1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14004abac
cmp r15, 2
jb 0x14004aae9
mov qword [rsi], r14
call fcn.1400e1920
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rsi + 8], 0xffffffffffffffff
lea r14, [rsi + 0x10]
xor eax, eax
mov qword [rsp + 0x28], rax
mov r15, qword [rdi]
mov qword [rdi], rax
cmp r15, 0xffffffffffffffff
je 0x14004ab1a
test r15, r15
je 0x14004ab3e
call fcn.1400e1920
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
lea rax, [r15 + 1]
cmp rax, 2
jb 0x14004ab36
mov qword [rsp + 0x28], r15
call fcn.1400e1920
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [rsp + 0x28]
mov rcx, r14
call fcn.1401f0ed0
mov rax, qword [rbx]
inc rax
cmp rax, 2
jae 0x14004ab96
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x14004ab80
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140110970
mov rax, rsi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400e1920
mov rcx, qword [rdi]
call fcn.1400d9a60
mov qword [rdi], 0
jmp 0x14004ab63
call fcn.1400e1920
mov rcx, qword [rbx]
call fcn.1400d9a60
mov qword [rbx], 0
jmp 0x14004ab57
call fcn.1400e1920
mov rcx, qword [rsi]
call fcn.1400d9a60
mov qword [rsi], 0
jmp 0x14004aadb