joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140097da0
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0xb0
mov rax, qword [0x14015a010]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0x30], 0xc15730e2
mov dword [rsp + 0x34], 0x7f0725e3
mov byte [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
mov byte [rsp + 0x48], 0
nop
mov eax, dword [0x140164dd8]
nop
cmp eax, dword [rsp + 0x30]
je 0x140097ef2
mov ecx, dword [rsp + 0x34]
xor eax, eax
lock cmpxchg dword [0x140164dd8], ecx
jne 0x140097f23
mov rbx, qword [rsp + 0x40]
test rbx, rbx
jne 0x140097e53
cmp byte [rsp + 0x48], bl
jne 0x140097e1f
lea rcx, [rsp + 0x48]
call fcn.140097c30
lea r8, [rsp + 0x48]
xor edx, edx
mov ecx, 0x100002
call qword [sym.imp.KERNEL32.dll_OpenEventA]
mov rbx, rax
mov rcx, qword [rsp + 0x40]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140097e49
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x40], rbx
test rbx, rbx
je 0x140097e5d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResetEvent]
nop
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x14015ad14], eax
cmp byte [rsp + 0x38], 0
jne 0x140097e7c
lock inc dword [0x140164ddc]
mov byte [rsp + 0x38], 1
mov eax, dword [rsp + 0x30]
xchg dword [0x140164dd8], eax
mov rbx, qword [rsp + 0x40]
test rbx, rbx
jne 0x140097ee9
mov eax, dword [0x140164ddc]
nop
cmp eax, 1
jle 0x140097edf
cmp byte [rsp + 0x48], bl
jne 0x140097eac
lea rcx, [rsp + 0x48]
call fcn.140097c30
lea r9, [rsp + 0x48]
xor r8d, r8d
lea edx, [r8 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rbx, rax
mov rcx, qword [rsp + 0x40]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140097ed8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x40], rbx
jmp 0x140097ee4
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x140097ef7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rbx, qword [rsp + 0x40]
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140097f0a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400c5980
add rsp, 0xb0
pop rbx
ret
cmp byte [rsp + 0x38], 0
jne 0x140097f93
lock inc dword [0x140164ddc]
mov byte [rsp + 0x38], 1
mov eax, dword [0x140164dd8]
nop
cmp eax, dword [rsp + 0x30]
je 0x140097ef2
mov rcx, qword [rsp + 0x40]
test rcx, rcx
jne 0x140097f98
cmp byte [rsp + 0x48], cl
jne 0x140097f5d
lea rcx, [rsp + 0x48]
call fcn.140097c30
lea r9, [rsp + 0x48]
xor r8d, r8d
lea edx, [r8 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rbx, rax
mov rcx, qword [rsp + 0x40]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x140097f89
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x40], rbx
jmp 0x140097de0
mov rcx, qword [rsp + 0x40]
xor r8d, r8d
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
jmp 0x140097de0
Function at 0x140098790
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x14015ad14]
cmp ecx, 0xffffffff
je 0x1400987f9
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400987f9
mov ecx, dword [0x14015ad14]
xor edi, edi
cmp ecx, 0xffffffff
jne 0x1400987c4
mov eax, edi
jmp 0x1400987d0
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x14015ad14]
cmp byte [rax + 0x70], dil
je 0x1400987f9
mov byte [rbx], 1
cmp ecx, 0xffffffff
je 0x1400987e7
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov byte [rdi + 0x70], 0
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov byte [rbx], 0
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140098810
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x14015ad14]
cmp ecx, 0xffffffff
je 0x140098851
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140098851
mov ecx, dword [0x14015ad14]
movzx ebx, byte [rbx]
cmp ecx, 0xffffffff
jne 0x140098848
xor eax, eax
mov byte [rax + 0x70], bl
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov byte [rax + 0x70], bl
add rsp, 0x20
pop rbx
ret
Function at 0x1400a02f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x14015a010]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov rbx, rcx
cmp qword [rcx + 8], 0xffffffffffffffff
je 0x1400a0452
cmp byte [rdx + 4], 0
je 0x1400a032e
mov eax, dword [rcx]
cmp dword [rdx], eax
jl 0x1400a0452
mov r9, r8
mov r8, rdx
lea rdx, str._H:_M:_S
lea rcx, [rbp + 0xf]
call fcn.14009fdb0
nop
mov dword [rbp + 7], 0
cmp byte [rbx + 0x10], 0
je 0x1400a03f1
lea rax, [rbp + 0xf]
cmp qword [rbp + 0x27], 0x10
cmovae rax, qword [rbp + 0xf]
mov qword [rbp - 9], rax
mov rax, qword [rbp + 0x1f]
mov qword [rbp - 1], rax
movaps xmm0, xmmword [rbp - 9]
movdqa xmmword [rbp - 9], xmm0
lea rdx, [rbp - 9]
lea rcx, [rbp + 0x2f]
call fcn.1400a1e10
lea rdx, [rbp + 0x2f]
cmp qword [rbp + 0x47], 8
cmovae rdx, qword [rbp + 0x2f]
mov qword [rsp + 0x20], 0
lea r9, [rbp + 7]
mov r8d, dword [rbp + 0x3f]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov rdx, qword [rbp + 0x47]
cmp rdx, 8
jb 0x1400a041b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x2f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400a03ea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400a0475
call fcn.1400c59a0
jmp 0x1400a041b
lea rdx, [rbp + 0xf]
cmp qword [rbp + 0x27], 0x10
cmovae rdx, qword [rbp + 0xf]
mov qword [rsp + 0x20], 0
lea r9, [rbp + 7]
mov r8d, dword [rbp + 0x1f]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
mov rdx, qword [rbp + 0x27]
cmp rdx, 0x10
jb 0x1400a0452
inc rdx
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400a044d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400a046f
call fcn.1400c59a0
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.1400c5980
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rbp
ret
call fcn.1400da6f8
nop
call fcn.1400da6f8
nop
int3
Function at 0x1400a1140
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x14015a010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rdi, qword [r8]
mov r14, r9
mov rbp, qword [rsp + 0xe0]
mov rsi, rdx
mov r15, qword [rsp + 0xe8]
mov rbx, rcx
mov r12, qword [rsp + 0xf0]
test rdi, rdi
je 0x1400a1246
cmp qword [rdi + 8], 0xffffffffffffffff
je 0x1400a1246
cmp byte [rcx + 4], 0
je 0x1400a11a9
mov eax, dword [rdi]
cmp dword [rcx], eax
jl 0x1400a1246
mov r9, rsi
lea rdx, str._FT_T
mov r8, rbx
lea rcx, [rsp + 0x38]
call fcn.14009fdb0
mov r8d, dword [rsp + 0x48]
lea rdx, [rsp + 0x38]
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x30]
xor eax, eax
mov qword [rsp + 0x68], 0xffffffffffffffff
cmp qword [rsp + 0x50], 0x10
mov dword [rsp + 0x30], eax
cmovae rdx, qword [rsp + 0x38]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x1400a1246
mov rcx, qword [rsp + 0x38]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400a1241
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400a128e
call fcn.1400c59a0
mov rcx, qword [r14]
test rcx, rcx
je 0x1400a1259
mov r8, rsi
mov rdx, rbx
call fcn.1400a0070
mov r9, r15
mov qword [rsp + 0x20], r12
mov r8, rbp
mov rdx, rsi
mov rcx, rbx
call fcn.1400a1940
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400c5980
add rsp, 0x80
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.1400da6f8
int3
Function at 0x1400deaf0
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.1400fde30
sub rsp, rax
mov rax, qword [0x14015a010]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400ee214
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400deb3f
mov rax, rbp
jmp 0x1400dec47
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 + 0x164590]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400f2d94
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x164590]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400dec43
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 0x1400dec43
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400f2d94
test rax, rax
js 0x1400dec43
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400dec43
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400dec35
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400dec35
cmp byte [rcx], 0xd
jne 0x1400dec1b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400dec2a
cmp byte [rcx + 1], 0xa
jne 0x1400dec2a
inc rcx
jmp 0x1400dec2a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x15a470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400debfd
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400dec47
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400c5980
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 0x1400e72f8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1400e732f
call fcn.1400dbe44
mov dword [rax], 0x16
call fcn.1400da6d8
xor eax, eax
jmp 0x1400e73bd
mov rdx, r9
mov rcx, r8
call fcn.1400e7294
mov rbx, rax
test rax, rax
je 0x1400e73ba
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400e71c0]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400e73a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400dbdb8
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400e738e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400e739d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400ece44
jmp 0x1400e73ba
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400e73b7
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400efb70
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400efb86
mov al, 1
jmp 0x1400efbe6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400efb97
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400efbe4
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400dce38
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400efbe4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400efbe4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400efbe4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400efbe6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400f2134
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, [0x140164590]
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 0x1400f218b
cmp word [rdx], r13w
jne 0x1400f218b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400f2190
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400f22b5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400f22d6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400f21c9
mov rdx, r9
mov word [rbx], cx
jmp 0x1400f21f0
cmp r9, r8
jae 0x1400f2200
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 0x1400f21aa
jmp 0x1400f22b5
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 0x1400f22aa
cmp dword [rsp + 0x80], esi
je 0x1400f22aa
lea r8, [0x140164590]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400f2282
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400f2252
mov word [rbx], r13w
jmp 0x1400f22b2
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 0x1400f225f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400f22b2
cmp word [rsp + 0x70], r13w
jne 0x1400f228f
cmp rbx, r14
je 0x1400f224c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400f2d9c
cmp word [rsp + 0x70], r13w
je 0x1400f22b5
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, [0x140164590]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400f22af
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400f22b5
Function at 0x1400f7448
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.1400ee720
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 0x1400f74e9
cmp ebx, dword [rsp + 0x30]
je 0x1400f74e2
test esi, esi
je 0x1400f74e2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400f74bd
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400f74ca
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400f74a7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400f74ce
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400f74eb
mov eax, 1
jmp 0x1400f74eb
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400f891c
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 0x1400f89a3
mov rsi, rbx
cmp word [rax], bp
je 0x1400f8962
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400f894c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400f8948
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400ece80
mov rdi, rax
test rax, rax
je 0x1400f8990
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400cb9c0
mov rbp, rdi
xor ecx, ecx
call fcn.1400ece44
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 0x1400fd6f4
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.1400f2d9c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400f2d9c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400fd844
cmp rax, 0xffffffffffffffff
je 0x1400fd844
xor edi, edi
test rbp, rbp
jle 0x1400fd7ef
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400ecdcc
mov rbx, rax
test rax, rax
jne 0x1400fd77c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400fd7e5
mov edx, 0x8000
mov ecx, r14d
call fcn.1400e98f0
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.1400f0864
cmp eax, 0xffffffff
je 0x1400fd7c5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400fd78c
mov edx, r15d
mov ecx, r14d
call fcn.1400e98f0
jmp 0x1400fd7e5
cmp byte [rsi + 0x38], dil
je 0x1400fd7dc
cmp dword [rsi + 0x34], 5
jne 0x1400fd7dc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400fd7e5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400ece44
jmp 0x1400fd858
jns 0x1400fd858
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400f2d9c
cmp rax, 0xffffffffffffffff
jne 0x1400fd810
cmp byte [rsi + 0x30], dil
je 0x1400fd858
mov edi, dword [rsi + 0x2c]
jmp 0x1400fd858
mov ecx, r14d
call fcn.1400dce38
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400fd858
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400fd858
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400fd851
mov eax, dword [rsi + 0x2c]
jmp 0x1400fd856
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400f2d9c
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 0x140001bd0
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x1400197d0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400114c4
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001ab20
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001ab40
xor al, al
jmp 0x14001abc1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001ab53
xor al, al
jmp 0x14001abc1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001ab7d
xor al, al
jmp 0x14001abc1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001ab91
xor al, al
jmp 0x14001abc1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001aba3
xor al, al
jmp 0x14001abc1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001abbf
xor al, al
jmp 0x14001abc1
mov al, 1
add rsp, 0x38
ret
Function at 0x140003030
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x14000308d
lea rbx, [0x14004d9d0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140003074
cmp r10, 2
jb 0x140003074
cmp byte [r9], r8b
jne 0x140003074
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140003050
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x1400030cf
lea rbx, [0x14004d9d0]
cmp r8b, 0x23
jne 0x1400030b3
cmp byte [r9], r8b
jne 0x1400030b3
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x1400030a0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140003210
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x14000322a
mov qword [r8], 0
lea rdx, [0x14004d540]
call fcn.1400030e0
mov rbx, rax
test rax, rax
jne 0x14000324a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x140003321
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140003321
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140003321
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140003321
cmp rdi, 0xffffffffffffffff
je 0x140003321
mov rax, qword [0x14005b748]
test rax, rax
je 0x1400032be
inc dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140003321
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x14000330e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x14005b748]
test rax, rax
je 0x140003303
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14000332a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x14000331c
mov qword [r14], rdi
mov rax, rsi
jmp 0x14000332c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret