joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011140
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
jmp 0x140012230
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x3b8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x86
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x3d8]
mov rax, qword [0x14001e008]
xor rax, rbp
mov qword [rbp + 0x388], rax
lea rcx, [0x1400240a5]
call fcn.1400113ed
lea rdx, [rbp + 0x10]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov r8d, 6
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov rcx, qword [rbp + 0x3b0]
mov qword [rcx + 0x100], rax
mov rax, qword [rbp + 0x3b0]
cmp qword [rax + 0x100], 0xffffffffffffffff
jne 0x1400122d5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.creat_socker_failed__d_n
call fcn.1400111e0
jmp 0x140012390
mov rax, qword [rbp + 0x3b0]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rbp + 0x1c8], rax
cmp qword [rbp + 0x1c8], 0
jne 0x14001230f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.get_host_ip_failed__d_n
call fcn.1400111e0
jmp 0x140012390
mov eax, 2
mov word [rbp + 0x1e8], ax
mov cx, 0x50
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x1ea], ax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rbp + 0x1c8]
mov rcx, qword [rcx + 0x18]
mov r8d, 4
mov rdx, qword [rcx + rax]
lea rcx, [rbp + 0x1ec]
call fcn.1400111fe
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp + 0x1e8]
mov rax, qword [rbp + 0x3b0]
mov rcx, qword [rax + 0x100]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x140012390
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.connect_fdailed__d_n
call fcn.1400111e0
lea rcx, [rbp - 0x20]
lea rdx, [0x14001ad40]
call fcn.140011370
mov rcx, qword [rbp + 0x388]
xor rcx, rbp
call fcn.1400111f9
lea rsp, [rbp + 0x398]
pop rdi
pop rbp
ret
Function at 0x140011154
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Send data
Send data on socket
Send http request
Send http request with host header
Write file on windows

Disassembly:
jmp 0x140011ba0
mov qword [rsp + 8], rcx
push rbp
push rdi
mov eax, 0x1bd8
call fcn.1400110b4
sub rsp, rax
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x56e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1bf8]
mov rax, qword [0x14001e008]
xor rax, rbp
mov qword [rbp + 0x1ba0], rax
lea rcx, [0x1400240a5]
call fcn.1400113ed
mov rcx, qword [rbp + 0x1bd0]
call fcn.140011140
lea rax, [rbp + 0x10]
mov rdi, rax
xor eax, eax
mov ecx, 0x80
rep stosb byte [rdi], al
mov rax, qword [rbp + 0x1bd0]
add rax, 0x80
mov r8, rax
lea rdx, str.GET__s_HTTP_1.1_r_n
lea rcx, [rbp + 0x10]
call fcn.1400113ac
mov rax, qword [rbp + 0x1bd0]
mov qword [rbp + 0x1b98], rax
lea rcx, [rbp + 0x10]
call fcn.1400111b3
lea rax, [rbp + rax + 0x10]
mov rcx, qword [rbp + 0x1b98]
mov r8, rcx
lea rdx, str.Host:__s__r_n
mov rcx, rax
call fcn.1400113ac
lea rdx, str.Connection:Close_r_n
lea rcx, [rbp + 0x10]
call fcn.14001123f
lea rdx, [0x14001aff0]
lea rcx, [rbp + 0x10]
call fcn.14001123f
lea rcx, [rbp + 0x10]
call fcn.1400111b3
xor r9d, r9d
mov r8d, eax
lea rdx, [rbp + 0x10]
mov rax, qword [rbp + 0x1bd0]
mov rcx, qword [rax + 0x100]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x140011cc5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.send_failed__d_n
call fcn.1400111e0
jmp 0x140011db6
lea rax, [rbp + 0xb0]
mov rdi, rax
xor eax, eax
mov ecx, 0x1400
rep stosb byte [rdi], al
xor r9d, r9d
mov r8d, 0x1400
lea rdx, [rbp + 0xb0]
mov rax, qword [rbp + 0x1bd0]
mov rcx, qword [rax + 0x100]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rbp + 0x14c4], eax
cmp dword [rbp + 0x14c4], 0xffffffff
jne 0x140011d21
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.recv_failed__d_n
call fcn.1400111e0
jmp 0x140011d90
lea rdx, [0x14001b024]
lea rcx, str.maye.html
call qword [sym.imp.ucrtbased.dll_fopen]
mov qword [rbp + 0x14e8], rax
cmp qword [rbp + 0x14e8], 0
jne 0x140011d48
jmp 0x140011db6
lea rcx, [rbp + 0xb0]
call fcn.1400111b3
mov r9, qword [rbp + 0x14e8]
mov r8, rax
mov edx, 1
lea rcx, [rbp + 0xb0]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x14e8]
call qword [sym.imp.ucrtbased.dll_fclose]
lea rdx, [rbp + 0xb0]
lea rcx, [0x14001b034]
call fcn.1400111e0
lea rax, [rbp + 0x1510]
mov rdi, rax
xor eax, eax
mov ecx, 0x80
rep stosb byte [rdi], al
lea rdx, [rbp + 0x1510]
lea rcx, [0x14001b038]
call fcn.1400111e0
lea rcx, [rbp - 0x20]
lea rdx, [0x14001ae50]
call fcn.140011370
mov rcx, qword [rbp + 0x1ba0]
xor rcx, rbp
call fcn.1400111f9
lea rsp, [rbp + 0x1bb8]
pop rdi
pop rbp
ret
Function at 0x140011244
Capabilities:
Terminate process

Disassembly:
jmp 0x140013990
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1400112d5
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014ce0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014d00
xor al, al
jmp 0x140014d81
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014d13
xor al, al
jmp 0x140014d81
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140014d3d
xor al, al
jmp 0x140014d81
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014d51
xor al, al
jmp 0x140014d81
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014d63
xor al, al
jmp 0x140014d81
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014d7f
xor al, al
jmp 0x140014d81
mov al, 1
add rsp, 0x38
ret
Function at 0x180016221
Capabilities:
Write file on windows

Disassembly:
jmp 0x180038ed0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x18006826b]
call fcn.180017473
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x180038f27
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x180039033
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x180038fcc
cmp qword [rbp + 0x28], 0
jle 0x180038fcc
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x180038f6c
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.18001732e
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rbp + 0x130], 0
jle 0x180039022
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x180039022
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x180016b8b
Capabilities:
Terminate process

Disassembly:
jmp 0x18003f5b0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x180016d48
Capabilities:
Get geographical location

Disassembly:
jmp 0x1800395c0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov r9d, 2
lea r8, [rsp + 0x40]
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x1800395fd
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov edx, eax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call fcn.180017455
add rsp, 0x58
ret
Function at 0x180017324
Capabilities:
Get file attributes

Disassembly:
jmp 0x180035c40
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x3c8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x8a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x3e8]
mov rax, qword [0x18005a058]
xor rax, rbp
mov qword [rbp + 0x398], rax
lea rcx, [0x18006826d]
call fcn.180017473
xor r8d, r8d
mov rdx, qword [rbp + 0x3c0]
lea rcx, [rbp + 0x258]
call fcn.180016113
nop
lea rdx, [rbp + 0x258]
lea rcx, [rbp + 0x28]
call fcn.180016e06
nop
lea rax, [rbp + 0x28]
mov qword [rbp + 8], rax
lea rcx, [rbp + 0x258]
call fcn.1800172b6
mov edx, 0x10
lea rcx, [rbp + 0x58]
call fcn.180016bf4
lea rax, [rbp + 0x298]
mov qword [rbp + 0x2c8], rax
mov rdx, qword [rbp + 8]
mov rcx, qword [rbp + 0x2c8]
call fcn.180016b9a
mov qword [rbp + 0x388], rax
mov rdx, qword [rbp + 0x388]
lea rcx, [rbp + 0x58]
call fcn.1800162fd
nop
mov edx, 0x10
lea rcx, [rbp + 0x88]
call fcn.180016bf4
lea rax, [rbp + 0x2e8]
mov qword [rbp + 0x318], rax
mov rdx, qword [rbp + 8]
mov rcx, qword [rbp + 0x318]
call fcn.180016b9a
mov qword [rbp + 0x388], rax
mov rdx, qword [rbp + 0x388]
lea rcx, [rbp + 0x88]
call fcn.18001619a
nop
jmp 0x180035d5e
lea rcx, [rbp + 0x58]
call fcn.180016b2c
lea rdx, [rbp + 0x88]
lea rcx, [rbp + 0x58]
call fcn.180016c0d
movzx eax, al
test eax, eax
je 0x180035e14
lea rcx, [rbp + 0x58]
call fcn.180017090
mov qword [rbp + 0xb8], rax
mov rcx, qword [rbp + 0xb8]
call fcn.180016c80
mov rcx, rax
call fcn.1800163a2
movzx eax, al
test eax, eax
je 0x180035e0f
mov rcx, qword [rbp + 0xb8]
call fcn.180016c80
mov rcx, rax
call fcn.1800174e6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 1
test eax, eax
jne 0x180035e0f
lea rax, [rbp + 0x338]
mov qword [rbp + 0x378], rax
mov rcx, qword [rbp + 0xb8]
call fcn.180016c80
mov qword [rbp + 0x388], rax
mov rdx, qword [rbp + 0x378]
mov rcx, qword [rbp + 0x388]
call fcn.180016e0b
mov qword [rbp + 0x390], rax
mov rcx, qword [rbp + 0x390]
call fcn.18001602d
jmp 0x180035d55
lea rcx, [rbp + 0x88]
call fcn.180016d4d
nop
lea rcx, [rbp + 0x58]
call fcn.180016d4d
nop
lea rcx, [rbp + 0x28]
call fcn.180016d4d
nop
mov rcx, qword [rbp + 0x3c0]
call fcn.180017171
lea rcx, [rbp - 0x20]
lea rdx, [0x18004b010]
call fcn.1800170e0
mov rcx, qword [rbp + 0x398]
xor rcx, rbp
call fcn.1800169ce
lea rsp, [rbp + 0x3a8]
pop rdi
pop rbp
ret
Function at 0x18001742d
Capabilities:
Write file on windows

Disassembly:
jmp 0x1800304d0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x3e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x208]
mov rax, qword [0x18005a058]
xor rax, rbp
mov qword [rbp + 0x1a8], rax
lea rcx, [0x18006826b]
call fcn.180017473
mov rax, qword [rbp + 0x1d0]
cmp qword [rax + 0x68], 0
je 0x180030536
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x18003053d
mov al, 1
jmp 0x1800306af
mov rax, qword [rbp + 0x1d0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x198], rax
call fcn.1800165b4
mov dword [rbp + 0x1a0], eax
mov edx, dword [rbp + 0x1a0]
mov rcx, qword [rbp + 0x1d0]
call qword [rbp + 0x198]
mov dword [rbp + 0x164], eax
call fcn.1800165b4
mov dword [rbp + 0x184], eax
lea rdx, [rbp + 0x164]
lea rcx, [rbp + 0x184]
call fcn.180017117
movzx eax, al
test eax, eax
je 0x1800305a2
xor al, al
jmp 0x1800306af
mov qword [rbp + 8], 0x20
mov rax, qword [rbp + 0x1d0]
mov rax, qword [rax + 0x68]
mov qword [rbp + 0x198], rax
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1d0]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rcx, qword [rbp + 0x198]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x1a0], eax
cmp dword [rbp + 0x1a0], 0
je 0x180030615
cmp dword [rbp + 0x1a0], 1
je 0x180030620
cmp dword [rbp + 0x1a0], 3
je 0x18003069e
jmp 0x1800306ad
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x180030670
mov rax, qword [rbp + 0x1d0]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x180030670
xor al, al
jmp 0x1800306af
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x18003068b
mov dword [rbp + 0x194], 1
jmp 0x180030695
mov dword [rbp + 0x194], 0
movzx eax, byte [rbp + 0x194]
jmp 0x1800306af
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x1800306af
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x18004b940]
call fcn.1800170e0
mov rax, rdi
mov rcx, qword [rbp + 0x1a8]
xor rcx, rbp
call fcn.1800169ce
lea rsp, [rbp + 0x1b8]
pop rdi
pop rbp
ret
Function at 0x18001750e
Capabilities:
Print debug messages

Disassembly:
jmp 0x1800412c4
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edx, edx
mov rdi, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.180016f5a
and qword [rdi + 0x50], 0
lea rax, [0x180000000]
and dword [rdi + 0x58], 0
lea rcx, [rdi + 0x28]
and dword [rdi + 0x5c], 0
xor r8d, r8d
mov qword [rdi + 0x10], rax
xor edx, edx
mov qword [rdi + 8], rax
lea rax, [0x1800510a0]
mov qword [rdi + 0x20], rax
mov dword [rdi], 0x60
mov dword [rdi + 0x18], 0xe00
call fcn.180016988
test eax, eax
jne 0x18004135b
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x18004135b
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x180041354
lea rcx, str.ERROR_:_Unable_to_initialize_critical_section_in_CAtlBaseModule_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [0x18005d250], 1
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x1400012f4
Capabilities:
Accept command line arguments

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rbx
push rdi
lea rbp, [rax - 0x28]
sub rsp, 0x110
mov rax, qword [0x140017170]
xor rax, rsp
mov qword [rbp], rax
call fcn.1400021e4
xor edi, edi
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rbx, rax
mov qword [rsp + 0x28], rdi
movdqa xmm0, xmmword [0x1400123e0]
movdqu xmmword [rsp + 0x38], xmm0
lea r8d, [rdi + 0xa]
lea rdx, str._user_path
lea rcx, [rsp + 0x28]
call fcn.140001a60
movsxd rcx, dword [rsp + 0x20]
lea rdx, [rbx + rcx*8]
lea r8, [rsp + 0x28]
mov rcx, rbx
call fcn.14000221c
mov rbx, rax
lea rcx, [rsp + 0x28]
call fcn.1400019f8
mov rcx, rbx
call fcn.140003330
mov qword [rsp + 0x58], rdi
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rdi
mov word [rsp + 0x78], di
mov qword [rbp - 8], rdi
call fcn.14000146c
mov qword [0x140018718], rdi
lea rax, vtable.rpc_object_stub_class_cpt_control_agent_.0
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x58]
call fcn.140004204
nop
lea rcx, [rsp + 0x58]
call fcn.1400041c4
lea rcx, [rsp + 0x58]
call fcn.1400017e4
nop
xor eax, eax
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.14000d890
add rsp, 0x110
pop rdi
pop rbx
pop rbp
ret
Function at 0x1400023a0
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov r13, r8
mov ebx, edx
mov rsi, rcx
test rcx, rcx
je 0x14000252b
test edx, edx
je 0x14000252b
and dword [rbp + 0x48], 0
lea rdx, [rbp + 0x48]
and dword [rbp + 0x30], 0
xor r14b, r14b
and qword [rbp - 0x10], 0
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov r15d, eax
test eax, eax
je 0x14000252b
mov ecx, r15d
call fcn.14000db44
mov edx, dword [rbp + 0x48]
mov r9, rax
mov r8d, r15d
mov rcx, rsi
mov rdi, rax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x14000251e
mov r15d, 0x40
test bl, 1
je 0x140002488
lea r9, [rbp + 0x30]
mov rcx, rdi
lea r8, [rbp - 0x10]
lea rdx, [0x1400109a4]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140002488
cmp dword [rbp + 0x30], 0
je 0x140002488
mov r8, qword [rbp - 0x10]
cmp dword [r8], 0xfeef04bd
jne 0x140002488
movzx ecx, word [r8 + 0xc]
movzx edx, word [r8 + 0xe]
movzx eax, word [r8 + 8]
movzx r9d, word [r8 + 0xa]
lea r8, str._d._d._d._04d
mov dword [rsp + 0x30], ecx
mov rcx, r13
mov dword [rsp + 0x28], edx
mov edx, r15d
mov dword [rsp + 0x20], eax
call fcn.14000307c
mov r14b, 1
test bl, 6
je 0x14000251e
lea rsi, [r13 + 0x80]
mov rcx, rdi
add r13, r15
mov byte [rsi], 0
lea r9, [rbp + 0x30]
lea r8, [rbp - 8]
lea rdx, str.VarFileInfoTranslation
mov byte [r13], 0
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x14000251e
cmp dword [rbp + 0x30], 4
jb 0x14000251e
test bl, 2
je 0x1400024f1
mov rax, qword [rbp - 8]
lea r9, [0x1400112e0]
mov dword [rsp + 0x28], 0x100
mov rcx, rdi
mov qword [rsp + 0x20], rsi
movzx r8d, word [rax + 2]
movzx edx, word [rax]
call fcn.140002274
test bl, 4
je 0x14000251b
mov rax, qword [rbp - 8]
lea r9, str.OriginalVer
mov dword [rsp + 0x28], r15d
mov rcx, rdi
mov qword [rsp + 0x20], r13
movzx r8d, word [rax + 2]
movzx edx, word [rax]
call fcn.140002274
mov r14b, 1
mov rcx, rdi
call fcn.14000d8b0
mov al, r14b
jmp 0x14000252d
xor al, al
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
Function at 0x140002c80
Capabilities:
Get process image filename

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rbp, rdx
mov esi, ecx
test rdx, rdx
jne 0x140002ca7
xor al, al
jmp 0x140002d9f
xor dil, dil
mov byte [rsp + 0x88], dil
test esi, esi
je 0x140002d9c
mov r8d, esi
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
jne 0x140002cee
mov r8d, esi
xor edx, edx
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140002d9c
and dword [rsp + 0x40], 0
lea rax, [rsp + 0x80]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x88]
lea rax, [rsp + 0x78]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea rdx, str.QueryFullProcessImageNameW
lea rax, [rsp + 0x40]
lea rcx, str.kernel32.dll
mov qword [rsp + 0x20], rax
call fcn.14000205c
mov dil, byte [rsp + 0x88]
test dil, dil
jne 0x140002d93
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, esi
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r9d, dword [rsp + 0x80]
mov r8, rbp
mov rcx, rax
xor edx, edx
mov rbx, rax
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
setne dil
test eax, eax
jne 0x140002d93
mov r8d, dword [rsp + 0x80]
mov rdx, rbp
mov rcx, rbx
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
setne dil
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, dil
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret

Function at 0x140002e48
Capabilities:
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x440
mov rax, qword [0x140017170]
xor rax, rsp
mov qword [rsp + 0x430], rax
xor edi, edi
mov rbx, rcx
test rcx, rcx
je 0x140002f06
cmp di, word [rcx]
je 0x140002f06
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x410
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
lea r8d, [rdi + 0x25]
lea rdx, [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x140002f06
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or edi, 0xffffffff
cmp eax, edi
jne 0x140002f02
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea rdx, str.downlevel
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, edi
je 0x140002f06
mov al, 1
jmp 0x140002f08
xor al, al
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.14000d890
mov rbx, qword [rsp + 0x458]
add rsp, 0x440
pop rdi
ret
Function at 0x140005800
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x20
mov r8, qword [rdx + 0x10]
xor esi, esi
mov rbx, rcx
test r8, r8
jne 0x140005891
lea r9, [rax + 8]
mov qword [rax + 8], rsi
xor edx, edx
lea rcx, [0x140011f30]
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x1400058ac
mov rdx, qword [rsp + 0x30]
lea rdi, [rbx + 0xc0]
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], si
jne 0x140005848
mov rcx, rdi
call fcn.140001a60
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov r8d, 1
lea rdx, [0x1400109a4]
mov rcx, rdi
call fcn.140004c3c
mov r8d, 4
lea rdx, str.Zoom
mov rcx, rdi
call fcn.140004c3c
jmp 0x1400058ac
add rcx, 0xc0
cmp rcx, rdx
je 0x1400058ac
cmp qword [rdx + 0x18], 8
jb 0x1400058a7
mov rdx, qword [rdx]
call fcn.140001a60
lea r8, [rbx + 0xc0]
add rbx, 0xe0
cmp rbx, r8
je 0x1400058d8
cmp qword [r8 + 0x18], 8
mov rdx, r8
jb 0x1400058cc
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
mov rcx, rbx
call fcn.140001a60
mov r8d, 6
lea rdx, str.data_
mov rcx, rbx
call fcn.140004c3c
mov r8d, 0xb
lea rdx, str.Zoom.us.ini
mov rcx, rbx
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.140004c3c