joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000f0f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
sub rsp, 0x3c0
lea rbp, [rsp + 0x40]
mov rax, qword [0x180027430]
xor rax, rbp
mov qword [rbp + 0x370], rax
mov rbx, rcx
mov esi, r8d
mov rdi, rdx
lea rcx, [rbp + 0x151]
xor edx, edx
mov r8d, 0x103
mov r14d, r9d
mov dword [rbp + 0x2b], 0x52415754
mov word [rbp + 0x29], 0x464f
mov word [rbp + 0x30], 0x5c
mov byte [rbp + 0x2f], 0x45
mov byte [rbp + 0x28], 0x53
mov dword [rbp + 0x14], 0x73257325
mov byte [rbp + 0x18], 0
mov byte [rbp + 0x150], 0
call fcn.180010f20
mov eax, dword [rsp]
sub rsp, 0x20
lea rcx, [rsp + 0x40]
mov eax, dword [rcx]
mov r9d, 3
lea r8d, [r9 + 0x15]
call fcn.18000ee90
lea r9, [rbp + 0x14]
lea rcx, [rbp + 0x150]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x28]
or r8, 0xffffffffffffffff
mov edx, 0x104
mov qword [rsp + 0x20], rax
call fcn.180011ba0
lea rax, [rbp + 8]
lea rdx, [rbp + 0x150]
mov qword [rsp + 0x20], rax
call fcn.18000eb40
test eax, eax
jne 0x18000f282
lea rcx, [rbp + 0x261]
xor edx, edx
mov r8d, 0x103
mov byte [rbp + 0x260], al
call fcn.180010f20
mov rcx, qword [rbp + 8]
lea rax, [rbp + 0x10]
lea rdx, [rbp + 0x1c]
mov word [rbp + 0x1f], 0x736c
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x260]
mov word [rbp + 0x1c], 0x7668
mov byte [rbp + 0x21], 0
mov byte [rbp + 0x1e], 0x61
mov qword [rsp + 0x20], rax
call fcn.18000ea70
test eax, eax
jne 0x18000f279
cmp dword [rbp + 0x10], eax
jbe 0x18000f279
lea rcx, [rbp + 0x41]
xor edx, edx
mov r8d, 0x103
mov byte [rbp + 0x40], al
call fcn.180010f20
lea r9, [rbp]
lea rcx, [rbp + 0x40]
or r8, 0xffffffffffffffff
mov edx, 0x104
mov word [rbp + 1], 0x64
mov byte [rbp], 0x25
mov qword [rsp + 0x20], rbx
call fcn.180011ba0
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0x260]
call fcn.18000ee00
test rax, rax
je 0x18000f279
mov rcx, qword [rbp + 8]
call fcn.18000ec10
mov eax, 1
jmp 0x18000f2b2
mov rcx, qword [rbp + 8]
call fcn.18000ec10
mov eax, dword [rbp + 0x3e0]
mov r9d, r14d
mov r8d, esi
mov dword [rsp + 0x30], eax
mov eax, dword [rbp + 0x3d8]
mov rdx, rdi
mov dword [rsp + 0x28], eax
mov eax, dword [rbp + 0x3d0]
mov rcx, rbx
mov dword [rsp + 0x20], eax
call qword [0x180054c78]
mov rcx, qword [rbp + 0x370]
xor rcx, rbp
call fcn.180010580
lea rsp, [rbp + 0x380]
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x18000f2d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
sub rsp, 0x3b0
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x398], rbx
mov rax, qword [0x180027430]
xor rax, rbp
mov qword [rbp + 0x370], rax
mov rbx, rcx
lea rcx, [rbp + 0x151]
xor edx, edx
mov r8d, 0x103
mov dword [rbp + 0x29], 0x5754464f
mov byte [rbp + 0x28], 0x53
mov word [rbp + 0x30], 0x5c
mov word [rbp + 0x2d], 0x5241
mov byte [rbp + 0x2f], 0x45
mov dword [rbp + 0x15], 0x732573
mov byte [rbp + 0x14], 0x25
mov byte [rbp + 0x150], 0
call fcn.180010f20
mov eax, dword [rsp]
sub rsp, 0x20
lea rcx, [rsp + 0x30]
mov eax, dword [rcx]
mov r9d, 3
lea r8d, [r9 + 0x15]
call fcn.18000ee90
lea r9, [rbp + 0x14]
lea rcx, [rbp + 0x150]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x28]
or r8, 0xffffffffffffffff
mov edx, 0x104
mov qword [rsp + 0x20], rax
call fcn.180011ba0
lea rax, [rbp + 8]
lea rdx, [rbp + 0x150]
mov qword [rsp + 0x20], rax
call fcn.18000eb40
test eax, eax
jne 0x18000f45b
lea rcx, [rbp + 0x261]
xor edx, edx
mov r8d, 0x103
mov byte [rbp + 0x260], al
call fcn.180010f20
mov rcx, qword [rbp + 8]
lea rax, [rbp + 0x10]
lea rdx, [rbp + 0x1c]
mov word [rbp + 0x1f], 0x736c
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x260]
mov byte [rbp + 0x21], 0
mov word [rbp + 0x1c], 0x7668
mov byte [rbp + 0x1e], 0x61
mov qword [rsp + 0x20], rax
call fcn.18000ea70
test eax, eax
jne 0x18000f452
cmp dword [rbp + 0x10], eax
jbe 0x18000f452
lea rcx, [rbp + 0x41]
xor edx, edx
mov r8d, 0x103
mov byte [rbp + 0x40], al
call fcn.180010f20
lea r9, [rbp]
lea rcx, [rbp + 0x40]
or r8, 0xffffffffffffffff
mov edx, 0x104
mov word [rbp], 0x6425
mov byte [rbp + 2], 0
mov qword [rsp + 0x20], rbx
call fcn.180011ba0
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0x260]
call fcn.18000ee00
test rax, rax
je 0x18000f452
mov rcx, qword [rbp + 8]
call fcn.18000ec10
mov eax, 1
jmp 0x18000f464
mov rcx, qword [rbp + 8]
call fcn.18000ec10
mov rcx, rbx
call qword [0x180054c50]
mov rcx, qword [rbp + 0x370]
xor rcx, rbp
call fcn.180010580
mov rbx, qword [rbp + 0x398]
lea rsp, [rbp + 0x380]
pop rbp
ret
Function at 0x18000f490
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
sub rsp, 0x3b0
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x398], rbx
mov rax, qword [0x180027430]
xor rax, rbp
mov qword [rbp + 0x370], rax
mov rbx, rcx
lea rcx, [rbp + 0x151]
xor edx, edx
mov r8d, 0x103
mov word [rbp + 0x2e], 0x4552
mov word [rbp + 0x2b], 0x5754
mov word [rbp + 0x28], 0x4f53
mov byte [rbp + 0x2a], 0x46
mov word [rbp + 0x30], 0x5c
mov byte [rbp + 0x2d], 0x41
mov word [rbp + 0x14], 0x7325
mov word [rbp + 0x17], 0x73
mov byte [rbp + 0x16], 0x25
mov byte [rbp + 0x150], 0
call fcn.180010f20
mov eax, dword [rsp]
sub rsp, 0x20
lea rcx, [rsp + 0x30]
mov eax, dword [rcx]
mov r9d, 3
lea r8d, [r9 + 0x15]
call fcn.18000ee90
lea r9, [rbp + 0x14]
lea rcx, [rbp + 0x150]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x28]
or r8, 0xffffffffffffffff
mov edx, 0x104
mov qword [rsp + 0x20], rax
call fcn.180011ba0
lea rax, [rbp + 8]
lea rdx, [rbp + 0x150]
mov qword [rsp + 0x20], rax
call fcn.18000eb40
test eax, eax
jne 0x18000f61c
lea rcx, [rbp + 0x261]
xor edx, edx
mov r8d, 0x103
mov byte [rbp + 0x260], al
call fcn.180010f20
mov rcx, qword [rbp + 8]
lea rax, [rbp + 0x10]
lea rdx, [rbp + 0x1c]
mov dword [rbp + 0x1e], 0x736c61
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x260]
mov word [rbp + 0x1c], 0x7668
mov qword [rsp + 0x20], rax
call fcn.18000ea70
test eax, eax
jne 0x18000f613
cmp dword [rbp + 0x10], eax
jbe 0x18000f613
lea rcx, [rbp + 0x41]
xor edx, edx
mov r8d, 0x103
mov byte [rbp + 0x40], al
call fcn.180010f20
lea r9, [rbp]
lea rcx, [rbp + 0x40]
or r8, 0xffffffffffffffff
mov edx, 0x104
mov word [rbp], 0x6425
mov byte [rbp + 2], 0
mov qword [rsp + 0x20], rbx
call fcn.180011ba0
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0x260]
call fcn.18000ee00
test rax, rax
je 0x18000f613
mov rcx, qword [rbp + 8]
call fcn.18000ec10
mov rax, rbx
jmp 0x18000f625
mov rcx, qword [rbp + 8]
call fcn.18000ec10
mov rcx, rbx
call qword [0x180054ce0]
mov rcx, qword [rbp + 0x370]
xor rcx, rbp
call fcn.180010580
mov rbx, qword [rbp + 0x398]
lea rsp, [rbp + 0x380]
pop rbp
ret
Function at 0x18000f800
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub rsp, 0x158
mov rax, qword [0x180027430]
xor rax, rsp
mov qword [rsp + 0x140], rax
cmp edx, 1
jne 0x18000f8c7
lea rdx, [rsp + 0x30]
call fcn.18000e730
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x26], 0x75732074
mov dword [rsp + 0x2c], 0x74726f
mov dword [rsp + 0x21], 0x6174736e
mov word [rsp + 0x2a], 0x7070
mov byte [rsp + 0x20], 0x69
mov byte [rsp + 0x25], 0x6e
call fcn.18000ee00
test rax, rax
jne 0x18000f8fb
lea rdx, [sym.gphelper.dll_HookSetWindowPos]
lea rcx, [0x180054c78]
call fcn.1800101f0
test eax, eax
je 0x18000f8fb
lea rdx, [sym.gphelper.dll_HookSetForegroundWindow]
lea rcx, [0x180054c50]
call fcn.1800101f0
test eax, eax
je 0x18000f8fb
lea rdx, [sym.gphelper.dll_HookSetActiveWindow]
lea rcx, [0x180054ce0]
call fcn.1800101f0
test eax, eax
je 0x18000f8fb
lea rdx, [sym.gphelper.dll_HookBringWindowToTop]
lea rcx, [0x180054cb0]
call fcn.1800101f0
jmp 0x18000f8fb
test edx, edx
jne 0x18000f8fb
lea rcx, [0x180054c78]
call fcn.180010470
lea rcx, [0x180054c50]
call fcn.180010470
lea rcx, [0x180054ce0]
call fcn.180010470
lea rcx, [0x180054cb0]
call fcn.180010470
mov eax, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180010580
add rsp, 0x158
ret

Function at 0x18000f920
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x180027430]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov r14, r9
mov rbp, r8
mov esi, edx
xor ebx, ebx
call fcn.18000ecb0
mov rdi, rax
test rax, rax
je 0x18000ed8e
lea rdx, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x23], 0x78654e6c
mov word [rsp + 0x29], 0x6f6f
mov word [rsp + 0x21], 0x6c61
mov word [rsp + 0x2c], 0x7845
mov word [rsp + 0x27], 0x4874
mov byte [rsp + 0x2e], bl
mov byte [rsp + 0x20], 0x43
mov byte [rsp + 0x2b], 0x6b
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18000ed85
mov r9, r14
mov r8, rbp
mov edx, esi
xor ecx, ecx
call rax
mov rbx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, rbx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180010580
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov r9, r8
mov r8, rdx
mov edx, ecx
jmp 0x18000ed00
Function at 0x18000fa30
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x80
xor edi, edi
cmp dword [0x180054c10], 0x40
mov esi, edi
jae 0x18000fb79
mov qword [rax + 8], rbx
lea rbx, [rcx + rdx]
mov qword [rax + 0x10], rbp
mov eax, 0x80000000
cmp rbx, rax
jae 0x18000fa6b
lea ebx, [rdi + 1]
jmp 0x18000fa72
sub rbx, 0x7fff0000
lea rbp, [rcx + r8]
cmp rbp, 0xffffffff80000000
jae 0x18000fa88
add rbp, 0x7ff80000
jmp 0x18000fa8f
mov rbp, 0xfffffffffff80000
xor edx, edx
lea rcx, [rsp + 0x54]
mov dword [rsp + 0x50], edi
lea r8d, [rdx + 0x2c]
call fcn.180010f20
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp rbx, rbp
jae 0x18000fb47
nop word [rax + rax]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18000fb27
cmp dword [rsp + 0x40], 0x10000
jne 0x18000fb15
mov rax, qword [rsp + 0x38]
cmp rax, 0x78
jb 0x18000fb1a
mov edx, dword [rsp + 0x78]
mov ecx, edx
cmp rax, rdx
jb 0x18000fb1a
lea eax, [rdx - 1]
xor edx, edx
add rax, rbx
div rcx
imul rcx, rax
call fcn.18000e850
mov rsi, rax
test rax, rax
jne 0x18000fb2c
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x20]
add rbx, rax
cmp rbx, rbp
jb 0x18000fac0
test rsi, rsi
je 0x18000fb47
lea rcx, [0x180054d20]
mov rax, rcx
cmp qword [rax], 0
je 0x18000fb6b
inc edi
add rax, 8
cmp edi, 0x40
jb 0x18000fb36
mov rbx, qword [rsp + 0x90]
mov rbp, qword [rsp + 0x98]
mov rax, rsi
mov rsi, qword [rsp + 0xa0]
add rsp, 0x80
pop rdi
ret
inc dword [0x180054c10]
mov eax, edi
mov qword [rcx + rax*8], rsi
jmp 0x18000fb47
mov rax, rdi
mov rsi, qword [rsp + 0xa0]
add rsp, 0x80
pop rdi
ret
Function at 0x18000fc20
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x500
mov rax, qword [0x180027430]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
mov ebp, r8d
mov rsi, rdx
mov r8d, ecx
mov ecx, 0x1fffff
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x18000fcf8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rcx, rbx
cmp eax, 0xffffffff
je 0x18000fd2a
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x518], rdi
mov dword [rsp + 0x50], 0x100001
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x18000fced
mov rcx, qword [rsp + 0x118]
cmp rcx, rsi
jb 0x18000fced
lea rax, [rsi + rbp]
cmp rcx, rax
jae 0x18000fced
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp edi, 3
jge 0x18000fd1d
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SuspendThread]
lea rdx, [rsp + 0x20]
mov rcx, rbx
inc edi
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x18000fca1
mov rax, rbx
mov rdi, qword [rsp + 0x518]
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.180010580
lea r11, [rsp + 0x500]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rsi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x18000fcf0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x18000fcf8

Function at 0x18000fd40
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
call fcn.18000e7d0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov esi, eax
call fcn.18000e7d0
mov edx, 0xf
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor edi, edi
cmp dword [0x180054c20], edi
jbe 0x18000fdb9
mov qword [rsp + 0x30], rbx
nop dword [rax]
mov rcx, qword [0x180054c18]
lea rbx, [rdi*8]
mov rcx, qword [rbx + rcx]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [0x180054c18]
mov rcx, qword [rbx + rcx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [0x180054c20]
jb case.default.0x18000fdee
mov rbx, qword [rsp + 0x30]
mov rcx, qword [0x180054c18]
call fcn.180011bc4
mov qword [0x180054c18], 0
mov dword [0x180054c20], 0
call fcn.18000e7d0
mov edx, esi
mov rcx, rax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_SetThreadPriority]
Function at 0x140004460
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140004482
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x1400044fc
mov rdi, r14
mov rcx, rbx
call fcn.140005d00
test rax, rax
jle 0x1400044d4
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.14000a2e0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1400044ec
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x1400044f4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140004496
sub r14, rdi
jmp 0x1400045df
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140004513
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140004515
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140004547
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.14000a2e0
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1400045dc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140004582
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x1400045bd
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14001046c
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x1400045dc
cmp rbp, rax
ja 0x140004590
test rbp, rbp
je 0x1400045dc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14001046c
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret

Function at 0x1400091b0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400091fa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400091fa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400091fa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400091fa
cmp dword [rcx + 0x84], 0xe
jbe 0x1400091fa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400091fc
xor al, al
add rsp, 0x28
ret

Function at 0x140012d60
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140012b5c
Function at 0x14001585c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140015872
mov al, 1
jmp 0x1400158d2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140015883
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400158d0
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001ea3c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400158d0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400158d0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400158d0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400158d2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140018170
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140018190
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140011b90
or eax, 0xffffffff
jmp 0x140018192
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400195e8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140008a90
sub rsp, rax
mov rax, qword [0x140037080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001573c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140019637
mov rax, rbp
jmp 0x14001973f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x39310]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001a534
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x39310]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001973b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001973b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001a534
test rax, rax
js 0x14001973b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001973b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001972d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001972d
cmp byte [rcx], 0xd
jne 0x140019713
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140019722
cmp byte [rcx + 1], 0xa
jne 0x140019722
inc rcx
jmp 0x140019722
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x37470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400196f5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001973f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140008430
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400198d4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140039310]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14001992b
cmp word [rdx], r13w
jne 0x14001992b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140019930
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140019a55
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140019a76
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140019969
mov rdx, r9
mov word [rbx], cx
jmp 0x140019990
cmp r9, r8
jae 0x1400199a0
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14001994a
jmp 0x140019a55
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140019a4a
cmp dword [rsp + 0x80], esi
je 0x140019a4a
lea r8, [0x140039310]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140019a22
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400199f2
mov word [rbx], r13w
jmp 0x140019a52
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400199ff
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140019a52
cmp word [rsp + 0x70], r13w
jne 0x140019a2f
cmp rbx, r14
je 0x1400199ec
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001a53c
cmp word [rsp + 0x70], r13w
je 0x140019a55
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140039310]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140019a4f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140019a55
Function at 0x14001dfd4
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 0x14001e004
xor eax, eax
jmp 0x14001e0c7
mov rbp, rbx
cmp word [rax], si
je 0x14001e029
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001e010
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001e00c
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.14001c5d4
movsxd r14, eax
test eax, eax
jne 0x14001e067
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001dffd
mov rcx, r14
call fcn.14001755c
mov rdi, rax
test rax, rax
jne 0x14001e080
xor ecx, ecx
call fcn.1400170d8
jmp 0x14001e05c
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.14001c5d4
test eax, eax
jne 0x14001e0b1
mov rcx, rdi
call fcn.1400170d8
jmp 0x14001e0bb
xor ecx, ecx
call fcn.1400170d8
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 0x140020f90
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.140015d1c
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 0x140021031
cmp ebx, dword [rsp + 0x30]
je 0x14002102a
test esi, esi
je 0x14002102a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140021005
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140021012
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140020fef
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140021016
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140021033
mov eax, 1
jmp 0x140021033
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret