joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140078ea0
Capabilities:
Create process on windows
Create process suspended
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x1060
call fcn.14007cb60
sub rsp, rax
lea rax, [rsp + 0x60]
mov rdi, rax
xor eax, eax
mov ecx, 0x800
rep stosb byte [rdi], al
lea rax, [rsp + 0x860]
mov rdi, rax
xor eax, eax
mov ecx, 0x800
rep stosb byte [rdi], al
mov qword [rsp + 0x50], 0
mov rax, qword [rsp + 0x1070]
mov rax, qword [rax + 0x10]
mov qword [rax + 0x10], 0
mov r8d, 0x400
lea rdx, [rsp + 0x60]
mov rax, qword [rsp + 0x1070]
mov rcx, qword [rax]
call fcn.140079508
test eax, eax
jne 0x140078f30
mov rax, qword [rsp + 0x1070]
mov edx, dword [rax + 8]
mov ecx, 7
call fcn.140066318
xor eax, eax
jmp 0x140079083
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, eax
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0x400
jae 0x140078f6c
lea rdx, [rsp + 0x860]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rax, [rsp + 0x860]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x1070]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x1070]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x1070]
mov eax, dword [rax + 0x20]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x60]
xor r8d, r8d
mov edx, 2
mov rcx, qword [0x1400cf3e0]
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
test eax, eax
je 0x140078fdd
mov eax, 1
jmp 0x140079083
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x140079018
cmp qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW], 0
je 0x140079018
cmp dword [0x1400cf408], 1
jne 0x140079018
mov r8, qword [rsp + 0x50]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x1070]
call fcn.140078d20
jmp 0x140079083
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x140079063
mov rax, qword [rsp + 0x1070]
mov rax, qword [rax + 0x10]
mov eax, dword [rax]
cmp rax, 0x70
jne 0x140079063
cmp qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW], 0
je 0x140079063
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rax, qword [rsp + 0x1070]
mov rdx, qword [rax]
mov ecx, 0x4a
call fcn.140066484
xor eax, eax
jmp 0x140079083
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rax, qword [rsp + 0x1070]
mov rdx, qword [rax]
mov ecx, 0x29
call fcn.140066484
xor eax, eax
add rsp, 0x1060
pop rdi
ret
Function at 0x14007a7b8
Capabilities:
Terminate process

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov r8d, dword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.14006ffc8
lea rcx, [rsp + 0x30]
call fcn.14007000c
mov dword [rsp + 0x20], eax
mov r8d, dword [rsp + 0x20]
xor edx, edx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14007a834
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x14007a834
jmp 0x14007a84b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov edx, dword [rsp + 0x20]
mov ecx, 0x23
call fcn.14006633c
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x50
pop rdi
ret
Function at 0x14007c64c
Capabilities:
Impersonate user

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.14007c2b8
lea rax, [0x1400cf3e0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 3
mov r9d, 9
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_LogonUserA]
test eax, eax
jne 0x14007c6b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, 0x18
call fcn.140066318
jmp 0x14007c7dc
mov rcx, qword [0x1400cf3e0]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x14007c6db
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, 0x19
call fcn.140066318
jmp 0x14007c7dc
mov ecx, 0x800
call fcn.14006fe58
mov qword [0x1400cf400], rax
mov edx, 0x200
mov rcx, qword [0x1400cf400]
call fcn.14007009c
mov qword [0x1400cf3e8], rax
mov edx, 0x200
mov rcx, qword [0x1400cf400]
call fcn.14007009c
mov qword [0x1400cf3f0], rax
mov edx, 0x400
mov rcx, qword [0x1400cf400]
call fcn.14007009c
mov qword [0x1400cf3f8], rax
mov r8d, 0x100
mov rdx, qword [0x1400cf3f0]
mov rcx, qword [rsp + 0x58]
call fcn.140079508
mov r8d, 0x100
mov rdx, qword [0x1400cf3e8]
mov rcx, qword [rsp + 0x50]
call fcn.140079508
mov r8d, 0x200
mov rdx, qword [0x1400cf3f8]
mov rcx, qword [rsp + 0x60]
call fcn.140079508
mov dword [0x1400cf408], 1
mov r8d, 0x400
mov rdx, qword [rsp + 0x58]
mov rcx, qword [0x1400cf3e0]
call fcn.14007c920
test eax, eax
je 0x14007c7dc
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0xffffffffffffffff
inc qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
cmp byte [rax + rcx], 0
jne 0x14007c7b1
mov rax, qword [rsp + 0x30]
mov r8d, reloc.WS2_32.dll_ntohs
mov edx, eax
mov rcx, qword [rsp + 0x58]
call qword [rsp + 0x68]
add rsp, 0x48
ret
Function at 0x14008574c
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x140085520
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140085520
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140085520
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140085520
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140085520
cmp dword [rcx + 0x84], 0xe
jbe 0x140085520
cmp dword [rcx + 0xf8], esi
je 0x140085520
mov ecx, r14d
call fcn.140085668
mov ecx, 2
call fcn.14008ab8c
nop
cmp byte [0x1400cf610], 0
jne 0x1400855ea
mov r15d, 1
mov eax, r15d
xchg dword [0x1400cf600], eax
test ebx, ebx
jne 0x140085593
mov rdi, qword [0x1400c9948]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x1400cf608]
cmp rcx, rax
je 0x14008558a
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.14007d134]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1400cf880]
jmp 0x14008559f
cmp ebx, r15d
jne 0x1400855a5
lea rcx, [0x1400cf898]
call fcn.140087be4
nop
test ebx, ebx
jne 0x1400855bc
lea rdx, [0x140096660]
lea rcx, [0x140096640]
call fcn.14008750c
lea rdx, [0x140096670]
lea rcx, [0x140096668]
call fcn.14008750c
movzx eax, byte [0x1400cf610]
test esi, esi
cmove eax, r15d
mov byte [0x1400cf610], al
jmp 0x1400855ea
mov ecx, 2
call fcn.14008abe0
test esi, esi
jne 0x140085601
mov ecx, r14d
call fcn.14008561c
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x1400854b0
Function at 0x14008c768
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x14008c608
call fcn.140088bac
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.140088a18
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14008c5f0
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x14008c5f0
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x14008c63a
lock or dword [rax + 0x14], 0x10
jmp 0x14008c5f0
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x14008c657
mov rcx, qword [rbp + 0x10]
call fcn.140092cac
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.14008a5cc
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.14008c040
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x14008c6ae
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x14008c5f0
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x14008c71a
mov rcx, qword [rbp + 0x10]
call fcn.14008a5cc
cmp eax, 0xffffffff
je 0x14008c701
mov rcx, qword [rbp + 0x10]
call fcn.14008a5cc
cmp eax, 0xfffffffe
je 0x14008c701
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.14008a5cc
movsxd rdi, eax
lea rsi, [0x1400cf8f0]
mov rcx, rbx
sar rdi, 6
call fcn.14008a5cc
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x14008c708
lea rax, [0x1400c9bf0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14008c71a
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x14008c750
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x14008c74c
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x14008c74c
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x14008c5f3
jmp 0x14008c5c0

Function at 0x14008d758
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14008d778
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140088b3c
or eax, 0xffffffff
jmp 0x14008d77a
xor eax, eax
add rsp, 0x28
ret

Function at 0x14008d780
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14008d7a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140088b3c
or eax, 0xffffffff
jmp 0x14008d7a2
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400017c4
Capabilities:
Parse pe header

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

Function at 0x1400059c4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400057c0
Function at 0x140008a8c
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 0x140008abc
xor eax, eax
jmp 0x140008b7f
mov rbp, rbx
cmp word [rax], si
je 0x140008ae1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140008ac8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140008ac4
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.1400089ac
movsxd r14, eax
test eax, eax
jne 0x140008b1f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140008ab5
mov rcx, r14
call fcn.140009968
mov rdi, rax
test rax, rax
jne 0x140008b38
xor ecx, ecx
call fcn.14000700c
jmp 0x140008b14
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.1400089ac
test eax, eax
jne 0x140008b69
mov rcx, rdi
call fcn.14000700c
jmp 0x140008b73
xor ecx, ecx
call fcn.14000700c
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 0x14000c070
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140007a7c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14000c0fa
cmp byte [rbp - 0x21], r15b
je 0x14000c0f5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14000c130
call fcn.14000a178
test eax, eax
jne 0x14000c11c
cmp byte [rbp - 0x21], r15b
je 0x14000c114
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14000c130
cmp byte [rbp - 0x21], r15b
je 0x14000c12d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000705c
test eax, eax
jne 0x14000c1d0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140007a7c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14000c16f
cmp byte [rbp - 0x21], r15b
je 0x14000c1a4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14000c1a4
call fcn.14000a178
test eax, eax
jne 0x14000c190
cmp byte [rbp - 0x21], r15b
je 0x14000c189
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14000c1a4
cmp byte [rbp - 0x21], r15b
je 0x14000c1a1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000705c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14000c1d0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14000c1d3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14000c1e1
mov rcx, rdi
call fcn.14000700c
cmp byte [rbp + 0x3f], r15b
je 0x14000c1f0
mov rcx, qword [rbp + 0x27]
call fcn.14000700c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14000f020
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000f048
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14000f048
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1800258f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x90
lea rbp, [rsp + 0x80]
mov qword [rbp + 8], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x40]
call fcn.180017f90
mov rax, qword [rbp - 0x40]
mov rdi, qword [rbp - 0x38]
mov rcx, rax
neg rcx
jno 0x18002593d
mov qword [rbp - 0x20], rdi
movabs rax, 0x8000000000000000
mov qword [rbp - 0x28], rax
jmp 0x18002596e
mov rcx, qword [rbp - 0x30]
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], rcx
lea rcx, [rbp - 0x28]
lea rdx, [rbp - 0x58]
call fcn.180025800
mov rbx, qword [rbp - 0x28]
mov rdi, qword [rbp - 0x20]
mov rax, rbx
neg rax
jno 0x1800259f5
mov eax, edi
and eax, 3
cmp eax, 1
jne 0x1800259da
lea rax, [rdi - 1]
mov qword [rbp - 0x10], rax
mov rax, qword [rdi - 1]
mov qword [rbp - 8], rax
mov rax, qword [rdi + 7]
mov qword [rbp], rax
mov rax, qword [rax]
test rax, rax
je 0x18002599e
mov rcx, qword [rbp - 8]
call rax
mov r8, qword [rbp - 8]
mov rax, qword [rbp]
cmp qword [rax + 8], 0
je 0x1800259c7
cmp qword [rax + 0x10], 0x11
jb 0x1800259b8
mov r8, qword [r8 - 8]
mov rcx, qword [0x183967f90]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x183967f90]
xor edx, edx
mov r8, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_HeapFree]
movabs rax, 0x8000000000000000
mov qword [rsi], rax
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov r14, qword [rbp - 0x18]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180025a14
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r14
jmp 0x1800259e7
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rbx, rbx
je 0x1800259e7
mov rcx, qword [0x183967f90]
xor edx, edx
mov r8, rdi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp qword [sym.imp.KERNEL32.dll_HeapFree]
Function at 0x14000c470
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsp
pop rbp
nop
nop
push rdx
pop rax
sub rdx, rcx
cmp rdx, 0x20
jae 0x14000c495
cmp rax, rcx
je 0x14000c49b
cmp rdx, 4
jae 0x14000c4a2
sub eax, eax
sub r8d, r8d
jmp 0x14000c540
pop rbp
jmp fcn.1400031f0
xor eax, eax
jmp 0x14000c557
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
sub eax, eax
movdqa xmm2, xmmword [0x1400383b0]
movdqa xmm3, xmmword [0x1400383c0]
pxor xmm1, xmm1
nop word cs:[rax + rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x14000c4d0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14000c557
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14000c540
pop rbp
ret
Function at 0x140011930
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rdi, rcx
mov esi, dword [0x140037088]
or esi, esi
je 0x1400119d3
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x1400119ca
je 0x140011979
test rdi, rdi
je 0x14001197d
mov rbx, qword [rdi]
mov qword [rdi], 0
test rbx, rbx
je 0x14001197f
mov rbx, qword [rdi + 8]
jmp 0x14001197f
sub eax, eax
jmp 0x1400119ca
xor ebx, ebx
movzx eax, byte [0x1402c3030]
mov ecx, 0x10
call fcn.1400329d0
test rax, rax
je 0x1400119e6
mov qword [rax], rbx
mov dword [rax + 8], esi
mov ecx, esi
push rax
pop rbx
nop
call sub.kernel32.dll_TlsGetValue
push rax
nop
pop rdi
mov ecx, esi
push rbx
nop
pop rsi
push rbx
pop rdx
nop
call sub.kernel32.dll_TlsSetValue
or rdi, rdi
je 0x1400119c7
mov edx, 8
mov rcx, rdi
call fcn.140002380
push rsi
nop
pop rax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x140037070]
call fcn.140011bc0
mov esi, eax
jmp 0x140011950
mov ecx, 8
mov edx, 0x10
call fcn.1400026c0
int3

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

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov esi, dword [0x1400370a8]
or esi, esi
je 0x140011a9e
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x140011a95
je 0x140011a93
movzx eax, byte [0x1402c3030]
mov ecx, 0x10
call fcn.1400329d0
test rax, rax
je 0x140011ab1
mov qword [rax], 0
mov dword [rax + 8], esi
mov ecx, esi
push rax
pop rbx
nop
call sub.kernel32.dll_TlsGetValue
nop
push rax
pop rdi
mov ecx, esi
push rbx
pop rsi
nop
push rbx
pop rdx
nop
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x140011a8e
mov rax, qword [rdi]
test rax, rax
je 0x140011a81
lock dec qword [rax]
jne 0x140011a81
push rdi
pop rcx
nop
call fcn.14000ffd0
mov edx, 8
nop
push rdi
pop rcx
call fcn.140002380
nop
push rsi
pop rax
jmp 0x140011a95
sub eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x140037090]
call fcn.140011bc0
mov esi, eax
jmp 0x140011a1d
mov ecx, 8
mov edx, 0x10
call fcn.1400026c0
int3
Function at 0x140011bc0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov rsi, rcx
cmp qword [rcx], 0
je 0x140011c55
mov dword [rbp], 0
lea rbx, [rsi + 0x10]
mov r8, rbp
push rbx
nop
pop rcx
xor edx, edx
xor r9d, r9d
call sub.kernel32.dll_InitOnceBeginInitialize
mov dword [rbp - 4], eax
cmp eax, 1
jne 0x140011c94
cmp dword [rbp], 0
je 0x140011c78
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140011ca9
mov edi, eax
mov rax, qword [0x1402c5040]
mov rax, qword [0x1402c30d8]
nop word cs:[rax + rax]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1402c30d8], rsi
jne 0x140011c30
mov eax, edi
inc eax
mov dword [rsi + 0x18], eax
nop
push rbx
pop rcx
xor edx, edx
sub r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x140011c89
call sub.kernel32.dll_TlsAlloc
mov dword [rbp + 4], eax
cmp eax, 0xffffffff
je 0x140011ceb
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x140011c7d
mov edi, dword [rbp + 4]
jmp 0x140011c89
mov edi, dword [rsi + 0x18]
jmp 0x140011c87
mov edi, eax
mov ecx, dword [rbp + 4]
call sub.kernel32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov qword [rbp - 0x38], 0
lea rcx, [rbp - 4]
lea rdx, [rbp - 0x38]
call fcn.140011d20
push rbx
pop rcx
nop
mov edx, 4
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
mov qword [rbp - 0x28], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rdx, str.std_src_sys_thread_localkeywindows.rs
lea rcx, [rbp - 0x38]
call fcn.140002f20
lea rax, str.out_of_TLS_indexes
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
mov qword [rbp - 0x28], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 4]
lea rdx, [rbp - 0x38]
call fcn.140011d70
int3

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

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov esi, dword [0x140037068]
test esi, esi
je 0x140012238
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x14001222f
je 0x14001222d
movzx eax, byte [0x1402c3030]
mov ecx, 0x18
call fcn.1400329d0
or rax, rax
je 0x140012248
mov qword [rax], 0
mov byte [rax + 8], 0
mov dword [rax + 0x10], esi
mov ecx, esi
nop
push rax
pop rbx
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
push rbx
pop rsi
nop
nop
push rbx
pop rdx
call sub.kernel32.dll_TlsSetValue
or rdi, rdi
je 0x140012228
mov edx, 8
push rdi
pop rcx
nop
call fcn.140002380
push rsi
pop rax
nop
jmp 0x14001222f
sub eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x140037050]
call fcn.140011bc0
mov esi, eax
jmp 0x1400121c9
mov ecx, 8
mov edx, 0x18
call fcn.1400026c0
int3

Function at 0x140013ec0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
movzx r9d, byte [rdx + 0x38]
cmp byte [rcx - 0x80], al
stc
add dword [rsi + 7], esi
movzx r8d, byte [rdx + 0x3a]
test r8b, 1
jne 0x140013f2e
movzx eax, byte [rdx + 0x10]
lea r10d, [rax - 5]
Function at 0x140036150
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140036f60
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.140036f60
mov rdx, r12
nop
push rax
pop rcx
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]