joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000b590
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140033040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor r8d, r8d
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14000b6b1
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000b6b1
test rax, rax
je 0x14000b6b1
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
mov qword [rsp + 0x58], r8
mov ecx, dword [rax + 0xb0]
test ecx, ecx
jne 0x14000b613
mov qword [rdi], r8
mov qword [rdi + 8], r8
mov qword [rdi + 0x10], r8
jmp 0x14000b6bc
lea rbx, [rdx + rcx]
mov ebp, dword [rax + 0xb4]
add rbp, rbx
mov rcx, qword [rsp + 0x50]
cmp rbx, rbp
jae 0x14000b69f
nop word [rax + rax]
mov edx, dword [rbx + 4]
test edx, edx
je 0x14000b69f
mov eax, dword [rbx]
add rax, rsi
mov qword [rsp + 0x28], rax
lea rax, [rbx + 8]
mov qword [rsp + 0x30], rax
lea rax, [rdx - 8]
shr rax, 1
mov dword [rsp + 0x38], eax
cmp rcx, r8
je 0x14000b678
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rcx], xmm0
movsd xmm1, qword [rsp + 0x38]
movsd qword [rcx + 0x10], xmm1
add rcx, 0x18
mov qword [rsp + 0x50], rcx
jmp 0x14000b694
lea r8, [rsp + 0x28]
mov rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.14000ab70
mov r8, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, rbp
jb 0x14000b630
mov rax, qword [rsp + 0x48]
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], r8
jmp 0x14000b6bc
mov qword [rcx], r8
mov qword [rcx + 8], r8
mov qword [rcx + 0x10], r8
mov rax, rdi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14000df00
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000d650
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r15, r8
mov r13, rdx
mov rbp, rcx
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rdi + rcx], 0
jne 0x14000d677
movsxd rcx, dword [rdx + 0x3c]
lea r12, [rdx + 0x18]
add r12, rcx
mov qword [rsp + 0x50], rbx
xor esi, esi
movzx eax, word [rcx + rdx + 0x14]
movzx r14d, word [rcx + rdx + 6]
add r12, rax
cmp si, r14w
jae 0x14000d6e6
nop word [rax + rax]
lea rcx, [rsi + rsi*4]
mov r8, rdi
lea rbx, [r12 + rcx*8]
mov rdx, rbp
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14000d6df
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], 0
jne 0x14000d6d1
cmp rdi, rax
je 0x14000d705
inc esi
cmp esi, r14d
jb 0x14000d6b0
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
cmp dword [rbx + 0xc], 0
je 0x14000d6e6
test r15, r15
je 0x14000d716
mov eax, dword [rbx + 8]
mov dword [r15], eax
mov eax, dword [rbx + 0xc]
add rax, r13
jmp 0x14000d6e8

Function at 0x14000d720
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x140033040]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x20a
xor edi, edi
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x30]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x104
ja 0x14000d7d1
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0x30]
mov rax, r8
cmp word [rcx + rax*2 + 2], di
lea rax, [rax + 1]
jne 0x14000d783
cmp word [rsp + rax*2 + 0x2e], 0x5c
jne 0x14000d7ab
lea rax, [rax*2 - 2]
cmp rax, 0x20a
jae 0x14000d815
mov word [rsp + rax + 0x30], di
xorps xmm0, xmm0
lea rax, [rsp + 0x30]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
nop
inc r8
cmp word [rax + r8*2], di
jne 0x14000d7c0
lea rdx, [rsp + 0x30]
jmp 0x14000d7e9
xorps xmm0, xmm0
lea rdx, [0x14002ea14]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
xor r8d, r8d
mov qword [rbx + 0x18], rdi
mov rcx, rbx
call fcn.140003010
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000df00
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
call fcn.14000e054
int3
Function at 0x14000d820
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x50
mov rax, qword [0x140033040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, rcx
lea r9, [rsp + 0x20]
xor r14d, r14d
mov ecx, reloc.WS2_32.dll_inet_addr
xor r8d, r8d
mov dword [rsp + 0x20], r14d
xor edx, edx
mov ebx, r14d
call sub.ntdll.dll_NtQuerySystemInformation
cmp eax, 0xc0000004
jne 0x14000d8b0
test rbx, rbx
je 0x14000d877
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x20]
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov ecx, reloc.WS2_32.dll_inet_addr
mov rbx, rax
call sub.ntdll.dll_NtQuerySystemInformation
cmp eax, 0xc0000004
je 0x14000d861
test eax, eax
jns 0x14000d8d1
test rbx, rbx
je 0x14000d8d6
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x14000d9d7
test rbx, rbx
jne 0x14000d8dd
xor eax, eax
jmp 0x14000d9d7
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x80], rdi
mov edi, r14d
cmp dword [rbx], r14d
jbe 0x14000d9b7
nop word [rax + rax]
mov eax, edi
xorps xmm0, xmm0
imul rcx, rax, 0x128
movups xmmword [rsp + 0x28], xmm0
movzx edx, word [rcx + rbx + 0x2e]
lea rbp, [rcx + rbx]
add rdx, 0x30
mov qword [rsp + 0x38], r14
add rdx, rcx
mov qword [rsp + 0x40], r14
add rdx, rbx
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], r14b
jne 0x14000d935
lea rcx, [rsp + 0x28]
call fcn.140002f10
cmp qword [rsi + 0x18], 0xf
mov rdx, rsi
jbe 0x14000d955
mov rdx, qword [rsi]
cmp qword [rsp + 0x40], 0xf
lea rcx, [rsp + 0x28]
cmova rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x14000d9ed
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x14000d9ad
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d9a8
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000da36
call fcn.14000dc64
inc edi
cmp edi, dword [rbx]
jb 0x14000d900
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rbp, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14000df00
add rsp, 0x50
pop r14
pop rsi
pop rbx
ret
mov rdi, qword [rbp + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x14000da42
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000da3d
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000da3d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000dc64
mov rax, rdi
jmp 0x14000d9ca
Function at 0x14000e954
Capabilities:
Parse pe header

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

Disassembly:
push rbp
lea rax, [0x140001200]
mov rbp, rsp
push r12
push rdi
push rsi
push rbx
and rsp, 0xfffffffffffffff0
sub rsp, 0xe0
mov dword [rsp + 0x98], 0
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xb0], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0x65
mov rcx, rax
call qword [sym.imp.USER32.dll_LoadIconA]
mov edx, 0x7f00
xor ecx, ecx
mov qword [rsp + 0xb8], rax
call qword [sym.imp.USER32.dll_LoadCursorA]
lea rcx, [rsp + 0x98]
mov qword [rsp + 0xc8], 6
mov qword [rsp + 0xc0], rax
lea rax, str.imgbannerclass
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0xd0], 0
mov qword [rsp + 0xa8], 0
call qword [sym.imp.USER32.dll_RegisterClassA]
xor r8d, r8d
movabs rax, 0xbf000001fa
mov edx, 0x80000000
lea rcx, [0x1400061c0]
mov qword [0x1400061c8], rax
mov qword [0x1400061c0], 0
call qword [sym.imp.USER32.dll_AdjustWindowRect]
mov r12d, dword [0x1400061c8]
mov esi, dword [0x1400061cc]
xor ecx, ecx
mov rdi, qword [sym.imp.USER32.dll_GetSystemMetrics]
sub r12d, dword [0x1400061c0]
sub esi, dword [0x1400061c4]
call rdi
mov ecx, 1
sub eax, r12d
mov ebx, eax
call rdi
xor r8d, r8d
sub eax, esi
mov ecx, eax
cmp ebx, 0xffffffff
jl 0x140001129
mov eax, ebx
mov r8d, 2
cdq
idiv r8d
mov r8d, eax
xor eax, eax
cmp ecx, 0xffffffff
jl 0x14000113c
mov eax, ecx
mov r9d, 2
cdq
idiv r9d
mov dword [rsp + 0x38], esi
mov rdx, qword [rsp + 0xd8]
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x20], r8d
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x28], eax
mov r9d, 0x80000000
xor r8d, r8d
mov ecx, 8
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov edx, 5
mov r12, rax
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, r12
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rbx, qword [sym.imp.USER32.dll_GetMessageA]
mov rsi, qword [sym.imp.USER32.dll_DispatchMessageA]
mov rdi, qword [sym.imp.USER32.dll_TranslateMessage]
lea r12, [rsp + 0x68]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r12
call rbx
test eax, eax
je 0x1400011df
mov rcx, r12
call rsi
mov rcx, r12
call rdi
jmp 0x1400011bd
mov rcx, qword [rsp + 0xd8]
xor edx, edx
call qword [sym.imp.USER32.dll_UnregisterClassA]
lea rsp, [rbp - 0x20]
pop rbx
pop rsi
pop rdi
pop r12
pop rbp
ret

Function at 0x140001fc0
Capabilities:
Get token membership

Disassembly:
push rbp
mov r9d, 0x220
mov r8d, 0x20
mov edx, 2
mov rbp, rsp
and rsp, 0xfffffffffffffff0
add rsp, 0xffffffffffffff80
lea rax, [rsp + 0x78]
mov dword [rsp + 0x6c], 0
lea rcx, [rsp + 0x72]
mov dword [rsp + 0x72], 0
mov word [rsp + 0x76], 0x500
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x6c], eax
test eax, eax
je 0x14000205e
xor ecx, ecx
mov rdx, qword [rsp + 0x78]
lea r8, [rsp + 0x6c]
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x6c]
leave
ret
Function at 0x140002290
Capabilities:
Create process on windows
Delete file
Get common file path

Disassembly:
push rbp
mov ecx, 0x104
mov rbp, rsp
push r12
push rdi
push rsi
push rbx
and rsp, 0xfffffffffffffff0
sub rsp, 0x4b0
lea r12, [rsp + 0x9c]
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1400023d8
lea rbx, [rsp + 0x2a6]
xor r8d, r8d
lea rdx, section..rdata
mov rcx, r12
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1400023d8
mov rcx, rbx
mov rsi, qword [sym.imp.KERNEL32.dll_DeleteFileW]
call rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, r12
mov r8, rbx
mov rdi, qword [sym.imp.USER32.dll_wsprintfW]
sub eax, 3
lea rdx, str._lsps1
cdqe
mov word [rsp + rax*2 + 0x2a6], 0
call rdi
mov rcx, r12
call fcn.1400027f0
test al, al
jne 0x1400023d8
movabs rax, 0x14000000070
mov rcx, rbx
mov qword [rsp + 0x50], 0
mov r8, r12
mov qword [rsp + 0x28], rax
mov rax, qword [0x140003008]
lea rdx, str.__ExecutionPolicy_Bypass__Command___ls_
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], rax
call rdi
lea rax, str.powershell
mov qword [rsp + 0x48], rbx
lea rcx, [rsp + 0x28]
mov qword [rsp + 0x40], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x1400023b7
mov rcx, qword [rsp + 0x90]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400023d3
mov r8, qword [0x140003018]
mov r9d, 0x1010
lea rdx, [0x14000407c]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, r12
call rsi
lea rsp, [rbp - 0x20]
pop rbx
pop rsi
pop rdi
pop r12
pop rbp
ret
Function at 0x1400023f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
lea r10, [0x1400062c0]
movzx r11d, dl
mov r9w, word [r10 + r11*2]
mov rbp, rsp
push r12
push rdi
push rsi
push rbx
mov rbx, rcx
mov ecx, edx
and rsp, 0xfffffffffffffff0
mov r8d, dword [0x1400062ac]
mov esi, dword [0x1400062b0]
cmp r8d, esi
jae 0x140002478
mov rax, qword [0x140006280]
shl r8d, 8
mov dword [0x1400062ac], r8d
lea rdx, [rax + 1]
mov qword [0x140006280], rdx
mov dl, byte [rax]
mov rax, qword [0x140006298]
mov byte [rax], dl
mov eax, dword [0x1400062b0]
mov edx, dword [0x1400062a8]
shl eax, 8
shl edx, 8
mov dword [0x1400062b0], eax
mov dword [0x1400062a8], edx
add edx, eax
jae 0x140002412
not eax
mov dword [0x1400062a8], eax
jmp 0x140002412
mov eax, dword [0x1400062a8]
lea edx, [rsi + rax]
xor edx, esi
cmp edx, 0xffffff
jbe 0x140002424
cmp eax, 0xffff
jbe 0x140002424
movzx r12d, r9w
xor edx, edx
div r12d
xor edx, edx
mov edi, eax
mov dword [0x1400062a8], eax
mov eax, r8d
mov r8b, 1
sub eax, esi
div edi
cmp r12d, eax
jbe 0x14000254a
movzx ecx, cl
lea rdx, [0x1400064c0]
xor r12d, r12d
shl rcx, 9
add rdx, rcx
mov rcx, rdx
movzx r8d, word [rcx]
add r8d, r12d
cmp eax, r8d
jb 0x1400024e4
add rcx, 2
mov r12d, r8d
jmp 0x1400024cf
mov eax, edi
imul eax, r12d
add eax, esi
mov dword [0x1400062b0], eax
mov rax, rcx
sub rax, rdx
sar rax, 1
mov byte [rbx], al
movzx eax, word [rcx]
lea r8d, [rax + 1]
imul eax, dword [0x1400062a8]
mov word [rcx], r8w
mov dword [0x1400062a8], eax
inc r9w
jne 0x140002542
xor eax, eax
mov r8w, word [rdx + rax]
mov ecx, r8d
and r8d, 1
shr cx, 1
or ecx, r8d
mov word [rdx + rax], cx
add rax, 2
add r9d, ecx
cmp rax, 0x200
jne 0x14000251d
mov word [r10 + r11*2], r9w
xor r8d, r8d
lea rsp, [rbp - 0x20]
mov eax, r8d
pop rbx
pop rsi
pop rdi
pop r12
pop rbp
ret
Function at 0x1400027f0
Capabilities:
Write file on windows

Disassembly:
push rbp
lea rax, [0x140003020]
xor r9d, r9d
mov rbp, rsp
push r12
push rsi
push rbx
and rsp, 0xfffffffffffffff0
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov qword [0x140006280], rax
call fcn.140001ec0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov rcx, qword [rbp + 0x10]
xor r8d, r8d
mov qword [rsp + 0x30], 0
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
mov al, 1
cmp r12, 0xffffffffffffffff
je 0x140002892
lea rsi, [rsp + 0x4c]
lea rbx, [0x1400062b4]
call fcn.1400028a0
test al, al
jne 0x140002887
mov r9, rsi
mov r8d, 1
mov rdx, rbx
mov rcx, r12
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14000285c
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lea rsp, [rbp - 0x18]
pop rbx
pop rsi
pop r12
pop rbp
ret
Function at 0x180002270
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
mov eax, 0x2048
call fcn.1800335d0
sub rsp, rax
mov rax, qword [0x1800b7480]
xor rax, rsp
mov qword [rsp + 0x2030], rax
movsd xmm0, qword [str.define]
mov rbx, rcx
movzx eax, byte [0x1800939a8]
lea rcx, [rsp + 0x39]
xor edx, edx
movsd qword [rsp + 0x30], xmm0
mov r8d, 0xff6
mov byte [rsp + 0x38], al
call fcn.18008fc30
lea rdi, [rsp + 0x2068]
call fcn.180002580
mov qword [rsp + 0x28], rdi
lea rdx, [rsp + 0x1030]
mov r9, rbx
mov qword [rsp + 0x20], 0
mov r8d, 0xfff
mov rcx, qword [rax]
call fcn.18006466c
lea r8, [rsp + 0x1030]
mov edx, 0xfff
lea rcx, [rsp + 0x30]
call fcn.18006146c
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x2030]
xor rcx, rsp
call fcn.180033630
add rsp, 0x2048
pop rdi
pop rbx
ret
Function at 0x180002350
Capabilities:
Read .ini file

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
cmp edx, 1
jne 0x180002575
mov qword [rsp + 0x40], rsi
lea rdx, str.BlackDesert64.exe
lea rcx, [0x1800b8b30]
mov qword [rsp + 0x48], rdi
call fcn.180029580
mov edx, eax
lea rcx, [0x1800b8b30]
mov qword [0x1800b8e50], rdx
call fcn.1800294c0
mov r8, qword [0x1800b8e50]
lea rdx, str.InitAA__d_d
mov r9, rax
mov qword [0x1800b8e58], rax
lea rcx, [0x1800b8b30]
call fcn.180029340
mov rcx, qword [0x1800b8e58]
lea rdx, str.Welcome_to_the_black_desert_world
call qword [sym.imp.USER32.dll_SetWindowTextA]
mov qword [0x1800b8ea8], rbx
lea rsi, str.C:config.ini
lea rbx, [0x1800b8b40]
mov qword [rsp + 0x28], rsi
mov r9, rbx
mov dword [rsp + 0x20], 0xff
lea r8, str.Default
lea rdx, str.path
lea rcx, str.path
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov rdi, 0xffffffffffffffff
mov r8, rdi
inc r8
cmp byte [rbx + r8], 0
jne 0x180002416
mov rdx, rbx
lea rbx, [0x1800b7398]
mov rcx, rbx
call fcn.1800020f0
cmp qword [reloc.WS2_32.dll_ntohs], 0xf
lea rdx, str.path__s
lea rcx, [0x1800b8b30]
cmova rbx, qword [0x1800b7398]
mov r8, rbx
call fcn.180029340
lea rbx, [0x1800b8c40]
mov qword [rsp + 0x28], rsi
mov r9, rbx
mov dword [rsp + 0x20], 0xff
lea r8, str.Default
lea rdx, str.Script
lea rcx, str.Script
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov r8, rdi
nop dword [rax]
inc r8
cmp byte [rbx + r8], 0
jne 0x180002490
mov rdx, rbx
lea rbx, [0x1800b7338]
mov rcx, rbx
call fcn.1800020f0
cmp qword [reloc.WS2_32.dll_ntohs], 0xf
lea rdx, str.Script__s
lea rcx, [0x1800b8b30]
cmova rbx, qword [0x1800b7338]
mov r8, rbx
call fcn.180029340
lea rbx, [0x1800b8d40]
mov qword [rsp + 0x28], rsi
mov r9, rbx
mov dword [rsp + 0x20], 0xff
lea r8, str.Default
lea rdx, [0x180093a3c]
lea rcx, [0x180093a3c]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov rsi, qword [rsp + 0x40]
nop dword [rax]
inc rdi
cmp byte [rbx + rdi], 0
jne 0x180002510
mov rdx, rbx
mov r8, rdi
lea rbx, [0x1800b72f8]
mov rcx, rbx
call fcn.1800020f0
cmp qword [reloc.WS2_32.dll_ntohs], 0xf
lea rdx, str.Key__s
lea rcx, [0x1800b8b30]
cmova rbx, qword [0x1800b72f8]
mov r8, rbx
call fcn.180029340
call fcn.18002de50
mov rdi, qword [rsp + 0x48]
lea rcx, str.Init_Thread_Fail
test al, al
je 0x180002570
lea rcx, str.Init_Thread_OK
call fcn.180002270
mov eax, 1
add rsp, 0x30
pop rbx
ret
Function at 0x18000ff20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rax, qword [rcx + 0x18]
mov r15, r8
xor r8d, r8d
mov r14, rdx
mov rbp, rcx
movzx r12d, byte [rax + 0x54]
mov r13d, r12d
and r12d, 3
xor r13d, 3
cmp qword [rdx], r8
je 0x1800100d5
mov qword [rsp + 0x50], rbx
lea rdx, [0x180000000]
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rdi
nop dword [rax]
mov rax, r15
dec r15
test rax, rax
je 0x1800100c6
mov rbx, qword [r14]
movzx ecx, byte [rbx + 9]
mov eax, ecx
xor eax, 3
test r13d, eax
jne 0x1800100b0
mov rax, qword [rbx]
mov qword [r14], rax
movzx eax, byte [rbx + 8]
add eax, 0xfffffffc
cmp eax, 0x22
ja case.0x18000ffbe.12
cdqe
movzx eax, byte [rdx + rax + 0x10114]
mov ecx, dword [rdx + rax*4 + 0x100f0]
add rcx, rdx
jmp rcx
mov rdx, rbx
mov rcx, rbp
call fcn.18000e0d0
lea rdx, [0x180000000]
xor r8d, r8d
jmp case.0x18000ffbe.12
movzx eax, byte [rbx + 0xa]
mov esi, r8d
test al, al
je 0x180010027
lea rdi, [rbx + 0x20]
nop dword [rax]
mov rdx, qword [rdi]
test rdx, rdx
je 0x180010019
sub qword [rdx + 8], 1
jne 0x180010019
lea rax, [rdx + 0x10]
cmp qword [rdx], rax
jne 0x180010019
xor r9d, r9d
mov r8d, 0x20
mov rcx, rbp
call fcn.180014dd0
movzx eax, byte [rbx + 0xa]
inc esi
add rdi, 8
cmp esi, eax
jl 0x18000fff0
movzx r8d, al
lea r8, [r8*8 + 0x20]
jmp 0x180010096
movzx r8d, byte [rbx + 0xa]
add r8, 2
shl r8, 4
jmp 0x180010096
mov rdx, rbx
mov rcx, rbp
call fcn.180020320
lea rdx, [0x180000000]
xor r8d, r8d
jmp case.0x18000ffbe.12
mov rdx, rbx
mov rcx, rbp
call fcn.18001b9e0
lea rdx, [0x180000000]
xor r8d, r8d
jmp case.0x18000ffbe.12
mov r8, qword [rbx + 0x18]
add r8, 0x28
jmp 0x180010096
mov rdx, rbx
mov rcx, rbp
call fcn.18001c6e0
movzx r8d, byte [rbx + 0xb]
jmp 0x180010092
mov r8, qword [rbx + 0x10]
add r8, 0x19
xor r9d, r9d
mov rdx, rbx
mov rcx, rbp
call fcn.180014dd0
lea rdx, [0x180000000]
xor r8d, r8d
jmp case.0x18000ffbe.12
and cl, 0xf8
mov r14, rbx
or cl, r12b
mov byte [rbx + 9], cl
cmp qword [r14], 0
jne 0x18000ff70
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x60]
cmp qword [r14], 0
cmove r14, r8
mov rax, r14
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rbp
ret

Function at 0x180011e00
Capabilities:
Read file on windows

Disassembly:
push rbx
mov eax, 0x2050
call fcn.1800335d0
sub rsp, rax
mov rax, qword [0x1800b7480]
xor rax, rsp
mov qword [rsp + 0x2040], rax
mov rbx, rdx
lea rdx, [rsp + 0x20]
call fcn.1800049b0
nop
mov edx, 0x2000
lea rcx, [rsp + 0x20]
call fcn.180005970
mov r9, rbx
mov edx, 1
mov r8d, 0x2000
mov rcx, rax
call fcn.18006549c
add qword [rsp + 0x30], rax
cmp rax, 0x2000
je 0x180011e30
lea rcx, [rsp + 0x20]
call fcn.180005b00
mov rcx, qword [rsp + 0x2040]
xor rcx, rsp
call fcn.180033630
add rsp, 0x2050
pop rbx
ret