joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140039320
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14003932d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14003933d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140039325
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140039355
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140039342
sub eax, 3
jb 0x14003936f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400393a6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x140039396
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140039394
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140039383
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.1400392e2
jmp 0x14003932d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x22e00
mov dl, reloc.COMCTL32.dll_InitCommonControls
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400393f2
cmp rsi, rcx
jae 0x1400393fa
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400393d9
cmp al, 0x8f
ja 0x1400393d9
cmp byte [rsi - 2], 0xf
je 0x1400393df
sub al, 0xe8
cmp al, 1
ja 0x1400393c3
cmp rsi, rcx
jae 0x1400393fa
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400393c9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400393fa
lodsb al, byte [rsi]
jmp 0x1400393d9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x37000]
mov eax, dword [rdi]
or eax, eax
je 0x140039463
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x3dc8c]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140039407
jns 0x14003943c
movzx rdx, word [rdi]
add rdi, 2
jmp 0x140039446
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14003945d
mov qword [rbx], rax
add rbx, 8
jmp 0x140039427
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x18f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1400394bb
sub rsp, 0xffffffffffffff80
jmp 0x140023590
Function at 0x14000631c
Capabilities:
Terminate process

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, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140010960], rbx
je 0x140006383
cmp rax, rbx
jne 0x140006376
mov ebx, 1
mov esi, ebx
jmp 0x140006388
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14000635b
mov ebx, 1
mov eax, dword [0x140010968]
cmp eax, ebx
jne 0x1400063a0
mov edi, 0x1f
mov ecx, edi
call fcn.1401a5000
jmp 0x14000640c
mov eax, dword [0x140010968]
test eax, eax
jne 0x140006401
mov dword [0x140010968], ebx
lea r15, [0x1400089c8]
lea rdi, [0x1400089b0]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x1400063f3
test eax, eax
jne 0x1400063f7
cmp qword [rdi], r14
je 0x1400063e8
mov rax, qword [rdi]
mov rcx, qword [0x140008930]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x1400063ca
test eax, eax
je 0x140006407
mov eax, 0xff
jmp 0x140006562
mov dword [0x14000e3e4], ebx
mov edi, 0x1f
mov eax, dword [0x140010968]
cmp eax, ebx
jne 0x140006433
lea rdx, [0x1400089a8]
lea rcx, [0x140008938]
call sub.msvcrt.dll__initterm
mov dword [0x140010968], 2
test esi, esi
jne 0x140006441
mov rax, r14
xchg qword [0x140010960], rax
cmp qword [0x140010970], r14
je 0x140006474
lea rcx, [0x140010970]
call fcn.140006730
test eax, eax
je 0x140006474
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140010970]
mov r9, qword [0x140008930]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14000648d
mov eax, 0xff
jmp 0x140006562
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x140006513
test ax, ax
je 0x1400064a8
test edx, edx
jne 0x140006513
sub ax, bx
cmp ax, di
ja 0x1400064be
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x1400064a8
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140001394
mov dword [0x14000e3e0], eax
cmp dword [0x14000e400], r14d
jne 0x1400064fc
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14000e3e4], r14d
jne 0x140006511
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14000e3e0]
jmp 0x140006562
cmp ax, 0x22
jne 0x140006527
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x140006496
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.1400067b0
add rsp, 0x28
jmp 0x14000631c
Function at 0x14000c800
Capabilities:
Create service
Modify service
Persist via windows service
Start service

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x2a0
mov rax, qword [0x14012aab8]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rdi, rcx
mov qword [rsp + 0x70], rdx
xor edx, edx
lea rcx, [rsp + 0x80]
mov r8d, 0x208
call sub.msvcrt.dll_memset
mov r8d, 0x104
lea rdx, [rsp + 0x80]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
nop dword [rax + rax]
test eax, eax
jne 0x14000c89f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
lea rcx, str.Service:_Cannot_install_service___u__n
mov edx, eax
call qword [sym.imp.msvcrt.dll_wprintf_s]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1400c9570
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x2a0
pop rdi
ret
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x14000c8d2
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
lea rcx, str.Service:_OpenSCManager_failed___u__n
jmp 0x14000c86f
and qword [rsp + 0x60], 0
lea rax, [rsp + 0x80]
and qword [rsp + 0x58], 0
lea rdx, str.SensorDataService
and qword [rsp + 0x50], 0
mov r9d, 0xf01ff
and qword [rsp + 0x48], 0
mov r8, rdi
and qword [rsp + 0x40], 0
mov rcx, rbx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CreateServiceW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x14000c979
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edx, eax
lea rcx, str.Service:_CreateService_failed___u__n
call qword [sym.imp.msvcrt.dll_wprintf_s]
nop dword [rax + rax]
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
nop dword [rax + rax]
test eax, eax
je 0x14000ca07
jmp 0x14000c87d
lea rcx, str.Service:_Installed_successfully_n
call qword [sym.imp.msvcrt.dll_wprintf_s]
nop dword [rax + rax]
lea r8, [rsp + 0x70]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfig2W]
nop dword [rax + rax]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_StartServiceW]
nop dword [rax + rax]
test eax, eax
jne 0x14000c9d0
lea rcx, str.Service:_Failed_to_start_n
call qword [sym.imp.msvcrt.dll_wprintf_s]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
nop dword [rax + rax]
test eax, eax
jne 0x14000c95d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.14000df60
int3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.14000df60
int3
Function at 0x14000fd0c
Capabilities:
Check if file exists

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 - 0x168]
sub rsp, 0x250
mov rax, qword [0x14012aab8]
xor rax, rsp
mov qword [rbp + 0x140], rax
xor r15d, r15d
lea rax, [rsp + 0x30]
mov qword [r8], r15
lea rdx, [rsp + 0x30]
sub rcx, rax
mov r14, r8
mov r9d, 0x104
lea rax, [r9 + 0x7ffffefa]
test rax, rax
je 0x14000fd7d
movzx eax, word [rcx + rdx]
test ax, ax
je 0x14000fd7d
mov word [rdx], ax
add rdx, 2
sub r9, 1
jne 0x14000fd5b
test r9, r9
lea rax, [rdx - 2]
lea r8, [0x1400db590]
cmovne rax, rdx
lea rcx, [rsp + 0x30]
mov word [rax], r15w
call fcn.14000dfa8
mov ebx, 0x1f0003
lea r8, [rsp + 0x30]
mov ecx, ebx
xor edx, edx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x14000fdf3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
je 0x14000febc
mov edx, 0xc9
mov rcx, qword [rbp + 0x168]
lea r8, [0x1400db4d4]
call fcn.14000f748
mov esi, eax
jmp 0x14000febf
lea rdx, [rsp + 0x24]
mov dword [rsp + 0x24], r15d
mov rcx, rdi
mov dword [rsp + 0x20], r15d
call fcn.14000fb84
mov esi, eax
test eax, eax
jns 0x14000fe30
mov rcx, qword [rbp + 0x168]
lea r8, [0x1400db4d4]
mov r9d, eax
mov edx, 0xcf
call fcn.14000f710
jmp 0x14000febf
lea r8, [0x1400db598]
lea rcx, [rsp + 0x30]
call fcn.14000dfa8
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x14000fe68
mov edx, 0xd5
jmp 0x14000fdd9
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14000fb84
mov esi, eax
test eax, eax
jns 0x14000fea0
mov rcx, qword [rbp + 0x168]
lea r8, [0x1400db4d4]
mov r9d, eax
mov edx, 0xd7
call fcn.14000f710
mov rcx, rbx
call fcn.14000f7d0
jmp 0x14000febf
mov rcx, rbx
call fcn.14000f7d0
movsxd rcx, dword [rsp + 0x20]
movsxd rax, dword [rsp + 0x24]
shl rcx, 0x1f
or rax, rcx
mov qword [r14], rax
mov esi, r15d
test rdi, rdi
je 0x14000fecc
mov rcx, rdi
call fcn.14000f7d0
mov eax, esi
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.1400c9570
lea r11, [rsp + 0x250]
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 0x140040d38
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r15, rdx
mov rbx, rcx
lea rdx, [rsp + 0x40]
mov r14, r9
mov rdi, r8
mov rcx, qword [r15]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsGetStringRawBuffer]
nop dword [rax + rax]
mov r10d, dword [rsp + 0x40]
mov r9d, 0
mov r11, rax
mov eax, 0x811c9dc5
add r10, r10
je 0x140040d98
movzx ecx, byte [r9 + r11]
inc r9
xor ecx, eax
imul eax, ecx, 0x1000193
cmp r9, r10
jb 0x140040d83
xor edx, edx
mov dword [r14], eax
div dword [rbx + 0x18]
mov rbx, qword [rbx + 8]
mov dword [rdi], edx
test rbx, rbx
je 0x140040df7
mov rsi, qword [rsp + 0x60]
xor edi, edi
mov rbx, qword [rbx + rdx*8]
and qword [rsi], rdi
test rbx, rbx
je 0x140040df7
mov eax, dword [r14]
cmp dword [rbx + 0x18], eax
jne 0x140040de1
mov r8, qword [r15]
lea r9, [rsp + 0x40]
mov rdx, qword [rbx]
call fcn.140040cb4
test eax, eax
js 0x140040e02
cmp byte [rsp + 0x40], 0
jne 0x140040dea
mov rdi, rbx
mov rbx, qword [rbx + 0x10]
jmp 0x140040db9
mov rax, qword [rsp + 0x68]
mov qword [rsi], rdi
mov qword [rax], rbx
jmp 0x140040e00
mov rax, qword [rsp + 0x68]
and qword [rax], 0
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x1400533d4
Capabilities:
Connect pipe

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0xc8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ResetEvent]
nop dword [rax + rax]
lea rdx, [rbx + 0xb0]
mov rcx, rbx
call fcn.140053154
xor edi, edi
test eax, eax
js 0x14005348f
mov rcx, qword [rbx + 0xf8]
call fcn.1400560f0
test eax, eax
js 0x14005348f
mov qword [rbx + 0xd0], rdi
lea rdx, [rbx + 0xd0]
mov qword [rbx + 0xd8], rdi
mov qword [rbx + 0xe0], rdi
mov rax, qword [rbx + 0xc8]
mov rcx, qword [rbx + 0xb8]
mov qword [rbx + 0xe8], rax
call qword [sym.imp.api_ms_win_core_namedpipe_l1_1_0.dll_ConnectNamedPipe]
nop dword [rax + rax]
test eax, eax
jne 0x14005346c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov dword [rbx + 0xf0], edi
cmp edi, 0x3e5
je 0x14005348d
mov rcx, qword [rbx + 0xe8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
nop dword [rax + rax]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400551dc
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
mov rbx, rdx
mov rdi, rcx
mov esi, 1
lock add dword [rcx + 0x58], esi
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_StartThreadpoolIo]
nop dword [rax + rax]
mov qword [rsp + 0x38], rdi
mov byte [rsp + 0x40], sil
mov rax, qword [rbx + 8]
mov r9, qword [rax]
mov r8d, dword [r9 + 0x48]
mov rdx, qword [r9 + 0x40]
mov rax, qword [rbx]
mov rcx, qword [rax + 0x90]
lea rax, [r9 + 0x10]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov rcx, qword [rcx + 0x20]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
jne 0x140055283
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x3e5
je 0x140055283
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400552a1
mov ebx, 0x8000ffff
jmp 0x1400552a1
xor ebx, ebx
test ebx, ebx
js 0x1400552a1
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [case.0x1400549ae.0]
xor sil, sil
mov byte [rsp + 0x40], sil
test sil, sil
je 0x1400552ba
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_CancelThreadpoolIo]
nop dword [rax + rax]
lock dec dword [rdi + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x1400552d4
Capabilities:
Read file on windows

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
mov rbx, rdx
mov rdi, rcx
mov esi, 1
lock add dword [rcx + 0x58], esi
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_StartThreadpoolIo]
nop dword [rax + rax]
mov qword [rsp + 0x38], rdi
mov byte [rsp + 0x40], sil
mov rax, qword [rbx]
xorps xmm0, xmm0
movups xmmword [rax + 0xb0], xmm0
movups xmmword [rax + 0xc0], xmm0
mov rcx, qword [rbx]
mov rax, qword [rcx + 0xa8]
mov qword [rcx + 0xc8], rax
mov r9, qword [rbx]
mov r10, qword [r9 + 0xe8]
mov r8, qword [r9 + 0xf0]
sub r8, r10
mov rax, qword [r9 + 0x90]
mov rcx, qword [rax + 0x20]
mov edx, dword [r9 + 0x100]
lea rax, [r9 + 0xb0]
sub r8d, edx
add rdx, r10
mov qword [rsp + 0x20], rax
xor r9d, r9d
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
jne 0x1400553b9
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x3e5
je 0x1400553b9
cmp eax, 0xea
je 0x1400553b9
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400553d7
mov ebx, 0x8000ffff
jmp 0x1400553d7
xor ebx, ebx
test ebx, ebx
js 0x1400553d7
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [case.0x1400549ae.0]
xor sil, sil
mov byte [rsp + 0x40], sil
test sil, sil
je 0x1400553f0
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_CancelThreadpoolIo]
nop dword [rax + rax]
lock dec dword [rdi + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x14009ab9c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edx, 0xb
mov rsi, rcx
mov rcx, qword [rcx]
mov rbx, r9
lea r8d, [rdx - 1]
call fcn.14008f934
mov rdx, qword [rbx + 8]
mov r8d, 0xf
sub rdx, qword [rbx]
mov rcx, qword [rsi]
sar rdx, 1
call fcn.1400943fc
mov rdi, qword [rbx]
mov rbx, qword [rbx + 8]
jmp 0x14009ac6c
movzx ecx, word [rdi]
add rdi, 2
mov rax, qword [rsi]
movzx edx, cx
add cx, cx
sar dx, 0xf
xor dx, cx
mov r8, qword [rax]
mov ecx, dword [r8 + 0x20]
mov r9d, dword [r8 + 0x1c]
add rcx, 2
mov eax, dword [r8 + 0x18]
add rcx, r9
cmp rcx, rax
jae 0x14009ac64
mov rcx, qword [r8 + 0x30]
movzx eax, dx
shr ax, 7
test ax, ax
je 0x14009ac55
or dl, 0x80
mov byte [r9 + rcx], dl
movzx edx, ax
shr dx, 7
test dx, dx
je 0x14009ac49
mov byte [r9 + rcx + 2], dl
or al, 0x80
mov edx, 3
jmp 0x14009ac4e
mov edx, 2
mov byte [r9 + rcx + 1], al
jmp 0x14009ac5e
mov byte [r9 + rcx], dl
mov edx, 1
add dword [r8 + 0x1c], edx
jmp 0x14009ac6c
mov rcx, r8
call fcn.140098c1c
cmp rdi, rbx
jne 0x14009abe6
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400ba854
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov ebx, r9d
mov r14, r8
mov r15d, edx
mov rdi, rcx
mov r9d, edx
sub r9d, 0xe
je 0x1400ba9b8
sub r9d, 1
je 0x1400ba90e
sub r9d, 1
je 0x1400ba8e6
cmp r9d, 1
je 0x1400ba8be
test ebx, ebx
je 0x1400baa65
mov edx, r15d
mov rcx, r14
call fcn.14008e548
add ebx, 0xffffffff
jne 0x1400ba8a9
jmp 0x1400baa65
mov qword [rbp - 0x10], r14
xor esi, esi
mov byte [rbp - 8], sil
test ebx, ebx
je 0x1400ba8e1
mov byte [rbp - 8], sil
lea rdx, [rbp - 0x18]
mov rcx, r14
call fcn.140095ad0
add ebx, 0xffffffff
jne 0x1400ba8cc
jmp 0x1400baa65
mov qword [rbp - 0x10], r14
xor esi, esi
mov byte [rbp - 8], sil
test ebx, ebx
je 0x1400ba909
mov byte [rbp - 8], sil
lea rdx, [rbp - 0x18]
mov rcx, r14
call fcn.140095ad0
add ebx, 0xffffffff
jne 0x1400ba8f4
jmp 0x1400baa65
mov qword [rbp - 0x10], r14
xor esi, esi
mov byte [rbp - 8], sil
mov word [rbp + 0x38], si
mov r9, rbx
mov rbx, qword [rcx + 8]
mov r15, qword [rcx]
mov rax, rbx
sub rax, r15
sar rax, 1
cmp r9, rax
jae 0x1400ba954
lea rax, [r15 + r9*2]
cmp rax, r15
jne 0x1400ba946
mov qword [rcx + 8], r15
mov rbx, r15
jmp 0x1400ba975
cmp rax, rbx
je 0x1400ba975
mov rbx, rax
mov qword [rcx + 8], rax
jmp 0x1400ba975
jbe 0x1400ba975
sub r9, rax
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
mov r8, rbx
lea rdx, [rbp - 0x18]
call fcn.1400bda74
mov rbx, qword [rdi + 8]
mov r15, qword [rdi]
cmp r15, rbx
je 0x1400ba9b3
mov r12d, 1
mov rdi, r15
add r15, 2
mov byte [rbp - 8], sil
lea rdx, [rbp + 0x38]
mov rcx, r14
call fcn.14009de40
movzx eax, word [rbp + 0x38]
movzx ecx, ax
shr cx, 1
and ax, r12w
neg ax
xor cx, ax
mov word [rdi], cx
cmp r15, rbx
jne 0x1400ba980
jmp 0x1400baa65
mov qword [rbp - 0x10], r14
xor esi, esi
mov byte [rbp - 8], sil
mov word [rbp + 0x38], si
mov rdx, rbx
mov rax, qword [rcx + 8]
mov r9, qword [rcx]
mov rcx, rax
sub rcx, r9
sar rcx, 1
cmp rbx, rcx
jae 0x1400ba9fe
lea rcx, [r9 + rbx*2]
cmp rcx, r9
jne 0x1400ba9f0
mov qword [rdi + 8], r9
mov rax, r9
jmp 0x1400baa25
cmp rcx, rax
je 0x1400baa25
mov rax, rcx
mov qword [rdi + 8], rcx
jmp 0x1400baa25
jbe 0x1400baa25
sub rdx, rcx
lea rcx, [rbp + 0x38]
mov qword [rsp + 0x20], rcx
mov r9, rdx
mov r8, rax
lea rdx, [rbp - 0x18]
mov rcx, rdi
call fcn.1400bda74
mov rax, qword [rdi + 8]
mov r9, qword [rdi]
cmp r9, rax
je 0x1400baa65
mov r12d, 1
mov r11, r9
add r9, 2
mov byte [rbp - 8], sil
mov ecx, dword [r14 + 0x18]
mov r10d, dword [r14 + 0x20]
sub ecx, r10d
cmp ecx, r12d
jb 0x1400baa7f
mov rdx, qword [r14 + 0x10]
movsx r8d, byte [r10 + rdx]
lea ecx, [r10 + 1]
mov dword [r14 + 0x20], ecx
mov word [r11], r8w
cmp r9, rax
jne 0x1400baa30
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov edx, r12d
mov rcx, r14
call fcn.14006dad0
int3
Function at 0x1400c9370
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x14013b648], rbx
je 0x1400c93bc
cmp rax, rbx
jne 0x1400c93af
mov ebx, 1
mov esi, ebx
jmp 0x1400c93c1
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x1400c9394
mov ebx, 1
mov eax, dword [0x14013b650]
cmp eax, ebx
jne 0x1400c93d7
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x1400c943c
mov eax, dword [0x14013b650]
test eax, eax
jne 0x1400c9436
mov dword [0x14013b650], ebx
lea r15, [0x1400d89b8]
lea rdi, [0x1400d89a0]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x1400c9428
test eax, eax
jne 0x1400c942c
cmp qword [rdi], 0
je 0x1400c941d
mov rax, qword [rdi]
mov rcx, qword [case.0x1400549ae.0]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x1400c93fe
test eax, eax
je 0x1400c943c
mov eax, 0xff
jmp 0x1400c9518
mov dword [0x14012b740], ebx
mov eax, dword [0x14013b650]
cmp eax, ebx
jne 0x1400c9463
lea rdx, [0x1400d8998]
lea rcx, [0x1400d7fc8]
call sub.msvcrt.dll__initterm
mov dword [0x14013b650], 2
test esi, esi
jne 0x1400c9470
xor eax, eax
xchg qword [0x14013b648], rax
cmp qword [0x14013b668], 0
je 0x1400c94a4
lea rcx, [0x14013b668]
call fcn.1400c99a0
test eax, eax
je 0x1400c94a4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14013b668]
mov r9, qword [case.0x1400549ae.0]
call r9
mov r8, qword [0x14012b758]
mov rdx, qword [0x14012b750]
mov ecx, dword [0x14012b748]
call fcn.14000bc3c
mov dword [0x14012b73c], eax
cmp dword [0x14012b760], 0
jne 0x1400c94d4
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14012b740], 0
jne 0x1400c94e9
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14012b73c]
jmp 0x1400c9518
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.1401d5000
add rsp, 0x28
jmp 0x1400c9370

Function at 0x1400c988c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400c98d8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400c98d0
cmp dword [rcx + 0x3c], edx
jl 0x1400c98d0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400c98d0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1400c98d8
mov rax, rdx
add rsp, 0x18
ret