joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002671
Capabilities:
Hash data using sha1

Disassembly:
jmp 0x140014880
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
mov rax, qword [0x14016c1f0]
xor rax, rsp
mov qword [rbp + 0x27], rax
xor eax, eax
mov dword [rbp - 0x51], 0x5a827999
mov qword [rbp - 0x39], rax
lea r8, [rbp - 0x39]
mov qword [rbp - 0x31], rax
mov r13, rcx
mov qword [rbp - 0x29], rax
lea rcx, [0x140014f70]
mov qword [rbp - 0x21], rax
mov r10, rdx
mov qword [rbp - 0x19], rax
mov r9d, reloc.WSOCK32.dll_recv
mov qword [rbp - 0x11], rax
mov qword [rbp - 9], rax
mov qword [rbp - 1], rax
lea rax, [0x140014f60]
mov qword [rbp + 7], rax
lea rax, [0x140014f80]
mov qword [rbp + 0x17], rax
lea rax, [rbp - 0x39]
sub r10, rax
mov qword [rbp + 0xf], rcx
mov qword [rbp + 0x1f], rcx
mov dword [rbp - 0x4d], 0x6ed9eba1
mov dword [rbp - 0x49], 0x8f1bbcdc
mov dword [rbp - 0x45], 0xca62c1d6
nop dword [rax]
mov ecx, dword [r10 + r8]
lea r8, [r8 + 4]
mov edx, ecx
mov eax, ecx
shr eax, 0x10
and edx, 0xff0000
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
mov dword [r8 - 4], edx
sub r9, 1
jne 0x140014930
test r13, r13
je 0x14001497d
movups xmm0, xmmword [r13]
mov eax, dword [r13 + 0x10]
mov dword [rbp - 0x59], eax
movups xmmword [rbp - 0x69], xmm0
jmp 0x14001499a
xor eax, eax
mov qword [rbp - 0x69], rax
mov qword [rbp - 0x61], rax
mov dword [rbp - 0x59], eax
call fcn.1400033cd
mov dword [rax], socket
call fcn.140004845
mov edx, dword [rbp - 0x61]
xor bl, bl
xor r12b, r12b
xor r14b, r14b
nop word [rax + rax]
movzx r15d, r14b
and r15b, 0xf
cmp r14b, 0x10
jb 0x1400149fb
movzx eax, r15b
lea r10, [rbp - 0x39]
lea r10, [r10 + rax*4]
movzx r8d, r15b
lea eax, [r8 - 3]
and eax, 0xf
lea ecx, [r8 - 8]
and ecx, 0xf
mov r9d, dword [rbp + rcx*4 - 0x39]
xor r9d, dword [rbp + rax*4 - 0x39]
lea eax, [r8 + 2]
and eax, 0xf
xor r9d, dword [rbp + rax*4 - 0x39]
xor r9d, dword [r10]
rol r9d, 1
mov dword [r10], r9d
mov r8d, dword [rbp - 0x5d]
mov ecx, dword [rbp - 0x65]
movzx edi, bl
call qword [rbp + rdi*8 + htons]
mov esi, dword [rbp - 0x69]
lea rdx, [rbp - 0x69]
rol esi, 5
mov r8d, reloc.WSOCK32.dll_recv
movzx ecx, r15b
add esi, dword [rbp + rcx*4 - 0x39]
lea rcx, [rbp - 0x65]
add esi, dword [rbp + rdi*4 - 0x51]
add esi, dword [rbp - 0x59]
add esi, eax
call fcn.1400046f6
mov edx, dword [rbp - 0x61]
inc r12b
ror edx, 2
mov dword [rbp - 0x69], esi
mov dword [rbp - 0x61], edx
cmp r12b, 0x14
jne 0x140014a5f
movzx ebx, bl
xor r12b, r12b
inc ebx
and ebx, 0x80000003
jge 0x140014a5f
dec ebx
or ebx, 0xfffffffc
inc ebx
inc r14b
cmp r14b, 0x4f
jbe 0x1400149b0
lea r8, [rbp - 0x69]
mov rcx, r13
sub r8, r13
mov edx, 5
nop dword [rax + rax]
mov eax, dword [r8 + rcx]
add dword [rcx], eax
lea rcx, [rcx + 4]
sub rdx, 1
jne 0x140014a80
add qword [r13 + 0x18], 0x200
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140004ca5
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1400028b5
Capabilities:
Clear file content

Disassembly:
jmp 0x140114278
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov ebp, 1
mov r8d, ebp
xor edx, edx
mov esi, ecx
call fcn.14000573b
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x1401142b9
call fcn.1400033cd
mov eax, dword [rax]
jmp 0x14011435f
xor edx, edx
mov ecx, esi
lea r8d, [rdx + 2]
call fcn.14000573b
cmp rax, 0xffffffffffffffff
je 0x1401142ad
mov rdi, rbx
sub rdi, rax
test rdi, rdi
jle 0x1401143a0
mov r15d, 0x1000
mov rdx, rbp
mov ecx, r15d
call fcn.140003db9
mov rbx, rax
test rax, rax
jne 0x140114304
call fcn.1400033cd
mov dword [rax], listen
jmp 0x14011438d
mov edx, 0x8000
mov ecx, esi
call fcn.140001f87
mov ebp, eax
mov r8d, edi
cmp rdi, r15
mov rdx, rbx
mov ecx, esi
cmovge r8d, r15d
call fcn.140002a18
cmp eax, 0xffffffff
je 0x140114378
cdqe
sub rdi, rax
test rdi, rdi
jg 0x140114312
mov edx, ebp
mov ecx, esi
call fcn.140001f87
mov rcx, rbx
call fcn.140005173
xor r8d, r8d
mov rdx, r14
mov ecx, esi
call fcn.14000573b
cmp rax, 0xffffffffffffffff
je 0x1401142ad
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
call fcn.140004e0d
cmp dword [rax], 5
jne 0x14011438d
call fcn.1400033cd
mov dword [rax], reloc.WSOCK32.dll_listen
call fcn.1400033cd
mov rcx, rbx
mov edi, dword [rax]
call fcn.140005173
mov eax, edi
jmp 0x14011435f
jns 0x140114346
xor r8d, r8d
mov rdx, rbx
mov ecx, esi
call fcn.14000573b
cmp rax, 0xffffffffffffffff
je 0x1401142ad
mov ecx, esi
call fcn.1400028e7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140114346
call fcn.1400033cd
mov dword [rax], reloc.WSOCK32.dll_listen
call fcn.140004e0d
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
jmp 0x1401142ad
Function at 0x140002c34
Capabilities:
Parse pe header

Disassembly:
jmp 0x140115450
mov rax, rcx
mov ecx, 0x5a4d
cmp word [rax], cx
je 0x140115460
xor eax, eax
ret
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
xor eax, eax
cmp dword [rcx], 0x4550
jne 0x14011547d
mov edx, 0x20b
cmp word [rcx + 0x18], dx
sete al
ret

Function at 0x140002db5
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400e4e58
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x1400e4ac0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400e4ac0
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400e4ac0
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400e4ac0
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400e4ac0
cmp dword [rcx + 0x84], 0xe
jbe 0x1400e4ac0
cmp dword [rcx + 0xf8], esi
je 0x1400e4ac0
mov ecx, r14d
call fcn.1400e4d20
mov ecx, 2
call fcn.1400042a5
nop
cmp byte [0x140184179], 0
jne 0x1400e4b8a
mov r15d, 1
mov eax, r15d
xchg dword [0x140184168], eax
test ebx, ebx
jne 0x1400e4b33
mov rdi, qword [0x14016c1f0]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140184170]
cmp rcx, rax
je 0x1400e4b2a
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [section..00cfg]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140184d68]
jmp 0x1400e4b3f
cmp ebx, r15d
jne 0x1400e4b45
lea rcx, [0x140184d88]
call fcn.140004723
nop
test ebx, ebx
jne 0x1400e4b5c
lea rdx, [0x14011cbf0]
lea rcx, [0x14011c8b0]
call fcn.140003b52
lea rdx, [0x14011ce10]
lea rcx, [0x14011cd00]
call fcn.140003b52
movzx eax, byte [0x140184179]
test esi, esi
cmove eax, r15d
mov byte [0x140184179], al
jmp 0x1400e4b8a
mov ecx, 2
call fcn.140002b67
test esi, esi
jne 0x1400e4ba1
mov ecx, r14d
call fcn.1400e4c18
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x1400e4a50
Function at 0x140002ea5
Capabilities:
Access the windows event log

Disassembly:
jmp 0x140085ff0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x98
movzx esi, dx
movzx ebp, cx
xorps xmm0, xmm0
lea rdx, str.DPTF
xor ecx, ecx
xor ebx, ebx
movdqu xmmword [rsp + 0x50], xmm0
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rdi, rax
test rax, rax
je 0x1400860b1
mov rdx, qword [rsp + 0xd0]
lea rax, [0x14013e308]
lea r8, [rsp + 0xd8]
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x78]
call fcn.140004b29
mov ecx, 2
mov r9d, 0x100
movzx r8d, bp
movups xmm0, xmmword [rax]
lea rax, str.Error_in_formatting_event_message
movups xmmword [rsp + 0x60], xmm0
mov rbx, qword [rsp + 0x64]
test rbx, rbx
cmovne rax, rbx
xor edx, edx
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], edx
mov word [rsp + 0x28], cx
mov rcx, rdi
mov qword [rsp + 0x20], rdx
movzx edx, si
call qword [sym.imp.ADVAPI32.dll_ReportEventA]
test rbx, rbx
je 0x1400860be
mov rcx, rbx
call fcn.140002d65
test rdi, rdi
je 0x1400860cc
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
add rsp, 0x98
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400033ff
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400e4dd8
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1400e4a50

Function at 0x14000354e
Capabilities:
Terminate process

Disassembly:
jmp 0x14009f5a8
sub rsp, 0x28
mov ecx, reloc.WSOCK32.dll_socket
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x14009f5c1
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
lea ecx, [r8 + 1]
call fcn.140001cda
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x14000376f
Capabilities:
Write file on windows

Disassembly:
jmp 0x1400dc054
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x60
test rdx, rdx
je 0x1400dc08e
test r8, r8
je 0x1400dc08e
test r9, r9
jne 0x1400dc096
call fcn.1400033cd
mov dword [rax], socket
call fcn.140004845
xor eax, eax
add rsp, 0x60
pop rbp
ret
lea rax, [rbp + 0x28]
mov qword [rbp - 0x38], r9
mov qword [rbp - 0x28], rax
lea r8, [rbp - 0x28]
lea rax, [rbp + 0x10]
mov qword [rbp - 0x30], r9
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x38]
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rdx, [rbp - 0x30]
lea rax, [rbp + 0x20]
lea rcx, [rbp - 0x40]
mov qword [rbp - 0x10], rax
call fcn.1400015eb
jmp 0x1400dc090

Function at 0x1400039b3
Capabilities:
Terminate process

Disassembly:
jmp 0x14008ecd8
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x140003a99
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140095e78
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
lea r9, [0x140143270]
mov ecx, 4
lea r8, [0x140143268]
lea rdx, [0x140143278]
call fcn.140095730
mov rbx, rax
test rax, rax
je 0x140095ebb
mov rcx, rax
call fcn.140002f18
mov rcx, rdi
call rbx
jmp 0x140095ec1
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140003b43
Capabilities:
Get common file path

Disassembly:
jmp 0x1400eed50
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x14016c1f0]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor edi, edi
lea rcx, [rsp + 0x22]
xor edx, edx
mov word [rsp + 0x20], di
mov r8d, 0x208
call fcn.1400033e1
lea rdx, [rsp + 0x20]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, 0x104
ja 0x1400eedca
movzx ecx, word [rsp + 0x20]
test cx, cx
je 0x1400eee27
cmp word [rsp + 0x22], 0x3a
jne 0x1400eee27
lea eax, [rcx - 0x61]
cmp ax, 0x19
movzx eax, cx
ja 0x1400eedc5
sub eax, 0x20
lea edi, [rax - 0x40]
jmp 0x1400eee27
lea esi, [rax + 1]
mov edx, 2
mov ecx, esi
call fcn.140003db9
mov rbx, rax
test rax, rax
je 0x1400eedf0
mov rdx, rax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x1400eedfd
call fcn.1400033cd
mov dword [rax], listen
jmp 0x1400eee1f
cmp word [rbx], di
je 0x1400eee1f
cmp word [rbx + 2], 0x3a
jne 0x1400eee1f
movzx eax, word [rbx]
sub ax, 0x61
cmp ax, 0x19
movzx eax, word [rbx]
ja 0x1400eee1c
sub eax, 0x20
lea edi, [rax - 0x40]
mov rcx, rbx
call fcn.140005173
mov eax, edi
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140004ca5
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x140003eef
Capabilities:
Delete file

Disassembly:
jmp 0x1400ff314
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400ff334
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140004138
or eax, 0xffffffff
jmp 0x1400ff336
xor eax, eax
add rsp, 0x28
ret

Function at 0x140003ffd
Capabilities:
Delete directory
Delete file

Disassembly:
jmp 0x1400845f0
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 4]
test rcx, rcx
je 0x14008460f
call fcn.140002d65
mov qword [rbx + 4], 0
mov rcx, qword [rbx + 0x2c]
test rcx, rcx
je 0x140084634
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rbx + 0x2c]
test rcx, rcx
je 0x14008462c
call fcn.140002d65
mov qword [rbx + 0x2c], 0
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140084659
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140084651
call fcn.140002d65
mov qword [rbx + 0x18], 0
add rsp, 0x20
pop rbx
ret
Function at 0x140004089
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1400fb25c
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x140148168]
mov ecx, 5
lea r8, [0x140148160]
lea rdx, [0x1401432b8]
call fcn.1400faa8c
mov rdi, rax
test rax, rax
je 0x1400fb29e
mov rcx, rax
call qword [section..00cfg]
mov ecx, ebx
call rdi
jmp 0x1400fb2a6
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000438b
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1400fb2c8
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x140148178]
mov edi, ecx
lea rdx, [0x1401432d8]
mov ecx, 6
lea r8, [0x140148170]
call fcn.1400faa8c
mov rsi, rax
test rax, rax
je 0x1400fb315
mov rcx, rax
call qword [section..00cfg]
mov rdx, rbx
mov ecx, edi
call rsi
jmp 0x1400fb320
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400043ef
Capabilities:
Read file on windows

Disassembly:
jmp 0x1400f35f0
mov qword [rsp + 0x10], rbx
mov dword [rsp + 8], ecx
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r15d, r8d
mov r13, rdx
movsxd rsi, ecx
cmp esi, 0xfffffffe
jne 0x1400f362c
call fcn.140004e0d
and dword [rax], 0
call fcn.1400033cd
mov dword [rax], 9
jmp 0x1400f36f1
test ecx, ecx
js 0x1400f36d9
cmp esi, dword [0x1401852bc]
jae 0x1400f36d9
mov r14, rsi
mov r12, rsi
sar r12, 6
lea rax, [0x140184df0]
and r14d, 0x3f
shl r14, 6
mov rax, qword [rax + r12*8]
movzx ecx, byte [rax + r14 + 0x38]
and ecx, 1
je 0x1400f36d9
xor eax, eax
cmp r8d, 0x7fffffff
setbe al
test eax, eax
jne 0x1400f368d
call fcn.140004e0d
and dword [rax], 0
call fcn.1400033cd
mov dword [rax], socket
jmp 0x1400f36ec
mov ecx, esi
call fcn.140003e22
or ebx, 0xffffffff
lea rax, [0x140184df0]
mov rax, qword [rax + r12*8]
test byte [rax + r14 + 0x38], 1
jne 0x1400f36bf
call fcn.1400033cd
mov dword [rax], 9
call fcn.140004e0d
and dword [rax], 0
jmp 0x1400f36ce
mov r8d, r15d
mov rdx, r13
mov ecx, esi
call fcn.1400024a5
mov ebx, eax
mov ecx, esi
call fcn.1400017a8
mov eax, ebx
jmp 0x1400f36f4
call fcn.140004e0d
and dword [rax], 0
call fcn.1400033cd
mov dword [rax], 9
call fcn.140004845
or eax, 0xffffffff
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rsi
ret

Function at 0x14000456b
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1400fb184
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
lea r9, [0x140148148]
mov ecx, 3
lea r8, [0x140148140]
lea rdx, [0x140143278]
call fcn.1400faa8c
mov rbx, rax
test rax, rax
je 0x1400fb1c8
mov rcx, rax
call qword [section..00cfg]
mov rcx, rdi
call rbx
jmp 0x1400fb1ce
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400046f1
Capabilities:
Get common file path

Disassembly:
jmp 0x14007d7b0
mov qword [rsp + 0x20], rbx
push r14
sub rsp, 0x240
mov rax, qword [0x14016c1f0]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.1400033e1
xor eax, eax
mov dword [rbx], 9
mov qword [rbx + 4], rax
lea rcx, [rsp + 0x20]
mov edx, 0x104
mov qword [rbx + 0xc], rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r14d, eax
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14007d8b9
lea ecx, [rax + 1]
mov qword [rsp + 0x250], rsi
lea rsi, [rcx + rcx]
mov qword [rsp + 0x258], rdi
mov qword [rsp + 0x260], r15
mov r15d, ecx
mov rcx, rsi
call fcn.1400037c9
mov rdi, rax
test rax, rax
je 0x14007d856
mov r8, rsi
xor edx, edx
mov rcx, rax
call fcn.1400033e1
mov rsi, qword [rsp + 0x250]
mov qword [rbx + 4], rdi
test rdi, rdi
je 0x14007d884
lea r8, [rsp + 0x20]
mov rdx, r15
mov rcx, rdi
call fcn.140004142
lea ecx, [r14 + r14]
lea eax, [rcx + 2]
mov dword [rbx + 0x10], ecx
mov dword [rbx + 0xc], eax
mov rdi, qword [rsp + 0x258]
mov rax, rbx
mov r15, qword [rsp + 0x260]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140004ca5
mov rbx, qword [rsp + 0x268]
add rsp, 0x240
pop r14
ret
mov rax, rbx
jmp 0x14007d897
Function at 0x14000484a
Capabilities:
Get common file path
Query environment variable

Disassembly:
jmp 0x14007dfc0
sub rsp, 0x588
mov rax, qword [0x14016c1f0]
xor rax, rsp
mov qword [rsp + 0x570], rax
xor edx, edx
lea rcx, [rsp + 0x240]
mov r8d, 0x104
call fcn.1400033e1
xor edx, edx
lea rcx, [rsp + 0x350]
mov r8d, 0x104
call fcn.1400033e1
xor edx, edx
lea rcx, [rsp + 0x130]
mov r8d, 0x104
call fcn.1400033e1
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call fcn.1400033e1
xor edx, edx
lea rcx, [rsp + 0x460]
mov r8d, 0x104
call fcn.1400033e1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov edx, 0x104
lea rcx, [rsp + 0x240]
call qword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
test eax, eax
jne 0x14007e087
or r9, 0xffffffffffffffff
lea r8, [0x14013ca60]
mov edx, 0x104
lea rcx, [rsp + 0x240]
call fcn.140003c4c
mov edx, 0x104
lea rcx, [rsp + 0x350]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x14007e0bb
or r9, 0xffffffffffffffff
lea r8, [0x14013ca70]
mov edx, 0x104
lea rcx, [rsp + 0x350]
call fcn.140003c4c
lea rdx, [rsp + 0x130]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, eax
cmp rax, 1
jbe 0x14007e0ef
dec rax
cmp rax, 0x104
jae 0x14007e236
mov byte [rsp + rax + 0x130], 0
jmp 0x14007e10c
or r9, 0xffffffffffffffff
lea r8, [0x14013ca88]
mov edx, 0x104
lea rcx, [rsp + 0x130]
call fcn.140003c4c
mov r8d, 0x104
lea rdx, [rsp + 0x20]
lea rcx, [0x14013caa0]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x14007e15e
mov r8d, 0x104
lea rdx, [rsp + 0x20]
lea rcx, [0x14013cab0]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x14007e15e
or r9, 0xffffffffffffffff
lea r8, [0x14013cac0]
mov edx, 0x104
lea rcx, [rsp + 0x20]
call fcn.140003c4c
lea r9, [rsp + 0x20]
mov ecx, 0x104
lea r8, [0x14013cad8]
lea rdx, [rsp + 0x460]
call fcn.14007d470
mov r9d, 0x400
lea r8, [rsp + 0x240]
lea rdx, [0x14013cb20]
lea rcx, [0x14016bbb0]
call fcn.140004c5f
mov r9d, 0x400
lea r8, [rsp + 0x350]
lea rdx, [0x14013cb30]
lea rcx, [0x14016bbb0]
call fcn.140004c5f
mov r9d, 0x400
lea r8, [rsp + 0x130]
lea rdx, [0x14013cb3c]
lea rcx, [0x14016bbb0]
call fcn.140004c5f
mov r9d, 0x400
lea r8, [rsp + 0x20]
lea rdx, [0x14013cb48]
lea rcx, [0x14016bbb0]
call fcn.140004c5f
mov r9d, 0x400
lea r8, [rsp + 0x460]
lea rdx, [0x14013cb5c]
lea rcx, [0x14016bbb0]
call fcn.140004c5f
mov rcx, qword [rsp + 0x570]
xor rcx, rsp
call fcn.140004ca5
add rsp, 0x588
ret
call fcn.140002275
int3
Function at 0x1400049cb
Capabilities:
Get common file path

Disassembly:
jmp 0x14007d910
mov qword [rsp + 0x20], rbx
push r14
sub rsp, 0x240
mov rax, qword [0x14016c1f0]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.1400033e1
xor eax, eax
mov dword [rbx], 9
mov qword [rbx + 4], rax
lea rdx, [rsp + 0x20]
mov ecx, 0x104
mov qword [rbx + 0xc], rax
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov r14d, eax
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14007da19
lea ecx, [rax + 1]
mov qword [rsp + 0x250], rsi
lea rsi, [rcx + rcx]
mov qword [rsp + 0x258], rdi
mov qword [rsp + 0x260], r15
mov r15d, ecx
mov rcx, rsi
call fcn.1400037c9
mov rdi, rax
test rax, rax
je 0x14007d9b6
mov r8, rsi
xor edx, edx
mov rcx, rax
call fcn.1400033e1
mov rsi, qword [rsp + 0x250]
mov qword [rbx + 4], rdi
test rdi, rdi
je 0x14007d9e4
lea r8, [rsp + 0x20]
mov rdx, r15
mov rcx, rdi
call fcn.140004142
lea ecx, [r14 + r14]
lea eax, [rcx + 2]
mov dword [rbx + 0x10], ecx
mov dword [rbx + 0xc], eax
mov rdi, qword [rsp + 0x258]
mov rax, rbx
mov r15, qword [rsp + 0x260]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140004ca5
mov rbx, qword [rsp + 0x268]
add rsp, 0x240
pop r14
ret
mov rax, rbx
jmp 0x14007d9f7

Function at 0x140004a6b
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400e4de8
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x1400e4a50
Function at 0x140004be7
Capabilities:
Write file on windows

Disassembly:
jmp 0x1400834d0
jmp 0x140082920
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbx, rcx
test rcx, rcx
je 0x140082975
mov rcx, qword [rcx]
test rcx, rcx
je 0x140082975
call fcn.14000363e
test eax, eax
je 0x140082975
cmp qword [rbx + 0x248], 0
je 0x140082975
mov rcx, qword [rbx]
mov r8d, edi
mov rdx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1400038be
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, rcx
cmp dword [rcx + 0x210], edi
jne 0x1400834fd
lea ecx, [rdi + 0x15]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
test rdx, rdx
jne 0x140083518
lea ecx, [rdx + 0x57]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
lea r9, [rsp + 0x40]
cmp dword [rcx + 0x218], edi
jne 0x140083542
mov rcx, qword [rcx + 0x208]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov qword [rcx + 0x258], rdi
mov qword [rsp + 0x48], rsi
lea rsi, [rcx + 0x250]
mov rcx, qword [rcx + 0x208]
mov qword [rsi], rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
test eax, eax
jne 0x1400835a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1400835a6
mov rcx, qword [rbx + 0x208]
lea r9d, [rdi + 1]
lea r8, [rsp + 0x40]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov eax, edi
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret