joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400da490
Capabilities:
Accept command line arguments

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x70
xor ebx, ebx
mov dword [rsp + 0x40], ebx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0x50], rax
mov rdi, rax
test rax, rax
jne 0x1400da4cd
lea rax, [rbx - 1]
add rsp, 0x70
pop r15
pop rdi
pop rbx
ret
mov eax, dword [rsp + 0x40]
mov r15, 0xffffffffffffffff
inc eax
mov qword [rsp + 0x98], rsi
movsxd rcx, eax
mov eax, 8
mul rcx
mov qword [rsp + 0x60], r14
cmovo rax, r15
mov rcx, rax
call fcn.1400a6d14
mov r14, rax
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x1400da5cc
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0xa0], r12
mov r12, r14
mov qword [rsp + 0x68], r13
mov r13, rdi
sub r13, r14
mov r14d, ebx
nop dword [rax]
nop word [rax + rax]
mov rbp, qword [r12 + r13]
mov r9d, r15d
mov qword [rsp + 0x38], rbx
mov r8, rbp
mov qword [rsp + 0x30], rbx
xor edx, edx
mov dword [rsp + 0x28], ebx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdi, eax
mov rcx, rdi
call fcn.1400a6d14
mov qword [rsp + 0x38], rbx
mov r9d, r15d
mov qword [rsp + 0x30], rbx
mov r8, rbp
mov dword [rsp + 0x28], edi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [r12], rsi
lea r12, [r12 + 8]
mov eax, dword [rsp + 0x40]
inc r14d
cmp r14d, eax
jne 0x1400da540
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r13, qword [rsp + 0x68]
mov r12, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0x90]
cdqe
mov rcx, rdi
mov qword [r14 + rax*8], rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [rsp + 0x40]
mov rdx, r14
call fcn.14008de00
mov esi, eax
cmp dword [rsp + 0x40], ebx
je 0x1400da60b
mov rdi, r14
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400da60b
call fcn.1400a6bf8
inc ebx
add rdi, 8
cmp ebx, dword [rsp + 0x40]
jne 0x1400da5f2
mov rcx, r14
call fcn.1400a6bf8
mov r14, qword [rsp + 0x60]
mov eax, esi
mov rsi, qword [rsp + 0x98]
add rsp, 0x70
pop r15
pop rdi
pop rbx
ret
Function at 0x1400766d0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x14010ea70
mov rax, rcx
neg rcx
test rax, 7
je 0x14010ea8d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x14010eae8
test al, 7
jne 0x14010ea80
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x14010eaa1
mov rdx, qword [rax - 8]
test dl, dl
je 0x14010eb12
test dh, dh
je 0x14010eb0c
shr rdx, 0x10
test dl, dl
je 0x14010eb06
test dh, dh
je 0x14010eb00
shr rdx, 0x10
test dl, dl
je 0x14010eafa
test dh, dh
je 0x14010eaf4
shr edx, 0x10
test dl, dl
je 0x14010eaee
test dh, dh
jne 0x14010eaa1
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x140076a45
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140097a10
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140097390
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140097a4f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401b3020]
jmp 0x140097a59
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x140076a8b
Capabilities:
Create service
Query service status
Start service

Disassembly:
jmp 0x14007c3c0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1b8
lea rbp, [rsp + 0x70]
lea rdi, [rsp + 0x70]
mov ecx, 0x22
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1d8]
mov rax, qword [0x1401a0018]
xor rax, rbp
mov qword [rbp + 0x138], rax
lea rcx, [0x1401b20f4]
call fcn.1400782f5
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x14007c42e
mov eax, 1
jmp 0x14007c5d5
mov r8d, 0xf01ff
mov rdx, qword [section..data]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x14007c4ee
lea rcx, str.Service_already_exists._n
call fcn.14007682e
lea rdx, [rbp + 0x48]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x14007c490
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x14007c5d5
cmp dword [rbp + 0x4c], 1
jne 0x14007c4d3
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x14007c4c7
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x14007c5d5
lea rcx, str.Starting_service..._n
call fcn.14007682e
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x14007c5d5
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov rax, qword [rbp + 0x160]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 1
mov r9d, 0xf01ff
mov r8, qword [section..data]
mov rdx, qword [section..data]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x14007c579
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x14007c5d5
lea rcx, str.Service_created_successfully._n
call fcn.14007682e
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x14007c5b3
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x14007c5d5
lea rcx, str.Starting_service..._n
call fcn.14007682e
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x70]
lea rdx, [0x14016b7f0]
call fcn.140077a08
mov rax, rdi
mov rcx, qword [rbp + 0x138]
xor rcx, rbp
call fcn.1400768c4
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret
Function at 0x140076b9e
Capabilities:
Query environment variable

Disassembly:
jmp 0x140132c00
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140132a30
lea rcx, [rsp + 0x40]
call fcn.140132bb0
movzx eax, al
test eax, eax
jne 0x140132c48
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.140132a60
mov rax, qword [rsp + 0x70]
jmp 0x140132e19
lea rcx, [rsp + 0x40]
call fcn.140132b80
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140132b20
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.140132b80
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.140077661
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x140132cee
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.140132a60
mov rax, qword [rsp + 0x80]
jmp 0x140132e19
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.140076937
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400767f2
lea rcx, [rsp + 0x48]
call fcn.140076487
movzx eax, al
test eax, eax
jne 0x140132d55
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400757d5
lea rcx, [rsp + 0x40]
call fcn.140132a60
mov rax, qword [rsp + 0x88]
jmp 0x140132e19
lea rcx, [rsp + 0x48]
call fcn.140076e82
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.140132b80
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.140077661
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x140132deb
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400757d5
lea rcx, [rsp + 0x40]
call fcn.140132a60
mov rax, qword [rsp + 0xa0]
jmp 0x140132e19
lea rcx, [rsp + 0x48]
call fcn.1400767ca
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400757d5
lea rcx, [rsp + 0x40]
call fcn.140132a60
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret

Function at 0x140076bad
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140097940
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.140097310
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140097981
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401b3020]
jmp 0x140097987
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret
Function at 0x140076c34
Capabilities:
Get geographical location

Disassembly:
jmp 0x14011ed00
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.14011dc30
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14011ed67
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x1401b3030]
jmp 0x14011ed89
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.140076428
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret

Function at 0x140076c48
Capabilities:
Terminate process

Disassembly:
jmp 0x14007e0d0
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 0x140076e28
Capabilities:
Print debug messages

Disassembly:
jmp 0x1401520b0
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x1401a0018]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x1401520d6
jmp 0x140152153
mov rcx, qword [rbp + 0x30]
call fcn.1400766d0
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x1401520ef
jmp 0x140152153
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14015210c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.14007592e
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.140075d0c
test eax, eax
jne 0x140152153
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400768c4
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x1400772e7
Capabilities:
Parse pe header

Disassembly:
jmp 0x14007f420
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14007f440
xor al, al
jmp 0x14007f4c1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14007f453
xor al, al
jmp 0x14007f4c1
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 0x14007f47d
xor al, al
jmp 0x14007f4c1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14007f491
xor al, al
jmp 0x14007f4c1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14007f4a3
xor al, al
jmp 0x14007f4c1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14007f4bf
xor al, al
jmp 0x14007f4c1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400777f1
Capabilities:
Terminate process

Disassembly:
jmp 0x14010f460
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x14010f48e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.140077f3a
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140077f9e
Capabilities:
Print debug messages

Disassembly:
jmp 0x14012b160
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x14007804d
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140097a80
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1400973d0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140097ac9
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401b3020]
jmp 0x140097ad8
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x1400780f7
Capabilities:
Set environment variable

Disassembly:
jmp 0x140153a50
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.140076310
lea rcx, [rsp + 0x48]
call fcn.140076310
call fcn.140076b4e
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.14007611c
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140153abf
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.140076603
lea rcx, [rsp + 0x78]
call fcn.140076603
mov eax, dword [rsp + 0x24]
jmp 0x140153b50
call fcn.140076b4e
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.14007611c
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x140153b06
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.140076603
lea rcx, [rsp + 0x78]
call fcn.140076603
mov eax, dword [rsp + 0x2c]
jmp 0x140153b50
lea rcx, [rsp + 0x48]
call fcn.140076293
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.140076293
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.140076603
lea rcx, [rsp + 0x78]
call fcn.140076603
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x1400782aa
Capabilities:
Enumerate processes

Disassembly:
jmp 0x14007c0e0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x6b8
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x10e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x6d8]
mov rax, qword [0x1401a0018]
xor rax, rbp
mov qword [rbp + 0x668], rax
lea rcx, [0x1401b20f4]
call fcn.1400782f5
mov dword [rbp + 4], 0
mov dword [rbp + 0x24], 0
mov dword [rbp + 0x44], 0
mov dword [rbp + 0x64], 0
xor edx, edx
mov ecx, 2
call fcn.140076847
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0xffffffffffffffff
je 0x14007c258
mov dword [rbp + 0xb0], 0x238
lea rdx, [rbp + 0xb0]
mov rcx, qword [rbp + 0x88]
call fcn.140076ea0
test eax, eax
je 0x14007c24b
mov r8d, 0x104
lea rdx, [rbp + 0xdc]
lea rcx, [rbp + 0x310]
call fcn.140077c4c
lea rcx, [rbp + 0x310]
call fcn.140077fb2
test eax, eax
je 0x14007c230
mov eax, dword [rbp + 0xb8]
mov dword [rbp + 4], eax
mov qword [rsp + 0x38], 0
lea rax, [rbp + 0x44]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x24]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rbp + 4]
mov edx, 0x80002048
mov rcx, qword [rbp + 0x690]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14007c215
lea rdx, [rbp + 0xdc]
lea rcx, str.faild_to_terminate__ws____n
call fcn.14007682e
jmp 0x14007c230
lea rdx, [rbp + 0xdc]
lea rcx, str.terminated__ws_n
call fcn.14007682e
mov eax, dword [rbp + 0x64]
inc eax
mov dword [rbp + 0x64], eax
lea rdx, [rbp + 0xb0]
mov rcx, qword [rbp + 0x88]
call fcn.140077b7f
test eax, eax
jne 0x14007c18b
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 0x64]
mov edi, eax
lea rcx, [rbp - 0x40]
lea rdx, [0x14016b990]
call fcn.140077a08
mov eax, edi
mov rcx, qword [rbp + 0x668]
xor rcx, rbp
call fcn.1400768c4
lea rsp, [rbp + 0x678]
pop rdi
pop rbp
ret
Function at 0x140146f40
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.14007592e
sub rsp, rax
mov rax, qword [0x1401a0018]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1401a2aa0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140147132
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x140147086
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140147086
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x14014706b
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x140147008
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1401470f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140147151
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x14014712d
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140147151
jmp 0x140146fde
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400768c4
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140147200
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.14007592e
sub rsp, rax
mov rax, qword [0x1401a0018]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1401a2aa0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x14014740d
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x140147359
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x140147359
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x140147339
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x1401472c8
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1401473cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14014742c
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x140147408
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14014742c
jmp 0x14014729e
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400768c4
add rsp, 0x1498
pop rdi
pop rsi
ret