joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6c6feda0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
jmp 0x6c6fedc7
call rbp
cmp dword [rax], 4
jne 0x6c6fede4
mov rcx, rdi
call fcn.6c6feba0
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sub.msvcrt.dll__read
movsxd r12, eax
cmp eax, 0xffffffff
je 0x6c6fedc0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140001280
Capabilities:
Enumerate files on windows

Disassembly:
mov r11, rsp
push rdi
push r14
push r15
sub rsp, 0x2b0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov r15, qword [rcx + 0x10]
mov r14, rcx
movabs rcx, 0x7ffffffffffffffe
xor edi, edi
mov rax, rcx
sub rax, r15
cmp rax, 2
jb 0x14000147f
cmp qword [r14 + 0x18], 7
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
jbe 0x1400012da
mov r14, qword [r14]
lea rbp, [r15 + 2]
mov ebx, 7
lea rsi, [rsp + 0x28]
xorps xmm0, xmm0
xorps xmm1, xmm1
movups xmmword [rsp + 0x28], xmm0
movdqu xmmword [rsp + 0x38], xmm1
cmp rbp, rbx
jbe 0x140001393
mov rbx, rbp
or rbx, 7
cmp rbx, rcx
jbe 0x140001321
movabs rax, 0x7fffffffffffffff
mov rbx, rcx
lea rcx, [rax + rax]
jmp 0x140001350
mov eax, 0xa
cmp rbx, rax
cmovb rbx, rax
movabs rax, 0x7fffffffffffffff
lea rcx, [rbx + 1]
cmp rcx, rax
ja 0x140001479
add rcx, rcx
cmp rcx, 0x1000
jb 0x14000137c
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001479
mov rcx, rax
call fcn.140005340
test rax, rax
je 0x140001436
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x14000138e
test rcx, rcx
je 0x14000138b
call fcn.140005340
mov rsi, rax
jmp 0x14000138e
mov rsi, rdi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x40], rbx
mov rdx, r14
lea rbx, [r15 + r15]
mov qword [rsp + 0x38], rbp
mov r8, rbx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov dword [rbx + rsi], 0x2a005c
lea rcx, [rsp + 0x28]
mov word [rsi + rbp*2], di
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x40], 7
cmova rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400013fd
nop
lea rdx, [rsp + 0x50]
mov rcx, rbx
inc edi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400013e0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rdx, qword [rsp + 0x40]
cmp rdx, 7
jbe 0x140001442
mov rcx, qword [rsp + 0x28]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000143d
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000143d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000537c
mov rbp, qword [rsp + 0x2e0]
mov eax, edi
mov rbx, qword [rsp + 0x2d8]
mov rsi, qword [rsp + 0x2e8]
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.140005320
add rsp, 0x2b0
pop r15
pop r14
pop rdi
ret
call fcn.140001170
int3
call fcn.140001210
int3
Function at 0x140001b30
Capabilities:
Create thread
Terminate process

Disassembly:
push rbx
sub rsp, 0xf0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xe8], rax
mov rbx, rcx
call fcn.140001490
cmp eax, 5
jge 0x140001b66
call fcn.140001230
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov r9d, 0x64
mov qword [rsp + 0x108], rsi
lea r8, [0x14000db20]
mov qword [rsp + 0x110], rdi
mov rcx, rbx
lea edx, [r9 + 3]
call qword [sym.imp.USER32.dll_LoadStringW]
mov r9d, 0x64
lea rdi, [0x14000da50]
mov r8, rdi
mov rcx, rbx
lea edx, [r9 + 9]
call qword [sym.imp.USER32.dll_LoadStringW]
lea rax, [0x140001d90]
mov dword [rsp + 0x60], 0x50
xor esi, esi
mov qword [rsp + 0x68], rax
mov edx, 0x88
mov dword [rsp + 0x64], 3
mov rcx, rbx
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rbx
call qword [sym.imp.USER32.dll_LoadIconW]
mov edx, 0x7f00
xor ecx, ecx
mov qword [rsp + 0x80], rax
call qword [sym.imp.USER32.dll_LoadCursorW]
movdqa xmm0, xmmword [0x14000aa50]
mov edx, 0x88
mov rcx, qword [rsp + 0x78]
movdqa xmmword [rsp + 0x90], xmm0
mov qword [rsp + 0x88], rax
mov qword [rsp + 0xa0], rdi
call qword [sym.imp.USER32.dll_LoadIconW]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0xa8], rax
call qword [sym.imp.USER32.dll_RegisterClassExW]
mov qword [rsp + 0x58], rsi
lea r8, [0x14000db20]
mov qword [rsp + 0x50], rbx
mov r9d, 0xcf0000
mov qword [rsp + 0x48], rsi
mov rdx, rdi
mov qword [rsp + 0x40], rsi
xor ecx, ecx
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], 0x80000000
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 0x80000000
mov qword [0x14000da40], rbx
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rdi, rax
test rax, rax
je 0x140001d5a
xor edx, edx
mov rcx, rdi
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, rdi
call qword [sym.imp.USER32.dll_UpdateWindow]
mov edx, 0x6d
mov rcx, rbx
call qword [sym.imp.USER32.dll_LoadAcceleratorsW]
xor r9d, r9d
lea r8, [0x140001800]
mov rbx, rax
xor edx, edx
lea rax, [rsp + 0xe0]
xor ecx, ecx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor r9d, r9d
lea rcx, [rsp + 0xb0]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x140001d53
nop word [rax + rax]
mov rcx, qword [rsp + 0xb0]
lea r8, [rsp + 0xb0]
mov rdx, rbx
call qword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x140001d39
lea rcx, [rsp + 0xb0]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
lea rcx, [rsp + 0xb0]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x140001d00
mov eax, dword [rsp + 0xc0]
mov rsi, qword [rsp + 0x108]
mov rdi, qword [rsp + 0x110]
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
call fcn.140005320
add rsp, 0xf0
pop rbx
ret
Function at 0x140005e68
Capabilities:
Parse pe header

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

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140003248

Function at 0x140006658
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x14001b550]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.1400043b0
xor ebx, ebx
cmp qword [0x14001cb58], rbx
mov rdi, rax
jne 0x14000676b
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140006842
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140006842
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14001cb58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x14001cb60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x14001cb68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x14001cb78], rax
test rax, rax
je 0x140006762
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x14001cb70], rax
jmp 0x140006772
mov rax, qword [0x14001cb70]
jmp 0x140006779
mov rax, qword [0x14001cb70]
mov r11, qword [0x14001cb78]
cmp rax, rdi
je 0x1400067e0
cmp r11, rdi
je 0x1400067e0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x14001cb78]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x1400067e0
test rax, rax
je 0x1400067e0
call rsi
test rax, rax
je 0x1400067da
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1400067da
test byte [rsp + 0x40], 1
jne 0x1400067e0
bts ebp, 0x15
jmp 0x140006820
mov rcx, qword [0x14001cb60]
cmp rcx, rdi
je 0x140006820
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140006820
call rax
mov rbx, rax
test rax, rax
je 0x140006820
mov rcx, qword [0x14001cb68]
cmp rcx, rdi
je 0x140006820
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140006820
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14001cb58]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140006842
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x140006844
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140006aa0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000ec0f
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14001b550]
jne 0x140006aba
rol rcx, 0x10
test cx, 0xffff
jne 0x140006ab6
repz ret
ror rcx, 0x10
jmp 0x14000eb68
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14001cd00]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14001cdf8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14000ebed
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14001cd00]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14000ec0f
mov rax, qword [rsp + 0x88]
mov qword [0x14001cdf8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14001cd98], rax
mov rax, qword [0x14001cdf8]
mov qword [0x14001cc70], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14001cd80], rax
mov dword [0x14001cc60], 0xc0000409
mov dword [0x14001cc64], 1
mov rax, qword [0x14001b550]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14001b558]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14001ccf8], eax
mov ecx, 1
call fcn.14000ea58
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400172f8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14001ccf8], 0
jne 0x14000ec96
mov ecx, 1
call fcn.14000ea58
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x2fc4d04e0
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.2fc4d15c0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d0ee2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f3108]
test eax, eax
je 0x2fc4d0f7a
lea rax, [0x2fc4f30e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f3110]
mov qword [rbp - 8], rax
jmp 0x2fc4d0f5e
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 0x2fc4d0f52
cmp qword [rbp - 0x10], 0
je 0x2fc4d0f52
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 0x2fc4d0f18
lea rax, [0x2fc4f30e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d0f7b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d1080
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 0x2fc4d10a8
mov eax, 0
jmp 0x2fc4d10f6
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 0x2fc4d10d1
mov eax, 0
jmp 0x2fc4d10f6
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 0x2fc4d10f1
mov eax, 0
jmp 0x2fc4d10f6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d10fc
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 0x2fc4d117a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d1171
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 0x2fc4d1171
mov rax, qword [rbp - 8]
jmp 0x2fc4d118f
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 0x2fc4d1144
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140002630
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov al, byte [rsp + 0x67]
mov r10b, al
xor r10b, 1
mov byte [rsp + 0x67], r10b
cmp r9d, 0
mov qword [rsp + 0x48], rdx
mov dword [rsp + 0x44], r9d
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], rcx
mov byte [rsp + 0x2f], al
jne 0x140002687
mov rax, qword [rsp + 0x58]
imul rax, qword [rsp + 0x58]
mov qword [rsp + 0x58], rax
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
xor eax, eax
xor ecx, ecx
mov edx, ecx
mov ecx, dword [rsp + 0x44]
mov r8d, ecx
mov r9d, r8d
mov r8d, eax
mov dword [rsp + 0x28], r8d
mov dword [rsp + 0x24], eax
mov qword [rsp + 0x18], r9
mov qword [rsp + 0x10], rdx
mov rax, qword [rsp + 0x10]
mov ecx, dword [rsp + 0x24]
mov edx, dword [rsp + 0x28]
mov r8d, 0x100
add ecx, 1
mov qword [rsp + 8], rax
mov eax, ecx
mov dword [rsp + 4], edx
cdq
idiv r8d
movsxd r9, edx
mov r10, qword [rsp + 0x30]
mov r11b, byte [r10 + r9]
movzx ecx, r11b
mov esi, dword [rsp + 4]
add esi, ecx
mov eax, esi
mov dword [rsp], edx
cdq
idiv r8d
movsxd rdi, edx
mov bl, byte [r10 + rdi]
mov bp, word [rsp + 0x56]
imul bp, word [rsp + 0x56]
mov word [rsp + 0x56], bp
mov byte [r10 + r9], bl
mov byte [r10 + rdi], r11b
movzx r8d, byte [r10 + r9]
add r8d, ecx
mov byte [rsp + 0x67], 0x9b
and r8d, 0xff
mov r11b, 0x44
mov bl, byte [rsp + 0x2f]
mov al, bl
mul r11b
mov byte [rsp + 0x67], al
mov ecx, r8d
mov r9d, ecx
mov al, byte [r10 + r9]
mov r9, qword [rsp + 0x38]
mov rdi, qword [rsp + 8]
xor al, byte [r9 + rdi]
mov r14, qword [rsp + 0x48]
mov byte [r14 + rdi], al
add rdi, 1
mov r15, qword [rsp + 0x18]
cmp rdi, r15
mov ecx, dword [rsp]
mov dword [rsp + 0x24], ecx
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x10], rdi
je 0x14000266a
jmp 0x1400026ad

Function at 0x140002780
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x20
lea rax, [fcn.140002780]
mov qword [rsp + 0x18], 0x330210ae
mov qword [rsp + 8], rax
jmp 0x1400027e7
mov ax, word [rsp + 0x16]
sub ax, word [rsp + 0x16]
mov rcx, qword [rsp + 0x18]
xor rcx, 0xffffffffccfde0ae
mov word [rsp + 0x16], ax
mov rdx, qword [rsp]
add rdx, rcx
and rdx, 0xfffffffffffff000
mov qword [rsp + 8], rdx
jmp 0x1400027e7
mov rax, qword [rsp]
add rsp, 0x20
ret
mov rax, qword [rsp]
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
je 0x1400027cb
jmp 0x14000279b
mov rax, qword [rsp + 8]
cmp word [rax], 0x5a4d
mov qword [rsp], rax
je 0x1400027d4
jmp 0x14000279b
Function at 0x140002b30
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
xor eax, eax
xor r9d, r9d
mov r10d, r9d
mov dword [rsp + 0x58], 0x7828dad1
mov qword [rsp + 0x38], 0x55c2e32
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x2c], r8d
mov qword [rsp + 0x20], rcx
mov dword [rsp + 0x1c], eax
mov qword [rsp + 0x10], r10
mov rax, qword [rsp + 0x10]
mov ecx, dword [rsp + 0x1c]
mov edx, 0x55c2e33
mov r8d, edx
mov r9, qword [rsp + 0x38]
mov r10, qword [rsp + 0x38]
mov r11b, cl
sub r8, r9
add r10, 0xfffffffffaa3d2ce
mov r9, qword [rsp + 0x20]
mov byte [r9 + rax], r11b
add ecx, 1
add rax, r8
cmp rax, r10
mov dword [rsp + 0x1c], ecx
mov qword [rsp + 0x10], rax
jne 0x140002b6d
xor eax, eax
mov ecx, eax
xor eax, eax
imul dx, word [rsp + 0x46], 0x5264
mov word [rsp + 0x46], dx
mov qword [rsp + 8], rcx
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x48]
sub rdx, qword [rsp + 0x48]
mov qword [rsp + 0x48], rdx
mov r8w, word [rsp + 0x46]
xor r8w, 0xffff
mov rdx, qword [rsp + 0x20]
mov r9b, byte [rdx + rcx]
movzx r10d, r9b
mov word [rsp + 0x46], r8w
mov r11d, ecx
mov dword [rsp], eax
mov eax, r11d
xor edx, edx
mov r11d, dword [rsp + 0x2c]
div r11d
mov edx, edx
mov esi, edx
mov rdi, qword [rsp + 0x30]
movzx edx, byte [rdi + rsi]
mov ebx, dword [rsp + 0x58]
add ebx, 0x87d7262f
mov ebp, dword [rsp]
add ebp, r10d
add ebp, edx
mov eax, ebp
cdq
idiv ebx
movsxd rsi, edx
mov r14, qword [rsp + 0x20]
mov r15b, byte [r14 + rsi]
mov byte [r14 + rcx], r15b
mov byte [r14 + rsi], r9b
mov r8w, word [rsp + 0x46]
add rcx, 1
and r8w, 0xe
mov word [rsp + 0x46], r8w
cmp rcx, 0x100
mov qword [rsp + 8], rcx
mov dword [rsp + 4], edx
jne 0x140002bcd
mov eax, dword [rsp + 0x5c]
add eax, 0x1d76967a
mov dword [rsp + 0x5c], eax
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14000b940
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x14000b9c0
Capabilities:
Parse pe header

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

Function at 0x14000ba80
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400ba4b0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000ba9f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000baa8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140017290
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
mov qword [rsp + 0x20], rax
movabs rax, 0x7520676e696e6165
mov qword [rsp + 0x28], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x30], rax
movabs rax, 0x20726f6620737965
mov qword [rsp + 0x38], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov dword [rsp + 0x87], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x14001739a
lea rcx, [rsp + 0x20]
mov eax, 0x28
jmp 0x140017372
add rax, 1
cmp rax, 0x6b
je 0x14001738f
cmp byte [rcx + rax], 0
jne 0x140017368
cmp eax, 0x6a
movsxd rdx, eax
je 0x14001738f
add eax, 1
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
lea rcx, [rsp + 0x20]
mov eax, 0x28
mov edx, 0x27
jmp 0x140017383
Function at 0x140017710
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1400e0d20], 1
je 0x140017788
lea rdi, [0x1400e0d20]
mov rcx, rdi
call fcn.140017010
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.140016920
mov esi, dword [0x1400e0d20]
test esi, esi
jne 0x140017798
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x1400b2158], eax
je 0x1400b1496
mov dword [0x1400e0d20], 1
mov rcx, rbp
call fcn.140016c10
test rbx, rbx
je 0x140017788
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.1400173b0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x140017768
mov ecx, 2
call qword [fcn.140014d60]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x140017768
call sub.msvcrt.dll_abort
nop

Function at 0x1400177c0
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.1400174c0
cmp qword [0x1400e3048], 0
mov rbx, rax
je 0x1400178d8
test rax, rax
je 0x1400178d8
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
mov dword [rbx + 0x70], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.140016f10
cmp eax, 1
je 0x1400178e6
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rsi, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, rsi
mov dword [rsp + 0x28], 0
lea r9, [rbx + 0x28]
mov rcx, rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je fcn.1400b149c
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x1400b2158]
mov rdx, rbx
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400178ec
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.140017290
nop
jmp fcn.1400b149c

Function at 0x140017900
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140017710
mov ecx, dword [0x1400b2158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140017920
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.1400177c0