joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400496f0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.140073a00
sub rsp, rax
mov rax, qword [0x140099080]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x14009be00]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1400498ea
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x140049836
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140049836
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x14004981b
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x1400497b8
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400498aa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140049909
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x40], eax
jae 0x1400498e5
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140049909
jmp 0x14004978e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140013880
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140049930
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.140073a00
sub rsp, rax
mov rax, qword [0x140099080]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x14009be00]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x140049b45
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x140049a89
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x140049a89
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x140049a69
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x1400499f8
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x48]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140049b05
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140049b64
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x44], eax
jae 0x140049b40
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140049b64
jmp 0x1400499ce
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140013880
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140053ec0
Capabilities:
Get geographical location

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.140053430
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140053f1c
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call fcn.140074320
jmp 0x140053f3e
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1400541d0
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret
Function at 0x140060c40
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400130e0
lea rcx, [rsp + 0x40]
call fcn.140060c00
movzx eax, al
test eax, eax
jne 0x140060c88
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.140060b30
mov rax, qword [rsp + 0x70]
jmp 0x140060e59
lea rcx, [rsp + 0x40]
call fcn.14000dd90
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140060bb0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.14000dd90
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.14005cd40
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x140060d2e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.140060b30
mov rax, qword [rsp + 0x80]
jmp 0x140060e59
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.140022ab0
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400130e0
lea rcx, [rsp + 0x48]
call fcn.140013820
movzx eax, al
test eax, eax
jne 0x140060d95
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.140013800
lea rcx, [rsp + 0x40]
call fcn.140060b30
mov rax, qword [rsp + 0x88]
jmp 0x140060e59
lea rcx, [rsp + 0x48]
call fcn.14000dd90
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.14000dd90
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.14005cd40
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x140060e2b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.140013800
lea rcx, [rsp + 0x40]
call fcn.140060b30
mov rax, qword [rsp + 0xa0]
jmp 0x140060e59
lea rcx, [rsp + 0x48]
call fcn.140016b40
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.140013800
lea rcx, [rsp + 0x40]
call fcn.140060b30
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x1400671f0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x20], 0
cmp qword [rsp + 0x40], 0
je 0x14006722f
mov rax, qword [rsp + 0x40]
movzx eax, word [rax]
test eax, eax
je 0x14006722f
lea rdx, [0x14008b018]
mov rcx, qword [rsp + 0x40]
call fcn.140064c10
test eax, eax
jne 0x140067266
mov r9d, 2
lea r8, [rsp + 0x20]
mov edx, 0x20001004
mov rax, qword [rsp + 0x48]
mov ecx, dword [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x140067255
xor eax, eax
jmp 0x1400672b5
cmp dword [rsp + 0x20], 0
jne 0x140067264
call qword [sym.imp.KERNEL32.dll_GetACP]
jmp 0x1400672b5
jmp 0x1400672b1
lea rdx, [0x14008b030]
mov rcx, qword [rsp + 0x40]
call fcn.140064c10
test eax, eax
jne 0x1400672a3
mov r9d, 2
lea r8, [rsp + 0x20]
mov edx, 0x2000000b
mov rax, qword [rsp + 0x48]
mov ecx, dword [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1400672a1
xor eax, eax
jmp 0x1400672b5
jmp 0x1400672b1
mov rcx, qword [rsp + 0x40]
call fcn.140043df0
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x140067320
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x48
mov dword [rsp + 0x20], 0
movzx eax, word [rsp + 0x50]
and eax, 0x3ff
movzx eax, ax
bts eax, 0xa
movzx eax, ax
mov dword [rsp + 0x24], eax
call fcn.140047cc0
add rax, 0x98
mov qword [rsp + 0x30], rax
mov r9d, 2
lea r8, [rsp + 0x20]
mov edx, 0x20000001
mov ecx, dword [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x140067383
xor eax, eax
jmp 0x1400673c3
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0x50], eax
je 0x1400673be
cmp dword [rsp + 0x58], 0
je 0x1400673be
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call fcn.140066af0
mov dword [rsp + 0x28], eax
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx]
call fcn.14003bee0
mov ecx, dword [rsp + 0x28]
cmp ecx, eax
jne 0x1400673be
xor eax, eax
jmp 0x1400673c3
mov eax, 1
add rsp, 0x48
ret
Function at 0x140068cf0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x140099080]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x140068d19
jmp 0x140068d9e
mov rcx, qword [rbp + 0x30]
call fcn.140074f10
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x140068d32
jmp 0x140068d9e
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x140068d4f
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140073a00
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], 0
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.1400599c0
test eax, eax
jne 0x140068d9e
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.140013880
lea rsp, [rbp + 0x20]
pop rbp
ret
Function at 0x14006b880
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x128
lea rcx, [rsp + 0xe8]
call fcn.14003c400
lea rcx, [rsp + 0xb8]
call fcn.14003c400
lea rcx, [rsp + 0x88]
call fcn.14003c400
call fcn.140045b30
mov r8d, eax
lea rdx, [rsp + 0xe8]
mov rcx, qword [rsp + 0x130]
call fcn.14003c2f0
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x14006b922
mov dword [rsp + 0x54], 0
lea rcx, [rsp + 0x88]
call fcn.14003c490
lea rcx, [rsp + 0xb8]
call fcn.14003c490
lea rcx, [rsp + 0xe8]
call fcn.14003c490
mov eax, dword [rsp + 0x54]
jmp 0x14006bac8
call fcn.140045b30
mov r8d, eax
lea rdx, [rsp + 0xb8]
mov rcx, qword [rsp + 0x138]
call fcn.14003c2f0
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x14006b982
mov dword [rsp + 0x5c], 0
lea rcx, [rsp + 0x88]
call fcn.14003c490
lea rcx, [rsp + 0xb8]
call fcn.14003c490
lea rcx, [rsp + 0xe8]
call fcn.14003c490
mov eax, dword [rsp + 0x5c]
jmp 0x14006bac8
mov qword [rsp + 0x70], 0
cmp qword [rsp + 0x168], 0
je 0x14006ba08
call fcn.140045b30
mov r8d, eax
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x168]
call fcn.14003c2f0
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x14006b9f6
mov dword [rsp + 0x64], 0
lea rcx, [rsp + 0x88]
call fcn.14003c490
lea rcx, [rsp + 0xb8]
call fcn.14003c490
lea rcx, [rsp + 0xe8]
call fcn.14003c490
mov eax, dword [rsp + 0x64]
jmp 0x14006bac8
lea rcx, [rsp + 0x88]
call fcn.14003c7c0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0xb8]
call fcn.14003c7c0
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0xe8]
call fcn.14003c7c0
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x158]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x150]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x148]
mov r8, qword [rsp + 0x140]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [rsp + 0x68], eax
lea rcx, [rsp + 0x88]
call fcn.14003c490
lea rcx, [rsp + 0xb8]
call fcn.14003c490
lea rcx, [rsp + 0xe8]
call fcn.14003c490
mov eax, dword [rsp + 0x68]
add rsp, 0x128
ret
Function at 0x140071180
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.14003c400
lea rcx, [rsp + 0x48]
call fcn.14003c400
call fcn.140045b30
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.14003c2f0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1400711ef
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.14003c490
lea rcx, [rsp + 0x78]
call fcn.14003c490
mov eax, dword [rsp + 0x24]
jmp 0x140071280
call fcn.140045b30
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.14003c2f0
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x140071236
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.14003c490
lea rcx, [rsp + 0x78]
call fcn.14003c490
mov eax, dword [rsp + 0x2c]
jmp 0x140071280
lea rcx, [rsp + 0x48]
call fcn.14003c7c0
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.14003c7c0
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.14003c490
lea rcx, [rsp + 0x78]
call fcn.14003c490
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x1400030a0
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xe0
mov rsi, r8
mov rbp, rcx
lea r8, str.SynTPLprInstanceMutex
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rdi, rax
test rax, rax
je 0x140003141
mov edx, 0x2710
mov rcx, rax
mov qword [rsp + 0xf0], rbx
mov qword [rsp + 0xf8], r14
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x14000311d
cmp eax, 0xffffffff
je 0x14000311d
lea r14, [0x140018520]
xor edx, edx
mov rcx, r14
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
je 0x140003156
mov rdx, rsi
mov rcx, rax
call fcn.1400039b0
lea rax, [0x140003ae0]
xorps xmm0, xmm0
xorps xmm1, xmm1
xor ebx, ebx
lea rcx, [rsp + 0x90]
mov qword [rsp + 0xa8], rbp
movdqa xmmword [rsp + 0xb0], xmm0
movdqa xmmword [rsp + 0xc0], xmm1
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xd0], r14
mov dword [rsp + 0x90], ebx
mov qword [rsp + 0xa0], rbx
call qword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
je 0x14000311d
invalid
mov qword [rsp + 0x58], rbx
Function at 0x140003760
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x1400250c0]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor edi, edi
mov rbx, rcx
lea rax, [rcx + 8]
test rcx, rcx
jne 0x14000378f
mov eax, edi
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rcx
mov qword [rax + 0x20], rcx
mov qword [rax + 0x28], rcx
mov dword [rax + 0x30], ecx
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x1400037d0
lea rdx, [rsp + 0x40]
mov r8d, 0x104
mov dword [rbx + 0x68], 1
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x1400037d7
xor eax, eax
jmp 0x1400038af
mov rcx, qword [rbx + 0x60]
mov qword [rsp + 0x278], rsi
test rcx, rcx
je 0x1400037f1
call fcn.1400081b4
mov qword [rbx + 0x60], rdi
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test eax, eax
je 0x140003845
mov ecx, esi
call fcn.140007ee8
lea rcx, [rsp + 0x40]
mov r8d, esi
mov r9, rax
xor edx, edx
mov qword [rbx + 0x60], rax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x140003845
mov rcx, qword [rbx + 0x60]
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x28]
lea rdx, [0x1400187e8]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x140003849
xor eax, eax
jmp 0x1400038a7
mov rax, qword [rsp + 0x28]
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x28]
lea rdx, str.VarFileInfoTranslation
movups xmm0, xmmword [rax]
movups xmmword [rbx + 8], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbx + 0x18], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rbx + 0x28], xmm0
mov eax, dword [rax + 0x30]
mov dword [rbx + 0x38], eax
mov rcx, qword [rbx + 0x60]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14000389a
cmp dword [rsp + 0x20], 4
jb 0x14000389a
mov rcx, qword [rsp + 0x28]
mov edx, dword [rcx]
mov dword [rbx + 0x48], edx
cmp dword [rbx + 8], 0xfeef04bd
sete dil
mov eax, edi
mov rsi, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140009600
mov rbx, qword [rsp + 0x280]
add rsp, 0x260
pop rdi
ret

Function at 0x140004380
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x8f8
mov rax, qword [0x1400250c0]
xor rax, rsp
mov qword [rsp + 0x8e0], rax
mov r8, rcx
lea rdx, str.rundll32.exe_url.dll_FileProtocolHandler__s
lea rcx, [rsp + 0xe0]
call fcn.140009a14
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.140009b80
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0xe0]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor eax, eax
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
xor ecx, ecx
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x70], 0x68
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
neg eax
sbb eax, eax
neg eax
dec eax
mov rcx, qword [rsp + 0x8e0]
xor rcx, rsp
call fcn.140009600
add rsp, 0x8f8
ret
Function at 0x1400056f0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1400250c0]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
mov rsi, rdx
mov rdi, rcx
mov qword [rcx], rax
mov qword [rsp + 0x30], rax
or rbx, 0xffffffffffffffff
call fcn.140005b60
cmp word [rax], 0
je 0x14000578c
xor eax, eax
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x38], 0x38
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
call fcn.140005b60
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_CreateActCtxW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000578c
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov eax, dword [0x1400271bc]
test al, 1
jne 0x1400057ad
or eax, 1
mov dword [0x1400271bc], eax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400271b8], eax
jmp 0x1400057b3
mov eax, dword [0x1400271b8]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x1400057d9
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov ecx, dword [0x1400271b8]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
lea rdx, [rsp + 0x70]
mov rcx, rsi
call qword [sym.imp.ole32.dll_CLSIDFromProgID]
xor edx, edx
lea r9, str.c_a2A
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x15]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x140005816
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
cmp rbx, 0xffffffffffffffff
je 0x140005825
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov rax, rdi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140009600
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140005850
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1400250c0]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
mov rsi, rdx
mov rdi, rcx
mov qword [rcx], rax
mov qword [rsp + 0x30], rax
or rbx, 0xffffffffffffffff
call fcn.140005b60
cmp word [rax], 0
je 0x1400058ec
xor eax, eax
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x38], 0x38
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
call fcn.140005b60
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_CreateActCtxW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400058ec
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov eax, dword [0x1400271c4]
test al, 1
jne 0x14000590d
or eax, 1
mov dword [0x1400271c4], eax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400271c0], eax
jmp 0x140005913
mov eax, dword [0x1400271c0]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x140005939
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov ecx, dword [0x1400271c0]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
lea rdx, [rsp + 0x70]
mov rcx, rsi
call qword [sym.imp.ole32.dll_CLSIDFromProgID]
xor edx, edx
lea r9, [0x140019188]
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x15]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x140005976
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
cmp rbx, 0xffffffffffffffff
je 0x140005985
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov rax, rdi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140009600
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret