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

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.14001cb70
cmp eax, 1
je 0x140014362
mov ecx, 3
call fcn.14001cb70
test eax, eax
jne 0x140014416
cmp dword [0x140032228], 1
jne 0x140014416
mov qword [rsp + 0x48], rbx
lea rbx, [0x1400329c0]
mov qword [rsp + 0x30], rdi
mov rax, rbx
xor edi, edi
cmp dword [rax], 0xfc
je 0x14001438e
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x140014378
jmp 0x140014402
cmp edi, 0x17
jae 0x140014402
mov ecx, 3
call fcn.14001cb70
cmp eax, 1
je 0x1400143b9
mov ecx, 3
call fcn.14001cb70
test eax, eax
jne 0x140014402
cmp dword [0x140032228], 1
jne 0x140014402
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x140014402
cmp rax, 0xffffffffffffffff
je 0x140014402
movsxd rcx, edi
xor eax, eax
lea r9, [rsp + 0x40]
add rcx, rcx
mov qword [rsp + 0x20], rax
mov rdx, qword [rbx + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xff
call fcn.1400140f0
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x140014ad0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [0x1400349a8]
test eax, eax
jne 0x140014b23
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x140014b03
mov dword [0x1400349a8], 1
jmp 0x140014b3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x140014b1d
mov dword [0x1400349a8], 2
jmp 0x140014c19
mov eax, dword [0x1400349a8]
cmp eax, 1
jne 0x140014c10
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x140014c63
cmp word [rdi], 0
mov qword [rsp + 0x50], rbp
mov rbx, rdi
mov qword [rsp + 0x58], r12
je 0x140014b65
add rbx, 2
cmp word [rbx], 0
jne 0x140014b51
add rbx, 2
cmp word [rbx], 0
jne 0x140014b51
xor r12d, r12d
sub rbx, rdi
mov r8, rdi
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
sar rbx, 1
lea r9d, [rbx + 1]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
movsxd rbp, eax
je 0x140014c03
mov rcx, rbp
call fcn.140016ad0
test rax, rax
mov rsi, rax
je 0x140014c03
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea r9d, [rbx + 1]
mov r8, rdi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x140014bdd
mov rcx, rsi
call fcn.14000bf50
mov rsi, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbp, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x140014be9
cmp eax, 2
je 0x140014c19
test eax, eax
jne 0x140014c63
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rbx, rax
je 0x140014c63
cmp byte [rax], 0
je 0x140014c42
nop
add rax, 1
cmp byte [rax], 0
jne 0x140014c30
add rax, 1
cmp byte [rax], 0
jne 0x140014c30
sub eax, ebx
add eax, 1
movsxd rsi, eax
mov rcx, rsi
call fcn.140016ad0
test rax, rax
mov rdi, rax
jne 0x140014c75
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000d430
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rax, rdi
add rsp, 0x40
pop rdi
ret
Function at 0x14001a680
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0xb0
mov rax, qword [0x1400321a0]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov esi, ecx
mov r9d, 0x78
and ecx, 0x3ff
mov rbp, r8
mov ebx, edx
lea edx, [r9 - 0x77]
lea r8, [rsp + 0x20]
bts ecx, 0xa
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x14001a769
movzx ecx, byte [rsp + 0x20]
xor edx, edx
mov qword [rsp + 0xc8], rdi
test cl, cl
lea r8, [rsp + 0x20]
mov edi, edx
je 0x14001a71a
nop
lea eax, [rcx - 0x61]
add r8, 1
cmp al, 5
ja 0x14001a700
add cl, 0xd9
jmp 0x14001a70a
lea eax, [rcx - 0x41]
cmp al, 5
ja 0x14001a70a
add cl, 0xf9
movsx eax, cl
mov cl, byte [r8]
add edi, edi
test cl, cl
lea edi, [rax + rdi*8 - 0x30]
jne 0x14001a6f0
cmp esi, edi
je 0x14001a75c
test ebx, ebx
je 0x14001a75c
mov rdi, qword [rbp]
movzx eax, byte [rdi]
lea rcx, [rdi + 1]
nop
cmp al, 0x41
jl 0x14001a738
cmp al, 0x5a
jle 0x14001a73e
sub al, 0x61
cmp al, 0x19
ja 0x14001a749
mov al, byte [rcx]
add edx, 1
add rcx, 1
jmp 0x14001a730
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
cmp edx, ecx
je 0x14001a761
mov eax, 1
mov rdi, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14000abb0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rsi
ret
Function at 0x14001c910
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x50
mov edi, r8d
mov r13, rdx
mov r14, rcx
call fcn.14000f370
xor ebx, ebx
cmp qword [0x140034cd0], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x14001ca3c
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x14001cb4f
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001cb4f
mov rcx, rax
call fcn.14000f2a0
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140034cd0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.14000f2a0
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140034cd8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.14000f2a0
lea rcx, [rsp + 0x98]
mov qword [0x140034ce0], rax
call fcn.140013d90
test eax, eax
je 0x14001c9ef
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.14000b750
cmp dword [rsp + 0x98], 2
jne 0x14001ca3c
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.14000f2a0
test rax, rax
mov qword [0x140034cf0], rax
je 0x14001ca3c
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.14000f2a0
mov qword [0x140034ce8], rax
mov rcx, qword [0x140034ce8]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x14001cae8
cmp qword [0x140034cf0], rbp
je 0x14001cae8
call fcn.14000f460
mov rcx, qword [0x140034cf0]
mov rsi, rax
call fcn.14000f460
test rsi, rsi
mov r12, rax
je 0x14001cae8
test rax, rax
je 0x14001cae8
call rsi
test rax, rax
je 0x14001cab3
lea rcx, [rsp + 0x34]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14001cab3
test byte [rsp + 0x40], 1
jne 0x14001cae8
lea rcx, [rsp + 0x30]
call fcn.140013de0
test eax, eax
je 0x14001cad5
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.14000b750
cmp dword [rsp + 0x30], 4
jb 0x14001cae2
bts edi, 0x15
jmp 0x14001cb26
bts edi, 0x12
jmp 0x14001cb26
mov rcx, qword [0x140034cd8]
cmp rcx, rbp
je 0x14001cb26
call fcn.14000f460
test rax, rax
je 0x14001cb26
call rax
test rax, rax
mov rbx, rax
je 0x14001cb26
mov rcx, qword [0x140034ce0]
cmp rcx, rbp
je 0x14001cb26
call fcn.14000f460
test rax, rax
je 0x14001cb26
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140034cd0]
call fcn.14000f460
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x14001cb4f
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x14001cb51
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001e8e0
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1400321a0]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov r9d, 6
mov edx, 0x1004
mov byte [rsp + 0x26], 0
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x14001e927
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14000abb0
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.14001de30
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14000abb0
add rsp, 0x38
ret

Function at 0x140021380
Capabilities:
Get geographical location

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x40
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x40], rbx
mov qword [rbp + 0x48], rsi
mov qword [rbp + 0x50], rdi
mov rax, qword [0x1400321a0]
xor rax, rbp
mov qword [rbp], rax
mov eax, dword [0x140034dbc]
mov r15, r9
mov r13d, r8d
test eax, eax
mov r14d, edx
mov rbx, rcx
jne 0x140021401
lea edx, [rax + 1]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400213e4
mov dword [0x140034dbc], 1
jmp 0x140021406
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1400213fb
mov dword [0x140034dbc], 2
jmp 0x14002142b
mov eax, dword [0x140034dbc]
cmp eax, 1
jne 0x14002141e
mov r9d, dword [rbp + 0x60]
mov r8, r15
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x140021532
cmp eax, 2
je 0x14002142b
test eax, eax
jne 0x140021530
mov esi, dword [rbp + 0x68]
xor edi, edi
test esi, esi
jne 0x14002143a
mov rax, qword [rbx]
mov esi, dword [rax + 4]
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
movsxd r12, eax
je 0x140021530
jle 0x140021530
xor edx, edx
mov rax, 0xffffffffffffffe0
mov rcx, r12
div r12
cmp rax, 1
jb 0x140021530
add rcx, 0x10
cmp rcx, 0x400
ja 0x1400214b8
lea rax, [rcx + 0xf]
cmp rax, rcx
ja 0x140021496
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.140027d30
sub rsp, rax
lea rbx, [rsp + 0x30]
test rbx, rbx
je 0x140021530
mov dword [rbx], 0xcccc
jmp 0x1400214cb
call fcn.14000d2b0
test rax, rax
mov rbx, rax
je 0x1400214cf
mov dword [rax], 0xdddd
add rbx, 0x10
test rbx, rbx
je 0x140021530
mov r9d, r12d
mov r8, rbx
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x14002151a
mov eax, dword [rbp + 0x60]
or r9d, 0xffffffff
mov r8, rbx
test eax, eax
lea edx, [r9 + 2]
mov ecx, esi
jne 0x140021509
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
jmp 0x140021512
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
cmp dword [rbx - 0x10], 0xdddd
lea rcx, [rbx - 0x10]
jne 0x14002152c
call fcn.14000bf50
mov eax, edi
jmp 0x140021532
xor eax, eax
mov rcx, qword [rbp]
xor rcx, rbp
call fcn.14000abb0
mov rbx, qword [rbp + 0x40]
mov rsi, qword [rbp + 0x48]
mov rdi, qword [rbp + 0x50]
lea rsp, [rbp + 0x10]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140021690
Capabilities:
Get geographical location

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x50
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x40], rbx
mov qword [rbp + 0x48], rsi
mov qword [rbp + 0x50], rdi
mov rax, qword [0x1400321a0]
xor rax, rbp
mov qword [rbp], rax
mov eax, dword [0x140034dc0]
mov r15, r9
mov r13d, r8d
test eax, eax
mov r14d, edx
mov rbx, rcx
jne 0x140021748
lea edx, [rax + 1]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400216f4
mov dword [0x140034dc0], 1
jmp 0x140021756
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x140021742
mov dword [0x140034dc0], 2
mov r9d, dword [rbp + 0x60]
mov r8, r15
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov rcx, qword [rbp]
xor rcx, rbp
call fcn.14000abb0
mov rbx, qword [rbp + 0x40]
mov rsi, qword [rbp + 0x48]
mov rdi, qword [rbp + 0x50]
lea rsp, [rbp + 0x10]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov eax, dword [0x140034dc0]
cmp eax, 2
je 0x140021709
test eax, eax
je 0x140021709
cmp eax, 1
jne 0x14002177e
mov esi, dword [rbp + 0x68]
xor edi, edi
test esi, esi
jne 0x140021765
mov rax, qword [rbx]
mov esi, dword [rax + 4]
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
movsxd r12, eax
jne 0x140021782
xor eax, eax
jmp 0x14002171c
jle 0x14002177e
xor edx, edx
mov rax, 0xffffffffffffffe0
div r12
cmp rax, 2
jb 0x14002177e
lea rcx, [r12 + r12 + 0x10]
cmp rcx, 0x400
ja 0x1400217d5
lea rax, [rcx + 0xf]
cmp rax, rcx
ja 0x1400217b7
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.140027d30
sub rsp, rax
lea rbx, [rsp + 0x40]
test rbx, rbx
je 0x14002177e
mov dword [rbx], 0xcccc
jmp 0x1400217e8
call fcn.14000d2b0
test rax, rax
mov rbx, rax
je 0x1400217ec
mov dword [rax], 0xdddd
add rbx, 0x10
test rbx, rbx
je 0x14002177e
mov r9d, r12d
mov r8, rbx
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x14002183f
mov eax, dword [rbp + 0x60]
or r9d, 0xffffffff
xor edx, edx
test eax, eax
mov qword [rsp + 0x38], rdi
mov r8, rbx
mov ecx, esi
mov qword [rsp + 0x30], rdi
jne 0x14002182e
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
jmp 0x140021837
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
cmp dword [rbx - 0x10], 0xdddd
lea rcx, [rbx - 0x10]
jne 0x140021851
call fcn.14000bf50
mov eax, edi
jmp 0x14002171c
Function at 0x140011c64
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rbx, rdx
mov rdi, rcx
call fcn.140044128
test al, al
jne 0x140011d3d
cmp qword [rdi + 0x18], 7
jbe 0x140011c90
mov rdi, qword [rdi]
and qword [rsp + 0x30], 0
mov esi, 2
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0xc0000000
mov dword [rsp + 0x20], esi
mov rcx, rdi
lea r8d, [rsi - 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140011d3d
and dword [rsp + 0x68], 0
lea r9, [rsp + 0x68]
and qword [rsp + 0x20], 0
lea rdx, [rsp + 0x60]
mov eax, 0xfeff
mov r8d, esi
mov rcx, rdi
mov word [rsp + 0x60], ax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne sil
test eax, eax
je 0x140011d2f
cmp qword [rbx + 0x10], 0
jbe 0x140011d2f
mov r8d, dword [rbx + 0x10]
add r8d, r8d
cmp qword [rbx + 0x18], 7
jbe 0x140011d12
mov rbx, qword [rbx]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne sil
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, sil
jmp 0x140011d3f
xor al, al
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14001fc6c
Capabilities:
Parse credit card information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
xor al, al
mov ecx, dword [rcx + 0x7c]
jmp 0x14001fcde
cmp ecx, 0x7c
je 0x14001fce3
cmp ecx, 0x29
jne 0x14001fcee
cmp dword [rbx + 0x1c], 0
jne 0x14001fce3
test dword [rbx + 0x80], 0x10000000
je 0x14001fe0e
cmp ecx, 0x5d
jne 0x14001fcb5
test dword [rbx + 0x80], 0x10000000
je 0x14001fe00
mov dl, byte [rbx + 0x78]
lea rcx, [rbx + 0x40]
call fcn.14001f2d8
mov dil, 1
mov rcx, rbx
call fcn.140023440
test dil, dil
je 0x14001fcd9
mov rcx, rbx
call fcn.1400237c8
mov ecx, dword [rbx + 0x7c]
mov al, 1
cmp ecx, 0xffffffff
jne 0x14001fc80
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp ecx, 0x2e
jne 0x14001fd0b
lea rcx, [rbx + 0x40]
mov edx, 5
call fcn.1400233e8
mov rcx, rbx
call fcn.140023440
jmp 0x14001fcd1
cmp ecx, 0x5c
jne 0x14001fd69
mov rcx, rbx
call fcn.140023440
test byte [rbx + 0x80], 0x80
je 0x14001fd5c
mov al, byte [rbx + 0x78]
cmp al, 0x62
jne 0x14001fd40
mov edx, 4
lea rcx, [rbx + 0x40]
call fcn.1400233e8
mov rcx, rbx
call fcn.140023440
jmp 0x14001fcd9
cmp al, 0x42
jne 0x14001fd5c
lea rcx, [rbx + 0x40]
mov edx, 4
call fcn.1400233e8
mov rax, qword [rbx + 0x48]
xor dword [rax + 0xc], 1
jmp 0x14001fd36
mov rcx, rbx
call fcn.14001fe2c
jmp 0x14001fcd1
cmp ecx, 0x5b
jne 0x14001fd89
mov rcx, rbx
call fcn.140023440
mov rcx, rbx
call fcn.14002077c
cmp dword [rbx + 0x7c], 0x5d
jne 0x14001fe00
jmp 0x14001fd01
cmp ecx, 0x28
jne 0x14001fdac
mov rcx, rbx
call fcn.140023440
mov rcx, rbx
call fcn.1400242c0
cmp dword [rbx + 0x7c], 0x29
mov dil, al
jne 0x14001fe0e
jmp 0x14001fcc4
cmp ecx, 0x5e
jne 0x14001fdb9
lea edx, [rcx - 0x5c]
jmp 0x14001fd2d
cmp ecx, 0x24
jne 0x14001fdc6
lea edx, [rcx - 0x21]
jmp 0x14001fd2d
lea eax, [rcx - 0x2a]
cmp eax, 1
jbe 0x14001fdf2
cmp ecx, 0x3f
je 0x14001fdf2
cmp ecx, 0x7b
je 0x14001fdf2
cmp ecx, 0x7d
jne 0x14001fca0
test dword [rbx + 0x80], 0x10000000
je 0x14001fe1c
jmp 0x14001fcb5
mov edx, 0xa
mov rcx, rbx
call fcn.140021b28
int3
mov edx, 4
mov rcx, rbx
call fcn.140021b28
int3
mov edx, 5
mov rcx, rbx
call fcn.140021b28
int3
mov edx, 6
mov rcx, rbx
call fcn.140021b28
int3
Function at 0x14002b72c
Capabilities:
Read file via mapping

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
mov dword [rax + 0x18], r8d
push rbp
mov rbp, rsp
sub rsp, 0x40
lea rdi, [rcx + 8]
mov rbx, rdx
mov rsi, rcx
lea r8, [rbp + 0x20]
mov rcx, rdi
lea rdx, [rbp - 0x10]
call fcn.140028934
mov r8, qword [rax]
cmp qword [r8 + 0x28], 0
je 0x14002b788
lea r8, [rbp + 0x20]
mov rcx, rdi
lea rdx, [rbp - 0x10]
call fcn.140028934
mov rcx, qword [rax]
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, [rbp + 0x20]
mov rcx, rdi
lea rdx, [rbp - 0x10]
call fcn.140028934
mov rcx, qword [rax]
cmp qword [rcx + 0x30], 0
je 0x14002b7d7
lea r8, [rbp + 0x20]
mov rcx, rdi
lea rdx, [rbp - 0x10]
call fcn.140028934
mov rcx, qword [rax]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea r8, [rbp + 0x20]
mov rcx, rdi
lea rdx, [rbp - 0x10]
call fcn.140028934
mov rcx, qword [rax]
and qword [rcx + 0x30], 0
cmp qword [rbx + 0x18], 7
jbe 0x14002b7e1
mov rbx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x28], rbx
xor edx, edx
mov dword [rsp + 0x20], 0x20000
or rcx, 0xffffffffffffffff
lea r8d, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
lea r8, [rbp + 0x20]
mov rcx, rdi
lea rdx, [rbp - 0x10]
mov rbx, rax
call fcn.140028934
lea r8, [rbp + 0x20]
lea rdx, [rbp - 0x10]
mov rcx, qword [rax]
mov qword [rcx + 0x28], rbx
mov rcx, rdi
call fcn.140028934
mov rcx, qword [rax]
cmp qword [rcx + 0x28], 0
je 0x14002b87f
lea r8, [rbp + 0x20]
mov rcx, rdi
lea rdx, [rbp - 0x10]
call fcn.140028934
xor r9d, r9d
mov qword [rsp + 0x20], 0x20000
xor r8d, r8d
mov rcx, qword [rax]
lea edx, [r9 + 6]
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
lea r8, [rbp + 0x20]
mov rcx, rdi
lea rdx, [rbp - 0x10]
mov rbx, rax
call fcn.140028934
mov rdx, qword [rax]
mov qword [rdx + 0x30], rbx
lea r8, [rbp + 0x20]
mov rcx, rdi
lea rdx, [rbp - 0x10]
call fcn.140028934
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x68]
mov rcx, qword [rax]
cmp qword [rcx + 0x30], 0
setne al
mov byte [rsi + 0x20], al
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rbp
ret
Function at 0x14002d64c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1400d5380]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14002d6bb
cmp byte [rcx + 0x71], 0
je 0x14002d6bb
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
cmp eax, 0xffffffff
je 0x14002d70f
mov rcx, qword [rbx + 0x68]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], r8
lea rdx, [rbx + 0x74]
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x40]
test eax, eax
je 0x14002d6d5
sub eax, 1
je 0x14002d6d9
cmp eax, 2
jne 0x14002d70f
mov byte [rbx + 0x71], 0
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140077c90
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14002d706
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call fcn.1400874b0
cmp rdi, rax
jne 0x14002d70f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14002d6bd
xor al, al
jmp 0x14002d6bd
Function at 0x14002df78
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400d5380]
xor rax, rsp
mov qword [rbp - 8], rax
or edi, 0xffffffff
mov esi, edx
mov rbx, rcx
cmp edx, edi
jne 0x14002dfb1
xor eax, eax
jmp 0x14002e0cf
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x14002dfeb
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
mov rcx, r8
add rcx, qword [rax]
cmp qword [rax], rcx
jae 0x14002dfeb
lea ecx, [r8 - 1]
mov eax, esi
mov dword [rdx], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], sil
jmp 0x14002e0cf
cmp qword [rbx + 0x80], 0
je 0x14002e0cd
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14002e026
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
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14002e046
movsx ecx, sil
mov rdx, qword [rbx + 0x80]
call fcn.140086bc4
cmp eax, edi
jmp 0x14002e0ca
lea r8, [rbp - 0x38]
mov byte [rbp - 0x40], sil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rbp - 0x3f]
lea r8, [rbp - 8]
mov qword [rsp + 0x30], r8
lea r8, [rbp - 0x28]
mov qword [rsp + 0x28], r8
lea r8, [rbp - 0x30]
mov qword [rsp + 0x20], r8
lea r8, [rbp - 0x40]
call qword [rax + 0x38]
test eax, eax
je 0x14002e094
sub eax, 1
je 0x14002e094
cmp eax, 2
jne 0x14002e0cd
movsx ecx, byte [rbp - 0x40]
jmp 0x14002e033
mov r14, qword [rbp - 0x38]
lea rax, [rbp - 0x28]
sub r14, rax
je 0x14002e0be
mov r9, qword [rbx + 0x80]
lea rcx, [rbp - 0x28]
mov r8, r14
mov edx, 1
call fcn.1400874b0
cmp r14, rax
jne 0x14002e0cd
lea rax, [rbp - 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rbp - 0x30], rax
cmovne edi, esi
mov eax, edi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140077c90
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret