joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001268
Capabilities:
Create thread

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
call fcn.140004c90
call fcn.140009480
test eax, eax
jne 0x140001297
mov dword [0x14001c040], 1
lea ecx, [rax + 2]
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ecx, 0x80
call fcn.14000b060
mov qword [rbp + 0x77], rax
mov rcx, rax
call fcn.140001be8
nop
mov qword [0x14001c038], rax
test rax, rax
jne 0x1400012c2
or eax, 0xffffffff
jmp 0x1400013db
lea rax, vtable.CZMOutlookMAPI.0
mov qword [rbp + 0x17], rax
lea rax, vtable.CZMOutlookMAPI.1.0
mov qword [rbp + 0x1f], rax
and qword [rbp + 0x27], 0
mov dword [rbp + 0x2f], 0
lea rcx, [rbp + 0x37]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CEvent::constructor_void____ptr64]
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x3f], xmm0
lea rax, [rbp + 0x77]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
lea r9, [rbp + 0x17]
lea r8, [0x1400016c0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp + 0x27], rax
mov rax, qword [0x14001c038]
mov qword [rbp + 0x3f], rax
lea rcx, [rbp + 0x17]
mov qword [rax + 0x78], rcx
cmp dword [rax + 0x68], 0
je 0x140001347
mov rax, qword [rbp + 0x17]
lea rcx, [rbp + 0x17]
mov rax, qword [rax]
call qword [0x14000d810]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x14001c030], eax
mov edx, 1
lea rcx, [0x140001220]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
lea r9, [0x140001250]
mov edx, 1
xor ecx, ecx
lea r8d, [rdx + 0x31]
call qword [sym.imp.USER32.dll_SetTimer]
jmp 0x1400013aa
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x19]
call qword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0xffffffff
je 0x1400013c0
lea rcx, [rbp - 0x19]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x19]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x19]
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x14000137f
xor edx, edx
lea rcx, [0x140001220]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
nop
lea rcx, [rbp + 0x17]
call fcn.140001578
xor eax, eax
add rsp, 0xa0
pop rbp
ret

Function at 0x140001990
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x10], 0
mov rbx, rcx
je 0x1400019d5
mov dword [rcx + 0x18], 1
mov edx, 0xbb8
add rcx, 0x20
call qword [sym.imp.Cmmlib.dll_public:_enum_ESyncRet___cdecl_Cmm::CEvent::Lock_unsigned_long_int____ptr64]
test eax, eax
je 0x1400019c6
mov rcx, qword [rbx + 0x10]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbx + 0x10], 0
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x1400058e0
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x4e70
call fcn.14000c160
sub rsp, rax
mov rax, qword [0x140017010]
xor rax, rsp
mov qword [rsp + 0x4e60], rax
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x3e80
call sub.VCRUNTIME140.dll_memset
xor ebx, ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r9, [rsp + 0x20]
mov r8d, 0x3e80
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x1400059f6
lea rax, [rsp + 0x3ec0]
mov dword [rsp + 0x2c], ebx
mov qword [rsp + 0x30], rax
mov edi, 0xfa0
mov eax, dword [rsp + 0x20]
mov word [rsp + 0x2a], di
test rax, 0xfffffffffffffff8
jbe 0x1400059ef
nop
mov r8, rdi
lea rcx, [rsp + 0x3ec0]
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + rbx*8 + 0x40]
lea rdx, [rsp + 0x3ec0]
mov r8d, 0x7cf
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x3ec0]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400059b0
mov r8, qword [rsp + rbx*8 + 0x40]
lea rdx, [rsp + 0x28]
add ax, ax
lea rcx, [0x140017070]
xor r9d, r9d
mov word [rsp + 0x28], ax
call fcn.140005a20
test eax, eax
je 0x1400059f6
mov eax, dword [rsp + 0x20]
inc rbx
shr rax, 3
cmp rbx, rax
jb 0x140005970
mov eax, 1
jmp 0x1400059f8
xor eax, eax
mov rcx, qword [rsp + 0x4e60]
xor rcx, rsp
call fcn.14000b040
mov rbx, qword [rsp + 0x4e80]
add rsp, 0x4e70
pop rdi
ret
Function at 0x1400066d0
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
je 0x14000692c
push rdi
sub rsp, 0x90
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 0x18
lea r8, [rsp + 0x30]
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.PSAPI.DLL_GetModuleInformation]
test eax, eax
je 0x140006924
mov eax, 0x5a4d
mov qword [rsp + 0x80], r15
mov r15d, dword [rsp + 0x38]
cmp word [rdi], ax
jne 0x14000691c
movsxd rcx, dword [rdi + 0x3c]
lea rax, [rcx + 0x108]
cmp rax, r15
jae 0x14000691c
cmp dword [rcx + rdi], 0x4550
mov qword [rsp + 0xb0], rbp
lea rbp, [rcx + rdi]
jne 0x140006914
movzx eax, word [rbp + 4]
mov ecx, 0x14c
mov qword [rsp + 0xb8], rsi
xor esi, esi
mov qword [rsp + 0x88], r14
cmp cx, ax
jne 0x140006785
xor r14d, r14d
jmp 0x1400067b7
mov ecx, 0x200
mov r8d, 0xaa64
cmp cx, ax
je 0x1400067a9
mov ecx, 0x8664
cmp cx, ax
je 0x1400067a9
cmp r8w, ax
jne 0x140006904
cmp r8w, ax
mov r14d, 1
sete sil
mov qword [rsp + 0xa8], rbx
mov ebx, dword [rbp + 0x28]
add rbx, rdi
je 0x1400068fc
cmp rbx, rdi
jbe 0x1400068fc
lea rax, [r15 + rdi]
cmp rbx, rax
jae 0x1400068fc
xorps xmm0, xmm0
lea rdx, [rsp + 0x48]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x68], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400068fc
test dword [rsp + 0x68], 0x1000
je 0x1400068fc
test dword [rsp + 0x70], 0x1000000
je 0x1400068fc
mov eax, dword [rsp + 0x6c]
xor ecx, ecx
test al, 0x10
jne 0x140006842
test al, 0x20
jne 0x140006842
test al, 0x40
jne 0x140006842
test al, al
jns 0x140006847
mov ecx, 1
test ecx, ecx
je 0x1400068fc
mov r9d, r14d
mov dword [rsp + 0x20], esi
mov r8d, r15d
mov rdx, rdi
mov rcx, rbp
call fcn.140006fe0
mov edx, Ordinal_23
mov dword [rsp + 0xa0], 0
lea r9, [rsp + 0xa0]
mov rcx, rbx
lea r8d, [rdx + 0x2c]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1400068fc
test r14d, r14d
jne 0x1400068a6
mov eax, dword [0x140017060]
mov dword [rbx], eax
movzx eax, byte [0x140017064]
mov byte [rbx + 4], al
jmp 0x1400068ca
test esi, esi
je 0x1400068b6
mov rax, qword [0x140017058]
mov qword [rbx], rax
jmp 0x1400068ca
movzx eax, word [0x140017054]
mov word [rbx], ax
movzx eax, byte [0x140017056]
mov byte [rbx + 2], al
mov r8d, dword [rsp + 0xa0]
lea r9, [rsp + 0xa0]
mov edx, Ordinal_23
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov rbx, qword [rsp + 0xa8]
mov rsi, qword [rsp + 0xb8]
mov r14, qword [rsp + 0x88]
mov rbp, qword [rsp + 0xb0]
mov r15, qword [rsp + 0x80]
add rsp, 0x90
pop rdi
ret
Function at 0x140009f10
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x140017010]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14001c0a4], eax
jle 0x14000a080
lea rcx, [0x14001c0a4]
call fcn.14000b748
cmp dword [0x14001c0a4], 0xffffffff
jne 0x14000a080
xor edi, edi
mov qword [0x14001c0d0], rdi
mov qword [0x14001c0e0], rdi
mov qword [0x14001c0e8], rdi
mov qword [0x14001c0e0], rdi
mov qword [0x14001c0e8], 7
mov word [0x14001c0d0], di
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
lea rcx, [0x14000d9b0]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
lea rbx, [0x14001c0d0]
test eax, eax
js 0x140009fe3
mov rdx, qword [rsp + 0x20]
test rdx, rdx
je 0x140009ff8
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140009fd0
mov rcx, rbx
call fcn.140007ba0
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140009ff8
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rsp + 0x20], rdi
mov rcx, qword [0x14001c0e0]
test rcx, rcx
je 0x14000a063
mov rax, rbx
mov r9, qword [0x14001c0d0]
mov rdx, qword [0x14001c0e8]
cmp rdx, 8
cmovae rax, r9
movzx r8d, word [rax + rcx*2 - 2]
cmp r8w, 0x5c
je 0x14000a063
cmp r8w, 0x2f
je 0x14000a063
cmp rcx, rdx
jae 0x14000a055
lea rax, [rcx + 1]
mov qword [0x14001c0e0], rax
mov rax, rbx
cmp rdx, 8
cmovae rax, r9
mov dword [rax + rcx*2], 0x5c
jmp 0x14000a063
mov r9d, 0x5c
mov rcx, rbx
call fcn.140003508
lea rcx, [0x14000c8f0]
call fcn.14000b2d4
lea rcx, [0x14001c0a4]
call fcn.14000b6e8
mov rax, rbx
jmp 0x14000a087
lea rax, [0x14001c0d0]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14000b040
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14000a0a0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x140017010]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14001c0a0], eax
jle 0x14000a210
lea rcx, [0x14001c0a0]
call fcn.14000b748
cmp dword [0x14001c0a0], 0xffffffff
jne 0x14000a210
xor edi, edi
mov qword [0x14001c080], rdi
mov qword [0x14001c090], rdi
mov qword [0x14001c098], rdi
mov qword [0x14001c090], rdi
mov qword [0x14001c098], 7
mov word [0x14001c080], di
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
lea rcx, [0x14000d9c0]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
lea rbx, [0x14001c080]
test eax, eax
js 0x14000a173
mov rdx, qword [rsp + 0x20]
test rdx, rdx
je 0x14000a188
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x14000a160
mov rcx, rbx
call fcn.140007ba0
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14000a188
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rsp + 0x20], rdi
mov rcx, qword [0x14001c090]
test rcx, rcx
je 0x14000a1f3
mov rax, rbx
mov r9, qword [0x14001c080]
mov rdx, qword [0x14001c098]
cmp rdx, 8
cmovae rax, r9
movzx r8d, word [rax + rcx*2 - 2]
cmp r8w, 0x5c
je 0x14000a1f3
cmp r8w, 0x2f
je 0x14000a1f3
cmp rcx, rdx
jae 0x14000a1e5
lea rax, [rcx + 1]
mov qword [0x14001c090], rax
mov rax, rbx
cmp rdx, 8
cmovae rax, r9
mov dword [rax + rcx*2], 0x5c
jmp 0x14000a1f3
mov r9d, 0x5c
mov rcx, rbx
call fcn.140003508
lea rcx, [0x14000c960]
call fcn.14000b2d4
lea rcx, [0x14001c0a0]
call fcn.14000b6e8
mov rax, rbx
jmp 0x14000a217
lea rax, [0x14001c080]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14000b040
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140066109
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1400ebb50
mov dword [rsp + 8], ecx
sub rsp, 0x38
call fcn.1400eab60
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400ebb85
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov ecx, dword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
call qword [0x140181010]
jmp 0x1400ebb8f
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x38
ret
Function at 0x14006631b
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1400e6ac0
mov rax, rcx
neg rcx
test rax, 7
je 0x1400e6add
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1400e6b38
test al, 7
jne 0x1400e6ad0
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x1400e6af1
mov rdx, qword [rax - 8]
test dl, dl
je 0x1400e6b62
test dh, dh
je 0x1400e6b5c
shr rdx, 0x10
test dl, dl
je 0x1400e6b56
test dh, dh
je 0x1400e6b50
shr rdx, 0x10
test dl, dl
je 0x1400e6b4a
test dh, dh
je 0x1400e6b44
shr edx, 0x10
test dl, dl
je 0x1400e6b3e
test dh, dh
jne 0x1400e6af1
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret
Function at 0x1400669a6
Capabilities:
Terminate process

Disassembly:
jmp 0x1400701d0
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 0x140066d16
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1400ebbb0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x38
call fcn.1400eaba0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400ebbef
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rdx, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
call qword [0x140181010]
jmp 0x1400ebbfe
mov rdx, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x38
ret
Function at 0x140066fb9
Capabilities:
Create process on windows

Disassembly:
jmp 0x1401229a0
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x118
lea rcx, [rsp + 0xe0]
call fcn.1400694c1
lea rcx, [rsp + 0xb0]
call fcn.1400694c1
lea rcx, [rsp + 0x80]
call fcn.1400694c1
call fcn.1400690c0
mov r8d, eax
lea rdx, [rsp + 0xe0]
mov rcx, qword [rsp + 0x120]
call fcn.1400666ae
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x140122a42
mov dword [rsp + 0x54], 0
lea rcx, [rsp + 0x80]
call fcn.14006928c
lea rcx, [rsp + 0xb0]
call fcn.14006928c
lea rcx, [rsp + 0xe0]
call fcn.14006928c
mov eax, dword [rsp + 0x54]
jmp 0x140122bde
call fcn.1400690c0
mov r8d, eax
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x128]
call fcn.1400666ae
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x140122aa2
mov dword [rsp + 0x5c], 0
lea rcx, [rsp + 0x80]
call fcn.14006928c
lea rcx, [rsp + 0xb0]
call fcn.14006928c
lea rcx, [rsp + 0xe0]
call fcn.14006928c
mov eax, dword [rsp + 0x5c]
jmp 0x140122bde
mov qword [rsp + 0x70], 0
cmp qword [rsp + 0x158], 0
je 0x140122b28
call fcn.1400690c0
mov r8d, eax
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x158]
call fcn.1400666ae
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x140122b16
mov dword [rsp + 0x64], 0
lea rcx, [rsp + 0x80]
call fcn.14006928c
lea rcx, [rsp + 0xb0]
call fcn.14006928c
lea rcx, [rsp + 0xe0]
call fcn.14006928c
mov eax, dword [rsp + 0x64]
jmp 0x140122bde
lea rcx, [rsp + 0x80]
call fcn.140066023
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0xb0]
call fcn.140066023
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0xe0]
call fcn.140066023
mov rcx, qword [rsp + 0x168]
mov qword [rsp + 0x48], rcx
mov rcx, qword [rsp + 0x160]
mov qword [rsp + 0x40], rcx
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x38], rcx
mov rcx, qword [rsp + 0x150]
mov qword [rsp + 0x30], rcx
mov ecx, dword [rsp + 0x148]
mov dword [rsp + 0x28], ecx
mov ecx, dword [rsp + 0x140]
mov dword [rsp + 0x20], ecx
mov r9, qword [rsp + 0x138]
mov r8, qword [rsp + 0x130]
mov rcx, qword [rsp + 0x78]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [rsp + 0x68], eax
lea rcx, [rsp + 0x80]
call fcn.14006928c
lea rcx, [rsp + 0xb0]
call fcn.14006928c
lea rcx, [rsp + 0xe0]
call fcn.14006928c
mov eax, dword [rsp + 0x68]
add rsp, 0x118
ret
Function at 0x140067167
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x1401348d0
mov word [rsp + 0x10], dx
mov qword [rsp + 8], rcx
sub rsp, 0x48
movzx eax, word [rsp + 0x58]
movd xmm0, eax
movdqa xmmword [rsp + 0x20], xmm0
pshuflw xmm0, xmmword [rsp + 0x20], 0
movdqa xmmword [rsp + 0x20], xmm0
movdqa xmm0, xmmword [rsp + 0x20]
pshufd xmm0, xmm0, 0
movdqa xmmword [rsp + 0x20], xmm0
mov rax, qword [rsp + 0x50]
and rax, 0xfff
cmp rax, 0xff0
ja 0x1401349e1
mov rax, qword [rsp + 0x50]
movdqu xmm0, xmmword [rax]
movdqa xmmword [rsp + 0x30], xmm0
movdqa xmm0, xmmword [rsp + 0x10]
pxor xmm0, xmmword [rsp + 0x10]
movdqa xmmword [rsp + 0x10], xmm0
movdqa xmm0, xmmword [rsp + 0x10]
pcmpeqw xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x10], xmm0
movdqa xmm0, xmmword [rsp + 0x30]
pcmpeqw xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x30], xmm0
movdqa xmm0, xmmword [rsp + 0x10]
por xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x10], xmm0
movdqa xmm0, xmmword [rsp + 0x10]
pmovmskb eax, xmm0
mov dword [rsp], eax
cmp dword [rsp], 0
je 0x1401349d1
mov eax, dword [rsp]
bsf eax, eax
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
add rax, qword [rsp + 0x50]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
movzx ecx, word [rsp + 0x58]
cmp eax, ecx
jne 0x1401349c1
mov rax, qword [rsp + 0x50]
mov qword [rsp + 8], rax
jmp 0x1401349ca
mov qword [rsp + 8], 0
mov rax, qword [rsp + 8]
jmp 0x140134a1c
mov rax, qword [rsp + 0x50]
add rax, 0x10
mov qword [rsp + 0x50], rax
jmp 0x140134a17
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
movzx ecx, word [rsp + 0x58]
cmp eax, ecx
jne 0x1401349f9
mov rax, qword [rsp + 0x50]
jmp 0x140134a1c
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
test eax, eax
jne 0x140134a09
xor eax, eax
jmp 0x140134a1c
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
jmp 0x14013490b
add rsp, 0x48
ret

Function at 0x140067301
Capabilities:
Print debug messages

Disassembly:
jmp 0x140127a30
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x14016f008]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x140127a56
jmp 0x140127ad3
mov rcx, qword [rbp + 0x30]
call fcn.14006631b
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x140127a6f
jmp 0x140127ad3
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x140127a8c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140066046
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.140068206
test eax, eax
jne 0x140127ad3
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.140066d84
lea rsp, [rbp + 0x20]
pop rbp
ret
Function at 0x140067531
Capabilities:
Query environment variable

Disassembly:
jmp 0x140109114
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor r14d, r14d
mov rbx, rax
test rax, rax
je 0x1401091fc
mov rsi, rax
cmp word [rax], r14w
je 0x140109167
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r14w
jne 0x14010914f
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], r14w
jne 0x14010914b
mov qword [rsp + 0x38], r14
sub rsi, rbx
mov qword [rsp + 0x30], r14
add rsi, 2
sar rsi, 1
mov r8, rbx
mov r9d, esi
mov dword [rsp + 0x28], r14d
xor edx, edx
mov qword [rsp + 0x20], r14
xor ecx, ecx
call fcn.140068bc5
movsxd rbp, eax
test eax, eax
je 0x1401091fc
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov rcx, rbp
lea edx, [r9 - 0x64]
call fcn.140067702
mov rdi, rax
test rax, rax
je 0x1401091ea
mov qword [rsp + 0x38], r14
mov r9d, esi
mov qword [rsp + 0x30], r14
mov r8, rbx
mov dword [rsp + 0x28], ebp
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call fcn.140068bc5
test eax, eax
je 0x1401091ea
mov rsi, rdi
mov rdi, r14
jmp 0x1401091ed
mov rsi, r14
mov edx, 2
mov rcx, rdi
call fcn.140068d5f
jmp 0x1401091ff
mov rsi, r14
test rbx, rbx
je 0x14010920d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140067d0b
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140075400
mov qword [rsp + 8], rcx
sub rsp, 0x38
call fcn.140074d70
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140075437
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
call qword [0x140181010]
jmp 0x14007543d
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x38
ret
Function at 0x1400683be
Capabilities:
Print debug messages

Disassembly:
jmp 0x140101a40
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret

Function at 0x1400685df
Capabilities:
Set environment variable

Disassembly:
jmp 0x140129510
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
lea rcx, [rsp + 0x70]
call fcn.1400694c1
lea rcx, [rsp + 0x40]
call fcn.1400694c1
call fcn.1400690c0
mov r8d, eax
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0xb0]
call fcn.1400666ae
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14012957f
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x40]
call fcn.14006928c
lea rcx, [rsp + 0x70]
call fcn.14006928c
mov eax, dword [rsp + 0x24]
jmp 0x14012960c
call fcn.1400690c0
mov r8d, eax
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0xb8]
call fcn.1400666ae
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x1401295c6
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x40]
call fcn.14006928c
lea rcx, [rsp + 0x70]
call fcn.14006928c
mov eax, dword [rsp + 0x2c]
jmp 0x14012960c
lea rcx, [rsp + 0x40]
call fcn.140066023
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x70]
call fcn.140066023
mov rcx, qword [rsp + 0x38]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x40]
call fcn.14006928c
lea rcx, [rsp + 0x70]
call fcn.14006928c
mov eax, dword [rsp + 0x30]
add rsp, 0xa8
ret

Function at 0x1400686c5
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140075520
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x38
call fcn.140074e30
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14007555f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rdx, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
call qword [0x140181010]
jmp 0x14007556e
mov rdx, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x38
ret

Function at 0x140068a5d
Capabilities:
Parse pe header

Disassembly:
jmp 0x140071640
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140071660
xor al, al
jmp 0x1400716e1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140071673
xor al, al
jmp 0x1400716e1
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 0x14007169d
xor al, al
jmp 0x1400716e1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400716b1
xor al, al
jmp 0x1400716e1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400716c3
xor al, al
jmp 0x1400716e1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400716df
xor al, al
jmp 0x1400716e1
mov al, 1
add rsp, 0x38
ret