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

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
xor edx, edx
mov rcx, qword [rcx + 0x38]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14002b8cb
mov rcx, qword [rbx + 8]
lea r9d, [rax + 1]
mov qword [rsp + 0x48], rdi
lea r8, [rsp + 0x40]
lea rdi, [rbx + 0x20]
mov dword [rsp + 0x40], eax
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x14002b8af
mov edx, dword [rsp + 0x40]
mov rax, qword [rbx + 0x48]
cmp rdx, rax
jae 0x14002b839
nop word [rax + rax]
mov rcx, qword [rbx + 0x40]
sub rax, rdx
add rdx, rcx
mov r8, rax
call sym.NetMonitor.exe_nocrt_memmove
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov r8d, dword [rbx + 0x48]
lea r9, [rsp + 0x40]
mov rdx, qword [rbx + 0x40]
mov rcx, qword [rbx + 8]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14002b84a
mov edx, dword [rsp + 0x40]
mov rax, qword [rbx + 0x48]
cmp rdx, rax
jb 0x14002b7f0
mov byte [rbx + 0x12], 0
xor eax, eax
mov rdi, qword [rsp + 0x48]
add rsp, 0x30
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14002b867
mov rdi, qword [rsp + 0x48]
mov eax, 0x34
add rsp, 0x30
pop rbx
ret
mov byte [rbx + 0x12], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe8
jne 0x14002b88c
mov rdi, qword [rsp + 0x48]
mov eax, 0xfffffed3
mov byte [rbx + 0x14], 1
add rsp, 0x30
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001ee80
cmp eax, 0xfffffed3
jne 0x14002b83f
mov rdi, qword [rsp + 0x48]
mov byte [rbx + 0x14], 1
add rsp, 0x30
pop rbx
ret
mov byte [rbx + 0x12], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001ee80
mov rdi, qword [rsp + 0x48]
add rsp, 0x30
pop rbx
ret
cmp eax, 0x102
jne 0x14002b8dd
mov eax, 0x34
add rsp, 0x30
pop rbx
ret
mov byte [rbx + 0x12], 0
cmp eax, 0x80
jne 0x14002b8f3
mov eax, 0xfffffffc
add rsp, 0x30
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
add rsp, 0x30
pop rbx
jmp fcn.14001ee80
Function at 0x14002c330
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push r14
push r15
sub rsp, 0x48
mov r14, r9
mov rbp, r8
mov r15, rdx
mov rbx, rcx
cmp rcx, 0x1000
jb 0x14002c541
movabs rax, 0xffff800000000000
test rax, rcx
jne 0x14002c541
cmp dword [rcx], 0x19570528
jne 0x14002c541
cmp byte [rcx + 0x10], 0
je 0x14002c531
mov qword [rsp + 0x78], rsi
add rcx, 0x60
mov qword [rsp + 0x80], rdi
call fcn.140030c30
mov edi, eax
test eax, eax
js 0x14002c517
cmp dword [rbx + 0x18], 0
jne 0x14002c509
mov rcx, qword [rbx + 0x38]
mov qword [rsp + 0x88], r12
mov qword [rsp + 0x40], r13
mov dword [rbx + 0x18], 1
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor edi, edi
mov r13d, 0xffffffff
mov eax, edi
mov dword [rsp + 0x70], eax
test rbp, rbp
je 0x14002c4f3
mov rcx, qword [rbx + 8]
lea r12, [rbx + 0x20]
mov r8d, r13d
mov qword [rsp + 0x20], r12
cmp rbp, r13
lea r9, [rsp + 0x70]
mov rdx, r15
cmovbe r8d, ebp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14002c4ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14002c4d2
lea rcx, [rbx + 0x60]
mov byte [rbx + 0x12], 1
call fcn.140030e10
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x30]
xor eax, eax
mov dword [rsp + 0x30], 0xc0000365
mov dword [rsp + 0x34], eax
mov qword [rsp + 0x38], 0xffffffffffffffd5
call qword [sym.imp.ntdll.dll_NtCancelIoFile]
test eax, eax
jns 0x14002c45e
mov rcx, qword [rbx + 0x38]
mov edx, r13d
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 8]
lea r8, [rsp + 0x70]
mov r9d, 1
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x14002c490
mov eax, dword [rsp + 0x70]
lea rcx, [rbx + 0x60]
mov qword [r14], rax
call fcn.140030c30
mov byte [rbx + 0x12], 0
jmp 0x14002c4e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e3
jne 0x14002c4b4
mov qword [r14], rdi
lea rcx, [rbx + 0x60]
mov edi, 0x34
call fcn.140030c30
mov byte [rbx + 0x12], 0
jmp 0x14002c4e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001ee80
lea rcx, [rbx + 0x60]
mov edi, eax
call fcn.140030c30
mov byte [rbx + 0x12], 0
jmp 0x14002c4e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001ee80
mov edi, eax
cmp edi, 0xfffffed3
jne 0x14002c4f6
mov byte [rbx + 0x14], 1
jmp 0x14002c4f6
mov eax, dword [rsp + 0x70]
mov qword [r14], rax
add dword [rbx + 0x18], r13d
mov r13, qword [rsp + 0x40]
mov r12, qword [rsp + 0x88]
jmp 0x14002c50e
mov edi, 0xffffffea
lea rcx, [rbx + 0x60]
call fcn.140030e10
mov rsi, qword [rsp + 0x78]
mov eax, edi
mov rdi, qword [rsp + 0x80]
add rsp, 0x48
pop r15
pop r14
pop rbp
pop rbx
ret
mov eax, 0xffffffda
add rsp, 0x48
pop r15
pop r14
pop rbp
pop rbx
ret
mov eax, 0xfffffffc
add rsp, 0x48
pop r15
pop r14
pop rbp
pop rbx
ret
Function at 0x14002c560
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], r9
push rbx
push rbp
push r13
push r15
sub rsp, 0x48
mov r13, r9
mov rbp, r8
mov r15, rdx
mov rbx, rcx
cmp rcx, 0x1000
jb 0x14002c73a
movabs rax, 0xffff800000000000
test rax, rcx
jne 0x14002c73a
cmp dword [rcx], 0x19570528
jne 0x14002c73a
cmp byte [rcx + 0x10], 0
je 0x14002c72a
mov qword [rsp + 0x78], rsi
add rcx, 0x60
mov qword [rsp + 0x40], rdi
call fcn.140030c30
mov edi, eax
test eax, eax
js 0x14002c713
cmp dword [rbx + 0x18], 0
jne 0x14002c705
xor eax, eax
mov qword [rsp + 0x30], r14
mov dword [rbx + 0x18], 1
mov r14d, eax
mov ecx, 0xffffffff
test rbp, rbp
je 0x14002c6e3
mov qword [rsp + 0x38], r12
xor r13d, r13d
lea r12, [rbx + 0x20]
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea rcx, [rbx + 0x60]
mov dword [rsp + 0x70], r13d
mov byte [rbx + 0x12], 1
call fcn.140030e10
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x70]
mov edi, 0xffffffff
mov qword [rsp + 0x20], r12
mov r8d, edi
cmp rbp, rdi
mov rdx, r15
cmovbe r8d, ebp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002c65b
lea rcx, [rbx + 0x60]
mov edi, r13d
call fcn.140030c30
mov byte [rbx + 0x12], dil
jmp 0x14002c6b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14002c690
mov rcx, qword [rbx + 0x38]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 8]
lea r8, [rsp + 0x70]
mov r9d, 1
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x14002c649
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001ee80
lea rcx, [rbx + 0x60]
mov edi, eax
call fcn.140030c30
mov byte [rbx + 0x12], r13b
test edi, edi
js 0x14002c6c3
mov eax, dword [rsp + 0x70]
add r14, rax
add r15, rax
sub rbp, rax
jne 0x14002c603
mov r12, qword [rsp + 0x38]
mov ecx, 0xffffffff
mov r13, qword [rsp + 0x88]
cmp edi, 0xfffffed3
jne 0x14002c6e1
mov byte [rbx + 0x14], 1
xor eax, eax
test r13, r13
je 0x14002c6fb
mov qword [r13], r14
test edi, edi
jns 0x14002c6fb
test r14, r14
je 0x14002c6fb
cmp edi, 0xfffffffa
cmovne edi, eax
add dword [rbx + 0x18], ecx
mov r14, qword [rsp + 0x30]
jmp 0x14002c70a
mov edi, 0xffffffea
lea rcx, [rbx + 0x60]
call fcn.140030e10
mov rsi, qword [rsp + 0x78]
mov eax, edi
mov rdi, qword [rsp + 0x40]
add rsp, 0x48
pop r15
pop r13
pop rbp
pop rbx
ret
mov eax, 0xffffffda
add rsp, 0x48
pop r15
pop r13
pop rbp
pop rbx
ret
mov eax, 0xfffffffc
add rsp, 0x48
pop r15
pop r13
pop rbp
pop rbx
ret
Function at 0x14002cbb0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov esi, r8d
mov rbp, rdx
mov rbx, rcx
cmp rcx, 0x1000
jb 0x14002ccd9
movabs rax, 0xffff800000000000
test rax, rcx
jne 0x14002ccd9
cmp dword [rcx], 0x19570528
jne 0x14002ccd9
add rcx, 0x60
call fcn.140030c30
test eax, eax
js 0x14002ccd9
cmp dword [rbx + 0x18], 0
je 0x14002cc29
cmp qword [rbx + 0x58], rbp
je 0x14002cc29
lea rcx, [rbx + 0x60]
mov edi, 0xffffffff
call fcn.140030e10
mov eax, edi
jmp 0x14002ccde
mov edx, esi
mov rcx, rbx
call fcn.14002b630
mov edi, eax
test eax, eax
jne 0x14002cca5
cmp byte [rsp + 0x70], al
jne 0x14002cca5
movzx eax, byte [rbx + 0x12]
test al, al
jne 0x14002cc9e
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
movzx eax, byte [rbx + 0x12]
test al, al
jne 0x14002cc9e
cmp byte [rbx + 0x10], al
je 0x14002cc9e
test sil, 1
je 0x14002cc9e
mov rcx, qword [rbx + 8]
lea rax, [rbx + 0x20]
lea rdx, [rbx + 0x90]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], edi
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002ccb2
mov edx, esi
mov rcx, rbx
call fcn.14002b630
mov edi, eax
test eax, eax
jne 0x14002cca5
inc dword [rbx + 0x18]
mov qword [rbx + 0x58], rbp
lea rcx, [rbx + 0x60]
call fcn.140030e10
mov eax, edi
jmp 0x14002ccde
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14002ccc7
mov word [rbx + 0x12], 0x101
jmp 0x14002cc9e
lea rcx, [rbx + 0x60]
mov edi, 4
call fcn.140030e10
mov eax, edi
jmp 0x14002ccde
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x14002f4b0
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push r14
push r15
sub rsp, 0x40
mov ebp, r8d
mov r14, rdx
mov r8d, ecx
mov edx, 1
mov ecx, 0x2000000
mov r15, r9
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x14002f6b8
lea r8, [rsp + 0x38]
mov qword [rsp + 0x60], rbx
mov edx, 0x201ef
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14002f68a
mov qword [rsp + 0x68], rdi
xor ecx, ecx
mov qword [rsp + 0x70], r12
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
xor r12d, r12d
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov dword [rsp + 0x30], r12d
xor r8d, r8d
lea edx, [r12 + 1]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x14002f66e
cmp eax, 0x7a
jne 0x14002f65f
mov ecx, dword [rsp + 0x30]
test ecx, ecx
je 0x14002f663
lea rdx, [0x140054850]
call fcn.14001ed50
mov rdi, rax
test rax, rax
je 0x14002f658
mov r9d, dword [rsp + 0x30]
lea rax, [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
lea edx, [rbx + 1]
mov r8, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x14002f63f
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x14002f630
mov rcx, qword [rdi]
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x14002f630
cmp ebp, 0xffffffff
je 0x14002f617
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9d, [r12 + 4]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x34]
mov dword [rsp + 0x34], 0xffffffff
lea edx, [rbx + 0xc]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x14002f604
cmp ebp, dword [rsp + 0x34]
mov ebx, 0xffffffb2
cmove ebx, r12d
jmp 0x14002f613
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001ee80
mov ebx, eax
test ebx, ebx
js 0x14002f64e
mov rcx, qword [rsp + 0x38]
mov rdx, r15
call fcn.14002efe0
mov rcx, rdi
mov ebx, eax
call fcn.14001ed80
jmp 0x14002f673
mov rcx, rdi
mov ebx, 0xffffffb2
call fcn.14001ed80
jmp 0x14002f673
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001ee80
mov ebx, eax
mov rcx, rdi
call fcn.14001ed80
jmp 0x14002f673
mov ebx, 0xfffffff8
jmp 0x14002f673
test eax, eax
je 0x14002f66e
mov ecx, eax
call fcn.14001ee80
mov ebx, eax
jmp 0x14002f673
mov ebx, 0xffffff1a
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r12, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x68]
jmp 0x14002f699
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001ee80
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rsi
jmp fcn.14001ee80
Function at 0x1400307d0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
cmp ecx, 0xffffffff
jne 0x1400307e5
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov eax, dword [0x1400a0f4c]
mov qword [rsp + 0x40], rdi
cmp eax, 0x10
je 0x14003081a
add eax, 0xfffffffa
cmp eax, 1
jbe 0x14003081a
xor r9d, r9d
lea rdx, [0x14002f960]
xor r8d, r8d
lea rcx, [0x1400a0f40]
call fcn.140037360
mov edi, eax
jmp 0x140030820
mov edi, dword [0x1400a0f50]
test edi, edi
js 0x1400308b8
mov ecx, ebx
call fcn.14002f1f0
test rax, rax
je 0x140030860
mov edx, 0x7f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x1400308b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001ee80
mov edi, eax
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop rbx
ret
xor edx, edx
mov qword [rsp + 0x38], rsi
mov r8d, ebx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x1400308b3
mov edx, 0x7f
mov qword [rsp + 0x30], rbp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x1400308ae
mov ecx, ebp
call fcn.14001ee80
mov edi, eax
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov eax, edi
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop rbx
ret
Function at 0x140036b10
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push r12
push r14
sub rsp, 0x38
mov r12, r9
mov rsi, r8
mov r14, rdx
mov rdi, rcx
cmp rcx, 0x1000
jb 0x140036d43
movabs rax, 0xffff800000000000
test rax, rcx
jne 0x140036d43
cmp dword [rcx], 0x19530414
jne 0x140036d43
cmp rdx, 0x1000
jb 0x140036d33
test rax, rdx
jne 0x140036d33
mov qword [rsp + 0x68], rbx
add rcx, 8
mov qword [rsp + 0x70], rbp
call fcn.140030c30
mov ebx, eax
test eax, eax
js 0x140036d1c
lock inc dword [rdi + 0x38]
cmp qword [rdi + 0x48], 0
jne 0x140036d0f
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x30], r15
call fcn.1400204c0
xor r13d, r13d
mov qword [rdi + 0x48], rax
mov r15d, r13d
test rsi, rsi
je 0x140036ce6
nop word [rax + rax]
movzx eax, byte [rdi + 0x3d]
mov dword [rsp + 0x60], r13d
test al, al
jne 0x140036ce1
cmp byte [rdi + 0x3c], r13b
jne 0x140036c7e
mov rcx, qword [rdi + 0x70]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea rcx, [rdi + 8]
call fcn.140030e10
mov rcx, qword [rdi + 0x40]
lea rbx, [rdi + 0x58]
mov eax, 0xffffffff
mov qword [rsp + 0x20], rbx
cmp rsi, rax
lea r9, [rsp + 0x60]
mov r8d, eax
mov rdx, r14
cmovbe r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140036c27
lea rcx, [rdi + 8]
call fcn.140030c30
jmp 0x140036c6c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x140036cd0
mov rcx, qword [rdi + 0x70]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rcx, [rdi + 8]
call fcn.140030c30
mov rcx, qword [rdi + 0x40]
lea r8, [rsp + 0x60]
mov r9d, 1
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x140036cc8
mov eax, dword [rsp + 0x60]
mov ebx, r13d
sub rsi, rax
add r15, rax
add r14, rax
jmp 0x140036cbd
lea rcx, [rdi + 8]
call fcn.140030e10
mov rcx, qword [rdi + 0x70]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rcx, [rdi + 8]
mov ebx, eax
call fcn.140030c30
mov edx, ebx
mov rcx, rdi
call fcn.140036710
mov ecx, 0x80000000
mov ebx, eax
add eax, ecx
test ecx, eax
jne 0x140036cbd
cmp ebx, 0xffffffd8
jne 0x140036ce6
test rsi, rsi
jne 0x140036bc0
jmp 0x140036ce6
movzx eax, byte [rdi + 0x3d]
test al, al
jne 0x140036ce1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001ee80
mov ebx, eax
jmp 0x140036ce6
mov ebx, 0xffffffba
test r12, r12
je 0x140036cff
mov qword [r12], r15
test ebx, ebx
jns 0x140036cff
test r15, r15
je 0x140036cff
cmp ebx, 0xfffffffa
cmovne ebx, r13d
mov r15, qword [rsp + 0x30]
mov qword [rdi + 0x48], r13
mov r13, qword [rsp + 0x78]
jmp 0x140036d14
mov ebx, 0xffffffea
mov rcx, rdi
call fcn.140036440
mov rbp, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x38
pop r14
pop r12
pop rdi
pop rsi
ret
mov eax, 0xfffffffa
add rsp, 0x38
pop r14
pop r12
pop rdi
pop rsi
ret
mov eax, 0xfffffffc
add rsp, 0x38
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140036d60
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rbp, r8
mov rsi, rdx
mov rdi, rcx
cmp rcx, 0x1000
jb 0x140036f6b
movabs rax, 0xffff800000000000
test rax, rcx
jne 0x140036f6b
cmp dword [rcx], 0x19530414
jne 0x140036f6b
cmp rdx, 0x1000
jb 0x140036f5e
test rax, rdx
jne 0x140036f5e
test r8, r8
je 0x140036f51
mov qword [rsp + 0x68], rbx
add rcx, 8
mov qword [rsp + 0x30], r15
call fcn.140030c30
mov ebx, eax
test eax, eax
js 0x140036f3d
lock inc dword [rdi + 0x38]
cmp qword [rdi + 0x78], 0
jne 0x140036f30
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], r13
call fcn.1400204c0
mov qword [rdi + 0x78], rax
xor r12d, r12d
mov r13d, 0xffffffff
mov qword [rsp + 0x38], r14
nop dword [rax]
movzx eax, byte [rdi + 0x3d]
mov dword [rsp + 0x60], r12d
test al, al
jne 0x140036f16
mov rcx, qword [rdi + 0xa0]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea rcx, [rdi + 8]
call fcn.140030e10
mov rcx, qword [rdi + 0x40]
lea rbx, [rdi + 0x88]
cmp rbp, r13
mov qword [rsp + 0x20], rbx
mov r14d, r13d
lea r9, [rsp + 0x60]
cmovbe r14d, ebp
mov rdx, rsi
mov r8d, r14d
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140036e6b
mov ebx, r12d
jmp 0x140036ebe
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x140036f08
mov rcx, qword [rdi + 0xa0]
mov edx, r13d
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140036eec
mov rcx, qword [rdi + 0x40]
lea r9d, [rax + 1]
lea r8, [rsp + 0x60]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x140036eaf
mov ebx, r12d
jmp 0x140036ebe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001ee80
mov ebx, eax
mov eax, dword [rsp + 0x60]
lea rcx, [rdi + 8]
cmp eax, r14d
cmova eax, r14d
mov dword [rsp + 0x60], eax
call fcn.140030c30
test ebx, ebx
js 0x140036f1b
mov eax, dword [rsp + 0x60]
add rsi, rax
sub rbp, rax
jne 0x140036e10
jmp 0x140036f1b
cmp eax, 0x102
jne 0x140036efa
mov ebx, 0xffffffd8
jmp 0x140036ebe
cmp eax, 0x80
jne 0x140036eaf
mov ebx, 0xfffffffc
jmp 0x140036ebe
cmp eax, 0xe8
jne 0x140036eb5
mov ebx, 0xfffffed3
jmp 0x140036ebe
mov ebx, 0xffffffba
mov r14, qword [rsp + 0x38]
mov r13, qword [rsp + 0x78]
mov qword [rdi + 0x78], r12
mov r12, qword [rsp + 0x70]
jmp 0x140036f35
mov ebx, 0xffffffea
mov rcx, rdi
call fcn.140036440
mov r15, qword [rsp + 0x30]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
mov eax, 0xfffffffe
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
mov eax, 0xfffffffa
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
mov eax, 0xfffffffc
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x140037f80
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
sub rsp, 0x20
mov qword [rsp + 0x30], rsi
mov esi, ecx
mov ecx, 0x8001
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
or eax, 0x8001
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov rcx, qword [0x1400a9830]
lea rdx, str.SetDllDirectoryW
xor ebp, ebp
mov ebx, ebp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140037fe8
lea rcx, [0x1400697f0]
call qword [case.0x14004be35.0]
test eax, eax
je 0x140037fe3
mov dword [0x1400a1130], 2
jmp 0x140037fe8
mov ebx, 0xffffff1d
and esi, 4
mov qword [rsp + 0x38], rdi
cmp dword [0x1400a970c], 0x6c
jg 0x140037ffd
test esi, esi
je 0x140038050
mov rcx, qword [0x1400a9830]
lea rdx, str.SetDefaultDllDirectories
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140038050
mov ecx, 0x800
test esi, esi
mov edi, 0xa00
cmovne edi, ecx
mov ecx, edi
call qword [case.0x14004be35.0]
test eax, eax
je 0x140038046
and edi, 0x200
neg edi
sbb eax, eax
add eax, 4
mov dword [0x1400a1130], eax
jmp 0x140038050
test ebx, ebx
mov eax, 0xffffff1c
cmovns ebx, eax
mov rcx, qword [0x1400a9830]
lea rdx, str.GetCurrentThreadStackLimits
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a9830]
lea rdx, str.SetUnhandledExceptionFilter
mov qword [0x1400a96f8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a9830]
lea rdx, str.UnhandledExceptionFilter
mov qword [0x1400a9898], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, qword [rsp + 0x30]
mov qword [0x1400a98a0], rax
mov rax, qword [0x1400a9898]
test rax, rax
je 0x1400380d9
cmp qword [0x1400a9700], rbp
jne 0x1400380d9
lea rdi, [0x140038670]
mov rcx, rdi
call qword [case.0x14004be35.0]
cmp rax, rdi
cmove rax, rbp
mov qword [0x1400a9700], rax
mov rdi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rbp
ret
Function at 0x14003aad0
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14003aae5
xor eax, eax
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
add rsp, 0x28
jmp fcn.14001ee80

Function at 0x14003ab00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
mfence
mov eax, dword [0x1400aaa00]
test eax, eax
je 0x14003ab84
mov qword [rsp + 0x30], rbx
lea rcx, [0x1400aaa10]
mov qword [rsp + 0x20], rdi
call fcn.14004abe0
mov rbx, qword [0x1400aaa50]
lea rdi, [0x1400aaa50]
cmp rbx, rdi
je 0x14003ab6e
nop word [rax + rax]
mov ecx, dword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14003ab66
mov rcx, rax
mov rax, qword [rbx + 0x18]
call qword [case.0x14004be35.0]
mov ecx, dword [rbx + 0x10]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x14003ab40
lea rcx, [0x1400aaa10]
call fcn.14004abf0
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret