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

Disassembly:
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x170], 0
jne 0x140092c7b
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x58], 0xffffffff
je 0x140092c40
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x58], 0
jne 0x140092c21
mov dword [rsp + 0x34], 0xffffffff
jmp 0x140092c2d
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x58]
mov dword [rsp + 0x34], eax
mov edx, dword [rsp + 0x34]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x50]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rax, qword [rsp + 0x58]
add rax, 0x34
mov qword [rsp + 0x20], 0
mov r9, rax
mov rax, qword [rsp + 0x58]
mov r8d, dword [rax + 0x30]
mov rax, qword [rsp + 0x58]
mov rdx, qword [rax + 0x28]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov byte [rsp + 0x30], al
jmp 0x140092c80
mov byte [rsp + 0x30], 0
mov al, byte [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x140093d00
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov word [rsp + 0x10], dx
mov qword [rsp + 8], rcx
sub rsp, 0x88
movzx eax, word [rsp + 0x98]
lea r8, [0x140126110]
mov rdx, rax
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x140093d4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140093e62
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x140093d79
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140093e62
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x140093d9c
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140093e62
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
jne 0x140093dc5
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140093e62
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
jne 0x140093e0c
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140093e62
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x140093e55
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x70]
jmp 0x140093e62
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x88
ret
Function at 0x1400969a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, dword [rcx + 0x44]
mov rdi, rcx
mov qword [rsp + 0x30], rbp
nop
nop
mov edx, dword [rdi + 0x94]
mov esi, dword [rdi + 0x58]
mov eax, dword [rdi + 0x44]
sub esi, dword [rdi + 0x9c]
lea ecx, [rbx + rax - 0x106]
sub esi, edx
cmp edx, ecx
jb 0x140096a5c
mov rcx, qword [rdi + 0x50]
mov r8, rbx
lea rdx, [rcx + rbx]
call fcn.1400cb410
mov r8d, dword [rdi + 0x74]
mov rax, qword [rdi + 0x68]
sub dword [rdi + 0x98], ebx
sub dword [rdi + 0x94], ebx
sub dword [rdi + 0x84], ebx
lea rdx, [rax + r8*2]
nop
movzx eax, word [rdx - 2]
sub rdx, 2
cmp eax, ebx
jb 0x140096a20
sub eax, ebx
jmp 0x140096a22
xor eax, eax
add r8d, 0xffffffff
mov word [rdx], ax
jne 0x140096a10
mov rax, qword [rdi + 0x60]
mov edx, ebx
lea rcx, [rax + rbx*2]
nop
nop
nop
movzx eax, word [rcx - 2]
sub rcx, 2
cmp eax, ebx
jb 0x140096a50
sub eax, ebx
jmp 0x140096a52
xor eax, eax
add edx, 0xffffffff
mov word [rcx], ax
jne 0x140096a40
add esi, ebx
mov rcx, qword [rdi]
cmp dword [rcx + 8], 0
je 0x140096ad7
mov edx, dword [rdi + 0x9c]
mov eax, dword [rdi + 0x94]
mov r8d, esi
add rdx, rax
add rdx, qword [rdi + 0x50]
call fcn.140096650
add dword [rdi + 0x9c], eax
mov r9d, dword [rdi + 0x9c]
cmp r9d, 3
jb 0x140096ac1
mov eax, dword [rdi + 0x94]
mov rdx, qword [rdi + 0x50]
mov ecx, dword [rdi + 0x80]
movzx r8d, byte [rax + rdx]
add eax, 1
mov dword [rdi + 0x70], r8d
movzx eax, byte [rax + rdx]
shl r8d, cl
xor r8d, eax
and r8d, dword [rdi + 0x7c]
mov dword [rdi + 0x70], r8d
cmp r9d, 0x106
jae 0x140096ad7
mov rax, qword [rdi]
cmp dword [rax + 8], 0
jne 0x1400969c0
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14009be40
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub rsp, 0x68
mov rax, qword [0x140127190]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r10, rdx
movabs r11, 0xf0f0f0f0f0f0f0f1
mov byte [rsp], gethostbyname
mov rax, r11
mov byte [rsp + 1], 0xad
mov byte [rsp + 2], 6
mov byte [rsp + 3], ntohl
mov byte [rsp + 4], 0x22
mov byte [rsp + 5], reloc.OLEAUT32.dll_VariantTimeToSystemTime
mul rcx
shr rdx, 6
mov byte [rsp + 6], 0x3e
mov byte [rsp + 7], VariantTimeToSystemTime
mov byte [rsp + 8], reloc.WS2_32.dll_send
mov byte [rsp + 9], 0xea
mov byte [rsp + 0xa], 0xb9
imul rdx, rdx, 0x44
sub rcx, rdx
test r8, r8
mov byte [rsp + 0xb], 0x9b
mov byte [rsp + 0xc], 0xfe
mov byte [rsp + 0xd], 0x36
mov byte [rsp + 0xe], 0x8e
mov byte [rsp + 0xf], 0xe1
mov byte [rsp + 0x10], 0x92
mov byte [rsp + 0x11], gethostbyname
mov byte [rsp + 0x12], 0x46
mov byte [rsp + 0x13], 0x35
mov byte [rsp + 0x14], 0x9e
mov byte [rsp + 0x15], 0x4d
mov byte [rsp + 0x16], 0x7f
mov byte [rsp + 0x17], 5
mov byte [rsp + 0x18], 0xaa
mov byte [rsp + 0x19], 0x8e
mov byte [rsp + 0x1a], 0xf4
mov byte [rsp + 0x1b], 0x88
mov byte [rsp + 0x1c], reloc.WS2_32.dll_send
mov byte [rsp + 0x1d], 0x5b
mov byte [rsp + 0x1e], 0xee
mov byte [rsp + 0x1f], 0x1e
mov byte [rsp + 0x20], 0xf3
mov byte [rsp + 0x21], 0xb9
mov byte [rsp + 0x22], 0x49
mov byte [rsp + 0x23], 0xb3
mov byte [rsp + 0x24], 0x58
mov byte [rsp + 0x25], 0x96
mov byte [rsp + 0x26], 0x4e
mov byte [rsp + 0x27], 0xea
mov byte [rsp + 0x28], 0x98
mov byte [rsp + 0x29], 0x7a
mov byte [rsp + 0x2a], 0x75
mov byte [rsp + 0x2b], 0xe2
mov byte [rsp + 0x2c], reloc.WS2_32.dll_ntohl
mov byte [rsp + 0x2d], 0x83
mov byte [rsp + 0x2e], 0x22
mov byte [rsp + 0x2f], 0xd2
mov byte [rsp + 0x30], 0x78
mov byte [rsp + 0x31], 0x44
mov byte [rsp + 0x32], 0x66
mov byte [rsp + 0x33], 0xae
mov byte [rsp + 0x34], 0xb0
mov byte [rsp + 0x35], 0x61
mov byte [rsp + 0x36], 0x47
mov byte [rsp + 0x37], 0xd0
mov byte [rsp + 0x38], 0xbc
mov byte [rsp + 0x39], 0xbb
mov byte [rsp + 0x3a], 0x60
mov byte [rsp + 0x3b], VariantTimeToSystemTime
mov byte [rsp + 0x3c], 0x79
mov byte [rsp + 0x3d], 0xea
mov byte [rsp + 0x3e], 0xa9
mov byte [rsp + 0x3f], 0x84
mov byte [rsp + 0x40], 0x19
mov byte [rsp + 0x41], 0x50
mov byte [rsp + 0x42], 0x37
mov byte [rsp + 0x43], 0xbf
je 0x14009bffc
sub r10, r9
nop
movzx eax, byte [rsp + rcx]
add rcx, 1
add r9, 1
xor al, byte [r10 + r9 - 1]
mov byte [r9 - 1], al
mov rax, r11
mul rcx
shr rdx, 6
imul rdx, rdx, 0x44
sub rcx, rdx
sub r8, 1
jne 0x14009bfd0
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400caf00
add rsp, 0x68
ret
mov r9, rdx
jmp 0x14009be40
Function at 0x14009c010
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x68
mov rax, qword [0x140127190]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r10, rdx
movabs r11, 0xf0f0f0f0f0f0f0f1
mov byte [rsp], gethostbyname
mov rax, r11
mov byte [rsp + 1], 0xad
mov byte [rsp + 2], 6
mov byte [rsp + 3], ntohl
mov byte [rsp + 4], 0x22
mov byte [rsp + 5], reloc.OLEAUT32.dll_VariantTimeToSystemTime
mul rcx
shr rdx, 6
mov byte [rsp + 6], 0x3e
mov byte [rsp + 7], VariantTimeToSystemTime
mov byte [rsp + 8], reloc.WS2_32.dll_send
mov byte [rsp + 9], 0xea
mov byte [rsp + 0xa], 0xb9
imul rdx, rdx, 0x44
sub rcx, rdx
test r8, r8
mov byte [rsp + 0xb], 0x9b
mov byte [rsp + 0xc], 0xfe
mov byte [rsp + 0xd], 0x36
mov byte [rsp + 0xe], 0x8e
mov byte [rsp + 0xf], 0xe1
mov byte [rsp + 0x10], 0x92
mov byte [rsp + 0x11], gethostbyname
mov byte [rsp + 0x12], 0x46
mov byte [rsp + 0x13], 0x35
mov byte [rsp + 0x14], 0x9e
mov byte [rsp + 0x15], 0x4d
mov byte [rsp + 0x16], 0x7f
mov byte [rsp + 0x17], 5
mov byte [rsp + 0x18], 0xaa
mov byte [rsp + 0x19], 0x8e
mov byte [rsp + 0x1a], 0xf4
mov byte [rsp + 0x1b], 0x88
mov byte [rsp + 0x1c], reloc.WS2_32.dll_send
mov byte [rsp + 0x1d], 0x5b
mov byte [rsp + 0x1e], 0xee
mov byte [rsp + 0x1f], 0x1e
mov byte [rsp + 0x20], 0xf3
mov byte [rsp + 0x21], 0xb9
mov byte [rsp + 0x22], 0x49
mov byte [rsp + 0x23], 0xb3
mov byte [rsp + 0x24], 0x58
mov byte [rsp + 0x25], 0x96
mov byte [rsp + 0x26], 0x4e
mov byte [rsp + 0x27], 0xea
mov byte [rsp + 0x28], 0x98
mov byte [rsp + 0x29], 0x7a
mov byte [rsp + 0x2a], 0x75
mov byte [rsp + 0x2b], 0xe2
mov byte [rsp + 0x2c], reloc.WS2_32.dll_ntohl
mov byte [rsp + 0x2d], 0x83
mov byte [rsp + 0x2e], 0x22
mov byte [rsp + 0x2f], 0xd2
mov byte [rsp + 0x30], 0x78
mov byte [rsp + 0x31], 0x44
mov byte [rsp + 0x32], 0x66
mov byte [rsp + 0x33], 0xae
mov byte [rsp + 0x34], 0xb0
mov byte [rsp + 0x35], 0x61
mov byte [rsp + 0x36], 0x47
mov byte [rsp + 0x37], 0xd0
mov byte [rsp + 0x38], 0xbc
mov byte [rsp + 0x39], 0xbb
mov byte [rsp + 0x3a], 0x60
mov byte [rsp + 0x3b], VariantTimeToSystemTime
mov byte [rsp + 0x3c], 0x79
mov byte [rsp + 0x3d], 0xea
mov byte [rsp + 0x3e], 0xa9
mov byte [rsp + 0x3f], 0x84
mov byte [rsp + 0x40], 0x19
mov byte [rsp + 0x41], 0x50
mov byte [rsp + 0x42], 0x37
mov byte [rsp + 0x43], 0xbf
je 0x14009bffc
sub r10, r9
nop
movzx eax, byte [rsp + rcx]
add rcx, 1
add r9, 1
xor al, byte [r10 + r9 - 1]
mov byte [r9 - 1], al
mov rax, r11
mul rcx
shr rdx, 6
imul rdx, rdx, 0x44
sub rcx, rdx
sub r8, 1
jne 0x14009bfd0
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400caf00
add rsp, 0x68
ret
mov r9, rdx
jmp 0x14009be40
Function at 0x14009c2cc
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x140127190]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.1400cb010
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.1400cb010
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 0x14009c35f
cmp dword [rsp + 0x24], 5
jb 0x14009c379
jmp 0x14009c375
cmp dword [rsp + 0x30], esi
jne 0x14009c379
cmp dword [rsp + 0x24], 4
ja 0x14009c375
jne 0x14009c379
cmp dword [rsp + 0x28], 0
jbe 0x14009c379
mov byte [rbx + 0x18], sil
lea rax, [0x1400faaf0]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.14009c10c
movzx ecx, byte [0x140129298]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x140129298], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400caf00
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x1400ca020
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x5b0
mov rbp, rcx
mov rcx, qword [0x14012bba8]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.1400d82f0
test rax, rax
je 0x1400ca074
mov r10, qword [rsp + 0x5e0]
mov r9d, ebx
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], r10
call rax
jmp 0x1400ca109
mov ecx, 2
call fcn.1400d8b00
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.1400cb010
mov rax, qword [rsp + 0x5b8]
mov dword [rsp + 0x40], 0xc000000d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x1400ca0f5
test ebx, ebx
jne 0x1400ca0f5
lea ecx, [rax + 2]
call fcn.1400d8b00
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc000000d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea r11, [rsp + 0x5b0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400ca130
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x5b8
mov rcx, qword [0x14012bba8]
call fcn.1400d82f0
test rax, rax
je 0x1400ca165
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], 0
call rax
add rsp, 0x5b8
ret
mov ecx, 2
mov qword [rsp + 0x5b0], rbx
call fcn.1400d8b00
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.1400cb010
mov rax, qword [rsp + 0x5b8]
mov dword [rsp + 0x40], 0xc000000d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x1400ca1ee
test ebx, ebx
jne 0x1400ca1ee
lea ecx, [rax + 2]
call fcn.1400d8b00
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc000000d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rbx, qword [rsp + 0x5b0]
add rsp, 0x5b8
ret
Function at 0x1400d7e00
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, reloc.OLEAUT32.dll_SysReAllocString
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x1400d7e3e
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x1400d7e20
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x1400d8025
mov ecx, 3
call fcn.1400e5dc0
cmp eax, 1
je 0x1400d7fdc
mov ecx, 3
call fcn.1400e5dc0
test eax, eax
jne 0x1400d7e75
cmp dword [reloc.OLEAUT32.dll_SysReAllocString], 1
je 0x1400d7fdc
cmp edi, 0xfc
je 0x1400d8025
mov qword [rsp + 0x50], rbp
lea rbp, [0x14012bc20]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.1400cf780
test eax, eax
je 0x1400d7eb9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1400c9f80
lea rdx, [0x14012bc39]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x14012bd3d], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1400d7f09
lea r8, str._program_name_unknown_
lea rcx, [0x14012bc39]
mov edx, 0x2fb
call fcn.1400cf780
test eax, eax
je 0x1400d7f09
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1400c9f80
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x14012bc39]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x1400d7f58
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x14012bf34]
lea r9d, [rax + 3]
lea r8, [0x1400fdfa4]
sub rdx, rcx
call fcn.1400e43a0
test eax, eax
je 0x1400d7f58
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1400c9f80
lea r8, [0x1400fdfa0]
mov edx, 0x314
mov rcx, rbp
call fcn.1400e42e0
test eax, eax
je 0x1400d7f84
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1400c9f80
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.1400e42e0
test eax, eax
je 0x1400d7fb4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1400c9f80
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.1400e5b60
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x1400d8025
cmp rax, 0xffffffffffffffff
je 0x1400d8025
xor eax, eax
movsxd rcx, ebx
lea r9, [rsp + 0x58]
add rcx, rcx
mov qword [rsp + 0x20], rsi
mov rdx, qword [r12 + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x1400d8040
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.1400e5dc0
cmp eax, 1
je 0x1400d8072
mov ecx, 3
call fcn.1400e5dc0
test eax, eax
jne 0x1400d8126
cmp dword [reloc.OLEAUT32.dll_SysReAllocString], 1
jne 0x1400d8126
mov qword [rsp + 0x48], rbx
lea rbx, reloc.OLEAUT32.dll_SysReAllocString
mov qword [rsp + 0x30], rdi
mov rax, rbx
xor edi, edi
cmp dword [rax], 0xfc
je 0x1400d809e
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x1400d8088
jmp 0x1400d8112
cmp edi, 0x17
jae 0x1400d8112
mov ecx, 3
call fcn.1400e5dc0
cmp eax, 1
je 0x1400d80c9
mov ecx, 3
call fcn.1400e5dc0
test eax, eax
jne 0x1400d8112
cmp dword [reloc.OLEAUT32.dll_SysReAllocString], 1
jne 0x1400d8112
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x1400d8112
cmp rax, 0xffffffffffffffff
je 0x1400d8112
movsxd rcx, edi
xor eax, eax
lea r9, [rsp + 0x40]
add rcx, rcx
mov qword [rsp + 0x20], rax
mov rdx, qword [rbx + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xff
call fcn.1400d7e00
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret

Function at 0x1400da1b7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140127190]
jne 0x1400caf1a
rol rcx, 0x10
test cx, 0xffff
jne 0x1400caf16
repz ret
ror rcx, 0x10
jmp 0x1400da110
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14012c000]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14012c0f8]
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 0x1400da195
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, [0x14012c000]
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 0x1400da1b7
mov rax, qword [rsp + 0x88]
mov qword [0x14012c0f8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14012c098], rax
mov rax, qword [0x14012c0f8]
mov qword [0x14012bf70], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14012c080], rax
mov dword [0x14012bf60], 0xc0000409
mov dword [0x14012bf64], 1
mov rax, qword [0x140127190]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140127198]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14012bff8], eax
mov ecx, 1
call fcn.1400d8b00
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400fe020]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14012bff8], 0
jne 0x1400da23e
mov ecx, 1
call fcn.1400d8b00
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 0x1400e03e0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov eax, dword [0x14012c9cc]
xor r12d, r12d
test eax, eax
mov ebp, r12d
jne 0x1400e043c
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x1400e041c
mov dword [0x14012c9cc], 1
jmp 0x1400e044f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1400e0436
mov dword [0x14012c9cc], 2
jmp 0x1400e04b9
mov eax, dword [0x14012c9cc]
cmp eax, 1
jne 0x1400e04b0
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x1400e048a
cmp word [rdi], bp
mov rax, rdi
je 0x1400e0469
add rax, 2
cmp word [rax], bp
jne 0x1400e0457
add rax, 2
cmp word [rax], bp
jne 0x1400e0457
sub eax, edi
add eax, 2
movsxd rsi, eax
mov rcx, rsi
call fcn.1400d1180
test rax, rax
mov rbx, rax
jne 0x1400e0491
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1400e05ab
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call fcn.1400cb410
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbx
jmp 0x1400e05ab
cmp eax, 2
je 0x1400e04b9
test eax, eax
jne 0x1400e048a
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rsi, rax
je 0x1400e048a
cmp byte [rax], bpl
mov rbx, rax
je 0x1400e0508
nop
or r9d, 0xffffffff
mov r8, rbx
xor ecx, ecx
lea edx, [r9 + 2]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x1400e048a
or rcx, 0xffffffffffffffff
add ebp, eax
mov rdi, rbx
xor eax, eax
repne scasb al, byte [rdi]
not rcx
add rbx, rcx
cmp byte [rbx], al
jne 0x1400e04d0
add ebp, 1
mov edx, 2
movsxd rcx, ebp
call fcn.1400d11f0
test rax, rax
mov r12, rax
jne 0x1400e052d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x1400e05ab
cmp byte [rsi], 0
mov qword [rsp + 0x50], r13
mov rbx, rax
mov r13, rsi
je 0x1400e0595
nop
or r9d, 0xffffffff
mov eax, ebp
mov rcx, rbx
sub rcx, r12
lea edx, [r9 + 2]
mov r8, r13
sar rcx, 1
sub eax, ecx
xor ecx, ecx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x1400e05be
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r13
repne scasb al, byte [rdi]
mov rdi, rbx
not rcx
add r13, rcx
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
cmp byte [r13], al
not rcx
lea rbx, [rbx + rcx*2]
jne 0x1400e0540
mov rcx, rsi
mov word [rbx], 0
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov rax, r12
mov r13, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov rcx, r12
call fcn.1400cbb70
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x1400e05a6