joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000d860
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor r15d, r15d
mov r10, rdx
mov edx, dword [rcx]
mov r14, r9
mov r11d, r8d
mov r13, rcx
mov edi, r15d
cmp edx, r15d
je 0x14000da31
cmp edx, 1
jne 0x14000da88
cmp r10, r15
jne 0x14000d8af
mov rax, qword [rcx + 8]
mov r10, qword [rax + 0x18]
mov eax, 0x6b6e
cmp word [r10 + 4], ax
jne 0x14000da88
cmp dword [r10 + 0x28], r15d
je 0x14000da88
cmp r11d, dword [r10 + 0x28]
jae 0x14000da88
cmp dword [r10 + 0x2c], 0xffffffff
je 0x14000da88
mov rax, qword [rcx + 8]
mov r8, qword [rax + 0x10]
movsxd rax, dword [r10 + 0x2c]
lea rcx, [r8 + rax]
mov eax, 0x6b76
movsxd rbx, dword [rcx + r11*4 + 4]
add rbx, r8
cmp word [rbx + 4], ax
jne 0x14000da88
cmp r9, r15
je 0x14000da88
mov rsi, qword [rsp + 0x90]
cmp rsi, r15
je 0x14000da88
cmp word [rbx + 6], r15w
je 0x14000d9b4
test byte [rbx + 0x14], 1
movzx edx, word [rbx + 6]
je 0x14000d946
lea rcx, [rbx + 0x18]
lea r12d, [rdx + 1]
call fcn.1400110b0
mov rbp, rax
jmp 0x14000d97b
mov r12d, edx
mov ecx, 0x40
add rdx, 2
shr r12d, 1
inc r12d
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbp, rax
cmp rax, r15
je 0x14000da88
movzx r8d, word [rbx + 6]
lea rdx, [rbx + 0x18]
mov rcx, rax
call sub.msvcrt.dll_memcpy
cmp rbp, r15
je 0x14000da88
cmp dword [rsi], r12d
setae dil
cmp edi, r15d
je 0x14000d9a9
mov r8d, r12d
mov rdx, rbp
mov rcx, r14
add r8, r8
call sub.msvcrt.dll_memcpy
lea r11d, [r12 - 1]
mov dword [rsi], r11d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14000d9b7
mov dword [rsi], r15d
cmp edi, r15d
je 0x14000da88
mov esi, dword [rbx + 8]
mov rcx, qword [rsp + 0xa0]
btr esi, 0x1f
cmp rcx, r15
je 0x14000d9d9
mov eax, dword [rbx + 0x10]
mov dword [rcx], eax
mov rbp, qword [rsp + 0xb0]
cmp rbp, r15
je 0x14000da88
mov rcx, qword [rsp + 0xa8]
cmp rcx, r15
je 0x14000da2c
cmp dword [rbp], esi
mov edi, r15d
setae dil
cmp edi, r15d
je 0x14000da2c
bt dword [rbx + 8], 0x1f
jae 0x14000da13
lea rdx, [rbx + 0xc]
jmp 0x14000da24
mov rax, qword [r13 + 8]
movsxd r8, dword [rbx + 0xc]
mov rdx, qword [rax + 0x10]
lea rdx, [r8 + rdx + 4]
mov r8d, esi
call sub.msvcrt.dll_memcpy
mov dword [rbp], esi
jmp 0x14000da88
mov rax, qword [rsp + 0xb0]
mov r9, qword [rsp + 0x90]
mov r8, r14
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xa8]
mov edx, r11d
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xa0]
mov rcx, r10
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, r15d
sete dil
cmp edi, r15d
jne 0x14000da88
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r11, [rsp + 0x40]
mov eax, edi
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14000fdac
Capabilities:
Encrypt data using rc4 via systemfunction032

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 0x10], rdx
push rdi
push r12
push r13
sub rsp, 0xc0
mov rsi, qword [rcx + 8]
xor ebp, ebp
lea rax, [rax - 0x30]
lea edi, [rbp + 0x10]
mov rbx, rcx
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x44], edi
cmp qword [0x140123d78], rbp
je 0x14000ff26
cmp dword [0x140123d70], ebp
je 0x14000ff26
cmp dword [rcx], 0x14
jb 0x14000ff1d
test rsi, rsi
je 0x14000ff1d
lea rcx, [rsp + 0x50]
call sub.cryptdll.dll_MD5Init
mov r8d, dword [0x140123d70]
mov rdx, qword [0x140123d78]
lea rcx, [rsp + 0x50]
call sub.cryptdll.dll_MD5Update
lea rcx, [rsp + 0x50]
mov r8d, edi
mov rdx, rsi
call sub.cryptdll.dll_MD5Update
lea rcx, [rsp + 0x50]
call sub.cryptdll.dll_MD5Final
mov r11d, dword [rbx]
lea r12, [rsi + 0x10]
sub r11d, edi
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x34], r11d
mov dword [rsp + 0x30], r11d
mov qword [rsp + 0x38], r12
call sub.ADVAPI32.dll_SystemFunction032
test eax, eax
js 0x14000ff14
mov edi, dword [rbx]
lea r13, [rsi + 0x14]
lea r9, [rsp + 0xe8]
sub edi, 0x14
mov rdx, r13
mov ecx, 0x8000
mov r8d, edi
mov dword [rsp + 0x20], 4
call fcn.14000397c
test eax, eax
je 0x14000ff0b
mov edx, dword [rsp + 0xe8]
cmp edx, dword [r12]
jne 0x14000fef9
mov rsi, qword [rbx + 8]
lea ecx, [rbp + 0x40]
mov edx, edi
mov r12d, edi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbx + 8], rax
test rax, rax
je 0x14000ff32
mov r8, r12
mov rdx, r13
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov dword [rbx], edi
mov ebp, 1
test rsi, rsi
je 0x14000ff32
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14000ff32
mov r8d, dword [r12]
lea rcx, str.ERROR_kull_m_rpc_drsr_ProcessGetNCChangesReply_decrypt___Checksums_dont_match__C:0x_08x___R:0x_08x__n
call fcn.14000a838
jmp 0x14000ff32
lea rcx, str.ERROR_kull_m_rpc_drsr_ProcessGetNCChangesReply_decrypt___Unable_to_calculate_CRC32_n
jmp 0x14000ff2d
lea rcx, str.ERROR_kull_m_rpc_drsr_ProcessGetNCChangesReply_decrypt___RtlEncryptDecryptRC4_n
jmp 0x14000ff2d
lea rcx, str.ERROR_kull_m_rpc_drsr_ProcessGetNCChangesReply_decrypt___No_valid_data_n
jmp 0x14000ff2d
lea rcx, str.ERROR_kull_m_rpc_drsr_ProcessGetNCChangesReply_decrypt___No_Session_Key_n
call fcn.14000a838
lea r11, [rsp + 0xc0]
mov eax, ebp
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x140010908
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, r8
mov rbp, rdx
mov rdx, rcx
xor ebx, ebx
mov rcx, rdi
lea r8d, [rbx + 4]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
cmp rax, rbx
je 0x140010963
lea rax, [rsp + 0x58]
lea r9d, [rbx + 0x24]
mov r8, rbp
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140010a00
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
xor ebx, ebx
lea rdx, str.ServicesActive
lea r8d, [rbx + 1]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
cmp rax, rbx
je 0x140010a66
mov r8d, 0x10000
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
cmp rax, rbx
je 0x140010a5d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140010cf8
Capabilities:
Create service
Persist via windows service
Start service

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 r12
push r13
push r14
sub rsp, 0x70
mov r13, r8
mov r14, rdx
mov rbx, rcx
xor esi, esi
lea rdx, str.ServicesActive
xor ecx, ecx
lea r8d, [rsi + 3]
mov r12d, r9d
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
je 0x140010ea1
lea r8d, [rsi + 0x10]
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x140010d6e
lea rcx, str.____s_service_already_registered_n
mov rdx, rbx
call fcn.14000a838
jmp 0x140010e39
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x140010e25
lea rcx, str.____s_service_not_present_n
mov rdx, rbx
call fcn.14000a838
and qword [rsp + 0x60], rsi
and qword [rsp + 0x58], rsi
and qword [rsp + 0x50], rsi
and qword [rsp + 0x48], rsi
and qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], 1
mov r9d, 0x60010
mov r8, r14
mov rdx, rbx
mov rcx, rbp
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rdi, rax
test rax, rax
je 0x140010e16
lea rcx, str.____s_service_successfully_registered_n
mov rdx, rbx
call fcn.14000a838
mov rcx, rdi
call fcn.140010b68
mov esi, eax
test eax, eax
je 0x140010e07
lea rcx, str.____s_service_ACL_to_everyone_n
jmp 0x140010d61
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_service_install___kull_m_service_addWorldToSD__0x_08x__n
jmp 0x140010e32
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_service_install___CreateService__0x_08x__n
jmp 0x140010e32
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_service_install___OpenService__0x_08x__n
mov edx, eax
call fcn.14000a838
test rdi, rdi
je 0x140010e96
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov esi, eax
test eax, eax
je 0x140010e5b
lea rcx, str.____s_service_started_n
jmp 0x140010e6f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x140010e79
lea rcx, str.____s_service_already_started_n
mov rdx, rbx
call fcn.14000a838
jmp 0x140010e8d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_service_install___StartService__0x_08x__n
mov edx, eax
call fcn.14000a838
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140010eb5
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_service_install___OpenSCManager_create___0x_08x__n
mov edx, eax
call fcn.14000a838
lea r11, [rsp + 0x70]
mov eax, esi
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret
Function at 0x1400119e4
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
xor edi, edi
mov rsi, r8
mov rbx, rdx
and qword [rax - 0x18], rdi
and qword [rdx], rdi
and qword [rax - 0x20], rdi
and dword [r8], edi
mov qword [rax - 0x28], r8
lea r8d, [rdi + 1]
xor r9d, r9d
xor edx, edx
mov rbp, rcx
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x140011a6e
mov edx, dword [rsi]
lea ecx, [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbx], rax
test rax, rax
je 0x140011a6e
and qword [rsp + 0x30], rdi
and qword [rsp + 0x28], rdi
lea r8d, [rdi + 1]
mov r9, rax
xor edx, edx
mov rcx, rbp
mov qword [rsp + 0x20], rsi
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
mov edi, eax
test eax, eax
jne 0x140011a6e
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbx], rax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov eax, edi
add rsp, 0x40
pop rdi
ret

Function at 0x140011a88
Capabilities:
Encode data using base64 via winapi

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 r12
push r13
push r14
sub rsp, 0x30
mov r12, qword [rsp + 0x70]
mov r14, rdx
mov rsi, rcx
mov edx, dword [r12]
xor ebx, ebx
mov rbp, r9
lea ecx, [rbx + 0x40]
mov r13d, r8d
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
cmp rax, rbx
je 0x140011b10
mov r9, rax
mov r8d, 0x80000001
mov edx, r13d
mov rcx, r14
mov qword [rsp + 0x20], r12
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
cmp eax, ebx
je 0x140011b07
lea rdx, str._____BEGIN__s______n_s_____END__s______n
mov r9, rdi
mov r8, rsi
mov rcx, rbp
mov qword [rsp + 0x20], rsi
call fcn.140011bb8
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r14
pop r13
pop r12
ret
Function at 0x140011ff8
Capabilities:
Get token membership

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
xor ebx, ebx
mov rbp, r8
mov r12, rdx
lea rax, [r11 - 0x28]
lea r8, [r11 + 0x20]
lea r9d, [rbx + 4]
lea edx, [rbx + 8]
mov rsi, rcx
xor edi, edi
mov qword [r11 - 0x38], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1400120cd
mov eax, dword [rsp + 0x78]
cmp eax, 1
jne 0x140012087
lea rax, [rsp + 0x38]
lea r9d, [rbx + 1]
lea edx, [rbx + 8]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rcx, rsi
mov dword [rsp + 0x20], 2
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov edi, eax
test eax, eax
jne 0x140012091
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_token_CheckTokenMembership___DuplicateTokenEx__0x_08x__n
mov edx, eax
call fcn.14000a838
mov eax, dword [rsp + 0x78]
jmp 0x14001208c
mov qword [rsp + 0x38], rsi
cmp eax, 1
je 0x1400120e1
mov rcx, qword [rsp + 0x38]
mov r8, rbp
mov rdx, r12
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ebx, eax
test eax, eax
jne 0x1400120bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_token_CheckTokenMembership___CheckTokenMembership__0x_08x__n
mov edx, eax
call fcn.14000a838
test edi, edi
je 0x1400120e1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400120e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_token_CheckTokenMembership___GetTokenInformation__0x_08x__n
mov edx, eax
call fcn.14000a838
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
Function at 0x140012200
Capabilities:
Get user security identifier

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x50
xor esi, esi
test r9, r9
lea rbp, [r11 - 0x24]
cmovne rbp, r9
and dword [rsp + 0x40], esi
and dword [r11 + 0x20], esi
mov qword [r11 - 0x38], rbp
mov rbx, rdx
mov r12, rcx
lea rax, [r11 + 0x20]
mov rdx, rcx
mov rcx, qword [rsp + 0x90]
mov rdi, r8
mov qword [r11 - 0x40], rax
and qword [r11 - 0x48], rsi
lea r9, [r11 - 0x28]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x1400122f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400122f1
mov edx, dword [rsp + 0x40]
lea ecx, [rsi + 0x40]
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbx], rax
test rax, rax
je 0x1400122f1
mov edx, dword [rsp + 0x88]
lea ecx, [rsi + 0x40]
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rdi], rax
test rax, rax
je 0x1400122e5
mov r8, qword [rbx]
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x90]
lea r9, [rsp + 0x40]
mov rdx, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov esi, eax
test eax, eax
jne 0x1400122f1
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rdi], rax
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbx], rax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov eax, esi
add rsp, 0x50
pop r12
pop rdi
pop rsi
ret
Function at 0x14002e32c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x38
mov rax, qword [rcx + 8]
mov r15, rcx
mov ebp, edx
mov r11, qword [rax + 8]
mov rax, qword [rcx + 0x28]
mov ecx, dword [r11 + 0x30]
mov r10, qword [rax + 8]
mov r12, qword [r11]
movsxd rax, dword [r10 + 0x30]
mov r8d, ecx
mov dword [rsp + 0x80], ecx
cmp eax, ecx
mov r14, rax
cmovl r8d, eax
xor ebx, ebx
mov dword [rsp + 0x88], r8d
imul rbp, rax
cmp eax, ecx
je 0x14002e396
cmp byte [r12 + 0x10], bl
lea eax, [rbx + 8]
cmovne ebx, eax
mov rdi, rbp
sub rdi, r14
jmp 0x14002e48c
cmp rdi, rbp
jge 0x14002e494
and qword [rsp + 0x20], 0
movsxd r13, ecx
mov rax, rdi
cqo
idiv r13
mov rsi, rdx
xor edx, edx
lea r10d, [rax + 1]
mov rax, qword [r15 + 8]
mov rcx, qword [rax + 8]
mov eax, 0x40000000
div dword [rcx + 0x30]
inc eax
cmp r10d, eax
je 0x14002e482
lea r8, [rsp + 0x20]
xor r9d, r9d
mov edx, r10d
mov rcx, r12
call qword [r12 + 0x108]
mov ebx, eax
test eax, eax
jne 0x14002e473
mov rcx, qword [rsp + 0x20]
call fcn.140020918
mov ebx, eax
test eax, eax
jne 0x14002e473
mov rax, qword [rsp + 0x20]
movsxd r8, dword [rsp + 0x88]
add rsi, qword [rax + 8]
mov rax, rdi
cqo
mov rcx, rsi
idiv r14
add rdx, qword [rsp + 0x90]
call sub.msvcrt.dll_memcpy
mov r11, qword [rsp + 0x20]
mov rax, qword [r11 + 0x10]
mov byte [rax], bl
test rdi, rdi
jne 0x14002e473
cmp dword [rsp + 0x98], edi
jne 0x14002e473
mov rax, qword [r15 + 0x28]
mov rcx, qword [rax + 8]
mov edx, dword [rcx + 0x3c]
mov eax, edx
mov byte [rsi + 0x1f], dl
shr eax, 0x18
mov byte [rsi + 0x1c], al
mov eax, edx
shr eax, 0x10
mov byte [rsi + 0x1d], al
mov eax, edx
shr eax, 8
mov byte [rsi + 0x1e], al
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14002e482
call fcn.140020300
mov ecx, dword [rsp + 0x80]
add rdi, r13
test ebx, ebx
je 0x14002e3a1
mov eax, ebx
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140058520
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x30
mov r12, qword [rcx]
mov rbp, qword [rcx + 0x10]
mov rsi, qword [rcx + 0x88]
mov rdi, rcx
jmp 0x1400585fd
movsxd r8, dword [rsi + 0x10]
mov rax, qword [r12 + 0x20]
mov ebx, dword [rsi + 0x14]
mov r9, r8
xor edx, edx
mov rcx, rdi
shl r9, 5
mov dword [rsp + 0x20], reloc.WLDAP32.dll_Ordinal_97
mov r9, qword [r9 + rax + 0x18]
mov r9, qword [r9 + 0x68]
call fcn.1400580bc
mov r8, qword [rsi + 8]
lea r13d, [rbx - 1]
mov r8, qword [r8]
mov edx, r13d
mov rcx, rbp
call fcn.1400302b4
xor r9d, r9d
lea r8, [0x1400c9ce8]
lea edx, [r9 + 0xc]
mov rcx, rbp
call fcn.1400307bc
test rax, rax
je 0x140058606
mov ecx, 0x10
lea edx, [rbx + 2]
mov dword [rax + 8], ebx
mov word [rax + 0x4a], cx
lea ecx, [rbx + 1]
mov dword [rax + 0x3c], ebx
mov dword [rax + 0xc], edx
mov dword [rax + 0x4c], r13d
mov dword [rax + 0x54], ebx
mov dword [rax + 0x68], ecx
mov dword [rax + 0x84], ebx
mov dword [rax + 0x94], ebx
mov dword [rax + 0xb0], edx
mov dword [rax + 0xac], ebx
mov dword [rax + 0xf8], ebx
cmp dword [rdi + 0x34], 0
jne 0x1400585fa
mov dword [rdi + 0x34], 1
mov rsi, qword [rsi]
test rsi, rsi
jne 0x14005854e
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r13
pop r12
pop rdi
ret

Function at 0x140058620
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rdi, qword [rcx + 0x88]
mov r14, qword [rcx + 0x10]
mov r13, qword [rcx]
mov rbx, rcx
test rdi, rdi
je 0x14005872a
mov r15d, 8
movsxd rbp, dword [rdi + 0x10]
mov al, byte [rbx + 0x1f]
mov r12d, dword [rdi + 0x14]
shl rbp, 5
add rbp, qword [r13 + 0x20]
test al, al
jne 0x14005867b
inc dword [rbx + 0x38]
mov esi, dword [rbx + 0x38]
jmp 0x14005868a
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov esi, dword [rbx + rax*4 + 0xbc]
mov r9d, dword [r14 + 0x90]
lea r8d, [r12 + 2]
mov edx, 0x37
mov rcx, r14
add r9d, 7
mov dword [rsp + 0x20], r12d
call fcn.140030238
mov r9, qword [rbp + 0x18]
mov r8d, dword [rdi + 0x10]
mov r9, qword [r9 + 0x68]
xor edx, edx
mov rcx, rbx
mov dword [rsp + 0x20], 0x62
call fcn.1400580bc
xor r9d, r9d
lea r8, [0x1400c9d18]
lea edx, [r9 + 5]
mov rcx, r14
call fcn.1400307bc
test rax, rax
je 0x14005872a
lea edx, [r12 + 1]
lea ecx, [r12 - 1]
mov dword [rax + 0x3c], esi
mov dword [rax + 0x50], esi
mov word [rax + 0x4a], r15w
mov dword [rax + 4], edx
mov dword [rax + 0x20], edx
mov dword [rax + 0x34], ecx
mov dword [rax + 0x54], edx
test esi, esi
je 0x14005871e
cmp byte [rbx + 0x1f], r15b
jae 0x14005871e
movzx eax, byte [rbx + 0x1f]
mov dword [rbx + rax*4 + 0xbc], esi
inc byte [rbx + 0x1f]
mov rdi, qword [rdi]
test rdi, rdi
jne 0x14005865c
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140083388
Capabilities:
Set console window title

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 r13
mov eax, 0x20020
call fcn.1400c3750
sub rsp, rax
movsxd rdi, ecx
mov rcx, qword [sym.imp.msvcrt.dll__iob]
xor r13d, r13d
add rcx, 0x30
mov rbp, rdx
mov ebx, r13d
call qword [sym.imp.msvcrt.dll__fileno]
mov esi, 0x40000
mov ecx, eax
mov edx, esi
call qword [sym.imp.msvcrt.dll__setmode]
mov rcx, qword [sym.imp.msvcrt.dll__iob]
add rcx, 0x60
mov dword [0x140124300], eax
call qword [sym.imp.msvcrt.dll__fileno]
mov edx, esi
mov ecx, eax
call qword [sym.imp.msvcrt.dll__setmode]
mov dword [0x140124308], eax
call qword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov ecx, 0xfde9
mov dword [0x140124304], eax
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
lea rcx, [0x1400e6fc0]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
lea edx, [r13 + 1]
lea rcx, [0x140083590]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
lea rcx, [0x1400e7000]
call fcn.14000a838
lea ecx, [r13 + 1]
call fcn.1400835a4
lea esi, [r13 + 1]
cmp rsi, rdi
jge 0x14008348c
cmp ebx, 0x40000015
je 0x140083517
mov rdx, qword [rbp + rsi*8]
lea rcx, [0x1400e6f58]
call fcn.14000a838
mov rcx, qword [rbp + rsi*8]
call fcn.1400836a4
inc rsi
cmp rsi, rdi
mov ebx, eax
jl 0x140083450
cmp eax, 0x40000015
je 0x140083517
lea rcx, [0x1400e6f98]
call fcn.14000a838
mov rcx, qword [sym.imp.msvcrt.dll__iob]
call qword [sym.imp.msvcrt.dll_fflush]
mov r8, qword [sym.imp.msvcrt.dll__iob]
lea rcx, [rsp + 0x20]
mov edx, 0xffff
call qword [sym.imp.msvcrt.dll_fgetws]
cmp rax, r13
je 0x14008350b
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x20]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
je 0x14008350b
cmp word [rsp + 0x20], 0xa
je 0x14008350b
cmp word [rsp + rcx*2 + 0x1e], 0xa
jne 0x1400834ee
mov word [rsp + rcx*2 + 0x1e], r13w
lea rdx, [rsp + 0x20]
lea rcx, [0x1400e6fb8]
call fcn.14000a980
lea rcx, [rsp + 0x20]
call fcn.1400836a4
mov ebx, eax
cmp ebx, 0x40000015
jne 0x14008348c
call fcn.140083520
int3

Function at 0x140083520
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call fcn.1400835a4
lea rcx, [0x140083590]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov rcx, qword [sym.imp.msvcrt.dll__iob]
add rcx, 0x30
call qword [sym.imp.msvcrt.dll__fileno]
mov edx, dword [0x140124300]
mov ecx, eax
call qword [sym.imp.msvcrt.dll__setmode]
mov rcx, qword [sym.imp.msvcrt.dll__iob]
add rcx, 0x60
call qword [sym.imp.msvcrt.dll__fileno]
mov edx, dword [0x140124308]
mov ecx, eax
call qword [sym.imp.msvcrt.dll__setmode]
mov ecx, dword [0x140124304]
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1400836a4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov edi, 0xc0000001
test rcx, rcx
je 0x14008374d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebp, eax
test eax, eax
je 0x14008374d
mov rdx, rbp
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x14008374d
mov r8d, ebp
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp ebp, eax
je 0x140083712
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, rax
test rbx, rbx
je 0x14008374d
movzx eax, word [rbx]
cmp eax, 0x21
je 0x140083739
cmp eax, 0x2a
je 0x14008372e
mov rcx, rbx
call fcn.140083764
jmp 0x140083742
lea rcx, [rbx + 2]
call fcn.1400a7890
jmp 0x140083742
lea rcx, [rbx + 2]
call fcn.140099500
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, edi
add rsp, 0x20
pop rdi
ret