joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140016bf0
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rax, qword [rcx + 0x38]
mov rdi, rdx
mov rsi, rcx
test rax, rax
je 0x140016c29
mov rcx, qword [rax + 0x38]
test rcx, rcx
jne 0x140016c36
mov r8, qword [0x1400ab410]
mov rdx, qword [0x1400ab480]
xor r9d, r9d
call qword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
xor edx, edx
mov r9d, 0x3000
mov r8d, 0x800
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x20], 0x40
mov qword [rsp + 0x58], rbp
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
xor bl, bl
mov rbp, rax
test rax, rax
je 0x140016d2d
or r9, 0xffffffffffffffff
nop
cmp word [rdi + r9*2 + 2], 0
lea r9, [r9 + 1]
jne 0x140016c70
mov rcx, qword [rsi + 0x38]
lea r9, [r9*2 + 2]
mov r8, rdi
mov rcx, qword [rcx + 0x38]
mov rdx, rax
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140016d0e
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x14008c378]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsi + 0x38]
mov qword [rsp + 0x30], 0
mov rcx, qword [rcx + 0x38]
mov r9, rax
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rdi, rax
test rax, rax
je 0x140016d0e
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x140016d2d
mov rcx, qword [rcx + 0x38]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
movzx eax, bl
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140018200
Capabilities:
Create thread
Resume thread

Disassembly:
push rbx
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [rcx + 8]
mov rcx, qword [rax + 0x38]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], r8
mov r9, rdx
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + 0x38]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rbx, rax
test rax, rax
jne 0x1400182ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x78]
call fcn.1400039b0
nop
mov r8, rax
lea rdx, [0x1400ab490]
lea rcx, [rsp + 0x60]
call fcn.140011f40
xor r9d, r9d
mov r8, qword [0x1400ab410]
mov rdx, qword [rax]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001829d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rax, qword [rsp + 0x78]
lea rdx, [rax - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x1400182b6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
xor al, al
jmp 0x1400182da
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
add rsp, 0x50
pop rbx
ret
Function at 0x140018670
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov qword [rax - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov r13, r9
mov r14, r8
mov r15, rdx
mov r12, rcx
xor edi, edi
mov dword [rsp + 0x30], edi
mov rcx, qword [rcx]
sub rcx, 0x18
call fcn.140001420
lea rbx, [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bpl
lea rdx, [rbx - 0x18]
or rsi, 0xffffffffffffffff
lock add dword [rdx + 0x10], esi
jg 0x1400186df
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
test bpl, bpl
jne 0x1400186f8
lea rdx, str.Error:_Ini_File_Not_Exist
mov rcx, r15
call fcn.140003b00
jmp 0x140018892
mov ebp, 0x104
mov eax, 2
mul rbp
cmovo rax, rsi
mov rcx, rax
call fcn.14001b77c
mov rbx, rax
call fcn.140001e70
mov rdx, rax
mov ecx, edi
test rax, rax
setne cl
test ecx, ecx
jne 0x140018733
mov ecx, 0x80004005
call fcn.140001bf0
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x80], rax
mov rax, qword [r12]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebp
mov r9, rbx
mov rbp, qword [rsp + 0xa0]
mov r8, rbp
mov rdx, r13
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov rax, qword [r12]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x104
mov r9, rbx
mov r8, rbp
mov rdx, r13
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, 0x103
jb 0x140018831
mov r14d, 0x104
mov r15, qword [rsp + 0x90]
nop dword [rax + rax]
mov rax, rbx
mov r8, rbp
sub r8, rbx
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x1400187d4
add rax, 2
test ecx, ecx
jne 0x1400187c0
test edx, edx
je 0x140018829
mov rcx, rbx
call fcn.1400407cc
add r14d, 0x104
mov ecx, r14d
mov eax, 2
mul rcx
cmovo rax, rsi
mov rcx, rax
call fcn.14001b77c
mov rbx, rax
mov rax, qword [r12]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r14d
mov r9, rbx
mov r8, rbp
mov rdx, r13
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [r14 - 1]
cmp eax, ecx
jae 0x1400187b0
mov r15, qword [rsp + 0x88]
test rbx, rbx
je 0x14001884a
mov rdi, rsi
nop dword [rax]
inc rdi
cmp word [rbx + rdi*2], 0
jne 0x140018840
mov r8d, edi
mov rdx, rbx
lea rcx, [rsp + 0x80]
call fcn.140009350
mov rcx, rbx
call fcn.1400407cc
mov rbx, qword [rsp + 0x80]
lea rcx, [rbx - 0x18]
call fcn.140001420
add rax, 0x18
mov qword [r15], rax
lock add dword [rbx - 8], 0xffffffff
jg 0x140018892
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rax + 8]
mov rax, r15
mov rbx, qword [rsp + 0x98]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140041350
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140041368
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14004136a
xor eax, eax
test eax, eax
je 0x14004137a
mov ecx, eax
call fcn.140043aa0
or eax, 0xffffffff
jmp 0x14004137c
xor eax, eax
add rsp, 0x28
ret

Function at 0x14004a184
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14004a197
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x20]
movzx edx, ax
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.14005488c
lea rdx, [0x14009e560]
lea rcx, [rsp + 0x20]
call fcn.140041bd8
int3

Function at 0x14004b3a8
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.14004b210
Function at 0x140063798
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x1400aaf9c]
xor edx, edx
jmp fcn.14004a184

Function at 0x14006413c
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x1400aaf9c]
jmp fcn.14004a184

Function at 0x14006428c
Capabilities:
Get thread local storage value

Disassembly:
mov rcx, qword [rcx + 0x40]
jmp 0x1400723d4
mov rax, rsp
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rax - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov r13, r9
mov r12, r8
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov qword [rax + 8], rcx
call fcn.1400545e4
nop
mov edi, dword [rbx + 4]
mov esi, dword [rbx + 4]
dec esi
mov eax, dword [rbx]
cmp esi, eax
jl 0x1400723ae
lea ebp, [rsi + 1]
movsxd r15, esi
movsxd rcx, dword [rbx + 8]
and rcx, r15
mov rax, qword [rbx + 0x20]
mov r14, qword [rax + rcx*8]
test r14, r14
je 0x1400723a4
mov rdx, r12
mov rcx, r14
call qword [rsp + 0x78]
test al, al
je 0x1400723a4
mov rdx, r12
mov rcx, r14
call r13
test al, al
je 0x1400723a4
cmp ebp, edi
jne 0x140072394
dec edi
jmp 0x1400723a4
movsxd rcx, dword [rbx + 8]
and rcx, r15
mov rax, qword [rbx + 0x20]
and qword [rax + rcx*8], 0
dec esi
dec ebp
mov eax, dword [rbx]
cmp esi, eax
jge 0x14007235a
xchg dword [rbx + 4], edi
mov rcx, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
jmp fcn.14005462c
add rcx, 0xb0
jmp 0x140072310

Function at 0x1400721d8
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r9, qword [rdx + 0x1a8]
mov r8, rcx
mov r9, qword [r9 + 8]
lea rdx, [0x140072294]
add rcx, 0x40
jmp fcn.14005bfa0

Function at 0x14007226c
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r9, qword [rdx + 0x1a8]
mov r8, rcx
mov r9, qword [r9 + 8]
lea rdx, [0x1400722a4]
add rcx, 0x40
jmp fcn.14005bfa0
Function at 0x1400032f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000331d
xor eax, eax
jmp 0x140003489
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140003357
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140003357
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140003489
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000347c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000339a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1400033c5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140003481
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140003434
sub eax, 1
je 0x140003434
cmp eax, 2
jne 0x14000347c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140003481
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140003462
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000347c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140003481
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140004970
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400037f0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400038c3
cmp byte [rcx + 0x71], 0
je 0x1400038c3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400038bf
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140003884
sub eax, 1
je 0x140003888
cmp eax, 2
jne 0x1400038bf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004970
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400038b6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400038bf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000386c
xor al, al
jmp 0x14000386c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004970
add rsp, 0x60
pop rbx
ret

Function at 0x1400052f0
Capabilities:
Parse pe header

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

Disassembly:
xchg dword [rbp + rdi*8 - 0x10], edx
adc ch, byte ds:[rax + 0x49d66316]
cmp byte [rcx + rdi*8 - 0x19], dl
cmp byte [r9 + rdi*8 - 0x19], dl
sbb edi, esi
invalid
jae 0x1404727a4
ja 0x140472727
add dh, byte [rdx]
jle 0x14047271d
sub eax, 0x4bc4e8c4
in eax, dx
or eax, 0x6d4caed
sbb cl, byte [rdi]
jge 0x140472766
shr byte [rcx - 0x4b], 0xba
push 0xffffffffffffffff
invalid
cld
pop r11
jmp 0x14062b54d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14062b55d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14062b545
lea eax, [rcx + 1]
jmp 0x14062b56b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14062b57e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14062b564
sub eax, 3
jb 0x14062b59e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14062b5ed
sar eax, 1
movsxd rbp, eax
jb 0x14062b5d4
jmp 0x14062b5ac
add ebx, ebx
jne 0x14062b5aa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14062b5d4
inc ecx
add ebx, ebx
jne 0x14062b5ba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14062b5d4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14062b5cd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14062b5bc
add ecx, 2
jmp 0x14062b5d9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14062b502
jmp 0x14062b54d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
sub rsp, 0x28
lea rdi, [rsi + 0x622000]
mov eax, dword [rdi]
or eax, eax
je 0x14062b659
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x62da60]
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 0x14062b5fd
jns 0x14062b632
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14062b63c
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 0x14062b653
mov qword [rbx], rax
add rbx, 8
jmp 0x14062b61d
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14062b69d
cmp al, 0xef
ja 0x14062b685
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14062b665
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x14062b674
mov eax, dword [rdi]
add rdi, 4
jmp 0x14062b674
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 + 0x25f]
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
mov byte [fcn.14062b71c], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.14062b71c
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14062b70c
sub rsp, 0xffffffffffffff80
jmp 0x140472758
Function at 0x140007dc0
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
mov rcx, qword [0x14002d0a0]
test rcx, rcx
je 0x140007dfb
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140007e20
mov rcx, qword [0x14002d0a0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x1400300e0], 0
jne 0x140007e38
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [0x14002d0a0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x140007dee
mov edx, 0x414
lea r12, [rsp + 0x20]
lea rsi, [0x14001d44a]
mov qword [rsp + 0x20], 0
lea rdi, [0x140030100]
movq xmm0, rsi
mov rcx, r12
mov dword [rsp + 0x28], 3
movq xmm6, rdi
mov word [rsp + 0x40], dx
mov rbp, qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, 0x14
punpcklqdq xmm6, xmm0
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], rsi
movaps xmmword [rsp + 0x30], xmm6
call rbp
mov r13, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140007f04
test al, 0x10
je 0x140007e04
mov ecx, 0x64
call r14
mov eax, 0x414
mov qword [rsp + 0x50], rsi
mov rcx, r12
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
movaps xmmword [rsp + 0x30], xmm6
call rbp
sub ebx, 1
je 0x140007e04
mov rcx, rdi
call r13
cmp eax, 0xffffffff
jne 0x140007eb0
jmp 0x140007e04

Function at 0x14000e570
Capabilities:
Create directory

Disassembly:
push rdi
mov eax, 0x2020
push rsi
push rbx
call fcn.140015730
sub rsp, rax
mov eax, dword [0x140034100]
mov rsi, rcx
test eax, eax
je 0x14000e610
xor ebx, ebx
lea rdi, [0x140032100]
test eax, eax
jg 0x14000e5ac
jmp 0x14000e5c0
add rbx, 1
cmp dword [0x140034100], ebx
jle 0x14000e5c0
mov rdx, qword [rdi + rbx*8]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14000e5a0
jmp 0x14000e5f7
mov rcx, rsi
call sub.msvcrt.dll_wcslen
cmp rax, 2
jne 0x14000e5d5
cmp word [rsi + 2], 0x3a
je 0x14000e5f7
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14000e660
movsxd rbx, dword [0x140034100]
cmp ebx, 0x3ff
jle 0x14000e678
mov eax, 1
add rsp, 0x2020
pop rbx
pop rsi
pop rdi
ret
lea rdi, [rsp + 0x20]
lea rbx, str.HOME
mov r8d, 0x1000
mov rdx, rbx
mov rcx, rdi
call fcn.140007540
test al, al
je 0x14000e69a
movsxd rbx, dword [0x140034100]
mov rcx, rdi
lea rdi, [0x140032100]
call sub.msvcrt.dll__wcsdup
mov qword [rdi + rbx*8], rax
mov eax, dword [0x140034100]
add eax, 1
mov dword [0x140034100], eax
jmp 0x14000e591
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14000e5e4
xor eax, eax
jmp 0x14000e5fc
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add dword [0x140034100], 1
mov rdx, rax
lea rax, [0x140032100]
mov qword [rax + rbx*8], rdx
jmp 0x14000e5f7
mov rcx, rbx
call fcn.140007d00
nop
nop word cs:[rax + rax]
nop
Function at 0x140001000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
lea rcx, str._JAVA_LAUNCHER_DEBUG
call qword [sym.imp.MSVCR100.dll_getenv]
test rax, rax
je 0x140001066
lea rcx, str.Windows_original_main_args:_n
call qword [sym.imp.MSVCR100.dll_printf]
mov rax, qword [sym.imp.MSVCR100.dll___argc]
xor ebx, ebx
cmp dword [rax], ebx
jle 0x140001066
xor edi, edi
mov rax, qword [sym.imp.MSVCR100.dll___argv]
lea rcx, str.wwwd_args__d____s_n
mov edx, ebx
mov r8, qword [rax]
mov r8, qword [r8 + rdi]
call qword [sym.imp.MSVCR100.dll_printf]
mov rax, qword [sym.imp.MSVCR100.dll___argc]
inc ebx
add rdi, 8
cmp ebx, dword [rax]
jl 0x140001038
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rcx, rax
call sub.jli.dll_JLI_CmdToArgs
call sub.jli.dll_JLI_GetStdArgc
movsxd rdi, eax
lea ecx, [rdi + 1]
movsxd rcx, ecx
shl rcx, 3
call sub.jli.dll_JLI_MemAlloc
mov rbx, rax
call sub.jli.dll_JLI_GetStdArgs
xor r9d, r9d
xor edx, edx
test edi, edi
jle 0x1400010b2
mov r9d, edi
mov rcx, qword [rax]
add rax, 0x10
mov qword [rbx + rdx*8], rcx
inc rdx
cmp rdx, rdi
jl 0x14000109f
mov rcx, qword [str.java]
movsxd rax, r9d
and qword [rbx + rax*8], 0
test rcx, rcx
jne 0x1400010c9
mov rcx, qword [rbx]
mov rax, qword [str.java]
test rax, rax
jne 0x1400010d8
mov rax, qword [rbx]
and dword [rsp + 0x68], 0
mov byte [rsp + 0x60], 0
mov byte [rsp + 0x58], 0
mov byte [rsp + 0x50], 1
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rax
lea rax, [0x140002250]
mov r8d, 2
lea r9, str._J_ms8m
mov qword [rsp + 0x38], rax
lea rax, [0x140002240]
mov rdx, rbx
mov qword [rsp + 0x30], rax
lea rax, str._lib_tools.jar
mov ecx, edi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r8d
call sub.jli.dll_JLI_Launch
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret

Function at 0x140001908
Capabilities:
Parse pe header

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

Function at 0x140013800
Capabilities:
Listen for remote procedure calls

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0xc]
mov ecx, dword [rcx + 8]
mov r8d, 1
call qword [sym.imp.RPCRT4.dll_RpcServerListen]
mov ebx, eax
cmp eax, 0x6b1
je 0x140013871
test eax, eax
je 0x140013871
lea rcx, str...SwRpcServer.cpp
mov edx, 0x5c
call qword [sym.imp.MSVCR120.dll_strrchr]
test rax, rax
je 0x140013841
inc rax
jmp 0x140013848
lea rax, str...SwRpcServer.cpp
lea rcx, [0x140042858]
mov rdx, rax
call fcn.140001760
movabs rcx, 0x212500000000
shl rax, 0x34
or rax, rbx
or rax, rcx
add rsp, 0x20
pop rbx
ret
movabs rax, 0x8000000000
add rsp, 0x20
pop rbx
ret
Function at 0x140003160
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x1400031bd
lea rbx, [0x140079ec0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1400031a4
cmp r10, 2
jb 0x1400031a4
cmp byte [r9], r8b
jne 0x1400031a4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140003180
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x1400031ff
lea rbx, [0x140079ec0]
cmp r8b, 0x23
jne 0x1400031e3
cmp byte [r9], r8b
jne 0x1400031e3
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x1400031d0
mov rbx, qword [rsp + 8]
not eax
ret