joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140341f74
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14033471c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14033471c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1403420c4
cmp rax, 0xffffffffffffffff
je 0x1403420c4
xor edi, edi
test rbp, rbp
jle 0x14034206f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14033a68c
mov rbx, rax
test rax, rax
jne 0x140341ffc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140342065
mov edx, 0x8000
mov ecx, r14d
call fcn.140335b00
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140338974
cmp eax, 0xffffffff
je 0x140342045
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14034200c
mov edx, r15d
mov ecx, r14d
call fcn.140335b00
jmp 0x140342065
cmp byte [rsi + 0x38], dil
je 0x14034205c
cmp dword [rsi + 0x34], 5
jne 0x14034205c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x140342065
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1403397c0
jmp 0x1403420d8
jns 0x1403420d8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14033471c
cmp rax, 0xffffffffffffffff
jne 0x140342090
cmp byte [rsi + 0x30], dil
je 0x1403420d8
mov edi, dword [rsi + 0x2c]
jmp 0x1403420d8
mov ecx, r14d
call fcn.140341e64
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1403420d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x1403420d8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1403420d1
mov eax, dword [rsi + 0x2c]
jmp 0x1403420d6
mov eax, reloc.WLDAP32.dll_Ordinal_22
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14033471c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140343cf4
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140343d24
xor eax, eax
jmp 0x140343de7
mov rbp, rbx
cmp word [rax], si
je 0x140343d49
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140343d30
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140343d2c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1403408e0
movsxd r14, eax
test eax, eax
jne 0x140343d87
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140343d1d
mov rcx, r14
call fcn.14033b714
mov rdi, rax
test rax, rax
jne 0x140343da0
xor ecx, ecx
call fcn.1403397c0
jmp 0x140343d7c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1403408e0
test eax, eax
jne 0x140343dd1
mov rcx, rdi
call fcn.1403397c0
jmp 0x140343ddb
xor ecx, ecx
call fcn.1403397c0
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140343e04
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140343e8b
mov rsi, rbx
cmp word [rax], bp
je 0x140343e4a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140343e34
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140343e30
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14033b714
mov rdi, rax
test rax, rax
je 0x140343e78
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140313f50
mov rbp, rdi
xor ecx, ecx
call fcn.1403397c0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140346efc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1403393bc
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140346f9d
cmp ebx, dword [rsp + 0x30]
je 0x140346f96
test esi, esi
je 0x140346f96
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140346f71
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140346f7e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140346f5b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140346f82
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140346f9f
mov eax, 1
jmp 0x140346f9f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14034a0f4
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140432c18]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x14034a13e
call fcn.140320b58
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.140320b78
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.140319c44
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140313160
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x14034a149
lea eax, [rbx + 1]
jmp 0x14034a12b
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x14034a129
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x14034a12b
Function at 0x14034a254
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14032386c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14034a2de
cmp byte [rbp - 0x21], r15b
je 0x14034a2d9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14034a314
call fcn.14033aa24
test eax, eax
jne 0x14034a300
cmp byte [rbp - 0x21], r15b
je 0x14034a2f8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14034a314
cmp byte [rbp - 0x21], r15b
je 0x14034a311
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1403236f0
test eax, eax
jne 0x14034a3b4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14032386c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14034a353
cmp byte [rbp - 0x21], r15b
je 0x14034a388
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14034a388
call fcn.14033aa24
test eax, eax
jne 0x14034a374
cmp byte [rbp - 0x21], r15b
je 0x14034a36d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14034a388
cmp byte [rbp - 0x21], r15b
je 0x14034a385
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1403236f0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14034a3b4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14034a3b7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14034a3c5
mov rcx, rdi
call fcn.1403397c0
cmp byte [rbp + 0x3f], r15b
je 0x14034a3d4
mov rcx, qword [rbp + 0x27]
call fcn.1403397c0
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140001190
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
xor ebp, ebp
lea eax, [rcx - 1]
mov rsi, r8
mov rbx, rdx
mov edi, ecx
lea r14d, [rbp + 1]
test eax, 0xfffffff7
jne 0x1400011e8
lea rdx, str.http:
mov rcx, rbx
call fcn.14000111c
test eax, eax
jne 0x14000130a
lea rdx, str.https:
mov rcx, rbx
call fcn.14000111c
test eax, eax
jne 0x14000130a
cmp edi, 3
jne 0x14000122e
test rbx, rbx
je 0x140001219
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathIsRelativeA]
test eax, eax
jne 0x14000130a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140001219
test al, 0x10
je 0x14000130a
xor eax, eax
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
cmp edi, 2
jne 0x140001250
test rbx, rbx
je 0x140001219
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140001219
test al, 0x10
jne 0x14000130a
jmp 0x140001219
cmp edi, 4
jne 0x140001270
test rsi, rsi
je 0x140001219
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathIsRelativeA]
test eax, eax
jne 0x14000130a
mov rcx, rsi
jmp 0x140001206
cmp edi, 5
jne 0x140001288
lea rdx, str.mailto:
mov rcx, rbx
call fcn.14000111c
test eax, eax
jmp 0x140001304
lea eax, [rdi - 6]
cmp eax, 2
ja 0x140001219
call fcn.140001060
test eax, eax
jne 0x14000130a
mov dword [rsp + 0x60], ebp
test rbx, rbx
je 0x140001219
mov qword [rsp + 0x30], rbp
lea r8d, [rax + 7]
mov dword [rsp + 0x28], ebp
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileA]
lea r9, [rsp + 0x60]
mov rcx, rbx
cmp rax, 0xffffffffffffffff
mov rdi, rax
cmove rdi, rbp
mov rdx, rdi
call fcn.140002534
test eax, eax
lea rdx, [rdi - 1]
mov ebx, ebp
cmovne ebx, r14d
cmp rdx, 0xfffffffffffffffd
ja 0x140001302
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x140001219
mov eax, r14d
jmp 0x14000121b

Function at 0x1400013d8
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140031010]
xor rax, rsp
mov qword [rbp - 8], rax
xor ebx, ebx
mov word [rbp - 0xc], 0x500
lea rax, [rbp - 0x18]
mov dword [rbp - 0x20], ebx
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 0x10]
mov dword [rsp + 0x48], ebx
mov r9d, 0x220
mov dword [rsp + 0x40], ebx
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x38], ebx
mov dl, 2
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov dword [rbp - 0x10], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140001462
mov rdx, qword [rbp - 0x18]
lea r8, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
cmp dword [rbp - 0x20], ebx
lea eax, [rbx + 1]
mov rcx, qword [rbp - 0x18]
cmovne ebx, eax
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140009960
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rbp
ret
Function at 0x140001484
Capabilities:
Find taskbar

Disassembly:
push rbx
sub rsp, 0x30
and dword [rsp + 0x40], 0
lea rcx, str.Shell_TrayWnd
and qword [rsp + 0x48], 0
xor edx, edx
and qword [rsp + 0x50], 0
call qword [sym.imp.USER32.dll_FindWindowA]
test rax, rax
je 0x140001539
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rsp + 0x40]
test r8d, r8d
je 0x140001539
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140001539
lea r8, [rsp + 0x48]
mov edx, 2
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov r9d, 2
xor r8d, r8d
mov dword [rsp + 0x20], 1
mov edx, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x50]
jmp 0x14000153b
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x1400017c0
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
xor ebx, ebx
mov r14, r9
mov rsi, r8
mov rbp, rdx
test rdx, rdx
jne 0x1400017ee
test r8, r8
je 0x14000182e
call fcn.1400013d8
test eax, eax
jne 0x140001821
mov ecx, dword [rsp + 0x60]
lea rdx, str.open
mov dword [rsp + 0x28], ecx
mov r9, rsi
xor ecx, ecx
mov qword [rsp + 0x20], r14
mov r8, rbp
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
setg bl
jmp 0x140001855
call fcn.140001484
mov rdi, rax
test rax, rax
jne 0x140001832
xor eax, eax
jmp 0x140001857
mov r9d, dword [rsp + 0x60]
mov r8, r14
mov rdx, rsi
mov qword [rsp + 0x20], rdi
mov rcx, rbp
call fcn.140001544
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x140001874
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rdi
push r12
push r14
push r15
sub rsp, 0x30
mov rbp, r8
mov r12, rdx
mov r8, qword [rsp + 0x70]
mov rdx, r9
mov rdi, r9
mov ebx, ecx
call fcn.140001190
test eax, eax
jne 0x1400018b3
mov eax, 0xb
jmp 0x14000195e
call fcn.140001060
test eax, eax
jne 0x140001935
call fcn.1400013d8
test eax, eax
je 0x140001935
cmp ebx, 7
je 0x14000190e
lea eax, [rbx - 1]
test eax, 0xfffffff7
jne 0x140001935
mov r15, qword [rsp + 0x78]
mov rdx, rdi
mov r14d, dword [rsp + 0x80]
mov r9, r15
mov r8, qword [rsp + 0x70]
mov rcx, rbp
mov dword [rsp + 0x20], r14d
call fcn.140001e18
test eax, eax
jne 0x14000192b
cmp ebx, 1
jne 0x14000192b
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r15
jmp 0x14000194a
mov eax, dword [rsp + 0x80]
mov rdx, rdi
mov r9, qword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov dword [rsp + 0x20], eax
call fcn.1400017c0
neg eax
sbb rax, rax
and eax, 0x21
jmp 0x14000195e
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x70]
mov r8, rdi
mov rdx, rbp
mov rcx, r12
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop r12
ret
Function at 0x140002888
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rdi
push r12
push r13
push r14
sub rsp, 0x390
mov rax, qword [0x140031010]
xor rax, rsp
mov qword [rsp + 0x380], rax
and qword [r8], 0
mov rdi, r8
movsxd rbx, edx
mov r14, rcx
cmp ebx, 6
ja 0x140002a9b
mov rax, qword [rcx + rbx*8]
mov rbp, rbx
test rax, rax
je 0x1400028da
mov qword [r8], rax
xor eax, eax
jmp 0x140002aa0
mov r12d, 0x400
mov ecx, r12d
call fcn.140009ca4
mov r8d, r12d
mov qword [rdi], rax
xor edx, edx
mov rcx, rax
call fcn.14000b3c0
lea r13, [0x14002a588]
test ebx, ebx
je 0x140002a5d
sub ebx, 1
je 0x140002a55
sub ebx, 1
je 0x140002a4d
sub ebx, 1
je 0x140002a36
sub ebx, 1
je 0x140002a2e
sub ebx, 1
je 0x140002942
cmp ebx, 1
jne 0x140002a8c
lea r8d, [rbx + 0x29]
jmp 0x140002a63
mov ebx, 0x104
lea rcx, [rsp + 0x50]
mov r8d, ebx
xor edx, edx
call fcn.14000b3c0
mov r8d, ebx
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x140002a8c
mov r8d, ebx
lea rcx, [rsp + 0x160]
xor edx, edx
call fcn.14000b3c0
mov r8d, ebx
lea rcx, [rsp + 0x270]
xor edx, edx
call fcn.14000b3c0
and qword [rsp + 0x40], 0
lea r9, [rsp + 0x270]
and qword [rsp + 0x38], 0
lea rdx, [rsp + 0x160]
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x50]
and qword [rsp + 0x28], 0
mov r8d, ebx
mov qword [rsp + 0x20], rbx
call fcn.14000f56c
mov rcx, qword [rdi]
lea r8, [rsp + 0x160]
mov rdx, r12
call fcn.14000ef78
mov rcx, qword [rdi]
lea r8, [rsp + 0x270]
mov rdx, r12
call fcn.14000ef78
cmp dword [r14 + 0x38], 1
lea rax, [0x14002a5a0]
mov rcx, qword [rdi]
lea r8, str.RoomConnector
cmovne r8, rax
mov rdx, r12
call fcn.14000ef78
mov rcx, qword [rdi]
mov r8, r13
mov rdx, r12
call fcn.14000ef78
mov rax, qword [rdi]
mov qword [r14 + rbp*8], rax
jmp 0x1400028d3
mov r8d, 0x20
jmp 0x140002a63
mov rdx, qword [rdi]
mov ecx, 0x103
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
xor ebx, ebx
test eax, eax
setne bl
jmp 0x140002a84
mov r8d, 0x26
jmp 0x140002a63
mov r8d, 0x1c
jmp 0x140002a63
mov r8d, 0x1a
mov rdx, qword [rdi]
mov r9d, 1
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov rcx, qword [rdi]
mov r8, r13
mov rdx, r12
mov ebx, eax
call fcn.14000ef78
test ebx, ebx
jne 0x1400029f2
mov rcx, qword [rdi]
call fcn.1400099bc
mov eax, 3
jmp 0x140002aa0
mov eax, 1
mov rcx, qword [rsp + 0x380]
xor rcx, rsp
call fcn.140009960
mov rbx, qword [rsp + 0x3d8]
add rsp, 0x390
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret
Function at 0x140002ac8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x430
mov rax, qword [0x140031010]
xor rax, rsp
mov qword [rsp + 0x420], rax
mov rbx, rdx
mov rdi, rcx
test rcx, rcx
je 0x140002b56
test rdx, rdx
je 0x140002b56
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x400
call fcn.14000b3c0
mov r8, rdi
lea rcx, [rsp + 0x20]
mov edi, 0x3ff
mov edx, edi
call fcn.14000ef18
lea r8, [0x14002a588]
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.14000ef78
mov r8, rbx
lea rcx, [rsp + 0x20]
mov edx, edi
call fcn.14000ef78
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140002b56
mov eax, 1
jmp 0x140002b58
xor eax, eax
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.140009960
mov rbx, qword [rsp + 0x450]
add rsp, 0x430
pop rdi
ret

Function at 0x140002b7c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x440]
sub rsp, 0x540
mov rax, qword [0x140031010]
xor rax, rsp
mov qword [rbp + 0x430], rax
mov rdi, r9
mov rbx, r8
mov rsi, rdx
mov r14, rcx
test rdx, rdx
je 0x140002ccd
test rbx, rbx
je 0x140002ccd
xor edx, edx
lea rcx, [rbp + 0x30]
mov r8d, 0x400
call fcn.14000b3c0
mov r8, rsi
lea rcx, [rbp + 0x30]
mov esi, 0x3ff
mov edx, esi
call fcn.14000ef18
mov r8, rbx
lea rcx, [rbp + 0x30]
mov edx, esi
call fcn.14000ef78
lea rcx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140002ccd
test al, 0x10
je 0x140002ccd
cmp dword [r14 + 0x38], 1
lea rcx, [rbp + 0x30]
jne 0x140002cef
lea rdx, str.RoomConnector.exe
call fcn.140002ac8
lea rdx, str.gateway_conf_client.dll
mov ebx, eax
lea rcx, [rbp + 0x30]
call fcn.140002ac8
lea rdx, str.gmcm.dll
mov r14d, eax
lea rcx, [rbp + 0x30]
call fcn.140002ac8
lea rdx, str.gviper.dll
lea rcx, [rbp + 0x30]
mov esi, eax
call fcn.140002ac8
test ebx, ebx
je 0x140002ccd
test r14d, r14d
je 0x140002ccd
test esi, esi
je 0x140002ccd
test eax, eax
je 0x140002ccd
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x28]
and dword [rsp + 0x24], 0
mov ebx, 0x104
and dword [rbp + 0x2c], 0
mov r8d, ebx
xor edx, edx
call fcn.14000b3c0
mov edx, ebx
mov dword [rsp + 0x24], 1
lea rcx, [rbp + 0x30]
call fcn.14000e86c
inc eax
cmp eax, ebx
jge 0x140002d6a
lea r8, [rbp + 0x30]
mov edx, ebx
lea rcx, [rsp + 0x28]
call fcn.14000ef18
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14000312c
mov eax, 1
mov rcx, qword [rbp + 0x430]
xor rcx, rsp
call fcn.140009960
add rsp, 0x540
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
cmp dword [r14 + 0x38], 2
jne 0x140002d2d
lea rdx, str.Controller.exe
call fcn.140002ac8
lea rdx, str.Cmmlib.dll
mov ebx, eax
lea rcx, [rbp + 0x30]
call fcn.140002ac8
lea rdx, str.zrc_sdk.dll
mov esi, eax
lea rcx, [rbp + 0x30]
call fcn.140002ac8
test ebx, ebx
jmp 0x140002c67
lea rdx, str.Zoom.exe
call fcn.140002ac8
lea rdx, str.zChatApp.dll
mov ebx, eax
lea rcx, [rbp + 0x30]
call fcn.140002ac8
lea rdx, str.zVideoApp.dll
mov r14d, eax
lea rcx, [rbp + 0x30]
call fcn.140002ac8
lea rdx, str.Cmmlib.dll
jmp 0x140002c55
xor eax, eax
jmp 0x140002cd2
Function at 0x140004878
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebp, ebp
mov rbx, rcx
mov edi, 1
cmp dword [rcx + 0x28], ebp
jne 0x140004a16
lea rcx, [0x14002bda0]
call fcn.14000380c
test rax, rax
je 0x1400048cd
xor edx, edx
lea rcx, str.wininet.dll
mov r8d, 0x800
call qword [0x140023570]
mov rsi, rax
test rax, rax
jne 0x140004906
lea rcx, [0x14002bd90]
call fcn.14000380c
test rax, rax
jne 0x1400048f1
lea ecx, [rax + 0x78]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rbx + 0x28], edi
xor eax, eax
jmp 0x140004a71
lea rcx, str.wininet.dll
call qword [0x140023570]
mov rsi, rax
test rax, rax
je 0x1400048e7
lea rdx, str.InternetTimeFromSystemTime
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.HttpQueryInfoA
mov rcx, rsi
mov qword [rbx + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.InternetConnectA
mov rcx, rsi
mov qword [rbx + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.InternetCrackUrlA
mov rcx, rsi
mov qword [rbx + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.InternetReadFile
mov rcx, rsi
mov qword [rbx + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.HttpOpenRequestA
mov rcx, rsi
mov qword [rbx + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.InternetErrorDlg
mov rcx, rsi
mov qword [rbx + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.InternetSetCookieA
mov rcx, rsi
mov qword [rbx + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.HttpAddRequestHeadersA
mov rcx, rsi
mov qword [rbx + 0x68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.HttpSendRequestA
mov rcx, rsi
mov qword [rbx + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.InternetOpenA
mov rcx, rsi
mov qword [rbx + 0x78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.InternetCloseHandle
mov rcx, rsi
mov qword [rbx + 0x80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.InternetTimeToSystemTime
mov rcx, rsi
mov qword [rbx + 0x88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x90], rax
mov dword [rbx + 0x28], edi
cmp qword [rbx + 0x30], rbp
je 0x140004a6d
cmp qword [rbx + 0x38], rbp
je 0x140004a6d
cmp qword [rbx + 0x40], rbp
je 0x140004a6d
cmp qword [rbx + 0x48], rbp
je 0x140004a6d
cmp qword [rbx + 0x50], rbp
je 0x140004a6d
cmp qword [rbx + 0x58], rbp
je 0x140004a6d
cmp qword [rbx + 0x60], rbp
je 0x140004a6d
cmp qword [rbx + 0x68], rbp
je 0x140004a6d
cmp qword [rbx + 0x70], rbp
je 0x140004a6d
cmp qword [rbx + 0x78], rbp
je 0x140004a6d
cmp qword [rbx + 0x80], rbp
je 0x140004a6d
cmp qword [rbx + 0x88], rbp
je 0x140004a6d
cmp qword [rbx + 0x90], rbp
jne 0x140004a6f
mov edi, ebp
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret