joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000f038
Capabilities:
Encode data using xor
Read file on windows
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x150
movzx edi, r9b
mov r15, r8
mov bl, dl
mov word [rsp + 0x30], 0x103
mov r14, rcx
xorps xmm0, xmm0
xor edx, edx
lea rcx, [rsp + 0x50]
lea eax, [rdi + 5]
mov r8d, 0x100
mov byte [rsp + 0x32], al
xor esi, esi
xor eax, eax
mov dword [rsp + 0x43], eax
mov byte [rsp + 0x47], al
movups xmmword [rsp + 0x33], xmm0
call fcn.1400e8100
cmp dil, 0x12
jae 0x14000f236
mov r8d, edi
mov byte [rsp + 0x33], bl
mov rdx, r15
lea rcx, [rsp + 0x34]
call fcn.1400e84c0
xor dl, dl
lea r8d, [rdi + 3]
xor cl, cl
test r8d, r8d
je 0x14000f0d3
movzx eax, cl
inc cl
xor dl, byte [rsp + rax + 0x31]
movzx eax, cl
cmp eax, r8d
jb 0x14000f0c2
mov byte [rsp + rdi + 0x34], dl
mov rcx, r14
mov edx, reloc.WLDAP32.dll_Ordinal_12
mov byte [rsp + rdi + 0x35], 4
call qword [sym.imp.KERNEL32.dll_PurgeComm]
mov edi, 0x64
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
and qword [rsp + 0x20], rsi
lea r9, [rbp + 0x88]
lea r8d, [rdi - 0x4c]
mov rcx, r14
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000f22a
cmp dword [rbp + 0x88], 0x18
jne 0x14000f22a
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ClearCommError]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
and qword [rsp + 0x20], rsi
lea r9, [rbp + 0x88]
mov r8d, 0x100
lea rdx, [rsp + 0x50]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000f22a
cmp dword [rbp + 0x88], 6
jb 0x14000f22a
cmp byte [rsp + 0x50], 5
jne 0x14000f22a
cmp byte [rsp + 0x51], 1
jne 0x14000f22a
mov cl, byte [rsp + 0x52]
cmp cl, 5
jb 0x14000f22a
or bl, 0x80
cmp byte [rsp + 0x53], bl
jne 0x14000f22a
sub cl, 5
xor r8b, r8b
movzx r10d, cl
xor dl, dl
lea r9d, [r10 + 3]
test r9d, r9d
je 0x14000f1cc
movzx eax, dl
inc dl
xor r8b, byte [rsp + rax + 0x51]
movzx eax, dl
cmp eax, r9d
jb 0x14000f1ba
cmp byte [rsp + r10 + 0x54], r8b
jne 0x14000f22a
cmp byte [rsp + r10 + 0x55], 4
jne 0x14000f22a
mov esi, 1
test cl, cl
je 0x14000f236
mov rbx, qword [rbp + 0x90]
test rbx, rbx
je 0x14000f236
mov rax, qword [rbp + 0x98]
test rax, rax
je 0x14000f236
movzx edi, cl
mov byte [rax], cl
mov edx, edi
lea ecx, [rsi + 0x3f]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbx], rax
test rax, rax
je 0x14000f226
mov r8d, edi
lea rdx, [rsp + 0x54]
mov rcx, rax
call fcn.1400e84c0
jmp 0x14000f236
xor esi, esi
jmp 0x14000f236
lea rcx, str.BigBad_:_sR98_send_receive___ERROR
call fcn.14000b9e4
lea r11, [rsp + 0x150]
mov eax, esi
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140011780
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbp, rdx
mov rsi, rcx
xor ebx, ebx
lea rdx, str.ServicesActive
xor ecx, ecx
lea r8d, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x1400117ff
lea r8d, [rbx + 4]
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x1400117f6
lea rax, [rsp + 0x50]
mov r8, rbp
lea r9d, [rbx + 0x24]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rsi
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 eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140011894
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
lea rdx, str.ServicesActive
xor ebx, ebx
xor ecx, ecx
lea r8d, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
je 0x1400118fa
mov r8d, 0x10000
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x1400118f1
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 0x140011b58
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbp
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
push r14
push r15
sub rsp, 0x70
mov r12, r8
mov r13, rdx
mov rdi, rcx
lea rdx, str.ServicesActive
xor esi, esi
xor ecx, ecx
mov r15d, r9d
lea r8d, [rsi + 3]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r14, rax
test rax, rax
je 0x140011ce8
lea r8d, [rsi + 0x10]
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbp, rax
test rax, rax
je 0x140011bce
mov rdx, rdi
lea rcx, str.____s_service_already_registered_n
call fcn.14000b9e4
jmp 0x140011c7f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x140011cd1
mov rdx, rdi
lea rcx, str.____s_service_not_present_n
call fcn.14000b9e4
xor eax, eax
mov r9d, 0x60010
mov qword [rsp + 0x60], rax
mov r8, r13
mov qword [rsp + 0x58], rax
mov rdx, rdi
mov qword [rsp + 0x50], rax
mov rcx, r14
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], r15d
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rbp, rax
test rax, rax
je 0x140011c6e
mov rdx, rdi
lea rcx, str.____s_service_successfully_registered_n
call fcn.14000b9e4
mov rcx, rbp
call fcn.1400119f4
mov esi, eax
test eax, eax
je 0x140011c6e
mov rdx, rdi
lea rcx, str.____s_service_ACL_to_everyone_n
call fcn.14000b9e4
jmp 0x140011c7a
lea rcx, str.BigBad_:_kull_m_service_install___ERROR
call fcn.14000b9e4
test rbp, rbp
je 0x140011cdd
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov esi, eax
test eax, eax
je 0x140011c9c
lea rcx, str.____s_service_started_n
jmp 0x140011cb0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x140011cba
lea rcx, str.____s_service_already_started_n
mov rdx, rdi
call fcn.14000b9e4
jmp 0x140011cc6
lea rcx, str.BigBad_:_kull_m_service_install___ERROR
call fcn.14000b9e4
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140011cdd
lea rcx, str.BigBad_:_kull_m_service_install___ERROR
call fcn.14000b9e4
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140011cf4
lea rcx, str.BigBad_:_kull_m_service_install___ERROR
call fcn.14000b9e4
lea r11, [rsp + 0x70]
mov eax, esi
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret
Function at 0x140012818
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
and qword [rax - 0x18], rdi
mov rbx, rdx
and qword [rdx], rdi
xor r9d, r9d
and qword [rax - 0x20], rdi
xor edx, edx
and dword [r8], edi
mov rbp, rcx
mov qword [rax - 0x28], r8
lea r8d, [rdi + 1]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x1400128a2
mov edx, dword [rsi]
lea ecx, [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbx], rax
test rax, rax
je 0x1400128a2
and qword [rsp + 0x30], rdi
lea r8d, [rdi + 1]
and qword [rsp + 0x28], rdi
mov r9, rax
xor edx, edx
mov qword [rsp + 0x20], rsi
mov rcx, rbp
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
mov edi, eax
test eax, eax
jne 0x1400128a2
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbx], rax
mov rbx, qword [rsp + 0x50]
mov eax, edi
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x14001298c
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
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x40
mov r15, r8
mov r14, rdx
mov r12, rcx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
lea ecx, [rbx + 0x40]
and eax, 3
lea edx, [rax + 1]
add edx, ebp
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x140012a95
mov r8d, ebp
mov rdx, r12
mov rcx, rax
mov esi, ebp
call fcn.1400e84c0
test ebp, ebp
je 0x140012a14
mov rax, rdi
cmp byte [rax], 0x2d
jne 0x1400129fa
mov byte [rax], reloc.ODBC32.dll_SQLGetData
jmp 0x140012a0b
cmp byte [rax], 0x5f
jne 0x140012a04
mov byte [rax], 0x2f
jmp 0x140012a0b
cmp byte [rax], bl
jne 0x140012a0b
mov byte [rax], 0x3d
inc rax
sub rsi, 1
jne 0x1400129f0
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
xor edx, edx
mov rcx, rdi
mov qword [r14], rbx
mov esi, ebx
mov dword [r15], ebx
lea r8d, [r9 + 1]
mov qword [rsp + 0x20], r15
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x140012a8a
mov edx, dword [r15]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [r14], rax
test rax, rax
je 0x140012a8a
xor edx, edx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov r9, rax
mov rcx, rdi
mov qword [rsp + 0x20], r15
lea r8d, [rdx + 1]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
mov esi, eax
test eax, eax
jne 0x140012a8a
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [r14], rax
mov rcx, rdi
mov ebx, esi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
Function at 0x140012ab8
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
push rdi
sub rsp, 0x30
lea rax, [rax + 0x20]
mov rbx, r8
xor edi, edi
mov qword [rsp + 0x20], rax
and dword [rax], edi
xor r9d, r9d
mov r8d, 0x40000001
mov esi, edx
mov rbp, rcx
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
je 0x140012b39
mov edx, dword [rsp + 0x58]
lea ecx, [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbx], rax
test rax, rax
je 0x140012b39
lea rcx, [rsp + 0x58]
mov r9, rax
mov qword [rsp + 0x20], rcx
mov r8d, 0x40000001
mov rcx, rbp
mov edx, esi
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
mov edi, eax
test eax, eax
jne 0x140012b39
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbx], rax
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140012bac
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
push rdi
push r14
push r15
sub rsp, 0x40
mov r14d, r8d
lea rax, [rax - 0x28]
mov r15, rdx
mov qword [rsp + 0x20], rax
mov rbp, r9
mov rsi, rcx
xor ebx, ebx
xor r9d, r9d
mov dword [rax], ebx
mov r8d, 0x80000001
mov edx, r14d
mov rcx, r15
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
je 0x140012c53
mov edx, dword [rsp + 0x30]
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x140012c53
lea rax, [rsp + 0x30]
mov r9, rdi
mov r8d, 0x80000001
mov qword [rsp + 0x20], rax
mov edx, r14d
mov rcx, r15
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
je 0x140012c4a
mov r9, rdi
mov qword [rsp + 0x20], rsi
mov r8, rsi
lea rdx, str._____BEGIN__s______n_s_____END__s______n
mov rcx, rbp
call fcn.140012d30
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x14001311c
Capabilities:
Get token membership

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
xor ebx, ebx
lea rax, [r11 - 0x28]
mov rbp, r8
mov qword [r11 - 0x38], rax
mov r14, rdx
lea r8, [r11 + 0x20]
mov rsi, rcx
xor edi, edi
lea r9d, [rbx + 4]
lea edx, [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1400131e1
mov eax, dword [rsp + 0x78]
cmp eax, 1
jne 0x1400131a3
lea rax, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9d, [rbx + 1]
lea edx, [rbx + 8]
mov dword [rsp + 0x20], 2
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov edi, eax
test eax, eax
jne 0x1400131ad
lea rcx, str.BigBad_:_kull_m_tOKEn_CheckTokenMembership___ERROR
call fcn.14000b9e4
mov eax, dword [rsp + 0x78]
jmp 0x1400131a8
mov qword [rsp + 0x38], rsi
cmp eax, 1
je 0x1400131ed
mov rcx, qword [rsp + 0x38]
mov r8, rbp
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ebx, eax
test eax, eax
jne 0x1400131d0
lea rcx, str.BigBad_:_kull_m_tOKEn_CheckTokenMembership___ERROR
call fcn.14000b9e4
test edi, edi
je 0x1400131ed
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400131ed
lea rcx, str.BigBad_:_kull_m_tOKEn_CheckTokenMembership___ERROR
call fcn.14000b9e4
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x14001330c
Capabilities:
Get user security identifier

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
xor esi, esi
lea rbp, [r11 - 0x24]
test r9, r9
lea rax, [r11 + 0x20]
mov rbx, rdx
mov rdi, r8
cmovne rbp, r9
mov r14, rcx
and dword [rsp + 0x40], esi
lea r9, [r11 - 0x28]
and dword [r11 + 0x20], esi
mov rdx, rcx
mov rcx, qword [rsp + 0x90]
xor r8d, r8d
mov qword [r11 - 0x38], rbp
mov qword [r11 - 0x40], rax
and qword [r11 - 0x48], rsi
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x1400133fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400133fd
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 0x1400133fd
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 0x1400133f1
mov r8, qword [rbx]
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x30], rbp
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
mov rdx, r14
mov rcx, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov esi, eax
test eax, eax
jne 0x1400133fd
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 eax, esi
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x14001c204
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
movsxd r10, dword [rcx + 0xc]
mov r14, rdx
movsxd rbx, r8d
mov r9, rcx
test r8d, r8d
jle 0x14001c261
mov rdi, qword [rcx]
mov r11, r10
movsxd rsi, dword [rcx + 8]
xor edx, edx
mov al, byte [r14 + rdx]
lea rcx, [r11 + 1]
xor byte [r11 + rdi], al
lea eax, [r10 + 1]
xor r10d, r10d
cmp rcx, rsi
cmovl r10d, eax
xor r11d, r11d
inc rdx
cmp rcx, rsi
cmovl r11, rcx
cmp rdx, rbx
jl 0x14001c235
add dword [r9 + 0x10], r8d
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov r14, qword [rsp + 0x20]
mov dword [r9 + 0xc], r10d
ret
Function at 0x14002ef60
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 r13, rcx
mov ebp, edx
mov r11, qword [rax + 8]
mov rax, qword [rcx + 0x28]
mov ecx, dword [r11 + 0x30]
mov r8d, ecx
mov r10, qword [rax + 8]
mov r14, qword [r11]
mov dword [rsp + 0x80], ecx
movsxd rax, dword [r10 + 0x30]
cmp eax, ecx
mov r12, rax
cmovl r8d, eax
xor ebx, ebx
imul rbp, rax
mov dword [rsp + 0x88], r8d
cmp eax, ecx
je 0x14002efcf
cmp byte [r14 + 0x10], bl
je 0x14002efcf
mov ebx, 8
jmp 0x14002f0d3
mov rdi, rbp
sub rdi, r12
cmp rdi, rbp
jge 0x14002f0d3
and qword [rsp + 0x20], 0
mov rax, rdi
cqo
movsxd r15, ecx
idiv r15
xor edx, edx
lea r10d, [rax + 1]
mov rax, qword [r13 + 8]
mov rcx, qword [rax + 8]
mov eax, 0x40000000
div dword [rcx + 0x30]
inc eax
cmp r10d, eax
je 0x14002f0c1
xor r9d, r9d
lea r8, [rsp + 0x20]
mov edx, r10d
mov rcx, r14
call qword [r14 + 0x108]
mov ebx, eax
test eax, eax
jne 0x14002f0b2
mov rcx, qword [rsp + 0x20]
call fcn.14002180c
mov ebx, eax
test eax, eax
jne 0x14002f0b2
movsxd r8, dword [rsp + 0x88]
mov rax, rdi
cqo
idiv r15
mov rax, qword [rsp + 0x20]
mov rsi, rdx
add rsi, qword [rax + 8]
mov rax, rdi
cqo
mov rcx, rsi
idiv r12
add rdx, qword [rsp + 0x90]
call fcn.1400e84c0
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x10]
mov byte [rcx], bl
test rdi, rdi
jne 0x14002f0b2
cmp dword [rsp + 0x98], edi
jne 0x14002f0b2
mov rax, qword [r13 + 0x28]
mov rcx, qword [rax + 8]
mov edx, dword [rcx + 0x3c]
mov eax, edx
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 byte [rsi + 0x1f], dl
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14002f0c1
call fcn.14002122c
mov ecx, dword [rsp + 0x80]
add rdi, r15
test ebx, ebx
je 0x14002efd5
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 0x140047bb0
Capabilities:
Reference sql statements

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x30
mov ebx, r8d
lea r9, str.sqlite_master
mov dword [rax - 0x10], ebx
mov rdi, rdx
mov qword [rax - 0x18], rdx
mov r8, rdx
lea rdx, str.SELECT_1_FROM___w_._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d_NULL
mov rsi, rcx
call fcn.14004c2b0
test ebx, ebx
jne 0x140047c03
mov r9, rdi
lea r8, str.sqlite_master
lea rdx, str.SELECT_1_FROM_temp._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1_NULL
mov rcx, rsi
call fcn.14004c2b0
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140058e28
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 r14
push r15
sub rsp, 0x30
mov r15, qword [rcx]
mov rdi, rcx
mov rbp, qword [rcx + 0x10]
mov rsi, qword [rcx + 0x88]
jmp 0x140058eff
movsxd r8, dword [rsi + 0x10]
xor edx, edx
mov rax, qword [r15 + 0x20]
mov r9, r8
mov ebx, dword [rsi + 0x14]
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.1400589e0
mov r8, qword [rsi + 8]
lea r14d, [rbx - 1]
mov edx, r14d
mov rcx, rbp
mov r8, qword [r8]
call fcn.14003125c
lea r8, [0x1400f86a0]
mov edx, reloc.WLDAP32.dll_Ordinal_12
mov rcx, rbp
call fcn.14003172c
test rax, rax
je 0x140058f08
lea edx, [rbx + 2]
mov dword [rax + 8], ebx
lea ecx, [rbx + 1]
mov dword [rax + 0xc], edx
mov dword [rax + 0x68], ecx
mov dword [rax + 0xb0], edx
mov dword [rax + 0x3c], ebx
mov dword [rax + 0x4c], r14d
mov dword [rax + 0x54], ebx
mov word [rax + 0x4a], 0x10
mov dword [rax + 0x84], ebx
mov dword [rax + 0x94], ebx
mov dword [rax + 0xac], ebx
mov dword [rax + 0xf8], ebx
cmp dword [rdi + 0x34], 0
jne 0x140058efc
mov dword [rdi + 0x34], 1
mov rsi, qword [rsi]
test rsi, rsi
jne 0x140058e56
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x140058f24
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 rbx, rcx
mov r13, qword [rcx + 0x10]
mov r15, qword [rcx]
test rdi, rdi
je 0x140059029
mov r12d, 8
movsxd rbp, dword [rdi + 0x10]
mov al, byte [rbx + 0x1f]
mov r14d, dword [rdi + 0x14]
shl rbp, 5
add rbp, qword [r15 + 0x20]
test al, al
jne 0x140058f7f
inc dword [rbx + 0x38]
mov esi, dword [rbx + 0x38]
jmp 0x140058f8e
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov esi, dword [rbx + rax*4 + 0xbc]
mov r9d, dword [r13 + 0x90]
lea r8d, [r14 + 2]
add r9d, 7
mov dword [rsp + 0x20], r14d
mov edx, 0x37
mov rcx, r13
call fcn.1400311e0
mov r9, qword [rbp + 0x18]
xor edx, edx
mov r8d, dword [rdi + 0x10]
mov rcx, rbx
mov dword [rsp + 0x20], 0x62
mov r9, qword [r9 + 0x68]
call fcn.1400589e0
lea r8, [0x1400f9160]
mov edx, 5
mov rcx, r13
call fcn.14003172c
test rax, rax
je 0x140059029
mov dword [rax + 0x3c], esi
lea edx, [r14 + 1]
mov dword [rax + 4], edx
lea ecx, [r14 - 1]
mov dword [rax + 0x20], edx
mov dword [rax + 0x34], ecx
mov dword [rax + 0x54], edx
mov dword [rax + 0x50], esi
mov word [rax + 0x4a], r12w
test esi, esi
je 0x14005901d
cmp byte [rbx + 0x1f], r12b
jae 0x14005901d
movzx eax, byte [rbx + 0x1f]
mov dword [rbx + rax*4 + 0xbc], esi
inc byte [rbx + 0x1f]
mov rdi, qword [rdi]
test rdi, rdi
jne 0x140058f60
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 0x140083dd8
Capabilities:
Set console window title

Disassembly:
sub rsp, 0x28
mov ecx, 1
call fcn.1400cccdc
mov rcx, rax
call fcn.1400cd55c
mov ecx, eax
mov edx, 0x40000
call fcn.1400cd378
mov ecx, 2
mov dword [0x140146538], eax
call fcn.1400cccdc
mov rcx, rax
call fcn.1400cd55c
mov ecx, eax
mov edx, 0x40000
call fcn.1400cd378
mov dword [0x140146530], eax
call qword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov ecx, 0xfde9
mov dword [0x140146534], eax
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
lea rcx, str.mimino_2.2.1_x64__ow.wo_
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov edx, 1
lea rcx, [0x140083ee8]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov ecx, 1
add rsp, 0x28
jmp fcn.140083efc

Function at 0x140083e68
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
xor ecx, ecx
call fcn.140083efc
xor edx, edx
lea rcx, [0x140083ee8]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov ecx, 1
call fcn.1400cccdc
mov rcx, rax
call fcn.1400cd55c
mov edx, dword [0x140146538]
mov ecx, eax
call fcn.1400cd378
mov ecx, 2
call fcn.1400cccdc
mov rcx, rax
call fcn.1400cd55c
mov edx, dword [0x140146530]
mov ecx, eax
call fcn.1400cd378
mov ecx, dword [0x140146534]
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
xor ecx, ecx
cmp ebx, 0xc000004b
jne 0x140083ee1
call qword [sym.imp.KERNEL32.dll_ExitThread]
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x140083ff8
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 0x14008409f
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebp, eax
test eax, eax
je 0x14008409f
mov edx, ebp
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140084065
mov r8d, ebp
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp ebp, eax
je 0x14008406a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, rax
test rbx, rbx
je 0x14008409f
cmp word [rbx], 0x21
je 0x14008408b
cmp word [rbx], 0x2a
je 0x140084080
mov rcx, rbx
call fcn.1400840b8
jmp 0x140084094
lea rcx, [rbx + 2]
call fcn.1400aa28c
jmp 0x140084094
lea rcx, [rbx + 2]
call fcn.14009ac2c
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret