joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000c5f0
Capabilities:
Copy file

Disassembly:
push rsi
sub rsp, 0x660
mov rax, qword [0x14004c030]
xor rax, rsp
mov qword [rsp + 0x658], rax
mov eax, dword [0x14004fe88]
mov ecx, dword [0x14004cde8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000c7d5
mov rcx, qword [0x14004fc78]
test rcx, rcx
je 0x14000c64b
call fcn.14002215c
mov qword [0x14004fc78], 0
cmp byte [0x14004ea39], 1
jne 0x14000c6f3
lea rsi, [rsp + 0x230]
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call fcn.140016ea0
mov rcx, rsi
call fcn.140013590
test eax, eax
je 0x14000c6a7
lea rsi, [rsp + 0x440]
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call fcn.140016ea0
lea rcx, [0x1400437c8]
mov rdx, rsi
call fcn.140013690
test eax, eax
jne 0x14000c70d
lea rsi, [rsp + 0x20]
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call fcn.140016ea0
mov rcx, rsi
call fcn.140013590
test eax, eax
je 0x14000c6f3
lea rsi, [rsp + 0x440]
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call fcn.140016ea0
lea rcx, [0x140043d68]
mov rdx, rsi
call fcn.140013690
test eax, eax
jne 0x14000c772
mov rcx, qword [rsp + 0x658]
xor rcx, rsp
call fcn.140027fe0
nop
add rsp, 0x660
pop rsi
ret
lea rcx, [rsp + 0x230]
lea rdx, [rsp + 0x440]
call fcn.140037410
test eax, eax
je 0x14000c6a7
lea rsi, [rsp + 0x440]
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call fcn.140016ea0
lea r8, str._supdate.status
lea r9, [0x14004e200]
mov edx, 0x105
mov rcx, rsi
call fcn.140006260
lea rcx, [rsp + 0x230]
mov rdx, rsi
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x14000c6a7
lea rcx, [rsp + 0x20]
lea rdx, [rsp + 0x440]
call fcn.140037410
test eax, eax
je 0x14000c6f3
lea rsi, [rsp + 0x440]
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call fcn.140016ea0
lea r8, str._supdate_elevated.log
lea r9, [0x14004e200]
mov edx, 0x105
mov rcx, rsi
call fcn.140006260
lea rcx, [rsp + 0x20]
mov rdx, rsi
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x14000c6f3
lea rcx, [0x14004fe88]
call fcn.140015430
cmp dword [0x14004fe88], 0xffffffff
jne 0x14000c62f
mov qword [0x14004fc78], 0
lea rcx, [0x1400086f0]
call fcn.1400155c8
lea rcx, [0x14004fe88]
call fcn.140015498
jmp 0x14000c62f
Function at 0x14000c820
Capabilities:
Check for time delay via gettickcount

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov ebx, r9d
mov rsi, r8
mov edi, edx
mov r14, rcx
mov rax, qword [0x14004c030]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rcx, str.MOZ_LAUNCHED_CHILD1
call fcn.14001fbd0
mov rcx, r14
call fcn.1400203e4
test eax, eax
je 0x14000c893
mov eax, dword [0x14004fe88]
mov ecx, dword [0x14004cde8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000c945
lea rdx, str.Warning:_chdir_failed
call fcn.140013970
test bl, bl
je 0x14000c8b6
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140027fe0
nop
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rsi]
lea r9, [rsp + 0x28]
mov edx, edi
mov r8, rsi
call fcn.140036fc0
test eax, eax
je 0x14000c897
mov rsi, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov r14, qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r15, qword [sym.imp.KERNEL32.dll_SetLastError]
mov r12, qword [sym.imp.USER32.dll_WaitForInputIdle]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
call r14
mov ebx, eax
sub ebx, edi
cmp ebx, 0x270f
ja 0x14000c935
xor ecx, ecx
call r15
mov edx, 0x2710
sub edx, ebx
mov rcx, rsi
call r12
cmp eax, 0xffffffff
jne 0x14000c935
call r13
cmp eax, 0x5bf
jne 0x14000c935
mov ecx, 0xa
call rbp
jmp 0x14000c8fc
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000c897
lea rcx, [0x14004fe88]
call fcn.140015430
cmp dword [0x14004fe88], 0xffffffff
jne 0x14000c887
mov qword [0x14004fc78], 0
lea rcx, [0x1400086f0]
call fcn.1400155c8
lea rcx, [0x14004fe88]
call fcn.140015498
jmp 0x14000c887
Function at 0x140010cc0
Capabilities:
Hash data via wincrypt
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov r12, qword [rsp + 0x90]
movq xmm0, rcx
movq xmm1, rdx
punpcklqdq xmm1, xmm0
movq xmm0, r12
movq xmm2, r8
punpcklqdq xmm2, xmm0
pxor xmm0, xmm0
pcmpeqd xmm2, xmm0
pshufd xmm3, xmm2, 0xb1
pand xmm3, xmm2
pcmpeqd xmm1, xmm0
pshufd xmm0, xmm1, 0xb1
pand xmm0, xmm1
packssdw xmm0, xmm3
movmskps eax, xmm0
test eax, eax
jne 0x140010d94
mov rbx, qword [rsp + 0xa0]
test rbx, rbx
je 0x140010d94
mov esi, r9d
mov r15d, r9d
mov rax, qword [rcx + 8]
sub rax, r15
jb 0x140010dce
mov r14, rdx
mov rdx, qword [rdx]
cmp rdx, rax
ja 0x140010dce
mov rdi, r8
mov ebp, dword [rsp + 0x98]
add rdx, qword [rcx]
mov rcx, r8
mov r8, r15
call fcn.140028030
add qword [r14], r15
mov r14d, ebp
xor r15d, r15d
mov r13, qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [r12 + r15*8]
mov rdx, rdi
mov r8d, esi
xor r9d, r9d
call r13
test eax, eax
je 0x140010de1
inc r15
cmp r14, r15
jne 0x140010d74
xor eax, eax
jmp 0x140010dbd
mov ecx, 2
call fcn.1400176b8
lea rcx, str.ERROR:_Invalid_parameter_specified._n
mov edx, 0x24
mov r8d, 1
mov r9, rax
call fcn.140022ae0
mov eax, 0xffffffff
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 2
call fcn.1400176b8
lea rdx, str.ERROR:_Could_not_read__s_n
jmp 0x140010df2
mov ecx, 2
call fcn.1400176b8
lea rdx, str.ERROR:_Could_not_update_verify_context_for__s_n
mov rcx, rax
mov r8, rbx
call fcn.140037220
jmp 0x140010db8
Function at 0x140013590
Capabilities:
Create directory
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rdi, rcx
mov rax, qword [0x14004c030]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rcx, [0x140039010]
xor esi, esi
lea r9, [rsp + 0x20]
mov edx, 0x8000
xor r8d, r8d
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x1400135e6
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call fcn.140023f00
cmp rax, 0x105
jb 0x1400135fd
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140027fe0
mov eax, esi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov r8d, 0x105
mov rcx, rdi
mov rdx, rbx
call fcn.1400243c8
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rdx, str.Mozilla_Maintenance_Service
mov rcx, rdi
call fcn.140037410
test eax, eax
je 0x1400135e6
xor esi, esi
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14001364a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400135e6
lea rdx, str.UpdateLogs
mov rcx, rdi
call fcn.140037410
test eax, eax
je 0x1400135e6
xor esi, esi
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14001367f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400135e6
mov esi, 1
jmp 0x1400135e6
Function at 0x140013a90
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov qword [rsp + 0x70], r8
mov qword [rsp + 0x78], r9
mov rax, qword [0x14004c030]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [0x14004fc78], 0
je 0x140013b2a
mov rsi, rdx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov r9, qword [0x14004fc78]
lea rcx, str._Warning:
mov edx, ntohl
mov r8d, 1
call fcn.140022ae0
mov rbx, qword [rsp + 0x30]
mov rdi, qword [0x14004fc78]
call fcn.140001000
mov rcx, qword [rax]
mov qword [rsp + 0x20], rbx
mov rdx, rdi
mov r8, rsi
xor r9d, r9d
call fcn.140017a74
mov r9, qword [0x14004fc78]
lea rcx, str._n
mov edx, 4
mov r8d, 1
call fcn.140022ae0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140027fe0
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
Function at 0x140015080
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rsi, rcx
mov rax, qword [0x14004c030]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea rdi, [0x14004ea40]
mov rcx, rdi
call fcn.140023f00
test rax, rax
je 0x1400152ba
mov rbx, rax
movzx eax, word [rdi + rax*2 - 2]
cmp eax, 0x5c
je 0x1400152b2
cmp eax, 0x2f
je 0x1400152b2
mov rax, rbx
add rax, 2
lea r14, [rbx + rbx + 4]
mov rcx, 0xffffffffffffffff
cmovns rcx, r14
call fcn.1400152f8
mov rdi, rax
xor r15d, r15d
mov rcx, rax
xor edx, edx
mov r8, r14
call fcn.140016ea0
lea r8, [rbx + 1]
lea rdx, [0x14004ea40]
mov rcx, rdi
call fcn.1400243c8
mov rcx, rdi
call fcn.14002084c
mov dword [rsp + 0x28], 0
lea rcx, [rsp + 0x38]
mov qword [rcx], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x20], 0xf0000000
xor edx, edx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1400152be
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov edx, 0x8003
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1400152f1
add ebx, ebx
mov rcx, qword [rsp + 0x30]
mov rdx, rdi
mov r8d, ebx
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1400152f1
lea r9, [rsp + 0x2c]
mov dword [r9], 4
mov rcx, qword [rsp + 0x30]
mov dword [rsp + 0x20], 0
lea r8, [rsp + 0x28]
mov edx, 4
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1400152f1
lea r14, [rsp + 0x28]
mov r15d, dword [r14]
mov rcx, r15
call fcn.1400152f8
mov rbx, rax
mov rcx, rax
xor edx, edx
mov r8, r15
call fcn.140016ea0
mov rcx, qword [rsp + 0x30]
mov dword [rsp + 0x20], 0
mov edx, 2
mov r8, rbx
mov r9, r14
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1400152f1
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14001521d
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14001522f
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, rdi
call fcn.14001534c
lea rdx, [0x140043ffc]
mov r8d, 0x104
mov rcx, rsi
call fcn.1400243c8
mov ebp, 1
cmp dword [rsp + 0x28], 0
je 0x14001528b
add rsi, 0x48
xor r14d, r14d
lea rdi, str._.2x
mov r15, qword [sym.imp.USER32.dll_wsprintfW]
movzx r8d, byte [rbx + r14]
mov rcx, rsi
mov rdx, rdi
call r15
add rsi, 4
inc r14
mov eax, dword [rsp + 0x28]
cmp r14, rax
jb 0x14001526d
mov rdi, rbx
mov rcx, rdi
call fcn.14001534c
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140027fe0
mov eax, ebp
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
dec rbx
jmp 0x1400150d0
xor ebp, ebp
jmp 0x140015296
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x1400152f1
mov dword [rsp + 0x20], 0xf0000008
lea rcx, [rsp + 0x38]
xor edx, edx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x140015150
xor ebp, ebp
jmp 0x14001528e
Function at 0x140036fc0
Capabilities:
Create process on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x118
mov rdi, r9
mov rbx, rcx
mov rax, qword [0x14004c030]
xor rax, rsp
mov qword [rsp + 0x110], rax
lea rsi, [rsp + 0x78]
mov rcx, rsi
call fcn.140005e90
mov rsi, qword [rsi]
test rsi, rsi
je 0x14003713f
lea r14, [rsp + 0x60]
mov dword [r14], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor r12d, r12d
mov rcx, rax
xor edx, edx
mov r8, r14
call qword [sym.imp.KERNEL32.dll_IsProcessInJob]
test eax, eax
je 0x140037085
cmp dword [rsp + 0x60], 0
je 0x140037085
xor r12d, r12d
lea r15, [rsp + 0x80]
mov r8d, 0x90
mov rcx, r15
xor edx, edx
call fcn.140016ea0
mov qword [rsp + 0x20], 0
xor ecx, ecx
mov edx, 9
mov r8, r15
mov r9d, 0x90
call qword [sym.imp.KERNEL32.dll_QueryInformationJobObject]
test eax, eax
je 0x140037085
mov eax, dword [rsp + 0x90]
bt eax, 0xd
jae 0x140037085
shl eax, 0xd
and eax, 0x1000000
mov r12d, eax
xorps xmm0, xmm0
lea rax, [rsp + 0x80]
movaps xmmword [rax], xmm0
movaps xmmword [rax + 0x10], xmm0
movaps xmmword [rax + 0x50], xmm0
movaps xmmword [rax + 0x40], xmm0
movaps xmmword [rax + 0x30], xmm0
movaps xmmword [rax + 0x20], xmm0
xor ecx, ecx
mov qword [rax + 0x60], rcx
mov dword [rax], 0x68
lea rdx, str.winsta0Default
mov qword [rax + 0x10], rdx
mov qword [rsp + 0x70], rcx
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], rax
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 0
mov rcx, rbx
mov rdx, rsi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
test eax, eax
je 0x14003714b
mov rcx, qword [rsp + 0x60]
test rdi, rdi
je 0x140037143
mov qword [rdi], rcx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call fcn.14001534c
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.140027fe0
mov eax, ebx
add rsp, 0x118
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor ebx, ebx
jmp 0x14003711c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140037109
xor edi, edi
lea r14, [rsp + 0x58]
mov qword [r14], rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x28], 0
mov ecx, 0x1300
xor edx, edx
mov r8d, eax
mov r9d, 0x400
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov rax, qword [r14]
test rax, rax
lea rdx, [0x140044140]
cmovne rdx, rax
call fcn.1400371b0
mov rcx, qword [r14]
test rcx, rcx
je 0x140037114
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140037114
Function at 0x140037350
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push rsi
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x14004c030]
xor rax, rsp
mov qword [rsp + 0x278], rax
mov rcx, qword [rcx]
cmp rcx, 0xffffffffffffffff
je 0x1400373c4
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x1400373f6
lea rdx, [rsp + 0x54]
lea rsi, [0x14004fa60]
mov r8d, 0x105
mov rcx, rsi
call fcn.1400243c8
mov word [0x14004fc68], 0
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.140027fe0
mov rax, rsi
add rsp, 0x280
pop rsi
ret
lea rcx, [rsi + 8]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
jne 0x140037385
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.14001c700
cmp esi, 2
je 0x140037406
mov dword [rax], 9
jmp 0x14003740c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x14003740c
call fcn.14001c700
mov dword [rax], 2
xor esi, esi
jmp 0x1400373a8
Function at 0x140037620
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov rbx, r9
mov edi, r8d
mov r14, rdx
mov rax, qword [0x14004c030]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rdx, [0x140043fee]
call fcn.140020cdc
test rax, rax
je 0x14003769d
mov rsi, rax
mov rcx, rax
xor edx, edx
mov r8d, 2
call fcn.14001cb04
mov ebp, 6
test eax, eax
je 0x1400376a4
mov rcx, rsi
call fcn.14002215c
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140027fe0
mov eax, ebp
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ebp, 6
jmp 0x14003767d
mov rcx, rsi
call fcn.14001d6f4
test eax, eax
jle 0x140037675
mov r12d, eax
lea rcx, [r12 + 1]
call fcn.1400152f8
mov r15, rax
mov rcx, rsi
xor edx, edx
xor r8d, r8d
call fcn.14001cb04
mov ebp, 6
test eax, eax
je 0x1400376e0
mov rcx, r15
call fcn.14001534c
jmp 0x140037675
mov edx, 1
mov rcx, r15
mov r8, r12
mov r9, rsi
call fcn.14002284c
cmp rax, r12
jne 0x1400376d6
mov byte [r15 + r12], 0
lea r13, [rsp + 0x48]
mov qword [r13], r15
lea rcx, [0x1400403c0]
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x20], 0
mov rbp, rcx
mov rdx, r13
call fcn.140037880
test rax, rax
je 0x140037822
mov r12, rax
movzx eax, byte [rax]
cmp eax, 0x23
je 0x140037741
cmp eax, 0x3b
jne 0x14003774e
mov rcx, rbp
jmp 0x14003771d
mov al, byte [r12 + 1]
inc r12
cmp al, 9
je 0x140037746
movzx ecx, al
cmp ecx, 0x20
je 0x140037746
mov qword [rsp + 0x40], r12
test al, al
je 0x140037741
cmp ecx, 0x5b
lea rdx, [rsp + 0x40]
jne 0x14003778f
inc r12
mov qword [rsp + 0x40], r12
lea rcx, [0x1400403c6]
call fcn.140037880
test rax, rax
jne 0x140037833
jmp 0x140037873
test byte [rsp + 0x20], 1
je 0x140037741
lea rcx, [0x1400403c8]
call fcn.140037880
test rax, rax
je 0x140037741
mov rcx, r14
mov rdx, r12
call fcn.140037910
test eax, eax
js 0x140037741
mov r12d, eax
cmp eax, edi
jae 0x140037741
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x38], rcx
call fcn.1400236b0
lea rcx, [rax + 1]
mov qword [rsp + 0x30], rcx
call fcn.1400152f8
mov qword [rsp + 0x28], rax
mov rcx, rax
xor edx, edx
mov r8, qword [rsp + 0x30]
call fcn.140016ea0
mov rax, qword [rsp + 0x28]
mov r12d, r12d
mov rcx, qword [rbx + r12*8]
mov qword [rbx + r12*8], rax
test rcx, rcx
je 0x14003780c
call fcn.14001534c
mov rax, qword [rbx + r12*8]
mov rcx, rax
mov rdx, qword [rsp + 0x38]
call fcn.140023350
inc dword [rsp + 0x24]
jmp 0x140037741
xor eax, eax
cmp dword [rsp + 0x24], edi
setne al
lea ebp, [rax + rax*4]
jmp 0x1400376d6
lea rcx, [0x1400403c3]
lea rdx, [rsp + 0x40]
call fcn.140037880
test rax, rax
jne 0x140037873
mov rdx, qword [rsp + 0xc0]
mov rcx, r12
test rdx, rdx
jne 0x140037860
lea rdx, str.Strings
call fcn.140023230
test eax, eax
sete al
mov dword [rsp + 0x20], eax
jmp 0x140037741
mov dword [rsp + 0x20], 0
jmp 0x140037741
Function at 0x1400021c0
Capabilities:
Terminate thread

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp qword [rsp + 0x40], 0
je 0x1400022e5
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x78], 0
je 0x140002220
cmp dword [rsp + 0x48], 0
je 0x140002204
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x78], 0xffffffffffffffff
je 0x140002204
xor edx, edx
mov rcx, qword [rsp + 0x40]
call fcn.140002c50
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x78], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x80], 0
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x88], 0
je 0x140002262
xor edx, edx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x88]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x88], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x90], 0
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x98], 0
je 0x1400022a4
xor edx, edx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x98]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x98], 0
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x10], 0
je 0x1400022be
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x10]
call fcn.1401457c4
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x40], rax
jmp 0x1400021cd
add rsp, 0x38
ret

Function at 0x140002660
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x30], 0
cmp qword [rsp + 0x50], 0
je 0x14000272e
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x78], 0
je 0x14000272e
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x78], 0xffffffffffffffff
je 0x14000272e
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x2a]
cmp dword [rsp + 0x60], eax
ja 0x140002707
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x78]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x140002705
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rax, qword [rsp + 0x50]
mov edx, dword [rax + 8]
lea rcx, str.ERROR_kull_m_busylight_device_send_raw____device__u__WriteFile__0x_08x__n
call fcn.140013fd0
jmp 0x14000272c
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x2a]
mov r9d, eax
mov r8d, dword [rsp + 0x60]
mov rax, qword [rsp + 0x50]
mov edx, dword [rax + 8]
lea rcx, str.ERROR_kull_m_busylight_device_send_raw____device__u__Size_is_not_valide__siz___u__max___u__n
call fcn.140013fd0
jmp 0x140002742
mov rax, qword [rsp + 0x50]
mov edx, dword [rax + 8]
lea rcx, str.ERROR_kull_m_busylight_device_send_raw____device__u__Invalid_Device_Busy_Handle_n
call fcn.140013fd0
mov eax, dword [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x140002750
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x30], 0
cmp qword [rsp + 0x50], 0
je 0x140002876
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x78], 0
je 0x140002876
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x78], 0xffffffffffffffff
je 0x140002876
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x28]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, qword [rsp + 0x58]
mov qword [rcx], rax
mov rax, qword [rsp + 0x58]
cmp qword [rax], 0
je 0x140002874
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x60]
mov r8d, dword [rsp + 0x34]
mov rax, qword [rsp + 0x58]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x78]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140002815
cmp dword [rsp + 0x30], 0
je 0x140002874
mov rax, qword [rsp + 0x60]
mov ecx, dword [rsp + 0x34]
cmp dword [rax], ecx
je 0x140002874
cmp dword [rsp + 0x30], 0
jne 0x14000283b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rax, qword [rsp + 0x50]
mov edx, dword [rax + 8]
lea rcx, str.ERROR_kull_m_busylight_device_read_raw____device__u__ReadFile__0x_08x__n
call fcn.140013fd0
jmp 0x140002853
mov r8d, dword [rsp + 0x34]
mov rax, qword [rsp + 0x60]
mov edx, dword [rax]
lea rcx, str.ERROR_kull_m_busylight_device_read_raw____device__u___u_byte_s__readed___u_wanted_n
call fcn.140013fd0
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x58]
mov qword [rcx], rax
mov rax, qword [rsp + 0x60]
mov dword [rax], 0
jmp 0x14000288a
mov rax, qword [rsp + 0x50]
mov edx, dword [rax + 8]
lea rcx, str.ERROR_kull_m_busylight_device_read_raw____device__u__Invalid_Device_Busy_Handle_n
call fcn.140013fd0
mov eax, dword [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x140002c50
Capabilities:
Terminate thread

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov byte [rsp + 0x20], 0
mov byte [rsp + 0x21], 0
mov byte [rsp + 0x22], 0
mov byte [rsp + 0x23], 0
mov byte [rsp + 0x24], 0
mov byte [rsp + 0x25], 0
mov byte [rsp + 0x26], 0
mov byte [rsp + 0x27], 0x80
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
jmp 0x140002cba
cmp dword [rsp + 0x58], 0
je 0x140002ca7
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
jmp 0x140002cb0
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140002d06
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x90], 0
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x98], 0
je 0x140002d04
xor edx, edx
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x98]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x98], 0
jmp 0x140002c91
mov r9d, dword [rsp + 0x58]
mov r8d, 1
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
call fcn.140002b30
add rsp, 0x48
ret