joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007db30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov eax, dword [rcx + 0x208]
mov rbx, rcx
test eax, eax
jne 0x14007dca3
movups xmm0, xmmword [rcx + 0x260]
xor edi, edi
movsd xmm1, qword [rcx + 0x270]
movups xmmword [rcx + 0x278], xmm0
movsd qword [rcx + 0x288], xmm1
mov dword [rcx + 0x280], edi
mov rax, qword [rdx + 0x10]
test rax, rax
je 0x14007db96
mov ecx, dword [rdx + 8]
test ecx, ecx
jns 0x14007db8d
test rax, rax
je 0x14007db96
mov ecx, edi
cmp dword [rdx + 8], ecx
jl 0x14007db96
movsxd rdx, dword [rdx + 4]
add rdx, rax
jmp 0x14007db9b
mov rdx, rdi
mov ecx, edi
mov r10, qword [rbx + 0x288]
test r10, r10
je 0x14007dd06
movsxd r9, dword [rbx + 0x280]
test r9d, r9d
js 0x14007dd06
cmp ecx, 0xf4240
jae 0x14007dd06
movsxd r8, dword [rbx + 0x27c]
lea eax, [r8 + r9]
add eax, ecx
cmp eax, dword [rbx + 0x278]
jg 0x14007dd06
lea eax, [r9 + rcx]
add r8, r10
mov dword [rbx + 0x280], eax
mov rax, r9
add rax, r8
je 0x14007dd06
movsxd r8, ecx
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rbx + 0x228]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
je 0x14007dd1f
mov rax, qword [rbx + 0x288]
test rax, rax
je 0x14007dc4d
mov r8d, dword [rbx + 0x280]
test r8d, r8d
jns 0x14007dc41
test rax, rax
je 0x14007dc4d
mov r8d, edi
cmp dword [rbx + 0x280], edi
jl 0x14007dc4d
movsxd rdx, dword [rbx + 0x27c]
add rdx, rax
jmp 0x14007dc53
mov rdx, rdi
mov r8d, edi
mov rcx, qword [rbx + 0x178]
lea rax, [rbx + 0x210]
lea r9, [rbx + 0x230]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14007dcae
mov rcx, qword [rbx + 0x228]
mov eax, 2
mov dword [rbx + 0x208], eax
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x14007dd38
mov eax, dword [rbx + 0x208]
mov dword [rbx + 0x238], edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x3e5
jne 0x14007dcd9
mov eax, 1
mov dword [rbx + 0x238], edi
mov dword [rbx + 0x208], eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rbx + 0x228]
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x14007dd51
mov eax, 2
mov dword [rbx + 0x238], edi
mov dword [rbx + 0x208], eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
lea r8, str.buf_copy_tt__writes.buf__buf_
mov edx, 0xdb6
lea rcx, str.C:Users_vagrant_buildbotwindows_server_2019_static_msbuildopenvpn_srcopenvpn_tun.c
call fcn.14000ed60
int3
lea r8, str.ResetEvent_tt__writes.overlapped.hEvent_
mov edx, 0xdb9
lea rcx, str.C:Users_vagrant_buildbotwindows_server_2019_static_msbuildopenvpn_srcopenvpn_tun.c
call fcn.14000ed60
int3
lea r8, str.SetEvent_tt__writes.overlapped.hEvent_
mov edx, 0xdc8
lea rcx, str.C:Users_vagrant_buildbotwindows_server_2019_static_msbuildopenvpn_srcopenvpn_tun.c
call fcn.14000ed60
int3
lea r8, str.SetEvent_tt__writes.overlapped.hEvent_
mov edx, 0xddd
lea rcx, str.C:Users_vagrant_buildbotwindows_server_2019_static_msbuildopenvpn_srcopenvpn_tun.c
call fcn.14000ed60
int3
Function at 0x140085a90
Capabilities:
Initialize winsock library
Query or enumerate registry value

Disassembly:
sub rsp, 0x488
mov rax, qword [0x1400cb008]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov ecx, 0x101
lea rdx, [0x1400d3b60]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140085aea
mov ecx, 0x110
call fcn.14000ec70
test al, al
je 0x140085ade
lea rdx, str.WSAStartup_failed
mov ecx, 0x110
call fcn.14000e820
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
int3
mov qword [rsp + 0x490], rbx
lea rcx, [0x1400d3d40]
xor edx, edx
mov qword [rsp + 0x498], rsi
mov r8d, 0x101
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x208
movups xmmword [0x1400d3d20], xmm0
movups xmmword [0x1400d3d30], xmm0
call sub.VCRUNTIME140.dll_memset
lea r8, str.SOFTWAREOpenVPN
mov dword [rsp + 0x48], 0x104
mov edx, 0x100
lea rcx, [rsp + 0x260]
call fcn.140088310
lea rax, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x260]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor esi, esi
test eax, eax
jne 0x140085bbe
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea r9d, [rsi + 2]
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov rcx, qword [rsp + 0x40]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x140085bdb
lea r9, str.C:WindowsSystem32
mov edx, 0x104
lea r8, [0x1400bd410]
lea rcx, [rsp + 0x50]
call fcn.140088310
lea rcx, [rsp + 0x50]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rcx + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x140085bf0
cmp word [rsp + rax*2 + 0x4e], 0x5c
jne 0x140085c1c
lea rax, [rax*2 - 2]
cmp rax, 0x208
jae 0x140085cd9
mov word [rsp + rax + 0x50], si
mov qword [rsp + 0x480], rdi
mov rbx, rsi
lea rdi, str.OPENSSL_CONF
nop
mov r9, qword [rbx + rdi]
lea rcx, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x40], rsi
xor edx, edx
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wgetenv_s]
cmp qword [rsp + 0x40], rsi
jne 0x140085c9f
xor edx, edx
lea rcx, [rsp + 0x260]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rbx + rdi + 8]
lea r9, [rsp + 0x50]
lea r8, str._ls_ssl_ls
mov qword [rsp + 0x20], rax
mov edx, 0x104
lea rcx, [rsp + 0x260]
call fcn.140088310
mov rcx, qword [rbx + rdi]
lea rdx, [rsp + 0x260]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wputenv_s]
add rbx, 0x10
cmp rbx, 0x30
jb 0x140085c30
mov rdi, qword [rsp + 0x480]
mov rbx, qword [rsp + 0x490]
mov rsi, qword [rsp + 0x498]
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.14008aca0
add rsp, 0x488
ret
call fcn.14008add4
int3
Function at 0x140085ce0
Capabilities:
Set console window title

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1400cb008]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rcx, qword [0x1400d3e70]
test rcx, rcx
je 0x140085d2c
cmp byte [0x1400d3e68], 0
je 0x140085d1b
lea rcx, [0x1400d3e60]
call fcn.1400868c0
mov rcx, qword [0x1400d3e70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1400d3e70], 0
cmp byte [0x1400cb9f5], 0
je 0x140085e92
cmp dword [0x1400d3d20], 0
jne 0x140085e29
xor r9d, r9d
lea rcx, [rsp + 0x20]
xor r8d, r8d
lea edx, [r9 + 2]
call fcn.140086480
mov eax, dword [rsp + 0x20]
cmp eax, 2
jne 0x140085dc2
mov rax, qword [rsp + 0x28]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140085ddc
cmp dword [0x1400d3ed4], 1
jb 0x140085da0
mov ecx, 0x1001
call fcn.14000ec70
test al, al
je 0x140085da0
lea rdx, str.Press_any_key_to_continue...
mov ecx, 0x1001
call fcn.14000e820
nop dword [rax]
mov rcx, qword [rsp + 0x28]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rcx, [rsp + 0x20]
call fcn.1400866d0
test eax, eax
je 0x140085da0
mov eax, dword [rsp + 0x20]
cmp eax, 1
jne 0x140085ddc
mov rcx, qword [rsp + 0x28]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140085ddc
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [rsp + 0x3c], 0
je 0x140085e92
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
test eax, eax
jne 0x140085e92
mov ecx, 0x110
call fcn.14000ec70
test al, al
je 0x140085e1d
lea rdx, str.Error:_win32_signal_close:_SetConsoleMode_failed
mov ecx, 0x110
call fcn.14000e820
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
int3
cmp dword [0x1400d3d20], 2
jne 0x140085e92
mov rax, qword [0x1400d3d28]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140085e92
cmp dword [0x1400d3ed4], 1
jb 0x140085e70
mov ecx, 0x1001
call fcn.14000ec70
test al, al
je 0x140085e70
lea rdx, str.Press_any_key_to_continue...
mov ecx, 0x1001
call fcn.14000e820
nop word [rax + rax]
mov rcx, qword [0x1400d3d28]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rcx, [0x1400d3d20]
call fcn.1400866d0
test eax, eax
je 0x140085e70
cmp byte [0x1400d3d40], 0
je 0x140085ea8
lea rcx, [0x1400d3d41]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
cmp dword [0x1400d3d20], 1
jne 0x140085ec8
mov rcx, qword [0x1400d3d28]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140085ec8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x1400d3d3c], 0
je 0x140085f13
mov edx, dword [0x1400d3d38]
mov rcx, qword [0x1400d3d28]
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
test eax, eax
jne 0x140085f13
mov ecx, 0x110
call fcn.14000ec70
test al, al
je 0x140085f07
lea rdx, str.Error:_win32_signal_close:_SetConsoleMode_failed
mov ecx, 0x110
call fcn.14000e820
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
int3
xorps xmm0, xmm0
movups xmmword [0x1400d3d20], xmm0
movups xmmword [0x1400d3d30], xmm0
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rcx, qword [0x1400cfa28]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14008aca0
add rsp, 0x58
ret
Function at 0x140087660
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x1f0
mov rax, qword [0x1400cb008]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
xor ebp, ebp
mov rbx, rcx
test rcx, rcx
je 0x1400876d8
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp byte [rcx + rax], bpl
jne 0x1400876a0
inc eax
mov ecx, 1
movsxd rsi, eax
mov rdx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rdi, rax
test rax, rax
je 0x140087849
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
jmp 0x1400876db
mov rdi, rbp
xorps xmm0, xmm0
lea rcx, [rsp + 0xe0]
xor eax, eax
xor edx, edx
mov r8d, 0x100
mov qword [rsp + 0xd0], rax
movups xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x60], rax
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0xb0], xmm0
movups xmmword [rsp + 0xc0], xmm0
movups xmmword [rsp + 0x50], xmm0
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x100
lea rdx, [rsp + 0xe0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, 0xfffffeff
je 0x1400877f8
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x70], WSAGetLastError
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0xe0]
lea rax, [rsp + 0x70]
mov dword [rsp + 0xac], 1
mov qword [rsp + 0x40], rax
xor r9d, r9d
mov qword [rsp + 0x38], rbp
xor r8d, r8d
mov qword [rsp + 0x30], rbp
mov rdx, rdi
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], ebp
mov word [rsp + 0xb0], bp
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1400877d4
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140087817
mov ecx, 0x140
call fcn.14000ec70
test al, al
je 0x140087817
mov r8, rbx
lea rdx, str.fork_to_self:_CreateProcess_failed:__s
mov ecx, 0x140
call fcn.14000e820
jmp 0x140087817
mov ecx, 0x140
call fcn.14000ec70
test al, al
je 0x140087817
lea rdx, str.fork_to_self:_CreateProcess_failed:_cannot_get_module_name_via_GetModuleFileName
mov ecx, 0x140
call fcn.14000e820
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.14008aca0
lea r11, [rsp + 0x1f0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.14000ede0
int3
Function at 0x1400881e0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x1400cb008]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbp, qword [rsp + 0xa0]
xor esi, esi
mov r14, r9
mov qword [rsp + 0x38], rsi
mov ebx, esi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x30]
mov qword [rsp + 0x40], rbx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14008824f
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rsi
lea r8d, [rsi + 0x20]
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14008824f
mov al, 1
jmp 0x1400882f4
mov ecx, 0x40
call fcn.14000ec70
test al, al
je 0x1400882a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea rdx, [rsp + 0x38]
call fcn.14000f4a0
test rbp, rbp
mov dword [rsp + 0x20], ebx
lea r8, str.Unknown
mov r9, rax
cmovne r8, rbp
lea rdx, str._s:_could_not_talk_to_service:__s___lu_
mov ecx, 0x40
call fcn.14000e820
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
test rsi, rsi
je 0x1400882c4
nop dword [rax]
mov rdi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rsi, rdi
test rdi, rdi
jne 0x1400882b0
test rbx, rbx
je 0x1400882f2
nop dword [rax]
mov rcx, qword [rbx + 0x10]
mov rax, qword [rbx + 8]
mov rdi, qword [rbx]
call qword [0x14008d1f0]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, rdi
test rdi, rdi
jne 0x1400882d0
xor al, al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14008aca0
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140088390
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rbp, qword [0x1400d3a48]
xor edi, edi
mov ebx, eax
test rbp, rbp
je 0x1400883c5
cmp eax, dword [0x1400d3a44]
jae 0x1400883ee
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov eax, edx
sub rbp, rax
mov qword [0x1400d3a48], rbp
mov eax, 0x10624dd3
mov dword [0x1400d3a44], ebx
mul ebx
shr edx, 6
imul eax, edx, 0x3e8
lea rcx, [rdx + rbp]
mov rdx, qword [0x1400d1a38]
sub ebx, eax
cmp rcx, rdx
jne 0x14008849e
mov eax, dword [0x1400d3b54]
cmp ebx, eax
jae 0x14008842b
mov ebx, eax
mov edi, 1
mov dword [0x1400d1a38], ecx
mov dword [rsi], ecx
imul ecx, ebx, 0x3e8
mov dword [0x1400d3b54], ebx
mov dword [rsi + 4], ecx
test edi, edi
je 0x140088481
cmp dword [0x1400d3b58], 0
jne 0x140088481
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, eax
mov eax, 0x10624dd3
mul r8d
mov dword [0x1400d3a44], r8d
shr edx, 6
mov ecx, edx
sub rbx, rcx
mov qword [0x1400d3a48], rbx
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov dword [0x1400d3b58], edi
add rsp, 0x20
pop rdi
ret
jge 0x14008842b
lea rax, [rdx - 0xa]
cmp rcx, rax
jle 0x1400884b2
mov ebx, dword [0x1400d3b54]
mov rcx, rdx
imul eax, ebx, 0x3e8
mov edi, 1
mov dword [0x1400d1a38], ecx
mov dword [rsi], ecx
mov dword [0x1400d3b54], ebx
mov dword [rsi + 4], eax
jmp 0x140088446
Function at 0xaad2b0
Capabilities:
Terminate process

Disassembly:
wait
cmp byte [rbp + 0x54], bl
int3
cld
pop r11
jmp 0xaad2bd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0xaad2cd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0xaad2b5
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0xaad2e5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0xaad2d2
sub eax, 3
jb 0xaad2ff
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0xaad336
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0xaad326
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0xaad324
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0xaad313
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.00aad272
jmp 0xaad2bd
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x4f2200
mov dl, 0x5b
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0xaad386
cmp rsi, rcx
jae 0xaad38e
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0xaad36d
cmp al, 0x8f
ja 0xaad36d
cmp byte [rsi - 2], 0xf
je 0xaad373
sub al, 0xe8
cmp al, 1
ja 0xaad357
cmp rsi, rcx
jae 0xaad38e
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0xaad35d
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0xaad38e
lodsb al, byte [rsi]
jmp 0xaad36d
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x68c000]
mov eax, dword [rdi]
or eax, eax
je 0xaad3eb
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x6bb368]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0xaad39b
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0xaad3e5
mov qword [rbx], rax
add rbx, 8
jmp 0xaad3bb
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0xaad425
cmp al, 0xef
ja 0xaad417
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0xaad3f7
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0xaad406
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x22f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0xaad479
sub rsp, 0xffffffffffffff80
jmp 0x8e0e00
Function at 0x140001140
Capabilities:
Check if file exists
Check mutex on windows
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x480
mov rax, qword [0x140024078]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov edi, r8d
mov rsi, rdx
mov rbx, rcx
xor edx, edx
mov r8d, 0x20a
lea rcx, [rsp + 0x260]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x20a
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x38], 0x105
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x40]
xor ebp, ebp
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x260]
lea rax, [rsp + 0x48]
mov dword [rsp + 0x40], ebp
mov r8d, 0x105
mov qword [rsp + 0x20], rax
lea rcx, [0x14001ba68]
mov dword [rsp + 0x48], ebp
mov dword [rsp + 0x44], ebp
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x140001238
mov ecx, dword [rsp + 0x40]
lea r9, str.0123456789
mov r8d, ebp
nop
cmp r8d, 0x103
je 0x140001231
mov eax, 0xcccccccd
mul ecx
shr edx, 3
lea eax, [rdx + rdx*4]
add eax, eax
sub ecx, eax
mov eax, ecx
mov ecx, r8d
inc r8d
movzx eax, word [r9 + rax*2]
mov word [rbx + rcx*2], ax
mov ecx, edx
test edx, edx
jne 0x140001200
mov eax, r8d
mov word [rbx + rax*2], bp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x10
jge 0x1400012e4
lea r8, str.GlobalARM_Update_Mutex
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
test rax, rax
je 0x140001322
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x104
mov rax, rbx
cmp word [rax], bp
je 0x140001287
add rax, 2
sub rcx, 1
jne 0x140001278
mov eax, 0x104
sub rax, rcx
test rcx, rcx
cmove rax, rbp
je 0x1400012e4
mov r9d, 0x104
lea r8, [rbx + rax*2]
sub r9, rax
je 0x1400012d6
lea rdx, str.thsnYaVieBoda
mov eax, 0x7ffffffe
sub rdx, r8
test rax, rax
je 0x1400012d6
movzx ecx, word [rdx + r8]
test cx, cx
je 0x1400012d6
mov word [r8], cx
dec rax
add r8, 2
sub r9, 1
jne 0x1400012b6
test r9, r9
lea rax, [r8 - 2]
cmovne rax, r8
mov word [rax], bp
test rsi, rsi
je 0x1400012f9
mov r8, rsi
mov edx, 0x104
mov rcx, rbx
call fcn.1400016b0
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140017790
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140001270
test edi, edi
jne 0x140001270
mov ecx, 0x104
mov rax, rbx
cmp word [rax], bp
je 0x140001350
add rax, 2
sub rcx, 1
jne 0x140001341
mov eax, 0x104
sub rax, rcx
test rcx, rcx
cmove rax, rbp
je 0x1400012e4
mov edx, 0x104
lea rcx, [rbx + rax*2]
sub rdx, rax
je 0x1400013a1
lea r9, str.TsnIorcAeBoda
mov eax, 0x7ffffffe
sub r9, rcx
nop
test rax, rax
je 0x1400013a1
movzx r8d, word [r9 + rcx]
test r8w, r8w
je 0x1400013a1
mov word [rcx], r8w
dec rax
add rcx, 2
sub rdx, 1
jne 0x140001380
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
jmp 0x1400012e1
Function at 0x1400013c0
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov edi, ecx
lea r8, str.GlobalARM_Update_Mutex
mov ecx, 0x100000
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
test rax, rax
je 0x1400013f0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000142a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14000142a
lea r8, str.GlobalAcro_Update_Mutex
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
test rax, rax
je 0x14000141f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000142a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140001469
lea rdx, [0x14001d840]
mov ecx, 0x208
call fcn.1400176f0
mov rbx, rax
test rax, rax
je 0x140001469
xor edx, edx
mov r8d, 0x208
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov rcx, rbx
call fcn.140001060
test eax, eax
je 0x140001476
mov rcx, rbx
call fcn.1400176e8
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rsi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, 0x3e8
jae 0x14000148d
add eax, 0x3e8
mov r8d, 1
mov edx, eax
mov rcx, rbx
call fcn.140001500
xor esi, esi
test eax, eax
sete sil
test eax, eax
jne 0x1400014d7
cmp edi, 2
je 0x1400014d7
lea ecx, [rax + 0x64]
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 1
jne 0x1400014c3
mov edx, 0xce
jmp 0x1400014cc
test edi, edi
jne 0x1400014d7
mov edx, 0xcc
xor r8d, r8d
mov rcx, rbx
call fcn.140001500
mov rcx, rbx
call fcn.1400176e8
mov rbx, qword [rsp + 0x38]
mov eax, esi
mov rsi, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret